/* =========================================
   Surf Side Dental Studio — style.css
   ========================================= */

:root {
  --navy:       #1B3A5C;
  --navy-dark:  #0F2237;
  --teal:       #4A9B97;
  --teal-light: #7CC0BD;
  --sand:       #C8A46E;
  --sand-dark:  #A8844E;
  --warm-white: #F7F5F2;
  --border:     #E5E2DC;
  --text-dark:  #1E2A3B;
  --text-muted: #667085;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', serif;
}

/* ---- UTILITIES ---- */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.bg-warm-white { background-color: var(--warm-white); }
.bg-navy { background-color: var(--navy); }
.text-sand { color: var(--sand); }
.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-title.light { color: #fff; }

.section-rule {
  width: 52px;
  height: 3px;
  background: var(--sand);
  border: none;
  margin: 0 0 2.5rem;
  opacity: 1;
}

.section-rule.center {
  margin-left: auto;
  margin-right: auto;
}

/* ---- NAVBAR ---- */
#mainNav {
  padding: 1.1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

#mainNav.scrolled {
  background: var(--navy);
  padding: 0.6rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff !important;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.navbar-brand img {
  height: 42px;
  width: auto;
}

.nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.6rem !important;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.btn-nav {
  background: var(--sand);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--sand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
  padding: 0.35rem 0.6rem;
}

.navbar-toggler-icon { filter: invert(1); }

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--navy);
    margin-top: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-radius: 4px;
  }

  .btn-nav {
    display: inline-block;
    margin-top: 0.5rem;
  }
}

/* ---- HERO ---- */
.hero-section {
  min-height: 100vh;
  background: url('img/hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.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%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.75rem 2.5rem;
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 6px;
  max-width: 760px;
  width: 90%;
}

.hero-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
  display: block;
  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: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #fff;
  line-height: 1.1;
  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: 1.1rem;
  color: rgba(255,255,255,0.9);
  font-weight: 300;
  margin-bottom: 2.25rem;
  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);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--sand);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin: 0.4rem;
}

.btn-hero-primary:hover {
  background: var(--sand-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  background: transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin: 0.4rem;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

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

.highlight-cell {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.highlight-cell:last-child { border-right: none; }

.highlight-cell i {
  font-size: 1.9rem;
  color: var(--sand);
  display: block;
  margin-bottom: 0.65rem;
}

.highlight-cell h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.highlight-cell p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
  letter-spacing: 0.04em;
}

@media (max-width: 991px) {
  .highlight-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.75rem 1rem;
  }
}

/* ---- SERVICES ---- */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.85rem 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(27,58,92,0.11);
  border-color: var(--teal);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.service-icon-wrap i {
  font-size: 1.35rem;
  color: var(--teal);
}

.service-card h5 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---- ABOUT / PRACTICE ---- */
.about-quote {
  border-left: 4px solid var(--sand);
  padding: 1rem 0 1rem 1.5rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.serve-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  margin: 0.25rem;
}

/* ---- DOCTOR CARDS ---- */
.doctor-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.doctor-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

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

.doctor-info .role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.doctor-info h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.doctor-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---- STAFF GRID ---- */
.staff-member {
  text-align: center;
  padding: 1.5rem 0.75rem;
}

.staff-photo-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
}

.staff-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.staff-initials {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: #fff;
  margin: 0 auto 0.85rem;
}

.staff-member h6 {
  font-family: 'DM Serif Display', serif;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.staff-member small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- GALLERY ---- */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 320px);
}

.gallery-cell {
  position: relative;
  overflow: hidden;
}

.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-cell:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(11,28,50,0.78) 0%, transparent 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-cell:hover .gallery-caption { opacity: 1; }

@media (max-width: 767px) {
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 200px);
  }
}

/* ---- MEMBERSHIP ---- */
.membership-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.membership-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--sand), var(--teal));
}

.membership-card {
  background: #fff;
  border-radius: 14px;
  padding: 3rem 2.5rem;
  max-width: 660px;
  margin: 0 auto;
}

.membership-price-block {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.price-currency {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
  padding-bottom: 0.5rem;
}

.price-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  color: var(--navy);
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  padding-bottom: 0.75rem;
}

.membership-divider {
  border-color: var(--border);
  margin: 1.5rem 0;
}

.membership-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.membership-feature:last-child { border-bottom: none; }

.membership-feature i {
  color: var(--teal);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.btn-membership {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 3px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 2.25rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  margin-top: 1.5rem;
}

.btn-membership:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-1px);
}

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--sand);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.reviewer-initial {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy);
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- CONTACT ---- */
.contact-block { margin-bottom: 1.75rem; }

.contact-block .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.contact-block p,
.contact-block a {
  font-size: 0.925rem;
  color: var(--text-dark);
  margin: 0;
  text-decoration: none;
  line-height: 1.55;
}

.contact-block a:hover { color: var(--teal); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.hours-table tr td {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child td { border-bottom: none; }

.hours-table td:first-child { color: var(--text-muted); }
.hours-table td:last-child { text-align: right; font-weight: 500; color: var(--navy); }

.map-wrap {
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  min-height: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
}

/* ---- NEW PATIENTS BANNER ---- */
.new-patients-bar {
  background: var(--teal);
  color: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
}

.new-patients-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.new-patients-bar a:hover { color: var(--sand); }

/* ---- FOOTER ---- */
.footer-main {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}

.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--sand); }

.footer-social { margin-top: 0.75rem; }

.footer-social a {
  color: rgba(255,255,255,0.65);
  font-size: 1.35rem;
  margin-right: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-social a:hover { color: var(--sand); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.powered-by {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

.powered-by a {
  color: var(--sand);
  text-decoration: none;
  font-weight: 600;
}

.powered-by a:hover {
  color: var(--teal-light);
}
