/* ==========================================================================
   Stuart Tax Group, Inc. — design system
   Static, framework-free. Mobile-first. Positioned around Austin small
   businesses. Two-font system: Source Serif 4 (headings) + Manrope (UI/body).

   Table of contents
     1. Tokens (color, type, space)
     2. Base / reset
     3. Layout utilities (wrap, section, grids)
     4. Typography helpers (eyebrow, section head, lead)
     5. Buttons
     6. Header / navigation
     7. Brand (owl + wordmark placeholder)
     8. Hero + trust bar
     9. Cards, pillars, industries, steps, values, team
    10. Forms
    11. Contact / portal
    12. Footer
    13. Utility / page components (CTA band, 404)
    14. Accessibility + motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Brand color system (Colour Scheme 1A, lightened) */
  --olive:        #344326;   /* deep olive — primary buttons, accents */
  --olive-700:    #2a3720;   /* olive hover */
  --olive-ink:    #202a1d;   /* darkest — headings */
  --ivory:        #f8f5ef;   /* page background */
  --card:         #fffefb;   /* card / near-white surface */
  --tan:          #d7c3a5;   /* muted tan accent */
  --tan-section:  #eee5d8;   /* light tan section background */
  --brown:        #665134;   /* brown accent / links */
  --muted:        #5f625b;   /* muted body text */
  --border:       #ddd7cc;   /* hairline borders (decorative, cards) */
  --border-input: #82877a;   /* form-control borders — ≥3:1 vs --card */

  /* Text-on-dark */
  --on-olive:     #f4efe4;
  --on-olive-mut: #cabfa6;

  /* Typography */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (8px base) */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px;
  --s-6: 48px; --s-7: 56px; --s-8: 64px; --s-9: 80px; --s-10: 96px;

  /* Structure */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(32, 42, 29, .04), 0 6px 18px rgba(32, 42, 29, .05);
  --transition: .18s ease;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::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: 17px;
  line-height: 1.65;
  color: var(--olive-ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brown); text-underline-offset: 2px; }
a:hover { color: var(--olive); }

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--olive-ink); line-height: 1.15; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -.01em; }
h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 3.7vw, 3.5rem); }        /* interior default */
h2 { font-size: clamp(1.75rem, 2.8vw, 2.6rem); line-height: 1.2; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
strong { font-weight: 700; }

/* Anchored targets clear the sticky header (header ≈72px) */
[id] { scroll-margin-top: 96px; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 32px); }
.section { padding-block: clamp(40px, 7vw, 96px); }
.section--tan   { background: var(--tan-section); }
.section--olive { background: var(--olive); color: var(--on-olive); }
.section--olive h1, .section--olive h2, .section--olive h3 { color: #fff; }
.section--flush-top { padding-top: 0; }
.section--snug { padding-top: clamp(32px, 5vw, 56px); }

.grid { display: grid; gap: var(--s-3); }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: 1fr; }
.cols-4 { grid-template-columns: 1fr; }
.measure { max-width: 68ch; }

