/* ===== Tokens ===== */
:root {
  --radius: 0.5rem;
  --background: oklch(0.15 0.008 60);
  --foreground: oklch(0.96 0.008 85);
  --card: oklch(0.2 0.01 60);
  --border: oklch(0.3 0.01 60);
  --gold: oklch(0.76 0.12 82);
  --gold-foreground: oklch(0.15 0.008 60);
  --whatsapp: oklch(0.68 0.17 150);
  --whatsapp-foreground: oklch(0.99 0 0);
  --veil: linear-gradient(90deg, oklch(0.12 0.008 60 / 0.92) 0%, oklch(0.12 0.008 60 / 0.55) 45%, oklch(0.12 0.008 60 / 0.05) 75%);
  --shadow-soft: 0 20px 50px -20px oklch(0 0 0 / 0.6);
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;

  --fg-10: color-mix(in oklab, var(--foreground) 10%, transparent);
  --fg-55: color-mix(in oklab, var(--foreground) 55%, transparent);
  --fg-60: color-mix(in oklab, var(--foreground) 60%, transparent);
  --fg-65: color-mix(in oklab, var(--foreground) 65%, transparent);
  --fg-70: color-mix(in oklab, var(--foreground) 70%, transparent);
  --fg-80: color-mix(in oklab, var(--foreground) 80%, transparent);
}

/* ===== Reset (equivalente ao preflight do Tailwind) ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: inherit;
}
h1, h2, h3 { font-size: inherit; font-weight: inherit; font-family: var(--font-display); letter-spacing: -0.02em; }
a { color: inherit; text-decoration: inherit; }
ol, ul { list-style: none; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
summary { display: list-item; }

/* ===== Utilitários ===== */
.text-gold { color: var(--gold); }
.muted-60 { color: var(--fg-60); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.bg-background { background-color: var(--background); }
.container { margin-inline: auto; width: 100%; max-width: 72rem; padding-inline: 1.25rem; }
.container-narrow { margin-inline: auto; max-width: 48rem; padding-inline: 1.25rem; }
.anchor { scroll-margin-top: 6rem; }
.section { padding-block: 6rem; }
.section-sm { padding-block: 4rem; }
.eyebrow { font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3em; color: var(--gold); }

/* ===== Layout ===== */
.page { position: relative; min-height: 100vh; background-color: var(--background); color: var(--foreground); }

.hero-bg {
  position: fixed; inset: 0;
  background-size: cover; background-repeat: no-repeat; background-position: 72% top;
  /* camada própria na GPU: o fundo fixo não é repintado a cada scroll */
  transform: translateZ(0); will-change: transform;
}
.site-header, .marquee-wrap { transform: translateZ(0); }
.reveal { will-change: opacity, transform; }
.bg-veil { position: absolute; inset: 0; background-image: var(--veil); }
@media (max-width: 767px) {
  .bg-veil { background-image: linear-gradient(0deg, oklch(0.12 0.008 60 / 0.95) 15%, oklch(0.12 0.008 60 / 0.2) 65%); }
}

.site-header {
  position: fixed; top: 0; z-index: 40; width: 100%;
  border-bottom: 1px solid var(--fg-10);
  background-color: color-mix(in oklab, var(--background) 40%, transparent);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 0.75rem; }
.logo {
  display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid var(--gold);
  font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; color: var(--gold);
}
.nav-links {
  display: none; gap: 2rem;
  font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--fg-80);
}
.nav-links a:hover { color: var(--gold); }

/* Menu hambúrguer (telas pequenas) */
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  height: 2.5rem; width: 2.5rem; padding: 0 0.5rem;
  background: none; cursor: pointer;
}
.menu-toggle span {
  display: block; height: 1.5px; width: 100%; background-color: var(--foreground);
  transition: transform 300ms ease, opacity 300ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.mobile-menu.open { max-height: 20rem; border-top: 1px solid var(--fg-10); }
.mobile-menu a {
  display: block; padding: 1rem 1.25rem;
  font-size: 0.75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--fg-80);
}
.mobile-menu a + a { border-top: 1px solid var(--fg-10); }
.mobile-menu a:hover { color: var(--gold); }

