/* ============================================================
   HINGHAM PEDIATRIC DENTISTRY — style.css
   Palette: Deep ocean (#0C3B57) · Aqua (#2DB0A0) · Coral (#F47B3A) · Cream (#F2FAFA)
   Fonts: Syne (headings) + Nunito (body)
   ============================================================ */

:root {
  --navy:       #0C3B57;
  --navy-light: #1A6A8A;
  --teal:       #2DB0A0;
  --teal-light: #4ECAB9;
  --coral:      #F47B3A;
  --coral-dark: #D9631D;
  --cream:      #F2FAFA;
  --white:      #FFFFFF;
  --text:       #1A2A30;
  --muted:      #6B8A94;
  --border:     #D8ECEC;
}

/* ---------- BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; }

.section-pad { padding: 96px 0; }

/* ---------- SECTION HEADERS ---------- */
.section-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- NAVBAR ---------- */
#mainNav {
  padding: 14px 0;
  background: transparent;
  transition: background .35s, box-shadow .35s, padding .35s;
  z-index: 1050;
}
#mainNav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(12,59,87,.25);
  padding: 10px 0;
}
.nav-logo {
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  object-fit: contain;
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.navbar-nav .nav-link {
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.88) !important;
  padding: 6px 10px;
  transition: color .2s;
}
.navbar-nav .nav-link:hover { color: var(--teal-light) !important; }
.btn-nav-cta {
  background: var(--coral);
  color: #fff !important;
  font-family: 'Syne', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 8px 20px;
  border-radius: 50px;
  border: none;
  transition: background .2s, transform .15s;
}
.btn-nav-cta:hover { background: var(--coral-dark); transform: translateY(-1px); color: #fff !important; }

/* Hamburger color */
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991px) {
  #mainNav { background: var(--navy); }
  .navbar-collapse { padding: 16px 0 8px; }
  .navbar-nav .nav-link { padding: 10px 0; }
  .btn-nav-cta { display: inline-block; margin-top: 10px; }
}

/* ---------- HERO ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('img/hero.webp') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.04) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero-container { position: relative; z-index: 2; padding: 120px 16px 80px; }
.hero-content {
  max-width: 780px;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 16px;
  padding: 40px 48px 44px;
}
.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.8);
}
.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,0.95), 0 0 60px rgba(0,0,0,0.8);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.92);
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.85);
}
.hero-cta-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--coral);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background .2s, transform .15s;
  border: none;
}
.btn-hero-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.7);
  transition: border-color .2s, background .2s, transform .15s;
}
.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.12);
  color: #fff;
  transform: translateY(-2px);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll-indicator a {
  color: rgba(255,255,255,.6);
  font-size: 1.6rem;
  animation: bounce 2s infinite;
}
.hero-scroll-indicator a:hover { color: #fff; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- HIGHLIGHTS ---------- */
.highlights-section { background: var(--navy); padding: 0; }
.highlight-cell {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: background .2s;
}
.highlight-cell:last-child { border-right: none; }
.highlight-cell:hover { background: rgba(255,255,255,.05); }
.highlight-icon {
  font-size: 1.8rem;
  color: var(--teal-light);
  flex-shrink: 0;
}
.highlight-text {
  display: flex;
  flex-direction: column;
}
.highlight-text strong {
  font-family: 'Syne', sans-serif;
  font-size: .95rem;
  color: #fff;
  line-height: 1.2;
}
.highlight-text span {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
@media (max-width: 767px) {
  .highlight-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* ---------- SERVICES ---------- */
.service-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 40px 36px;
  height: 100%;
  transition: transform .25s, box-shadow .25s;
  border: 1px solid var(--border);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(12,59,87,.12);
}
.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon-wrap i {
  font-size: 1.6rem;
  color: #fff;
}
.service-card-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: .75rem;
}
.service-card-desc {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- ABOUT ---------- */
.about-section { background: var(--cream); }
.about-text {
  color: var(--text);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: .65rem;
  font-size: .97rem;
  color: var(--text);
}
.about-list i { color: var(--teal); margin-top: 3px; flex-shrink: 0; }
.affiliations-img {
  max-width: 220px;
  opacity: .9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.08));
}

/* Stats grid (2×2) */
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
}
.stat-box {
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number span { font-size: .6em; vertical-align: super; }
.stat-label { font-size: .88rem; font-weight: 600; line-height: 1.3; }

.stat-teal  { background: var(--teal); color: #fff; }
.stat-coral { background: var(--coral); color: #fff; }
.stat-dark  { background: var(--navy); color: #fff; }
.stat-light { background: var(--white); color: var(--navy); border: 1px solid var(--border); }

/* ---------- TEAM ---------- */
.team-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(12,59,87,.11); }
.team-img-wrap {
  background: var(--cream);
  overflow: hidden;
  height: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.team-info { padding: 28px 28px 32px; }
.team-name {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.team-title {
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .9rem;
}
.team-bio {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- PATIENTS ---------- */
.patients-section { background: var(--navy); }
.patients-section .section-eyebrow { color: var(--teal-light); }
.patients-section .section-title { color: #fff; }
.patient-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 36px 28px;
  height: 100%;
  transition: background .2s, transform .2s;
}
.patient-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.patient-icon {
  font-size: 2rem;
  color: var(--teal-light);
  margin-bottom: 16px;
  display: block;
}
.patient-card h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: .75rem;
}
.patient-card p {
  font-size: .93rem;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin: 0;
}
.btn-billpay {
  background: var(--coral);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: 9px 20px;
  border-radius: 50px;
  border: none;
  transition: background .2s;
}
.btn-billpay:hover { background: var(--coral-dark); color: #fff; }

/* ---------- CONTACT ---------- */
.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-detail > i {
  font-size: 1.3rem;
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
  width: 24px;
}
.contact-detail div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-detail strong {
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}
.contact-detail span, .contact-detail a {
  font-size: .97rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-detail a:hover { color: var(--coral); }
.btn-appt {
  background: var(--navy);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  transition: background .2s, transform .15s;
}
.btn-appt:hover { background: var(--navy-light); color: #fff; transform: translateY(-1px); }
.map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(12,59,87,.08);
}
.map-wrap iframe { display: block; }

/* Appointment form */
.appt-form-wrap {
  background: var(--cream);
  border-radius: 20px;
  padding: 48px 48px 44px;
  border: 1px solid var(--border);
}
.appt-form-title {
  color: var(--navy);
  font-size: 1.5rem;
}
.form-label {
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: .97rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,176,160,.15);
  outline: none;
}
.form-note {
  font-size: .88rem;
  color: var(--muted);
}
.form-note a { color: var(--teal); font-weight: 600; }
@media (max-width: 575px) {
  .appt-form-wrap { padding: 32px 20px; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-top { padding-bottom: 48px; }
.footer-brand-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.footer-brand-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.footer-logo {
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  object-fit: contain;
  flex-shrink: 0;
}
.footer-desc {
  font-size: .92rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: background .2s, border-color .2s, color .2s;
}
.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.footer-heading {
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: .93rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-links a:hover { color: var(--teal-light); }
.footer-address {
  font-size: .92rem;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  font-style: normal;
}
.footer-address a { color: var(--teal-light); }
.footer-address a:hover { color: #fff; }
.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 24px;
}
.footer-copy { font-size: .84rem; color: rgba(255,255,255,.4); margin: 0; }
.footer-powered { font-size: .84rem; color: rgba(255,255,255,.5); margin: 0; }
.footer-powered a { color: var(--teal-light); font-weight: 600; }
.footer-powered a:hover { color: #fff; }
.footer-bolt { margin-left: 4px; }
