/* ============================================================
   Shelley H. Shelton, P.A. — design system
   Palette: cypress ink / warm parchment / muted brass / moss
   Type: Libre Caslon Display + Libre Caslon Text / Public Sans
   ============================================================ */

:root {
  --ink: #16241d;
  --ink-soft: #22332a;
  --ink-wash: #2d4036;
  --parchment: #f7f3e9;
  --parchment-deep: #efe8d8;
  --card: #fcfaf4;
  --brass: #96762f;
  --brass-deep: #7a5f24;
  --brass-soft: #c9b070;
  --moss: #6e7f6b;
  --text: #26312a;
  --text-muted: #59645b;
  --text-on-ink: #ede8da;
  --text-on-ink-muted: #b3b9ac;
  --line: rgba(22, 36, 29, 0.16);
  --line-on-ink: rgba(237, 232, 218, 0.18);
  --danger: #8c3b2e;
  --ok: #3d6b4f;
  --font-display: "Libre Caslon Display", "Georgia", serif;
  --font-serif: "Libre Caslon Text", "Georgia", serif;
  --font-sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --wrap-narrow: 780px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(22, 36, 29, 0.06), 0 12px 32px -12px rgba(22, 36, 29, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, p, ul, ol, figure { margin: 0 0 1rem; }
a { color: var(--brass-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brass-soft); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--text-on-ink); padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--ink); letter-spacing: 0.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin-bottom: 0.75rem; }
h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--text-muted); max-width: 46em; }
.eyebrow {
  display: block; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 1rem;
}
.on-ink .eyebrow { color: var(--brass-soft); }
.serif-note { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.section-deep { background: var(--parchment-deep); }
.section-ink { background: var(--ink); color: var(--text-on-ink); }
.section-ink h1, .section-ink h2, .section-ink h3 { color: var(--text-on-ink); }
.section-ink p { color: var(--text-on-ink-muted); }
.section-ink a { color: var(--brass-soft); }
.section-ink a:hover { color: var(--text-on-ink); }
.grid-2 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Chain-of-lakes rule: the site's signature divider */
.lake-rule { display: flex; justify-content: center; margin: 0 0 1.5rem; }
.lake-rule svg { width: 132px; height: 14px; }
.lake-rule .stroke { stroke: var(--brass); fill: none; stroke-width: 1.4; }
.lake-rule .fill { fill: var(--brass); }
.on-ink .lake-rule .stroke, .section-ink .lake-rule .stroke { stroke: var(--brass-soft); }
.on-ink .lake-rule .fill, .section-ink .lake-rule .fill { fill: var(--brass-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.7rem; border-radius: var(--radius);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--parchment); }
.btn-primary:hover { background: var(--ink-wash); color: var(--parchment); }
.btn-brass { background: var(--brass); color: #fffdf5; }
.btn-brass:hover { background: var(--brass-deep); color: #fffdf5; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--parchment); }
.section-ink .btn-outline, .on-ink .btn-outline, .hero-home .btn-outline, .hero-page .btn-outline { color: var(--text-on-ink); border-color: var(--text-on-ink); }
.section-ink .btn-outline:hover, .on-ink .btn-outline:hover, .hero-home .btn-outline:hover, .hero-page .btn-outline:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }
.btn-lg { min-height: 54px; padding: 0.85rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: var(--text-on-ink-muted); font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; padding-block: 0.25rem; }
.topbar a { color: var(--text-on-ink); text-decoration: none; padding: 0.35rem 0; }
.topbar a:hover { color: var(--brass-soft); }
.topbar-links { display: flex; gap: 1.5rem; align-items: center; }
.topbar .topbar-note { display: none; }
@media (min-width: 860px) { .topbar .topbar-note { display: block; } }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247, 243, 233, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.1; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  display: inline-block; padding: 0.6rem 0.85rem; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: 0.98rem; border-radius: var(--radius);
}
.main-nav a:hover { color: var(--brass-deep); }
.main-nav a[aria-current="page"] { color: var(--brass-deep); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.main-nav .nav-cta { margin-left: 0.75rem; }
@media (min-width: 1000px) { .main-nav { display: block; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 12px; background: none; border: 0; border-radius: var(--radius);
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none; position: fixed; inset: 0; top: 0; z-index: 190;
  background: var(--ink); color: var(--text-on-ink); overflow-y: auto;
  padding: 8.5rem 1.5rem 3rem;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--line-on-ink); }
.mobile-nav a {
  display: block; padding: 1.05rem 0.25rem; color: var(--text-on-ink); text-decoration: none;
  font-family: var(--font-display); font-size: 1.45rem;
}
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--brass-soft); }
.mobile-nav .mobile-sub a { font-family: var(--font-sans); font-size: 1rem; padding: 0.55rem 0.25rem 0.55rem 1rem; color: var(--text-on-ink-muted); }
.mobile-nav .mobile-cta { margin-top: 2rem; display: grid; gap: 0.75rem; }
body.nav-open { overflow: hidden; }