/* 4. TYPOGRAPHY HELPERS ---------------------------------------------------- */
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-family: var(--font-sans); font-weight: 700;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brown);
}
.section--olive .eyebrow { color: var(--tan); }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { margin-bottom: .35em; }
.section-title--sm { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section--olive .lead { color: var(--on-olive-mut); }
.section-head--center .lead { margin-inline: auto; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .95rem; color: var(--olive);
  text-decoration: none;
}
.text-link .ico { width: 18px; height: 18px; transition: transform var(--transition); }
.text-link:hover { color: var(--olive-700); text-decoration: underline; }
.text-link:hover .ico { transform: translateX(3px); }

/* 5. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem; line-height: 1.25;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  white-space: normal; text-align: center; min-width: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: .95rem; }
.btn--lg { min-height: 52px; padding: 15px 28px; font-size: 1.05rem; }
.btn--full { width: 100%; }

.btn--primary { background: var(--olive); color: var(--on-olive); border-color: var(--olive); }
.btn--primary:hover { background: var(--olive-700); border-color: var(--olive-700); color: #fff; transform: translateY(-1px); }

.btn--secondary { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn--secondary:hover { background: rgba(52, 67, 38, .07); color: var(--olive); transform: translateY(-1px); }

/* On olive sections the primary flips to ivory, secondary gets a light border */
.section--olive .btn--primary,
.footer .btn--primary { background: var(--ivory); color: var(--olive); border-color: var(--ivory); }
.section--olive .btn--primary:hover,
.footer .btn--primary:hover { background: #fff; border-color: #fff; }
.section--olive .btn--secondary,
.footer .btn--secondary { color: var(--on-olive); border-color: rgba(244, 239, 228, .5); }
.section--olive .btn--secondary:hover,
.footer .btn--secondary:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.btn .ico { width: 18px; height: 18px; }

/* 6. HEADER / NAV ---------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 245, 239, .92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: var(--s-3); min-height: 72px; }
.nav__menu { display: flex; align-items: center; gap: var(--s-3); flex: 1 1 auto; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--olive-ink); font-weight: 600; font-size: .97rem; text-decoration: none;
  white-space: nowrap;
}
.nav__links a:hover { background: rgba(52, 67, 38, .07); color: var(--olive); }
.nav__links a[aria-current="page"] { color: var(--olive); }
.nav__links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--brown); margin-top: 4px;
}
.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav__actions .btn { white-space: nowrap; }
.nav__login { gap: 6px; }

/* Compact language control */
.lang-toggle {
  display: inline-flex; border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: var(--card);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: .8rem; color: var(--muted);
  padding: 8px 12px; line-height: 1; min-height: 36px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--olive); color: var(--on-olive); }

/* Hamburger */
.nav__toggle {
  display: none; width: 46px; height: 44px; padding: 0; margin-left: auto;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--olive-ink);
  position: relative; transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle-bars::before { position: absolute; top: -6px; }
.nav__toggle-bars::after  { position: absolute; top: 6px; }
.nav[data-open="true"] .nav__toggle-bars { background: transparent; }
.nav[data-open="true"] .nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav[data-open="true"] .nav__toggle-bars::after  { top: 0; transform: rotate(-45deg); }

/* 7. BRAND ----------------------------------------------------------------- */
/* Final logo assets live in assets/img/logo/ (web-optimized 1A set), linked
   via <img> with intrinsic width/height attributes; CSS scales by height so
   the SVG's 215:71 aspect ratio is always preserved. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 48px; width: auto; }
.brand-logo--footer { height: 60px; }
/* Small owl mark (hero panel) — official mark is portrait 53:76 */
.panel-mark { display: block; height: 30px; width: auto; flex: 0 0 auto; }
/* Owl watermark inside team-photo placeholders */
.member__mark { height: 72px; width: auto; opacity: .55; }

/* 8. HERO + TRUST BAR ------------------------------------------------------ */
.hero {
  background:
    radial-gradient(900px 460px at 88% -12%, rgba(215, 195, 165, .30), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--tan-section) 100%);
}
.hero__inner { display: grid; gap: var(--s-6); align-items: center; padding-block: clamp(44px, 6vw, 80px); }
.hero__inner > * { min-width: 0; }
.hero__title { font-size: clamp(2.4rem, 4.4vw, 4rem); margin-bottom: .35em; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; margin-bottom: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-3); }

/* Branded "How we help" panel (not stat boxes) */
.hero__panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow);
}
.hero__panel-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-3);
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brown);
}
.panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.panel-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--olive-ink); }
.panel-list .ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--olive); margin-top: 1px; }
.hero__panel-note {
  margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--border);
  font-size: .9rem; color: var(--muted); margin-bottom: 0;
}

/* Trust bar */
.trust-bar { border-block: 1px solid var(--border); background: var(--ivory); }
.trust-bar__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px; padding-block: var(--s-4);
}
.trust-bar__item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--olive-ink); }
.trust-bar__item .ico { width: 22px; height: 22px; color: var(--olive); flex: 0 0 auto; }

/* 9. CARDS / PILLARS / INDUSTRIES / STEPS / VALUES / TEAM ------------------ */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}

/* Service pillars — interactive cards (whole card is a link) */
.pillar {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 30px); text-decoration: none; color: var(--olive-ink);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.pillar:hover { transform: translateY(-3px); border-color: var(--tan); box-shadow: var(--shadow); color: var(--olive-ink); }
.pillar__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: var(--s-2);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tan-section); color: var(--olive);
}
.pillar__icon .ico { width: 26px; height: 26px; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: .98rem; }
.pillar .text-link { margin-top: auto; padding-top: 12px; }

/* Individual-tax secondary band */
.subservice {
  display: grid; gap: var(--s-4); align-items: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
}
.subservice > * { min-width: 0; }
.subservice__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.subservice__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tan-section); color: var(--olive);
}
.subservice__icon .ico { width: 30px; height: 30px; }

