/* Law Office of Patrick Smith, tax practice (smithtaxlawfirm.com)
   Ledger system: cool paper, evergreen ink, oxidized-copper accent.
   Source Serif 4 display serif + Inter sans. */

:root {
  /* surfaces */
  --paper:      #F4F6F3;   /* warm off-white page bg */
  --paper-2:    #FAFBF9;   /* slightly lighter band */
  --surface:    #FFFFFF;   /* cards */
  --evergreen:       #183229;   /* primary evergreen ink */
  --evergreen-deep:  #0E1C18;   /* blue-black: hero / page-hero */
  --evergreen-soft:  #24463A;
  --ink-deep:   #08110E;   /* near-black: footer drama */

  /* accent: oxidized copper, used sparingly */
  --copper:       #A85A2E;
  --copper-deep:  #8F4A24;
  --copper-light: #D08A5B;

  /* type colors */
  --ink:        #12261F;   /* headings on light */
  --body:       #3A443F;   /* body copy on light */
  --muted:      #66726C;
  --on-dark:    #E6ECE7;   /* text on dark */
  --on-dark-mut:#A3B3AB;

  --line:       rgba(18, 38, 31, 0.12);
  --line-copper:  rgba(168, 90, 46, 0.32);
  --line-ondark:rgba(230, 236, 231, 0.16);

  --serif:   "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1140px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(10,25,20,0.04), 0 12px 28px rgba(10,25,20,0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.1; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.14; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.18rem, 2.1vw, 1.42rem); line-height: 1.18; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
strong { color: var(--ink); }
a { color: var(--copper-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--copper); }

/* ---------- Accessibility ---------- */
/* links inside running text are underlined so they are not identified by color alone */
.prose a, .faq a, .callout a, .tldr a, form p a { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.req { font-weight: 400; color: var(--muted); }
.skip-link {
  position: absolute; left: 8px; top: -64px; z-index: 1000;
  background: var(--evergreen-deep); color: var(--on-dark);
  padding: 0.7rem 1.1rem; border-radius: 6px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--copper); transition: top .18s var(--ease);
}
.skip-link:focus { top: 8px; color: var(--copper-light); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
.btn-primary:focus-visible, .nav-cta:focus-visible { outline-color: var(--evergreen-deep); }
#main:focus, #main:focus-visible { outline: none; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--copper-deep);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow.center { justify-content: center; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-narrow { max-width: 760px; }
.section { position: relative; padding: clamp(4rem, 10vh, 7.5rem) 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark {
  background-color: var(--evergreen-deep);
  color: var(--on-dark);
  border-top: 1px solid var(--line-copper);
  border-bottom: 1px solid var(--line-copper);
}
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: var(--on-dark-mut); }
/* white cards keep dark text even inside dark sections */
.section.dark .card h3 { color: var(--ink); }
.section.dark .card p { color: var(--body); }
.section.dark .eyebrow { color: var(--copper-light); }
.lead { font-size: clamp(1.12rem, 2vw, 1.35rem); color: var(--muted); line-height: 1.6; max-width: 56ch; }
.section.dark .lead { color: var(--on-dark-mut); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 28, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-copper);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--on-dark); }
.brand:hover { color: var(--on-dark); }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: scale(1.05); }
.brand-name { font-family: var(--serif); line-height: 1; }
.brand-name .l1 { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--copper-light); font-weight: 600; margin-bottom: 3px; }
.brand-name .l1::before, .brand-name .l1::after { content: ""; height: 1px; width: 12px; background: var(--line-ondark); flex: 0 0 auto; }
.brand-name .l2 { display: block; white-space: nowrap; font-size: 1.18rem; letter-spacing: 0.01em; color: #fff; font-weight: 600; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 1.9rem); }
.nav a { font-family: var(--sans); font-size: 0.9rem; color: var(--on-dark); font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--copper-light); }
.nav .nav-cta { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--on-dark); font-size: 1.5rem; cursor: pointer; padding: 0.25rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.header-phone { font-weight: 600; color: var(--on-dark); white-space: nowrap; }
.header-phone:hover { color: var(--copper-light); }

