/* Leyva Law demo — design concept by AFS Web Design */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/CormorantGaramond-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #0a1523;
  --navy-900: #0e1c2e;
  --navy-800: #16283e;
  --navy-700: #1f3550;
  --ink: #222b35;
  --muted: #5c6673;
  --paper: #f7f4ee;
  --cream: #fdfcf9;
  --line: #e6dfd2;
  --gold: #c2a14c;
  --gold-strong: #a98a35;
  --gold-text: #7d6626;
  --gold-soft: #e9ddbf;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy-950); padding: 10px 18px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--navy-900); text-wrap: balance; }
h1 em { font-style: italic; color: var(--gold); }
h1 .line { display: block; }
html:lang(es) h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); }

.kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 10px;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.lede { font-size: 1.13rem; max-width: 46rem; text-wrap: pretty; }
.nowrap { white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 12px 26px; border-radius: 3px; border: 1px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  text-align: center;
}
.btn.lg { padding: 15px 32px; font-size: 1rem; }
.btn.gold { background: var(--gold); color: var(--navy-950); }
.btn.gold:hover { background: #d4b25e; }
.btn.ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn svg { width: 18px; height: 18px; vertical-align: -0.2em; margin-right: 8px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(194, 161, 76, 0.25);
}
.site-head.scrolled { box-shadow: 0 4px 24px rgba(4, 10, 18, 0.45); }
.head-row { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { flex: none; }
.brand img { width: 104px; height: auto; max-width: none; }
.nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav a {
  color: #d8dee6; text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.15s; white-space: nowrap;
}
.nav a:hover { color: var(--gold); }
.nav-phone { color: var(--gold) !important; font-weight: 600 !important; white-space: nowrap; }
.lang {
  border: 1px solid rgba(194, 161, 76, 0.5); border-radius: 999px;
  padding: 4px 13px; font-size: 0.8rem; letter-spacing: 0.08em;
  color: var(--gold) !important; text-decoration: none; font-weight: 500;
  white-space: nowrap;
}
.lang:hover { background: rgba(194, 161, 76, 0.14); }
.lang-mobile { display: none; }
.head-cta { white-space: nowrap; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-left: auto;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--gold); margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 620px at 78% 30%, rgba(194, 161, 76, 0.12), transparent 62%),
    radial-gradient(760px 460px at -8% 108%, rgba(31, 53, 80, 0.85), transparent 65%),
    var(--navy-950);
  color: #eef1f5;
  padding: 104px 0 96px;
  border-bottom: 3px solid var(--gold);
}
/* Mobile: full-width title, portrait floated right, paragraph wraps around it. */
.hero-inner { display: block; }
.hero-portrait { float: right; width: min(140px, 40vw); margin: 6px 0 14px 22px; }
.hero .cta-row, .hero .trust { clear: both; }
.hero-portrait .frame { position: relative; }
.hero-portrait .frame::before {
  content: ''; position: absolute; inset: -14px;
  border: 1px solid rgba(194, 161, 76, 0.38);
  border-radius: 999px 999px 9px 9px;
}
.hero-portrait img {
  width: 100%; height: auto; display: block;
  border-radius: 999px 999px 6px 6px;
  border: 1px solid rgba(194, 161, 76, 0.55);
  box-shadow: 0 26px 60px rgba(4, 8, 14, 0.5);
}
.hero-portrait figcaption { text-align: center; margin-top: 16px; }
.hero-portrait figcaption strong {
  display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: #fff; line-height: 1.2;
}
.hero-portrait figcaption span {
  display: block; margin-top: 5px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.hero .lede { color: #b9c2cd; margin-top: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px;
  font-size: 0.88rem; color: #cbd3dc;
}
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before {
  content: ''; width: 7px; height: 7px; background: var(--gold);
  transform: rotate(45deg); flex: none;
}

/* ---------- sections ---------- */
.block { padding: 88px 0; }
.block > .wrap > h2 { margin-bottom: 42px; }

/* practice areas — one horizontal section each */
.practice-area { background: var(--paper); }
.practice-area.alt { background: var(--cream); }
.practice-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
/* the case-list always sits on the wider track, in both row directions */
.practice-row.flip { grid-template-columns: 1.1fr 0.9fr; }
.practice-row.flip .practice-copy { order: 2; }
.practice-row.flip .case-list { order: 1; }
.pa-head { display: flex; align-items: center; gap: 15px; margin: 6px 0 16px; }
.pa-head h2 { margin: 0; }
.pillar-icon { width: 46px; height: 46px; color: var(--gold-strong); flex: none; }
.pillar-icon svg { width: 100%; height: 100%; }
.practice-copy > p:not(.kicker) { color: var(--muted); max-width: 34rem; }
.practice-copy .arrow-link { display: inline-block; margin-top: 22px; }
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.case-list li {
  position: relative; padding: 11px 0 11px 22px;
  font-size: 0.96rem; font-weight: 500; color: var(--navy-800);
  border-bottom: 1px solid var(--line);
}
.case-list li::before {
  /* pin to the first text line (11px pad + half the 1.65 line box), not the li
     center, so two-line items keep the diamond on line one */
  content: ''; position: absolute; left: 2px; top: calc(11px + 0.825em); margin-top: -4px;
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}
.arrow-link {
  font-weight: 600; font-size: 0.93rem; color: var(--gold-text);
  text-decoration: none; border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
}
.arrow-link::after { content: ' \2192'; }
.arrow-link:hover { color: var(--navy-900); border-color: var(--gold); }

/* why band */
.band { background: var(--navy-900); color: #c8d0da; padding: 66px 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.band-title {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--gold);
  margin-bottom: 8px;
}
.band-item p:not(.band-title) { font-size: 0.94rem; }

/* attorney */
.attorney {
  position: relative; overflow: hidden;
  background-image: radial-gradient(620px 460px at 90% 12%, rgba(194, 161, 76, 0.07), transparent 65%);
}
/* texture: two concentric arch hairlines echoing the portrait frame,
   feathered out before they reach the body copy */
.attorney::before, .attorney::after {
  content: ''; position: absolute; pointer-events: none;
  border-radius: 999px 999px 0 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 60%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 60%);
}
.attorney::before {
  right: -150px; top: 54px; width: 470px; height: 900px;
  border: 1px solid rgba(194, 161, 76, 0.24);
}
.attorney::after {
  right: -114px; top: 92px; width: 398px; height: 862px;
  border: 1px solid rgba(194, 161, 76, 0.14);
}
.attorney .wrap { position: relative; z-index: 1; }
.attorney-head { margin-bottom: 36px; }
.attorney-head h2 { margin-bottom: 4px; }
.attorney-head .role { margin-bottom: 0; }
.attorney-grid {
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 56px; align-items: start;
}
.portrait { position: relative; }
.portrait img { border: 1px solid var(--line); }
.portrait::after {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold-soft); z-index: -1;
}
/* Portrait reveal on scroll: photo eases up, then the frame settles into its
   offset. The hidden state only exists once JS tags .will-reveal, so the
   image stays visible without JS; reduced-motion users skip it entirely. */
