/* Detective Dental — shared inner-page stylesheet */
:root {
  --bg: #FAF6EF;
  --bg-elev: #FFFFFF;
  --ink: #1A2B33;
  --ink-soft: #4A5A62;
  --ink-mute: #7A8890;
  --primary: #0F4C5C;
  --primary-deep: #073642;
  --accent: #E36414;
  --accent-deep: #C44F0B;
  --rule: #E5DDD0;
  --gold: #C8A063;
  --shadow-sm: 0 2px 8px rgba(15, 76, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 76, 92, 0.10);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* Topbar */
.topbar {
  background: var(--primary-deep);
  color: #E8F0F2;
  font-size: 13px;
  padding: 9px 0;
  text-align: center;
}
.topbar a { color: #E8F0F2; text-decoration: underline; }
.topbar strong { color: var(--gold); font-weight: 600; }

/* Header */
header.site {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--primary); border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--primary-deep);
}
.brand-name em { font-style: italic; color: var(--accent); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff !important;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  transition: transform .15s ease, background .15s ease;
}
.header-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.header-cta svg { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .header-cta span.long { display: none; }
}

/* Document body */
.doc { padding: 56px 0 80px; }
.doc h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--primary-deep);
  margin-bottom: 8px;
}
.doc h1 em { font-style: italic; color: var(--accent); }
.doc .updated {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 36px;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--primary-deep);
  margin: 48px 0 14px;
}
.doc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--primary-deep);
  margin: 32px 0 10px;
}
.doc p { margin-bottom: 14px; color: var(--ink); }
.doc ul, .doc ol { margin: 8px 0 18px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--primary-deep); font-weight: 600; }
.doc .lede {
  font-size: 18.5px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.55;
}

.callout {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-deep); }

table.contact-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
table.contact-table th, table.contact-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.contact-table th {
  background: var(--bg-elev);
  font-weight: 600;
  color: var(--primary-deep);
  width: 30%;
}

.toc {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 36px;
}
.toc h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 12px;
}
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 6px; font-size: 14.5px; }
.toc a { color: var(--primary); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* Footer */
footer {
  background: var(--primary-deep);
  color: rgba(232,240,242,0.85);
  padding: 56px 0 28px;
  font-size: 14.5px;
}
footer a { color: rgba(232,240,242,0.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
footer .brand-name { color: #fff; }
footer .brand-mark { background: var(--gold); }
footer p.tag { color: rgba(232,240,242,0.65); margin-top: 14px; max-width: 38ch; }
footer h5 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }

.legal {
  border-top: 1px solid rgba(232,240,242,0.15);
  padding-top: 24px;
  color: rgba(232,240,242,0.6);
  font-size: 12.5px;
  line-height: 1.7;
}
.legal p { margin-bottom: 10px; }
.legal strong { color: rgba(232,240,242,0.85); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Top nav (added Bing Ads launch) */
header.site nav, header.header nav { display: flex; align-items: center; }
header nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
header nav a { font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color .15s ease; position: relative; white-space: nowrap; }
header nav a:hover { color: var(--accent); }
header nav a.active { color: var(--accent); }
header nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
@media (max-width: 900px) { header.site nav, header.header nav { display: none !important; } }

/* Sticky mobile call bar (added for compliance — every page needs phone CTA on mobile) */
.sticky-call {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--accent, #C25E2A);
  color: #fff;
  padding: 12px 16px;
  z-index: 100;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
  text-align: center;
  font-family: var(--font-display, Georgia, serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
}
.sticky-call svg { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; }
.sticky-call .sticky-sub {
  display: block; font-size: 12px; font-weight: 500; opacity: 0.9;
  margin-top: 2px; font-family: var(--font-sans, sans-serif); letter-spacing: 0;
}
@media (max-width: 760px) {
  .sticky-call { display: block; }
  body { padding-bottom: 96px; }
}

/* Mobile responsive fixes (320-760px small phones to tablets) */
@media (max-width: 800px) {
.cta-prefix { display: none; }
.call-btn { font-size: 22px; padding: 16px 20px; }
}
@media (max-width: 380px) {
.call-btn { font-size: 18px; padding: 14px 18px; }
.contact-table { table-layout: fixed; width: 100%; }
.contact-table th { width: 35%; word-wrap: break-word; }
.contact-table td { word-wrap: break-word; word-break: break-word; }
.contact-card { max-width: 100%; box-sizing: border-box; }
a { word-break: break-word; }
}
/* Sticky CTA safe-area (iPhone notch/home indicator) */
.sticky-call { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
