/* ============================================================
   JIMBARAN — DESIGN SYSTEM
   Marca: Azul marinho #2E3448 · Acento: Dourado · Neutro: Creme
   Camadas: tokens primitivos -> tokens semânticos -> componentes
   ============================================================ */

:root {
    /* --- Primitivos · Azul marinho (escala ancorada em #2E3448) --- */
    --navy-950: #15181f;
    --navy-900: #1b2030;
    --navy-800: #232838;
    --navy-700: #2e3448;   /* COR DA MARCA */
    --navy-600: #3a4258;
    --navy-500: #4c5670;
    --navy-400: #6b7488;
    --navy-300: #9aa1b2;
    --navy-200: #c9ceda;
    --navy-100: #e6e9f0;
    --navy-50:  #f2f4f8;

    /* --- Primitivos · Dourado (acessível por contexto) --- */
    --gold: #c5a880;          /* acento sobre fundo ESCURO */
    --gold-hover: #b0915f;
    --gold-deep: #8a6b3a;     /* acento/texto sobre fundo CLARO (AA no creme) */

    /* --- Primitivos · Neutros quentes --- */
    --cream: #f9f8f6;
    --cream-alt: #f3f0ea;
    --white: #ffffff;
    --ink-text: #23262e;      /* texto neutro (era esverdeado) */
    --muted-text: #6e7480;    /* cinza-azulado (era esverdeado) */

    /* --- Semânticos --- */
    --bg: var(--cream);
    --surface: var(--white);
    --surface-alt: var(--cream-alt);
    --ink: var(--navy-700);
    --ink-deep: var(--navy-900);
    --text: var(--ink-text);
    --text-muted: var(--muted-text);
    --on-dark: rgba(255, 255, 255, 0.86);
    --on-dark-muted: rgba(255, 255, 255, 0.62);
    --accent: var(--gold);
    --accent-on-light: var(--gold-deep);
    --border: rgba(46, 52, 72, 0.12);
    --border-strong: rgba(46, 52, 72, 0.22);
    --focus: var(--gold);

    /* --- Aliases legados (compat. com regras antigas) --- */
    --color-dark: var(--navy-800);
    --color-darker: var(--navy-900);
    --color-green: var(--navy-800);
    --color-gold: var(--gold);
    --color-gold-hover: var(--gold-hover);
    --color-light: var(--cream);
    --color-white: var(--white);
    --color-text: var(--text);
    --color-muted: var(--text-muted);

    /* --- Tipografia --- */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;

    /* Escala fluida */
    --text-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
    --text-sm:   clamp(0.82rem, 0.79rem + 0.18vw, 0.92rem);
    --text-base: clamp(1rem, 0.97rem + 0.18vw, 1.0625rem);
    --text-lg:   clamp(1.10rem, 1.02rem + 0.40vw, 1.30rem);
    --text-xl:   clamp(1.30rem, 1.14rem + 0.70vw, 1.70rem);
    --text-2xl:  clamp(1.60rem, 1.30rem + 1.30vw, 2.30rem);
    --text-display: clamp(2.5rem, 1.85rem + 3.0vw, 4rem);
    --text-hero:    clamp(3rem, 2.0rem + 5.0vw, 5.25rem);

    /* --- Espaçamento (ritmo 4/8) --- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 2.5rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --section-y: clamp(4rem, 9vw, 8rem);

    /* --- Raio --- */
    --radius-xs: 2px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* --- Elevação (sombra com tinta navy) --- */
    --shadow-sm: 0 1px 2px rgba(46, 52, 72, 0.06), 0 2px 6px rgba(46, 52, 72, 0.07);
    --shadow-md: 0 8px 24px rgba(46, 52, 72, 0.10);
    --shadow-lg: 0 20px 48px rgba(46, 52, 72, 0.16);
    --shadow-xl: 0 32px 70px rgba(46, 52, 72, 0.22);

    /* --- Movimento --- */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast: 0.25s;
    --dur-base: 0.4s;
    --dur-slow: 0.8s;
    --transition-fast: var(--dur-fast) ease;       /* alias legado */
    --transition-slow: var(--dur-slow) var(--ease-out); /* alias legado */

    /* --- z-index --- */
    --z-overlay: 99;
    --z-nav: 100;
    --z-modal: 1000;

    /* --- Layout --- */
    --container-max-width: 1200px;
    --container-padding: 2rem;
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    font-size: var(--text-base);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0.005em;
}

