/* ============================================================
   Odontologia Renata Macarini: landing page
   Paleta: extraída da logo real do cliente (vinho + dourado + branco).
   Ver identidade/design-guide.md e identidade/fotos/logo-odontologia-renata-macarini.webp.
   ============================================================ */

:root {
  --color-bg: #fbf9f5;
  --color-bg-alt: #f6efeb;
  --color-card: #ffffff;
  --color-text: #241a18;
  --color-text-muted: #6b5d57;
  --color-primary: #8d302f;
  --color-primary-hover: #6e2523;
  --color-primary-soft: #f1e6e6;
  --color-gold: #c69b6c;
  --color-gold-text: #8a6640;
  --color-border: rgba(141, 48, 47, 0.14);

  --font-heading: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 14px;
  --shadow-card: 0 20px 40px rgba(141, 48, 47, 0.08);
  --shadow-card-hover: 0 28px 52px rgba(141, 48, 47, 0.13);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }

p { margin: 0 0 1em; }

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

a { color: inherit; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2.5px solid var(--color-primary);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head.center { margin-inline: auto; text-align: center; }

.section-head.center .section-sub { margin-inline: auto; }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -0.01em;
}

.section-sub { color: var(--color-text-muted); font-size: 1.05rem; max-width: 60ch; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.btn-primary { background: var(--color-primary); color: #fff; }

.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }

.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

.btn-block { width: 100%; }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.1;
  text-decoration: none;
  color: var(--color-text);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--color-border);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  transform: scale(1.35);
}

.logo-text { display: flex; flex-direction: column; }

.logo-text strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.logo-text span {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-gold-text);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav a:hover { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-card);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--color-border);
}

.mobile-nav a {
  padding: 0.85rem 0.25rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 9vw, 7.5rem); overflow: hidden; position: relative; }

/* Fundo decorativo: linhas topográficas discretas, sem biblioteca e sem JS.
   Some perto da coluna de texto via mask, pra nunca competir com a leitura. */
.hero-topography {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 62% 72% at 20% 45%, transparent 35%, black 82%);
  -webkit-mask-image: radial-gradient(ellipse 62% 72% at 20% 45%, transparent 35%, black 82%);
}

.hero-topography svg { width: 100%; height: 100%; display: block; }

.hero-topography path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.topo-far path { stroke: var(--color-primary); stroke-opacity: 0.1; stroke-width: 1.3; }

.topo-near path { stroke: var(--color-gold); stroke-opacity: 0.2; stroke-width: 1.6; }

@media (prefers-reduced-motion: no-preference) {
  .topo-far { animation: topo-drift-far 34s ease-in-out infinite; }
  .topo-near { animation: topo-drift-near 22s ease-in-out infinite; }
}

@keyframes topo-drift-far {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-22px, 14px); }
  50% { transform: translate(6px, 24px); }
  75% { transform: translate(24px, -6px); }
  100% { transform: translate(0, 0); }
}

@keyframes topo-drift-near {
  0% { transform: translate(0, 0); }
  25% { transform: translate(30px, -16px); }
  50% { transform: translate(4px, -30px); }
  75% { transform: translate(-26px, -8px); }
  100% { transform: translate(0, 0); }
}

@media (forced-colors: active) {
  .hero-topography { display: none; }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero-sub {
  color: var(--color-text-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 48ch;
  margin: 1.1rem 0 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.hero-trust .stars { color: var(--color-gold); letter-spacing: 1px; }

.hero-trust strong { color: var(--color-text); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }

.hero-visual::before {
  content: '';
  position: absolute;
  inset: -6% -14%;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--color-gold) 55%, transparent), transparent 60%),
    radial-gradient(circle at 12% 88%, color-mix(in srgb, var(--color-primary) 30%, transparent), transparent 55%);
  border-radius: 50%;
  z-index: -1;
}

.hero-photo-frame {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  position: relative;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 22%;
}

.hero-rating-card {
  position: absolute;
  left: -0.5rem;
  bottom: -0.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-rating-number { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600; color: var(--color-primary); }

.hero-rating-card .stars { color: var(--color-gold); font-size: 0.9rem; letter-spacing: 1px; }

.hero-rating-card small { display: block; color: var(--color-text-muted); font-size: 0.78rem; margin-top: 0.15rem; }

/* ---------- Prova social ---------- */

.social-proof { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--color-bg-alt); }

