/* ==========================================================================
   Hotel Frical — Design System
   Tecnologias: CSS Cascade Layers, Nesting, color-mix(), container queries,
   scroll-driven animations, View Transitions, :has(), Popover API, <dialog>.
   Nenhum framework, nenhuma dependência externa.
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections, pages, utilities;

/* ------------------------------------------------------------- Fontes */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-normal-latin.woff2?v=20261016164940") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/montserrat-normal-latin-ext.woff2?v=20261016164940") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-italic-latin.woff2?v=20261016164940") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/baloo2-normal-latin.woff2?v=20261016164940") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/baloo2-normal-latin-ext.woff2?v=20261016164940") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------- Reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, svg, video, iframe { display: block; max-width: 100%; }
  input, button, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; }
  a { color: inherit; text-decoration: none; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  h1, h2, h3, h4 { overflow-wrap: break-word; }
  [hidden] { display: none !important; }
}

/* ------------------------------------------------------------- Tokens */
@layer tokens {
  :root {
    /* Paleta oficial (manual de identidade) */
    /* Cores oficiais do Manual de Identidade Visual: #2e2e5d, #232347,
       #c7ac6f, #b0935a e #eedcb6. As demais são variações para contraste. */
    --navy-950: #15152e;
    --navy-900: #1c1c3d;
    --navy-800: #232347;   /* marinho profundo (manual) */
    --navy-700: #2e2e5d;   /* azul Frical (manual) */
    --navy-600: #3b3b76;
    --navy-500: #4f4f94;
    --navy-300: #9d9dcc;
    --gold-700: #7d6230;   /* dourado escurecido: texto pequeno sobre fundo claro (WCAG AA) */
    --gold-600: #b0935a;   /* dourado escuro (manual) */
    --gold-500: #c7ac6f;   /* dourado Frical (manual) */
    --gold-400: #d8c08f;
    --gold-200: #eedcb6;   /* creme dourado (manual) */
    --cream-100: #f7efe0;
    --cream-50: #fcf8f1;
    --white: #ffffff;
    --ink: #1c1b3c;
    --muted: #5c5b7c;
    --success: #2f9e6b;
    --danger: #c2413b;

    /* Tipografia */
    --font-display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
    --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
    --fs-md: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    --fs-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
    --fs-2xl: clamp(1.875rem, 1.5rem + 1.8vw, 3rem);
    --fs-3xl: clamp(2.5rem, 1.8rem + 3.4vw, 4.75rem);

    /* Espaços & forma */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
    --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
    --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
    --container: 1240px;
    --gutter: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
    --radius-sm: 10px; --radius-md: 14px; --radius: 18px; --radius-lg: 28px; --radius-xl: 40px;
    --radius-pill: 999px;

    /* Sombras & efeitos */
    --shadow-sm: 0 1px 2px rgb(16 15 43 / 0.06), 0 2px 8px rgb(16 15 43 / 0.06);
    --shadow: 0 10px 30px -10px rgb(16 15 43 / 0.25), 0 4px 10px -4px rgb(16 15 43 / 0.08);
    --shadow-lg: 0 40px 80px -30px rgb(16 15 43 / 0.45);
    --shadow-gold: 0 12px 30px -10px color-mix(in srgb, var(--gold-500) 70%, transparent);
    --glass: color-mix(in srgb, var(--navy-900) 55%, transparent);
    --glass-border: color-mix(in srgb, white 14%, transparent);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --header-h: 84px;
  }
}

/* ------------------------------------------------------------- Base */
@layer base {
  @view-transition { navigation: auto; }

  html {
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    accent-color: var(--gold-500);
    overflow-x: hidden;
  }
  body {
    font-family: var(--font-body);
    font-size: var(--fs-md);
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }
  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
    color: var(--navy-700);
  }
  p { text-wrap: pretty; }
  ::selection { background: var(--gold-500); color: var(--navy-900); }
  :focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 6px;
  }
  .ico {
    width: 1.25em; height: 1.25em;
    flex: none;
    stroke: currentColor;
  }
}

/* ------------------------------------------------------------- Layout */
@layer layout {
  .container {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
  }
  .section { padding-block: var(--section-y); position: relative; }
  .section--navy {
    background: var(--navy-800);
    color: color-mix(in srgb, white 82%, var(--navy-300));
    & h2, & h3 { color: var(--white); }
  }
  .section--cream { background: var(--cream-100); }
  .section-head {
    display: grid;
    gap: var(--space-4);
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
    &.is-center { margin-inline: auto; text-align: center; justify-items: center; }
    & h2 { font-size: var(--fs-2xl); }
    & p { font-size: var(--fs-lg); color: var(--muted); }
  }
  .section--navy .section-head p { color: color-mix(in srgb, white 72%, transparent); }
}