/* Practice dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; color: var(--on-dark); white-space: nowrap;
  padding: 0; transition: color .2s var(--ease);
}
.dropdown-toggle:hover, .nav-item:hover .dropdown-toggle, .dropdown-toggle[aria-expanded="true"] { color: var(--copper-light); }
.dropdown-toggle .caret { font-size: 0.65em; transition: transform .25s var(--ease); }
.dropdown-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 0.7rem); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 260px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem;
  display: flex; flex-direction: column; gap: 0.05rem;
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease);
  box-shadow: var(--shadow); z-index: 60;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .dropdown.open {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown::before { content: ''; position: absolute; top: -0.7rem; left: 0; right: 0; height: 0.7rem; }
.dropdown a { padding: 0.6rem 0.85rem; border-radius: 4px; font-size: 0.9rem; color: var(--evergreen); white-space: nowrap; font-weight: 500; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: rgba(168, 90, 46,0.1); color: var(--copper-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.94rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--copper); color: #fff; border-color: var(--copper); }
.btn-primary:hover { background: var(--copper-deep); border-color: var(--copper-deep); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--evergreen); color: #fff; border-color: var(--evergreen); }
.btn-dark:hover { background: var(--evergreen-soft); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--evergreen); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-deep); transform: translateY(-2px); }
.section.dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost { color: var(--on-dark); border-color: var(--line-ondark); }
.section.dark .btn-ghost:hover, .hero .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--copper); color: var(--copper-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--on-dark); overflow: hidden;
  background-color: var(--evergreen-deep);
}
.hero, .page-hero { border-bottom: 3px solid var(--copper); }
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(4.5rem, 11vh, 8rem); padding-bottom: clamp(4.5rem, 11vh, 8rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 .accent { color: var(--copper-light); font-style: italic; }
.hero .eyebrow { color: var(--copper-light); }
.hero .lead { color: var(--on-dark-mut); max-width: 54ch; margin-top: 1.3rem; }

/* hero with attorney photo full-bleed, headline scrimmed over the left */
.hero-photo {
  background-image:
    linear-gradient(95deg,
      rgba(14, 28, 24,0.70) 0%, rgba(14, 28, 24,0.40) 30%,
      rgba(14, 28, 24,0.12) 48%, rgba(14, 28, 24,0) 60%),
    url('/assets/img/hero.jpg');
  background-color: var(--evergreen-deep);
  background-size: cover, auto 100%;
  background-position: center, right center;
  background-repeat: no-repeat, no-repeat;
}
.hero-photo { min-height: clamp(560px, 82vh, 820px); }
.hero-photo .wrap { padding-top: clamp(4rem, 10vh, 7rem); padding-bottom: clamp(8rem, 22vh, 15rem); }
@media (max-width: 760px) {
  .hero-photo {
    background-image: none;
    background-color: var(--evergreen-deep);
    min-height: 0;
  }
  .hero-photo .wrap { padding-bottom: clamp(3.5rem, 9vh, 5.5rem); }
}

/* page hero (interior, smaller) */
.page-hero {
  color: var(--on-dark); position: relative;
  background-color: var(--evergreen-deep);
}
.page-hero .wrap { position: relative; z-index: 2; padding-top: clamp(3rem, 7vh, 4.5rem); padding-bottom: clamp(3rem, 7vh, 4.5rem); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: var(--on-dark-mut); margin-top: 1rem; }
.page-hero .eyebrow { color: var(--copper-light); }
.crumbs { font-family: var(--sans); font-size: 0.8rem; color: var(--on-dark-mut); margin-bottom: 1.2rem; letter-spacing: 0.02em; }
.crumbs a { color: var(--on-dark-mut); } .crumbs a:hover { color: var(--copper-light); }
.crumbs span { color: var(--copper-light); }

/* about portrait — grayscale, tight 4:5 crop */
.about-portrait {
  width: 100%; height: auto; max-width: 340px; display: block; margin: 0 auto;
  aspect-ratio: 690 / 1402; object-fit: cover; 
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-copper);
}
/* give the bio text more room, the photo less, on desktop */
@media (min-width: 760px) {
  .grid-2.about-grid { grid-template-columns: 1.7fr 1fr; align-items: start; }
}

