/* ===================================================
   GOLDEN RULE DENTAL — Site Stylesheet
   Design: Modern premium dental, gold + deep navy palette
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #C9A84C;
  --gold-light:  #F0D080;
  --gold-dark:   #9A7230;
  --navy:        #0E1F3B;
  --navy-mid:    #1A3460;
  --off-white:   #F9F6F0;
  --text-dark:   #1A1A2E;
  --text-mid:    #4A5568;
  --text-light:  #718096;
  --white:       #FFFFFF;
  --border:      #E8E0D0;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.18);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul, ol { padding-left: 1.25rem; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin-bottom: .5rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
p  { margin-bottom: 1rem; color: var(--text-mid); }

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--off-white); }

/* ── Gold Divider ── */
.gold-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}
.gold-divider.center { margin-left: auto; margin-right: auto; }

/* ── Section Label ── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .25rem;
}

/* ──────────────────────────────────────────────────
   NAVIGATION
────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-primary {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
}
.nav-logo-sub {
  font-size: .7rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: .04em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  font-size: .85rem;
  padding: .6rem 1.25rem;
  border-radius: 50px;
  border-bottom: none !important;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ──────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  color: var(--white);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────
   CARDS
────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-body { padding: 2rem; }

/* ──────────────────────────────────────────────────
   PAGE HERO BANNER (inner pages)
────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ──────────────────────────────────────────────────
   SERVICE CARDS GRID
────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.service-pill {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 500;
  font-size: .9rem;
  color: var(--text-dark);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.service-pill:hover {
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201,168,76,.2);
}
.service-pill .icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────
   WHY US — numbered list
────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-text strong {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.why-text p {
  font-size: .88rem;
  margin: 0;
  color: var(--text-mid);
}

/* ──────────────────────────────────────────────────
   CONTACT INFO
────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-info-item strong {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: .2rem;
}
.contact-info-item p,
.contact-info-item a {
  font-size: .95rem;
  color: var(--text-mid);
  margin: 0;
}
.contact-info-item a:hover { color: var(--gold); }

/* ──────────────────────────────────────────────────
   HOURS TABLE
────────────────────────────────────────────────── */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.hours-table td {
  padding: .6rem .5rem;
  font-size: .9rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.hours-table td:first-child { font-weight: 600; color: var(--text-dark); }

/* ──────────────────────────────────────────────────
   MAP
────────────────────────────────────────────────── */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--border);
}
.map-wrapper iframe { display: block; width: 100%; height: 360px; border: none; }

/* ──────────────────────────────────────────────────
   SOCIAL LINKS
────────────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--off-white);
  color: var(--navy);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.social-links a:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo-primary { font-size: 1.3rem; margin-bottom: .25rem; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); margin-top: .75rem; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ──────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-brand { grid-column: 1 / -1; }

  /* About page: doctor bio two-col → single col */
  #doctor-bio .container {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  /* About page: our office photo grid → single col */
  #about-teaser .container,
  #kids-dentistry .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 680px) {
  section { padding: 3.5rem 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .nav-inner { position: relative; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .5rem 0 1rem;
  }
  .nav-links a {
    display: block;
    padding: .85rem 1.5rem;
    border-bottom: none;
    border-top: 1px solid rgba(255,255,255,.05);
  }

  /* ── Index: Hero stacks to single column ── */
  #hero .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  #hero .container > div:last-child img {
    max-height: 300px;
    margin: 0 auto;
  }

  /* ── Index: Quick stats → 1 col ── */
  #quick-stats .container {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* ── Index: Location strip → stack, map full width ── */
  #location-strip .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  #location-strip .map-wrapper { width: 100%; }
  .map-wrapper iframe { height: 280px; }

  /* ── Index: About teaser → single col ── */
  #about-teaser .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  /* Put text first, photo second on mobile */
  #about-teaser .container > div:first-child { order: 2; }
  #about-teaser .container > div:last-child  { order: 1; }

  /* ── About page: doctor bio → single col ── */
  #doctor-bio .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  #doctor-bio .container > div:first-child img {
    max-height: 320px;
    object-fit: cover;
    width: 100%;
  }

  /* ── Services: kids section → single col ── */
  #kids-dentistry .container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  #kids-dentistry .container > div:first-child { order: 1; }
  #kids-dentistry .container > div:last-child  { order: 2; }

  /* ── Shared grids ── */
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  /* ── Footer ── */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* ── Page hero: tighten padding ── */
  .page-hero { padding: 3.5rem 0 3rem; }
  .page-hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

@media (max-width: 400px) {
  .services-grid { grid-template-columns: 1fr; }
}
