/* ============================================================
   Villa Park Dental Care — Design System
   Palette derived from existing logo (cypress + tooth mark).
   ============================================================ */

:root {
  /* Brand colors */
  --teal-900: #103832;
  --teal-800: #155048;
  --teal-700: #1b6a5f;
  --teal-600: #26897a;
  --teal-500: #3aa896;
  --mint-400: #6cc4b3;
  --mint-200: #b9e3d8;
  --mint-100: #dcefe8;
  --sand-100: #faf6ee;
  --sand-200: #f3ecdd;
  --sand-300: #e9dfc8;
  --ink-900: #182420;
  --ink-700: #3d4a45;
  --ink-500: #66756f;
  --gold-500: #b8863f;
  --gold-600: #9c6f2f;
  --white: #ffffff;
  --danger: #b3462c;

  /* Semantic */
  --bg: var(--sand-100);
  --bg-alt: var(--mint-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: #e3dcc9;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(16, 56, 50, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 56, 50, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 56, 50, 0.16);
  --container: 1180px;

  --font-head: "Fraunces", "Lora", Georgia, serif;
  --font-body: "Inter", "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--teal-900); color: var(--mint-100); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-sand { background: var(--sand-200); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--mint-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-dark .eyebrow { background: rgba(255,255,255,0.12); color: var(--mint-200); }

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 62ch;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal-700); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-800); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--teal-700); color: var(--teal-800); }
.btn-outline:hover { background: var(--teal-700); color: var(--white); }
.section-dark .btn-outline { border-color: var(--mint-200); color: var(--mint-100); }
.section-dark .btn-outline:hover { background: var(--mint-100); color: var(--teal-900); }
.btn-white { background: var(--white); color: var(--teal-800); }
.btn-white:hover { background: var(--mint-100); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--sand-100);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--teal-900);
  flex-shrink: 0;
  white-space: nowrap;
}
.brand img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > ul { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.main-nav a.nav-link {
  display: block;
  padding: 10px 11px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-700);
  white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav a.nav-link[aria-current="page"] { background: var(--mint-100); color: var(--teal-800); }
.nav-highlight a.nav-link { color: var(--gold-600); }

.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.has-dropdown { padding-bottom: 14px; margin-bottom: -14px; }
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel { display: flex; }
.dropdown-panel a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-700);
}
.dropdown-panel a:hover { background: var(--mint-100); color: var(--teal-800); }

.header-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-row { flex-wrap: nowrap; }
.site-header .container { max-width: 1360px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--teal-800);
  font-size: 0.98rem;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 24px; height: 2px; background: var(--teal-900); margin: 5px 0; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  display: none;
  background: var(--teal-900);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
}
.mobile-cta-bar { display: flex; }
.mobile-cta-bar a {
  flex: 1;
  text-align: center;
  padding: 13px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mint-100);
  border-right: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.mobile-cta-bar a:last-child { border-right: none; }
.mobile-cta-bar a.call { background: var(--gold-500); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: var(--teal-700); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.hero h1 { margin-bottom: 20px; }
.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  max-width: 230px;
  margin-left: auto;
  background: linear-gradient(160deg, var(--mint-400), var(--teal-800));
  position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-trust { margin-top: 26px; display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--text-muted); }
.hero-trust svg { flex-shrink: 0; color: var(--gold-500); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--mint-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .card-link { margin-top: auto; font-weight: 700; color: var(--teal-700); display: inline-flex; align-items: center; gap: 6px; }

/* Steps */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--teal-700); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 16px;
}

/* Pricing / comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.96rem; }
th { background: var(--mint-100); color: var(--teal-900); font-weight: 700; }
td.price { font-weight: 700; color: var(--teal-800); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
.check { color: var(--teal-600); font-weight: 700; }
.cross { color: var(--text-muted); }

/* Fee list */
.fee-group { margin-bottom: 36px; }
.fee-group h3 { border-bottom: 2px solid var(--mint-200); padding-bottom: 10px; margin-bottom: 6px; }
.fee-note { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }
.fee-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.fee-row:last-child { border-bottom: none; }
.fee-name { font-weight: 600; }
.fee-detail { font-size: 0.86rem; color: var(--text-muted); margin-top: 2px; }
.fee-amount { font-weight: 700; color: var(--teal-800); white-space: nowrap; font-family: var(--font-head); font-size: 1.05rem; }