/* ------------------------------------------------------------- Components */
@layer components {

  /* Skip link */
  .skip-link {
    position: fixed; top: 0.75rem; left: 0.75rem; z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: var(--gold-500); color: var(--navy-900);
    font-weight: 700; border-radius: var(--radius-pill);
    translate: 0 -200%;
    transition: translate 0.25s var(--ease-out);
    &:focus-visible { translate: 0 0; }
  }

  /* Eyebrow */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-700);
    &::before {
      content: ""; width: 28px; height: 2px; border-radius: 2px;
      background: currentColor;
    }
  }
  .section--navy .eyebrow, .hero .eyebrow { color: var(--gold-400); }

  /* Swoosh dourado (assinatura visual das artes) */
  .swoosh {
    position: relative;
    white-space: nowrap;
    isolation: isolate;
    &::after {
      content: "";
      position: absolute;
      left: -4%; right: -6%; bottom: -0.12em;
      height: 0.32em;
      z-index: -1;
      background: var(--gold-500);
      mask: url("../img/brand/swoosh.svg?v=20261016164940") center / 100% 100% no-repeat;
      transform-origin: left center;
      animation: swoosh-in 1.1s 0.4s var(--ease-out) both;
    }
  }
  @keyframes swoosh-in { from { scale: 0 1; opacity: 0; } }

  /* Botões */
  .btn {
    --btn-bg: var(--navy-700);
    --btn-fg: var(--white);
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 3.25rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    font-size: var(--fs-sm);
    letter-spacing: 0.02em;
    line-height: 1.1;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.3s;
    & .ico { transition: translate 0.35s var(--ease-out); }
    &::before {
      content: "";
      position: absolute; inset: 0; z-index: -1;
      background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
      translate: -120% 0;
      transition: translate 0.8s var(--ease-out);
    }
    &:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
      & .ico:last-child { translate: 3px 0; }
      &::before { translate: 120% 0; }
    }
    &:active { transform: translateY(0) scale(0.98); }
  }
  .btn--gold {
    --btn-bg: linear-gradient(135deg, var(--gold-400), var(--gold-500) 45%, var(--gold-600));
    --btn-fg: var(--navy-900);
    &:hover { box-shadow: var(--shadow-gold); }
  }
  .btn--ghost {
    --btn-bg: color-mix(in srgb, white 8%, transparent);
    --btn-fg: var(--white);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
  }
  .btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--navy-700);
    border: 1.5px solid color-mix(in srgb, var(--navy-700) 25%, transparent);
    &:hover { border-color: var(--navy-700); }
  }
  .btn--sm { min-height: 2.6rem; padding: 0.6rem 1.15rem; }
  .btn--block { width: 100%; }

  /* Chips */
  .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
  .chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--navy-700) 6%, white);
    color: var(--navy-700);
    font-size: var(--fs-xs);
    font-weight: 600;
    & .ico { width: 1rem; height: 1rem; color: var(--gold-600); }
  }

  /* Estrelas */
  .stars {
    display: inline-flex; gap: 0.3rem; color: var(--gold-500);
    & .ico { width: 1.1rem; height: 1.1rem; fill: currentColor; stroke: none; }
    & .ico:nth-child(3) { width: 1.4rem; height: 1.4rem; }
    & .ico:nth-child(2), & .ico:nth-child(4) { width: 1.25rem; height: 1.25rem; }
    align-items: center;
  }

  /* Padrão de ondas (via mask = qualquer cor) */
  .waves {
    position: absolute; inset: 0;
    pointer-events: none;
    background: var(--waves-color, white);
    opacity: var(--waves-opacity, 0.05);
    mask: url("../img/brand/ondas.svg?v=20261016164940") 0 0 / var(--waves-size, 520px) auto repeat;
  }

  /* Ícone em círculo (como nas artes oficiais) */
  .badge-ico {
    display: grid; place-items: center;
    width: 4rem; height: 4rem;
    border-radius: 50%;
    background: var(--navy-700);
    color: var(--gold-500);
    box-shadow: inset 0 0 0 3px var(--navy-700), inset 0 0 0 5px var(--gold-500);
    & .ico { width: 1.7rem; height: 1.7rem; }
  }

  /* Divisor ondulado entre seções */
  .wave-divider {
    position: absolute; left: 0; right: 0; height: clamp(40px, 6vw, 90px);
    color: var(--cream-50);
    pointer-events: none;
    & svg { width: 100%; height: 100%; }
    &.is-bottom { bottom: -1px; }
    &.is-top { top: -1px; rotate: 180deg; }
  }

  /* Formulários */
  .field {
    display: grid; gap: 0.35rem;
    & label, & .field__label {
      font-size: var(--fs-xs);
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--gold-400);
    }
  }
  .input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: color-mix(in srgb, white 7%, transparent);
    color: var(--white);
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    &:hover { border-color: color-mix(in srgb, white 30%, transparent); }
    &:focus-visible {
      outline: none;
      border-color: var(--gold-500);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 25%, transparent);
    }
    &:user-invalid { border-color: #ff8a80; }
  }
  select.input {
    appearance: none;
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--gold-400) 50%), linear-gradient(135deg, var(--gold-400) 50%, transparent 50%);
    background-position: calc(100% - 1.15rem) 55%, calc(100% - 0.8rem) 55%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    & option { color: var(--ink); background: white; }
  }
  input[type="date"].input { color-scheme: dark; }

  /* Selo de parceiro */
  .partner-seal {
    --brand: var(--navy-700);
    display: grid; place-items: center;
    width: 3.25rem; height: 3.25rem;
    border-radius: 14px;
    background: var(--brand);
    color: white;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
    flex: none;
    box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.18);
    & img { width: 70%; height: 70%; object-fit: contain; }
  }

  /* Diálogo */
  .dialog {
    width: min(100% - 2rem, 640px);
    max-height: min(90dvh, 820px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--cream-50);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    translate: 0 24px;
    scale: 0.97;
    transition: opacity 0.35s var(--ease-out), translate 0.45s var(--ease-out), scale 0.45s var(--ease-out),
                overlay 0.35s allow-discrete, display 0.35s allow-discrete;
    &[open] { opacity: 1; translate: 0 0; scale: 1; }
    &::backdrop {
      background: rgb(16 15 43 / 0);
      backdrop-filter: blur(0);
      transition: background 0.35s, backdrop-filter 0.35s, overlay 0.35s allow-discrete, display 0.35s allow-discrete;
    }
    &[open]::backdrop { background: rgb(16 15 43 / 0.6); backdrop-filter: blur(6px); }
  }
  @starting-style {
    .dialog[open] { opacity: 0; translate: 0 24px; scale: 0.97; }
    .dialog[open]::backdrop { background: rgb(16 15 43 / 0); backdrop-filter: blur(0); }
  }
  .dialog__head {
    position: relative;
    padding: 1.75rem 1.75rem 1.5rem;
    background: var(--navy-800);
    color: white;
    overflow: hidden;
    & h2 { color: white; font-size: var(--fs-xl); position: relative; }
    & p { position: relative; color: color-mix(in srgb, white 75%, transparent); font-size: var(--fs-sm); margin-top: 0.35rem; }
    .waves { --waves-opacity: 0.07; }
  }
  .dialog__close {
    position: absolute; top: 1rem; right: 1rem; z-index: 2;
    display: grid; place-items: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 50%;
    color: white;
    background: color-mix(in srgb, white 10%, transparent);
    transition: background 0.2s, rotate 0.3s var(--ease-out);
    &:hover { background: color-mix(in srgb, white 20%, transparent); rotate: 90deg; }
  }
  .dialog__body {
    padding: 1.5rem 1.75rem 1.75rem;
    overflow-y: auto;
    max-height: calc(min(90dvh, 820px) - 9rem);
  }
  .stay-summary {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    & span {
      display: inline-flex; align-items: center; gap: 0.4rem;
      padding: 0.35rem 0.75rem;
      border-radius: var(--radius-pill);
      background: color-mix(in srgb, white 10%, transparent);
      font-size: var(--fs-xs); font-weight: 600;
    }
    & .ico { width: 0.95rem; height: 0.95rem; color: var(--gold-400); }
  }
  .partner-list {
    display: grid; gap: 0.65rem;
    list-style: none; padding: 0;
  }
  .partner-option {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    background: white;
    border: 1px solid color-mix(in srgb, var(--navy-700) 8%, transparent);
    transition: border-color 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s;
    &:hover, &:focus-visible {
      border-color: var(--gold-500);
      transform: translateX(4px);
      box-shadow: var(--shadow-sm);
    }
    & strong { display: block; font-size: var(--fs-md); color: var(--navy-700); }
    & small { color: var(--muted); font-size: var(--fs-xs); }
    & > .ico { margin-left: auto; color: var(--gold-600); }
    &.is-direct {
      background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
      border-color: transparent;
      & strong { color: white; }
      & small { color: color-mix(in srgb, white 75%, transparent); }
      & > .ico { color: var(--gold-400); }
      & .partner-seal { background: var(--gold-500); color: var(--navy-900); }
    }
  }
  .secure-note {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: var(--fs-xs);
    color: var(--muted);
    & .ico { color: var(--success); width: 1.1rem; height: 1.1rem; }
  }
  .tag {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--gold-200);
    color: var(--gold-700);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase;
    vertical-align: middle;
  }
}

