/* ═══════════════════════════════════════════════════
   South Shore Periodontics — style.css
   Palette: Forest green + warm cream + soft gold
═══════════════════════════════════════════════════ */

:root {
  --forest:    #1a3028;
  --forest-mid: #264a3a;
  --sage:      #6d9880;
  --sage-light: #d4e6dc;
  --gold:      #b8903a;
  --gold-light: #f0e0b4;
  --cream:     #f6f3ee;
  --cream-dark: #ede8e0;
  --charcoal:  #1e1a15;
  --mid:       #5a5248;
  --soft:      #9e9690;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--forest);
}

a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--forest); }

/* ─────────────────────────── NAVBAR ─────────────────────────── */
#mainNav {
  background: var(--forest);
  padding: 0.6rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}

#mainNav.scrolled {
  background: rgba(26, 48, 40, 0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.navbar-logo {
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity 0.2s;
}
.navbar-logo:hover { opacity: 1; }

.brand-name {
  display: none;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: 0.5rem;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.80);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover { color: #fff; }

.nav-cta {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: #d4a848; color: #fff; }

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
  padding: 0.3rem 0.6rem;
}
.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%28255%2c255%2c255%2c0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─────────────────────────── HERO ─────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  background: url('img/hero.webp') center 20% / cover no-repeat;
  overflow: hidden;
}

/* Layered overlay: radial darkens center-top (text area), linear adds depth */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.05) 100%),
    linear-gradient(to bottom, rgba(26,48,40,0.55) 0%, rgba(26,48,40,0.25) 45%, rgba(0,0,0,0.60) 100%);
}

/* Frosted-glass backdrop so text stays legible over bright areas */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 4px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.2rem;
  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: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 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 {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,0.90);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto 0.5rem;
  line-height: 1.6;
  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-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  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.9);
}

.btn-hero-primary {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  border: 2px solid var(--gold);
  transition: background 0.2s, border-color 0.2s;
}
.btn-hero-primary:hover { background: #d4a848; border-color: #d4a848; color: #fff; }

.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.65);
  transition: border-color 0.2s, background 0.2s;
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }

/* ─────────────────────────── HIGHLIGHTS STRIP ─────────────────────────── */
.highlights-strip {
  background: var(--forest);
}

.highlight-tile { border-right: 1px solid rgba(255,255,255,0.08); }
.highlight-tile:last-child { border-right: none; }

.highlight-tile--alt .highlight-inner { background: var(--forest-mid); }

.highlight-inner {
  padding: 2.5rem 1.75rem;
  text-align: center;
  color: rgba(255,255,255,0.90);
  height: 100%;
}

.highlight-icon {
  display: block;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.highlight-tile h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

.highlight-tile p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.68);
  margin: 0;
  line-height: 1.5;
}

/* ─────────────────────────── SECTION COMMON ─────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─────────────────────────── SERVICES ─────────────────────────── */
.services-section {
  padding: 5rem 0;
  background: #fff;
}

.services-group {
  background: var(--cream);
  border-radius: 3px;
  padding: 2.5rem;
  height: 100%;
  border-top: 3px solid var(--forest);
}

.services-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.services-group-icon {
  width: 48px;
  height: 48px;
  background: var(--forest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.services-group h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--forest);
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem;
  color: var(--charcoal);
}
.services-list li:last-child { border-bottom: none; }

.services-list li i {
  color: var(--sage);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ─────────────────────────── WHY CHOOSE US ─────────────────────────── */
.why-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: url('img/about-bg.webp') center / cover no-repeat;
}

.why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(26,48,40,0.90) 0%, rgba(26,48,40,0.80) 100%);
}

.why-tile {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 2.5rem 1.5rem;
  color: #fff;
  height: 100%;
  transition: background 0.2s;
}
.why-tile:hover { background: rgba(255,255,255,0.13); }

.why-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.why-number sup { font-size: 1.5rem; }

.why-star {
  font-size: 1.5rem;
  color: #ffd700;
  vertical-align: super;
}

.why-number .bi-award-fill {
  font-size: 3rem;
  color: var(--gold-light);
}

.why-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.why-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  line-height: 1.4;
}

/* ─────────────────────────── DOCTORS ─────────────────────────── */
.doctors-section {
  padding: 5rem 0;
  background: var(--cream);
}

.doctor-card {
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,48,40,0.07);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doctor-photo-wrap {
  background: var(--forest);
  display: flex;
  justify-content: center;
  padding: 2rem 2rem 0;
}

.doctor-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.15);
}

.doctor-info {
  padding: 2rem 2rem 2.25rem;
  flex: 1;
}

.doctor-name {
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: 0.2rem;
}

