/* ==========================================================================
   AKS Law Offices — stylesheet
   Palette: ink navy / paper / brass. One serif (Newsreader) for reading,
   one grotesque (Archivo) for interface chrome.
   ========================================================================== */

:root {
  --ink:        #141E30;
  --ink-soft:   #2A3447;
  --paper:      #F7F7F5;
  --paper-pure: #FFFFFF;
  --brass:      #9A7B4F;
  --brass-lit:  #C9A978;
  --oxblood:    #7A2E2E;
  --rule:       #DCD8D0;
  --rule-dark:  #35405A;
  --muted:      #5C6577;
  --muted-dark: #9AA3B5;

  --measure: 66ch;
  --gutter: 1.25rem;
  --radius: 3px;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--brass); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1rem; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

/* ------------------------------------------------------------------ header */

.masthead {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--brass);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.6rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--brass-lit); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.nav a { text-decoration: none; color: var(--muted-dark); padding-block: 0.2rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }

/* --------------------------------------------------------------------- hero */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 9vw, 5.5rem) clamp(2.5rem, 7vw, 4rem);
}

.hero h1 { max-width: 20ch; margin-bottom: 0.5em; }

.hero .standfirst {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: #D5DAE4;
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-meta {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-dark);
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.25rem;
  max-width: 34rem;
}
.hero-meta strong { color: var(--paper); font-weight: 500; }

/* ------------------------------------------------------------------ actions */

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.2rem; }

.btn {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-block;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-call { background: var(--brass); color: #11182A; }
.btn-call:hover { background: var(--brass-lit); }
.btn-wa { background: transparent; color: var(--paper); border-color: #4A5570; }
.btn-wa:hover { border-color: var(--brass-lit); color: var(--brass-lit); }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ triage */

.triage { padding-block: clamp(3rem, 8vw, 4.75rem); }

.triage > .wrap > h2 { max-width: 24ch; }
.triage .lede { color: var(--muted); max-width: 60ch; margin-bottom: 2.5rem; }

.routes { display: grid; gap: 0; border-top: 1px solid var(--rule); }

.route {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2rem;
  padding: 1.6rem 0 1.6rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: border-left-color 0.15s ease, background-color 0.15s ease;
}
.route:hover, .route:focus-visible { border-left-color: var(--brass); background: var(--paper-pure); }

.route-said {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 28ch;
}
.route-does { color: var(--muted); font-size: 0.9875rem; max-width: 52ch; margin: 0; }

@media (min-width: 46rem) {
  .route { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: baseline; }
}

/* ----------------------------------------------------------------- sections */

.band { padding-block: clamp(3rem, 8vw, 4.75rem); }
.band-paper { background: var(--paper-pure); border-block: 1px solid var(--rule); }

.band-ink {
  background: var(--ink);
  color: var(--paper);
}
.band-ink h2 { color: var(--paper); }
.band-ink p { color: #C8CEDA; }
.band-ink a { color: var(--brass-lit); }

.cols {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 52rem) {
  .cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
  .cols-side { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 4rem; }
}

/* stages — genuinely sequential, so numbered */
.stages { counter-reset: stage; list-style: none; padding: 0; margin: 0; }
.stage {
  counter-increment: stage;
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 1.9rem;
  max-width: var(--measure);
}
.stage::before {
  content: counter(stage);
  position: absolute; left: 0; top: -0.1rem;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  font-family: var(--sans); font-size: 0.8125rem;
}
.stage h3 { margin-bottom: 0.3em; }
.stage p { margin-bottom: 0; color: var(--muted); }

/* ------------------------------------------------------------- practice pg */

.pagehead {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.5rem, 7vw, 4rem);
}
.pagehead .kicker {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--brass-lit);
  margin-bottom: 0.9rem;
}
.pagehead .kicker a { color: inherit; }
.pagehead h1 { margin-bottom: 0.35em; }
.pagehead p { color: #D5DAE4; max-width: 56ch; margin-bottom: 0; }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; }
.prose ul { padding-left: 1.15rem; max-width: var(--measure); }
.prose li { margin-bottom: 0.5em; }

.aside {
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  background: var(--paper-pure);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 1.4rem;
  align-self: start;
}
.aside h3 { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.6em; }
.aside p { margin-bottom: 0.9em; color: var(--muted); }
.aside .btn { width: 100%; text-align: center; padding-inline: 0.5rem; }

/* --------------------------------------------------------------------- faq */

.faq { margin-top: 3.5rem; }
.faq > h2 { padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); }

.faq-item { border-bottom: 1px solid var(--rule); padding-block: 1.4rem; }
.faq-item h3 { margin-bottom: 0.45em; max-width: 54ch; }
.faq-item p { color: var(--muted); margin-bottom: 0; }

/* ----------------------------------------------------------------- contact */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 46rem) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.detail { border-top: 1px solid var(--rule-dark); padding-top: 1.1rem; }
.detail dt {
  font-family: var(--sans); font-size: 0.8125rem;
  color: var(--muted-dark); margin-bottom: 0.3rem;
}
.detail dd { margin: 0; font-size: 1.0625rem; }
.detail dd a { color: var(--brass-lit); }

.map-frame {
  width: 100%; aspect-ratio: 4 / 3; border: 0;
  border-radius: var(--radius); filter: grayscale(0.25);
}

/* ---------------------------------------------------------------- articles */

.entry { border-bottom: 1px solid var(--rule); padding-block: 1.75rem; }
.entry h3 { margin-bottom: 0.3em; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.entry .when { font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); }
.entry p { color: var(--muted); margin-bottom: 0.4em; }

.empty {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.empty p { margin-inline: auto; }

/* ------------------------------------------------------------------ footer */

.footer {
  background: var(--ink);
  color: var(--muted-dark);
  font-size: 0.9375rem;
  padding-block: 3rem 2rem;
  border-top: 3px solid var(--brass);
}
.footer a { color: #C8CEDA; }
.footer h2 { font-size: 1.05rem; color: var(--paper); margin-bottom: 0.7em; }
.footer .cols { gap: 2rem; }
@media (min-width: 46rem) { .footer .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.45em; }

.disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #8792A6;
  max-width: 62ch;
}

/* ------------------------------------------------------------ sticky phone */

.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: none;
  background: var(--ink);
  border-top: 1px solid var(--rule-dark);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  gap: 0.5rem;
}
.callbar a {
  flex: 1; text-align: center; font-family: var(--sans); font-size: 0.9375rem;
  font-weight: 500; padding: 0.75rem 0.5rem; border-radius: var(--radius);
  text-decoration: none;
}
.callbar .c1 { background: var(--brass); color: #11182A; }
.callbar .c2 { background: transparent; color: var(--paper); border: 1px solid #4A5570; }

@media (max-width: 45.99rem) {
  .callbar { display: flex; }
  body { padding-bottom: 4.5rem; }
}