/* ---------- Results / credibility strip ---------- */
.stat-strip { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { text-align: center; position: relative; }
.stat + .stat::before { /* pinstripe divider between stats */
  content: ""; position: absolute; left: -0.75rem; top: 12%; bottom: 12%; width: 3px;
  border-left: 1px solid var(--line-ondark); border-right: 1px solid var(--line-ondark);
}
@media (max-width: 560px) { .stat + .stat::before { display: none; } }
.stat .num { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--copper-light); line-height: 1; font-weight: 600; }
.stat .lbl { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mut); margin-top: 0.6rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-copper); box-shadow: var(--shadow); }

/* section rule: hairlines with a small copper square */
.rule-flourish { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 2.4rem 0; }
.rule-flourish::before, .rule-flourish::after { content: ""; height: 1px; width: min(140px, 22vw); }
.rule-flourish::before { background: linear-gradient(90deg, transparent, var(--copper)); }
.rule-flourish::after { background: linear-gradient(90deg, var(--copper), transparent); }
.rule-flourish .d { width: 7px; height: 7px; flex: 0 0 auto; background: var(--copper); transform: rotate(45deg); }
.section.dark .rule-flourish::before, .hero .rule-flourish::before { background: linear-gradient(90deg, transparent, var(--copper-light)); }
.section.dark .rule-flourish::after, .hero .rule-flourish::after { background: linear-gradient(90deg, var(--copper-light), transparent); }
.card h3 { color: var(--ink); margin-bottom: 0.6rem; }
.card p { color: var(--body); margin-bottom: 0; font-size: 0.98rem; }
.card-link { display: block; }
.card-link:hover { color: inherit; }
.card .more { display: inline-block; margin-top: 1.1rem; font-family: var(--sans); font-size: 0.86rem; font-weight: 600; color: var(--copper-deep); letter-spacing: 0.01em; }

/* practice icon-card */
.pcard-ico { width: 54px; height: 54px; color: var(--copper); margin-bottom: 1rem; }
.pcard-ico svg { width: 100%; height: 100%; }

/* trust / why feature */
.feature h3 { color: var(--ink); font-size: 1.2rem; }
.feature p { color: var(--body); margin-bottom: 0; }
.feature .ico { width: 34px; height: 34px; color: var(--copper); margin-bottom: 0.9rem; }

/* numbered process steps */
.steps { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; padding-top: 0.5rem; }
.step .n { font-family: var(--serif); font-size: 2.2rem; color: var(--copper); line-height: 1; display: block; margin-bottom: 0.5rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--body); margin-bottom: 0; }

/* notice decoder table (home) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.decoder { width: 100%; border-collapse: collapse; margin-top: 2.2rem; font-size: 0.97rem; }
.decoder thead th { text-align: left; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-mut); font-weight: 600; padding: 0 1rem 0.8rem 0; border-bottom: 1px solid var(--line-copper); }
.decoder tbody th, .decoder td { text-align: left; vertical-align: top; padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line-ondark); }
.decoder tbody th { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: #fff; width: 24%; }
.decoder td { color: var(--on-dark-mut); }
.decoder td.clock { color: var(--copper-light); font-weight: 600; width: 26%; }
.decoder td.go { white-space: nowrap; width: 1%; padding-right: 0; }
.decoder td.go a { color: var(--on-dark); font-size: 0.86rem; font-weight: 600; }
.decoder td.go a:hover { color: var(--copper-light); }
@media (max-width: 760px) {
  .decoder thead { display: none; }
  .decoder, .decoder tbody, .decoder tr, .decoder tbody th, .decoder td { display: block; width: auto; }
  .decoder tr { padding: 1rem 0; border-bottom: 1px solid var(--line-ondark); }
  .decoder tbody th, .decoder td { border: 0; padding: 0.15rem 0; }
  .decoder td.go { padding-top: 0.4rem; }
}

/* checklist (Do I have a case) */
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--body); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 12px; height: 7px;
  border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}

/* prose blocks on practice pages */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; color: var(--ink); }
.prose ul { padding-left: 1.2rem; } .prose li { margin-bottom: 0.5rem; }

