/* ==========================================================================
   Commonwealth Pediatric Dental — custom styles
   ========================================================================== */

:root {
  --teal: #0d8a8a;
  --teal-deep: #095f60;
  --teal-soft: #e5f3f2;
  --coral: #ff6b5b;
  --coral-deep: #e2503f;
  --sun: #ffc84b;
  --lime: #a9cf38;
  --cream: #fbf9f3;
  --paper: #ffffff;
  --ink: #1c2b2d;
  --muted: #55686b;
  --line: rgba(28, 43, 45, .12);
  --radius: 20px;
  --font-display: 'Baloo 2', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5,
.font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
}

a { color: var(--teal-deep); }
a:hover { color: var(--coral-deep); }

img { max-width: 100%; }

.text-muted-soft { color: var(--muted); }

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--paper); }
.section-tint { background: var(--teal-soft); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--teal-deep);
  margin-bottom: 1rem;
  line-height: 1.08;
}

.section-lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 46rem;
}

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-body); font-weight: 700; border-radius: 999px; padding: .72rem 1.7rem; }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
.btn-outline-teal { border: 2px solid var(--teal-deep); color: var(--teal-deep); background: transparent; }
.btn-outline-teal:hover { background: var(--teal-deep); color: #fff; }
.btn-outline-cream { border: 2px solid rgba(255,255,255,.85); color: #fff; background: transparent; }
.btn-outline-cream:hover { background: #fff; color: var(--teal-deep); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(251, 249, 243, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; padding: 0; }
.navbar-brand img { height: 40px; width: auto; display: block; }
.navbar-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--teal-deep); line-height: 1.05; }
.navbar-brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; color: var(--coral-deep); letter-spacing: .06em; text-transform: uppercase; }

.navbar .nav-link {
  font-weight: 700;
  color: var(--ink);
  padding: .5rem .85rem !important;
  font-size: .96rem;
}
.navbar .nav-link:hover, .navbar .nav-link:focus { color: var(--teal-deep); }
.navbar .dropdown-menu { border: none; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(28,43,45,.25); padding: .5rem; }
.navbar .dropdown-item { border-radius: 8px; font-weight: 600; padding: .5rem .8rem; }
.navbar .dropdown-item:hover { background: var(--teal-soft); color: var(--teal-deep); }
.navbar-cta { margin-left: .4rem; }
.navbar-toggler { border: none; padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: url('img/hero.webp') center/cover no-repeat;
  padding: 7.5rem 1rem 4rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 46%, rgba(9, 95, 96, .55) 0%, rgba(9, 95, 96, .08) 100%),
    linear-gradient(to bottom, rgba(13, 45, 46, .55) 0%, rgba(13, 45, 46, .22) 42%, rgba(13, 45, 46, .62) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  background: rgba(9, 60, 61, .22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--sun);
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 1.1rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,.95), 0 0 60px rgba(0,0,0,.8);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,.95), 0 0 40px rgba(0,0,0,.85);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ---------- Info strip ---------- */
.info-strip { background: var(--teal-deep); color: #fff; }
.info-item { display: flex; align-items: center; gap: .85rem; padding: 1.1rem .5rem; }
.info-item i { font-size: 1.6rem; color: var(--sun); flex-shrink: 0; }
.info-item span { font-weight: 700; font-size: .96rem; line-height: 1.25; }

/* ---------- About / Doctor ---------- */
.doctor-photo-wrap { position: relative; }
.doctor-photo {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -25px rgba(9, 60, 61, .4);
  width: 100%;
  height: auto;
  display: block;
}
.doctor-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--coral);
  color: #fff;
  border-radius: 16px;
  padding: .8rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 14px 30px -10px rgba(226, 80, 63, .55);
  line-height: 1.3;
}
.credential-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.credential-list li { display: flex; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.credential-list li:last-child { border-bottom: none; }
.credential-list i { color: var(--teal); font-size: 1.15rem; margin-top: .15rem; flex-shrink: 0; }

.team-band {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 26px 54px -28px rgba(28,43,45,.35);
}
.team-band img { width: 100%; height: auto; display: block; }
.team-caption {
  background: var(--paper);
  padding: 1.5rem 1.75rem;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--line);
  border-top: none;
}

/* ---------- Services ---------- */
.service-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  height: 100%;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -24px rgba(28,43,45,.3); }
.service-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.service-icon.teal { background: var(--teal); }
.service-icon.coral { background: var(--coral); }
.service-card h3 { font-size: 1.4rem; color: var(--teal-deep); margin-bottom: .7rem; }
.service-card ul { padding-left: 1.1rem; color: var(--muted); margin-bottom: 0; }
.service-card ul li { margin-bottom: .4rem; }

