/* TruLi Dental - Shared Stylesheet
   Palette: Navy primary, white, soft sky-blue and warm cream accents */

:root {
  --navy: #1a3a6c;
  --navy-deep: #0f2647;
  --navy-soft: #25538f;
  --sky: #cfe0f4;
  --sky-light: #eaf2fc;
  --cream: #faf6ee;
  --gold: #c9a961;
  --sage: #87b1a3;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --text: #2a3142;
  --text-muted: #5b6577;
  --border: #e3e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 38, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 38, 71, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 38, 71, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--navy);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.02em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-soft); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--sky); }

.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 720px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Header / nav */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 32px;
}
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 8px 0;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { color: var(--navy); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-phone span { color: var(--gold); margin-right: 6px; }

.menu-toggle {
  display: none;
  background: none; border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 14px 0; }
  .menu-toggle { display: block; }
  .nav-phone { display: none; }
}

/* Hero */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(15,38,71,0.85) 0%, rgba(26,58,108,0.78) 60%, rgba(37,83,143,0.65) 100%),
    url('smile-background.jpg') center/cover;
  color: #fff;
  padding: 120px 0 130px;
}
.hero h1 { color: #fff; max-width: 680px; }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.2rem; max-width: 580px; margin-bottom: 30px; }
.hero .eyebrow { color: var(--sky); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-compact {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-compact::after {
  content: '';
  position: absolute;
  right: -120px; bottom: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(207,224,244,0.18), transparent);
  pointer-events: none;
}
.hero-compact h1 { color: #fff; }
.hero-compact .lead { color: rgba(255,255,255,0.88); }
.hero-compact .eyebrow { color: var(--sky); }

/* Layouts */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sky-light);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon-circle svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }

/* Service category cards */
.service-card { position: relative; overflow: hidden; padding-top: 38px; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.service-card.cosmetic::before { background: var(--sage); }
.service-card.restorative::before { background: var(--navy-soft); }
.service-card.ortho::before { background: var(--gold); }
.service-card.emergency::before { background: #c4543a; }
.service-card ul { padding-left: 18px; color: var(--text-muted); font-size: 0.97rem; }
.service-card ul li { margin-bottom: 6px; }

/* Doctor card */
.doctor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.doctor-portrait {
  background: linear-gradient(135deg, var(--sky-light), var(--cream));
  height: 280px;
  display: flex; align-items: flex-end; justify-content: center;
  position: relative;
  overflow: hidden;
}
.doctor-portrait svg { height: 100%; width: auto; }
.doctor-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.doctor-card .body { padding: 28px 32px 32px; }
.doctor-card h3 { margin-bottom: 4px; }
.doctor-card .credentials {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.doctor-card p { color: var(--text-muted); font-size: 0.97rem; }

/* Doctor full bio */
.bio {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  margin-bottom: 80px;
  align-items: start;
}
.bio:last-child { margin-bottom: 0; }
.bio-portrait {
  background: linear-gradient(135deg, var(--sky-light), var(--cream));
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bio-portrait svg { width: 100%; height: 100%; }
.bio-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.bio h2 { margin-bottom: 6px; }
.bio .credentials {
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 22px;
}
@media (max-width: 800px) {
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .bio-portrait { max-width: 280px; aspect-ratio: 1; }
}

/* Feature row (icon + text) */
.feature-row { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border); }
.feature-row:last-child { border-bottom: 0; }
.feature-row .icon-circle { flex-shrink: 0; }
.feature-row h4 { margin-bottom: 4px; color: var(--navy); }
.feature-row p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* CTA strip */
.cta-strip {
  background: var(--navy);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 26px; }

/* Contact info block */
.info-block {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.info-block h4 {
  color: var(--navy);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.info-block .info-value { font-size: 1.1rem; color: var(--navy); margin-bottom: 22px; }
.info-block .info-value:last-child { margin-bottom: 0; }
.info-block ul { list-style: none; padding: 0; margin: 0; }
.info-block ul li {
  display: flex; justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(26,58,108,0.15);
  font-size: 0.97rem;
}
.info-block ul li:last-child { border-bottom: 0; }
.info-block ul li .day { font-weight: 600; color: var(--navy); }
.info-block ul li .hours { color: var(--text-muted); }

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 36px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; color: var(--text-muted); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer img { height: 64px; margin-bottom: 18px; }
.site-footer h5 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-family: 'Inter', sans-serif;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.95rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 0.95rem; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
}

/* Image embellishments */
.image-stack { position: relative; }
.image-stack img,
.image-stack > svg {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}
.image-stack > svg { background: var(--cream); }
.image-stack::before {
  content: '';
  position: absolute;
  inset: -22px -22px auto auto;
  width: 140px; height: 140px;
  border: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats .stat { padding: 16px 0; }
.stats .stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.2rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 6px;
}
.section-navy .stats .stat-number { color: var(--cream); }
.stats .stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.section-navy .stats .stat-label { color: rgba(255,255,255,0.75); }

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