/* ------------------------------------------------------------- Header */
@layer sections {
  .site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background 0.4s, box-shadow 0.4s, height 0.4s var(--ease-out), backdrop-filter 0.4s;
    &.is-scrolled, &.is-solid {
      --header-h: 70px;
      background: color-mix(in srgb, var(--navy-900) 82%, transparent);
      backdrop-filter: blur(16px) saturate(1.4);
      box-shadow: 0 1px 0 var(--glass-border), 0 10px 30px -15px rgb(0 0 0 / 0.5);
    }
  }
  .nav {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  }
  .brand {
    display: inline-flex; align-items: center;
    & img { width: clamp(128px, 10vw + 40px, 168px); height: auto; transition: width 0.4s var(--ease-out); }
  }
  .is-scrolled .brand img { width: 132px; }

  .nav__menu {
    display: flex; align-items: center; gap: 0.25rem;
    list-style: none; padding: 0;
    & a {
      position: relative;
      display: block;
      padding: 0.55rem 0.9rem;
      color: color-mix(in srgb, white 85%, transparent);
      font-size: var(--fs-sm);
      font-weight: 600;
      border-radius: var(--radius-pill);
      transition: color 0.2s, background 0.2s;
      &::after {
        content: "";
        position: absolute; left: 50%; bottom: 0.25rem;
        width: 0; height: 2px; border-radius: 2px;
        background: var(--gold-500);
        translate: -50% 0;
        transition: width 0.3s var(--ease-out);
      }
      &:hover { color: white; }
      &:hover::after, &[aria-current="true"]::after { width: 1.25rem; }
      &[aria-current="true"] { color: white; }
    }
  }
  .nav__actions { display: flex; align-items: center; gap: 0.75rem; }
  .nav__toggle {
    display: none;
    place-items: center;
    width: 2.9rem; height: 2.9rem;
    border-radius: 50%;
    color: white;
    background: color-mix(in srgb, white 10%, transparent);
    border: 1px solid var(--glass-border);
    & .ico { width: 1.4rem; height: 1.4rem; }
  }

  /* Menu mobile — Popover API (funciona sem JavaScript) */
  .mobile-menu {
    inset: 0;
    width: 100%; height: 100dvh;
    max-width: none; max-height: none;
    margin: 0;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    border: 0;
    background: var(--navy-900);
    color: white;
    overflow-y: auto;
    opacity: 0;
    translate: 0 -12px;
    transition: opacity 0.35s var(--ease-out), translate 0.35s var(--ease-out), overlay 0.35s allow-discrete, display 0.35s allow-discrete;
    &:popover-open { opacity: 1; translate: 0 0; }
    .waves { --waves-opacity: 0.05; }
    & ul { position: relative; list-style: none; padding: 0; display: grid; gap: 0.25rem; }
    & li a {
      display: flex; justify-content: space-between; align-items: center;
      padding: 1rem 0;
      font-family: var(--font-display);
      font-size: 1.9rem; font-weight: 700;
      border-bottom: 1px solid var(--glass-border);
      & .ico { color: var(--gold-500); }
    }
    & .btn { margin-top: 2rem; position: relative; }
  }
  @starting-style { .mobile-menu:popover-open { opacity: 0; translate: 0 -12px; } }
  .mobile-menu__close {
    position: absolute; top: 1rem; right: var(--gutter);
    display: grid; place-items: center;
    width: 2.9rem; height: 2.9rem; border-radius: 50%;
    background: color-mix(in srgb, white 10%, transparent);
    color: white;
    & .ico { width: 1.4rem; height: 1.4rem; }
  }

  @media (max-width: 1080px) {
    .nav__menu, .nav__actions .btn { display: none; }
    .nav__toggle { display: grid; }
  }

  /* ----------------------------------------------------------- Hero */
  /* Sem overflow/isolation no .hero: o dropdown de hóspedes precisa
     poder ultrapassar a borda inferior e ficar acima dos cards. */
  .hero {
    position: relative;
    min-height: max(600px, 100svh);
    display: grid;
    align-items: center;
    padding-block: calc(var(--header-h) + 2.5rem) 7rem;
    color: white;
  }
  .hero__content, .scroll-cue { position: relative; z-index: 1; }
  /* Foto da entrada (vertical), sempre em modo "Ajustar" (como papel de parede
     do Windows): aparece inteira, com a moldura de granito completa, sem ampliar.
     Sobreposições só com os marinhos do manual: #15152e, #232347 e #2e2e5d. */
  .hero__media {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
    background: var(--navy-800);
    & img {
      /* celular: foto na largura toda, no topo, fundindo no marinho embaixo */
      width: 100%; height: auto;
      animation: kenburns-suave 24s ease-out both;
      -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
      mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    }
  }
  @keyframes kenburns-suave { from { scale: 1.04; } to { scale: 1; } }
  .hero__overlay {
    position: absolute; inset: 0; z-index: 0;
    overflow: hidden;
    /* véu marinho na medida para o texto ler bem sem esconder a moldura */
    background:
      linear-gradient(180deg, rgb(21 21 46 / 0.72) 0%, rgb(35 35 71 / 0.5) 30%, rgb(35 35 71 / 0.45) 55%, rgb(21 21 46 / 0.85) 100%);
    .waves { --waves-opacity: 0.045; mask-position: -60px 0; }
  }
  @media (min-width: 561px) {
    /* tablet e desktop: foto como painel à direita, fundindo no marinho onde fica o texto */
    .hero__media img {
      margin-left: auto;
      width: 62%;
      -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, #000 80%, transparent 100%);
      -webkit-mask-composite: source-in;
      mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, #000 80%, transparent 100%);
      mask-composite: intersect;
    }
    .hero__overlay {
      background:
        radial-gradient(110% 90% at 0% 40%, rgb(21 21 46 / 0.9) 0%, rgb(35 35 71 / 0.7) 40%, rgb(35 35 71 / 0.2) 72%, transparent 100%),
        linear-gradient(180deg, rgb(21 21 46 / 0.55) 0%, transparent 25%, rgb(46 46 93 / 0.15) 60%, rgb(21 21 46 / 0.8) 100%);
    }
  }
  @media (min-width: 1201px) {
    /* desktop: a foto inteira na altura do hero */
    .hero__media img {
      width: auto; max-width: 62%; height: 100%;
      object-fit: cover; object-position: center 44%;
      -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
      mask-image: linear-gradient(to right, transparent 0%, #000 30%);
    }
  }
  .hero__content {
    display: grid; gap: 1.5rem;
    max-width: 44rem;
    & > * { animation: rise 1s var(--ease-out) both; }
    & > :nth-child(2) { animation-delay: 0.1s; }
    & > :nth-child(3) { animation-delay: 0.2s; }
    & > :nth-child(4) { animation-delay: 0.3s; }
  }
  @keyframes rise { from { opacity: 0; translate: 0 30px; } }
  .hero h1 {
    color: white;
    font-size: var(--fs-3xl);
    line-height: 0.98;
    text-shadow: 0 4px 30px rgb(0 0 0 / 0.25);
  }
  .hero__lead {
    font-size: var(--fs-lg);
    max-width: 36rem;
    color: color-mix(in srgb, white 82%, transparent);
  }
  .hero__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
  /* Botão "Avalie no Google": mesmo visual do "Fazer Reserva" (.btn--sm.btn--gold) */
  .hero__rating { white-space: nowrap; }

  @media (max-width: 768px) {
    .hero {
      min-height: auto;
      padding-block: calc(var(--header-h) + 1.25rem) 3.5rem;
    }
    .hero__content { gap: 1.1rem; }
    .hero h1 { font-size: clamp(2rem, 1.5rem + 3.2vw, 2.75rem); line-height: 1.05; }
    .hero__lead { font-size: var(--fs-md); }
    .hero__meta { gap: 0.75rem 1rem; }
  }

  /* Barra de reserva */
  .booking {
    position: relative;
    z-index: 10;
    margin-top: clamp(2rem, 3.5vw, 3.5rem);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: var(--shadow-lg);
    animation: rise 1s 0.45s var(--ease-out) both;
  }
  .booking__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 1rem;
    align-items: end;
  }
  .booking__foot {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem;
    margin-top: 0.9rem;
    font-size: var(--fs-xs);
    color: color-mix(in srgb, white 65%, transparent);
    & span { display: inline-flex; align-items: center; gap: 0.4rem; }
    & .ico { width: 1rem; height: 1rem; color: var(--gold-400); }
  }
  .booking__error {
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--danger) 25%, transparent);
    color: white;
    font-size: var(--fs-sm);
    font-weight: 600;
  }
  /* Nenhum campo pode estourar a coluna: textos longos viram reticências */
  .booking__grid > .field { min-width: 0; }
  .booking .input { min-width: 0; max-width: 100%; }
  .booking select.input { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
  #guest-btn { gap: 0.5rem; }
  #guest-summary { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #guest-btn .ico { flex-shrink: 0; }

  /* Campo de data no iOS/Safari: sem isso ele ignora a largura da coluna,
     centraliza o texto e fica com altura zero quando vazio */
  input[type="date"].input {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    line-height: 1.5;
    text-align: left;
    &::-webkit-date-and-time-value { text-align: left; min-height: 1.5em; margin: 0; }
    &::-webkit-datetime-edit { padding: 0; }
    &::-webkit-calendar-picker-indicator { margin-left: 0.25rem; cursor: pointer; }
  }

  /* Até 1200px os 5 campos não cabem numa linha: 2 colunas, botão embaixo */
  @media (max-width: 1200px) {
    .booking__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking__grid .btn { grid-column: 1 / -1; width: 100%; }
  }
  @media (max-width: 560px) {
    .booking { margin-top: 1.75rem; padding: 1rem; }
    .booking__grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .booking__grid .btn { min-height: 3.25rem; }
    .booking__foot { justify-content: center; text-align: center; }
  }

  .scroll-cue {
    position: absolute; left: 50%; bottom: 5.5rem;
    translate: -50% 0;
    display: grid; justify-items: center; gap: 0.5rem;
    font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: color-mix(in srgb, white 60%, transparent);
    &::after {
      content: ""; width: 1px; height: 42px;
      background: linear-gradient(var(--gold-500), transparent);
      animation: cue 2.2s ease-in-out infinite;
      transform-origin: top;
    }
  }
  @keyframes cue { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }
  @media (max-height: 820px), (max-width: 980px) { .scroll-cue { display: none; } }

  /* ----------------------------------------------------------- Diferenciais */
  .features {
    position: relative; z-index: 2;
    margin-top: calc(var(--section-y) * -0.35);
    padding-bottom: var(--section-y);
  }
  .features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    list-style: none; padding: 0;
  }
  .feature {
    display: grid; justify-items: start; gap: 0.9rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
    & h3 { font-size: 1.2rem; }
    & p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
    &:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
    &:hover .badge-ico { rotate: -8deg; scale: 1.06; }
    & .badge-ico { transition: rotate 0.4s var(--ease-spring), scale 0.4s var(--ease-spring); }
  }

  @media (max-width: 768px) {
    .features {
      margin-top: 1.5rem;
      padding-bottom: clamp(2.5rem, 5vw, 4rem);
    }
    .features__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.75rem;
    }
    .feature {
      padding: 1.2rem 1rem;
      gap: 0.65rem;
      & h3 { font-size: 1.05rem; }
      & .badge-ico { width: 3.25rem; height: 3.25rem; & .ico { width: 1.4rem; height: 1.4rem; } }
    }
  }
  @media (max-width: 380px) {
    .features__grid { grid-template-columns: 1fr; }
  }

  /* ----------------------------------------------------------- Sobre */
  .about {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
  }
  .about__media {
    position: relative;
    & picture:first-child img {
      width: 100%;
      aspect-ratio: 4 / 4.4;
      object-fit: cover;
      border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 120px;
      box-shadow: var(--shadow-lg);
    }
  }
  .about__float {
    position: absolute; right: -1.5rem; bottom: -2rem;
    width: 46%;
    border-radius: var(--radius-lg);
    border: 6px solid var(--cream-50);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    & img { aspect-ratio: 1; object-fit: cover; width: 100%; }
  }
  .about__text {
    display: grid; gap: 1.4rem;
    & h2 { font-size: var(--fs-2xl); }
    & > p { color: var(--muted); font-size: var(--fs-lg); }
  }
  .about__quote {
    position: relative;
    padding-left: 1.25rem;
    border-left: 3px solid var(--gold-500);
    font-size: var(--fs-lg);
    font-weight: 500;
    color: var(--navy-700);
  }
  .pillars {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
    list-style: none; padding: 0;
    margin-top: 0.5rem;
    & li {
      padding: 1.1rem;
      border-radius: var(--radius);
      background: white;
      border: 1px solid color-mix(in srgb, var(--navy-700) 7%, transparent);
    }
    & strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy-700); line-height: 1.1; }
    & span { font-size: var(--fs-xs); color: var(--muted); }
    & .ico { color: var(--gold-600); margin-bottom: 0.5rem; width: 1.5rem; height: 1.5rem; }
  }
  @media (max-width: 920px) {
    .about { grid-template-columns: 1fr; gap: 3rem; }
    .about__media { max-width: 480px; margin-inline: auto; padding: 0 0.5rem; }
    .about__float { right: 0; bottom: -1rem; }
  }
  @media (max-width: 600px) {
    .about__media { max-width: 100%; padding: 0; }
    .about__media picture:first-child img {
      border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 60px;
    }
    .about__float {
      right: 0.25rem; bottom: -0.75rem;
      width: 44%;
      border-width: 4px;
    }
    .pillars { grid-template-columns: 1fr; }
  }

  /* ----------------------------------------------------------- Acomodações */
  .rooms-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.85rem 1.4rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--navy-800) 90%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold-500) 30%, transparent);
    color: white;
  }
  .rooms-filter-info {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: var(--fs-sm);
    & .ico { color: var(--gold-400); width: 1.25rem; height: 1.25rem; }
    & strong { color: var(--gold-300); }
  }
  .btn-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid color-mix(in srgb, white 25%, transparent);
    color: color-mix(in srgb, white 85%, transparent);
    font-size: var(--fs-xs);
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
    & .ico { width: 0.85rem; height: 0.85rem; }
    &:hover {
      background: color-mix(in srgb, white 12%, transparent);
      color: white;
      border-color: var(--gold-400);
    }
  }
  @media (max-width: 480px) {
    .rooms-filter-bar {
      flex-direction: column;
      align-items: stretch;
      padding: 0.85rem 1rem;
      gap: 0.75rem;
    }
    .btn-filter-clear {
      justify-content: center;
      width: 100%;
    }
  }

  /* 4 categorias: 2 por linha, com fotos largas (panorâmicas) */
  .rooms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .room {
    container-type: inline-size;
    display: flex; flex-direction: column;
    border-radius: var(--radius-lg);
    background: white;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
    &:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
  }
  .room__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    & img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
  }

  /* Carrossel de fotos dos quartos (scroll-snap: arrasta no celular, setas no desktop) */
  .carousel { position: relative; height: 100%; }
  .carousel__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    &::-webkit-scrollbar { display: none; }
    &:focus-visible { outline: 3px solid var(--gold-500); outline-offset: -3px; }
  }
  .carousel__slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .carousel__btn {
    position: absolute; top: 50%; translate: 0 -50%;
    z-index: 2;
    display: grid; place-items: center;
    width: 2.5rem; height: 2.5rem;
    border: 0; border-radius: 50%;
    background: color-mix(in srgb, white 88%, transparent);
    color: var(--navy-900);
    box-shadow: 0 2px 10px rgb(0 0 0 / 0.18);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s, scale 0.25s;
    & .ico { width: 1.15rem; height: 1.15rem; }
    &:hover { scale: 1.08; }
    &:focus-visible { opacity: 1; outline: 3px solid var(--gold-500); outline-offset: 2px; }
  }
  .carousel__btn--prev { left: 0.75rem; }
  .carousel__btn--next { right: 0.75rem; }
  .room:hover .carousel__btn { opacity: 1; }
  /* Telas de toque não têm hover: setas sempre visíveis */
  @media (hover: none) { .carousel__btn { opacity: 1; width: 2.25rem; height: 2.25rem; } }

  .carousel__dots {
    position: absolute; bottom: 0.75rem; left: 50%; translate: -50% 0;
    z-index: 2;
    display: flex; gap: 0.15rem;
    padding: 0.2rem 0.35rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--navy-900) 45%, transparent);
    backdrop-filter: blur(6px);
  }
  .carousel__dot {
    /* área de toque maior que o ponto visível */
    width: 1rem; height: 1rem;
    padding: 0; border: 0;
    background: none;
    cursor: pointer;
    &::before {
      content: ""; display: block; margin: auto;
      width: 0.45rem; height: 0.45rem; border-radius: 50%;
      background: color-mix(in srgb, white 55%, transparent);
      transition: background 0.25s, scale 0.25s;
    }
    &.is-active::before { background: white; scale: 1.25; }
    &:focus-visible { outline: 2px solid var(--gold-500); border-radius: 50%; }
  }
  .carousel__slide { cursor: zoom-in; }
  .carousel__zoom {
    position: absolute; top: 0.85rem; right: 0.85rem;
    z-index: 3;
    display: grid; place-items: center;
    width: 2.25rem; height: 2.25rem;
    border: 0; border-radius: 50%;
    background: color-mix(in srgb, var(--navy-900) 60%, transparent);
    backdrop-filter: blur(6px);
    color: white;
    cursor: zoom-in;
    transition: background 0.25s, scale 0.25s;
    & .ico { width: 1rem; height: 1rem; }
    &:hover { background: var(--navy-900); scale: 1.08; }
    &:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
  }

  /* Visualizador de fotos ampliadas */
  .has-lightbox { overflow: hidden; }
  .lightbox {
    width: 100vw; height: 100dvh;
    max-width: none; max-height: none;
    margin: 0; padding: 0;
    border: 0;
    background: rgb(8 8 24 / 0.97);
    color: white;
    overflow: hidden;
    &::backdrop { background: rgb(8 8 24 / 0.85); }
    &[open] { animation: lightbox-in 0.25s var(--ease-out); }
  }
  @keyframes lightbox-in { from { opacity: 0; } }
  .lightbox__track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    outline: none;
    &::-webkit-scrollbar { display: none; }
  }
  .lightbox__slide {
    flex: 0 0 100%;
    height: 100%;
    margin: 0;
    display: grid; place-items: center;
    padding: 4rem 4.5rem 4.5rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    & picture { display: contents; }
    & img {
      /* limite pela tela: % de altura não resolve dentro da célula do grid */
      max-width: calc(100vw - 9rem); max-height: calc(100dvh - 8.5rem);
      width: auto; height: auto;
      object-fit: contain;
      border-radius: var(--radius-md);
      box-shadow: 0 20px 60px rgb(0 0 0 / 0.5);
      cursor: default;
    }
  }
  .lightbox__close,
  .lightbox__btn {
    position: absolute;
    display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgb(255 255 255 / 0.12);
    color: white;
    cursor: pointer;
    transition: background 0.25s, scale 0.25s;
    &:hover { background: rgb(255 255 255 / 0.24); scale: 1.06; }
    &:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
  }
  .lightbox__close {
    top: 1rem; right: 1rem;
    width: 2.75rem; height: 2.75rem;
    & .ico { width: 1.35rem; height: 1.35rem; }
  }
  .lightbox__btn {
    top: 50%; translate: 0 -50%;
    width: 3rem; height: 3rem;
    & .ico { width: 1.5rem; height: 1.5rem; }
  }
  .lightbox__btn--prev { left: 1rem; }
  .lightbox__btn--next { right: 1rem; }
  .lightbox--single .lightbox__btn { display: none; }
  .lightbox__caption {
    position: absolute; bottom: 1.1rem; left: 50%; translate: -50% 0;
    max-width: calc(100% - 2rem);
    margin: 0;
    text-align: center;
    font-size: var(--fs-sm);
    color: rgb(255 255 255 / 0.85);
  }
  .lightbox__counter { font-weight: 700; color: var(--gold-500); margin-right: 0.35rem; }

  /* No celular a foto ocupa a largura toda; arrastar troca de foto */
  @media (max-width: 680px) {
    .lightbox__slide { padding: 4rem 0; & img { max-width: 100vw; max-height: calc(100dvh - 8rem); border-radius: 0; } }
    .lightbox__btn { top: auto; bottom: 0.6rem; translate: none; width: 2.75rem; height: 2.75rem; }
    .lightbox__caption { bottom: 1.45rem; max-width: calc(100% - 8rem); }
  }
  @media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }
  .room__badge {
    position: absolute; top: 1rem; left: 1rem;
    z-index: 3;
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--navy-900) 70%, transparent);
    backdrop-filter: blur(8px);
    color: white;
    font-size: var(--fs-xs); font-weight: 700;
    & .ico { width: 1rem; height: 1rem; color: var(--gold-400); }
  }
  .room__body {
    display: grid; gap: 1rem;
    padding: 1.5rem;
    flex: 1;
    align-content: start;
    color: var(--ink);
    & h3 { font-size: var(--fs-xl); color: var(--navy-700); }
    & p { color: var(--muted); font-size: var(--fs-sm); }
  }
  .room__foot { margin-top: auto; padding: 0 1.5rem 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
  @container (max-width: 340px) { .room__foot .btn { width: 100%; } }

  .included {
    grid-column: 1 / -1;
    position: relative;
    display: grid; align-content: start; gap: 1.25rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--navy-700);
    color: color-mix(in srgb, white 80%, transparent);
    overflow: hidden;
    isolation: isolate;
    & h3 { color: white; font-size: var(--fs-xl); }
    & ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.85rem; }
    & li { display: flex; gap: 0.75rem; align-items: center; font-size: var(--fs-sm); font-weight: 500; }
    & li .ico { color: var(--gold-500); width: 1.35rem; height: 1.35rem; }
    .waves { --waves-color: var(--gold-500); --waves-opacity: 0.08; z-index: -1; }
  }
  @media (min-width: 681px) { .room__media { aspect-ratio: 16 / 10; } }
  @media (max-width: 680px) { .rooms { grid-template-columns: 1fr; } }

  /* ----------------------------------------------------------- Estrutura (bento) */
  .bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(220px, auto);
    gap: 1.25rem;
  }
  .tile {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    background: white;
    box-shadow: var(--shadow-sm);
    & h3 { font-size: var(--fs-xl); color: var(--navy-700); }
    & p { font-size: var(--fs-sm); color: var(--muted); margin-top: 0.5rem; max-width: 34ch; }
    & > .ico, & > .badge-ico { margin-bottom: auto; }
    transition: transform 0.45s var(--ease-out);
    &:hover { transform: translateY(-4px); }
  }
  .tile--photo {
    color: white;
    min-height: 340px;
    & picture, & img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
    & img { transition: scale 1.4s var(--ease-out); }
    &:hover img { scale: 1.05; }
    &::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: linear-gradient(180deg, transparent 30%, rgb(16 15 43 / 0.88) 100%);
    }
    & h3 { color: white; }
    & p { color: color-mix(in srgb, white 80%, transparent); }
  }
  .tile--wide { grid-column: span 2; grid-row: span 2; }
  .tile--tall { grid-row: span 2; }
  .tile--navy {
    background: var(--navy-700);
    color: white;
    & h3 { color: white; }
    & p { color: color-mix(in srgb, white 75%, transparent); }
    .waves { --waves-opacity: 0.06; z-index: -1; }
  }
  .tile--gold {
    background: linear-gradient(145deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
    & h3 { color: var(--navy-800); }
    & p { color: color-mix(in srgb, var(--navy-800) 80%, transparent); }
    & .badge-ico { background: var(--navy-700); }
  }
  .tile__kicker {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
    font-weight: 800;
    line-height: 1.02;
    color: white;
    & em { font-style: normal; color: var(--gold-400); }
  }
  @media (max-width: 980px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile--tall { grid-row: span 1; }
  }
  @media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .tile--wide { grid-column: auto; grid-row: span 1; }
  }

  /* ----------------------------------------------------------- Espaço Fidelidade */
  .fidelidade {
    position: relative;
    overflow: clip;
    isolation: isolate;
  }
  .fidelidade .waves {
    --waves-opacity: 0.04;
    z-index: -1;
  }
  .fidelidade__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  @media (min-width: 980px) {
    .fidelidade__layout {
      grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
  }
  .fidelidade__intro {
    display: grid;
    gap: 1.5rem;
  }
  .fidelidade__intro h2 {
    color: var(--white);
    font-size: var(--fs-2xl);
    line-height: 1.15;
  }
  .fidelidade__intro > p {
    color: color-mix(in srgb, white 82%, transparent);
    font-size: var(--fs-md);
    line-height: 1.6;
  }
  .fidelidade__benefits {
    display: grid;
    gap: 1.15rem;
    margin-top: 0.5rem;
  }
  .benefit-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--navy-800) 65%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold-500) 25%, transparent);
    backdrop-filter: blur(8px);
    transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
  }
  .benefit-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold-400);
  }
  .benefit-card__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--gold-500) 18%, transparent);
    color: var(--gold-400);
    display: grid;
    place-items: center;
  }
  .benefit-card__icon .ico {
    width: 1.45rem;
    height: 1.45rem;
  }
  .benefit-card__content h4 {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
  }
  .benefit-card__content p {
    font-size: var(--fs-sm);
    color: color-mix(in srgb, var(--white) 78%, transparent);
    margin: 0;
    line-height: 1.45;
  }
  .fidelidade__audience-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--gold-500) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent);
    color: var(--gold-200);
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.4;
  }
  .fidelidade__audience-badge .ico {
    flex-shrink: 0;
    width: 1.2rem;
    height: 1.2rem;
    color: var(--gold-400);
  }

  @media (max-width: 480px) {
    .benefit-card { padding: 1rem; gap: 0.85rem; }
  }

  /* Form Container */
  .fidelidade__form-wrapper {
    position: relative;
    background: white;
    padding: clamp(1rem, 3.5vw, 2.5rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
  }
  .fidelidade__form-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--navy-700) 10%, transparent);
  }
  .fidelidade__form-head h3 {
    font-size: var(--fs-xl);
    color: var(--navy-700);
    font-weight: 700;
    margin-bottom: 0.35rem;
  }
  .fidelidade__form-head p {
    font-size: var(--fs-sm);
    color: var(--muted);
    margin: 0;
  }
  .fidelidade__form {
    display: grid;
    gap: 1rem;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  @media (min-width: 580px) {
    .form-row--2 {
      grid-template-columns: 1fr 1fr;
    }
  }
  .fidelidade__form .field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .fidelidade__form .field label {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy-700);
  }
  .fidelidade__form .field label .req {
    color: var(--danger);
    margin-left: 0.15rem;
  }
  .fidelidade__form .input {
    background: var(--cream-50);
    border: 1px solid color-mix(in srgb, var(--navy-700) 20%, transparent);
    color: var(--ink);
    border-radius: var(--radius-sm);
    min-height: 3rem;
    padding: 0.65rem 0.9rem;
    font-size: var(--fs-sm);
    transition: all 0.2s ease;
  }
  .fidelidade__form .input:focus {
    background: white;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-500) 25%, transparent);
    outline: none;
  }
  .fidelidade__form textarea.input {
    min-height: 4.5rem;
    resize: vertical;
  }
  .fidelidade__privacy-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-xs);
    color: var(--muted);
    margin-top: 0.25rem;
  }
  .fidelidade__privacy-note .ico {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--success);
    flex-shrink: 0;
  }
  
  /* Estado de Sucesso */
  .fidelidade__success {
    display: none;
    text-align: center;
    padding: 1.5rem 0.5rem;
  }
  .fidelidade__success-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--success) 15%, transparent);
    color: var(--success);
    display: grid;
    place-items: center;
  }
  .fidelidade__success-icon .ico {
    width: 2.2rem;
    height: 2.2rem;
  }
  .fidelidade__success h3 {
    font-size: var(--fs-xl);
    color: var(--navy-700);
    margin-bottom: 0.5rem;
  }
  .fidelidade__success p {
    font-size: var(--fs-sm);
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  .fidelidade__success-actions {
    display: grid;
    gap: 0.75rem;
  }

  /* ----------------------------------------------------------- Parceiros */
  .partners { overflow: clip; isolation: isolate; }
  .partners .waves { --waves-opacity: 0.045; z-index: -1; }
  .partners__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .partners__intro {
    position: sticky; top: calc(var(--header-h) + 2rem);
    display: grid; gap: 1.25rem;
    & h2 { font-size: var(--fs-2xl); }
    & p { color: var(--muted); font-size: var(--fs-lg); }
  }
  .trust {
    display: grid; gap: 0.75rem;
    list-style: none; padding: 0;
    margin-top: 0.5rem;
    & li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-sm); }
    & .ico { color: var(--gold-500); margin-top: 0.15rem; }
  }
  .partners__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1rem;
    list-style: none; padding: 0;
  }
  .partner-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.15rem;
    width: 100%;
    height: 100%;
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid color-mix(in srgb, var(--navy-700) 8%, transparent);
    color: var(--ink);
    text-align: left;
    transition: background 0.3s, border-color 0.3s, transform 0.45s var(--ease-out), box-shadow 0.3s;
    overflow: hidden;
    cursor: pointer;
    &::before {
      content: "";
      position: absolute; inset: 0;
      background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--gold-500) 12%, transparent), transparent 45%);
      opacity: 0;
      transition: opacity 0.3s;
      pointer-events: none;
    }
    &:hover, &:focus-visible {
      background: white;
      border-color: var(--gold-500);
      transform: translateY(-4px);
      box-shadow: var(--shadow-sm);
      &::before { opacity: 1; }
      & .partner-card__go { background: var(--gold-500); color: var(--navy-900); rotate: -45deg; }
    }
  }
  .partner-card__title {
    flex: 1;
    min-width: 0;
    & strong { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; color: var(--navy-700); display: block; }
    & small { color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; display: block; margin-top: 0.15rem; }
  }
  .partner-card__go {
    flex-shrink: 0;
    margin-left: auto;
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--navy-700) 6%, transparent);
    color: var(--navy-700);
    transition: background 0.3s, color 0.3s, rotate 0.4s var(--ease-spring);
  }
  .partner-card--direct {
    background: linear-gradient(140deg, var(--gold-400), var(--gold-500) 50%, var(--gold-600));
    border-color: transparent;
    color: var(--navy-900);
    & .partner-card__title strong { color: var(--navy-900); }
    & .partner-seal { background: var(--navy-700); color: var(--gold-500); }
    & .partner-card__go { background: var(--navy-700); color: var(--gold-400); }
    &:hover, &:focus-visible {
      background: linear-gradient(140deg, var(--gold-400), var(--gold-500) 40%, var(--gold-600));
      & .partner-card__go { background: var(--navy-900); color: var(--gold-400); }
    }
  }
  .partners__empty {
    padding: 2rem; border-radius: var(--radius-lg);
    border: 1px dashed var(--glass-border);
    text-align: center;
  }
  @media (max-width: 920px) {
    .partners__layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .partners__intro { position: static; }
  }
  @media (max-width: 640px) {
    .partners__grid { grid-template-columns: 1fr; }
    .partner-card { padding: 1.1rem 1.2rem; gap: 1rem; }
  }

  /* ----------------------------------------------------------- Faixa de citação */
  .quote-band {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7rem);
    background: var(--gold-500);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    .waves { --waves-color: var(--navy-700); --waves-opacity: 0.09; --waves-size: 640px; z-index: -1; }
    & blockquote {
      font-family: var(--font-display);
      font-size: clamp(2rem, 1.3rem + 3.2vw, 4rem);
      font-weight: 800;
      line-height: 1.05;
      color: var(--navy-800);
      text-wrap: balance;
      max-width: 22ch;
      margin-inline: auto;
      & .light { font-family: var(--font-body); font-weight: 400; font-size: 0.82em; letter-spacing: -0.02em; }
    }
  }

  /* ----------------------------------------------------------- Localização */
  .location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    align-items: stretch;
  }
  .location__card {
    display: grid; gap: 1.5rem; align-content: start;
    padding: clamp(1.75rem, 3vw, 2.75rem);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    & h2 { font-size: var(--fs-2xl); }
  }
  .info-list {
    display: grid; gap: 1.1rem;
    list-style: none; padding: 0;
    & li { display: flex; gap: 1rem; align-items: flex-start; }
    & .ico { color: var(--gold-600); width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; }
    & strong { display: block; color: var(--navy-700); font-size: var(--fs-sm); }
    & span, & a { color: var(--muted); font-size: var(--fs-sm); }
    & a:hover { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
  }
  .location__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .map {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--navy-800);
    isolation: isolate;
    display: grid; place-items: center;
    text-align: center;
    color: white;
    .waves { --waves-opacity: 0.07; --waves-size: 380px; z-index: -1; }
    & iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
  }
  .map__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(23, 22, 59, 0.65) 0%, transparent 60%);
    pointer-events: none;
  }
  .map__panel {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--navy-900) 90%, transparent);
    backdrop-filter: blur(10px);
    border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
  }
  .map__panel-title {
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, white 90%, transparent);
  }
  .map__panel-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
  }
  .map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }
  .map-btn--maps {
    background: var(--gold-500);
    color: var(--navy-900);
    & .ico { width: 1.15rem; height: 1.15rem; color: var(--navy-900); }
    &:hover {
      background: var(--gold-400);
      transform: translateY(-2px);
      box-shadow: 0 4px 14px rgba(184, 146, 79, 0.45);
    }
  }
  /* Waze nas cores do manual (marinho + dourado), em vez do azul-claro da marca Waze */
  .map-btn--waze {
    background: var(--navy-700);
    color: var(--white);
    box-shadow: inset 0 0 0 1px var(--gold-500);
    & .ico { width: 1.15rem; height: 1.15rem; fill: currentColor; color: var(--gold-500); }
    &:hover {
      background: var(--navy-600);
      transform: translateY(-2px);
      box-shadow: inset 0 0 0 1px var(--gold-500), 0 4px 14px rgb(35 35 71 / 0.45);
    }
  }
  .btn--waze {
    background: var(--navy-700);
    color: var(--white);
    font-weight: 700;
    border: 1px solid var(--navy-700);
    & .ico { width: 1.15rem; height: 1.15rem; fill: currentColor; color: var(--gold-500); }
    &:hover {
      background: var(--navy-800);
      border-color: var(--gold-500);
    }
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    font-size: var(--fs-xs);
  }
  .link-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--navy-700);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    & .ico { width: 1rem; height: 1rem; }
    &:hover {
      color: var(--gold-600);
    }
  }
  .footer__map-links {
    margin-top: 0.35rem;
    font-size: var(--fs-xs);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    & a {
      color: var(--gold-400);
      text-decoration: underline;
      &:hover { color: white; }
    }
  }
  .map__placeholder {
    display: grid; justify-items: center; gap: 1rem;
    padding: 2rem;
    max-width: 26rem;
    & p { font-size: var(--fs-sm); color: color-mix(in srgb, white 70%, transparent); }
  }
  .map__pin {
    display: grid; place-items: center;
    width: 5rem; height: 5rem;
    border-radius: 50% 50% 50% 0;
    rotate: -45deg;
    background: var(--gold-500);
    color: var(--navy-800);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--gold-500) 20%, transparent), 0 0 0 22px color-mix(in srgb, var(--gold-500) 8%, transparent);
    animation: pulse 2.6s ease-in-out infinite;
    & .ico { rotate: 45deg; width: 2rem; height: 2rem; }
  }
  @keyframes pulse { 50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--gold-500) 14%, transparent), 0 0 0 30px color-mix(in srgb, var(--gold-500) 4%, transparent); } }
  @media (max-width: 920px) { .location { grid-template-columns: 1fr; } }
  @media (max-width: 480px) {
    .map__overlay {
      padding: 0.75rem;
    }
    .map__panel {
      width: 100%;
      padding: 0.75rem 0.85rem;
    }
    .map__panel-buttons {
      width: 100%;
      flex-direction: column;
    }
    .map-btn {
      width: 100%;
      justify-content: center;
    }
  }

  /* ----------------------------------------------------------- Contato */
  .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1rem;
    list-style: none; padding: 0;
  }
  .contact-card {
    display: grid; gap: 0.75rem; justify-items: start;
    height: 100%;
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid color-mix(in srgb, var(--navy-700) 7%, transparent);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
    & .badge-ico { width: 3.4rem; height: 3.4rem; & .ico { width: 1.4rem; height: 1.4rem; } }
    & strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-700); line-height: 1.1; }
    & span { color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }
    &:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-500); }
  }
  .careers {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem 2rem;
    margin-top: 2rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--navy-700), var(--navy-600));
    color: white;
    overflow: hidden;
    isolation: isolate;
    .waves { --waves-color: var(--gold-500); --waves-opacity: 0.08; z-index: -1; }
    & h3 { color: white; font-size: var(--fs-xl); }
    & p { color: color-mix(in srgb, white 75%, transparent); font-size: var(--fs-sm); }
    & .badge-ico { background: var(--gold-500); color: var(--navy-800); box-shadow: inset 0 0 0 3px var(--gold-500), inset 0 0 0 5px var(--navy-700); }
  }
  @media (max-width: 760px) {
    .careers { grid-template-columns: 1fr; }
    .careers .btn { width: 100%; justify-content: center; }
  }

  /* ----------------------------------------------------------- Rodapé */
  .site-footer {
    position: relative;
    padding-block: clamp(4rem, 6vw, 6rem) 2rem;
    background: var(--navy-950);
    color: color-mix(in srgb, white 65%, transparent);
    font-size: var(--fs-sm);
    overflow: hidden;
    isolation: isolate;
    .waves { --waves-opacity: 0.03; z-index: -1; }
    & h2 {
      color: white;
      font-family: var(--font-body);
      font-size: var(--fs-xs);
      font-weight: 700;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      margin-bottom: 1.1rem;
    }
    & ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
    & a { transition: color 0.2s; }
    & a:hover { color: var(--gold-400); }
  }
  .footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
  }
  .footer__brand {
    display: grid; gap: 1.25rem; align-content: start;
    & img { width: 170px; height: auto; }
  }
  .socials {
    display: flex; gap: 0.6rem;
    & a {
      display: grid; place-items: center;
      width: 2.6rem; height: 2.6rem;
      border-radius: 50%;
      border: 1px solid var(--glass-border);
      color: white;
      transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-spring);
      &:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
    }
  }
  .footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--glass-border);
    font-size: var(--fs-xs);
  }
  .security-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--success) 14%, transparent);
    color: #8fe0b7;
    font-weight: 600;
    & .ico { width: 1rem; height: 1rem; }
  }
  @media (max-width: 920px) {
    .location { grid-template-columns: 1fr; }
    .map { min-height: 340px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
  }
  @media (max-width: 580px) {
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; text-align: center; gap: 0.75rem; }
    .location__card { padding: 1.5rem 1.25rem; }
    .location__actions { flex-direction: column; width: 100%; }
    .location__actions .btn { width: 100%; }
    .fab {
      right: 1rem; bottom: 1rem;
      width: 3.25rem; height: 3.25rem;
      & .ico { width: 1.5rem; height: 1.5rem; }
    }
  }
  @keyframes ring { from { scale: 1; opacity: 0.8; } to { scale: 1.6; opacity: 0; } }
}

