/* ============================================================
   Tyler W. Brennan Law, LLC — Site Stylesheet
   ------------------------------------------------------------
   Design tokens are defined in :root. To adjust the brand,
   edit the custom properties below and the whole site updates.
   Type: Cormorant Garamond (display / headings), DM Sans (body / UI)
   ============================================================ */

:root {
  /* Color */
  --ink:        #141c2e;
  --navy:       #1e2d4a;
  --royal:      #3d5a9e;
  --royal-dark: #2f4880;
  /* Bronze on light/mist/white: darkened for ≥4.5:1 contrast (--bronze-soft stays for dark navy) */
  --bronze:     #8a6528;
  --bronze-soft:#d4b87a;
  --slate:      #4a5568;
  --slate-light:#6b7280;
  --mist:       #f5f7fb;
  --surface:    #ffffff;
  --line:       #e4e9f2;
  --line-soft:  #eef1f7;
  --white:      #ffffff;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --section-pad: clamp(4rem, 9vw, 7rem);
  --content-width: 74rem;
  --text-width: 44rem;
  --radius-pill: 999px;
  --radius-card: 16px;
  --radius-sm: 10px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(20, 28, 46, 0.04);
  --shadow-sm: 0 4px 16px rgba(20, 28, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 28, 46, 0.08);
  --shadow-lg: 0 24px 48px rgba(20, 28, 46, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 220ms;
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(61, 90, 158, 0.18);
  color: var(--ink);
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.8vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 500; }

p { margin: 0 0 1.15rem; }

a {
  color: var(--royal);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}
a:hover { color: var(--royal-dark); }

ul { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

/* Two-tone focus ring: dark inner + light outer — ≥3:1 on navy and white */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--white);
  border-radius: 4px;
}

/* Skip to content (visually hidden until focused) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--white);
  color: var(--white);
}

/* Eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.85rem;
}

/* Signature divider: hairline with centered fulcrum diamond */
.balance-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  position: relative;
  max-width: 14rem;
  margin: 2.75rem auto;
  overflow: visible;
}
.balance-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--bronze);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Layout helpers ---------- */

.container {
  width: min(var(--content-width), 100% - clamp(1.5rem, 5vw, 3rem));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }
.section--mist {
  background: var(--mist);
  border-block: 1px solid var(--line-soft);
}

.text-block {
  max-width: var(--text-width);
  margin-inline: auto;
}

.center { text-align: center; }

.section-actions {
  margin-top: 2.75rem;
}

.section-actions--tight {
  margin-top: 1.25rem;
}

.text-block--spaced {
  margin-top: 2.5rem;
}

.text-block--spaced-sm {
  margin-top: 1.5rem;
}

.heading-spaced {
  margin-top: 2.5rem;
}

.disclaimer-note {
  margin-top: 2rem;
  color: var(--slate-light);
  font-size: 0.95rem;
}

.pa-aside .btn--block {
  display: flex;
  width: 100%;
}

/* Employment law guide pages */
.content-disclaimer,
.content-closing {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-light);
  border-left: 3px solid var(--bronze-soft);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}
.content-closing { margin-top: 2.5rem; margin-bottom: 0; }

.pa-article > h2,
.pa-article h3,
article.text-block > h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.pa-article > h2:first-of-type,
.pa-article h3:first-of-type,
article.text-block > h2:first-of-type { margin-top: 0; }
.pa-article ol,
.pa-article ul { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.pa-article li { margin-bottom: 0.65rem; color: var(--slate); line-height: 1.7; }
.pa-article li p { margin: 0; }

.related-topics {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.related-topics h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.85rem;
}
.related-topics ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.related-topics a {
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-label,
.aside-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-light);
  pointer-events: none;
}
.dropdown-label {
  padding: 0.65rem 1rem 0.25rem;
  color: rgba(28, 39, 64, 0.45);
}
.dropdown-label:first-child { padding-top: 0.35rem; }
@media (max-width: 1024px) {
  .dropdown-label {
    padding: 0.85rem 0 0.25rem;
    color: rgba(255, 255, 255, 0.45);
  }
}
.aside-label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  color: var(--slate-light);
}
.aside-label:first-child { margin-top: 0; }

