/* =========================================================
   SERENITY BODYWORK THERAPEUTICS
   HEADER
   ========================================================= */


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background-color: var(--header-background);
    border-bottom: 1px solid var(--header-border);

    transition:
        background-color 250ms ease,
        box-shadow 250ms ease;
}

.site-header.is-scrolled {
    background-color: var(--header-background);
    box-shadow: 0 4px 18px rgba(61, 53, 40, 0.08);
}


/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.header-container {
    position: relative;

    min-height: var(--header-height);

    display: flex;
    align-items: center;
}


/* =========================================================
   LOGO
   ========================================================= */


.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;

    width: 210px;
    margin-block: -10px;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;

    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.25));
}

/* ========================================
   LOGO HOVER — SERENITY
   ======================================== */

/* Área de interação */
.site-logo,
.footer-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Transição sutil da imagem */
.site-logo img,
.footer-logo img {
    transition:
        filter 800ms ease,
        transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Linha dourada: começa pequena e centralizada */
.site-logo::after,
.footer-logo::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 25px;

    width: 8px;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent 0%,
        #BD8A27 20%,
        #E8D6A6 50%,
        #BD8A27 80%,
        transparent 100%
    );

    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;

    transition:
        width 2.5s cubic-bezier(0.25, 0.1, 0.25, 1),
        opacity 900ms ease;
}

/* Hover e foco: a linha se estende lentamente */
.site-logo:hover::after,
.site-logo:focus-visible::after,
.footer-logo:hover::after,
.footer-logo:focus-visible::after {
    width: 72%;
    opacity: 1;
    transition-delay: 200ms, 0ms;
}

/* Realce discreto da imagem */
.site-logo:hover img,
.footer-logo:hover img {
    filter:
        brightness(1.06)
        drop-shadow(0 1px 2px rgba(189, 138, 39, 0.16));
}

/* Retorno suave ao estado inicial */
.site-logo:not(:hover)::after,
.footer-logo:not(:hover)::after {
    transition:
        width 1.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 900ms ease;
    transition-delay: 0ms;
}

/* Acessibilidade: navegação por teclado */
.site-logo:focus-visible,
.footer-logo:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Respeita a preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .site-logo img,
    .footer-logo img,
    .site-logo::after,
    .footer-logo::after {
        transition: none;
    }
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-navigation {
    margin-left: auto;
}

.navigation-list {
    display: flex;
    align-items: center;

    gap: 32px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.navigation-list li {
    margin: 0;
    padding: 0;
}


/* =========================================================
   NAVIGATION LINK
   ========================================================= */

.navigation-link {
    position: relative;

    display: flex;
    align-items: center;

    min-height: var(--header-height);

    color: var(--color-greige);

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.07em;

    text-transform: uppercase;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}


/*
 * Elegant active indicator
 */

.navigation-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 20px;

    width: 18px;
    height: 1px;

    background-color: var(--color-gold);

    transform:
        translateX(-50%)
        scaleX(0);

    transform-origin: center;

    transition:
        transform 0.3s ease;
}


/*
 * Small gold point
 */

.navigation-link::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 17px;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background-color: var(--color-gold);

    opacity: 0;

    transform: translateX(-50%);

    transition:
        opacity 0.25s ease;
}


.navigation-link:hover,
.navigation-link.active {
    color: var(--color-gold);
}


.navigation-link:hover::after,
.navigation-link.active::after {
    transform:
        translateX(-50%)
        scaleX(1);
}


