/* ==========================================================================
   ONDA PUB — folha de estilo compartilhada
   Conceito: maré noturna. Azul-noite domina (≈60%), areia/creme em painéis
   e texto (≈30%), dourado só onde a luz precisa chamar atenção (≈10%).
   Mobile-first: tudo abaixo vale para celular; @media (min-width) amplia.
   ========================================================================== */

/* ---------- Fontes (hospedadas junto do site, sem depender de CDN) ---------- */
@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations");
  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: "DM Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0B1D2E;        /* base (60%) */
  --navy-deep: #08151F;   /* rodapé: mesma família, um tom abaixo */
  --cream: #E8DCC4;       /* secundária (30%) */
  --cream-soft: #C9BFA8;  /* texto secundário sobre azul: contraste ≈ 9:1 */
  --gold: #F2B544;        /* destaque (10%) */
  --ink-soft: #3A4C5C;    /* texto secundário sobre creme: contraste ≈ 6,6:1 */
  --paper: #F4EDDC;       /* fundo de campos sobre creme */
  --line: rgba(232, 220, 196, 0.2);
  --line-dark: rgba(11, 29, 46, 0.3);

  --font-title: "Fraunces Variable", "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans Variable", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 68px;
  --wrap: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
img { display: block; }
h1, h2, h3 {
  font-family: var(--font-title);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.7rem, 9vw, 5rem); }
h2 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-underline-offset: 0.2em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.menu-sheet + .section { border-top: 0; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 36rem; }
.muted { color: var(--cream-soft); }

/* ---------- Acessibilidade ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -200px; z-index: 300;
  background: var(--gold); color: var(--navy); font-weight: 700;
  padding: 0.8rem 1.1rem; border-radius: 4px; text-decoration: none;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.on-cream :focus-visible { outline-color: var(--navy); }

/* ---------- Escrita à mão (SVG) e tela de carregamento ---------- */
/* Os traços são desenhados pelo script.js. Estado padrão = tudo escrito. */
.pen { display: block; height: auto; overflow: visible; }
.pen path {
  fill: none; stroke: currentColor; stroke-width: 5;
  stroke-linecap: round; stroke-linejoin: round;
}
.pen .flourish { stroke: var(--gold); stroke-width: 4; }
.pen--small path { stroke-width: 7; }
/* Só o momento de destaque anima: o traço aparece uma vez e fica. */
.pen.is-writing path {
  stroke-dasharray: 1 2;
  stroke-dashoffset: 1.04;
  animation: pen-write 0.4s ease-out forwards;
  animation-delay: calc(var(--i) * 0.1s);
}
@keyframes pen-write { to { stroke-dashoffset: 0; } }

.loader {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 400;
  background: var(--navy);
  align-items: center; justify-content: center;
  transition: opacity 0.2s ease;
}
.has-loader .loader { display: flex; }
.loader.is-leaving { opacity: 0; }
.loader.is-gone { display: none !important; }
.loader .pen { width: min(78vw, 26rem); color: var(--cream); }