.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem 2.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rating-big { font-family: var(--font-heading); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; color: var(--color-primary); line-height: 1; }

.rating-summary .stars { color: var(--color-gold); font-size: 1.3rem; letter-spacing: 2px; margin: 0.35rem 0; }

.rating-count { font-size: 1.05rem; }

.rating-count strong { color: var(--color-text); }

.rating-summary .btn { margin-left: auto; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.testimonial .stars { color: var(--color-gold); font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 0.85rem; }

.testimonial p { color: var(--color-text); font-size: 0.98rem; flex-grow: 1; }

.testimonial footer {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.testimonial cite { font-style: normal; font-weight: 600; color: var(--color-text); }

/* ---------- Tratamentos ---------- */

.tratamentos { padding-block: clamp(3.5rem, 7vw, 6rem); }

.tratamentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.tratamento-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.tratamento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.tratamento-index {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}

.tratamento-card h3 { font-size: 1.12rem; }

.tratamento-card p { color: var(--color-text-muted); margin: 0; font-size: 0.94rem; }

.tratamentos-note {
  margin-top: 2rem;
  padding: 1.1rem 1.4rem;
  background: var(--color-primary-soft);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 74ch;
}

/* ---------- Resultados ---------- */

.resultados { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--color-bg-alt); }

.resultado-figure {
  margin: 0 auto;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.resultado-figure img { width: 100%; height: auto; }

.resultado-nota {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  margin: 1.1rem auto 0;
  max-width: 50ch;
}

/* ---------- Sobre ---------- */

.sobre { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--color-bg-alt); }

.sobre-inner {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.sobre-badge-wrap { display: flex; justify-content: center; }

.sobre-badge {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.sobre-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 26%;
}

.sobre-badge::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
}

.sobre-copy p { color: var(--color-text-muted); font-size: 1.03rem; }

.sobre-copy p.sobre-cro {
  color: var(--color-gold-text);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.sobre-quotes { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 0.9rem; }

.sobre-quotes li {
  background: var(--color-card);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.sobre-quotes cite { display: block; margin-top: 0.35rem; font-style: normal; font-size: 0.82rem; color: var(--color-text-muted); }

/* ---------- Localização ---------- */

.localizacao { padding-block: clamp(3.5rem, 7vw, 6rem); }

.localizacao-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}

.localizacao-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-line { display: flex; gap: 0.85rem; align-items: flex-start; }

.contact-line svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--color-primary); margin-top: 0.15rem; }

.contact-line a { text-decoration: none; color: var(--color-text); font-weight: 500; }

.contact-line a:hover { color: var(--color-primary); }

.contact-line p { margin: 0; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  min-height: 320px;
}

.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- CTA final ---------- */

.cta-final {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-final h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.cta-final p {
  max-width: 52ch;
  margin: 0.75rem auto 2rem;
  color: color-mix(in srgb, #fff 85%, transparent);
  font-size: 1.05rem;
}

.cta-final .btn-primary { background: #fff; color: var(--color-primary); }

.cta-final .btn-primary:hover { background: color-mix(in srgb, #fff 88%, var(--color-primary)); }

.cta-final .btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }

.cta-final .btn-ghost:hover { border-color: #fff; }

.cta-final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 2.25rem; border-top: 1px solid var(--color-border); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 1rem; }

.footer-logo { width: 56px; height: 56px; border-radius: var(--radius-sm); flex-shrink: 0; }

.footer-brand strong { font-family: var(--font-heading); font-size: 1.05rem; }

.footer-brand p { color: var(--color-text-muted); font-size: 0.88rem; margin: 0.3rem 0 0; }

.footer-meta { text-align: right; color: var(--color-text-muted); font-size: 0.85rem; }

.footer-meta p { margin: 0 0 0.25rem; }

/* ---------- CTA fixo mobile ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 0.7rem 1rem calc(0.7rem + var(--safe-bottom));
  background: color-mix(in srgb, var(--color-bg) 96%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 260px; }
  .hero h1 { max-width: none; }
  .sobre-inner, .localizacao-inner { grid-template-columns: 1fr; }
  .sobre-badge-wrap { order: -1; }
  .rating-summary .btn { margin-left: 0; width: 100%; }
  .mobile-cta { display: block; }
  body { padding-bottom: calc(76px + var(--safe-bottom)); }
}

@media (max-width: 480px) {
  .hero-rating-card { position: static; margin-top: 1rem; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}