.footer-practice-list {
  column-count: 2;
  column-gap: 1.5rem;
}
@media (max-width: 760px) {
  .footer-practice-list { column-count: 1; }
}

.promise-heading {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn--solid {
  background: var(--royal);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(61, 90, 158, 0.25);
}
.btn--solid:hover {
  background: var(--royal-dark);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(61, 90, 158, 0.3);
}

.btn--ghost {
  background: var(--white);
  color: var(--royal);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--royal-dark);
}

.btn--outline {
  background: transparent;
  color: var(--royal);
  border-color: var(--line);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 28, 46, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    border-color 300ms var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(20, 28, 46, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-width: 0;
}
.brand:hover { color: var(--white); opacity: 0.88; }
@media (max-width: 400px) {
  .brand {
    font-size: 0.9rem;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  cursor: pointer;
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--bronze-soft);
}

/* Dropdown (Practice Areas) */
.has-dropdown { position: relative; }

.dropdown-toggle .caret {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.65em;
  opacity: 0.7;
  transition: transform var(--duration) var(--ease-out);
}
.has-dropdown.is-open .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 16rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    visibility 180ms;
}
/* Invisible hit-area so the cursor can move from the label into the menu without dropping :hover */
.dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.85rem;
}
.has-dropdown.is-open .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
@media (hover: hover) {
  .has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
/* While scrolling, force-hide without a fade so hover under a moving page does not flicker */
.has-dropdown.is-scroll-closed .dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transition: none;
}

.dropdown a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  transition: background-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}
.dropdown a:hover { background: var(--mist); color: var(--royal); }

.nav-cta { margin-left: 0.25rem; }
.nav-cta .btn {
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.8rem;
}