/* Industries — informational cards (no hover lift) */
.industry {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 28px); height: 100%;
}
.industry__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.industry__icon { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; background: var(--tan-section); color: var(--olive); }
.industry__icon .ico { width: 22px; height: 22px; }
.industry__title { font-size: 1.08rem; margin: 0; }
.industry p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Subheading between the individuals card and the industry grid (home) */
.serve-sub { font-size: 1.25rem; margin: var(--s-6) 0 var(--s-3); }

/* Why — two-column list with dividers, not identical cards */
.why-grid { display: grid; gap: 0; grid-template-columns: 1fr; }
.why-item { display: flex; gap: 16px; padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.why-item:first-child { border-top: 0; }
.why-item .ico { width: 26px; height: 26px; color: var(--olive); flex: 0 0 auto; margin-top: 2px; }
.why-item h3 { margin-bottom: 4px; }
.why-item p { color: var(--muted); margin: 0; }

/* Steps */
.steps { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.step__num {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--olive); color: var(--on-olive); font-weight: 800; font-size: 1.1rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* Values (About) — alternating simple rows */
.values-grid { gap: 0 var(--s-8); }
.value-row { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start;
  padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.value-row:first-child { border-top: 0; }
.value-row__icon { width: 40px; height: 40px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; background: var(--tan-section); color: var(--olive); }
.value-row__icon .ico { width: 22px; height: 22px; }
.value-row h3 { margin-bottom: 4px; }
.value-row p { color: var(--muted); margin: 0; }

/* Team — responsive photo placeholders (TODO: real photography) */
.team { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.member { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.member__photo {
  aspect-ratio: 4 / 3; position: relative;
  background: linear-gradient(150deg, var(--tan-section), var(--tan));
  display: flex; align-items: center; justify-content: center; color: var(--olive);
}
.member__photo::after {
  content: attr(data-initials);
  position: absolute; right: 12px; bottom: 8px;
  font-weight: 800; font-size: .8rem; letter-spacing: .1em; color: var(--brown); opacity: .8;
}
.member__body { padding: clamp(20px, 2.4vw, 26px); }
.member__name { margin-bottom: 2px; }
.member__role { font-weight: 700; font-size: .9rem; color: var(--brown); margin-bottom: 10px; }
.member p { color: var(--muted); margin: 0; }

/* Editorial two-column (About story) */
.editorial { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
.editorial__aside { align-self: start; }
.stat-line { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--olive); line-height: 1.2; margin: 0 0 8px; }
.stat-line span { display: block; font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* Anchor chip nav (Services) */
.chip-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-3); }
.chip-nav a {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: var(--card); border: 1px solid var(--border); color: var(--olive); text-decoration: none;
}
.chip-nav a:hover { border-color: var(--olive); background: rgba(52,67,38,.05); }

/* Service detail blocks (Services page) */
.svc + .svc { margin-top: var(--s-8); }
.svc__grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: start; }
.svc__grid > * { min-width: 0; }
.svc__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.svc__icon { width: 52px; height: 52px; border-radius: 13px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; background: var(--tan-section); color: var(--olive); }
.svc__icon .ico { width: 28px; height: 28px; }
.svc__who { color: var(--muted); }
.svc__subhead { font-size: .95rem; margin-top: var(--s-3); }
.svc__cta { margin-top: var(--s-3); }
.svc__panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px,2.6vw,30px); }
.svc__panel h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brown); margin-bottom: 14px; }
.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; color: var(--olive-ink); }
.checklist .ico { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--olive); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list li { font-size: .88rem; font-weight: 600; color: var(--brown); background: var(--tan-section); border-radius: 999px; padding: 6px 12px; }
.note {
  background: var(--tan-section); border: 1px solid var(--border); border-left: 4px solid var(--brown);
  border-radius: var(--radius-sm); padding: 18px 20px; font-size: .96rem; color: var(--muted);
}
.note strong { color: var(--olive-ink); }
.note--spaced { margin-top: var(--s-3); }

/* Page hero (interior) */
.page-hero { background: linear-gradient(180deg, var(--ivory), var(--tan-section)); }
.page-hero__inner { padding-block: clamp(40px, 5vw, 72px); max-width: 760px; }

