/* ==========================================================
   Wilbur & Trueman Law Offices
   ========================================================== */

:root {
  --ink: #0f1720;
  --ink-2: #16212d;
  --ink-3: #1f2c3a;
  --copper: #b07445;
  --copper-light: #c99466;
  --copper-dark: #8b512e;
  --paper: #ffffff;
  --cream: #f6f2ec;
  --line: #e6e0d7;
  --text: #2a323c;
  --muted: #66707b;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(15, 23, 32, .04), 0 12px 32px -12px rgba(15, 23, 32, .18);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

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

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: -.01em;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  font: 500 .9rem/1 var(--sans);
  letter-spacing: .04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.btn-sm {
  padding: .7rem 1.2rem;
  font-size: .82rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}

.btn-primary:hover {
  background: var(--copper-dark);
}

.btn-outline {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--copper-light);
  color: var(--copper-light);
}

.btn-ghost {
  color: #fff;
  padding-inline: .5rem;
}

.btn-ghost:hover {
  color: var(--copper-light);
}

.btn-ghost span {
  transition: transform .25s var(--ease);
}

.btn-ghost:hover span {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}

.site-header.scrolled {
  background: rgba(15, 23, 32, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  --header-h: 70px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand img {
  width: 300px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav a:not(.btn) {
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .03em;
  position: relative;
  padding: .25rem 0;
  transition: color .2s;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--copper-light);
  transition: right .3s var(--ease);
}

.nav a:not(.btn):hover,
.nav a.active {
  color: #fff;
}

.nav a:not(.btn):hover::after,
.nav a.active::after {
  right: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s, opacity .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 32, .6) 0%, rgba(15, 23, 32, .1) 30%, rgba(15, 23, 32, .1) 60%, rgba(15, 23, 32, .85) 100%),
    linear-gradient(100deg, rgba(15, 23, 32, .94) 0%, rgba(15, 23, 32, .78) 38%, rgba(15, 23, 32, .3) 100%),
    url("../assets/hero-marsh.jpg") 58% 50% / cover no-repeat;
  background-color: var(--ink);
}

@media (max-width: 860px) {
  .hero-bg {
    background-position: 0 0, 0 0, 62% 50%;
  }
}

.hero-content {
  position: relative;
  padding-block: 6rem 9rem;
}

.hero h1 {
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  max-width: 15ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--copper-light);
}

.hero .lead {
  margin-top: 1.75rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 300;
  color: rgba(255, 255, 255, .78);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  align-items: center;
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(15, 23, 32, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
}

.strip-item+.strip-item {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.strip-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--copper-light);
}

.strip-label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.4;
  max-width: 22ch;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-tint {
  background: var(--cream);
}

.section-head {
  margin-bottom: 3.5rem;
  max-width: 760px;
}

/* ---------- Practice cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: #fff;
  padding: 2.5rem 2.25rem;
  position: relative;
  transition: background .3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: var(--copper);
  transition: width .45s var(--ease);
}

.card:hover::before {
  width: 100%;
}

.card:hover {
  background: #fdfbf8;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 1.5rem 0 .75rem;
}

.card p {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--copper);
  transition: background .3s, color .3s, border-color .3s;
}

.card:hover .card-icon {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper);
}

.card-icon svg,
.ci-icon svg,
.lawyer-email svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-cta {
  background: var(--ink);
  color: rgba(255, 255, 255, .75);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-cta:hover {
  background: var(--ink-2);
}

.card-cta h3 {
  color: #fff;
  margin-top: 0;
}

.card-cta p {
  color: rgba(255, 255, 255, .7);
  margin-bottom: 1.5rem;
}

.card-cta .btn {
  align-self: flex-start;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.about-copy h2 {
  margin-bottom: 1.75rem;
}

.about-copy p:not(.eyebrow) {
  font-size: 1.05rem;
  font-weight: 300;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
}

.values li {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.values li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.value-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--copper-light);
  padding-top: .2rem;
}

.values h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: .35rem;
}

.values p {
  margin: 0;
  font-size: .95rem;
}

/* ---------- Lawyers ---------- */
.team {
  display: grid;
  gap: 2rem;
}

.lawyer {
  --photo-w: 340px;
  display: grid;
  grid-template-columns: var(--photo-w) 1fr;
  align-items: start;
  background: linear-gradient(to right, var(--cream) var(--photo-w), #fff var(--photo-w));
  border: 1px solid var(--line);
  transition: box-shadow .35s var(--ease);
}

.lawyer:hover {
  box-shadow: var(--shadow);
}

.lawyer-photo {
  overflow: hidden;
  background: #eee;
  aspect-ratio: 1 / 1;
  top: calc(var(--header-h) + 1rem);
}

.lawyer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transition: transform .8s var(--ease), filter .6s var(--ease);
}

.lawyer:hover .lawyer-photo img {
  transform: scale(1.03);
}

.lawyer-body {
  padding: clamp(2rem, 4vw, 3rem);
  border-left: 1px solid var(--line);
  min-height: 100%;
}

