/* ============================================================
   Chatsworth Cosmetic Dental Care — modern design system
   Restored & modernized 2026 · pure static, offline-friendly
   ============================================================ */

:root {
  --navy: #14324f;
  --navy-dark: #0d2238;
  --navy-soft: #1d4468;
  --teal: #0e7c86;
  --teal-dark: #0a5f66;
  --teal-light: #e3f2f3;
  --sand: #f6f8fa;
  --card: #ffffff;
  --text: #243447;
  --muted: #5b6b7c;
  --border: #dde5ec;
  --gold: #b98a1d;
  --danger: #8a3b12;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(13, 34, 56, 0.08);
  --shadow-lg: 0 10px 30px rgba(13, 34, 56, 0.14);
  --maxw: 1060px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--sand);
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------- Header ---------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-name { font-size: 1.06rem; font-weight: 700; line-height: 1.25; display: block; }
.brand-sub { font-size: 0.78rem; color: var(--muted); display: block; }

.header-contact { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.header-phone {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  white-space: nowrap;
}
.header-phone::before { content: "☎ "; color: var(--teal); }

/* ---------------- Primary nav ---------------- */

.site-nav { background: var(--navy); }
.nav-toggle {
  display: none;
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  text-align: left;
}
.nav-toggle::before { content: "☰ "; }
.nav-toggle[aria-expanded="true"]::before { content: "✕ "; }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
}
.nav-menu a {
  display: block;
  color: #e8eef4;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 13px;
  border-bottom: 3px solid transparent;
}
.nav-menu a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.06); }
.nav-menu a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--teal);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; padding: 0 8px 10px; }
  .nav-menu.open { display: flex; }
  .nav-menu a { border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 6px; }
}

/* ---------------- Breadcrumbs ---------------- */

.crumbs { background: var(--teal-light); border-bottom: 1px solid var(--border); }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 9px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--teal-dark); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------------- Hero ---------------- */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 55%, var(--teal-dark) 100%);
  color: #fff;
  padding-block: 46px 52px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 34px;
  align-items: center;
}
.hero h1 { color: #fff; margin: 0 0 14px; }
.hero p { color: #d8e4ee; margin: 0 0 22px; font-size: 1.03rem; }
.hero .hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 9px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- Sections & cards ---------------- */

.section { padding-block: 42px; }
.section-alt { background: #fff; border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 26px; }
.section-head h2 { margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--navy); }
.card p { margin: 0 0 10px; font-size: 0.94rem; color: var(--muted); }
.card .more { font-weight: 600; font-size: 0.9rem; }
.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 10px;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0 0 4px; color: #fff; font-size: 1.35rem; }
.cta-band p { margin: 0; color: #dff1f2; }
.cta-band .btn-primary { background: #fff; color: var(--teal-dark); }
.cta-band .btn-primary:hover { background: var(--teal-light); }

/* ---------------- Prose / article ---------------- */

.prose { max-width: 800px; }
.prose h1 { margin: 0 0 16px; }
.prose h2 { color: var(--navy); margin: 30px 0 10px; font-size: 1.3rem; }
.prose h3 { color: var(--navy); margin: 22px 0 8px; font-size: 1.05rem; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose li { margin-bottom: 7px; }
.prose .lede { font-size: 1.08rem; color: var(--navy-soft); font-weight: 500; }
.prose blockquote {
  margin: 18px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--teal);
  background: var(--teal-light);
  border-radius: 0 8px 8px 0;
  color: var(--navy-soft);
  font-style: italic;
}
.muted-note { color: var(--muted); font-size: 0.88rem; }

.notice {
  background: #fdf6e8;
  border: 1px solid #ecd9a8;
  color: var(--danger);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 22px;
  font-size: 0.92rem;
}

/* ---------------- Fact panels ---------------- */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.fact {
  background: var(--teal-light);
  border: 1px solid #cfe6e8;
  border-radius: 10px;
  padding: 14px 16px;
}
.fact strong { color: var(--teal-dark); display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.fact span { font-size: 0.95rem; }

/* ---------------- FAQ ---------------- */

.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 20px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 16px; color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------------- Tables ---------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.hours th, table.hours td { text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--border); }
table.hours tr:last-child td { border-bottom: 0; }
table.hours th { background: var(--sand); color: var(--navy); }

/* ---------------- Forms ---------------- */

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  max-width: 640px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: 0.86rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 4px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdfe;
  color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 2px solid rgba(14, 124, 134, 0.25); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-size: 0.86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; color: var(--text); }
.radio-row label { font-weight: 400; display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.check-row label { font-weight: 400; display: inline-flex; align-items: flex-start; gap: 8px; margin: 0; }

/* ---------------- Media & figure ---------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .hero-inner { grid-template-columns: 1fr; } .hero-media { order: -1; } }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---------------- Link lists ---------------- */

.link-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 34px; }
@media (max-width: 640px) { .link-list { columns: 1; } }
.link-list li { break-inside: avoid; margin-bottom: 9px; padding-left: 20px; position: relative; }
.link-list li::before { content: "›"; position: absolute; left: 2px; color: var(--teal); font-weight: 700; }
.link-list a { font-weight: 500; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid #cfe4e6;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
}

/* ---------------- Footer ---------------- */

.site-footer { background: var(--navy-dark); color: #b9c8d6; margin-top: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding-block: 38px 26px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.footer-grid p, .footer-grid li { font-size: 0.9rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { color: #cfdde9; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-weight: 700; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  font-size: 0.8rem;
  color: #8fa3b5;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------------- Utility ---------------- */

.page-title { margin: 0 0 10px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}