/* Base: hidden on desktop; shown ≤1024px in media query below — order matters */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.5rem 1.5rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.75rem;
    text-align: left;
    padding: 0.65rem 0;
  }

  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 0.75rem;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .dropdown::before { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a {
    color: rgba(255, 255, 255, 0.82);
    padding: 0.65rem 0;
    border-radius: 0;
  }
  .dropdown a:hover { background: none; color: var(--white); }

  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;

  background:
    linear-gradient(180deg, transparent 62%, rgba(17, 23, 40, 0.75) 88%, var(--ink) 100%),
    linear-gradient(180deg, rgba(20, 28, 46, 0.72) 0%, rgba(30, 45, 74, 0.55) 50%, rgba(20, 28, 46, 0.65) 100%),
    url("../images/minneapolis-skyline2.jpg") center 42% / cover no-repeat,
    radial-gradient(ellipse 80% 60% at 50% 0%, #2a3f6e 0%, #1e2d4a 50%, #141c2e 100%);
  margin-top: -4.25rem;
  padding-top: 4.25rem;
}

/* Subtle grain texture overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
}

.hero .tagline {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.5rem;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(61, 90, 158, 0.18) 0%, transparent 60%),
    linear-gradient(165deg, var(--ink) 0%, var(--navy) 65%, #263a5c 100%);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}
.page-hero .eyebrow { color: var(--bronze-soft); }
.page-hero .lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
  margin: 0 auto;
}

/* ---------- Case evaluation page (compact rhythm) ---------- */

.eval-page .page-hero--compact {
  padding-block: clamp(2.7rem, 6vw, 3.9rem);
  padding-bottom: clamp(1.5rem, 3.6vw, 2.4rem);
}

.eval-page .section--eval-steps {
  padding-top: clamp(1.2rem, 3vw, 2.1rem);
  padding-bottom: clamp(2.75rem, 4.2vw, 3.65rem);
}

.eval-page .section--eval-steps .center h2 {
  margin-bottom: 0;
}

.eval-page .section--eval-steps .card-grid {
  margin-top: 1.5rem;
}

.eval-page .section--eval-steps .section-actions {
  margin-top: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0;
}

.eval-page .section--eval-action {
  padding-top: clamp(0.9rem, 2.4vw, 1.5rem);
  padding-bottom: clamp(2.1rem, 4.8vw, 3.3rem);
}

.eval-page .section--eval-action .intake-alt {
  margin-top: 0;
}

/* ---------- Practice area cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: 2.75rem;
}
.card-grid--quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .card-grid--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .card-grid--quad { grid-template-columns: 1fr; }
}

.pa-card--has-inner-links {
  position: relative;
}
.pa-card--has-inner-links .pa-card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.pa-card--has-inner-links p a {
  position: relative;
  z-index: 2;
}

.pa-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  color: var(--slate);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}
.pa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(61, 90, 158, 0.2);
  color: var(--slate);
}
.pa-card h2,
.pa-card h3 {
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.pa-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--slate-light);
}
.pa-card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--royal);
  transition: color var(--duration) var(--ease-out);
}
.pa-card:hover .more { color: var(--bronze); }

/* Staggered card reveals */
.card-grid .reveal:nth-child(2),
.resource-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.card-grid .reveal:nth-child(3),
.resource-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.card-grid .reveal:nth-child(4),
.resource-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.card-grid .reveal:nth-child(5),
.resource-grid .reveal:nth-child(5) { transition-delay: 240ms; }
.card-grid .reveal:nth-child(6),
.resource-grid .reveal:nth-child(6) { transition-delay: 300ms; }
.card-grid .reveal:nth-child(7) { transition-delay: 360ms; }
.card-grid .reveal:nth-child(8) { transition-delay: 420ms; }

/* ---------- About split (photo + text) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--mist), #e8edf5);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame--contain {
  aspect-ratio: 2 / 3;
  background: #f4f6f9;
  padding: 0.65rem;
}
.portrait-frame--contain img {
  object-fit: contain;
  object-position: center top;
}
.portrait-frame .placeholder-note {
  position: absolute;
  inset: auto 1rem 1rem;
  font-size: 0.78rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
}

/* ---------- Stat band ---------- */

.stat-band {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
}
.stat-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(184, 146, 74, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.stat-band .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
  position: relative;
}
.stat-band .stats > div {
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-band .stats > div:last-child { border-right: none; }

@media (max-width: 640px) {
  .stat-band .stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stat-band .stats > div {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
  }
  .stat-band .stats > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.stat-band .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--white);
  display: block;
  letter-spacing: -0.02em;
}
.stat-band .label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.35rem;
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(61, 90, 158, 0.15) 0%, transparent 60%),
    linear-gradient(165deg, var(--ink), var(--navy));
  color: var(--white);
  text-align: center;
}
.cta-band .eyebrow { color: var(--bronze-soft); }
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.7;
}
.cta-band .contact-line {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}
.cta-band .contact-line a {
  color: var(--white);
  border-bottom: 1px solid var(--bronze-soft);
  transition: border-color var(--duration) var(--ease-out);
}
.cta-band .contact-line a:hover { border-color: var(--white); }

/* ---------- Practice area interior layout ---------- */

.pa-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) {
  .pa-layout { grid-template-columns: 1fr; }
}

.pa-aside {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-xs);
}
.pa-aside h2 {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.pa-aside ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.pa-aside li { border-bottom: 1px solid var(--line-soft); margin: 0; }
.pa-aside li:last-child { border-bottom: none; }
.pa-aside a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--duration) var(--ease-out);
}
.pa-aside a:hover,
.pa-aside a[aria-current="page"] { color: var(--royal); }

/* ---------- Resources ---------- */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.resource-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(61, 90, 158, 0.15);
}
.resource-card .date {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  font-family: var(--font-body);
  font-weight: 600;
}
.resource-card h2,
.resource-card h3 {
  margin-top: 0.6rem;
  font-size: 1.05rem;
  color: var(--ink);
}
.resource-card p {
  font-size: 0.94rem;
  margin-bottom: 0;
  color: var(--slate-light);
  line-height: 1.6;
}