/* ---------- Heroes ---------- */
.hero-home { position: relative; background: var(--ink); color: var(--text-on-ink); overflow: hidden; }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero-art .art-mobile-bough, .hero-art .art-mobile-lake { display: none; }
@media (max-width: 719px) {
  .hero-home { background: linear-gradient(180deg, #16241d 0%, #203027 60%, #22332a 100%); }
  .hero-art .art-desktop { display: none; }
  .hero-art .art-mobile-bough {
    display: block; position: absolute; top: 0; left: 0;
    width: clamp(180px, 54vw, 230px); height: auto;
  }
  .hero-art .art-mobile-lake {
    display: block; position: absolute; left: 0; right: 0; bottom: 0;
    width: 100%; height: 235px;
  }
  .hero-home .hero-home-inner { padding-bottom: 265px; }
}
.hero-home .wrap { position: relative; z-index: 2; }
.hero-home-inner { padding: clamp(4.5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7.5rem); max-width: 780px; }
.hero-home h1 { color: var(--parchment); font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: 1.5rem; }
.hero-home .lede { color: var(--text-on-ink-muted); font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* word-reveal */
.word-reveal .word { display: inline-block; opacity: 0; transform: translateY(0.6em); animation: wordUp 0.7s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }
.hero-kicker-rotate { display: inline-block; white-space: nowrap; vertical-align: baseline; text-align: center; color: var(--brass-soft); font-style: italic; font-family: var(--font-serif); transition: opacity 0.4s var(--ease); }
.hero-kicker-rotate.fading { opacity: 0; }
.hero-page { background: var(--ink); color: var(--text-on-ink); position: relative; overflow: hidden; }
.hero-page-inner { position: relative; z-index: 2; padding-block: clamp(3.25rem, 7vw, 5.5rem); max-width: 820px; }
.hero-page h1 { color: var(--parchment); }
.hero-page .lede { color: var(--text-on-ink-muted); }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 1.25rem; color: var(--text-on-ink-muted); }
.breadcrumbs a { color: var(--brass-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Credential badges ---------- */
.badge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 860px) { .badge-row { grid-template-columns: repeat(4, 1fr); } }
.badge {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem;
  padding: 1.5rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.badge svg { width: 40px; height: 40px; }
.badge strong { font-family: var(--font-serif); font-size: 1rem; color: var(--ink); line-height: 1.3; }
.badge small { color: var(--text-muted); font-size: 0.82rem; line-height: 1.45; }

/* ---------- Stat strip ---------- */
.stat-strip { border-top: 1px solid var(--line-on-ink); border-bottom: 1px solid var(--line-on-ink); }
.stat-strip-grid { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .stat-strip-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 2.25rem 1rem; text-align: center; border-bottom: 1px solid var(--line-on-ink);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line-on-ink); }
@media (min-width: 860px) {
  .stat { border-bottom: 0; border-right: 1px solid var(--line-on-ink); }
  .stat:last-child { border-right: 0; }
}
.stat-number { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--brass-soft); line-height: 1; }
.stat-number sup { font-size: 0.45em; top: -0.9em; }
.stat-label { margin-top: 0.6rem; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-ink-muted); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
a.card { display: block; text-decoration: none; color: var(--text); height: 100%; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(150, 118, 47, 0.45); }
.card h3 { margin-bottom: 0.5rem; }
.card .card-more { font-weight: 600; font-size: 0.92rem; color: var(--brass-deep); }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card-icon { width: 42px; height: 42px; margin-bottom: 1.1rem; color: var(--brass); }

/* why-choose icon grid */
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { padding: 0 0.5rem; }
.why-item svg { width: 44px; height: 44px; color: var(--brass); margin-bottom: 1rem; }
.why-item h3 { font-size: 1.25rem; }
.why-item p { color: var(--text-muted); font-size: 0.98rem; }

/* differentiator checklist */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.check-list .tick { flex: none; width: 22px; height: 22px; margin-top: 0.2rem; color: var(--brass); }

/* ---------- Process graphic (chain of lakes) ---------- */
.process { position: relative; }
.process-canal { display: none; }
@media (min-width: 860px) {
  .process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
  .process-canal {
    display: block; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, var(--brass-soft) 0 10px, transparent 10px 18px);
  }
}
.process-steps { counter-reset: step; display: grid; gap: 2rem; }
.process-step { position: relative; z-index: 1; text-align: center; padding: 0 0.5rem; }
.process-node {
  width: 68px; height: 68px; margin: 0 auto 1.1rem; border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  background: var(--ink); color: var(--brass-soft); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; border: 2px solid var(--brass-soft);
  box-shadow: 0 0 0 6px var(--parchment);
}
.section-deep .process-node { box-shadow: 0 0 0 6px var(--parchment-deep); }
.process-step h3 { font-size: 1.22rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.95rem; color: var(--text-muted); }
@media (max-width: 859px) {
  .process-step { display: grid; grid-template-columns: 68px 1fr; gap: 1.15rem; text-align: left; align-items: start; }
  .process-node { margin: 0; }
  .process-step h3 { margin-top: 0.35rem; }
}

/* ---------- Tabs (practice navigator) ---------- */
.tabs-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.tab-btn {
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  min-height: 48px; padding: 0.55rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.tab-btn:hover { border-color: var(--brass); color: var(--brass-deep); }
.tab-btn[aria-selected="true"] { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: panelIn 0.35s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-panel-note { text-align: center; max-width: 640px; margin: 0 auto 2rem; color: var(--text-muted); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; text-align: left; padding: 1.15rem 0.25rem; min-height: 56px;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.06rem; color: var(--ink); line-height: 1.4;
}
.accordion-trigger:hover { color: var(--brass-deep); }
.accordion-trigger .acc-icon { flex: none; width: 22px; height: 22px; color: var(--brass); transition: transform 0.3s var(--ease); }
.accordion-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.accordion-panel { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }
.accordion-panel-inner { padding: 0 0.25rem 1.35rem; color: var(--text-muted); max-width: 62em; }
.accordion-panel-inner p:last-child { margin-bottom: 0; }

/* ---------- Testimonial carousel ---------- */
.carousel { position: relative; max-width: 860px; margin: 0 auto; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.45s var(--ease); }
.carousel-slide { flex: 0 0 100%; padding: 0 0.5rem; }
.testimonial { text-align: center; padding: 0 1rem; }
.testimonial .stars { color: var(--brass-soft); font-size: 1.1rem; letter-spacing: 0.35em; margin-bottom: 1.25rem; }
.testimonial blockquote {
  margin: 0 auto 1.5rem; max-width: 40em;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; color: var(--text-on-ink);
}
.testimonial cite { font-style: normal; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-muted); }
.testimonial-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--brass-soft); margin-bottom: 1rem; }
.testimonial blockquote.clampable { font-size: clamp(1.02rem, 1.6vw, 1.15rem); }
@media (max-width: 719px) {
  .testimonial blockquote.clampable.clamped {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7;
    overflow: hidden; margin-bottom: 0.75rem;
  }
}
.testimonial-more {
  background: none; border: 0; padding: 0.5rem 0.75rem; margin: -0.25rem 0 1rem;
  color: var(--brass-soft); font-family: var(--font-sans); font-weight: 600; font-size: 0.9rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.testimonial-more:not([hidden]) { display: block; margin-inline: auto; }
.testimonial-more:hover { color: var(--text-on-ink); }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.carousel-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-on-ink);
  background: transparent; color: var(--text-on-ink); display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.carousel-arrow:hover { border-color: var(--brass-soft); color: var(--brass-soft); }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line-on-ink); }
