/* =============================================
   GOOGLE FONT
============================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600&display=swap');


/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  animation: pageFadeIn 0.4s ease both;
}

img { display: block; max-width: 100%; height: auto; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

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


/* =============================================
   CSS VARIABLES
============================================= */
:root {
  --clr-bg:          #f0f8ff; /* very light sky blue page background */
  --clr-bg-alt:      #e0f0fa; /* slightly deeper blue for alternate sections */
  --clr-blue:        #2a9fd6; /* main brand blue — buttons, accents */
  --clr-blue-dk:     #1a7aad; /* darker blue for hover states */
  --clr-blue-light:  #e8f4fd; /* pale blue for card backgrounds */
  --clr-white:       #ffffff;
  --clr-text:        #1a2e3b; /* deep navy for body text */
  --clr-muted:       #5a7a8a; /* softer blue-grey for subtitles */

  --max-width:    1100px;
  --section-pad:  5rem 1.5rem;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(42, 159, 214, 0.10);
}


/* =============================================
   UTILITIES
============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-pad); }

/* Alternate sections use slightly deeper bg */
.reviews { background-color: var(--clr-bg-alt); }

/* Small uppercase label above section headings */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--clr-blue);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--clr-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Primary blue button */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, color 0.2s;
}

.btn-primary {
  background-color: var(--clr-blue);
  color: var(--clr-white);
  border: 2px solid var(--clr-blue);
}

.btn-primary:hover {
  background-color: var(--clr-blue-dk);
  border-color: var(--clr-blue-dk);
  transform: translateY(-2px);
}

/* Ghost/outline button */
.btn-outline {
  background-color: transparent;
  color: var(--clr-white);
  border: 2px solid rgba(255,255,255,0.8);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}


/* =============================================
   PAGE TRANSITIONS
============================================= */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

body.fade-out {
  animation: pageFadeOut 0.3s ease both;
}

@keyframes pageFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: var(--clr-white);
  box-shadow: 0 2px 16px rgba(42,159,214,0.12);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-blue);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--clr-blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--clr-blue);
  border-radius: 2px;
  transition: all 0.3s;
}


/* =============================================
   HERO
   Full-screen image with overlay, centred text,
   two buttons, and a frosted glass info box.
============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

/* The background photo fills the full section */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

/* Dark blue tinted overlay so white text stays readable */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 40, 70, 0.55) 0%,
    rgba(10, 40, 70, 0.70) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--clr-white);
  max-width: 750px;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Frosted glass info box */
.hero-info-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 1.5rem 2.5rem;
  text-align: left;
}

.info-col h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.3rem;
}

.info-col p {
  font-size: 0.9rem;
  color: var(--clr-white);
  margin-bottom: 0.15rem;
}

.info-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
}


/* =============================================
   ABOUT THE DOCTOR
============================================= */
.about { background-color: var(--clr-white); }

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

/* Circular doctor photo */
.doctor-photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--clr-blue-light);
  box-shadow: 0 0 0 8px var(--clr-bg-alt);
}

.about-text h2 { margin-bottom: 1rem; }

.about-text p {
  color: var(--clr-muted);
  margin-bottom: 1rem;
}

.education {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--clr-blue-light);
  border-radius: var(--radius);
}

.education h4 {
  color: var(--clr-blue-dk);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Horizontal row of school cards */
.school-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.school-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 120px;
}

.school-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--clr-blue);
}

.school-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.school-info strong {
  font-size: 0.8rem;
  color: var(--clr-text);
  line-height: 1.3;
}

.school-info span {
  font-size: 0.75rem;
  color: var(--clr-muted);
}


/* =============================================
   SERVICES
   6-card grid. Each card has an SVG tooth icon,
   title, short description, and a "learn more" link.
   Clicking the card navigates to the service page.
============================================= */
.services { background-color: var(--clr-bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--clr-white);
  border: 1.5px solid var(--clr-blue-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--clr-blue);
}

.service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.05rem;
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--clr-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-blue);
  transition: color 0.2s;
}

.service-card:hover .card-link { color: var(--clr-blue-dk); }


/* =============================================
   PATIENT REVIEWS
   Horizontally scrollable cards with prev/next arrows.
============================================= */
.reviews-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.25rem;
  /* hide the scrollbar visually */
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  min-width: 300px;
  max-width: 300px;
  background: var(--clr-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--clr-blue-light);
  flex-shrink: 0;
}

.stars {
  color: #f5a623;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.92rem;
  color: var(--clr-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.reviewer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-blue);
}

/* Prev / Next arrow buttons */
.review-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--clr-blue);
  background: var(--clr-white);
  color: var(--clr-blue);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-arrow:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}


/* =============================================
   FOOTER
============================================= */
.footer {
  background-color: #0d2233;
  color: rgba(255,255,255,0.75);
  padding: 4rem 1.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h3 {
  color: var(--clr-white);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer h4 {
  color: var(--clr-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}


/* =============================================
   SERVICE SUB-PAGES
   Shared layout for all 6 service detail pages.
============================================= */
.service-hero {
  position: relative;
  height: 380px;
  margin-top: 68px;
  overflow: hidden;
}

.service-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.service-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,40,70,0.3), rgba(10,40,70,0.65));
}

.service-hero-text {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0;
  text-align: center;
  z-index: 1;
  color: var(--clr-white);
  padding: 0 1.5rem;
}

.service-hero-text h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 0.4rem;
}

.service-hero-text p {
  font-size: 1.05rem;
  opacity: 0.85;
}

.service-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* Appointment + Call buttons at top of service page */
.service-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.service-ctas .btn-primary {
  color: var(--clr-white);
}

.service-ctas .btn-outline-blue {
  background: transparent;
  color: var(--clr-blue);
  border: 2px solid var(--clr-blue);
  border-radius: 50px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

.service-ctas .btn-outline-blue:hover {
  background: var(--clr-blue);
  color: var(--clr-white);
}

.back-btn {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--clr-blue);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}

.back-btn:hover {
  color: var(--clr-blue-dk);
  transform: translateX(-3px);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.service-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-detail-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 20%;
}

.service-detail-text h2 {
  font-size: 1.8rem;
  color: var(--clr-text);
  margin-bottom: 1rem;
}

.service-detail-text p {
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
}

.treatment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.treatment-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--clr-blue-light);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--clr-text);
  font-weight: 500;
}

.treatment-list li::before {
  content: '✓';
  color: var(--clr-blue);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}


/* =============================================
   MOBILE — MEDIA QUERIES
============================================= */
@media (max-width: 768px) {

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background-color: var(--clr-white);
    padding: 0.5rem 0 1rem;
    box-shadow: 0 6px 20px rgba(42,159,214,0.15);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--clr-bg-alt);
    color: var(--clr-text);
  }

  .section { padding: 3rem 1.25rem; }

  .hero-info-box {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .info-divider { width: 60px; height: 1px; }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-image-wrap { display: flex; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .service-detail-grid { grid-template-columns: 1fr; }

  .service-hero { height: 260px; }
}

@media (min-width: 500px) and (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
