/* Maple Grove Pediatric Dentistry — styles.css */
:root {
  --teal: #1ca489;
  --teal-dark: #12866f;
  --teal-soft: #e2f4ef;
  --green: #56bd7b;
  --yellow: #dcc63c;
  --yellow-soft: #faf4d8;
  --blue: #2f9fd0;
  --blue-soft: #e3f2fa;
  --brown: #8b6a3a;
  --ink: #3a3d3c;
  --ink-soft: #6b6f6d;
  --cream: #fdfbf4;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(58, 61, 60, 0.1);
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: pretty; color: var(--ink); }
p { text-wrap: pretty; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: 72px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 14px; }
.section-lead { font-size: 18px; color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 18px rgba(28, 164, 137, 0.35); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: var(--white); color: var(--ink); border: 2px solid #e4e1d5; }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: #4a4118; box-shadow: 0 6px 18px rgba(220, 198, 60, 0.4); }
.btn-yellow:hover { background: #cdb72e; color: #3c350f; transform: translateY(-2px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(253, 251, 244, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(58, 61, 60, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.main-nav { display: none; }
.main-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 16px; white-space: nowrap;
  color: var(--ink); text-decoration: none; padding: 8px 4px; border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--teal); border-bottom-color: var(--yellow); }
.header-cta { display: none; align-items: center; gap: 14px; }
.header-phone { display: none; font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (min-width: 1100px) { .header-phone { display: inline; } }
.header-phone:hover { color: var(--teal); }
.header-cta .btn { min-height: 44px; padding: 8px 22px; font-size: 16px; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 76px 0 auto 0; z-index: 99;
  background: var(--cream); box-shadow: 0 20px 30px rgba(58, 61, 60, 0.15);
  display: grid; gap: 4px; padding: 12px 20px 24px;
  transform: translateY(-110%); transition: transform 0.3s ease; visibility: hidden;
}
.nav-open .mobile-nav { transform: translateY(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  color: var(--ink); text-decoration: none; padding: 12px 8px; border-radius: 12px; min-height: 48px; display: flex; align-items: center;
}
.mobile-nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.mobile-nav .btn { margin-top: 10px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px 0 100px;
  background: linear-gradient(180deg, #f3faf5 0%, var(--cream) 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; text-align: center; width: min(860px, 100% - 40px); margin-inline: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--white); border: 1.5px solid rgba(28, 164, 137, 0.3);
  padding: 8px 18px; border-radius: 999px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(40px, 7.5vw, 76px); font-weight: 600; margin-bottom: 20px; }
.hero h1 .squiggle { color: var(--teal); }
.hero-sub { font-size: clamp(18px, 2.4vw, 22px); color: var(--ink-soft); max-width: 620px; margin: 0 auto 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-note { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.hero-note strong { color: var(--ink); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; display: block; }

/* Special strip */
.special { background: var(--teal); color: var(--white); padding: 56px 0; }
.special-inner { display: grid; gap: 24px; align-items: center; text-align: center; }
.special h2 { color: var(--white); font-size: clamp(26px, 3.5vw, 36px); }
.special .price { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 8vw, 84px); color: var(--yellow); line-height: 1; }
.special-items { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.special-items span {
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 8px 20px;
}
.special .fine-print { font-size: 13.5px; opacity: 0.85; max-width: 520px; margin-inline: auto; }
.special .btn-yellow { justify-self: center; }

/* Services */
.services-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 44px; }
.service-card {
  background: var(--white); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: 0 4px 16px rgba(58, 61, 60, 0.06);
  display: flex; flex-direction: column; gap: 10px;
  border-top: 5px solid var(--card-accent, var(--teal));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(58, 61, 60, 0.12); }
.service-card .glyph {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  background: var(--glyph-bg, var(--teal-soft)); color: var(--card-accent, var(--teal));
}
.service-card h3 { font-size: 20px; }
.service-card p { font-size: 15.5px; color: var(--ink-soft); }
.accent-teal { --card-accent: var(--teal); --glyph-bg: var(--teal-soft); }
.accent-green { --card-accent: #3ea764; --glyph-bg: #e5f5ea; }
.accent-blue { --card-accent: var(--blue); --glyph-bg: var(--blue-soft); }
.accent-yellow { --card-accent: #a8901c; --glyph-bg: var(--yellow-soft); }

/* Split sections */
.split { display: grid; gap: 36px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; height: auto; }
.split-media .photo-tag {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(253, 251, 244, 0.94); border-radius: 999px; padding: 8px 18px;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--ink);
  box-shadow: var(--shadow);
}
.check-list { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; margin-top: 2px;
  background: var(--teal-soft); color: var(--teal-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.check-list strong { font-family: var(--font-display); font-weight: 500; }
.age-flag {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  background: var(--yellow-soft); border: 1.5px dashed var(--yellow);
  border-radius: 16px; padding: 14px 18px; font-size: 15.5px;
}

/* Doctor */
.doctor { background: var(--white); }
.doctor-quote {
  font-size: 18px; border-left: 4px solid var(--yellow);
  padding-left: 18px; margin: 22px 0; color: var(--ink-soft); font-style: italic;
}
.doctor-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.doctor-facts span {
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  background: var(--blue-soft); color: #1c6f96; border-radius: 999px; padding: 7px 16px;
}
.abpd { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.abpd img { width: 220px; height: auto; border-radius: 8px; }
.abpd p { font-size: 14px; color: var(--ink-soft); max-width: 300px; }

/* Why us */
.why { background: linear-gradient(180deg, var(--cream) 0%, #f0f8f3 100%); }
.why-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 44px; }
.why-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 4px 16px rgba(58, 61, 60, 0.06);
}
.why-card .dot { width: 18px; height: 18px; border-radius: 50%; margin-bottom: 16px; }
.why-card h3 { font-size: 21px; margin-bottom: 8px; }
.why-card p { font-size: 15.5px; color: var(--ink-soft); }

/* Testimonials */
.reviews-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 86vw);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 44px 20px 24px; margin: 0 -20px;
  scrollbar-width: none;
}
.reviews-rail::-webkit-scrollbar { display: none; }
.review-card {
  scroll-snap-align: center;
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 4px 16px rgba(58, 61, 60, 0.06);
  display: flex; flex-direction: column; gap: 16px;
}
.review-stars { color: var(--yellow); font-size: 18px; letter-spacing: 3px; }
.review-card blockquote { font-size: 16px; color: var(--ink); flex: 1; }
.review-card cite { font-family: var(--font-display); font-weight: 500; font-style: normal; color: var(--teal-dark); }
.rail-controls { display: flex; gap: 10px; justify-content: center; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #e4e1d5;
  background: var(--white); color: var(--ink); font-size: 20px; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.rail-btn:hover { border-color: var(--teal); color: var(--teal); }

/* Insurance */
.insure-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 44px; }
.insure-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 4px 16px rgba(58, 61, 60, 0.06);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.insure-card h3 { font-size: 21px; }
.insure-card p { font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.confirm-flag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  background: var(--yellow-soft); border: 1px dashed var(--yellow);
  color: #6e5f10; border-radius: 8px; padding: 4px 10px;
}

/* Community */
.community { background: var(--white); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--cream) 0%, var(--teal-soft) 100%); }
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-top: 44px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.info-block h3 { font-size: 17px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal-dark); margin-bottom: 6px; }
.info-block a { color: var(--ink); text-decoration: none; font-weight: 700; }
.info-block a:hover { color: var(--teal-dark); }
.hours-list { list-style: none; display: grid; gap: 4px; }
.hours-list li { display: flex; justify-content: space-between; max-width: 300px; font-size: 15.5px; }
.hours-list .day { font-weight: 700; }
.map-frame { border: 0; border-radius: var(--radius); width: 100%; height: 260px; box-shadow: var(--shadow); }
.contact-form {
  background: var(--white); border-radius: 24px; padding: 32px 26px;
  box-shadow: var(--shadow); display: grid; gap: 16px;
}
.contact-form h3 { font-size: 24px; }
.form-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  border: 2px solid #e4e1d5; border-radius: 12px; padding: 12px 14px; min-height: 48px;
  background: var(--cream); width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.form-success {
  display: none; background: var(--teal-soft); color: var(--teal-dark);
  border-radius: 12px; padding: 14px 18px; font-weight: 700;
}
.form-success.show { display: block; }

/* Footer */
.site-footer { background: #2e3a37; color: #cfdad6; padding: 56px 0 120px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer-brand img { height: 64px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 15px; max-width: 320px; }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { color: #cfdad6; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 40px; padding-top: 20px; font-size: 13.5px; color: #9fb0ab; }

/* Sticky mobile bar */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 100;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(253, 251, 244, 0.95); backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(58, 61, 60, 0.12);
}
.mobile-bar .btn { min-height: 50px; font-size: 16px; padding: 10px 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card { transition: none; }
}

/* Tablet+ */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .insure-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .main-nav { display: flex; gap: 18px; }
  .header-cta { display: flex; }
  .nav-toggle, .mobile-nav, .mobile-bar { display: none; }
  .site-footer { padding-bottom: 56px; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.media-right .split-media { order: 2; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .insure-grid { grid-template-columns: repeat(4, 1fr); }
  .special-inner { grid-template-columns: auto 1fr auto; text-align: left; gap: 40px; }
  .special-items { justify-content: flex-start; }
  .special .fine-print { margin-inline: 0; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
}
@media (min-width: 1100px) {
  .main-nav { gap: 26px; }
}
@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}
