/* ===========================================================
   Norwell Family Dentistry — Custom Styles
   Palette: deep teal-navy, warm ivory, champagne gold accent
   Fonts: Playfair Display (headings) + Inter (body)
=========================================================== */

:root {
  --navy: #123C4E;
  --navy-dark: #0B2833;
  --blue: #2D7DA8;
  --blue-light: #6FA8C9;
  --ivory: #FAF5EC;
  --ivory-deep: #F1E9D8;
  --gold: #C9A05C;
  --gold-dark: #A9813E;
  --charcoal: #2B2B2B;
  --white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
}

.section-pad {
  padding: 6rem 0;
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 4rem 0;
  }
}

.bg-ivory {
  background-color: var(--ivory);
}

.bg-navy {
  background-color: var(--navy);
}

.text-navy {
  color: var(--navy);
}

.text-gold {
  color: var(--gold);
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gold-dark);
}

.section-title {
  font-weight: 700;
  color: var(--navy);
}

.section-divider {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-divider.align-start {
  margin: 1rem 0 0;
}

/* ---------- Navbar ---------- */
.navbar {
  background-color: rgba(18, 60, 78, 0.97);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  transition: padding 0.2s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white) !important;
  white-space: normal;
  line-height: 1.1;
}

.navbar-brand img {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important;
}

.navbar-nav .nav-link:hover {
  color: var(--gold) !important;
}

.btn-bill {
  background-color: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 40px;
  padding: 0.4rem 1.1rem !important;
  font-size: 0.85rem !important;
  font-weight: 600;
  margin-left: 0.25rem;
}

.btn-bill:hover {
  background-color: var(--gold);
  color: var(--navy-dark) !important;
}

.btn-gold {
  background-color: var(--gold);
  border: none;
  color: var(--navy-dark);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-light-custom {
  border: 1.5px solid rgba(255,255,255,0.85);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  transition: all 0.2s ease;
}

.btn-outline-light-custom:hover {
  background-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.btn-navy {
  background-color: var(--navy);
  border: none;
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 40px;
  transition: all 0.2s ease;
}

.btn-navy:hover {
  background-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero {
  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;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(11,40,51,0.45) 0%, rgba(11,40,51,0.06) 100%),
    linear-gradient(to bottom, rgba(11,40,51,0.40) 0%, rgba(11,40,51,0.15) 45%, rgba(11,40,51,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 2.75rem 2.25rem;
  background: rgba(11,40,51,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
}

.hero-eyebrow {
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  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: var(--white);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
  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: var(--white);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem;
  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-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background-color: var(--navy);
  padding: 2.25rem 0;
}

.trust-item {
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
}

.trust-item i {
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.trust-item span {
  font-size: 0.92rem;
  font-weight: 500;
  display: block;
}

/* ---------- GLO callout ---------- */
.glo-callout {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 16px;
  padding: 2.75rem;
  color: var(--white);
}

.glo-callout h3 {
  color: var(--white);
  font-weight: 700;
}

.glo-callout .eyebrow {
  color: var(--gold);
}

/* ---------- Service cards ---------- */
.service-card {
  background: var(--white);
  border: 1px solid rgba(18,60,78,0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(18,60,78,0.12);
  border-color: transparent;
}

.service-card i {
  font-size: 2.1rem;
  color: var(--blue);
  margin-bottom: 1rem;
  display: block;
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 0;
}

.services-more {
  border-top: 1px solid rgba(18,60,78,0.12);
  padding-top: 1.75rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 20px rgba(18,60,78,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(18,60,78,0.14);
}

.team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ivory-deep);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.team-monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
}

.team-body {
  padding: 1.25rem 1.1rem;
}

.team-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.team-role {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: block;
}

.team-body p {
  font-size: 0.87rem;
  color: #555;
  margin-bottom: 0;
}

.team-filler {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.team-filler i {
  font-size: 2.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.team-filler h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.team-filler p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0;
}

/* ---------- Awards ---------- */
.award-plaque {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(18,60,78,0.14);
  height: 100%;
}

.award-plaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.award-badge {
  background: var(--ivory);
  border-radius: 10px;
  padding: 1.75rem 1.25rem;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.award-badge i {
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.award-badge h5 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.award-badge p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  height: 100%;
  border: 1px solid rgba(18,60,78,0.08);
  position: relative;
}

.testimonial-card i.bi-quote {
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--charcoal);
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* ---------- New Patients ---------- */
.np-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  border: 1px solid rgba(18,60,78,0.08);
}

.np-card i {
  font-size: 1.75rem;
  color: var(--blue);
  margin-bottom: 0.9rem;
  display: block;
}

.np-card h4 {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.np-card p, .np-card li {
  font-size: 0.92rem;
  color: #555;
}

/* ---------- Location ---------- */
.hours-table {
  width: 100%;
  font-size: 0.95rem;
}

.hours-table td {
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
}

.map-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(18,60,78,0.18);
  line-height: 0;
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.08);
  padding: 0.85rem 1.25rem;
  border-radius: 40px;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-pill i {
  color: var(--gold);
  font-size: 1.15rem;
}

.contact-pill:hover {
  background: rgba(255,255,255,0.16);
  color: var(--white);
}

/* ---------- Footer ---------- */
footer {
  background-color: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.75rem;
}

.footer-logo-chip {
  background: var(--ivory);
  border-radius: 12px;
  padding: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 1rem;
}

.footer-logo-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

footer h5 {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

footer a {
  color: rgba(255,255,255,0.75);
}

footer a:hover {
  color: var(--gold);
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.powered-by {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.powered-by a {
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Misc ---------- */
.divider-band {
  height: 6px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 50%, var(--gold) 100%);
}

@media (max-width: 1199.98px) {
  .navbar-collapse {
    background-color: var(--navy);
    padding: 1rem 0.5rem;
    border-radius: 8px;
    margin-top: 0.5rem;
  }
  .btn-bill {
    margin: 0.5rem 0 0;
    display: inline-block;
  }
}