p { max-width: 68ch; }

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--dur-fast) ease;
}

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

/* Foco visível consistente (anel dourado) */
:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

::selection {
    background: var(--navy-700);
    color: var(--gold);
}

/* --- Utilities --- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-y) 0;
}

.section-light  { background-color: var(--surface); }
.section-cream  { background-color: var(--bg); }
.section-dark   { background-color: var(--navy-900); color: var(--on-dark); }
.section-darker { background-color: var(--navy-950); color: var(--on-dark); }
.section-deep   { background-color: var(--navy-800); color: var(--on-dark); }
/* alias legado */
.section-green  { background-color: var(--navy-800); color: var(--on-dark); }

.pattern-lines {
    background-image: repeating-linear-gradient(
        90deg,
        rgba(138, 107, 58, 0.12) 0,
        rgba(138, 107, 58, 0.12) 1px,
        transparent 1px,
        transparent 22px
    );
}

.pattern-lines-dark {
    background-image: repeating-linear-gradient(
        90deg,
        rgba(197, 168, 128, 0.05) 0,
        rgba(197, 168, 128, 0.05) 1px,
        transparent 1px,
        transparent 22px
    );
}

.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-6); }

.color-gold { color: var(--accent); }
.color-green { color: var(--ink); } /* alias legado -> marca */

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: center;
}

@media (min-width: 768px) {
    .grid-2-cols {
        grid-template-columns: 1fr 1fr;
    }
}

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--accent-on-light);
    letter-spacing: 0.22em;
    margin-bottom: var(--space-4);
    font-weight: 500;
}
/* Eyebrow sobre fundos escuros usa o dourado claro */
.section-dark .eyebrow,
.section-darker .eyebrow,
.section-deep .eyebrow,
.section-green .eyebrow,
.hero .eyebrow { color: var(--accent); }

.section-title {
    font-size: var(--text-display);
    margin-bottom: var(--space-5);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.section-title i {
    font-style: italic;
    font-weight: 400;
    color: var(--accent-on-light);
}
.section-dark .section-title i,
.section-darker .section-title i,
.section-deep .section-title i,
.section-green .section-title i,
.hero .section-title i,
.section-title.color-gold i { color: var(--accent); }

.section-desc {
    max-width: 62ch;
    font-size: var(--text-lg);
    color: var(--text-muted);
}
.section-dark .section-desc,
.section-darker .section-desc,
.section-deep .section-desc { color: var(--on-dark-muted); }

.section-header { max-width: 760px; }
.section-header.text-center { margin-inline: auto; }

/* --- Buttons --- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 1.05rem 2.4rem;
    border-radius: var(--radius-xs);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-sm);
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--dur-fast) ease,
                color var(--dur-fast) ease,
                border-color var(--dur-fast) ease,
                transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) ease;
    border: 1px solid transparent;
    outline: none;
    overflow: hidden;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background-color: var(--ink);
    color: var(--gold);
    border-color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--ink);
    box-shadow: none;
}
.section-dark .btn-primary:hover,
.section-darker .btn-primary:hover,
.section-deep .btn-primary:hover,
.section-green .btn-primary:hover,
.hero .btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--gold);
    color: var(--accent-on-light);
}
.btn-outline:hover {
    background-color: var(--gold);
    color: var(--navy-900);
}

.btn.gold-outline {
    border-color: var(--gold);
    color: var(--accent-on-light);
}
.btn.gold-outline:hover {
    background-color: var(--gold);
    color: var(--navy-900);
}
/* Sobre fundo escuro, o texto do contorno usa dourado claro — apenas em
   repouso (:not(:hover)) para não anular a cor de texto do estado :hover. */
.section-dark .btn-outline:not(:hover),
.section-darker .btn-outline:not(:hover),
.section-deep .btn-outline:not(:hover),
.section-green .btn-outline:not(:hover),
.nav-overlay .btn-outline:not(:hover),
.hero .btn-outline:not(:hover),
.section-dark .btn.gold-outline:not(:hover),
.section-darker .btn.gold-outline:not(:hover),
.section-deep .btn.gold-outline:not(:hover),
.section-green .btn.gold-outline:not(:hover),
.nav-overlay .btn.gold-outline:not(:hover),
.hero .btn.gold-outline:not(:hover) { color: var(--gold); }

.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.full-width { width: 100%; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-nav);
    background-color: transparent;
    transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.navbar.scrolled {
    background-color: rgba(249, 248, 246, 0.82);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.navbar.menu-open {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.navbar-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* logo sempre no centro real */
    align-items: center;
    padding: 1rem 0;
    transition: padding var(--dur-fast) ease;
}
.navbar.scrolled .navbar-container { padding: 0.5rem 0; }

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
}

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

.logo {
    flex: 0 0 auto;
}

.logo-img {
    min-height: 72px;
    height: 72px;
    width: auto;
    display: block;
    transition: height var(--dur-fast) ease;
}
.navbar.scrolled .logo-img { height: 60px; min-height: 60px; }

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
    z-index: calc(var(--z-nav) + 1);
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--gold);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.navbar.scrolled .menu-toggle {
    color: var(--ink);
}