/* 10. FORMS ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s-3); }
.form__row { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.form__fieldset { border: 0; padding: 0; margin: 0; }
.form__legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--olive-ink); }
.field .opt { font-weight: 500; color: var(--muted); }
.field .req { color: #a3341f; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--olive-ink); background: var(--card);
  border: 1px solid var(--border-input); border-radius: var(--radius-sm);
  padding: 13px 14px; width: 100%; min-height: 50px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--olive); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #a3341f; box-shadow: 0 0 0 2px rgba(163, 52, 31, .25);
}
.field__error { font-size: .85rem; color: #8f2c1a; min-height: 1px; }
.form__hint { font-size: .88rem; color: var(--muted); }
.form__status { font-weight: 600; border-radius: var(--radius-sm); padding: 0; }
.form__status[data-state="error"]   { color: #8f2c1a; }
.form__status[data-state="working"] { color: var(--olive); }
.form__status[data-state="ok"]      { color: var(--olive); }
.form__status[data-state="info"]    { color: var(--olive-ink); }
.form__status:not(:empty) { padding: 12px 14px; background: var(--tan-section); border: 1px solid var(--border); }
.form__status a { color: var(--brown); font-weight: 700; }

/* Honeypot — hidden from everyone (aria-hidden + tabindex=-1 in markup) */
.hp-field {
  position: absolute !important; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Segmented radio (new vs existing client) */
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segment label {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 12px; min-height: 50px; border: 1px solid var(--border-input); border-radius: var(--radius-sm);
  background: var(--card); font-weight: 600; cursor: pointer;
}
.segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segment input:checked + label { border-color: var(--olive); background: rgba(52,67,38,.07); color: var(--olive); }
.segment input:focus-visible + label { outline: 3px solid var(--olive); outline-offset: 2px; }

/* 11. CONTACT / PORTAL ----------------------------------------------------- */
.contact-grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-side__title { font-size: 1.3rem; margin-top: var(--s-5); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { width: 22px; height: 22px; color: var(--olive); flex: 0 0 auto; margin-top: 3px; }
.info-list .idt { font-weight: 700; color: var(--olive-ink); margin: 0 0 2px; }
.info-list .idd { margin: 0; color: var(--muted); }
.info-list .idd a { color: var(--brown); }

.portal-card { background: var(--olive); color: var(--on-olive); border-radius: var(--radius-lg); padding: clamp(24px,3vw,32px); }
.portal-card .eyebrow { color: var(--tan); }
.portal-card h3 { color: #fff; display: flex; align-items: center; gap: 10px; }
.portal-card h3 .ico { width: 24px; height: 24px; color: var(--tan); }
.portal-card p { color: var(--on-olive-mut); }
.portal-card .btn { margin-top: 6px; }
.portal-card .fineprint { font-size: .85rem; color: var(--on-olive-mut); margin-top: 14px; margin-bottom: 0; }

.map-embed { border: 0; width: 100%; height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--tan-section); }

/* 12. FOOTER --------------------------------------------------------------- */
.footer { background: var(--olive); color: var(--on-olive-mut); padding-block: var(--s-8) var(--s-5); }
.footer a { color: var(--on-olive); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
.footer__brand p { max-width: 34ch; font-size: .95rem; }
.footer__brandlink { margin-bottom: 16px; }
.footer__h {
  color: #fff; font-family: var(--font-sans); font-weight: 700;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; font-size: .96rem; }
.footer__disclaimer { font-size: .84rem; color: var(--on-olive-mut); max-width: 70ch; margin-top: var(--s-4); }
.footer__bottom {
  margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid rgba(244,239,228,.16);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .85rem; color: var(--on-olive-mut);
}

/* Icon defaults */
.ico { width: 24px; height: 24px; flex-shrink: 0; }
.ico--ext { width: 13px; height: 13px; margin-left: 5px; display: inline-block; vertical-align: baseline; flex-shrink: 0; }

/* 13. UTILITY / PAGE COMPONENTS -------------------------------------------- */
/* Centered CTA band (final sections) */
.cta-band { max-width: 720px; margin-inline: auto; text-align: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--s-3); }

/* 404 */
.nf { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(56px, 10vw, 120px); }
.nf__code { font-family: var(--font-serif); font-size: clamp(4rem, 9vw, 6.5rem); color: var(--tan); line-height: 1; margin-bottom: 8px; }
.nf .cta-band__actions { justify-content: center; }

/* Privacy / legal prose */
.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-sans); font-size: 1.2rem; font-weight: 700; margin-top: var(--s-5); }
.prose p { color: var(--muted); }

/* Resource Center ---------------------------------------------------------- */
/* Security reminder reuses .note with an olive accent */
.note--secure { border-left-color: var(--olive); }

/* Resource rows (forms + quick links) — definition-list style, not a card grid */
.res-card { padding: clamp(6px, 1.4vw, 14px) clamp(20px, 3vw, 30px); }
.res-list { list-style: none; margin: 0; padding: 0; }
.res-item { padding: var(--s-3) 0; border-top: 1px solid var(--border); display: grid; gap: 6px; }
.res-item:first-child { border-top: 0; }
.res-item__title { font-size: 1.05rem; margin: 0; }
.res-item__desc { color: var(--muted); margin: 0; font-size: .97rem; }
.res-item__who { font-size: .9rem; color: var(--ink); margin: 0; }
.res-item__who strong { color: var(--brown); }
.res-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .92rem; color: var(--olive); text-decoration: none; margin-top: 2px; }
.res-link:hover { text-decoration: underline; color: var(--olive-700); }