/* ---------- Cabeçalho e navegação ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 29, 46, 0.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 0.75rem; min-height: var(--header-h);
}
.logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; text-decoration: none;
  font-family: var(--font-title); font-weight: 700; font-size: 1.3rem;
  letter-spacing: 0.06em; color: var(--cream);
}
.logo .ico { width: 1.9rem; height: 1.9rem; color: var(--gold); }
.header-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button {
  min-width: 44px; min-height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--cream);
  font: 700 0.95rem/1 var(--font-body); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.lang button:not([aria-pressed="true"]):hover { background: rgba(232, 220, 196, 0.12); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--cream);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.js .nav-toggle { display: inline-flex; }

.site-nav { flex-basis: 100%; order: 3; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-nav a {
  position: relative; display: flex; align-items: center;
  min-height: 44px; min-width: 44px; padding: 0 0.85rem;
  color: var(--cream); text-decoration: none; font-weight: 500;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 6px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav a:hover::after { transform: scaleX(1); }
/* Página atual destacada: cor dourada + sublinhado fixo */
.site-nav a[aria-current="page"] { color: var(--gold); font-weight: 700; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 859px) {
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 0; }
  .js .site-nav a::after { left: 0; right: auto; width: 2.5rem; }
}
@media (min-width: 860px) {
  .nav-toggle, .js .nav-toggle { display: none; }
  .site-nav { flex-basis: auto; order: 0; margin-left: auto; }
  .header-tools { margin-left: 0.75rem; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border: 2px solid transparent; border-radius: 4px;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .ico { width: 1.5rem; height: 1.5rem; flex: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #F7C766; }
.btn--ghost { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: var(--cream); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--cream); }
.btn--dark:hover { background: #17344D; }
.btn--outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline-dark:hover { background: var(--navy); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Ícones e ilustrações (rough.js) ---------- */
.ico { display: block; width: 2rem; height: 2rem; flex: none; overflow: visible; color: currentColor; }
.ico--gold { color: var(--gold); }
.illus { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- Foto com overlay em gradiente e parallax leve ---------- */
.media { position: relative; overflow: hidden; background: #12273A; }
.media img {
  position: absolute; left: 0; top: -8%;
  width: 100%; height: 116%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.media::after {          /* acabamento: gradiente do azul-noite sobre a foto */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(11, 29, 46, 0.2) 0%, rgba(11, 29, 46, 0.5) 55%, rgba(11, 29, 46, 0.92) 100%);
}
.media__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.5rem 1.25rem; font-family: var(--font-title); font-size: 1.3rem; color: var(--cream);
}

/* ---------- Início: split screen ---------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero__text { padding: 2.75rem 1.25rem 3rem; align-self: center; }
.hero__script { width: min(15rem, 70%); color: var(--gold); margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(3.4rem, 15vw, 8rem); font-weight: 700; line-height: 0.95; letter-spacing: 0.01em; margin-bottom: 1.25rem; }
.hero__media { min-height: 64svh; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - var(--header-h)); }
  .hero__text {
    padding: 4rem clamp(1.5rem, 5vw, 5rem) 4rem max(1.5rem, calc((100vw - var(--wrap)) / 2));
  }
  .hero__media { min-height: 0; }
  .hero__media::before {   /* funde a foto com a coluna de texto */
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; z-index: 1;
    background: linear-gradient(90deg, var(--navy), rgba(11, 29, 46, 0));
  }
}

/* ---------- Seções em split (painel creme + foto) ---------- */
.split { display: grid; grid-template-columns: 1fr; }
.split__media { min-height: 340px; }
.split__body { padding: 3.5rem 1.25rem; }
.split__inner { max-width: 33rem; }
.split--cream { background: var(--cream); color: var(--navy); }
.split--cream .muted, .split--cream .desc { color: var(--ink-soft); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__media { min-height: 560px; }
  .split__body { display: flex; align-items: center; padding: 4rem clamp(1.5rem, 5vw, 5rem); }
  .split--flip .split__media { order: 2; }
  .split--flip .split__body { justify-content: flex-end; }
}

.features { display: grid; gap: 0; margin-top: 2rem; list-style: none; }
.feature {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem;
  padding: 1.25rem 0; border-top: 1px solid var(--line-dark);
}
.feature .ico { width: 44px; height: 44px; }
.feature h3 { margin-bottom: 0.2rem; }
.feature p { margin: 0; }

/* ---------- Depoimentos ---------- */
.quotes { display: grid; gap: 2.75rem; margin-top: 2.5rem; }
.quote { margin: 0; }
.quote .ico { width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-title); font-size: 1.4rem; line-height: 1.4; margin-bottom: 1rem;
}
.quote figcaption { color: var(--cream-soft); font-size: 0.95rem; }
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 3rem; align-items: start; }
  .quote:nth-child(2) { margin-top: 3rem; }
  .quote:nth-child(3) { margin-top: 1.5rem; }
}