/* Membership plan cards */
.icon-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 32px auto 0; max-width: 820px; }
.icon-item { text-align: center; }
.icon-item .icon-circle { width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--teal-700); }
.icon-item span { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-700); }

.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.plan-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.plan-card.featured { border-color: var(--teal-600); box-shadow: var(--shadow-md); }
.plan-name { font-family: var(--font-head); font-size: 1.4rem; color: var(--teal-900); margin-bottom: 4px; }
.plan-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price .amount { font-family: var(--font-head); font-size: 2.6rem; color: var(--teal-800); font-weight: 600; }
.plan-price .period { color: var(--text-muted); font-size: 0.95rem; }
.plan-alt-price { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 22px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 12px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.plan-list li::before { content: "✓"; color: var(--teal-600); font-weight: 700; flex-shrink: 0; }

/* Placeholder callouts */
.placeholder-flag {
  background: #fbf1e0;
  border: 1px dashed var(--gold-500);
  color: #7a5320;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin: 14px 0;
}
.placeholder-flag strong { color: var(--gold-600); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-600); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 12px; color: var(--text-muted); }

/* Testimonials */
.review-card { background: var(--white); border-radius: var(--radius-md); padding: 26px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 10px; }
.review-name { font-weight: 700; margin-top: 14px; color: var(--teal-900); }

/* Team */
.team-card { text-align: center; }
.team-photo { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 18px; aspect-ratio: 4/5; box-shadow: var(--shadow-sm); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Local / map */
.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--mint-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Final CTA band */
.final-cta { background: linear-gradient(135deg, var(--teal-800), var(--teal-900)); color: var(--white); border-radius: var(--radius-lg); padding: 64px; text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta .lede { color: var(--mint-200); margin-left: auto; margin-right: auto; }
.final-cta .phone-big { font-family: var(--font-head); font-size: 1.6rem; margin-top: 22px; color: var(--white); font-weight: 600; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-700); font-weight: 600; }

/* Footer */
.site-footer { background: var(--teal-900); color: var(--mint-100); padding: 64px 0 120px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-body); font-weight: 700; margin-bottom: 16px; }
.site-footer a { color: var(--mint-200); font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.15rem; color: var(--white); margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; border-radius: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 24px; font-size: 0.82rem; color: var(--mint-200); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--border); padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--teal-800); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.reverse .col-media { order: 2; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.media-frame img { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-visual { margin-left: auto; margin-right: auto; max-width: 190px; }
  .two-col .col-media { order: -1 !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .icon-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1400px) {
  .main-nav a.nav-link { padding: 8px 7px; font-size: 0.8rem; }
  .header-ctas .btn-sm { padding: 9px 12px; font-size: 0.8rem; }
  .header-row { gap: 12px; }
}
@media (max-width: 1220px) {
  .main-nav { position: fixed; inset: 64px 0 0 0; background: var(--sand-100); flex-direction: column; align-items: stretch; padding: 20px; display: none; overflow-y: auto; z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a.nav-link { padding: 12px 14px; font-size: 1rem; }
  .dropdown-panel { position: static; display: none; box-shadow: none; border: none; padding-left: 14px; }
  .has-dropdown.open .dropdown-panel { display: flex; }
  .nav-toggle { display: block; }
  .header-phone span.label { display: none; }
}
@media (max-width: 760px) {
  .header-ctas .btn-sm { display: none; }
  .header-phone { display: none; }
  .brand-sub { display: none; }
  section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .final-cta { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 58px; }
  .final-cta .cta-row, .hero .cta-row { flex-direction: column; align-items: stretch; }
  .final-cta .cta-row .btn, .hero .cta-row .btn { width: 100%; }
}
@media (min-width: 761px) {
  .mobile-cta-bar { display: none; }
}