/* "Do not email" list uses an X mark in a warning tone */
.checklist--x li { padding-left: 28px; }
.checklist--x .ico { color: #8f2c1a; top: 2px; }

/* Native FAQ / Important-dates accordions (no JavaScript) */
.faq { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.faq details { border-top: 1px solid var(--border); }
.faq details:first-child { border-top: 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px; min-height: 44px;
  font-weight: 700; color: var(--olive-ink); font-size: 1.02rem; line-height: 1.35;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: var(--olive);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/20px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/20px no-repeat;
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:focus-visible { outline: 3px solid var(--olive); outline-offset: -3px; }
.faq__body { padding: 0 20px 18px; color: var(--muted); }
.faq__body p { margin: 0 0 10px; }
.faq__body p:last-child { margin-bottom: 0; }
.faq__source a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--brown); text-decoration: none; font-size: .9rem; }
.faq__source a:hover { text-decoration: underline; }

/* Last-reviewed label */
.reviewed { font-size: .88rem; color: var(--muted); margin-top: var(--s-3); }
.reviewed time { font-weight: 600; color: var(--olive-ink); }

/* Homepage Resources preview — compact four-link band, not a card grid */
.res-preview__links { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: var(--s-3); }
.res-preview__link {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card);
  text-decoration: none; color: var(--olive-ink); font-weight: 600;
  transition: border-color var(--transition), transform var(--transition);
}
.res-preview__link:hover { border-color: var(--tan); transform: translateY(-2px); color: var(--olive-ink); }
.res-preview__link .ico { width: 22px; height: 22px; color: var(--olive); flex: 0 0 auto; }

/* 14. ACCESSIBILITY + MOTION ----------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--olive); color: var(--on-olive); padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 12px; }

/* Focus indicators — solid, ≥3:1 against adjacent backgrounds.
   Olive outline on light surfaces; ivory outline on dark olive surfaces. */
:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
.section--olive :focus-visible,
.footer :focus-visible,
.portal-card :focus-visible { outline-color: var(--ivory); }

/* Responsive ---------------------------------------------------------------*/
@media (min-width: 620px) {
  .cols-2 { grid-template-columns: repeat(2, 1fr); }
  .res-preview__links { grid-template-columns: 1fr 1fr; }
  .segment { max-width: 420px; }
  .form__row--2 { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .value-row { grid-template-columns: 40px 1fr; }
  .value-row__icon { grid-row: span 2; }
}
@media (min-width: 860px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
  .res-preview__links { grid-template-columns: repeat(4, 1fr); }
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .why-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); }
  .why-item:nth-child(2) { border-top: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .svc__grid { grid-template-columns: 1.25fr 1fr; gap: var(--s-6); }
  .subservice { grid-template-columns: 72px 1fr auto; }
  .editorial { grid-template-columns: 1.4fr 1fr; gap: var(--s-8); }
  .contact-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

/* Mobile navigation applies up to 1179px — the full desktop header (nav links
   + language control + two buttons) needs ~1150px of viewport with the longer
   Spanish labels (measured), so 1180px is the safe desktop cutover. */
@media (max-width: 1179px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s-3);
    background: var(--ivory); border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(32,42,29,.12);
    padding: var(--s-3) clamp(20px, 5vw, 32px) var(--s-4);
    display: none;
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav { position: relative; }
  .nav[data-open="true"] .nav__menu { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; white-space: normal; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-left: 0; }
  .nav__actions .btn { width: 100%; white-space: normal; }
  .lang-toggle { align-self: stretch; justify-content: center; }
  .lang-toggle button { flex: 1; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