/* ---------- Outreach ---------- */
.outreach-photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 22px 46px -24px rgba(28,43,45,.35); }
.outreach-photo img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.outreach-list { list-style: none; padding: 0; margin: 0; }
.outreach-list li { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.outreach-list li:last-child { border-bottom: none; }
.outreach-list i { color: var(--coral-deep); font-size: 1.3rem; margin-top: .1rem; }

/* ---------- Kids zone ---------- */
.kids-zone { background: var(--teal-deep); color: #fff; position: relative; overflow: hidden; }
.kids-zone::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,75,.18) 0, rgba(255,200,75,0) 70%);
}
.kids-zone .section-eyebrow { color: var(--sun); }
.kids-zone .section-title { color: #fff; }
.kids-zone .section-lede { color: rgba(255,255,255,.82); }
.kz-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  height: 100%;
}
.kz-card i { font-size: 2rem; color: var(--sun); margin-bottom: .85rem; display: block; }
.kz-card h4 { font-size: 1.05rem; margin-bottom: .4rem; color: #fff; }
.kz-card p { color: rgba(255,255,255,.78); font-size: .9rem; margin: 0; }

/* ---------- First visit steps ---------- */
.step-card { position: relative; padding-top: 1rem; height: 100%; }
.step-num {
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step-card h4 { font-size: 1.1rem; color: var(--teal-deep); margin-bottom: .5rem; }
.step-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Insurance ---------- */
.insurer-badge {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem .75rem;
  text-align: center;
  font-weight: 700;
  color: var(--teal-deep);
  font-size: .92rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal-soft); color: var(--teal-deep);
  border-radius: 999px; padding: .55rem 1.1rem; font-weight: 700; font-size: .9rem;
}
.policy-note {
  background: var(--paper);
  border-left: 4px solid var(--coral);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Emergency ---------- */
.emergency { background: var(--ink); color: #fff; }
.emergency .section-eyebrow { color: var(--coral); }
.emergency .section-title { color: #fff; }
.emergency-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  height: 100%;
}
.emergency-card i { color: var(--coral); font-size: 1.5rem; margin-bottom: .75rem; display: block; }
.emergency-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.emergency-card p { color: rgba(255,255,255,.78); font-size: .92rem; margin: 0; }
.emergency-phone {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--coral); color: #fff;
  border-radius: 999px; padding: .9rem 1.8rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  text-decoration: none;
}
.emergency-phone:hover { background: var(--coral-deep); color: #fff; }

/* ---------- FAQ ---------- */
.accordion-item { border: none; margin-bottom: .75rem; border-radius: 14px !important; overflow: hidden; background: var(--paper); box-shadow: 0 4px 16px -10px rgba(28,43,45,.2); }
.accordion-button {
  font-family: var(--font-display); font-weight: 700; color: var(--teal-deep);
  font-size: 1.02rem; padding: 1.1rem 1.4rem;
}
.accordion-button:not(.collapsed) { background: var(--teal-soft); color: var(--teal-deep); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-button::after { flex-shrink: 0; }
.accordion-body { color: var(--muted); padding: 1rem 1.4rem 1.4rem; font-size: .96rem; }

/* ---------- Forms ---------- */
.form-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.1rem 1.25rem;
  text-decoration: none; color: var(--ink);
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.form-card:hover { box-shadow: 0 16px 34px -20px rgba(28,43,45,.3); transform: translateY(-3px); color: var(--ink); }
.form-card i { font-size: 1.5rem; color: var(--coral-deep); flex-shrink: 0; }
.form-card .fc-title { font-weight: 700; font-size: .96rem; display: block; }
.form-card .fc-sub { color: var(--muted); font-size: .8rem; }

/* ---------- Contact / Location ---------- */
.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
}
.contact-row { display: flex; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row i { color: var(--teal); font-size: 1.25rem; margin-top: .15rem; flex-shrink: 0; }
.contact-row .cr-label { font-weight: 700; display: block; font-size: .9rem; color: var(--teal-deep); }
.hours-table { width: 100%; }
.hours-table td { padding: .35rem 0; }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--teal-deep); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 26px 54px -28px rgba(28,43,45,.35); height: 100%; min-height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; }
.footer-logo-chip {
  background: var(--cream);
  border-radius: 14px;
  padding: .8rem 1.1rem;
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo-chip img { height: 38px; width: auto; display: block; }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: .93rem; }
.footer-links a:hover { color: var(--sun); }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-social a {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(255,255,255,.1); display: grid; place-items: center;
  color: #fff; text-decoration: none; font-size: 1.05rem;
}
.footer-social a:hover { background: var(--coral); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center; }
.footer-bottom a { color: var(--sun); text-decoration: none; font-weight: 700; }
.footer-powered { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .navbar-collapse { background: var(--paper); border-radius: 16px; padding: 1rem 1.25rem; margin-top: .75rem; box-shadow: 0 20px 40px -20px rgba(28,43,45,.25); }
  .navbar-cta { margin-left: 0; margin-top: .5rem; display: inline-block; }
}

@media (min-width: 1200px) and (max-width: 1339.98px) {
  .navbar .nav-link { padding: .5rem .6rem !important; font-size: .9rem; }
}

@media (max-width: 575.98px) {
  .hero { padding-top: 6.5rem; }
  .hero-content { padding: 1.5rem; border-radius: 20px; }
  .doctor-badge { position: static; display: inline-block; margin-top: 1rem; }
}
