/* ==========================================
   COCKTAILS PAGE STYLES
   Reset, burger menu, footer - see shared.css
   ========================================== */

body {
    font-family: Bebas, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 58, 67, 1) 0%, rgba(17, 100, 113, 1) 75%, rgba(0, 97, 112, 1) 100%);
    z-index: -1;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
    .button.button-nav_menu {
        transition: background-color .175s, color .175s;
    }

    .button.button-nav_menu:hover {
        background-color: rgba(51, 43, 19, 1);
        color: #d9c8a3;
        text-decoration: none;
    }
}

/* ==========================================
   HEADER SECTION
   ========================================== */

.header {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(26, 28, 28, 0.8), rgba(26, 28, 28, 0.8)),
        url('../img/food/hero-bg-45144f.png') center center/cover;
    z-index: 0;
    will-change: transform;
}

/* Navigation Menu */
.nav-menu {
    position: absolute;
    top: 137px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10;
}

.nav-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 112px;
    padding: 11px 10px 8px;
    background: rgba(51, 43, 19, 0.4);
    border: 1px solid #D9C8A3;
    font-family: Bebas, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1em;
    color: #F9F6E5;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    color: #F9F6E5;
    text-decoration: none;
}

.nav-btn--active {
    background: #332B13;
}

.nav-star {
    width: 20px;
    height: 19px;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 214px;
    left: 364px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 112px;
    padding: 11px 10px 8px;
    background: rgba(51, 43, 19, 0.4);
    border: 1px solid #D9C8A3;
    font-family: Bebas, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1em;
    color: #F9F6E5;
    z-index: 10;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #F9F6E5;
    text-decoration: none;
}

.back-icon {
    width: 24px;
    height: 24px;
}

/* Header Top Section */
.header-top {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 110px;
    z-index: 10;
}

.header-social {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.social-text {
    font-family: Bebas, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1em;
    color: #F9F6E5;
    white-space: nowrap;
}

.social-icons img {
    height: 20px;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    width: 152px;
    height: 67px;
}

.header-contact {
    display: flex;
    align-items: center;
    background: #F9F6E5;
    padding: 2px;
}

.contact-label {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 3px;
    background: #F9F6E5;
    font-family: 'Heathergreen', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.366em;
    color: #000000;
}

.contact-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    background: #000000;
}

.contact-phone a {
    font-family: 'Heathergreen', serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.366em;
    color: #F9F6E5;
    transition: color 0.3s ease;
}

.contact-phone a:hover {
    color: #BC2806;
}

/* Hero Title */
.hero-title {
    position: absolute;
    top: 360px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 10;
}

.hero-title h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-cocktails-text {
    font-family: Bebas, sans-serif;
    font-size: 150px;
    font-weight: 700;
    line-height: 1em;
    color: #F9F6E5;
    text-stroke: 1px #F9F6E5;
    -webkit-text-stroke: 1px #F9F6E5;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
    position: relative;
    margin: 120px auto 0;
    max-width: 1920px;
    padding: 0;
}

.bg-text-mojo {
    position: absolute;
    top: 150px;
    left: 130px;
    font-family: 'Heathergreen', serif;
    font-size: 300px;
    font-weight: 400;
    line-height: 1.366em;
    color: #F9F6E5;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: rotate(90deg);
    transform-origin: left center;
    will-change: transform;
}

/* ==========================================
   COCKTAIL SECTIONS
   ========================================== */

.cocktail-section {
    margin-bottom: 80px;
    position: relative;
}

/* Decorative Text - Left Side (for each category) */
.cocktail-section .decor-text-left {
    position: absolute;
    left: 130px;
    top: 50%;
    font-family: 'Heathergreen', serif;
    font-size: 300px;
    font-weight: 400;
    line-height: 1.366em;
    color: #F9F6E5;
    opacity: 0.16;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    transform: translateY(-130%) rotate(90deg);
    transform-origin: left center;
    will-change: transform;
}