/* ------------------------------------------------------------- Páginas internas */
@layer pages {
  .page-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(4rem, 7vw, 6rem);
    background: var(--navy-800);
    color: white;
    overflow: hidden;
    isolation: isolate;
    .waves { --waves-opacity: 0.05; z-index: -1; }
    & h1 { color: white; font-size: var(--fs-2xl); margin-top: 1rem; }
    & p { color: color-mix(in srgb, white 72%, transparent); margin-top: 0.75rem; max-width: 50rem; }
  }
  .prose {
    max-width: 52rem;
    padding-block: clamp(3rem, 6vw, 5rem);
    & h2 { font-size: var(--fs-xl); margin: 2.5rem 0 0.75rem; }
    & h3 { font-size: var(--fs-lg); margin: 1.75rem 0 0.5rem; }
    & p, & li { color: var(--muted); }
    & p + p { margin-top: 0.9rem; }
    & ul { padding-left: 1.25rem; display: grid; gap: 0.4rem; margin-top: 0.75rem; }
    & a { color: var(--navy-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
    & strong { color: var(--ink); }
  }

  /* Página de redirecionamento */
  .redirect {
    position: relative;
    min-height: 100svh;
    display: grid; place-items: center;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    background: var(--navy-800);
    overflow: hidden;
    isolation: isolate;
    .waves { --waves-opacity: 0.05; z-index: -1; }
  }
  .redirect__card {
    width: min(100%, 560px);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-xl);
    background: var(--cream-50);
    box-shadow: var(--shadow-lg);
    text-align: center;
    display: grid; gap: 1.25rem; justify-items: center;
    animation: rise 0.8s var(--ease-out) both;
    & h1 { font-size: var(--fs-xl); }
    & p { color: var(--muted); }
  }
  .redirect__flow {
    display: flex; align-items: center; gap: 1rem;
    & .partner-seal { width: 4.25rem; height: 4.25rem; font-size: 1.6rem; border-radius: 18px; }
  }
  .redirect__home {
    display: grid; place-items: center;
    width: 4.25rem; height: 4.25rem;
    border-radius: 18px;
    background: var(--navy-700);
    & img { width: 78%; }
  }
  .redirect__dots {
    display: flex; gap: 0.35rem;
    & span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); animation: dot 1.2s ease-in-out infinite; }
    & span:nth-child(2) { animation-delay: 0.15s; }
    & span:nth-child(3) { animation-delay: 0.3s; }
  }
  @keyframes dot { 0%, 100% { opacity: 0.25; translate: 0 0; } 50% { opacity: 1; translate: 0 -4px; } }
  .countdown {
    position: relative;
    width: 4.5rem; height: 4.5rem;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: 1.6rem; font-weight: 800;
    color: var(--navy-700);
    & svg { position: absolute; inset: 0; rotate: -90deg; width: 100%; height: 100%; }
    & circle { fill: none; stroke-width: 5; }
    & .track { stroke: color-mix(in srgb, var(--navy-700) 10%, transparent); }
    & .bar {
      stroke: var(--gold-500);
      stroke-linecap: round;
      stroke-dasharray: 201;
      stroke-dashoffset: 0;
      animation: countdown var(--duration, 5s) linear forwards;
    }
    &.is-paused .bar { animation-play-state: paused; }
  }
  @keyframes countdown { to { stroke-dashoffset: 201; } }
  .redirect__summary {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
    & span {
      display: inline-flex; align-items: center; gap: 0.4rem;
      padding: 0.35rem 0.8rem;
      border-radius: var(--radius-pill);
      background: color-mix(in srgb, var(--navy-700) 7%, white);
      color: var(--navy-700);
      font-size: var(--fs-xs); font-weight: 600;
    }
    & .ico { width: 0.95rem; height: 0.95rem; color: var(--gold-600); }
  }
  .redirect__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
  .redirect__url {
    font-size: var(--fs-xs);
    color: var(--muted);
    word-break: break-all;
    & strong { color: var(--success); }
  }

  /* 404 */
  .notfound {
    min-height: 100svh;
    display: grid; place-items: center;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
    text-align: center;
    background: var(--navy-800);
    color: white;
    position: relative; overflow: hidden; isolation: isolate;
    .waves { --waves-opacity: 0.05; z-index: -1; }
    & .big { font-family: var(--font-display); font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 0.9; color: var(--gold-500); }
    & h1 { color: white; font-size: var(--fs-2xl); }
    & p { color: color-mix(in srgb, white 72%, transparent); max-width: 32rem; margin: 1rem auto 2rem; }
  }
}

