/* ============================================================
   Worcester Kids' Dentist — Design System
   Pediatric dental care. Friendly, calm, professional.
   Zero-dependency static site. Mobile-first.
   ============================================================ */

:root {
  /* Palette */
  --teal:        #16B5AE;
  --teal-deep:   #0E8E89;
  --teal-soft:   #E5F7F6;
  --coral:       #FF7A66;
  --coral-soft:  #FFE9E4;
  --sun:         #FFC857;
  --sun-soft:    #FFF4DC;
  --navy:        #182A4A;
  --ink:         #1B2A4A;
  --muted:       #5B6B85;
  --line:        #E4E9F2;
  --bg:          #FFFFFF;
  --bg-alt:      #F6FAFA;
  --white:       #FFFFFF;

  /* Type */
  --font-head: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(24,42,74,.06);
  --shadow-md: 0 10px 30px rgba(24,42,74,.10);
  --shadow-lg: 0 20px 50px rgba(24,42,74,.14);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p  { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section--teal { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal p { color: rgba(255,255,255,.9); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; line-height: 1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--teal    { background: var(--teal); color: #fff; }
.btn--ghost   { background: transparent; color: var(--teal-deep); border-color: var(--teal); }
.btn--light   { background: #fff; color: var(--teal-deep); }
.btn--block   { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .brand-logo { height: 40px; width: auto; display: block; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand .brand-text small { font-size: .62rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 700; font-size: .98rem; }
.nav-links a:hover { color: var(--teal-deep); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .8rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 2px; margin: 4px 0; transition: .2s; }
.mobile-menu { display: none; flex-direction: column; gap: .25rem; padding: 8px 20px 16px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: .7rem .25rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--teal-soft);
  color: var(--teal-deep); font-weight: 800; font-size: .85rem; padding: .4rem .9rem; border-radius: var(--r-pill); margin-bottom: 1.1rem;
}
.hero h1 span { color: var(--teal); }
.hero .phone-pill {
  display: inline-flex; align-items: center; gap: .55rem; background: var(--sun-soft); color: var(--navy);
  font-weight: 800; padding: .5rem 1.1rem; border-radius: var(--r-pill); margin-top: 1rem;
}
.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-visual .float-card {
  position: absolute; bottom: -18px; left: -18px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: .9rem 1.2rem; display: flex; align-items: center; gap: .7rem;
}
.hero-visual .float-card .star { color: var(--sun); font-size: 1.4rem; }
.hero-visual .float-card strong { display: block; color: var(--navy); line-height: 1.1; }
.hero-visual .float-card small { color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.trust .item { display: flex; align-items: center; gap: .7rem; font-weight: 700; color: var(--navy); }
.trust .item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; font-size: 1.2rem; }
.trust--light .item { color: #fff; }
.trust--light .item .ic { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Section heading ---------- */
.sec-head { max-width: 680px; margin: 0 auto 2.6rem; text-align: center; }
.sec-head .eyebrow { color: var(--teal-deep); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.sec-head p { color: var(--muted); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--teal-deep); }

/* Service list card */
.svc { display: flex; gap: 16px; align-items: flex-start; }
.svc .num { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--coral-soft); color: var(--coral); font-weight: 900; display: grid; place-items: center; }

/* ---------- Doctor cards ---------- */
.doc { text-align: center; }
.doc .avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 18px; background: linear-gradient(135deg,var(--teal),var(--teal-deep)); display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 900; box-shadow: var(--shadow-md); }
.doc h3 { margin-bottom: .2rem; }
.doc .role { color: var(--teal-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin-bottom: 1rem; }
.doc p { color: var(--muted); font-size: .98rem; }

/* ---------- Info boxes / hours ---------- */
.hours-box { background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.hours-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.hours-row:last-child { border-bottom: 0; }
.hours-row .day { color: var(--ink); }
.hours-row .time { color: var(--muted); }
.hours-row.closed .time { color: var(--coral); }

.contact-card { background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.contact-card .row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; }
.contact-card strong { display: block; color: var(--navy); }
.contact-card a { font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: .5rem; }
.cta-band .btn { margin: 6px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; }
.step h3 { margin-bottom: .25rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Accordion (FAQ) ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-deep); font-weight: 900; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .92rem; color: var(--navy); }
input, select, textarea {
  font: inherit; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { background: var(--teal-soft); color: var(--teal-deep); border-radius: var(--r-md); padding: 16px 20px; font-weight: 700; margin-top: 14px; display: none; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; letter-spacing: .03em; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; }
.footer-brand .logo-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg,var(--teal),var(--teal-deep)); display: grid; place-items: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 800; }
.footer-social a:hover { background: var(--teal); text-decoration: none; }

/* ---------- Breadcrumb / subpage hero ---------- */
.page-hero { background: linear-gradient(135deg, var(--teal-deep), var(--teal)); color: #fff; padding: clamp(40px,7vw,72px) 0; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 640px; }

/* ---------- Misc ---------- */
.eyebrow { color: var(--teal-deep); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: var(--teal-soft); color: var(--teal-deep); font-weight: 700; font-size: .85rem; padding: .4rem .9rem; border-radius: var(--r-pill); }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); font-weight: 900; color: var(--teal); }
.stat .lbl { color: var(--muted); font-weight: 700; }

/* ---------- Real photos (migrated assets) ---------- */
.svc-icon { width: 54px; height: 54px; object-fit: contain; margin-bottom: 16px; }
.doc .avatar-photo { width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover; box-shadow: var(--shadow-md); border: 4px solid #fff; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; box-shadow: var(--shadow-sm); border: 3px solid var(--teal-soft); }
.aapd-badge { height: 64px; width: auto; object-fit: contain; }
.footer-brand .brand-logo { height: 34px; width: auto; }
.hero-visual img.is-photo { aspect-ratio: 4/3; }
.photo-band { margin: 6px 0; }
.photo-band img { width: 100%; height: clamp(240px, 38vw, 440px); object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-md); display: block; }
.photo-band .cap { text-align: center; color: var(--muted); font-weight: 700; margin-top: 14px; }
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .trust { gap: 12px; }
  .hero-visual .float-card { left: 10px; bottom: 10px; }
}