.doctor-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: 'DM Sans', sans-serif;
}

.doctor-bio {
  font-size: 0.93rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.doctor-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--cream-dark);
  padding-top: 1.25rem;
}

.doctor-credentials span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--mid);
}

.doctor-credentials span i {
  color: var(--sage);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ─────────────────────────── PROCEDURES ─────────────────────────── */
.procedures-section {
  padding: 5rem 0;
  background: #fff;
}

.procedure-image-wrap {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.procedure-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.procedure-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,48,40,0.82);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.procedures-caption {
  font-size: 0.82rem;
  color: var(--soft);
  font-style: italic;
}

/* ─────────────────────────── GALLERY ─────────────────────────── */
.gallery-section {
  background: var(--cream);
  padding: 4rem 0 0;
}

.gallery-header {
  padding: 0 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: rgba(255,255,255,0.9);
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ─────────────────────────── PATIENT INFO ─────────────────────────── */
.patient-info-section {
  padding: 5rem 0;
  background: var(--forest);
}

.patient-info-section .section-eyebrow { color: rgba(255,255,255,0.5); }
.patient-info-section .section-title { color: #fff; }
.patient-info-section .section-intro { color: rgba(255,255,255,0.70); }

.info-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 2.25rem 1.75rem 2rem;
  height: 100%;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s;
}
.info-card:hover { background: rgba(255,255,255,0.11); }

.info-card-icon {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.info-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin: 0;
}

.info-cta {
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.info-cta:hover { color: #fff; }

/* ─────────────────────────── TESTIMONIALS ─────────────────────────── */
.testimonials-section {
  padding: 5rem 0;
  background: var(--cream-dark);
}

.testimonials-section .section-eyebrow { color: var(--gold); }
.testimonials-section .section-title { color: var(--forest); }

.testimonial-card {
  background: #fff;
  border-radius: 3px;
  padding: 2.25rem 2rem;
  height: 100%;
  box-shadow: 0 2px 16px rgba(26,48,40,0.06);
  border-top: 3px solid var(--sage);
}

.testimonial-stars {
  color: #f0a500;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  border: none;
  padding: 0;
}

.testimonial-card cite {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  font-style: normal;
}

.reviews-attribution {
  font-size: 0.85rem;
  color: var(--soft);
  margin: 0;
}

/* ─────────────────────────── CONTACT ─────────────────────────── */
.contact-section {
  padding: 5rem 0;
  background: #fff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-block h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.contact-block p {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-block a { color: var(--forest); font-weight: 500; }
.contact-block a:hover { color: var(--sage); }

.hours-table {
  border-collapse: collapse;
  font-size: 0.88rem;
  width: 100%;
}
.hours-table td {
  padding: 0.25rem 0.6rem 0.25rem 0;
  color: var(--charcoal);
  vertical-align: top;
}
.hours-table td:first-child {
  font-weight: 600;
  color: var(--forest);
  width: 100px;
}

.btn-contact-cta {
  background: var(--forest);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 2px solid var(--forest);
  text-align: center;
  transition: background 0.2s;
}
.btn-contact-cta:hover { background: var(--forest-mid); color: #fff; border-color: var(--forest-mid); }

.map-wrap {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.map-wrap iframe { display: block; }

/* ─────────────────────────── FOOTER ─────────────────────────── */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}

.footer-practice-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: #fff; color: #fff; }

.footer-address {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-style: normal;
  line-height: 1.7;
}
.footer-address a { color: rgba(255,255,255,0.65); }
.footer-address a:hover { color: #fff; }

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

.footer-bottom { padding-bottom: 2rem; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.40);
}

.footer-wfw {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-wfw:hover { color: var(--gold-light); }
.footer-wfw strong { font-weight: 600; color: rgba(255,255,255,0.70); }
.footer-wfw .bi-lightning-charge-fill { color: var(--gold); font-size: 0.9rem; }

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--forest);
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 0.5rem;
  }
  .nav-cta { margin-top: 0.5rem; display: inline-block; }
  .highlight-tile { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  .hero-title { font-size: 2.75rem; }
  .hero-content { padding: 2rem 1.25rem; }
  .doctors-section .row { flex-direction: column; }
  .why-tile { padding: 1.75rem 1rem; }
  .why-number { font-size: 2.75rem; }
  .gallery-item { aspect-ratio: 4/3; }
  .procedure-img { height: 220px; }
}

@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-outline { width: 100%; max-width: 300px; }
  .highlight-inner { padding: 1.75rem 1rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { aspect-ratio: 16/9; }
  .services-group { padding: 1.75rem 1.25rem; }
  .doctor-card { flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
