/* Chiropractic Naturally: mobile-first site styles */

:root {
  --teal: #007c95;        /* brand teal, darkened from #008CA8 for contrast */
  --teal-dark: #005a6c;
  --teal-pale: #e6f4f7;
  --sky: #cce8ee;         /* the old page background, kept as an accent */
  --ink: #1f2d33;
  --muted: #56666c;
  --line: #d5e3e7;
  --paper: #ffffff;
  --sand: #faf8f4;
  --radius: 12px;
  --wrap: 68rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  padding-bottom: 4rem; /* room for the phone action bar */
}

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

a { color: var(--teal-dark); text-underline-offset: 0.15em; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid #f2a541; outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--teal-dark); font-weight: 600; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin: 1.6em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { background: var(--teal); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.lotus { width: 3rem; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand-sub { font-size: 0.85rem; opacity: 0.9; }

.header-phone { display: none; color: #fff; text-decoration: none; text-align: right; line-height: 1.2; }
.header-phone .label { display: block; font-size: 0.8rem; opacity: 0.85; }
.header-phone .number { font-size: 1.2rem; font-weight: 600; }
.header-phone:hover { color: #fff; text-decoration: underline; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-size: 0.95rem; color: #fff; background: transparent;
  border: 1px solid rgba(255,255,255,0.6); border-radius: 8px; padding: 0.45rem 0.8rem; cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav { background: var(--teal-dark); }
.site-nav ul { list-style: none; margin: 0 auto; padding-top: 0.25rem; padding-bottom: 0.25rem; }
.site-nav a { display: block; color: #fff; text-decoration: none; padding: 0.7rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

/* Page sections */
.hero { background: linear-gradient(180deg, var(--teal-pale), var(--sand)); padding: 2.5rem 0 2rem; }
.hero-grid { display: grid; gap: 1.75rem; align-items: center; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--teal); margin: 0 0 0.6rem; }
.hero .lede { font-size: 1.2rem; color: var(--ink); margin: 0 0 1.5rem; }
.portrait { margin: 0; justify-self: center; }
.portrait img { display: block; width: 180px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border: 5px solid #fff; box-shadow: 0 6px 24px rgba(0, 60, 75, 0.18); }

.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-block; padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; background: var(--teal); color: #fff; border: 2px solid var(--teal);
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--teal-dark); }
.button.secondary:hover { background: var(--teal-pale); color: var(--teal-dark); }

.photo-strip { display: block; width: 100%; max-width: 604px; margin: 0 auto; border-radius: var(--radius); }

.section { padding-top: 2rem; padding-bottom: 2rem; }
.content { max-width: 44rem; }
.content > :first-child { margin-top: 0; }

.cards { display: grid; gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; padding-left: 1.8rem; margin: 0.4rem 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

.quote { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--paper); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 1.15rem; }
.quote footer { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); margin-top: 0.5rem; }

.layout-2 { display: grid; gap: 2rem; }

.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px dotted var(--line); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; }

.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--teal-pale); }

/* Footer */
.site-footer { background: #163840; color: #e7f1f3; margin-top: 3rem; padding-top: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin: 0 0 0.6rem; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #b9cdd2; }
.site-footer .hours div { border-bottom-color: rgba(255,255,255,0.15); }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; font-size: 0.9rem; color: #b9cdd2; }
.footer-bottom p { margin: 0; }

/* Sticky call / directions bar on phones */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--teal-dark); box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a { color: #fff; text-align: center; padding: 0.9rem 0.5rem; font-weight: 600; text-decoration: none; }
.action-bar a + a { border-left: 1px solid rgba(255,255,255,0.2); }

/* Tablet and up */
@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr auto; }
  .portrait img { width: 220px; }
}

/* Desktop: full menu, no action bar */
@media (min-width: 60rem) {
  body { padding-bottom: 0; }
  .action-bar, .nav-toggle, .js .nav-toggle { display: none; }
  .header-phone { display: block; }
  .js .site-nav, .site-nav { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .site-nav a { border-bottom: 0; padding: 0.75rem 0; font-size: 0.97rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .portrait img { width: 260px; }
  .layout-2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

@media print {
  .site-nav, .action-bar, .nav-toggle, .skip-link, .map { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* Inner pages */
.page-header { background: linear-gradient(180deg, var(--teal-pale), var(--sand)); padding: 2rem 0 1rem; }
.page-header h1 { margin-bottom: 0.3em; }
.page-header .lede { font-size: 1.15rem; max-width: 44rem; margin: 0; }

.prose h2 { scroll-margin-top: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose img.float-photo, .prose .float-photo img { float: right; width: 38%; max-width: 220px; margin: 0.3rem 0 1rem 1.25rem; border-radius: var(--radius); }
.prose h2, .prose h3 { clear: both; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--paper); border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; font-style: normal; color: var(--muted); margin-top: 0.5rem; }

.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem 1rem 2.5rem; margin: 0 0 2rem; }
.toc li { margin: 0.25rem 0; }

.columns { columns: 9rem 3; column-gap: 1.5rem; font-size: 0.95rem; padding-left: 1.2rem; }
.columns li { break-inside: avoid; margin: 0.15rem 0; }

.testimonials { display: grid; gap: 1rem; }
.testimonials blockquote { margin: 0; }