.navbar.menu-open .menu-toggle {
    color: var(--white) !important;
}

/* --- Fullscreen Menu Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--navy-950);
    background-image:
        radial-gradient(120% 80% at 100% 0%, rgba(46, 52, 72, 0.55), transparent 60%),
        repeating-linear-gradient(90deg, rgba(197,168,128,0.05) 0, rgba(197,168,128,0.05) 1px, transparent 1px, transparent 26px);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow) var(--ease-out);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem;
}

.nav-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
    margin-block: auto;
    counter-reset: navitem;
}

.nav-link {
    position: relative;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
    display: inline-block;
}

/* Numeração editorial dos itens do menu */
.nav-links-list li:not(.mt-4) .nav-link::before {
    counter-increment: navitem;
    content: "0" counter(navitem);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    vertical-align: super;
    margin-right: 0.6rem;
    opacity: 0.7;
}

.nav-link:hover {
    color: var(--gold);
    transform: translateX(10px);
}

.nav-social {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}
.nav-social .eyebrow { color: var(--gold); margin-bottom: 0; }

@media (max-width: 768px) {
    .logo-img {
        min-height: 60px;
        height: 60px;
    }
}

@media (min-width: 768px) {
    .nav-overlay {
        width: 460px;
        left: auto;
        right: -460px;
        opacity: 1;
        visibility: visible;
        transition: transform var(--dur-slow) var(--ease-out);
        box-shadow: -20px 0 60px rgba(21, 24, 31, 0.5);
    }
    .nav-overlay.active {
        transform: translateX(-460px);
    }
    .nav-link {
        font-size: 2.5rem;
    }
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background-color: var(--navy-800);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0%, rgba(21, 24, 31, 0.82) 100%),
        linear-gradient(rgba(46, 52, 72, 0.30), rgba(21, 24, 31, 0.74));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 820px;
    margin-top: 80px;
}

/* divisor dourado acima do título */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--gold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    margin-bottom: var(--space-5);
}
.hero-eyebrow::before,
.hero-eyebrow::after {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.hero-title {
    color: var(--white);
    font-size: var(--text-hero);
    font-weight: 500;
    margin-bottom: var(--space-5);
    letter-spacing: -0.015em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    color: rgba(249, 248, 246, 0.88);
    font-size: var(--text-lg);
    margin: 0 auto var(--space-7);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* scroll-cue discreto */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(249, 248, 246, 0.7);
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.hero-scroll span {
    width: 1px;
    height: 46px;
    background: linear-gradient(var(--gold), transparent);
    animation: scrollCue 2.4s var(--ease-in-out) infinite;
    transform-origin: top;
}
@keyframes scrollCue {
    0%   { transform: scaleY(0); opacity: 0; }
    40%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* --- Sobre · Imagens Sobrepostas --- */
.sobre-image-group {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
}
.image-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    z-index: 2;
}
.image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    border: 10px solid var(--cream);
    border-radius: var(--radius-sm);
}
.image-pattern {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background-image: repeating-linear-gradient(90deg, rgba(138,107,58,0.2) 0, rgba(138,107,58,0.2) 1px, transparent 1px, transparent 15px);
    z-index: 1;
}

/* --- A Pousada · Premium Cards --- */
.premium-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-top: var(--space-10);
}

@media (min-width: 600px) {
    .premium-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .premium-cards-grid { grid-template-columns: repeat(4, 1fr); }
}

