:root {
  --bg: #f7f3ee;
  --paper: #ffffff;
  --ink: #2c2824;
  --muted: #7a7268;
  --rule: #e0d6ca;
  --accent: #2a6b7a;
  --accent-light: #e8f2f4;
  --warm: #c4956a;
  --warm-light: #f5ede4;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1814;
    --paper: #221f1a;
    --ink: #e8dfd0;
    --muted: #8a8174;
    --rule: #3a342c;
    --accent: #5fa8b8;
    --accent-light: #1e2f34;
    --warm: #c4956a;
    --warm-light: #2a221a;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  letter-spacing: -0.01em;
  margin-top: 0;
}
h1 { font-size: 2.2rem; line-height: 1.2; }
h2 { font-size: 1.6rem; margin-bottom: 0.5em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 0.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.practice-name {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.practice-name:hover { color: var(--accent); }
.header-phone {
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}
.header-phone a { color: var(--accent); text-decoration: none; font-weight: 500; }
.header-phone a:hover { text-decoration: underline; }
nav {
  width: 100%;
  display: flex;
  gap: 1.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: var(--accent-light);
  padding: 3rem 0 2.5rem;
  text-align: center;
}
.hero h1 { margin-bottom: 0.5rem; }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.btn:hover { background: #1f5562; color: #fff; }
.btn-warm {
  background: var(--warm);
}
.btn-warm:hover { background: #b07e55; }

/* Sections */
.section {
  padding: 2.5rem 0;
}
.section-alt {
  background: var(--paper);
}
.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.service-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

/* About */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content p { font-size: 1.05rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-info p { margin-bottom: 0.5rem; }
.contact-info strong { display: inline-block; min-width: 5rem; }
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-status {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius);
}
.form-status.success { background: #dff0d8; color: #3c763d; }
.form-status.error { background: #f2dede; color: #a94442; }

/* Footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.footer-grid h4 {
  font-family: "Iowan Old Style", "Charter", Georgia, serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.footer-grid p { margin-bottom: 0.3rem; }
.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.8rem;
}
.footer-bottom .attribution { font-size: 0.75rem; opacity: 0.7; margin-top: 0.25rem; }

@media (min-width: 600px) {
  h1 { font-size: 2.5rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  nav { width: auto; border-top: none; padding-top: 0; margin-top: 0; }
  .header-inner { flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