/* ------------------------------------------------------------- Utilitários & animações de entrada */
@layer utilities {
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .mt-4 { margin-top: var(--space-4); }
  .mt-6 { margin-top: var(--space-6); }
  .text-center { text-align: center; }

  /* Scroll-driven animations (CSS puro, sem JS) */
  /* A revelação termina pouco depois de o bloco entrar na tela (distância fixa).
     Com faixa em % do "cover", blocos altos ou no fim da página nunca chegavam
     ao final da animação e ficavam esbranquiçados (opacidade ~0.5 no Chrome/Safari). */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      .reveal {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry min(30vh, 220px);
      }
      .reveal-stagger > * {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry min(25vh, 180px);
      }
      .parallax-img img {
        animation: parallax linear both;
        animation-timeline: view();
      }
    }
  }
  @keyframes reveal { from { opacity: 0; translate: 0 48px; scale: 0.98; } }
  @keyframes parallax { from { translate: 0 -6%; scale: 1.12; } to { translate: 0 6%; scale: 1.12; } }

  @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;
    }
  }

  @media print {
    .site-header, .fab, .booking, .map, .scroll-cue { display: none !important; }
    body { background: white; }
  }
}

/* CUSTOM GUEST DROPDOWN */
.guest-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  min-width: 280px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
  z-index: 100;
  border: 1px solid var(--glass-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  color: var(--ink);
  box-sizing: border-box;
}
.guest-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.guest-info {
  display: flex;
  flex-direction: column;
}
.guest-info strong { color: var(--navy-700); font-weight: 600; line-height: 1; margin-bottom: 0.25rem; }
.guest-info small { color: var(--muted); font-size: var(--fs-xs); }
.guest-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.guest-controls span { width: 1.5rem; text-align: center; font-weight: 600; }
.guest-controls button {
  width: 2.25rem; height: 2.25rem;
  min-width: 2.25rem; min-height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--navy-300);
  background: transparent;
  color: var(--navy-700);
  display: grid; place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.2s;
}
.guest-controls button:hover { border-color: var(--gold-500); color: var(--gold-600); }
.children-ages {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.children-ages:empty { display: none; }
.children-ages label { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 0.25rem; display: block; }
.children-ages select { width: 100%; padding: 0.5rem; border: 1px solid var(--navy-300); border-radius: var(--radius-sm); font-size: 1rem; /* < 16px faz o iOS dar zoom ao focar */ }

@media (max-width: 560px) {
  .guest-dropdown {
    min-width: 0;
    width: 100%;
    left: 0;
    right: 0;
    padding: 1.15rem;
  }
}
@media (min-width: 561px) and (max-width: 1200px) {
  .guest-dropdown {
    min-width: min(320px, calc(100vw - 3.5rem));
    max-width: calc(100vw - 3.5rem);
  }
}



/* ------------------------------------------------------------- Página Espaço Fidelidade (antes em <style> no HTML) */
@layer pages {
    .fidelidade-page-hero {
        padding-top: calc(var(--header-h) + 4rem);
        padding-bottom: 4rem;
        background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
        color: white;
        position: relative;
        overflow: hidden;
        text-align: center;
    }
    .fidelidade-page-hero .eyebrow {
        color: var(--gold-400);
        font-size: var(--fs-sm);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        margin-bottom: 0.75rem;
    }
    .fidelidade-page-hero h1 {
        color: white;
        font-size: var(--fs-3xl);
        line-height: 1.1;
        margin-bottom: 1.25rem;
        max-width: 900px;
        margin-inline: auto;
    }
    .fidelidade-page-hero p.lead {
        font-size: var(--fs-lg);
        color: color-mix(in srgb, white 85%, transparent);
        max-width: 760px;
        margin-inline: auto;
        line-height: 1.6;
    }
    .breadcrumb {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        font-size: var(--fs-xs);
        color: color-mix(in srgb, white 60%, transparent);
    }
    .breadcrumb a {
        color: var(--gold-400);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    .faq-section {
        padding: var(--section-y) 0;
        background: var(--cream-50);
    }
    .faq-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 860px;
        margin: 2.5rem auto 0;
    }
    .faq-card {
        background: white;
        border-radius: var(--radius);
        padding: 1.5rem;
        box-shadow: var(--shadow-sm);
        border: 1px solid color-mix(in srgb, var(--navy-700) 8%, transparent);
    }
    .faq-card h3 {
        font-size: var(--fs-md);
        color: var(--navy-700);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    .faq-card h3 .ico {
        color: var(--gold-500);
        width: 1.25rem;
        height: 1.25rem;
        flex-shrink: 0;
    }
    .faq-card p {
        font-size: var(--fs-sm);
        color: var(--muted);
        line-height: 1.6;
        margin: 0;
    }
}

/* ------------------------------------------------------------- Responsividade, acessibilidade e compatibilidade
   Ajustes levantados em varredura de 280px (Galaxy Fold) a 3840px (TV 4K),
   retrato e paisagem, mouse e toque. Na camada utilities para ter prioridade. */
@layer utilities {
  /* Botão flutuante do WhatsApp: antes só tinha estilo abaixo de 580px.
     Visual dos selos circulares do manual (dourado + ícone marinho). */
  .fab {
    position: fixed;
    right: max(1.5rem, env(safe-area-inset-right, 0px));
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: grid; place-items: center;
    width: 3.75rem; height: 3.75rem;
    border-radius: 50%;
    background: var(--gold-500);
    color: var(--navy-800);
    box-shadow: inset 0 0 0 3px var(--gold-500), inset 0 0 0 5px var(--navy-800), 0 12px 28px -10px rgb(0 0 0 / 0.5);
    transition: scale 0.3s var(--ease-spring), background 0.25s;
    isolation: isolate;
    & .ico { width: 1.75rem; height: 1.75rem; }
    &::before {
      content: ""; position: absolute; inset: 0; z-index: -1;
      border-radius: inherit;
      background: var(--gold-500);
      animation: ring 2.6s ease-out infinite;
    }
    &:hover { scale: 1.07; background: var(--gold-400); }
    &:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
  }
  @media (max-width: 580px) {
    .fab {
      right: max(1rem, env(safe-area-inset-right, 0px));
      bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
      width: 3.25rem; height: 3.25rem;
      & .ico { width: 1.5rem; height: 1.5rem; }
    }
  }

  /* Cabeçalho: os itens quebravam em duas linhas entre ~1080 e ~1300px */
  .nav__menu a, .nav__actions .btn { white-space: nowrap; }
  @media (max-width: 1400px) { .nav__menu a { padding-inline: 0.65rem; } }
  @media (max-width: 1240px) {
    .nav__menu, .nav__actions .btn { display: none; }
    .nav__toggle { display: grid; }
  }

  /* Hero: o texto ficava numa coluna centralizada, desalinhado do logo e do formulário */
  .hero__content {
    width: min(100% - var(--gutter) * 2, var(--container));
    max-width: none;
    & > * { max-width: 44rem; }
  }

  /* Menu mobile: tipografia proporcional à tela e duas colunas em celular deitado */
  .mobile-menu li a {
    font-size: clamp(1.3rem, 0.9rem + 3.2vw, 1.9rem);
    padding-block: clamp(0.65rem, 2.2vh, 1rem);
  }
  @media (orientation: landscape) and (max-height: 540px) {
    .mobile-menu { padding-top: calc(var(--header-h) - 0.5rem); }
    .mobile-menu ul { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
    .mobile-menu li a { font-size: 1.2rem; padding-block: 0.6rem; }
    .mobile-menu .btn { margin-top: 1rem; }
  }
  /* Navegadores sem Popover API (iOS < 17, Android antigos): menu escondido até o JS abrir */
  @supports not selector(:popover-open) {
    .mobile-menu { display: none; position: fixed; z-index: 200; opacity: 1; translate: none; }
    .mobile-menu.is-open { display: block; }
  }
  .no-popover .mobile-menu { display: none; position: fixed; z-index: 200; opacity: 1; translate: none; }
  .no-popover .mobile-menu.is-open { display: block; }
  .has-menu-open { overflow: hidden; }

  /* Áreas de toque: mínimo de 24px (WCAG 2.2) e 44px em telas de toque */
  .site-footer a:not(.socials a), .link-nav, .footer__map-links a {
    display: inline-flex; align-items: center;
    min-height: 24px;
  }
  @media (pointer: coarse) {
    .site-footer a:not(.socials a), .link-nav, .footer__map-links a { min-height: 44px; }
  }

  /* Textos que ficavam com 10px */
  label small { font-size: max(0.75rem, 0.9em); }
  /* Campos com fonte < 16px fazem o iOS dar zoom ao focar */
  @media (pointer: coarse) { select.input, .input { font-size: max(1rem, 16px); } }

  /* Card dourado do Empório: texto branco sobre dourado tinha contraste insuficiente */
  .tile--gold .tile__kicker { color: var(--navy-900); }
  .tile--gold .tile__kicker em { color: var(--navy-600); }

  /* Em telas de toque o hover "gruda" após o toque */
  @media (hover: none) {
    .room:hover { transform: none; box-shadow: var(--shadow-sm); }
    .room:hover .room__media img { scale: 1; }
  }

  /* Monitores grandes e TVs: aproveita a largura e aumenta a leitura */
  @media (min-width: 1800px) { :root { --container: 1400px; } }
  @media (min-width: 2400px) { html { font-size: 112.5%; } :root { --container: 1560px; } }

  /* Modo de alto contraste do Windows: mantém bordas visíveis em botões e campos */
  @media (forced-colors: active) {
    .btn, .input, .carousel__btn, .lightbox__btn, .lightbox__close, .fab { border: 1px solid CanvasText; }
  }
}

/* ------------------------------------------------------------- Página 404 */
@layer pages {
  .error-page {
    min-height: 100dvh;
    display: grid; place-items: center;
    padding: var(--gutter);
    position: relative; isolation: isolate;
    background: var(--navy-800);
    --waves-opacity: 0.06; --waves-size: 900px;
    color: color-mix(in srgb, white 82%, transparent);
  }
  .error-page__card {
    display: grid; justify-items: center; gap: 1.25rem;
    max-width: 34rem;
    text-align: center;
    & h1 { color: white; font-size: var(--fs-2xl); }
    & .eyebrow { color: var(--gold-500); }
  }
}

@layer components {
  /* Dica abaixo de um campo de formulário */
  .field__hint { display: block; margin-top: 0.35rem; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }

  /* Foto em pé no carrossel: inteira (sem zoom/corte) sobre a mesma foto desfocada */
  .carousel__slide--inteira {
    background: var(--navy-800);
    &::before {
      content: "";
      position: absolute; inset: -24px;
      background: var(--slide-bg) center / cover no-repeat;
      filter: blur(22px) brightness(0.75);
    }
    & img { position: relative; object-fit: contain !important; }
  }
}

/* Camada "pages" (vem depois de "sections"): a faixa precisa vencer os estilos de lista do rodapé */
@layer pages {
  /* Comodidades em destaque (Wi-Fi, internet cabeada, ar, frigobar, coworking).
     Sempre sobre fundo escuro: topo da home, topo da Fidelidade, rodapé e 404. */
  .amenities {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    padding: 0; margin: 0; list-style: none;
    & li {
      display: inline-flex; align-items: center; gap: 0.45rem;
      padding: 0.45rem 0.85rem;
      border-radius: var(--radius-pill);
      background: color-mix(in srgb, white 9%, transparent);
      border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent);
      color: white;
      font-size: var(--fs-xs); font-weight: 600; line-height: 1.2;
      backdrop-filter: blur(8px);
    }
    & .ico { width: 1.05rem; height: 1.05rem; flex: none; color: var(--gold-500); }
  }
  .fidelidade-page-hero .amenities,
  .error-page__card .amenities { justify-content: center; margin-block: 1.75rem 1.5rem; }
  .error-page__card .amenities { margin: 0; }
  /* o rodapé estiliza toda ul como lista vertical; aqui a faixa volta a ser horizontal */
  .site-footer .footer__amenities {
    padding-bottom: 2.5rem; margin-bottom: 2.5rem;
    border-bottom: 1px solid color-mix(in srgb, white 10%, transparent);
    & ul.amenities { display: flex; justify-content: center; gap: 0.5rem; }
  }
  /* No celular, versão compacta para não empurrar o formulário de reserva para baixo */
  @media (max-width: 600px) {
    .amenities { gap: 0.4rem; }
    .amenities li { padding: 0.3rem 0.6rem; font-size: 0.7rem; gap: 0.35rem; }
    .amenities .ico { width: 0.95rem; height: 0.95rem; }
  }
}
