/* Family Dental Center — Design DNA
   Register: BRAND
   Mood: Warm, unhurried family clinic — a Sunday-morning waiting room with
   good light, not a sterile mint-and-blue dental-tech dashboard.
   Anchor refs: a peach stucco waiting room wall, a hand-drawn smile on a kid's
   chart, warm wood-toned dental chairs
   Color: soft peach-cream canvas, deep plum-brown ink, coral brand accent, a
   small sage-mint pop reserved for "clean/fresh" mentions only (Committed
   palette, warm-dominant — deliberately avoids the cool mint/blue dental cliche)
   Type: Sora (geometric sans display) + Mulish (humanist body)
   Layout: oversized type as hero, no hero image — confident headline carries it
   Motion: calm, slow fades — quint easing
   Signature element: an abstract smile-arc line that draws itself beneath the
   hero headline, built from a single curved stroke plus a row of small dots
*/

:root {
  --canvas: oklch(95% 0.025 40);
  --canvas-alt: oklch(90% 0.03 38);
  --panel: oklch(98% 0.015 40);
  --ink: oklch(27% 0.035 20);
  --ink-soft: oklch(45% 0.025 25);
  --coral: oklch(66% 0.16 25);
  --coral-dark: oklch(54% 0.16 22);
  --sage: oklch(78% 0.06 150);
  --sage-dark: oklch(52% 0.08 150);
  --line: oklch(84% 0.02 35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav ---- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-brand { font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 700; }
.nav-brand span { color: var(--coral-dark); }

.nav-links { display: flex; gap: 30px; font-size: 15px; }
.nav-links a { color: var(--ink-soft); transition: color 0.25s ease; }
.nav-links a:hover { color: var(--coral-dark); }

.nav-cta {
  background: var(--coral);
  color: white !important;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--coral-dark); }

/* ---- Hero: oversized type, no image ---- */
.hero {
  max-width: 880px;
  margin: 30px auto 0;
  padding: 40px 32px 0;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.06;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}

.hero-copy .sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.18s forwards;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.34s forwards; }

.btn-primary {
  background: var(--coral);
  color: white;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  transition: background 0.25s ease;
}
.btn-primary:hover { background: var(--coral-dark); }

.btn-secondary {
  border: 2px solid var(--line);
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.btn-secondary:hover { border-color: var(--coral); color: var(--coral-dark); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signature: smile-arc line */
.smile-band {
  max-width: 620px;
  margin: 48px auto 0;
  padding: 0 32px;
}
.smile-svg { width: 100%; height: auto; display: block; }
.smile-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawSmile 1.6s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
.smile-dot { opacity: 0; animation: dotIn 0.5s ease-out forwards; }
@keyframes drawSmile { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }

/* ---- Sections ---- */
section { padding: 76px 0; }
.section-alt { background: var(--canvas-alt); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  color: var(--coral-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head { text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-soft); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ---- Services grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.service-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  text-align: left;
}
.service-card .num { color: var(--coral-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 12px; display: block; }
.service-card h3 { font-size: 18px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); }
.service-card.fresh { border-top: 3px solid var(--sage); }

/* ---- Trust strip ---- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  text-align: center;
}
.trust-strip .big-rating {
  font-family: 'Sora', sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  color: var(--coral-dark);
  margin-bottom: 8px;
}
.trust-strip p { color: var(--ink-soft); font-size: 15px; max-width: 520px; margin: 0 auto; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--coral);
  color: white;
  text-align: center;
  padding: 72px 32px;
  border-radius: 24px;
}
.cta-band h2 { color: white; font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 14px; }
.cta-band p { color: oklch(95% 0.02 30); margin-bottom: 28px; }
.cta-band .btn-primary { background: white; color: var(--coral-dark); }
.cta-band .btn-primary:hover { background: oklch(92% 0.01 40); }

/* ---- Footer ---- */
footer {
  padding: 40px 32px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- Inner page layout ---- */
.page-header {
  padding: 56px 32px 40px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.page-header h1 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 16px; }
.page-header p { font-size: 18px; color: var(--ink-soft); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 64px;
  padding: 0 32px;
}
.stat-strip .stat {
  padding: 24px;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--line);
  text-align: center;
}
.stat strong { font-family: 'Sora', sans-serif; font-size: 24px; display: block; color: var(--coral-dark); margin-bottom: 6px; }
.stat span { font-size: 14px; color: var(--ink-soft); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 32px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  background: var(--panel);
}
.contact-card a.phone { font-family: 'Sora', sans-serif; font-size: 28px; color: var(--coral-dark); display: block; margin: 8px 0 24px; }
.contact-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-row:last-child { border-bottom: none; }

form.light-form { display: flex; flex-direction: column; gap: 16px; }
form.light-form label { font-size: 14px; font-weight: 700; color: var(--ink); }
form.light-form input, form.light-form select, form.light-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--canvas);
}
form.light-form textarea { resize: vertical; min-height: 90px; }
form.light-form button {
  background: var(--coral);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.25s ease;
}
form.light-form button:hover { background: var(--coral-dark); }

@media (max-width: 780px) {
  .services-grid, .stat-strip, .contact-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
