/* =========================================================
   SALMORA LIVE KITCHEN & BAR
   Vilamoura — Algarve
   ========================================================= */

:root {
    /* Palette — warm Algarvian sand, deep tan, and cream */
    --sand:        #c9a87c;
    --sand-dark:   #a8865b;
    --sand-deep:   #8b6f47;
    --cream:       #f5ede0;
    --cream-soft:  #f0e6d2;
    --ink:         #3d2e1f;
    --ink-soft:    #5a4632;
    --paper:       #ffffff;

    /* Typography */
    --display: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    --sans: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    --serif: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --max-w: 1280px;
    --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px var(--gutter);
    transition: background-color .4s ease, padding .3s ease;
}

.site-header.scrolled {
    background: rgba(61, 46, 31, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px var(--gutter);
}

.nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    gap: 30px;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 38px;
    align-items: center;
}

.nav-right { justify-content: flex-end; }

.nav a {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    padding: 6px 0;
    transition: opacity .3s ease;
}

.nav a:hover { opacity: 0.7; }

.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width .35s ease;
}
.nav a:hover::after { width: 100%; }

.brand {
    font-family: var(--display);
    font-weight: 400;
    font-size: 29px;
    letter-spacing: 0.22em;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    filter: invert(1);
    text-transform: uppercase;
}
.brand-o {
    font-style: normal;
    font-weight: 400;
}

.lang-switch {
    display: flex;
    gap: 14px;
}

.lang-switch a {
    padding: 4px 2px;
    opacity: 0.65;
    font-size: 11px;
}
.lang-switch a.active,
.lang-switch a:hover {
    opacity: 1;
}
.lang-switch a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: #fff;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: linear-gradient(180deg, #b8966b 0%, #8b6f47 100%);
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* fallback gradient when image missing */
    background-color: #8b6f47;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center top, rgba(0,0,0,0) 30%, rgba(0,0,0,0.4) 100%),
        linear-gradient(180deg, rgba(184,150,107,0.35) 0%, rgba(0,0,0,0.25) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 22vh;
    text-align: center;
    color: #fff;
    z-index: 2;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.hero-eyebrow {
        font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 18px;
    opacity: 0.95;
    animation: fade-up 1.1s .2s ease both;
}

.hero-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: 3rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.08;
    animation: fade-up 1.1s .4s ease both;
}

.hero-title .amp {
    font-style: normal;
    font-weight: 400;
    margin: 0 0.05em;
}

.hero-divider {
    display: block;
    width: 220px;
    height: 1px;
    background: rgba(255,255,255,0.7);
    margin: 32px auto 0;
    animation: fade-in 1.4s .8s ease both;
}

.scroll-indicator {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: grid;
    place-items: center;
    color: var(--ink);
    z-index: 3;
    animation: bob 2.4s ease-in-out infinite;
    transition: background-color .3s ease;
}
.scroll-indicator:hover { background: #fff; }
.scroll-indicator svg { width: 18px; height: 18px; }

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =========================================================
   SHARED — Section labels
   ========================================================= */
.section-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.section-label .label-line {
    width: 56px;
    height: 1px;
    background: var(--ink);
}

.section-label .label-text {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.section-label.light .label-line { background: #fff; }
.section-label.light .label-text { color: rgba(255,255,255,0.9); }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
    position: relative;
    padding: 130px var(--gutter) 130px;
    text-align: center;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 0;
}

.about-tint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #e8dbc4 0%, #d6c3a3 100%);
    opacity: 0.85;
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.about-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(32px, 4vw, 50px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 28px;
    color: var(--ink);
    line-height: 1.1;
}

.about-title .amp {
    font-style: normal;
    margin: 0 0.05em;
}

.about-tagline {
font-family: var(--display);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 36px;
    line-height: 1.5;
}

.about-body {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.85;
}

.about-body p { margin-bottom: 1.2em; }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
    background: var(--sand);
    padding: 110px 0 90px;
    color: #fff;
    text-align: center;
}

.gallery-intro {
    padding: 0 var(--gutter);
    margin-bottom: 55px;
}

.gallery-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(30px, 3.6vw, 46px);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}

