/* =========================================================
   RUPA ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â RESIDÃƒÆ’Ã… NCIA UNIVERSITÃƒÆ’Ã‚ÂRIA PARTICULAR DE AVEIRO
   GLOBAL
========================================================= */

:root {
    --ink: #111713;
    --green: #0b4f3f;
    --green-dark: #06372c;
    --acid: #b8f34a;
    --white: #ffffff;
    --soft: #f3f5f2;
    --line: #dfe4df;
    --danger: #d94a45;
    --warning: #f2b84b;
    --radius: 10px;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.lucide-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.18em;
}


/* =========================================================
   HEADER ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â BASE
========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: #fff;
    color: var(--ink);

    transition:
        background-color .24s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        color .24s ease;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    min-height: 72px;
}


/* Marca */

.site-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    color: var(--green-dark);
    text-decoration: none;
    white-space: nowrap;

    transition: color .24s ease;
}

.site-logo-desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.site-logo-main {
    display: block;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.site-logo-subtitle {
    display: block;
    color: #66726c;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .20em;
    text-transform: uppercase;
    white-space: nowrap;

    transition: color .24s ease;
}

.site-logo-mobile {
    display: none;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
}


/* NavegaÃƒÆ’Ã‚Â§ÃƒÆ’Ã‚Â£o */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 34px;
}

.main-nav a,
.header-login-link {
    position: relative;
    color: #29312d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;

    transition: color .24s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -7px;
    height: 2px;
    background: var(--green);
    transition:
        right .2s ease,
        background-color .24s ease;
}

.main-nav a:hover::after {
    right: 0;
}


/* AÃƒÆ’Ã‚Â§ÃƒÆ’Ã‚Âµes */

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    white-space: nowrap;
}

.header-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;

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

    background: var(--green);
    color: #fff;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;

    transition:
        transform .18s ease,
        background-color .24s ease,
        color .24s ease,
        border-color .24s ease;
}

.header-button:hover {
    transform: translateY(-2px);
    background: var(--green-dark);
}


/* Conta */

.header-account-menu {
    position: relative;
}

.header-account-menu > summary {
    list-style: none;
}

.header-account-menu > summary::-webkit-details-marker {
    display: none;
}

.header-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;

    cursor: pointer;

    color: #28312d;

    font-size: 11px;

    transition: color .24s ease;
}

.header-account-trigger strong {
    color: var(--green-dark);
    font-weight: 800;

    transition: color .24s ease;
}

.header-account-svg {
    width: 17px;
    height: 17px;
}

.header-chevron-svg {
    width: 14px;
    height: 14px;
    transition: transform .15s ease;
}

.header-account-menu[open] .header-chevron-svg {
    transform: rotate(180deg);
}

.header-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 215px;
    padding: 8px;

    border: 1px solid var(--line);
    border-radius: 9px;

    background: #fff;

    box-shadow: 0 18px 45px rgba(10, 40, 30, .13);
}

.header-account-dropdown a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 0 11px;

    border-radius: 6px;

    color: #222b26;

    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.header-account-dropdown a:hover {
    background: var(--soft);
}

.header-account-divider {
    display: block;
    height: 1px;
    margin: 7px 3px;
    background: var(--line);
}

.header-account-logout {
    color: var(--danger) !important;
}


/* =========================================================
   HOMEPAGE ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â HEADER TRANSPARENTE SOBRE A HERO
========================================================= */

body.home .site-header--home {
    position: fixed;
    top: 0;
    left: 0;

    border-bottom-color: transparent;

    background: transparent;
    color: #fff;

    box-shadow: none;
}


/* Logo branco */

body.home .site-header--home .site-logo {
    color: #fff;
}

body.home .site-header--home .site-logo-subtitle {
    color: rgba(255, 255, 255, .76);
}


/* Menu branco */

body.home .site-header--home .main-nav a,
body.home .site-header--home .header-login-link,
body.home .site-header--home .header-account-trigger {
    color: #fff;
}

body.home .site-header--home .header-account-trigger strong {
    color: #fff;
}

body.home .site-header--home .main-nav a::after {
    background: #fff;
}


/* BotÃƒÆ’Ã‚Â£o branco na hero */

body.home .site-header--home .header-button {
    border-color: rgba(255, 255, 255, .9);
    background: #fff;
    color: var(--green-dark);
}

body.home .site-header--home .header-button:hover {
    background: rgba(255, 255, 255, .9);
}


/* Estado apÃƒÆ’Ã‚Â³s scroll */

body.home .site-header--home.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, .97);
    color: var(--ink);

    box-shadow: 0 8px 28px rgba(6, 55, 44, .08);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.home .site-header--home.is-scrolled .site-logo {
    color: var(--green-dark);
}

body.home .site-header--home.is-scrolled .site-logo-subtitle {
    color: #66726c;
}

body.home .site-header--home.is-scrolled .main-nav a,
body.home .site-header--home.is-scrolled .header-login-link,
body.home .site-header--home.is-scrolled .header-account-trigger {
    color: #29312d;
}

body.home .site-header--home.is-scrolled .header-account-trigger strong {
    color: var(--green-dark);
}

body.home .site-header--home.is-scrolled .main-nav a::after {
    background: var(--green);
}