@media (prefers-reduced-motion: no-preference) {
  .portrait.will-reveal { opacity: 0; transform: translateY(16px); }
  .portrait.will-reveal::after { opacity: 0; transform: translate(-18px, -18px); }
  .portrait.in-view {
    opacity: 1; transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }
  .portrait.in-view::after {
    opacity: 1; transform: none;
    transition: opacity 0.7s ease-out 0.4s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
  }
}
.attorney-copy h2 { margin-bottom: 4px; }
.role { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-strong); margin-bottom: 20px; font-weight: 600; }
.attorney-copy p + p { margin-top: 14px; }
.creds { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.creds li { padding: 5px 0 5px 24px; position: relative; font-size: 0.93rem; color: var(--muted); }
.creds li::before {
  content: ''; position: absolute; left: 4px; top: 14px;
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}

/* process */
.process {
  background-color: var(--paper);
  background-image: url('../img/bg-flow.webp');
  background-repeat: no-repeat;
  background-position: right -110px top 10px;
  background-size: 540px auto;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li {
  background: #fff; border: 1px solid var(--line); padding: 34px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .steps li:hover { transform: scale(1.035); box-shadow: 0 14px 30px rgba(10, 21, 35, 0.1); }
}
@media (prefers-reduced-motion: reduce) {
  .steps li, .steps li:hover { transform: none; transition: none; }
}
.step-n {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--gold-text);
  display: block; line-height: 1; margin-bottom: 14px;
}
.steps h3 { font-size: 1.3rem; color: var(--navy-900); margin-bottom: 8px; }
.steps p { font-size: 0.94rem; color: var(--muted); }

/* faq */
.faq-wrap { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 20px 2px; font-weight: 600; font-size: 1.02rem; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-strong);
  line-height: 1; flex: none; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--muted); max-width: 44rem; }