.lawyer-role {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: .5rem;
}

.lawyer h3 {
  font-family: var(--serif);
  font-size: 2.1rem;
}

.lawyer-meta {
  color: var(--muted);
  font-size: .88rem;
  margin: .35rem 0 1.25rem;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tags li {
  font-size: .76rem;
  font-weight: 500;
  padding: .35rem .8rem;
  background: var(--cream);
  color: var(--ink-3);
  border-radius: 999px;
}

.lawyer-body>p:not(.lawyer-role):not(.lawyer-meta),
.bio-more p {
  color: var(--text);
  font-size: .97rem;
}

.bio-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .55s var(--ease), opacity .4s var(--ease);
}

.bio-more.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.bio-inner {
  overflow: hidden;
  min-height: 0;
}

.lawyer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: 600 .82rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.link-btn::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--copper);
  transition: transform .3s var(--ease);
}

.link-btn[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.link-btn:hover {
  color: var(--copper);
}

.lawyer-email {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  color: var(--muted);
  transition: color .2s;
}

.lawyer-email svg {
  width: 18px;
  height: 18px;
  color: var(--copper);
}

.lawyer-email:hover {
  color: var(--copper-dark);
}

.tribute {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem;
  background: var(--cream);
  border-left: 3px solid var(--copper);
}

.tribute img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
}

.tribute .eyebrow {
  margin-bottom: .5rem;
}

.tribute h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: .6rem;
}

.tribute p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.contact-list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.ci-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--copper);
  border: 1px solid var(--line);
}

.ci-label {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}

.contact-list a,
.contact-list span:not(.ci-label):not(.ci-icon) {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact-list a:hover {
  color: var(--copper-dark);
}

.map {
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e9e4dc;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.85) contrast(1.05);
}

.contact-form {
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--copper);
}

.contact-form h3 {
  font-family: var(--serif);
  font-size: 1.9rem;
  margin-bottom: 1.75rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: .45rem;
  letter-spacing: .02em;
}

.req {
  color: var(--copper);
}

.field input,
.field textarea {
  width: 100%;
  font: 400 1rem var(--sans);
  /* 16px prevents iOS zoom-on-focus */
  color: var(--ink);
  padding: .85rem 1rem;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(176, 116, 69, .15);
}

.field.invalid input {
  border-color: #b3261e;
}

.field .error {
  color: #b3261e;
  font-size: .78rem;
  margin-top: .35rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note {
  font-size: .78rem;
  color: var(--muted);
  margin: 1rem 0 0;
  line-height: 1.55;
}

.form-status {
  margin: .75rem 0 0;
  font-size: .9rem;
  font-weight: 500;
}

.form-status.ok {
  color: #2e6b3a;
}

.form-status.err {
  color: #b3261e;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .65);
  padding-top: 4.5rem;
  font-size: .92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.footer-logo {
  width: 220px;
  height: auto;
  margin-bottom: 1.1rem;
}

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .75);
}