/* Botões */
.btn-wa {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  background-color: var(--gold); color: var(--gold-foreground);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.625rem 1.25rem; font-size: 0.75rem; line-height: 1rem;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-wa:hover { filter: brightness(1.1); }
.btn-big { padding: 1rem 2rem; font-size: 0.875rem; line-height: 1.25rem; }
.wa-icon { height: 1.25rem; width: 1.25rem; fill: currentColor; }

/* Hero */
.main { position: relative; }
.hero { display: flex; min-height: 100vh; align-items: flex-end; padding-bottom: 6rem; }
.hero-content { max-width: 36rem; }
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero-title { font-size: 2.25rem; font-weight: 300; line-height: 1.25; }
.hero-name { margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }

/* Marquee */
.marquee-wrap {
  overflow: hidden; padding-block: 1rem;
  border-block: 1px solid var(--fg-10);
  background-color: color-mix(in oklab, var(--background) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.marquee {
  display: flex; width: max-content; gap: 2.5rem; white-space: nowrap;
  font-size: 0.875rem; line-height: 1.25rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--fg-70);
  animation: marquee 30s linear infinite;
}
.marquee > span { display: flex; align-items: center; gap: 2.5rem; }
.marquee > span > span { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Títulos de seção */
.section-title { text-align: center; font-size: 1.875rem; line-height: 2.25rem; font-weight: 300; }
.section-sub { margin: 1rem auto 0; max-width: 36rem; text-align: center; color: var(--fg-65); }

/* Valores */
.values-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
.value-card { border-radius: var(--radius); border: 1px solid var(--fg-10); background-color: var(--card); padding: 2rem; }
.gold-line { margin-bottom: 1.25rem; height: 1px; width: 2.5rem; background-color: var(--gold); }
.value-card h3 { font-size: 1.25rem; line-height: 1.75rem; }
.value-card p { margin-top: 0.75rem; color: var(--fg-65); }

/* Sobre */
.about-grid { margin-top: 7rem; display: grid; align-items: center; gap: 3.5rem; }
.about-photo { position: relative; }
.about-photo img {
  aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius); object-fit: cover; filter: grayscale(30%);
}
.photo-tag {
  position: absolute; bottom: -1.25rem; right: 1rem;
  border-radius: calc(var(--radius) - 2px); background-color: var(--gold); color: var(--gold-foreground);
  padding: 0.5rem 1.25rem; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; font-style: italic;
}
.about-title { margin-top: 1rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 300; }
.about-text { font-size: 1.125rem; line-height: 1.75rem; color: var(--fg-70); }

/* Números */
.stats { border-block: 1px solid var(--fg-10); padding-block: 4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; text-align: center; }
.stat-n { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 300; color: var(--gold); }
.stat-l { margin-top: 0.5rem; font-size: 0.75rem; line-height: 1rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--fg-60); }

/* Atendimentos */
.services-grid {
  margin-top: 3.5rem; display: grid; gap: 1px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--fg-10); background-color: var(--fg-10);
}
.service { background-color: var(--background); padding: 2rem; transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.service:hover { background-color: var(--card); }
.service-n { font-family: var(--font-display); font-size: 0.875rem; line-height: 1.25rem; color: var(--gold); }
.service h3 { margin-top: 0.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 300; }
.service p { margin-top: 0.75rem; color: var(--fg-65); }

/* Como funciona */
.steps { margin-top: 3.5rem; display: grid; gap: 2rem; }
.step { border-top: 1px solid var(--gold); padding-top: 1.5rem; }
.step-n { font-family: var(--font-display); font-size: 2.25rem; line-height: 2.5rem; font-weight: 300; color: var(--gold); }
.step h3 { margin-top: 0.75rem; font-size: 1.125rem; line-height: 1.75rem; }
.step p { margin-top: 0.5rem; color: var(--fg-65); }

/* FAQ */
.faqs { margin-top: 3rem; border-block: 1px solid var(--fg-10); }
.faq { padding-block: 1.25rem; }
.faq + .faq { border-top: 1px solid var(--fg-10); }
.faq summary {
  display: flex; cursor: pointer; list-style: none; align-items: center; justify-content: space-between;
  font-size: 1.125rem; line-height: 1.75rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 1.5rem; line-height: 2rem; color: var(--gold); transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.faq[open] .faq-plus { rotate: 45deg; }
.faq p { margin-top: 0.75rem; color: var(--fg-65); }

/* CTA */
.cta-wrap { padding-inline: 1.25rem; padding-bottom: 6rem; }
.cta {
  margin-inline: auto; max-width: 56rem; text-align: center;
  border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  background-color: var(--card); padding: 4rem 2rem;
}
.cta h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 300; }
.cta p { margin: 1rem auto 0; max-width: 32rem; color: var(--fg-65); }

/* Rodapé */
.footer {
  border-top: 1px solid var(--fg-10); padding: 2.5rem 1.25rem; text-align: center;
  font-size: 0.875rem; line-height: 1.25rem; color: var(--fg-55);
}
.footer-name { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; color: var(--foreground); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 50;
  display: flex; height: 3.5rem; width: 3.5rem; align-items: center; justify-content: center;
  border-radius: 9999px; background-color: var(--whatsapp); color: var(--whatsapp-foreground);
  box-shadow: var(--shadow-soft);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.wa-float:hover { transform: scale(1.1); }

/* Animação de entrada */
.reveal { transition: opacity .8s ease, transform .8s ease; }
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(24px); }

/* ===== Breakpoints (sm 640px, md 768px, lg 1024px) ===== */
@media (min-width: 40rem) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .hero-bg { background-position: center; }
  .nav-links { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
  .hero { align-items: center; padding-bottom: 0; }
  .hero-title { font-size: 3.75rem; }
  .section-title, .about-title, .cta h2 { font-size: 3rem; line-height: 1; }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 7 cards: o último ocupa a linha inteira para não sobrar espaço vazio */
@media (min-width: 40rem) and (max-width: 63.99rem) {
  .service:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .service:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .service:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* Atendimento domiciliar */
.home-visit {
  display: grid; gap: 3rem; align-items: center;
  border-radius: var(--radius); border: 1px solid var(--fg-10); background-color: var(--card); padding: 3rem 2rem;
}
.cities { border-top: 1px solid var(--fg-10); }
.cities li {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-block: 1.25rem; border-bottom: 1px solid var(--fg-10);
  font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 300;
}
.cities li span {
  font-family: var(--font-sans); font-size: 0.75rem; line-height: 1rem; font-weight: 600;
  letter-spacing: 0.25em; color: var(--gold);
}
@media (min-width: 48rem) {
  .home-visit { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4rem 3.5rem; }
}

/* Mapa do Google */
.map {
  grid-column: 1 / -1; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--fg-10);
  aspect-ratio: 4 / 3;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 48rem) { .map { aspect-ratio: 21 / 9; } }

/* Botão secundário (Avalie no Google) */
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: calc(var(--radius) - 2px); border: 1px solid var(--gold); color: var(--gold);
  padding: 0.625rem 1.25rem; font-size: 0.75rem; line-height: 1rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover { background-color: var(--gold); color: var(--gold-foreground); }