/* reviews */
.reviews { background: var(--paper); }
.reviews .wrap > h2 { margin-bottom: 16px; }
.gsummary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-bottom: 40px; font-size: 0.95rem; color: var(--muted);
}
.gsummary svg { flex: none; }
.gsummary strong { color: var(--navy-900); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.review {
  margin: 0; background: #fff; border: 1px solid var(--line);
  padding: 28px 28px 22px; display: flex; flex-direction: column;
}
.review .stars { color: var(--gold-text); letter-spacing: 4px; font-size: 0.95rem; margin-bottom: 14px; }
.review blockquote { margin: 0 0 20px; flex: 1; }
.review blockquote p { font-size: 0.97rem; }
.review figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 15px; font-size: 0.92rem;
}
.review figcaption strong { color: var(--navy-900); }
.gsrc { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.review-note { margin-top: 24px; font-size: 0.8rem; color: var(--muted); }

/* contact */
.contact {
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(194, 161, 76, 0.14), transparent 60%),
    linear-gradient(rgba(10, 21, 35, 0.8), rgba(10, 21, 35, 0.92)),
    url('../img/bg-contact.jpg') center / cover no-repeat,
    var(--navy-950);
  color: #eef1f5; padding: 92px 0; text-align: center;
  border-top: 3px solid var(--gold);
}
.contact h2 { color: #fff; }
.contact .lede { margin: 14px auto 0; color: #b9c2cd; }
.contact-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px;
  margin-top: 52px; text-align: left; align-items: stretch;
}
.contact-side { display: flex; flex-direction: column; }
.contact-side .btn { display: block; margin-bottom: 12px; }
.contact-facts {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 24px;
  margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.contact-facts > div:last-child { flex: 1; display: flex; flex-direction: column; }
.contact-facts h3 {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; font-weight: 600;
}
.contact-facts p { font-size: 0.95rem; color: #c8d0da; }
.contact-facts a { color: #eef1f5; }
.side-map { display: flex; flex-direction: column; flex: 1; }
.appt-note {
  margin-top: 8px; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold) !important;
}
.map-wrap {
  flex: 1; margin-top: 14px; border: 1px solid rgba(194, 161, 76, 0.35);
  border-radius: 4px; overflow: hidden; line-height: 0;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 190px; border: 0; }

/* contact form */
.cform {
  background: #fff; border-top: 3px solid var(--gold);
  padding: 34px 30px; color: var(--ink);
}
.cform label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy-800); }
.cform input[type="text"], .cform input[type="tel"], .cform input[type="email"],
.cform textarea, .cform select {
  width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 2px; background: var(--cream);
  font: inherit; font-size: 0.95rem; color: var(--ink);
}
.cform input:focus, .cform textarea:focus, .cform select:focus,
.cform input[type="checkbox"]:focus-visible, .cform input[type="radio"]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.cform textarea { resize: vertical; min-height: 108px; }
.f-row { margin-bottom: 16px; }
.f-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.f-choices {
  border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px 14px;
  margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.f-choices legend { font-size: 0.82rem; font-weight: 600; color: var(--navy-800); padding: 0 6px; }
.f-choices label {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 400; font-size: 0.9rem; color: var(--ink);
}
.f-choices input { accent-color: var(--gold-strong); }
.f-consent {
  display: flex !important; align-items: flex-start; gap: 9px;
  font-weight: 400 !important; font-size: 0.84rem !important; color: var(--muted) !important;
  margin-bottom: 18px; line-height: 1.5;
}
.f-consent input { margin-top: 3px; accent-color: var(--gold-strong); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.f-submit { width: 100%; }
.f-note { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; }
.cf-turnstile { margin-bottom: 14px; min-height: 65px; }
.f-error { color: #b3403a; font-size: 0.85rem; font-weight: 500; margin: -4px 0 12px; }
.f-success {
  background: var(--paper); border-left: 3px solid var(--gold);
  padding: 20px 22px; font-size: 0.95rem; color: var(--ink); line-height: 1.55;
}
.f-success strong { color: var(--navy-900); font-size: 1.05rem; }
.f-success p { margin: 0; }
.f-success p + p { margin-top: 10px; }
#contact-form.sent > :not(#form-success) { display: none !important; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-foot { background: #060d16; color: #96a1ad; font-size: 0.9rem; }
.foot-grid {
  display: grid; grid-template-columns: 1.7fr 1.2fr 1.4fr; gap: 40px;
  padding: 54px 24px 34px;
}
.foot-brand img { width: 88px; margin-bottom: 14px; }
.foot-brand p { max-width: 30rem; text-wrap: balance; }
.foot-social { margin-top: 12px; display: flex; gap: 14px; }
.foot-social a { color: var(--gold); text-decoration: none; display: inline-flex; }
.foot-social a:hover { color: var(--gold-soft); }
.foot-social svg { width: 19px; height: 19px; }
.foot-links { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; column-gap: 30px; row-gap: 9px; }
.foot-links a { white-space: nowrap; }
.foot-contact { display: flex; flex-direction: column; gap: 9px; }
.foot-links a, .foot-contact a { color: #96a1ad; text-decoration: none; }
.foot-links a:hover, .foot-contact a:hover { color: var(--gold); }
.foot-contact > a, .foot-contact > span { display: flex; align-items: center; gap: 10px; }
.foot-contact svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px; padding-bottom: 30px; font-size: 0.78rem; color: #828e9c;
}
.foot-legal p + p { margin-top: 8px; }
.demo-note a { color: #96a1ad; }

/* section anchors clear the sticky header */
section[id], article[id] { scroll-margin-top: 90px; }
/* the dark contact section tucks flush under the 76px header when anchored,
   so no sliver of the light section above it shows */
section.contact { scroll-margin-top: 76px; }

/* split hero: portrait right of the copy from tablet width up */
@media (min-width: 720px) {
  /* Desktop: two columns, portrait right (unchanged look), via grid areas
     since the DOM is now flat (h1, figure, lede, cta, trust). */
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr clamp(225px, 24vw, 330px);
    grid-template-areas:
      "eyebrow portrait"
      "title   portrait"
      "lede    portrait"
      "cta     portrait"
      "trust   portrait";
    grid-template-rows: repeat(5, min-content);
    column-gap: 44px;
    align-content: center;
  }
  .hero-inner > .eyebrow { grid-area: eyebrow; }
  .hero-inner > h1 { grid-area: title; }
  .hero-inner > .lede { grid-area: lede; }
  /* align-self:center keeps the button its natural height instead of being
     stretched tall by the portrait-spanned grid rows. */
  .hero-inner > .cta-row { grid-area: cta; clear: none; align-self: center; }
  .hero-inner > .trust { grid-area: trust; clear: none; }
  .hero-portrait { grid-area: portrait; align-self: center; float: none; width: auto; margin: 0; }
  h1 { font-size: clamp(1.8rem, 3.85vw, 2.55rem); }
  html:lang(es) h1 { font-size: clamp(1.65rem, 3.4vw, 2.25rem); }
}

/* ---------- responsive ---------- */
.desk-only { display: inline; }

@media (max-width: 1000px) {
  .practice-row { grid-template-columns: 1fr; gap: 30px; }
  /* .flip's two-column template outspecifies the rule above; restack it */
  .practice-row.flip { grid-template-columns: 1fr; }
  .practice-row.flip .practice-copy { order: 0; }
  .practice-row.flip .case-list { order: 0; }
  .band-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .attorney-grid { grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .desk-only { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* tablet: contact facts left, SQUARE map right; both columns share the same
   top rule, the note aligns with the fact headings, and the three fact blocks
   spread to fill the map's full height (no dead space) */
@media (min-width: 640px) and (max-width: 1000px) {
  .contact-side { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: stretch; }
  .contact-side > .btn { grid-column: 1 / -1; }
  .contact-side .contact-facts { grid-column: 1; justify-content: space-between; gap: 18px; }
  .contact-side .side-map {
    grid-column: 2; margin-top: 34px; padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .contact-side .side-map .appt-note {
    margin-top: 0; margin-bottom: 8px;
    font-size: 0.78rem; letter-spacing: 0.18em;
  }
  .side-map .map-wrap { aspect-ratio: 1 / 1; flex: none; }
  /* footer, tablet only: brand | contact share the top row, links centered below */
  .foot-brand { grid-column: 1; grid-row: 1; }
  .foot-contact { grid-column: 2; grid-row: 1; }
  .foot-links {
    grid-column: 1 / -1; grid-row: 2;
    grid-template-columns: repeat(3, max-content); justify-content: center; gap: 14px 64px;
    padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* below tablet the footer is one column (placements above must not leak) */
@media (max-width: 639px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 1180px) {
  .head-cta { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy-950); flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 2px solid var(--gold); padding: 8px 0 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 24px; font-size: 1rem; }
  .nav .lang { display: none; }
  .lang-mobile { display: inline-block; margin-left: auto; }
  .nav-toggle { margin-left: 0; }
  .hero { padding: 72px 0 68px; }
  .hero .eyebrow { display: none; }
  .block { padding: 64px 0; }
  .process { background-size: 420px auto; background-position: right -140px top 0; }
}

/* below the hero/attorney split point: stack the attorney portrait */
@media (max-width: 719px) {
  .attorney-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 340px; }
}

@media (max-width: 560px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn.lg { width: 100%; }
  /* three chips side by side as equal columns; text wraps inside each chip */
  .trust { flex-wrap: nowrap; gap: 14px; font-size: 0.75rem; line-height: 1.4; }
  .trust li { flex: 1 1 0; align-items: flex-start; }
  .trust li::before { margin-top: 0.35em; }
  .case-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .portrait::after { display: none; }
  .cform { padding: 26px 18px; }
  .f-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .f-row.two { grid-template-columns: 1fr; gap: 0; }
  .f-row.two label { margin-bottom: 16px; }
  .hero-portrait figcaption span { font-size: 0.66rem; letter-spacing: 0.11em; }
  /* Mobile hero: full-width title, portrait floated right. Title and copy sit
     a touch larger; the caption gets more room below the arch frame. */
  h1 { font-size: clamp(1.95rem, 6.4vw, 2.6rem); }
  html:lang(es) h1 { font-size: clamp(1.75rem, 5.8vw, 2.35rem); }
  .hero .lede { font-size: 1.02rem; }
  /* Let the short closing sentences wrap into the narrow column beside the
     portrait instead of jumping below it (which left a gap). */
  .hero .lede .nowrap { white-space: normal; }
  .hero-portrait figcaption { margin-top: 22px; }
  .hero-portrait figcaption strong { font-size: 1.05rem; }
  .cform input[type="text"], .cform input[type="tel"], .cform input[type="email"],
  .cform textarea, .cform select { font-size: 1rem; }
}

/* Legal pages (privacy, terms) */
.legal { padding: 60px 0 84px; }
.legal .wrap { max-width: 47rem; }
.legal h1 { color: var(--navy-900); margin: 0.2em 0 0.15em; font-size: clamp(2.1rem, 4.5vw, 3rem); }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.4em; }
.legal h2 { font-size: 1.4rem; margin: 2em 0 0.45em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal p { margin: 0.7em 0; text-wrap: pretty; }
.legal ul { margin: 0.7em 0 0.7em 1.25em; }
.legal li { margin: 0.3em 0; }
.legal a { color: var(--gold-text); text-underline-offset: 3px; }

/* Practice-area landing pages */
.crumb { font-size: 0.8rem; color: var(--muted); padding-top: 22px; }
.crumb a { color: var(--gold-text); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { color: var(--muted); margin: 0 4px; }
.practice-hero { max-width: 820px; padding: 14px 0 46px; }
.practice-hero .kicker { margin-bottom: 8px; }
.practice-hero h1 { font-size: clamp(2rem, 5.2vw, 3rem); line-height: 1.08; margin: 4px 0 16px; }
.practice-hero .lede { font-size: 1.12rem; color: var(--ink); margin-bottom: 24px; max-width: 720px; }
.practice-hero .cta-row { margin-top: 0; }
/* practice hero sits on paper, not the dark hero: darken ghost button + trust */
.practice-hero .btn.ghost { border-color: rgba(10, 21, 35, 0.35); color: var(--navy-900); }
.practice-hero .btn.ghost:hover { border-color: var(--gold-strong); color: var(--gold-text); }
.practice-hero .trust { color: var(--muted); margin-top: 26px; }
.prose { max-width: 780px; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.05rem); color: var(--navy-900); margin: 38px 0 12px; line-height: 1.15; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.24rem; font-weight: 700; color: var(--navy-900); margin: 24px 0 7px; }
.prose p { color: var(--ink); line-height: 1.7; margin: 0 0 15px; text-wrap: pretty; }
.prose p a, .prose li a { color: var(--gold-text); }
.prose .disclaim { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 30px; }
.prose .case-list { margin-top: 14px; }
/* mobile scroll hint: gold chevron nudging users to the rest of the page */
.scroll-hint { display: none; }
@media (max-width: 719px) {
  .scroll-hint {
    display: flex; justify-content: center; margin-top: 26px;
    color: var(--gold); animation: hint-bob 2.2s ease-in-out infinite;
  }
  .scroll-hint svg { width: 22px; height: 22px; }
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(7px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .scroll-hint { animation: none; } }
/* touch devices split the combined Call or Text into Call + prefilled Text */
.cta-two { display: none !important; }
@media (hover: none) and (pointer: coarse), (max-width: 560px) {
  .cta-one { display: none !important; }
  .cta-two { display: block !important; }
}
/* practice pages: hero column matches the 780px article column (symmetry) */
.wrap.narrow { max-width: 780px; }
/* highlighter swipe on key dates and deadlines */
mark.hl {
  background: linear-gradient(180deg, transparent 45%, rgba(194, 161, 76, 0.36) 45%, rgba(194, 161, 76, 0.36) 94%, transparent 94%);
  color: inherit; font-weight: 600; padding: 0 2px;
}
/* magazine floats: article images the copy wraps around (practice pages) */
.prose figure.fig-r, .prose figure.fig-l { margin: 6px 0 16px; }

/* ---------- chat box (text-us widget, injected by site.js) ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--navy-950); color: #fff;
  border: 1px solid rgba(194, 161, 76, 0.55); border-radius: 999px;
  padding: 13px 21px; font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  box-shadow: 0 6px 22px rgba(6, 13, 22, 0.35);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.chat-fab svg { width: 19px; height: 19px; stroke: var(--gold); flex: none; }
.chat-fab:hover {
  border-color: var(--gold); transform: translateY(-1px);
  box-shadow: 0 9px 26px rgba(6, 13, 22, 0.4);
}
.chat-panel {
  position: fixed; right: 18px; bottom: 82px; z-index: 91;
  width: min(374px, calc(100vw - 24px));
  max-height: calc(100dvh - 104px); overflow: auto; overscroll-behavior: contain;
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 48px rgba(6, 13, 22, 0.3);
}
.chat-head {
  background: var(--navy-950); border-bottom: 3px solid var(--gold);
  padding: 18px 46px 15px 20px; position: relative;
}
.chat-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: #fff; line-height: 1.2; }
.chat-sub { margin-top: 5px; font-size: 0.82rem; color: #96a1ad; line-height: 1.5; }
.chat-status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; font-size: 0.82rem; line-height: 1.3;
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chat-state { font-weight: 700; letter-spacing: 0.01em; }
.chat-status.is-open .chat-dot { background: #35c15e; box-shadow: 0 0 0 3px rgba(53, 193, 94, 0.22); }
.chat-status.is-open .chat-state { color: #57d67c; }
.chat-status.is-closed .chat-dot { background: #e5544b; box-shadow: 0 0 0 3px rgba(229, 84, 75, 0.24); }
.chat-status.is-closed .chat-state { color: #f2837b; }
.chat-hours { color: var(--gold); font-weight: 600; }
.chat-hours::before { content: '\00b7'; margin-right: 8px; color: rgba(255, 255, 255, 0.4); font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .chat-status.is-open .chat-dot { animation: chatPulse 2.4s ease-in-out infinite; }
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(53, 193, 94, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(53, 193, 94, 0.10); }
}

.chat-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: #96a1ad; border-radius: 4px;
}
.chat-close:hover { color: var(--gold); }
.chat-close:focus-visible { outline: 2px solid var(--gold); }
.chat-close svg { width: 15px; height: 15px; }
.chat-body { padding: 16px 18px 6px; }
.chat-note {
  background: var(--paper); border-left: 3px solid var(--gold);
  padding: 9px 12px; font-size: 0.78rem; color: var(--muted); line-height: 1.5;
  margin-bottom: 14px;
}
.chat-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy-800); margin-bottom: 12px; }
.chat-form input[type="text"], .chat-form input[type="tel"], .chat-form input[type="email"], .chat-form textarea {
  width: 100%; margin-top: 5px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff;
  font: inherit; font-size: 0.92rem; font-weight: 400; color: var(--ink);
}
.chat-form input:focus, .chat-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.chat-form textarea { resize: vertical; min-height: 74px; }
.chat-ts { margin-bottom: 12px; min-height: 65px; }
.chat-send { width: 100%; }
.chat-consent {
  margin: 10px 0 12px; font-size: 0.72rem; color: var(--muted); line-height: 1.5;
  border: 1px solid rgba(194, 161, 76, 0.45); border-radius: 3px; padding: 9px 11px;
}
.chat-err { color: #b3403a; font-size: 0.83rem; font-weight: 500; margin-bottom: 10px; }
.chat-done {
  background: var(--paper); border-left: 3px solid var(--gold);
  padding: 18px 20px; font-size: 0.92rem; color: var(--ink); line-height: 1.55;
  margin-bottom: 12px;
}
.chat-done strong { display: block; color: var(--navy-900); font-size: 1.02rem; margin-bottom: 6px; }
.chat-done p { margin: 0; }
.chat-done p + p { margin-top: 8px; }
.chat-demo { font-size: 0.78rem; color: var(--muted); }
.chat-handoff .chat-done { margin-bottom: 12px; }
.chat-handoff .chat-send { margin-bottom: 12px; }
.chat-alt {
  padding: 10px 18px 14px; font-size: 0.78rem; color: var(--muted);
  border-top: 1px solid var(--line); line-height: 1.5;
}
.chat-alt a { color: var(--gold-text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.chat-alt a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .chat-fab { width: 54px; height: 54px; padding: 0; justify-content: center; }
  .chat-fab .chat-fab-label { display: none; }
  .chat-panel { left: 12px; right: 12px; bottom: 80px; width: auto; }
  .chat-form input[type="text"], .chat-form input[type="tel"], .chat-form input[type="email"], .chat-form textarea { font-size: 1rem; }
}
/* touch screens: the bubble would sit on the hero's Text Us button at load,
   so it stays hidden until the visitor scrolls down (js toggles .fab-show) */
@media (hover: none) and (pointer: coarse), (max-width: 560px) {
  .chat-fab {
    opacity: 0; transform: translateY(14px); pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .chat-fab.fab-show { opacity: 1; transform: none; pointer-events: auto; }
}
.prose figure.fig-r { float: right; width: min(340px, 46%); margin-left: 28px; }
.prose figure.fig-l { float: left; width: min(340px, 46%); margin-right: 28px; }
.prose figure.fig-r img, .prose figure.fig-l img {
  display: block; width: 100%; height: auto;
  border: 1px solid rgba(194, 161, 76, 0.35); border-radius: 4px;
}
.prose h2 { clear: both; }
@media (max-width: 560px) {
  .prose figure.fig-r, .prose figure.fig-l { width: min(46vw, 240px); }
  .prose figure.fig-r { margin-left: 16px; }
  .prose figure.fig-l { margin-right: 16px; }
}
.contact .cta-row.cta-center { justify-content: center; }
.prose.disclaim-center, .contact .disclaim-center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
/* practice pages: gold-framed related/disclaimer note below the FAQ */
.prose .disclaim-center {
  margin-top: 56px; padding: 18px 24px;
  border: 1px solid rgba(194, 161, 76, 0.35); border-radius: 4px;
}
/* homepage service bullets link to their practice pages; each row carries a
   small "More info" cue so the links read as clickable, especially on touch */
.case-list li a { color: inherit; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.case-list li a:hover { color: var(--gold-text); }
.case-list li a .more {
  flex: none; display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--gold-text); white-space: nowrap; transition: transform 0.15s;
}
.case-list li a .more svg { width: 14px; height: 14px; }
.case-list li:has(> a) { transition: background 0.15s; border-radius: 3px; }
.case-list li:has(> a):hover { background: rgba(194, 161, 76, 0.08); }
.case-list li a:hover .more { transform: translateX(3px); }
.related-links { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 10px; }

/* ---------- /rc/ staff launcher (Text button in lead emails) ---------- */
.rc-launch {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--navy-950); padding: 24px;
}
.rc-card {
  background: var(--cream); border-top: 3px solid var(--gold); border-radius: 8px;
  max-width: 480px; width: 100%; padding: 40px 38px; text-align: center;
}
.rc-brand {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px;
}
.rc-card h1 { font-size: 1.9rem; color: var(--navy-900); margin-bottom: 12px; }
.rc-lead { color: var(--ink); margin-bottom: 22px; }
.rc-err { color: #b3403a; font-weight: 500; margin-bottom: 22px; }
.rc-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.btn.dark { border-color: rgba(10, 21, 35, 0.35); color: var(--navy-900); }
.btn.dark:hover { border-color: var(--gold-strong); color: var(--gold-text); }
.rc-note { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