.premium-card {
    position: relative;
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color var(--dur-base) ease;
    pointer-events: none;
}
.premium-card:hover::before { border-color: rgba(197, 168, 128, 0.55); }

.premium-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 24, 31, 0.92) 0%, rgba(21, 24, 31, 0.20) 52%, transparent 100%);
    transition: opacity var(--dur-slow) var(--ease-out);
}

.premium-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-6) var(--space-5);
    z-index: 2;
    transform: translateY(1rem);
    transition: transform var(--dur-slow) var(--ease-out);
}

.premium-card:hover .premium-card-content {
    transform: translateY(0);
}
.premium-card:hover::after {
    background: linear-gradient(to top, rgba(21, 24, 31, 0.95) 0%, rgba(21, 24, 31, 0.42) 60%, transparent 100%);
}

.premium-card-title {
    color: var(--gold);
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
    font-family: var(--font-heading);
}

.premium-card-text {
    color: var(--white);
    font-size: var(--text-sm);
    opacity: 0.82;
}

/* --- Experiências · Faixa (nova seção) --- */
.experiencias {
    background-color: var(--ink);
    color: var(--on-dark);
    padding: var(--space-10) 0;
}
.exp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8) var(--space-4);
}
@media (min-width: 860px) {
    .exp-grid { grid-template-columns: repeat(4, 1fr); }
    .exp-item + .exp-item { border-left: 1px solid rgba(197, 168, 128, 0.22); }
}
.exp-item {
    text-align: center;
    padding: 0 var(--space-4);
}
.exp-icon {
    font-size: 2.4rem;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-3);
}
.exp-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--white);
    margin-bottom: var(--space-1);
}
.exp-text {
    font-size: var(--text-sm);
    color: var(--on-dark-muted);
    margin-inline: auto;
}

/* --- Galeria Showcase --- */
.gallery-showcase {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: var(--space-5);
    margin-top: var(--space-10);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: translateZ(0);
    grid-column: span 12;
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(3) { grid-row: span 2; }

@media (min-width: 768px) {
    .gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
    .gallery-item:nth-child(2) { grid-column: span 5; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 5; grid-row: span 2; }
    .gallery-item:nth-child(4) { grid-column: span 7; grid-row: span 2; }
    .gallery-item:nth-child(5) { grid-column: span 5; grid-row: span 1; }
    .gallery-item:nth-child(6) { grid-column: span 6; grid-row: span 2; }
    .gallery-item:nth-child(7) { grid-column: span 6; grid-row: span 2; }
}

@media (min-width: 1024px) {
    .gallery-showcase {
        grid-auto-rows: 280px;
    }
    .gallery-item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
    .gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
    .gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 2; }
    .gallery-item:nth-child(4) { grid-column: span 3; grid-row: span 1; }
    .gallery-item:nth-child(5) { grid-column: span 6; grid-row: span 1; }
    .gallery-item:nth-child(6) { grid-column: span 3; grid-row: span 1; }
    .gallery-item:nth-child(7) { grid-column: span 3; grid-row: span 1; }
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 24, 31, 0.95) 0%, rgba(21, 24, 31, 0.40) 40%, rgba(21, 24, 31, 0.10) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-category {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: var(--space-1);
    display: block;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--white);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.5s var(--ease-out);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item:hover {
    z-index: 10;
}

/* --- Bistrot Immersive --- */
.bistrot-immersive {
    position: relative;
    padding: var(--space-10) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.bistrot-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}
.bistrot-content-box {
    position: relative;
    z-index: 2;
    background-color: var(--navy-900);
    padding: var(--space-10);
    max-width: 600px;
    margin-left: auto;
    border: 1px solid rgba(197, 168, 128, 0.22);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .bistrot-content-box { padding: var(--space-6); margin: 0 0.5rem; }
}

.bistrot-actions { margin-top: var(--space-6); }

