/* ==========================================================================
   Layout — site header, navigation, footer and floating actions
   ========================================================================== */

/* Header / navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    transition: .4s;
    padding: 18px 0;
}

.site-header.is-scrolled {
    background: rgba(67, 10, 17, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, .35);
    padding: 10px 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand lockup — shared by header and footer */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    height: 46px;
    width: auto;
    border-radius: 8px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-size: 18px;
    color: var(--gold-l);
    font-weight: 800;
}

.brand__tagline {
    font-size: 11px;
    letter-spacing: .35em;
    color: var(--muted);
}

/* Primary menu */
.main-nav__list {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.main-nav__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--cream);
    position: relative;
    transition: .25s;
}

.main-nav__link:hover,
.main-nav__link.is-active {
    color: var(--gold-l);
}

.main-nav__link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after {
    width: 100%;
}

.main-nav__cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: var(--crimson-dd) !important;
    padding: 9px 20px;
    border-radius: 30px;
    font-weight: 700;
}

.main-nav__cta::after {
    display: none;
}

/* Mobile toggle — sized to the 44px minimum touch target */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    margin: -4px;
    position: relative;
    z-index: 2;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--gold-l);
    transition: var(--transition);
}

/* Bars fold into a cross while the drawer is open */
.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Footer
   ========================================================================== */
.site-footer {
    padding: 90px 0 40px;
    background: var(--crimson-dd);
}

.site-footer__bar {
    border-top: 1px solid rgba(201, 162, 75, .18);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer__copy {
    color: var(--muted);
    font-size: 13px;
}

.socials {
    display: flex;
    gap: 14px;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 75, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-l);
    transition: var(--transition);
}

.socials a:hover {
    background: var(--gold);
    color: var(--crimson-dd);
    transform: translateY(-3px);
}

.socials svg {
    width: 18px;
    height: 18px;
}

/* Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 90;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(37, 211, 102, .5);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

/* Responsive
   ========================================================================== */

/* The full menu needs roughly 560px of its own; below that it collides with
   the brand lockup, so the drawer takes over well before phone widths. */
@media (max-width: 991px) {

    .main-nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        height: 100dvh;
        width: min(78%, 320px);
        background: var(--crimson-d);
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 6px;
        padding: 90px 26px 40px;
        overflow-y: auto;
        overscroll-behavior: contain;
        transition: .4s;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .5);
    }

    .main-nav__list.is-open {
        right: 0;
    }

    /* Comfortable rows instead of bare text links */
    .main-nav__link {
        display: block;
        padding: 13px 4px;
        font-size: 17px;
    }

    .main-nav__link::after {
        display: none;
    }

    .main-nav__cta {
        text-align: center;
        margin-top: 14px;
        padding: 14px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Dimmed page behind the open drawer, tapping it closes the menu */
    body.nav-is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(20, 4, 8, .6);
        z-index: 99;
    }

    body.nav-is-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {

    .site-footer {
        padding: 64px 0 32px;
        text-align: center;
    }

    .site-footer__bar {
        flex-direction: column;
        justify-content: center;
    }

    .site-footer__bar .brand {
        justify-content: center;
    }

    .socials a {
        width: 44px;
        height: 44px;
    }

    /* Clear of the thumb zone and of the floating WhatsApp button */
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}
