/* kimrahall.com — Dr. Kimra Hall, DMD */
:root {
  --ink: #1a2a30;
  --muted: #4f6168;
  --deep: #103646;
  --teal: #1f6581;
  --sky: #2ea3f2;
  --gold: #c4a882;
  --gold-dk: #9a7a4e;
  --paper: #f7f4ee;
  --paper-2: #efe8dc;
  --white: #ffffff;
  --line: rgba(16, 54, 70, 0.12);
  --shadow: 0 18px 50px rgba(16, 54, 70, 0.10);
  --radius: 18px;
  --max: 1120px;
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--deep); }
a:focus-visible, button:focus-visible, .nav-toggle:focus-visible, .nav-btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.topbar { height: 5px; background: linear-gradient(90deg, var(--deep), var(--teal), var(--sky)); }
.site-header {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--deep);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.logo span { display: block; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.nav-toggle { position: absolute; left: -999px; }
.nav-btn {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--deep);
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}
.nav ul {
  display: flex;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); border-bottom-color: var(--gold); }

@media (max-width: 800px) {
  .nav-btn { display: inline-block; }
  .nav { display: none; width: 100%; }
  .nav-toggle:checked ~ .nav { display: block; padding-bottom: 1rem; }
  .header-inner { flex-wrap: wrap; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) {
  .hero { padding: 2.25rem 0 2rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 1.75rem; }
}
.portrait {
  width: min(280px, 70vw);
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 10px var(--gold), var(--shadow);
  background: var(--paper-2);
  aspect-ratio: 1;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; color: var(--deep); letter-spacing: -0.015em; }
h1 { margin: 0 0 0.85rem; font-size: clamp(2.15rem, 5vw, 3.35rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { margin: 0 0 0.45rem; font-size: 1.2rem; }
.lead { margin: 0 0 1.5rem; font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
@media (max-width: 800px) { .lead { margin-inline: auto; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 800px) { .cta-row { justify-content: center; } }
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.3rem;
  border-radius: 3px;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(31, 101, 129, 0.25);
}
.btn-primary:hover { background: var(--deep); color: var(--white); transform: translateY(-1px); }
.btn-ghost {
  color: var(--deep);
  background: transparent;
  border: 1px solid rgba(31, 101, 129, 0.35);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head p { margin: 0; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.15rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 8px 24px rgba(16, 54, 70, 0.04);
}
.section-alt .card { background: var(--paper); }
.card .meta {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin: 0 0 0.4rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.page-hero { padding: 2.5rem 0 0.5rem; }
.page-hero .lead { margin-bottom: 0; }
.crumbs {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid rgba(31, 101, 129, 0.25); }
.timeline li { padding: 0 0 1.4rem 1.35rem; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--paper);
}
.section-alt .timeline li::before { box-shadow: 0 0 0 3px var(--white); }
.timeline .when {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.15rem;
}
.timeline p { margin: 0; color: var(--muted); }

/* Location */
.place {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) { .place { grid-template-columns: 1fr; } }
address { font-style: normal; }
.place-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.place-card h2 { margin-bottom: 0.65rem; }
.place-card p, .place-card address { margin: 0 0 0.75rem; color: var(--muted); }
.phone { font-size: 1.2rem; font-weight: 650; color: var(--deep); text-decoration: none; }
.phone:hover { color: var(--teal); }

/* FAQ */
.faq { max-width: 46rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.15rem 1.1rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.9rem 0;
  color: var(--deep);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 500;
  font-size: 1.25rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--deep);
  color: #d7e3e8;
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; } }
.site-footer h2 {
  color: var(--white);
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-footer p, .site-footer address { margin: 0 0 0.5rem; color: #c5d4da; font-size: 0.95rem; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #e8d7bc; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: #9eb0b8;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 0.7rem; padding: 0; list-style: none; }
.foot-nav a { color: #d7e3e8; text-decoration: none; font-size: 0.9rem; }
.foot-nav a:hover { color: var(--gold); }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
}
.related a { font-weight: 650; text-decoration: none; }
.related a:hover { text-decoration: underline; }

.about-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .about-layout { grid-template-columns: 1fr; justify-items: center; }
  .about-layout .prose { text-align: left; }
  .about-layout .portrait { width: min(200px, 60vw); }
}
.about-layout .portrait { width: 100%; margin: 0.4rem 0 0; }
.about-layout .prose { max-width: 68ch; }
@media (max-width: 800px) { .about-layout .portrait { width: min(200px, 60vw); margin: 0 auto; } }