/* --- Footer --- */
.footer {
    background-color: var(--navy-950);
    color: var(--on-dark-muted);
    padding: var(--space-10) 0 var(--space-6);
}
.footer-logo-img {
    height: 100px;
    width: auto;
    margin: 0 auto var(--space-6);
    display: block;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--cream);
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.social-links a:hover {
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
}
.copyright {
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
}
.copyright p { margin: 0; }
.copyright a {
    color: var(--cream);
    opacity: 0.82;
    transition: color var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.copyright a:hover { color: var(--gold); opacity: 1; }

@media (min-width: 768px) {
    .copyright {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: var(--space-5);
        text-align: left;
    }
    .copyright-center { text-align: center; }
    .copyright-right { text-align: right; }
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(21, 24, 31, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-fast) ease, visibility var(--dur-fast) ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--cream);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    position: relative;
    transform: scale(0.96) translateY(20px);
    transition: transform var(--dur-base) var(--ease-out);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    border-radius: var(--radius-pill);
    transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.modal-close:hover { color: var(--ink); background-color: var(--cream-alt); }

.modal-header { margin-bottom: var(--space-6); text-align: center; }
.modal-title { font-size: var(--text-2xl); color: var(--ink); margin-bottom: var(--space-1); }
.modal-subtitle { font-size: var(--text-sm); color: var(--text-muted); }

.form-group { margin-bottom: var(--space-5); position: relative; }
.form-row { display: flex; gap: var(--space-4); }
.half { flex: 1; }

@media (max-width: 480px) {
    .form-row { flex-direction: column; gap: 0; }
}

label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

input, select, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--text-base);
    background-color: var(--white);
    color: var(--text);
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.25);
}

.select-wrapper { position: relative; }
.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}
select { appearance: none; -webkit-appearance: none; cursor: pointer; }

textarea { resize: vertical; min-height: 88px; }

.error-msg {
    display: none;
    color: #c0392b;
    font-size: var(--text-xs);
    margin-top: var(--space-1);
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea { border-color: #c0392b; }
.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2); }
.form-group.error .error-msg { display: block; }

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

@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;
    }
    .fade-in-up, .fade-in-left, .fade-in-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hero-scroll span { animation: none; }
}

/* --- Seção Localização --- */
.localizacao-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-8);
}

.localizacao-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.info-card {
    display: flex;
    gap: var(--space-5);
    align-items: flex-start;
    padding: var(--space-5);
    background-color: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.info-card:hover {
    transform: translateX(8px);
    background-color: var(--cream-alt);
    box-shadow: var(--shadow-sm);
}

.address-card {
    background-color: var(--navy-800);
    color: var(--white);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--space-6);
}
.address-card:hover { background-color: var(--navy-700); }

.address-card .info-card-text h3 {
    color: var(--gold);
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.address-card .info-card-text p {
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--on-dark);
}

.address-card .info-card-icon i {
    color: var(--gold);
    font-size: 2rem;
}

.info-card-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.info-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-on-light);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-card-text h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
    color: var(--ink);
    letter-spacing: 0.01em;
}

.info-card-text p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.info-card-text strong {
    color: var(--ink);
    font-weight: 500;
}

.localizacao-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-4);
    flex-wrap: wrap;
}

.localizacao-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 1rem 2rem;
}

.localizacao-map-wrapper {
    position: relative;
    width: 100%;
    min-height: 450px;
    height: 100%;
}

.map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 1px solid rgba(197, 168, 128, 0.4);
    background-color: var(--cream);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    overflow: hidden;
    z-index: 2;
}

.map-frame iframe {
    filter: grayscale(0.2) contrast(1.05);
    transition: filter var(--dur-fast) ease;
}

.map-frame:hover iframe {
    filter: none;
}

.map-frame-decor {
    position: absolute;
    top: -15px;
    right: -15px;
    bottom: 15px;
    left: 15px;
    border: 1px solid var(--gold);
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
    transition: transform var(--dur-slow) var(--ease-out);
}

.localizacao-map-wrapper:hover .map-frame-decor {
    transform: translate(-5px, 5px);
}

@media (min-width: 1024px) {
    .localizacao-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: var(--space-10);
        align-items: stretch;
    }
}

/* --- CTA Final --- */
.cta-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-7);
    color: var(--on-dark);
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    justify-content: center;
    align-items: stretch;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .cta-actions {
        flex-direction: row;
        align-items: center;
        max-width: none;
    }
    .cta-actions .btn {
        min-width: 240px;
    }
}

/* ============================================================
   COMPONENTES ADICIONAIS — LGPD, páginas internas e 404
   ============================================================ */