.navigation-link:hover::before,
.navigation-link.active::before {
    opacity: 1;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;

    gap: 24px;

    margin-left: 36px;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.language-selector {
    display: flex;
    align-items: center;

    gap: 8px;
}

.language-button {
    position: relative;

    padding: 4px 0;

    border: 0;

    background: transparent;

    color: var(--color-text-muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.12em;

    cursor: pointer;

    transition:
        color 0.25s ease;
}

.language-button:hover,
.language-button.active {
    color: var(--color-gold);
}


.language-divider {
    color: rgba(129, 117, 93, 0.35);

    font-size: 10px;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 24px;

    border: 1px solid transparent;
    border-radius: 3px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    white-space: nowrap;

    cursor: pointer;

    overflow: hidden;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


.button-primary {
    background-color: var(--color-gold);

    color: var(--color-white);
}


/*
 * Subtle light sweep on hover
 */

.button-primary::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: rgba(255, 255, 255, 0.12);

    transform: skewX(-20deg);

    transition:
        left 0.5s ease;
}


.button-primary:hover::before {
    left: 120%;
}


.button-primary:hover {
    background-color: #a9781f;

    transform: translateY(-1px);
}


.button-primary:focus-visible {
    outline: 1px solid var(--color-aqua);
    outline-offset: 4px;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-button {
    position: relative;

    display: none;

    width: 42px;
    height: 42px;

    margin-left: auto;
    padding: 0;

    border: 1px solid rgba(129, 117, 93, 0.2);
    border-radius: 50%;

    background-color: transparent;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}


.mobile-menu-button:hover {
    background-color: rgba(125, 196, 189, 0.08);

    border-color: rgba(125, 196, 189, 0.45);
}


.mobile-menu-button:focus-visible {
    outline: 1px solid var(--color-aqua);
    outline-offset: 4px;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.mobile-menu-button span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 18px;
    height: 1px;

    background-color: var(--color-greige);

    transform: translate(-50%, -50%);

    transition:
        transform 0.3s ease,
        opacity 0.25s ease,
        background-color 0.25s ease;
}


.mobile-menu-button span:nth-child(1) {
    margin-top: -5px;
}


.mobile-menu-button span:nth-child(2) {
    margin-top: 0;
}


.mobile-menu-button span:nth-child(3) {
    margin-top: 5px;
}


/* =========================================================
   HAMBURGER → X
   ========================================================= */

.mobile-menu-button[aria-expanded="true"]
span:nth-child(1) {

    margin-top: 0;

    transform:
        translate(-50%, -50%)
        rotate(45deg);
}


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


.mobile-menu-button[aria-expanded="true"]
span:nth-child(3) {

    margin-top: 0;

    transform:
        translate(-50%, -50%)
        rotate(-45deg);
}


/* =========================================================
   MOBILE MENU ACTIONS
   ========================================================= */

.mobile-menu-actions {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .navigation-list {
        gap: 22px;
    }

    .header-actions {
        gap: 18px;

        margin-left: 24px;
    }

    .site-logo img {
        width: 195px;
    }

    .header-booking-button {
        padding-inline: 20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .header-container {
        min-height: 76px;
    }


    /* -----------------------------------------
       Logo
       ----------------------------------------- */

    .site-logo img {
        width: 180px;
    }


    /* -----------------------------------------
       Hamburger
       ----------------------------------------- */

    .mobile-menu-button {
        display: block;
    }


    /* -----------------------------------------
       Mobile navigation
       ----------------------------------------- */

    .main-navigation {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        margin: 0;

        padding: 0 24px 24px;

        background-color: var(--menu-background);

        border-top: 1px solid rgba(129, 117, 93, 0.08);
        border-bottom: 1px solid rgba(129, 117, 93, 0.12);

        box-shadow:
            0 15px 35px rgba(90, 80, 60, 0.08);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-8px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }


    .main-navigation.is-open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    /* -----------------------------------------
       Navigation list
       ----------------------------------------- */

    .navigation-list {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        width: 100%;

        padding: 12px 0 14px;
    }


    .navigation-list li {
        width: 100%;
    }


    /* -----------------------------------------
       Mobile links
       ----------------------------------------- */

    .navigation-link {
        justify-content: center;

        width: 100%;

        min-height: 50px;

        color: var(--color-greige);

        font-size: 12px;

        letter-spacing: 0.09em;
    }


    .navigation-link::before,
    .navigation-link::after {
        display: none;
    }


    .navigation-link:hover,
    .navigation-link.active {
        color: var(--color-gold);
    }


    /* -----------------------------------------
       Desktop actions hidden
       ----------------------------------------- */

    .header-actions {
        display: none;
    }


    /* -----------------------------------------
       Mobile actions
       ----------------------------------------- */

    .mobile-menu-actions {
        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 18px;

        padding-top: 20px;

        border-top: 1px solid rgba(129, 117, 93, 0.10);
    }


    /* -----------------------------------------
       Language
       ----------------------------------------- */

    .mobile-menu-actions
    .language-selector {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 8px;
    }


    .mobile-menu-actions
    .language-button {
        font-size: 10px;
    }


    /* -----------------------------------------
       Booking
       ----------------------------------------- */

    .mobile-booking-button {
        width: 100%;

        max-width: 280px;

        min-height: 44px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .header-container {
        min-height: 72px;
    }


    .site-logo img {
        width: 165px;
    }


    .mobile-menu-button {
        width: 40px;
        height: 40px;
    }


    .main-navigation {
        padding-inline: 20px;
    }
}


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

@media (prefers-reduced-motion: reduce) {

    .site-header,
    .site-logo img,
    .navigation-link,
    .navigation-link::before,
    .navigation-link::after,
    .button,
    .mobile-menu-button,
    .mobile-menu-button span,
    .main-navigation {
        transition: none;
    }
}


/* ==========================================
   MOBILE BOOKING
   ========================================== */

.mobile-booking-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-booking-wrapper .mobile-booking-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 280px;
    min-height: 46px;
    margin: 0 auto;

    text-align: center;
    cursor: pointer;
}

/* ==========================================
   BOOKING OPTIONS PANEL
   ========================================== */

.mobile-booking-options[hidden] {
    display: none;
}

.mobile-booking-options {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
    max-width: 360px;
    box-sizing: border-box;

    margin: 18px auto 0;
    padding: 22px 16px;

    background-color: #FFFFFF;
    border: 1px solid rgba(129, 117, 93, 0.12);
    border-radius: 8px 30px 8px 30px;

    box-shadow: 0 16px 38px rgba(61, 53, 40, 0.08);

    animation: booking-options-enter 350ms ease both;
}

.mobile-booking-options-header {
    margin-bottom: 8px;
    text-align: center;
}

.mobile-booking-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: #BD8A27;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.mobile-booking-title {
    margin: 0;
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.35;
}

/* ==========================================
   CONTACT OPTIONS
   ========================================== */

.mobile-booking-option {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-width: 0;
    box-sizing: border-box;

    padding: 14px 12px;

    background-color: #F8F7F3;
    border: 1px solid rgba(129, 117, 93, 0.1);
    border-radius: 6px 18px 6px 18px;

    color: #81755D;
    text-align: left;
    text-decoration: none;

    transition:
        background-color 300ms ease,
        border-color 300ms ease,
        transform 300ms ease;
}

.mobile-booking-option:hover {
    background-color: #F0F8F6;
    border-color: rgba(125, 196, 189, 0.5);
    transform: translateY(-2px);
}

.mobile-booking-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background-color: rgba(125, 196, 189, 0.15);
    border-radius: 50%;
    color: #BD8A27;
}

.mobile-booking-option-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.7;
}

.mobile-booking-option-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 5px;
}

.mobile-booking-option-content strong {
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: 400;
}

.mobile-booking-option-content small {
    color: #81755D;
    font-size: 11px;
    line-height: 1.4;
}

.mobile-booking-option-arrow {
    align-self: flex-start;
    color: #BD8A27;
    font-size: 19px;
}

/* ==========================================
   ANIMATION
   ========================================== */

@keyframes booking-options-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-booking-options {
        animation: none;
    }

    .mobile-booking-option {
        transition: none;
    }
}

/* ==========================================
   HEADER LOGO - MOBILE
   ========================================== */

@media (max-width: 768px) {

    .site-header .site-logo {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        width: 140px;
        max-width: 140px;
    }

    .site-header .site-logo img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 90px;
        object-fit: contain;
    }

}

@media (max-width: 380px) {

    .site-header .site-logo {
        width: 120px;
        max-width: 120px;
    }

    .site-header .site-logo img {
        max-height: 80px;
    }

}

/* Navegação mais legível */

.navigation-link {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .navigation-link {
        font-size: 17px;
        font-weight: 600;
        line-height: 1.6;
    }
}