details.faq {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}
details.faq summary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--duration) var(--ease-out);
}
details.faq summary:hover { color: var(--royal); }
details.faq summary::after {
  content: "+";
  color: var(--bronze);
  font-size: 1.2rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out);
}
details.faq[open] summary::after {
  content: "\2013";
}
details.faq p {
  margin: 0.85rem 0 0;
  color: var(--slate-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: clamp(2.5rem, 5vw, 3rem) 0 1.75rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.site-footer .footer-heading {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer .footer-practice-list li { margin-bottom: 0.4rem; }
.footer-grid p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  max-width: 22rem;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--duration) var(--ease-out);
}
.site-footer a:hover { color: var(--white); }

.site-footer .disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.35rem;
  width: 100%;
  max-width: none;
}
.site-footer .disclaimer p {
  margin: 0 0 0.75rem;
  max-width: none;
  font-size: 0.74rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.38);
}
.site-footer .disclaimer p:last-child {
  margin-bottom: 0;
  margin-top: 0.85rem;
  font-size: 0.72rem;
}

/* ---------- Scroll reveal ---------- */
/* Visible by default so above-the-fold content never waits on JS.
   html.reveal-anim is added only after in-view elements are marked visible. */
.reveal {
  opacity: 1;
  transform: none;
}
html.reveal-anim .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}
html.reveal-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.reveal-anim .reveal,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover, .pa-card:hover { transform: none; }
  .card-grid .reveal,
  .resource-grid .reveal { transition-delay: 0ms !important; }
}

/* ============================================================
   Homepage — hero typography & sections
   ============================================================ */

.hero .kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.8vw, 1.65rem);
  color: var(--bronze-soft);
  margin: 0 0 1.65rem;
  letter-spacing: 0.01em;
}

.display-caps {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 480px) {
  h1,
  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    letter-spacing: 0;
  }
  .display-caps {
    letter-spacing: 0.04em;
  }
}

.hero .tagline--serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

/* Promise list */
.promise-list {
  list-style: none;
  padding: 0;
  max-width: var(--text-width);
  margin: 1.75rem auto 0;
}
.promise-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
  color: var(--slate);
  line-height: 1.65;
}
.promise-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--bronze);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ---------- Reviews / testimonials ---------- */

.reviews-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 2.75rem;
}
@media (max-width: 860px) {
  .reviews-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.review-summary { text-align: center; }
.review-summary .excellent {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: block;
}
.review-summary .count {
  font-size: 0.85rem;
  color: var(--slate-light);
  display: block;
  margin-top: 0.4rem;
}

.stars {
  color: var(--bronze);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  display: inline-block;
  margin-top: 0.4rem;
}

.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(22rem, 85%);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  align-items: stretch;
}
.review-track::-webkit-scrollbar { height: 4px; }
.review-track::-webkit-scrollbar-track { background: transparent; }
.review-track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 2px;
}

.review-card {
  display: flex;
  flex-direction: column;
  height: 19.5rem;
  background: var(--surface);
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  scroll-snap-align: start;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease-out);
}
.review-card:hover { box-shadow: var(--shadow-sm); }

.review-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.review-card .who {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.review-card .review-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--royal);
  margin: 0.75rem 0 0;
}
.review-preview {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0.5rem 0 0;
  color: var(--slate-light);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
  flex: 1;
}

.review-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  margin-top: 0.85rem;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--royal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--duration) var(--ease-out);
}
.review-more:hover { color: var(--royal-dark); }
.review-more[hidden] { display: none; }

.review-disclaimer {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin: 1rem 0 0;
  max-width: 36rem;
  margin-inline: auto;
}

/* Review modal */
.review-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.review-modal[hidden] { display: none; }

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 46, 0.58);
  backdrop-filter: blur(4px);
}

.review-modal__dialog {
  position: relative;
  width: min(100%, 34rem);
  max-height: min(85vh, 40rem);
  overflow-y: auto;
  background: var(--surface);
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.75rem 1.75rem;
}

.review-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--mist);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-out);
}
.review-modal__close:hover { background: var(--line); }