.carousel-dot[aria-current="true"] { background: var(--brass-soft); }
@media (max-width: 719px) {
  .carousel-viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .carousel-viewport::-webkit-scrollbar { display: none; }
  .carousel-track { transition: none; }
  .carousel-slide { scroll-snap-align: center; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .form-full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem;
  color: var(--text); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(150, 118, 47, 0.18); }
.field-hint { font-size: 0.83rem; color: var(--text-muted); margin-top: 0.35rem; }
.field-error { display: none; font-size: 0.85rem; color: var(--danger); margin-top: 0.35rem; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .field-error { display: block; }
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
.form-note { font-size: 0.86rem; color: var(--text-muted); }
.form-status { display: none; padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 600; margin-top: 1rem; }
.form-status.ok { display: block; background: rgba(61, 107, 79, 0.12); color: var(--ok); border: 1px solid rgba(61, 107, 79, 0.35); }
.form-status.err { display: block; background: rgba(140, 59, 46, 0.1); color: var(--danger); border: 1px solid rgba(140, 59, 46, 0.35); }
.form-success { text-align: center; padding: 3rem 1.5rem; }
.form-success svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 1.25rem; }

/* intake panel */
.intake-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.intake-panel h2, .intake-panel h3 { margin-top: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
  border-top: 1px solid var(--line);
}
.sticky-cta.visible { transform: none; }
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.sticky-cta .cta-call { background: var(--ink); color: var(--parchment); }
.sticky-cta .cta-consult { background: var(--brass); color: #fffdf5; }
@media (min-width: 1000px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 0; }
@media (max-width: 999px) { body.has-sticky-cta { padding-bottom: 57px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band-inner { position: relative; z-index: 2; max-width: 720px; }
.cta-band .hero-actions { margin-top: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-ink-muted); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2.5rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--parchment); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--text-on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brass-soft); }
.footer-brand .brand-name { color: var(--parchment); font-size: 1.35rem; }
.footer-legal { border-top: 1px solid var(--line-on-ink); padding: 1.5rem 0 2rem; font-size: 0.8rem; line-height: 1.6; color: rgba(179, 185, 172, 0.75); }
.footer-legal p { margin-bottom: 0.5rem; color: inherit; }

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed; z-index: 260; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 460px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.4rem; display: none;
}
@media (min-width: 720px) { .consent-banner { left: auto; right: 1.5rem; bottom: 1.5rem; } }
.consent-banner.visible { display: block; }
.consent-banner p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent-actions .btn { min-height: 42px; padding: 0.45rem 1.1rem; font-size: 0.88rem; }