/* answer-first quotable TL;DR box (AEO/GEO) */
.tldr {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--copper);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.5rem 0;
}
.tldr .tldr-h { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-deep); font-weight: 700; margin-bottom: 0.5rem; }
.tldr p { margin: 0; color: var(--ink); font-size: 1.05rem; }

/* deadline callout */
.callout { background: rgba(168, 90, 46,0.08); border: 1px solid var(--line-copper); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0; }
.callout strong { color: var(--copper-deep); }

/* FAQ (visible content; markup kept light per GEO guidance) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 0; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--copper); font-family: var(--sans); font-size: 1.5rem; line-height: 1; flex: 0 0 auto; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding: 0 0 1.3rem; color: var(--body); margin: 0; max-width: 72ch; }

/* service area chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.chips a { font-family: var(--sans); font-size: 0.86rem; font-weight: 500; color: var(--evergreen); padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; transition: all .2s var(--ease); }
.chips a:hover { border-color: var(--copper); color: var(--copper-deep); }
.section.dark .chips a { color: var(--on-dark); border-color: var(--line-ondark); }
.section.dark .chips a:hover { border-color: var(--copper); color: var(--copper-light); }
.chips span { font-family: var(--sans); font-size: 0.86rem; font-weight: 500; color: var(--evergreen); padding: 0.5rem 1rem; border: 1px dashed var(--line); border-radius: 999px; }
.section.dark .chips span { color: var(--on-dark); border-color: var(--line-ondark); }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.82rem; color: var(--evergreen); margin-bottom: 0.4rem; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 1rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--copper); border-color: var(--copper); }
.info-row { display: flex; gap: 0.75rem; align-items: baseline; margin-bottom: 0.9rem; }
.info-row .lbl { color: var(--copper-deep); font-weight: 600; min-width: 78px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); border-top: 3px solid var(--copper); padding: 3.5rem 0 2rem; font-size: 0.9rem; color: var(--on-dark-mut); }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; margin-bottom: 2.2rem; }
.site-footer h2 { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: #fff; margin: 0 0 1rem; }
.site-footer p { color: var(--on-dark-mut); }
.site-footer a { display: block; color: var(--on-dark-mut); margin-bottom: 0.5rem; }
.site-footer a:hover { color: var(--copper-light); }
.site-footer .footer-brand .l2 { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1.15rem; color: #fff; }
.disclaimer { border-top: 1px solid var(--line-ondark); padding-top: 1.5rem; font-size: 0.78rem; line-height: 1.6; color: #7F9088; }
.disclaimer strong { color: var(--on-dark-mut); }
@media (max-width: 760px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  /* Brand blurb needs the full row; half-width forces one-word-per-line wrapping */
  .site-footer .footer-brand { grid-column: 1 / -1; }
  /* Full-width fields + a lone left-hugging submit reads as off-center on phones */
  form [type="submit"].btn { width: 100%; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Mobile nav ---------- */
@media (max-width: 1024px) {
  .header-phone { display: none; }
  .nav { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px);
         flex-direction: column; align-items: stretch;
         background: var(--evergreen-deep); border-top: 1px solid var(--line-ondark);
         padding: 1rem var(--pad) 2rem; gap: 0.25rem; display: none; overflow-y: auto;
         overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--line-ondark); }
  .nav .nav-cta { text-align: center; margin-top: 0.8rem; border: 0; color: #fff; }
  .nav-toggle { display: flex; }
  .nav-item { display: block; }
  .dropdown-toggle { width: 100%; justify-content: space-between; padding: 0.7rem 0; font-size: 1rem; border-bottom: 1px solid var(--line-ondark); }
  .dropdown { position: static; transform: none; min-width: 0; width: 100%; background: none; border: 0; box-shadow: none;
              padding: 0 0 0 0.8rem; border-radius: 0; display: none; opacity: 1; visibility: visible; }
  .dropdown a { color: var(--on-dark-mut); }
  .dropdown a:hover, .dropdown a[aria-current="page"] { background: rgba(208,138,91,0.14); color: var(--copper-light); }
  .dropdown::before { display: none; }
  .dropdown.open { display: flex; transform: none; }
  .nav-item:hover .dropdown:not(.open), .nav-item:focus-within .dropdown:not(.open) { display: none; }
}

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