/* ---------- Horário, como chegar e mapa ---------- */
.visit { display: grid; gap: 2.5rem; }
.visit > * { min-width: 0; }
.info-list { list-style: none; display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico { width: 2.25rem; height: 2.25rem; color: var(--gold); margin-top: 0.1rem; }
.info-label { display: block; font-size: 0.92rem; color: var(--cream-soft); }
.info-value { display: block; font-size: 1.15rem; font-weight: 500; }
.info-value a { display: inline-flex; align-items: center; min-height: 44px; text-decoration-thickness: 1px; }
.visit__illus { width: min(15rem, 62%); color: var(--cream); margin-top: 2.5rem; }
.map {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #102739;
}
.map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .visit { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
  .map { aspect-ratio: auto; min-height: 460px; }
}

/* ---------- Páginas internas: cabeçalho com foto ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: 46svh; overflow: hidden; }
.page-hero .media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.page-hero__content { position: relative; z-index: 2; padding: 4rem 0 2.5rem; }
.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero .lead { margin-bottom: 0; }
@media (min-width: 900px) { .page-hero { min-height: 52svh; } }

.prose { max-width: 38rem; }
.prose p { font-size: 1.1rem; }
.values { display: grid; gap: 0; list-style: none; margin-top: 1.5rem; }
.values .feature { border-top-color: var(--line); }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
}
.ornament { width: min(18rem, 70%); color: var(--cream); margin-top: 2rem; }

/* ---------- Cardápio ---------- */
.menu-sheet { background: var(--cream); color: var(--navy); }
.menu-intro { max-width: 38rem; }
.menu-grid { display: grid; gap: 3rem; margin-top: 2.5rem; }
.menu-cat h2 { display: flex; align-items: center; gap: 0.9rem; font-size: clamp(1.6rem, 4.6vw, 2.1rem); margin-bottom: 0.25rem; }
.menu-cat h2 .ico { width: 2.75rem; height: 2.75rem; }
.menu-items { list-style: none; margin-top: 0.75rem; }
.menu-items li { padding: 0.95rem 0; border-bottom: 1px dashed var(--line-dark); }
.menu-item__name { display: block; font-weight: 700; font-size: 1.1rem; }
.menu-item__desc { display: block; color: var(--ink-soft); }
.menu-note { margin-top: 2.5rem; color: var(--ink-soft); font-size: 0.95rem; }
@media (min-width: 800px) { .menu-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem 5rem; } }

.cta-band { text-align: left; }
.cta-band h2 { max-width: 28rem; }

/* ---------- Trabalhe conosco ---------- */
.jobs { display: grid; gap: 3rem; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--gold); border-radius: 50%;
  font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; color: var(--gold);
}
.steps h3 { margin-bottom: 0.15rem; }
.steps p { margin: 0; color: var(--cream-soft); }

.form-card {
  background: var(--cream); color: var(--navy);
  padding: 2rem 1.5rem; border-radius: 4px 28px 4px 28px;
}
.form-card h2 { font-size: 1.7rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  background: var(--paper); color: var(--navy);
  border: 1.5px solid var(--navy); border-radius: 4px;
  font: 400 1rem/1.4 var(--font-body);
}
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: #4A5B6B; opacity: 1; }
.field-error { margin: 0.4rem 0 0; color: #8A1F11; font-weight: 500; }
.form-note { margin: 1rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
@media (min-width: 900px) {
  .jobs { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .form-card { padding: 2.5rem 2.25rem; }
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding: 3.5rem 0 6.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand { font-family: var(--font-title); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.5rem; letter-spacing: 0; }
.footer-list { list-style: none; }
.footer-list li { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; }
.footer-list .ico { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-footer address { font-style: normal; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--cream-soft); font-size: 0.92rem; }
.footer-legal p { margin-bottom: 0.4rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

/* ---------- Botão fixo de WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 90;
  right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 56px; height: 56px; padding: 0 1rem;
  background: var(--gold); color: var(--navy); border-radius: 999px;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: background-color 0.2s ease;
}
.wa-float:hover { background: #F7C766; }
.wa-float .ico { width: 1.9rem; height: 1.9rem; }
.wa-float__label { display: none; }
@media (min-width: 600px) { .wa-float__label { display: inline; } .wa-float { padding: 0 1.4rem 0 1.1rem; } }

/* ---------- Movimento reduzido: tudo pronto, sem efeito ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .loader { display: none !important; }
  .pen.is-writing path { stroke-dasharray: none; stroke-dashoffset: 0; }
  .media img { top: 0; height: 100%; transform: none; will-change: auto; }
}

/* site modelo */
.map-ph{display:grid;place-items:center;text-align:center;min-height:240px;width:100%;background:rgba(127,127,127,.14);border:1px dashed rgba(127,127,127,.5);border-radius:12px;font-size:.95rem;padding:1rem;line-height:1.5;color:inherit}.map-ph svg{width:32px;height:32px;margin:0 auto .4rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