/* Decorative Images - Right Side (for each category) */
.cocktail-section .decor-img-right-1 {
    position: absolute;
    right: -400px;
    top: 50%;
    width: auto;
    max-width: 600px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.cocktail-section .decor-img-right-2 {
    position: absolute;
    right: -200px;
    top: 50%;
    width: auto;
    max-width: 400px;
    height: auto;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

/* Specific positioning for each category */
/* Mojo Voodoo */
.cocktail-section[data-category="vodoo"] .decor-img-right-1 {
    right: -225px;
    max-width: 500px;
    transform: translateY(-60%);
}

.cocktail-section[data-category="vodoo"] .decor-img-right-2 {
    right: -107px;
    max-width: 270px;
    transform: translateY(-22%) rotate(2deg);
}

/* Air Magic */
.cocktail-section[data-category="air"] .decor-img-right-1 {
    right: -233px;
    max-width: 450px;
    transform: translateY(-60%);
    z-index: 2;
}

.cocktail-section[data-category="air"] .decor-img-right-2 {
    right: -150px;
    max-width: 320px;
    transform: translateY(-30%);
}

/* Earth Magic */
.cocktail-section[data-category="earth"] .decor-img-right-1 {
    right: -60px;
    max-width: 170px;
    transform: translateY(-127%) rotate(5deg);
}

.cocktail-section[data-category="earth"] .decor-img-right-2 {
    right: -129px;
    max-width: 300px;
    transform: translateY(-50%);
}

/* Water Magic */
.cocktail-section[data-category="water"] .decor-img-right-1 {
    right: -160px;
    max-width: 500px;
    transform: translateY(-32%);
    z-index: 2;
}

.cocktail-section[data-category="water"] .decor-img-right-2 {
    right: -140px;
    max-width: 300px;
    transform: translateY(-50%);
}

/* Fire Magic */
.cocktail-section[data-category="fire"] .decor-img-right-1 {
    right: -200px;
    max-width: 560px;
    transform: translateY(-30%);
    z-index: 2;
}

.cocktail-section[data-category="fire"] .decor-img-right-2 {
    right: -110px;
    max-width: 300px;
    transform: translateY(-55%);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 72px 24px;
    background: #F9F6E5;
    position: relative;
    overflow: hidden;
    margin: 0 auto 40px;
    max-width: 1200px;
    z-index: 2;
}

.section-header h2 {
    font-family: Bebas, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1em;
    color: #BC2806;
    position: relative;
    z-index: 1;
}


/* ==========================================
   COCKTAIL CARDS
   ========================================== */

.cocktail-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 100px;
    position: relative;
    z-index: 2;
}

.cocktail-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #F9F6E5;
    overflow: hidden;
}

.card-image {
    width: 100%;
    aspect-ratio: 768 / 920;
    overflow: hidden;
    background: #c8bfa8;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: relative;
    padding: 16px 16px 10px;
    background: #F9F6E5;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.card-icon {
    position: absolute;
    bottom: 8px;
    right: 16px;
    width: 64px;
    height: 48px;
    z-index: 2;
}

.card-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    flex: 1;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-family: Bebas, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1em;
    color: #159EB5;
}

.card-description {
    font-family: Bebas, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2em;
    color: #020202;
}

.card-divider {
    border: none;
    border-bottom: 1px solid #D2D2D2;
    margin: auto 0 0 0;
    padding-top: 10px;
}

.card-label {
    font-family: Bebas, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1em;
    color: #BC2806;
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 50px 0;
    background: #FFFFFF;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-info {
    align-items: flex-end;
    gap: 6px;
    width: 152px;
}

.footer-info p {
    font-family: Bebas, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1em;
    color: #020202;
}

.footer-divider {
    width: 2px;
    height: 162px;
    background: #020202;
}

.footer-logo {
    align-items: center;
    gap: 12px;
    width: 203px;
    height: 162px;
}

.footer-logo img {
    width: 100%;
    height: 107px;
    object-fit: contain;
}

.footer-line {
    width: 100%;
    height: 2px;
    background: #020202;
    border: none;
    margin: 0;
}

.footer-since {
    font-family: Bebas, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1em;
    color: #000000;
    text-align: center;
}

.footer-social {
    align-items: center;
    gap: 5px;
    width: 210px;
}

.footer-social-text {
    font-family: Bebas, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1em;
    color: #020202;
    text-align: center;
}