.site-footer h4 {
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a:hover {
  color: var(--copper-light);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 1.5rem;
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
}

.footer-bottom p {
  margin: 0;
}

.photo-credit {
  width: 100%;
  font-size: .72rem;
  color: rgba(255, 255, 255, .3);
}

.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Reveal animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(2) {
  transition-delay: .08s;
}

.hero .reveal:nth-child(3) {
  transition-delay: .16s;
}

.hero .reveal:nth-child(4) {
  transition-delay: .24s;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .lawyer {
    --photo-w: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 70px;
  }

  .brand img {
    width: 300px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    padding: .5rem 24px 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }

  .nav.open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav a:not(.btn) {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 1rem;
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    margin-top: 1.25rem;
  }

  .site-header.menu-open {
    background: var(--ink);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .lawyer {
    grid-template-columns: 1fr;
    background: #fff;
  }

  .lawyer-photo {
    position: static;
    aspect-ratio: 4 / 3;
  }

  .lawyer-photo img {
    object-position: center 20%;
  }

  .lawyer-body {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-content {
    padding-block: 4rem 3rem;
  }

  .hero-strip {
    position: relative;
  }

  .strip-inner {
    grid-template-columns: 1fr;
  }

  .strip-item {
    padding: 1.1rem 0;
  }

  .strip-item+.strip-item {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tribute {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1.75rem;
  }

  .tribute img {
    width: 96px;
    height: 96px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lawyer-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Mobile UX
   ========================================================= */
.header-call,
.action-bar,
.nav-meta {
  display: none;
}

.header-call svg,
.action-bar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 8px);
  }

  .header-inner {
    gap: .75rem;
  }

  .brand {
    margin-right: auto;
  }

  /* Always-visible phone in header */
  .header-call {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 44px;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    font-size: .88rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
  }

  .header-call svg {
    color: var(--copper-light);
    width: 18px;
    height: 18px;
  }

  .header-call:active {
    background: rgba(255, 255, 255, .08);
  }

  .nav-toggle {
    flex: none;
  }

  /* Menu: full-height sheet, roomy tap targets */
  .nav {
    bottom: 0;
    overflow-y: auto;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }

  .nav a:not(.btn) {
    min-height: 56px;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
  }

  .nav-cta {
    min-height: 52px;
    font-size: 1rem;
  }

  .nav-meta {
    display: block;
    margin: 1rem 0 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .55);
    text-align: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Hero: stacked full-width CTAs, compact stats */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    max-width: 420px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .hero-actions .btn-ghost {
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .25);
  }

  .strip-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .strip-item {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: 1rem .75rem 1rem 0;
  }

  .strip-item+.strip-item {
    padding-left: .9rem;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .1);
  }

  .strip-num {
    font-size: 1.7rem;
  }

  .strip-label {
    font-size: .74rem;
  }

  /* Bigger tap targets */
  .link-btn,
  .lawyer-email {
    min-height: 44px;
  }

  .contact-list a {
    display: inline-block;
    padding: .15rem 0;
  }

  /* Sticky quick-action bar */
  .action-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: rgba(15, 23, 32, .97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
    transition: transform .3s var(--ease);
  }

  .action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .85);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .02em;
  }

  .action-bar a:active {
    background: rgba(255, 255, 255, .08);
  }

  .action-bar .ab-call {
    flex-direction: row;
    gap: .6rem;
    background: var(--copper);
    color: #fff;
    font-size: .95rem;
  }

  .action-bar .ab-call:active {
    background: var(--copper-dark);
  }

  .action-bar .ab-call strong {
    font-weight: 600;
  }

  .action-bar .ab-call span {
    white-space: nowrap;
  }

  .ab-word {
    display: inline;
  }

  /* hero fills the screen above the action bar */
  .hero {
    min-height: calc(100svh - 70px - env(safe-area-inset-bottom));
  }

  body.menu-open .action-bar {
    transform: translateY(110%);
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-block: 2.25rem 2rem;
  }

  .hero .lead {
    margin-top: 1.25rem;
  }

  .hero-actions {
    margin-top: 1.75rem;
  }

  .brand img {
    width: 210px;
  }

  .ab-word {
    display: none;
  }

  .header-call {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .header-call span {
    display: none;
  }

  .action-bar .ab-call span {
    font-size: .9rem;
  }
}

@media (max-width: 360px) {
  .action-bar .ab-call span {
    font-size: .82rem;
  }
}

/* =========================================================
   Desktop: contact form in the hero
   ========================================================= */
.cta-desktop,
.to-hero-form {
  display: none;
}

.cta-desktop svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-sub {
  color: var(--muted);
  font-size: .92rem;
  margin: -1.1rem 0 1.5rem;
}

@media (min-width: 1024px) {
  .hero-content.has-form {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    padding-block: 3.5rem 8.5rem;
  }

  .has-form .hero-copy h1 {
    font-size: clamp(2.8rem, 4.5vw, 4.4rem);
  }

  .has-form .cta-mobile {
    display: none;
  }

  .has-form .cta-desktop {
    display: inline-flex;
  }

  .hero .contact-form {
    padding: 2rem 2.25rem 1.75rem;
    border-radius: 6px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04);
  }

  .hero .contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1.4rem;
  }

  .hero .field {
    margin-bottom: .9rem;
  }

  .hero .field label {
    margin-bottom: .35rem;
  }

  .hero .field input,
  .hero .field textarea {
    padding: .7rem .9rem;
  }

  .hero .field textarea {
    min-height: 96px;
  }

  .hero .form-note {
    font-size: .72rem;
    margin-top: .75rem;
  }

  /* Contact section without the form: details left, map right */
  .contact-grid.no-form {
    grid-template-columns: 1fr;
  }

  .contact-grid.no-form .contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }

  .contact-grid.no-form .contact-info> :not(.map) {
    grid-column: 1;
  }

  .contact-grid.no-form .map {
    grid-column: 2;
    grid-row: 1 / span 6;
    aspect-ratio: auto;
    height: 100%;
    min-height: 420px;
  }

  .contact-grid.no-form .contact-list {
    margin-bottom: 2rem;
  }

  .contact-grid.no-form .to-hero-form {
    display: inline-flex;
    justify-self: start;
  }
}

/* Short desktop screens (e.g. 1280×720 laptops): keep form + CTAs above the fold */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero-content.has-form {
    padding-block: 2rem 7rem;
  }

  .has-form .hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
  }

  .has-form .hero .lead,
  .has-form .lead {
    margin-top: 1.1rem;
  }

  .has-form .hero-actions {
    margin-top: 1.6rem;
  }

  .hero .contact-form {
    padding: 1.5rem 1.75rem 1.25rem;
  }

  .hero .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero .form-sub {
    display: none;
  }

  .hero .field {
    margin-bottom: .7rem;
  }

  .hero .field input,
  .hero .field textarea {
    padding: .6rem .85rem;
  }

  .hero .field textarea {
    min-height: 70px;
  }

  .hero-strip .strip-item {
    padding-block: 1.1rem;
  }
}