/* ===== Norwell Pediatric Dentistry & Orthodontics ===== */

:root {
  --navy: #163A5C;
  --navy-deep: #0E263D;
  --sky: #4FA9D8;
  --sky-light: #E3F2FA;
  --amber: #F2A65A;
  --amber-dark: #DC8A3B;
  --cream: #FBF9F4;
  --ink: #1F2E3D;
  --ink-soft: #4C5D6E;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #ffffff;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-text {
  font-family: 'Fredoka', sans-serif;
  color: var(--navy);
}

a { text-decoration: none; }

.bg-cream { background: var(--cream); }
.bg-navy-section { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--sky);
  margin-bottom: 0.5rem;
}
.eyebrow-light { color: var(--amber); }

.section-title {
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.lead-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}
.text-white-75 { color: rgba(255,255,255,0.82) !important; }

.shadow-soft { box-shadow: 0 20px 45px -20px rgba(22,58,92,0.35); }

/* ===== NAVBAR ===== */
#mainNav {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(22,58,92,0.08);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.navbar-brand {
  white-space: nowrap;
}
.brand-text {
  font-weight: 600;
  font-size: clamp(0.78rem, 1.35vw, 1.05rem);
  line-height: 1.15;
  white-space: nowrap;
}
.navbar-nav .nav-link {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem !important;
}
.navbar-nav .nav-link:hover { color: var(--sky); }

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .navbar-nav .nav-link { padding: 0.5rem 0.45rem !important; font-size: 0.85rem; }
  .brand-text { font-size: 0.85rem; }
  .btn-cta { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
}

.btn-cta {
  background: var(--amber);
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--amber-dark); color: #fff; transform: translateY(-1px); }

.btn-cta-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.6rem 1.4rem;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.05);
}
.btn-cta-outline:hover { background: #ffffff; color: var(--navy); }

/* outline button used on light background (hero) needs navy border */
.hero .btn-cta-outline {
  border-color: #ffffff;
  color: #ffffff;
}

/* ===== HERO ===== */
.hero {
  min-height: 92vh;
  background: url('img/hero.webp') center/cover no-repeat;
  position: relative;
}
.hero::before {
  content: "";
  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(14,38,61,0.30) 0%, rgba(14,38,61,0.10) 45%, rgba(14,38,61,0.50) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  background: rgba(14,38,61,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 24px;
}
.hero-eyebrow {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  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 {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(2.3rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin: 0.75rem 0 1.25rem;
  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 {
  color: #ffffff;
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.7;
  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);
}

/* ===== DEPARTMENT CARDS ===== */
.dept-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px -22px rgba(22,58,92,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(22,58,92,0.06);
}
.dept-card:hover { transform: translateY(-6px); box-shadow: 0 25px 45px -20px rgba(22,58,92,0.3); }
.dept-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--sky);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.dept-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--amber-dark);
  font-size: 0.9rem;
}
.dept-link:hover { color: var(--navy); }

/* ===== TOPIC / SERVICE / WHY CARDS ===== */
.topic-card, .service-card, .why-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(22,58,92,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.topic-card:hover, .service-card:hover, .why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -22px rgba(22,58,92,0.3);
}
.topic-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--sky-light);
  color: var(--sky);
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.service-card { text-align: center; }
.service-card i { font-size: 1.9rem; color: var(--amber-dark); }

.why-card { background: #ffffff; }
.why-card i { font-size: 1.8rem; color: var(--sky); }

/* ===== ORTHODONTICS MINI CARDS ===== */
.mini-card {
  display: flex;
  gap: 0.9rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 1.1rem;
  height: 100%;
}
.mini-card i { font-size: 1.4rem; color: var(--amber); flex-shrink: 0; margin-top: 0.15rem; }

/* ===== DOCTOR CARDS ===== */
.doctor-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(22,58,92,0.08);
  box-shadow: 0 15px 40px -25px rgba(22,58,92,0.3);
  transition: transform 0.25s ease;
}
.doctor-card:hover { transform: translateY(-6px); }
.doctor-photo {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--sky-light);
}
.doctor-avatar {
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 4rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky) 0%, var(--navy) 100%);
}
.doctor-role {
  color: var(--amber-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.quote-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 20px;
  color: #ffffff;
}
.quote-card i { font-size: 2rem; color: var(--amber); }
.quote-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ===== INFO / CONTACT CARDS ===== */
.info-card {
  background: var(--sky-light);
  border-radius: 20px;
  height: 100%;
}
.info-card i { font-size: 1.8rem; color: var(--navy); }
.info-card ul { padding-left: 1.2rem; color: var(--ink-soft); }
.info-card ul li { margin-bottom: 0.3rem; }

.contact-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px -25px rgba(22,58,92,0.3);
}
.contact-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-row i {
  font-size: 1.25rem;
  color: var(--sky);
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.contact-row a { color: var(--ink); font-weight: 500; }
.contact-row a:hover { color: var(--sky); }

.map-wrap { min-height: 420px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
}
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  background: #FBF9F4;
  border-radius: 14px;
  padding: 0.7rem 1.1rem;
}
.footer-heading {
  font-family: 'Fredoka', sans-serif;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: 0.65rem; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--amber); }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  margin-top: 0.5rem;
  transition: background 0.2s ease;
}
.social-icon:hover { background: var(--sky); color: #fff; }

.footer-divider { border-color: rgba(255,255,255,0.15); margin: 2rem 0 1.5rem; }

.powered-by {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.powered-by span {
  color: var(--amber);
  font-weight: 700;
}
.powered-by:hover { color: #ffffff; }
.powered-by:hover span { color: var(--sky); }

/* ===== SECTION SPACING ===== */
@media (min-width: 992px) {
  .py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    background: #ffffff;
    border-radius: 16px;
    margin-top: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(22,58,92,0.15);
  }
  .brand-text {
    font-size: 0.95rem;
    max-width: 190px;
    white-space: normal;
  }
}

@media (max-width: 575.98px) {
  .hero { min-height: 100vh; }
  .hero-content { border-radius: 16px; }
  .doctor-photo, .doctor-avatar { height: 240px; }
}