.footer-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.footer-instagram img {
    width: 100%;
    height: auto;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Hide decorative elements on screens smaller than 1024px */
@media (max-width: 1023px) {
    .cocktail-section .decor-text-left,
    .cocktail-section .decor-img-right-1,
    .cocktail-section .decor-img-right-2,
    .bg-text-mojo {
        display: none;
    }
}

/* Tablet - 768px to 1199px */
@media (max-width: 1199px) {
    .header {
        height: 700px;
    }

    .nav-menu {
        top: 100px;
        flex-wrap: wrap;
        max-width: 90%;
        gap: 12px;
    }

    .nav-btn {
        width: 100px;
        font-size: 16px;
    }

    .back-btn {
        top: 180px;
        left: 5%;
    }

    .header-top {
        width: 90%;
        gap: 40px;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        top: 300px;
    }

    .hero-cocktails-text {
        font-size: 100px;
    }

    .main-content {
        max-width: 100%;
        margin-top: 80px;
        padding: 0 20px;
    }

    .section-header,
    .cocktail-cards {
        max-width: 90%;
    }

    .cocktail-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .footer-divider {
        width: 80%;
        height: 2px;
    }
}

/* Mobile - 320px to 767px */
@media (max-width: 767px) {
    .header {
        height: 800px;
        padding: 0;
    }

    .header-bg {
        background-position: center;
    }

    /* Hide desktop navigation */
    .nav-menu {
        display: none;
    }

    .nav-star {
        display: none;
    }

    /* Back button - mobile style (same as desktop) */
    .back-btn {
        position: absolute;
        top: 95px;
        left: 16px;
        width: auto;
        padding: 11px 10px 8px;
    }

    .back-icon {
        width: 24px;
        height: 24px;
    }

    /* Header top - mobile */
    .header-top {
        position: absolute;
        top: 36px;
        left: 50%;
        transform: translateX(-50%);
        width: 343px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 104px;
        z-index: 10;
    }

    .header-social {
        display: none;
    }

    .header-logo {
        order: 1;
    }

    .header-logo img {
        width: 80px;
        height: 35px;
    }

    .header-contact {
        order: 2;
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 0;
        background: transparent;
    }

    .contact-label {
        display: none;
    }

    .contact-phone {
        padding: 4px 10px;
        background: #000000;
    }

    .contact-phone a {
        font-size: 14px;
    }

    /* Hero title - mobile */
    .hero-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin-top: 40px;
        width: 339px;
    }

    .hero-cocktails-text {
        font-size: 40px;
        -webkit-text-stroke: 1px #F9F6E5;
    }

    /* Main content - mobile */
    .main-content {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        margin-top: 40px;
    }

    .cocktail-section {
        margin-bottom: 40px;
    }

    .section-header {
        padding: 28px 16px 24px;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 40px;
    }

    /* Cocktail cards - mobile */
    .cocktail-cards {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 0;
        max-width: 343px;
        margin-left: auto;
        margin-right: auto;
    }

    .cocktail-card {
        width: 100%;
    }

    .card-image {
        height: 460px;
    }

    .card-title {
        font-size: 32px;
    }

    .card-description {
        font-size: 14px;
    }

    .card-label {
        font-size: 32px;
    }

    .card-icon {
        width: 64px;
        height: 48px;
        bottom: 10px;
        right: 16px;
    }

    /* Footer - mobile */
    .footer {
        flex-direction: column;
        align-items: center;
        padding: 32px 16px;
        gap: 16px;
    }

    /* Reorder footer sections for mobile */
    .footer-social {
        order: 1;
        width: 210px;
        gap: 5px;
    }

    .footer-social-text {
        font-size: 22px;
        text-align: center;
    }

    .footer-instagram {
        width: 100%;
    }

    /* Company info and logo together */
    .footer-section {
        order: 2;
        width: 100%;
    }

    .footer-info {
        align-items: flex-end;
        width: auto;
        gap: 6px;
    }

    .footer-info p {
        font-size: 16px;
    }

    .footer-divider {
        width: 2px;
        height: 162px;
    }

    .footer-logo {
        width: auto;
        align-items: center;
    }

    .footer-logo img {
        width: 133px;
        height: auto;
    }

    .footer-since {
        font-size: 20px;
    }
}

/* Extra Small Mobile - 320px */
@media (max-width: 374px) {
    .hero-cocktails-text {
        font-size: 48px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-description {
        font-size: 12px;
    }

    .card-label {
        font-size: 24px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================
   HOVER
   ========================================== */

@media (hover: hover) and (pointer: fine) {
    .cocktail-card {
        transition: transform 0.2s ease;
        will-change: transform;
    }

    .cocktail-card:hover {
        transform: translateY(-5px);
    }
}

/* Disable click/focus outlines and sticky pressed state */
a:focus,
a:focus-visible,
a:active,
button:focus,
button:focus-visible,
button:active {
    outline: none !important;
    box-shadow: none !important;
}

body button:focus {
    background: inherit !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}

.header a:focus,
.header a:focus-visible,
.header button:focus,
.header button:focus-visible,
.header .back-btn:active,
.header .header__logo:active {
    outline: none;
    box-shadow: none;
}

.header .back-btn,
.header .header__logo,
.header .header__telephone a,
.header .header__ntw a {
    -webkit-tap-highlight-color: transparent;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