/* ---------- Estimator ---------- */
.estimator { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.estimator-result {
  margin-top: 1.75rem; padding: 1.75rem; background: var(--parchment-deep); border-radius: var(--radius);
  border: 1px solid var(--line); text-align: center; display: none;
}
.estimator-result.visible { display: block; }
.estimator-figure { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--ink); line-height: 1.1; }
.estimator-breakdown { margin-top: 1.25rem; text-align: left; font-size: 0.92rem; color: var(--text-muted); }
.estimator-breakdown table { width: 100%; border-collapse: collapse; }
.estimator-breakdown td { padding: 0.45rem 0.25rem; border-bottom: 1px solid var(--line); }
.estimator-breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.disclaimer-box {
  display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 1.5rem;
  background: rgba(150, 118, 47, 0.08); border: 1px solid rgba(150, 118, 47, 0.3);
  border-radius: var(--radius); padding: 1rem 1.15rem; font-size: 0.88rem; color: var(--text-muted);
}
.disclaimer-box svg { flex: none; width: 20px; height: 20px; color: var(--brass-deep); margin-top: 0.15rem; }

/* ---------- Article / prose ---------- */
.prose { max-width: 46em; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.55rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--brass); }
.prose blockquote {
  margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem; border-left: 3px solid var(--brass);
  font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft);
}
.prose .statute-ref { font-size: 0.85rem; color: var(--text-muted); }

/* resource category chip */
.chip {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brass-deep); background: rgba(150, 118, 47, 0.1); border: 1px solid rgba(150, 118, 47, 0.28);
  padding: 0.28rem 0.75rem; border-radius: 999px; margin-bottom: 0.9rem;
}

/* sidebar layout for practice pages */
.page-cols { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .page-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.side-rail { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .side-rail { position: sticky; top: 106px; } }
.rail-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.rail-card.rail-ink { background: var(--ink); border-color: var(--ink); color: var(--text-on-ink-muted); }
.rail-card.rail-ink h3 { color: var(--parchment); }
.rail-card h3 { font-size: 1.15rem; }
.rail-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.95rem; }
.rail-card ul a { text-decoration: none; }
.rail-card ul a:hover { text-decoration: underline; }
.rail-card ul a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* checklist blocks */
.doc-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; }
.doc-list li { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1.1rem; }
.doc-list .tick { flex: none; width: 20px; height: 20px; color: var(--brass); margin-top: 0.25rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.small { font-size: 0.88rem; color: var(--text-muted); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.overflow-scroll-x { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .word-reveal .word { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .sticky-cta, .site-footer, .consent-banner, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
}