.carousel {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 14px;
    align-items: stretch;
    transition: transform .55s cubic-bezier(.6,.2,.2,1);
}

.carousel-slide {
    flex: 0 0 calc((100% - 28px) / 3);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #3a2e22;
    transition: transform .5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.carousel-slide:hover img { transform: scale(1.05); }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    color: var(--ink);
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 3;
    transition: background-color .3s, transform .3s;
}

.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-btn svg   { width: 16px; height: 16px; }

.carousel-btn.prev { left: calc(var(--gutter) - 5px); }
.carousel-btn.next { right: calc(var(--gutter) - 5px); }

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background-color .3s, transform .3s;
}
.carousel-dots button.active {
    background: #fff;
    transform: scale(1.3);
}

/* =========================================================
   FEATURE ROWS — Decade of Light / Feminine Spirit
   ========================================================= */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
}

.feature-text {
    padding: clamp(60px, 8vw, 110px) clamp(40px, 6vw, 90px);
}

.feature-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 24px;
    line-height: 1.15;
}

.feature-text p {
    font-size: 15px;
    line-height: 1.85;
    max-width: 460px;
}

.feature-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #3a2e22;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s ease;
}

.feature-row:hover .feature-image img { transform: scale(1.04); }

.light-row {
    background: var(--cream-soft);
    color: var(--sand-dark);
}
.light-row .feature-title { color: var(--sand-dark); }
.light-row p              { color: var(--ink-soft); }

.dark-row {
    background: var(--sand);
    color: #fff;
}
.dark-row .feature-title { color: #fff; }
.dark-row p              { color: rgba(255,255,255,0.92); }

/* =========================================================
   MENU SECTION
   ========================================================= */
.menu-section {
    background: var(--cream);
    padding: 110px var(--gutter);
    text-align: center;
}

.menu-container { max-width: var(--max-w); margin: 0 auto; }

.menu-heading {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(34px, 4.2vw, 54px);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin: 0 0 10px;
}

.menu-subheading {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 60px;
}

.menu-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 980px;
    margin: 0 auto;
}

.menu-card {
    background: var(--sand);
    overflow: hidden;
    transition: transform .4s ease, box-shadow .4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.menu-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #6b5637;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.menu-card:hover .menu-card-image img { transform: scale(1.06); }

.menu-card-body {
    padding: 35px 25px 38px;
    color: #fff;
}

.menu-card-body h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 30px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 22px;
}

/* =========================================================
   PILL BUTTONS
   ========================================================= */
.pill-button {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 100px;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background-color .3s, color .3s, transform .3s;
    border: 1px solid transparent;
}

.pill-button:hover {
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}

.pill-button.outlined {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.8);
}

.pill-button.outlined:hover {
    background: #fff;
    color: var(--ink);
}

/* =========================================================
   PLAN VISIT
   ========================================================= */
.plan-visit {
    background: var(--sand);
    color: #fff;
    padding: 90px var(--gutter) 100px;
    text-align: center;
}

.plan-container { max-width: 760px; margin: 0 auto; }

.plan-copy {
    font-size: 14px;
    margin: 22px 0 38px;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
}

.plan-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--sand-deep);
    color: rgba(255,255,255,0.88);
    padding: 80px var(--gutter) 30px;
    font-size: 13px;
    line-height: 1.75;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    max-width: var(--max-w);
    margin: 0 auto 60px;
}