body.home .site-header--home.is-scrolled .header-button {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

body.home .site-header--home.is-scrolled .header-button:hover {
    background: var(--green-dark);
}


/* Admin bar */

body.admin-bar.home .site-header--home {
    top: 32px;
}


/* =========================================================
   BUTTONS
========================================================= */

button,
input,
select,
textarea {
    font: inherit;
}

.home-primary-button,
.home-booking-button,
.home-final-button,
.account-primary-button,
.reservation-primary-button,
.reservation-submit-button {
    border: 0;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
}


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

.site-footer {
    padding: 64px 0 0;
    background: var(--green-dark) !important;
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.35fr .8fr .9fr 1fr;
    gap: 54px;
    padding-bottom: 56px;
}

.footer-brand-logo {
    display: inline-block;
    margin-bottom: 18px;

    color: #fff;

    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.035em;

    text-decoration: none;
    white-space: nowrap;
}

.footer-brand p,
.footer-column p {
    max-width: 310px;
    margin: 0;

    color: rgba(255, 255, 255, .62);

    font-size: 12px;
    line-height: 1.65;
}

.footer-column h4 {
    margin: 0 0 15px;

    color: #d7ff86;

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.footer-column nav {
    display: grid;
    gap: 9px;
}

.footer-column a {
    color: rgba(255, 255, 255, .84);

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

    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.footer-cta {
    display: inline-flex;
    margin-top: 14px;
    align-items: center;
    gap: 8px;

    color: #fff !important;

    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .09em;
}

.footer-bottom {
    margin: 0 !important;

    border-top: 1px solid rgba(255, 255, 255, .14) !important;

    background: transparent !important;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 58px;

    color: rgba(255, 255, 255, .5);

    font-size: 10px;
}


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

@media (max-width: 850px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 860px) {

    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 10px 14px;
        min-height: 70px;
    }

    .site-logo {
        max-width: none;
    }

    .site-logo-desktop {
        display: none;
    }

    .site-logo-mobile {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .header-account-trigger {
        max-width: 128px;
        font-size: 10px;
    }

    .header-account-trigger span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-button {
        min-height: 40px;
        padding: 0 14px;
    }
}

@media (max-width: 782px) {
    body.admin-bar.home .site-header--home {
        top: 46px;
    }
}

@media (max-width: 560px) {

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* =========================================================
   RUPA Ã¢â‚¬â€ MARCA DO HEADER
   Desktop: nome em duas linhas
   Mobile: apenas RUPA
========================================================= */

.site-logo-desktop {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.site-logo-desktop span {
    display: block;
}

.site-logo-desktop b {
    padding: 0 .35em;
    font-weight: 500;
    opacity: .62;
}

.site-logo-mobile {
    display: none;
}

@media (max-width: 860px) {
    .site-logo-desktop {
        display: none;
    }

    .site-logo-mobile {
        display: block;
        font-size: 20px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .08em;
    }
}

/* =========================================================
   RUPA â€” HEADER MOBILE COM MENU HAMBÃšRGUER
   Desktop permanece inalterado.
========================================================= */

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

@media (max-width: 700px) {

    .site-header .header-inner {
        position: relative;
        grid-template-columns: 1fr auto;
        gap: 14px;
        min-height: 60px;
    }

    .site-header .main-nav,
    .site-header .header-actions {
        display: none !important;
    }

    .site-header .site-logo-mobile {
        display: block;
        font-size: 20px;
        font-weight: 900;
        line-height: 1;
        letter-spacing: .08em;
    }

    .mobile-header-menu {
        display: block;
        position: static;
        margin: 0;
    }

    .mobile-header-menu > summary {
        list-style: none;
    }

    .mobile-header-menu > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--green-dark);
        cursor: pointer;
    }

    .mobile-menu-toggle:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 3px;
    }

    .mobile-menu-icon {
        display: flex;
        width: 22px;
        height: 18px;
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-menu-icon span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition:
            transform .18s ease,
            opacity .18s ease;
    }

    .mobile-header-menu[open] .mobile-menu-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-header-menu[open] .mobile-menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .mobile-header-menu[open] .mobile-menu-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-menu-panel {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 1100;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        color: var(--ink);
        box-shadow: 0 20px 46px rgba(6, 55, 44, .16);
    }

    .mobile-main-nav {
        display: grid;
        gap: 0;
    }

    .mobile-main-nav a,
    .mobile-account-links a,
    .mobile-menu-login {
        display: flex;
        min-height: 44px;
        align-items: center;
        border-bottom: 1px solid var(--line);
        color: #222b26;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .06em;
        text-decoration: none;
    }

    .mobile-main-nav a:last-child {
        border-bottom: 0;
    }

    .mobile-menu-book {
        display: flex;
        min-height: 46px;
        margin-top: 14px;
        align-items: center;
        justify-content: center;
        border-radius: 7px;
        background: var(--green);
        color: #fff;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .10em;
        text-decoration: none;
    }

    .mobile-menu-section {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .mobile-menu-user {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 6px;
        color: #28312d;
        font-size: 12px;
    }

    .mobile-menu-user strong {
        color: var(--green-dark);
        font-weight: 900;
    }

    .mobile-menu-user-icon {
        width: 18px;
        height: 18px;
    }

    .mobile-account-links {
        display: grid;
    }

    .mobile-account-links a:last-child {
        border-bottom: 0;
    }

    .mobile-account-links .mobile-account-logout {
        color: var(--danger);
    }

    .mobile-menu-section-title {
        margin-bottom: 10px;
        color: #66726c;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: .13em;
        text-transform: uppercase;
    }

    .mobile-menu-languages .rupa-language-switcher,
    .mobile-menu-languages [class*="language-switcher"],
    .mobile-menu-languages [class*="lang-switcher"] {
        position: static !important;
    }

    body.home .site-header--home:not(.is-scrolled) .mobile-menu-toggle {
        color: #fff;
    }

    body.home .site-header--home.is-scrolled .mobile-menu-toggle {
        color: var(--green-dark);
    }

    body.admin-bar.home .site-header--home .mobile-menu-panel {
        max-height: calc(100vh - 134px);
    }
}