.review-modal__dialog .who {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding-right: 2rem;
}
.review-modal__dialog .review-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--royal);
  margin: 0.75rem 0 0;
}
.review-modal__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate-light);
  margin-top: 0.75rem;
}
.review-modal__text p {
  margin: 0;
}
.review-modal__text p + p {
  margin-top: 0.85rem;
}

body.is-review-modal-open {
  overflow: hidden;
}

/* ---------- Cross-site band (The Unemployment Advocate) ---------- */

.external-band {
  background:
    radial-gradient(ellipse 60% 80% at 70% 30%, rgba(184, 146, 74, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #2a2340 0%, var(--navy) 55%, var(--royal) 100%);
  color: var(--white);
  text-align: center;
}
.external-band h2 { color: var(--white); }
.external-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.7;
}
.external-band .eyebrow { color: var(--bronze-soft); }

/* ---------- Duo cards (about / schedule) ---------- */

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.duo-grid--compact .duo-card .photo-frame {
  width: 50%;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
@media (max-width: 760px) {
  .duo-grid { grid-template-columns: 1fr; }
  .duo-grid--compact .duo-card .photo-frame {
    width: min(50%, 11rem);
  }
}

.duo-card { text-align: center; }
.duo-card .photo-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(145deg, var(--mist), #e8edf5);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.duo-card .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.duo-card .photo-frame--portrait {
  aspect-ratio: 2 / 3;
  background: #f4f6f9;
}
.duo-card .photo-frame--portrait img {
  object-fit: contain;
  object-position: center top;
}
.duo-card .photo-frame--evaluation {
  aspect-ratio: 2 / 3;
}
.duo-card .photo-frame--evaluation img {
  object-fit: cover;
  object-position: center 42%;
}
.duo-card .photo-frame .placeholder-note {
  position: absolute;
  inset: auto 1rem 1rem;
  font-size: 0.78rem;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow-xs);
}
.duo-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
}
.duo-card p {
  max-width: 24rem;
  margin-inline: auto;
  color: var(--slate-light);
  line-height: 1.65;
}

/* ---------- Footer social icons ---------- */

.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition:
    background-color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}
.social-row a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.social-row svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Inquiry form ---------- */

.inquiry-form-wrap {
  max-width: 40rem;
  margin-inline: auto;
}

.inquiry-form .form-row {
  margin-bottom: 1.35rem;
}

.inquiry-form label,
.inquiry-form legend {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 0.45rem;
}

.inquiry-form legend {
  padding: 0;
  max-width: 100%;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.inquiry-form .form-fieldset {
  border: none;
  margin: 0 0 1.35rem;
  padding: 0;
  min-width: 0;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  min-height: 2.75rem;
  transition: border-color var(--duration) var(--ease-out);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus,
.inquiry-form select:focus {
  border-color: var(--royal);
}
.inquiry-form input:focus-visible,
.inquiry-form textarea:focus-visible,
.inquiry-form select:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--white);
  border-color: var(--royal);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.inquiry-form input.is-invalid,
.inquiry-form textarea.is-invalid,
.inquiry-form select.is-invalid {
  border-color: #b42318;
}

.inquiry-form .field-error {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  color: #b42318;
  line-height: 1.4;
}

.inquiry-form .hidden-field {
  display: none;
}

.inquiry-form .radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.35rem;
}

.inquiry-form .radio-option,
.inquiry-form .checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--slate);
  cursor: pointer;
  line-height: 1.45;
}

.inquiry-form .radio-option input,
.inquiry-form .checkbox-option input {
  width: 1.5rem;
  height: 1.5rem;
  min-height: 1.5rem;
  min-width: 1.5rem;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--royal);
}

.inquiry-form .form-row--checkbox {
  margin-top: 0.5rem;
}

.inquiry-form .form-disclaimer {
  margin: 1.75rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--bronze);
  background: var(--mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.inquiry-form .form-disclaimer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--slate);
}

.thank-you-content {
  text-align: center;
}

.thank-you-content p:first-child {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate);
}

.form-note {
  font-size: 0.9rem;
  color: var(--slate-light);
  margin-bottom: 1rem;
}

.intake-alt {
  margin-top: 1.5rem;
  color: var(--slate-light);
}
