/* =========================================================
   {{CLINIC_NAME}} — Site Demonstrativo v2
   AN Automação Digital
   ========================================================= */

:root {
  --paper: #F3EFE2;
  --ink: #16241A;
  --primary: #2B4A34;
  --primary-dark: #17281C;
  --accent: #C9A227;
  --accent-ink: #241B04;
  --muted: #5C6659;
  --line: rgba(22,36,26,0.14);
  --font-display: 'Fraunces', serif;
  --font-script: 'Fraunces', serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
em.script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--accent); }

/* dot pattern texture */
.dots {
  background-image: radial-gradient(currentColor 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  color: var(--line);
}

/* wavy divider */
.wave { display: block; width: 100%; line-height: 0; position: relative; z-index: 2; }
.wave svg { display: block; width: 100%; height: 64px; }

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  background: var(--accent);
  color: var(--accent-ink);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.btn svg { width: 18px; height: 18px; }
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
}
.textlink.muted-link { color: var(--ink); opacity: 0.75; }
.rating-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.rating-link .star-row { display: inline-flex; gap: 2px; }
.rating-link svg { width: 15px; height: 15px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 13px; }
.mono-badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  flex-shrink: 0;
  border: 1.5px solid var(--ink);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}
.main-nav a:hover { opacity: 1; }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .btn { padding: 12px 20px; font-size: 0.85rem; }
.header-phone { font-size: 0.86rem; font-weight: 600; opacity: 0.8; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  position: relative; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle::before { position: absolute; transform: translateY(-7px); }
.nav-toggle::after { position: absolute; transform: translateY(7px); }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { transform: rotate(45deg); }
.nav-toggle.is-open::after { transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 168px 0 0; background: var(--paper); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 70px; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  margin-bottom: 26px;
  color: var(--ink);
}
.hero .lead { font-size: 1.1rem; max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-bottom: 34px; }
.hero-rating-row { margin-bottom: 6px; }

.hero-panel {
  position: relative;
  align-self: stretch;
  border-radius: 400px 400px 0 0;
  background: var(--primary);
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--paper) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
  opacity: 0.12;
}
.hero-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-panel-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55) 100%);
}
.hero-panel-tag {
  position: absolute; z-index: 2; bottom: 34px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--paper);
}

/* illustrative photo badge */
.photo-badge {
  position: absolute; z-index: 2; top: 16px; left: 16px;
  background: rgba(20,20,18,0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
  white-space: nowrap;
}
.photo-badge.badge-bottom { top: auto; left: auto; bottom: 16px; right: 16px; }

/* Nosso espaço - photo showcase */
.space-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.space-photo {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.14);
}
.space-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.space-photo.arch-top { border-radius: 200px 200px 16px 16px; }
.space-photo.arch-bottom { border-radius: 16px 16px 200px 200px; margin-top: 56px; }
.space-caption {
  position: absolute; z-index: 2; bottom: 20px; left: 20px;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.1rem; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.space-grid-single { max-width: 640px; margin: 0 auto; }
.space-grid-single .space-photo { min-height: 460px; }

/* Nossa equipe */
.team-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.team-photo {
  border-radius: 240px 240px 16px 16px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.16);
}
.team-photo img { width: 100%; display: block; object-fit: cover; }
.team-copy h2 { margin: 14px 0 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.team-copy p { font-size: 1.02rem; }

.hero-wave { position: relative; margin-top: 46px; }

/* Trust strip */
.trust-strip { background: var(--ink); color: var(--paper); }
.trust-strip .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 26px 28px;
}
.trust-item { display: flex; align-items: baseline; gap: 10px; }
.trust-item .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.trust-item .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }

/* Section generic */
.section { padding: 100px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-top: 14px; }

/* Services - editorial list */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 32px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-row .num { font-family: var(--font-display); font-size: 1.3rem; color: var(--primary); font-weight: 700; }
.service-row h3 { font-size: 1.25rem; }
.service-row p { margin: 0; font-size: 0.98rem; }