/* --- Banner de consentimento de cookies (LGPD) --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900; /* acima da navbar (100), abaixo do modal (1000) */
    background-color: var(--navy-900);
    color: var(--on-dark);
    border-top: 1px solid rgba(197, 168, 128, 0.22);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform var(--dur-base) var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
}
@media (min-width: 768px) {
    .cookie-banner-inner {
        flex-direction: row;
        justify-content: space-between;
        gap: var(--space-6);
    }
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}
.cookie-banner-text i {
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.cookie-banner-text p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--on-dark);
    max-width: 72ch;
}
.cookie-banner-text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner-text a:hover { color: var(--gold-hover); }

.cookie-banner-actions {
    display: flex;
    gap: var(--space-3);
    width: 100%;
    flex-shrink: 0;
}
.cookie-banner .btn {
    flex: 1;
    padding: 0.75rem 1.6rem;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .cookie-banner-actions { width: auto; }
    .cookie-banner .btn { flex: 0 0 auto; }
}
/* Contorno dourado claro sobre o fundo escuro do banner */
.cookie-banner .btn.gold-outline:not(:hover),
.cookie-banner .btn-outline:not(:hover) { color: var(--gold); }
/* Primário no banner escuro: hover não pode virar texto navy (invisível) */
.cookie-banner .btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

/* --- Placeholder do mapa (carregado só após consentimento) --- */
.map-consent {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6);
    text-align: center;
    background-color: var(--navy-800);
    color: var(--on-dark);
}
.map-consent.is-loaded { display: block; padding: 0; }
.map-consent iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
}
.map-consent-icon {
    font-size: 2.6rem;
    color: var(--gold);
    line-height: 1;
}
.map-consent-text {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--on-dark-muted);
    max-width: 40ch;
}
.map-consent .btn.gold-outline:not(:hover),
.map-consent .btn-outline:not(:hover) { color: var(--gold); }

/* --- Cabeçalho das páginas internas (privacidade, 404) --- */
.page-header { background-color: var(--navy-900); }
.page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}
.page-nav .logo-img {
    height: 56px;
    min-height: 56px;
    width: auto;
}
.page-nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--on-dark);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color var(--dur-fast) ease;
}
.page-nav-link:hover { color: var(--gold); }
.page-nav-link i { font-size: 1.15rem; }

.page-hero {
    background-color: var(--navy-900);
    color: var(--on-dark);
    padding: var(--space-8) 0 var(--space-10);
    text-align: center;
    border-bottom: 1px solid rgba(197, 168, 128, 0.20);
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 {
    font-size: var(--text-display);
    color: var(--white);
    margin: 0;
    line-height: 1.05;
}
.page-hero h1 i { font-style: italic; font-weight: 400; color: var(--accent); }

/* --- Conteúdo jurídico (Política de Privacidade) --- */
.legal {
    padding: var(--section-y) 0;
    background-color: var(--bg);
}
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}
.legal-updated {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}
.legal-content h2 {
    font-size: var(--text-2xl);
    color: var(--ink);
    margin: var(--space-8) 0 var(--space-4);
    padding-top: var(--space-2);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
    font-size: var(--text-xl);
    color: var(--ink);
    margin: var(--space-6) 0 var(--space-3);
}
.legal-content p {
    color: var(--text);
    margin-bottom: var(--space-4);
    max-width: none;
}
.legal-content ul,
.legal-content ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
}
.legal-content li {
    color: var(--text);
    margin-bottom: var(--space-2);
}
.legal-content a {
    color: var(--accent-on-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--gold-deep); }
.legal-content strong { color: var(--ink); font-weight: 700; }
/* Campos a preencher pelo cliente (razão social, CNPJ, e-mail…) */
.legal-content mark {
    background-color: rgba(197, 168, 128, 0.24);
    color: var(--ink);
    padding: 0 0.3em;
    border-radius: var(--radius-xs);
}

/* --- Página 404 --- */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-y) var(--container-padding);
    background-color: var(--bg);
}
.error-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 18vw, 11rem);
    line-height: 1;
    color: var(--ink);
    margin-bottom: var(--space-4);
}
.error-code i { font-style: italic; color: var(--accent-on-light); }
.error-title {
    font-size: var(--text-2xl);
    color: var(--ink);
    margin-bottom: var(--space-4);
}
.error-text {
    color: var(--text-muted);
    max-width: 48ch;
    margin: 0 auto var(--space-7);
}
.error-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}