.footer-title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.footer-link {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: border-color .3s;
}
.footer-link:hover { border-color: #fff; }

.footer-address  { margin-bottom: 18px; }
.footer-hours    { margin: 22px 0; }
.footer-hours strong {
    color: #fff;
    font-weight: 500;
}

.callback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.callback-form input {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding: 10px 0;
    color: #fff;
    font-family: var(--sans);
    font-size: 13px;
    outline: none;
    transition: border-color .3s;
}
.callback-form input::placeholder { color: rgba(255,255,255,0.5); }
.callback-form input:focus { border-color: #fff; }

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    line-height: 1.5;
}

.privacy-consent input {
    width: 14px;
    height: 14px;
    margin: 3px 0 0;
    flex: 0 0 auto;
    accent-color: #fff;
}

.privacy-consent a {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: border-color .3s;
}

.privacy-consent a:hover {
    border-color: #fff;
}

.call-cost-note {
    display: inline-block;
    margin-top: 4px;
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    line-height: 1.4;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: none;
    justify-content: center;
    pointer-events: none;
}

.cookie-banner.is-visible {
    display: flex;
}

.cookie-banner-content {
    width: min(620px, 100%);
    padding: 18px 20px;
    background: rgba(61, 46, 31, 0.96);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 45px rgba(0,0,0,0.28);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.cookie-banner-content p {
    margin: 0 0 14px;
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-button {
    appearance: none;
    border: 1px solid #fff;
    background: #fff;
    color: var(--ink);
    padding: 10px 16px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .3s, background .3s, color .3s;
}

.cookie-button.secondary {
    background: transparent;
    color: #fff;
}

.cookie-button:hover {
    opacity: .78;
}

.floating-book-now {
    position: fixed;
    right: 24px;
    bottom: 112px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    height: 48px;
    padding: 0 22px;
    background: var(--ink);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 14px 34px rgba(0,0,0,0.24);
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}

.floating-book-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0,0,0,0.3);
    background: var(--sand-deep);
}

.floating-book-now-text {
    position: relative;
    z-index: 2;
}

.floating-book-now-beacon {
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(255,255,255,0.44);
    animation: book-now-beacon 1.8s ease-out infinite;
    pointer-events: none;
}

@keyframes book-now-beacon {
    0% {
        opacity: .9;
        transform: scale(.92);
    }

    100% {
        opacity: 0;
        transform: scale(1.18);
    }
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-button {
        width: 100%;
    }

    .floating-book-now {
        right: 14px;
        bottom: 108px;
        min-width: 112px;
        height: 44px;
        padding: 0 18px;
        font-size: 10px;
    }
}

.link-button {
    background: none;
    border: 0;
    color: #fff;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 0 0;
    cursor: pointer;
    align-self: flex-start;
    transition: opacity .3s;
}
.link-button:hover { opacity: 0.7; }

.footer-social {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin: 0 auto 24px;
    max-width: var(--max-w);
}

.footer-social a {
    color: #fff;
    opacity: 0.85;
    transition: opacity .3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 22px; height: 22px; }

.social-text {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-top: 10px;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a { transition: color .3s; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   REVEAL ON SCROLL
   (only applied when JS marks <html> with .js-on)
   ========================================================= */
.js-on .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s ease, transform .9s ease;
}
.js-on .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .nav { grid-template-columns: auto 1fr auto; }
    .nav-left, .nav-right {
        position: fixed;
        top: 0; right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: var(--ink);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right .4s ease;
        padding: 30px;
    }
    .nav-left  { left: -100%; right: auto; transition: left .4s ease; }
    .nav.open .nav-left  { left: 0; }
    .nav.open .nav-right { right: 0; }
    .nav-toggle { display: flex; }

    .feature-row    { grid-template-columns: 1fr; }
    .dark-row .feature-image { order: -1; }

    .menu-cards     { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
    .carousel-slide   { flex: 0 0 calc((100% - 14px) / 2); }
}

@media (max-width: 600px) {
    .carousel-slide  { flex: 0 0 100%; }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .hero { min-height: 600px; }
    .hero-content    { padding-top: 26vh; }
    .footer-bottom   { flex-direction: column; gap: 10px; text-align: center; }
}

/* =========================================================
   PRELOADER — écran de carregamento
   ========================================================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: var(--ink);
    transition: opacity .7s ease, visibility .7s ease;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.preloader-logo {
    filter: invert(1);
    opacity: 0;
    transform: translateY(10px);
    animation: pre-logo-in 1s .1s ease forwards;
}

.preloader-line {
    position: relative;
    display: block;
    width: 180px;
    height: 1px;
    background: rgba(255,255,255,0.16);
    overflow: hidden;
}

.preloader-line-fill {
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, var(--sand) 45%, #fff 55%, transparent);
    animation: pre-sweep 1.4s ease-in-out infinite;
}

/* enquanto carrega, trava o scroll */
body.is-loading { overflow: hidden; }

@keyframes pre-logo-in {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pre-sweep {
    0%   { left: -100%; }
    100% { left: 100%; }
}

/* =========================================================
   ANIMAÇÕES REFINADAS
   ========================================================= */

/* Entrada da navegação */
.js-on .site-header {
    opacity: 0;
    transform: translateY(-16px);
}
.js-on body.page-ready .site-header {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s .2s ease, transform 1s .2s ease,
                background-color .4s ease, padding .3s ease;
}

/* Reveal — variantes direcionais + stagger */
.js-on .reveal.from-left  { transform: translateX(-32px); }
.js-on .reveal.from-right { transform: translateX(32px); }
.js-on .reveal.from-left.is-visible,
.js-on .reveal.from-right.is-visible { transform: none; }

.js-on .reveal.is-visible { transition-delay: var(--reveal-delay, 0s); }

/* Feature rows: imagem e texto entram de lados opostos */
.js-on .feature-row .feature-text.reveal  { transform: translateY(28px); }
.js-on .feature-row .feature-image.reveal { transform: translateY(28px) scale(.98); }
.js-on .feature-row .feature-image.reveal.is-visible { transform: none; }

/* Zoom lento e contínuo no fundo do hero (Ken Burns) */
.hero-image {
    animation: hero-kenburns 18s ease-out both;
}
@keyframes hero-kenburns {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}

/* Sublinhado animado nos títulos de secção ao aparecer */
.section-label .label-line { transform-origin: center; }
.js-on .reveal .section-label .label-line {
    transform: scaleX(0);
    transition: transform .8s .2s cubic-bezier(.6,.2,.2,1);
}
.js-on .reveal.is-visible .section-label .label-line {
    transform: scaleX(1);
}

/* Cartões de menu com leve subida ao revelar */
.js-on .menu-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease, box-shadow .4s ease;
}
.js-on .menu-container.is-visible .menu-card { opacity: 1; transform: none; }
.js-on .menu-container.is-visible .menu-card:nth-child(2) { transition-delay: .12s; }

/* Slides da galeria: brilho suave ao passar o rato */
.carousel-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.28));
    opacity: 0;
    transition: opacity .5s ease;
    pointer-events: none;
}
.carousel-slide { position: relative; }
.carousel-slide:hover::after { opacity: 1; }

/* Botão pill: brilho a atravessar no hover */
.pill-button { position: relative; overflow: hidden; }
.pill-button::before {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left .6s ease;
}
.pill-button:hover::before { left: 120%; }

/* =========================================================
   ACESSIBILIDADE — respeitar reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .preloader-line-fill { animation: none; }
    .hero-image { animation: none; }
}

/* Stagger suave nas colunas do rodapé */
.js-on .footer-col.reveal.is-visible:nth-child(2) { transition-delay: .12s; }
.js-on .footer-col.reveal.is-visible:nth-child(3) { transition-delay: .24s; }


@media (max-width: 800px) {
   .hero-eyebrow {
      font-size: 1.1rem;
   }
   .hero-title {
      font-size: 2rem;
   }
   .nav {
      gap: 0;
   }
   .nav-toggle {
      align-items: flex-end;
   }
   .nav-left, .nav-right {
      width: 50%;
   }
   .nav a {
      z-index: 9999
   }
}