/* =================================================================
   SCULPTEE — base.css
   Design tokens, reset, tipografia editorial e componentes globais.
   Identidade oficial: paleta greige + Quiche Sans (display) e
   Neue Haas Grotesk (corpo). Ajuste as variáveis para retunar tudo.
   ================================================================= */

/* --------------------------- Fontes locais ---------------------- */
@font-face {
  font-family: "Quiche Sans";
  src: url("../fonts/QuicheSans-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Quiche Sans";
  src: url("../fonts/QuicheSans-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Quiche Sans";
  src: url("../fonts/QuicheSans-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Quiche Sans";
  src: url("../fonts/QuicheSans-Italic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("../fonts/NHaasGrotesk-Thin.otf") format("opentype");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("../fonts/NHaasGrotesk-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("../fonts/NHaasGrotesk-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk";
  src: url("../fonts/NHaasGrotesk-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* ---- Cores (greige oficial) ---- */
  --bg:          #FFF9F2; /* off-white quente (fundo base)          */
  --bg-alt:      #F2ECE3; /* greige claro (seções alternadas)       */
  --bg-deep:     #918270; /* taupe (seções escuras)                 */
  --bg-deep-2:   #6E6354; /* taupe profundo (footer / bio)          */
  --ink:         #2B2723; /* texto principal (marrom quase preto)   */
  --ink-soft:    #56504A; /* texto secundário                       */
  --muted:       #A19487; /* texto auxiliar / legendas              */
  --line:        rgba(43,39,35,.12); /* divisórias                  */
  --line-light:  rgba(255,249,242,.18);
  --gold:        #8C7B68; /* acento taupe (legível em fundo claro)  */
  --gold-soft:   #E4DDD2; /* acento claro (legível em fundo taupe)  */
  --on-deep:     #F5F0E8; /* texto sobre fundo escuro               */
  --white:       #FFFFFF;

  /* ---- Tipografia ---- */
  --font-display: "Quiche Sans", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Neue Haas Grotesk", "Inter", system-ui, -apple-system, sans-serif;

  /* ---- Métricas ---- */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;       /* cantos finos, ar editorial */
  --radius-lg: 6px;
  --section-y: clamp(64px, 10vw, 140px);

  /* ---- Sombra / transições ---- */
  --shadow-soft: 0 24px 60px -28px rgba(33,30,26,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* --------------------------- Tipografia -------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.h-display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p  { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-soft); }
.serif-accent { font-family: var(--font-display); font-style: italic; }

/* --------------------------- Layout ------------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--alt  { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: var(--on-deep); }
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--on-deep); }
.section--deep p { color: rgba(237,231,220,.78); }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head p { margin-top: 18px; }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------- Botões ------------------------------ */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.05em 2.2em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold  { --btn-bg: var(--gold); --btn-fg: #1c1813; border-color: var(--gold); }
.btn--gold:hover { --btn-bg: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--on-deep { --btn-bg: transparent; --btn-fg: var(--on-deep); border-color: var(--line-light); }
.btn--on-deep:hover { --btn-bg: var(--gold); --btn-fg: #1c1813; border-color: var(--gold); }
.btn--block { width: 100%; }

.link-underline {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease);
}
.link-underline:hover { gap: .9em; }

/* --------------------------- Header ------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled {
  background: rgba(255,249,242,.86);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand small { display: block; font-family: var(--font-body); font-size: .52rem; letter-spacing: .42em; color: var(--muted); margin-top: 2px; text-align: center; }
.site-header:not(.scrolled) .brand { color: var(--white); }
.site-header:not(.scrolled) .brand small { color: rgba(255, 249, 242, .78); }
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .brand small { color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 34px); margin-left: auto; }
.nav a:not(.btn) {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  white-space: nowrap;
}
.site-header:not(.scrolled) .nav a:not(.btn) { color: rgba(255, 249, 242, .86); }
.site-header:not(.scrolled) .nav a:not(.btn):hover { color: var(--white); }
.site-header.scrolled .nav a:not(.btn) { color: var(--ink-soft); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header:not(.scrolled) .nav-toggle { border-color: rgba(255, 249, 242, .18); background: rgba(255, 249, 242, .08); }
.site-header.scrolled .nav-toggle { border-color: var(--line); background: rgba(255, 249, 242, .72); }
.nav-toggle span { height: 1.5px; width: 18px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease); }
.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------- Footer ------------------------------ */
.site-footer { background: var(--bg-deep-2); color: var(--on-deep); padding-top: clamp(56px, 8vw, 96px); }
.site-footer a { color: rgba(237,231,220,.75); transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
.footer-grid--full { grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); }
.footer-grid--lp { grid-template-columns: 1.35fr minmax(0, 1fr) minmax(0, 1fr); }
.footer-brand .brand { color: var(--on-deep); margin-bottom: 18px; }
.footer-brand p { color: rgba(237,231,220,.6); max-width: 30ch; }
.footer-brand p + p { margin-top: 14px; }
.footer-col h4 { font-family: var(--font-body); font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; }
.footer-col li { margin-bottom: 12px; font-size: .92rem; }
.footer-links-double {
  columns: 2;
  column-gap: 24px;
}
.footer-links-double li {
  break-inside: avoid;
}
.footer-links-highlight a {
  color: var(--gold-soft);
}
.footer-links-highlight a:hover {
  color: var(--white);
}
.footer-bottom { border-top: 1px solid var(--line-light); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.footer-bottom p { color: rgba(237,231,220,.5); font-size: .78rem; letter-spacing: .04em; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-credit {
  border-top: 1px solid rgba(255,249,242,.08);
  margin-top: 10px;
  padding: 16px 0 20px;
  text-align: center;
}
.footer-credit p {
  color: rgba(237,231,220,.46);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-credit a {
  color: var(--gold-soft);
}
.footer-credit a:hover {
  color: var(--white);
}

/* --------------------------- Lead modal -------------------------- */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lead-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 18, 13, .58);
  backdrop-filter: blur(8px);
}
.lead-modal__dialog {
  position: relative;
  width: min(100%, 560px);
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(24, 17, 10, .22);
  padding: clamp(24px, 4vw, 36px);
}
.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 242, .88);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
}
.lead-modal__close:hover { background: var(--bg-alt); }
.lead-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead-modal__dialog h3 {
  margin-bottom: 8px;
}
.lead-modal__dialog p {
  color: var(--muted);
  margin-bottom: 22px;
}
.lead-modal__dialog .lead-form {
  display: grid;
  gap: 16px;
}
.lead-modal__dialog .trust {
  color: var(--muted);
  text-align: center;
  font-size: .78rem;
}
body.modal-open {
  overflow: hidden;
}

/* ------------------------ WhatsApp flutuante --------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--bg-deep); color: var(--on-deep);
  padding: 14px 18px; border-radius: 100px;
  font-size: .82rem; letter-spacing: .08em;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); background: var(--gold); color: #1c1813; }
.wa-float svg,
.wa-float img { width: 20px; height: 20px; flex: none; }
.wa-float img { filter: brightness(0) invert(1); }
.wa-float:hover img { filter: none; }
.wa-float .wa-label { white-space: nowrap; }

/* ----------------------- Reveal on scroll ----------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------- Placeholder de mídia ------------------- */
.media { position: relative; overflow: hidden; background: var(--bg-alt); border-radius: var(--radius); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media.zoom:hover img { transform: scale(1.04); }
.media-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 4/5; color: var(--muted); text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, rgba(138,129,117,.06) 0 12px, transparent 12px 24px),
    var(--bg-alt);
  border: 1px solid var(--line);
}
.media-ph span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.media-ph small { font-size: .72rem; color: var(--muted); }

/* ----------------------------- Utils ---------------------------- */
.text-center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.cta-row.center { justify-content: center; }
.divider-dot { color: var(--gold); }

/* --------------------------- Responsivo -------------------------- */
@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid,
  .footer-grid--full,
  .footer-grid--lp { grid-template-columns: 1fr 1fr; }
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: .74rem; }
  .nav .btn { padding-inline: 1.4em; }
}
@media (max-width: 820px) {
  .site-header { padding: 12px 0; }
  .brand { font-size: 1.15rem; letter-spacing: .12em; }
  .brand small { font-size: .48rem; letter-spacing: .26em; }
  .nav-toggle { display: flex; z-index: 110; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    background: rgba(255, 249, 242, .98);
    backdrop-filter: blur(18px);
    padding: max(88px, env(safe-area-inset-top)) var(--gutter) max(32px, env(safe-area-inset-bottom));
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) {
    font-size: 1rem;
    color: var(--ink) !important;
    text-align: center;
    padding: 14px 0;
  }
  .nav a:not(.btn)::after { left: 50%; transform: translateX(-50%); }
  .nav .btn {
    width: min(100%, 320px);
    margin: 12px auto 0;
  }
}
@media (max-width: 720px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
  .section-head p { margin-top: 14px; }
  .cta-row { flex-direction: column; }
  .cta-row > * { width: 100%; }
  .btn { width: 100%; padding-inline: 1.4em; }
  .footer-grid,
  .footer-grid--full,
  .footer-grid--lp { grid-template-columns: 1fr; }
  .footer-links-double { columns: 1; }
  .wa-float .wa-label { display: none; }
}
@media (max-width: 560px) {
  .h-display { font-size: clamp(2.2rem, 11vw, 3rem); }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .eyebrow { font-size: .68rem; letter-spacing: .2em; }
  .hero__scroll { display: none; }
  .wa-float { right: 16px; bottom: 16px; padding: 13px; }
  .site-header .container { gap: 14px; }
  .brand { font-size: 1rem; letter-spacing: .1em; }
  .brand small { font-size: .44rem; letter-spacing: .18em; }
  .nav { padding-inline: 20px; }
  .nav a:not(.btn) { font-size: .95rem; }
  .lead-modal { padding: 16px; }
  .lead-modal__dialog { border-radius: 16px; padding: 24px 18px 20px; }
}
