/* ===========================
   BRIGHTSIDE FAMILY DENTAL
   Design System — Teal/White
   =========================== */

/* ===== VARIABLES ===== */
:root {
  --bg:           #f5f9f8;
  --surface:      #ffffff;
  --surface-tint: #e8f5f2;
  --text:         #1a2e2b;
  --text-muted:   #4a6460;
  --accent:       #0d9488;
  --accent-dark:  #0b7a6e;
  --accent-light: #ccfbf1;
  --border:       #d1e8e4;
  --dark:         #0f2421;
  --dark-muted:   #244540;
  --radius:       1rem;
  --radius-sm:    .5rem;
  --shadow-sm:    0 1px 4px rgba(13,148,136,.08);
  --shadow:       0 4px 20px rgba(13,148,136,.12);
  --shadow-lg:    0 12px 40px rgba(13,148,136,.18);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito Sans', system-ui, -apple-system, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p  { max-width: 68ch; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 3rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary              { background: var(--accent);      color: #fff; }
.btn-primary:hover        { background: var(--accent-dark); }
.btn-ghost                { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover          { background: var(--accent-light); }
.btn-outline              { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-outline:hover        { border-color: var(--accent); background: var(--accent-light); }
.btn-outline-light        { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover  { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-white                { background: #fff; color: var(--accent-dark); }
.btn-white:hover          { background: var(--accent-light); }
.btn-ghost-white          { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-white:hover    { border-color: #fff; background: rgba(255,255,255,.1); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.phone-bar {
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: .4rem 2rem;
}
.phone-bar a { color: #fff; font-weight: 700; letter-spacing: .01em; }
.phone-bar a:hover { text-decoration: underline; }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand             { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand-mark        { flex-shrink: 0; }
.brand-text        { display: flex; flex-direction: column; }
.brand-name        { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.brand-tag         { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.main-nav          { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav-link          { padding: .5rem .85rem; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 600; color: var(--text-muted); transition: all .18s; }
.nav-link:hover,
.nav-link--active  { color: var(--accent); background: var(--surface-tint); }
.header-cta        { margin-left: .5rem; padding: .6rem 1.35rem; background: var(--accent); color: #fff; border-radius: 3rem; font-size: .88rem; font-weight: 700; transition: background .2s; white-space: nowrap; }
.header-cta:hover  { background: var(--accent-dark); }
.nav-toggle        { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); padding: .25rem; margin-left: auto; }

/* ===== SECTIONS ===== */
.section         { padding: 5rem 2rem; }
.section-inner   { max-width: 1200px; margin: 0 auto; }
.section-header  { text-align: center; margin-bottom: 3.5rem; }
.section-header p { max-width: 62ch; margin: .75rem auto 0; color: var(--text-muted); font-size: 1.05rem; }
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: .3rem .9rem;
  border-radius: 3rem;
  margin-bottom: .8rem;
}
.section-action { text-align: center; margin-top: 2.5rem; }

/* ===== HERO ===== */
.hero {
  padding: 5.5rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-light);
  border: 1px solid var(--border);
  padding: .4rem 1rem;
  border-radius: 3rem;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(.8); }
}
.hero-headline    { margin-bottom: 1.25rem; }
.hero-sub         { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; max-width: 52ch; }
.hero-actions     { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.trust-bar        { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.trust-item       { display: flex; align-items: center; gap: .4rem; font-size: .83rem; font-weight: 600; color: var(--text-muted); }
.check-icon       { width: 20px; height: 20px; flex-shrink: 0; }

/* Hero card stack */
.hero-visual      { display: flex; align-items: center; justify-content: center; }
.hero-card-stack  { position: relative; width: 300px; height: 340px; }
.hero-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
}
.hero-card--main {
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
.smile-icon                      { font-size: 2.4rem; line-height: 1; }
.hero-card-content               { display: flex; flex-direction: column; gap: .1rem; }
.hero-card-content strong        { font-size: 1rem; font-weight: 700; color: var(--text); }
.hero-card-content span          { font-size: .83rem; color: var(--text-muted); }
.hero-card--stat {
  top: 0; right: 10px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--dark);
  color: white;
  min-width: 115px;
  text-align: center;
  gap: .2rem;
}
.hero-card--stat .stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: white; line-height: 1; }
.hero-card--stat .stat-lbl { font-size: .78rem; color: rgba(255,255,255,.6); }
.hero-card--rating {
  top: 105px; left: 0;
  display: flex; flex-direction: column;
  gap: .25rem;
  background: var(--accent);
  min-width: 155px;
}
.hero-card--rating .rating-stars { font-size: 1rem; color: white; letter-spacing: .12em; }
.hero-card--rating .rating-text  { font-size: .8rem; color: rgba(255,255,255,.85); }

/* ===== SERVICES ===== */
.services-section { background: var(--dark); }
.services-section .section-header h2  { color: white; }
.services-section .section-header p   { color: rgba(255,255,255,.6); }
.services-section .section-eyebrow    { background: rgba(13,148,136,.25); color: var(--accent-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all .25s ease;
}
.service-card:hover { background: rgba(255,255,255,.09); border-color: var(--accent); transform: translateY(-3px); }
.service-icon      { font-size: 2rem; margin-bottom: 1rem; line-height: 1; }
.service-card h3   { color: white; font-size: 1.05rem; margin-bottom: .6rem; }
.service-card p    { color: rgba(255,255,255,.62); font-size: .9rem; max-width: none; }

/* ===== ABOUT SPLIT ===== */
.about-split  { background: var(--surface-tint); }
.about-inner  { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5rem; align-items: center; }
.about-visual { position: relative; }
.about-img-placeholder {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 600;
}
.about-milestone-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.25rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  padding: .9rem 1.4rem;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: var(--shadow);
  max-width: 180px;
  text-align: center;
}
.about-copy h2        { margin-bottom: 1rem; }
.about-copy > p       { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.7; }
.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.stat-block        { display: flex; flex-direction: column; }
.stat-block strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-block span   { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); margin-top: .3rem; }

/* ===== PROCESS ===== */
.process-section { background: var(--bg); }
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
}
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.process-step:hover { box-shadow: var(--shadow); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .75rem;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.process-step h3   { font-size: 1.05rem; margin-bottom: .5rem; color: var(--text); }
.process-step p    { color: var(--text-muted); font-size: .9rem; max-width: none; }
.process-connector {
  font-size: 1.4rem;
  color: var(--accent);
  opacity: .4;
  padding: 2rem .75rem 0;
  align-self: start;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--surface-tint); }
.testimonials-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-stars         { color: var(--accent); font-size: 1.05rem; letter-spacing: .1em; }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  flex: 1;
  max-width: none;
}
.testimonial-author        { padding-top: 1rem; border-top: 1px solid var(--border); }
.testimonial-author strong { display: block; font-size: .9rem; font-family: var(--font-body); }
.testimonial-author span   { font-size: .8rem; color: var(--text-muted); }

/* ===== INSURANCE ===== */
.insurance-section { background: var(--surface); }
.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.insurance-badge {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.insurance-badge:hover          { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); }
.insurance-badge--more          { font-style: italic; font-weight: 400; color: var(--text-muted); background: transparent; }
.insurance-note                 { text-align: center; color: var(--text-muted); font-size: .9rem; max-width: 58ch; margin: 0 auto; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--accent); padding: 5rem 2rem; }
.cta-inner  {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.cta-banner h2        { color: white; margin-bottom: .5rem; }
.cta-banner > .cta-inner > div > p { color: rgba(255,255,255,.82); max-width: 52ch; }
.cta-actions          { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer   { background: var(--dark); color: rgba(255,255,255,.72); padding: 5rem 2rem 0; }
.footer-inner  {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand          { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand > div    { display: flex; flex-direction: column; gap: .75rem; }
.footer-brand strong   { color: white; font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand p        { font-size: .88rem; line-height: 1.65; opacity: .7; max-width: 34ch; }
.footer-cols           { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4         { color: white; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-body); font-weight: 700; }
.footer-col a          { display: block; font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover    { color: var(--accent-light); }
.footer-col p          { font-size: .88rem; margin-bottom: .5rem; color: rgba(255,255,255,.65); }
.footer-cta            { display: inline-block !important; margin-top: 1rem; padding: .6rem 1.25rem; background: var(--accent); color: #fff !important; border-radius: 3rem; font-size: .85rem; font-weight: 700; text-align: center; }
.footer-cta:hover      { background: var(--accent-dark) !important; }
.footer-bottom         { max-width: 1200px; margin: 0 auto; padding: 1.5rem 0; font-size: .82rem; color: rgba(255,255,255,.38); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-hosted { font-size: .78rem; color: rgba(255,255,255,.28); }
.footer-hosted a { color: rgba(255,255,255,.45); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.footer-hosted a:hover { color: var(--accent-light); }

/* ===== PAGE / SINGLE LAYOUT ===== */
.page-hero              { background: var(--surface-tint); padding: 4rem 2rem; border-bottom: 1px solid var(--border); }
.page-hero-inner        { max-width: 900px; margin: 0 auto; }
.page-hero h1           { margin: .5rem 0 .75rem; }
.page-hero-desc         { color: var(--text-muted); font-size: 1.05rem; max-width: 65ch; }
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
/* Prose typography */
.prose h2               { margin: 2.25rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.prose h3               { margin: 1.75rem 0 .5rem; color: var(--accent); }
.prose p                { color: var(--text-muted); margin-bottom: 1rem; }
.prose ul, .prose ol    { padding-left: 1.5rem; color: var(--text-muted); margin-bottom: 1rem; }
.prose li               { margin-bottom: .5rem; }
.prose strong           { color: var(--text); }
.prose table            { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.prose th               { background: var(--surface-tint); text-align: left; padding: .6rem .9rem; border: 1px solid var(--border); font-weight: 700; }
.prose td               { padding: .6rem .9rem; border: 1px solid var(--border); color: var(--text-muted); }
.prose hr               { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
/* Sidebar */
.page-aside             { display: flex; flex-direction: column; gap: 1.25rem; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: sticky;
  top: 120px;
}
.aside-card--emergency  { background: var(--dark); border-color: transparent; }
.aside-card--emergency h3 { color: white; }
.aside-card--emergency p  { color: rgba(255,255,255,.72); }
.emergency-icon         { font-size: 1.8rem; line-height: 1; }
.aside-card h3          { font-size: 1.05rem; margin-bottom: .1rem; }
.aside-card p           { font-size: .9rem; color: var(--text-muted); max-width: none; }
.aside-hours {
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.aside-hours strong     { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-family: var(--font-body); font-weight: 700; }
.aside-hours span       { font-size: .88rem; }

/* ===== REVEAL ANIMATION ===== */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise .5s ease-out both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero           { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem; }
  .hero-visual    { justify-content: flex-start; }
  .about-inner    { grid-template-columns: 1fr; gap: 3rem; }
  .about-milestone-badge { right: 1rem; }
  .footer-inner   { grid-template-columns: 1fr; gap: 3rem; }
  .footer-cols    { grid-template-columns: repeat(3, 1fr); }
  .page-content   { grid-template-columns: 1fr; }
  .aside-card     { position: static; }
  .process-steps  { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-connector { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner      { flex-direction: column; align-items: flex-start; gap: 2rem; }
}
@media (max-width: 768px) {
  .section        { padding: 3.5rem 1.25rem; }
  .hero           { padding: 3.5rem 1.25rem 2.5rem; }
  .main-nav       { display: none; }
  .nav-toggle     { display: block; }
  .header-cta     { display: none; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .stat-row       { gap: 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-cols    { grid-template-columns: 1fr 1fr; }
  .hero-card-stack { width: 270px; height: 310px; }
  .phone-bar      { flex-direction: column; gap: .2rem; font-size: .75rem; padding: .4rem 1rem; }
  .footer-inner   { padding-bottom: 3rem; }
}
@media (max-width: 480px) {
  .services-grid  { grid-template-columns: 1fr; }
  .footer-cols    { grid-template-columns: 1fr; }
  .stat-row       { flex-wrap: wrap; gap: 1.25rem; }
  .hero-badge     { font-size: .72rem; }
}