/* Statement band */
.statement-band { background: var(--ink); color: var(--paper); padding: 120px 0; text-align: center; }
.statement-band .container { max-width: 880px; }
.statement-band p.big {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.32;
  color: var(--paper);
  margin-bottom: 26px;
}
.statement-band p.big em { color: var(--accent); font-style: italic; }
.statement-band .source { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }

/* Why us list */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.why-item { border-top: 2px solid var(--ink); padding-top: 18px; }
.why-item h4 { font-size: 1.08rem; margin-bottom: 8px; }
.why-item p { font-size: 0.96rem; margin: 0; }

/* Reviews */
.reviews-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: stretch; }
.reviews-arch {
  position: relative;
  border-radius: 260px 260px 0 0;
  background: var(--primary);
  color: var(--paper);
  overflow: hidden;
  min-height: 380px;
}
.reviews-arch > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reviews-arch-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18,20,15,0.15) 30%, rgba(18,20,15,0.82) 100%);
}
.reviews-arch-content {
  position: relative; z-index: 2;
  padding: 60px 32px 44px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: 380px;
}
.reviews-arch .num { font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; line-height: 1; }
.reviews-arch .star-row { display: flex; gap: 5px; margin: 14px 0 10px; }
.reviews-arch .star-row svg { width: 20px; height: 20px; color: var(--accent); }
.reviews-arch .count { font-size: 0.9rem; opacity: 0.85; }
.review-quotes { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.review-quote { position: relative; padding-left: 34px; }
.review-quote::before {
  content: "\201C";
  position: absolute; left: 0; top: -14px;
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--primary);
  opacity: 0.55;
}
.review-quote p { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); font-style: italic; margin: 0; }

/* Location */
.location-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: stretch; }
.location-arch {
  border-radius: 0 0 0 0;
  border-radius: 220px 220px 0 0;
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 400px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px;
  text-align: center;
}
.location-arch .mono-badge { width: 84px; height: 84px; font-size: 1.7rem; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.location-arch h3 { font-size: 1.3rem; }
.location-info { display: flex; flex-direction: column; justify-content: center; gap: 0; }
.info-row { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.info-row .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; white-space: nowrap; }
.info-row .value { font-weight: 700; text-align: right; }
.location-info .location-cta { margin-top: 28px; }

/* CTA band */
.cta-band { background: var(--primary-dark); color: var(--paper); padding: 90px 0; text-align: center; }
.cta-band h2 { color: var(--paper); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 16px; }
.cta-band p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 460px; margin: 0 auto 30px; }

/* Footer */
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 70%, transparent); padding: 56px 0 28px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { color: var(--paper); font-family: var(--font-display); font-size: 1.05rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--accent); color: var(--accent-ink); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 0.82rem; font-family: var(--font-mono); }
.footer-bottom a:hover { color: var(--accent); }
.footer-disclaimer { margin: 18px 0 0; font-size: 0.78rem; opacity: 0.55; max-width: 640px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  z-index: 90;
}
.wa-float svg { width: 28px; height: 28px; color: #fff; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { border-radius: 260px 260px 0 0; min-height: 300px; margin-top: 20px; }
  .service-row { grid-template-columns: 50px 1fr; }
  .service-row p { grid-column: 2 / 3; }
  .space-grid { grid-template-columns: 1fr; }
  .space-photo.arch-bottom { margin-top: 0; }
  .team-wrap { grid-template-columns: 1fr; }
  .team-photo { border-radius: 200px 200px 16px 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .reviews-wrap { grid-template-columns: 1fr; }
  .location-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .site-header .container { height: 76px; }
  .hero { padding-top: 116px; }
  .section { padding: 70px 0; }
  .statement-band { padding: 80px 0; }
  .cta-band { padding: 64px 0; }
  .trust-strip .container { justify-content: flex-start; gap: 26px 34px; }
  .site-header.is-open .main-nav {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 22px 28px; gap: 18px;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
