/* main.css — Editorial Gravitas. Full design system.
   Aesthetic: Israeli criminal-defense barrister, late-night editorial weight,
   Frank Ruhl Libre + Assistant + JetBrains Mono, ivory paper + oxblood + gold.
   Mobile-first, RTL. */

:root {
  /* ---------- Palette ---------- */
  --paper:        #f1ece1;
  --paper-deep:   #e7e0cf;
  --paper-card:   #fbf7ee;
  --paper-shade:  #ece5d4;
  --ink:          #14110f;
  --ink-strong:   #2a2520;
  --ink-muted:    #5c5447;
  --ink-quiet:    #8c8475;
  --rule:         #c8b89c;
  --rule-soft:    #d8cfb8;
  --rule-hairline:#ddd2b8;
  --accent:       #6e1a23;
  --accent-deep:  #4a0f17;
  --accent-soft:  rgba(110,26,35,.07);
  --accent-glow:  rgba(110,26,35,.18);
  --gold:         #b8945c;
  --gold-deep:    #8e6f3e;
  --gold-soft:    rgba(184,148,92,.12);
  --emerald:      #2d5a47;
  --emerald-soft: rgba(45,90,71,.12);

  /* ---------- Typography ---------- */
  --font-display: "Frank Ruhl Libre","Iowan Old Style",Georgia,"Times New Roman",serif;
  --font-body:    "Assistant", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono","SF Mono",ui-monospace,Menlo,Consolas,monospace;

  --text-2xs:  0.6875rem;  /*  11px */
  --text-xs:   0.75rem;    /*  12px */
  --text-sm:   0.875rem;   /*  14px */
  --text-meta: 0.9375rem;  /*  15px */
  --text-base: 1.0625rem;  /*  17px */
  --text-md:   1.1875rem;  /*  19px */
  --text-lg:   1.375rem;   /*  22px */
  --text-xl:   1.75rem;    /*  28px */
  --text-2xl:  2.25rem;    /*  36px */
  --text-3xl:  3rem;       /*  48px */
  --text-4xl:  3.75rem;    /*  60px */
  --text-5xl:  4.5rem;     /*  72px */

  --leading-tight:  1.05;
  --leading-snug:   1.25;
  --leading-normal: 1.55;
  --leading-relaxed:1.75;

  --tracking-display:-0.02em;
  --tracking-tight:  -0.01em;
  --tracking-wide:    0.04em;
  --tracking-eyebrow: 0.18em;
  --tracking-mono:    0.06em;

  /* ---------- Spacing ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ---------- Radii / shadows ---------- */
  --radius-sm: 2px;
  --radius-md: 3px;
  --shadow-card:   0 1px 0 var(--rule-soft), 0 18px 36px -22px rgba(74,15,23,.18);
  --shadow-raised: 0 1px 0 var(--rule), 0 28px 56px -24px rgba(74,15,23,.32);
  --shadow-inset:  inset 0 0 0 1px var(--rule-soft);

  /* ---------- Layout ---------- */
  --container-reading: 680px;
  --container-max:     820px;
  --gutter: 20px;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  direction: rtl;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  background: var(--paper);
}
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(184,148,92,.045) 0%, transparent 35%),
    radial-gradient(circle at 88% 18%, rgba(110,26,35,.035) 0%, transparent 40%),
    radial-gradient(circle at 50% 95%, rgba(45,90,71,.025) 0%, transparent 50%);
}

/* Subtle paper grain — pure CSS, no asset */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20,17,15,.07) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
img, svg { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Layout ---------- */
main, footer {
  max-width: var(--container-reading);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
header { max-width: 100%; margin: 0; padding: 0; }

main { padding-bottom: var(--space-9); }
section + section,
section + article,
article + section { margin-top: var(--space-8); }

/* ---------- Eyebrow (used everywhere) ---------- */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.hero-eyebrow-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

/* ---------- Sticky header ---------- */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px var(--gutter);
  background: rgba(241,236,225,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.sticky-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sticky-header-brand-link {
  text-decoration: none;
  color: inherit;
}
.sticky-header-brand-link:hover .logo { color: var(--accent); }

/* Brand mark — small "law shield" geometric form */
.sticky-header-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--ink);
  border-radius: 2px;
}
.sticky-header-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--gold);
  border-radius: 1px;
}
.sticky-header-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 8px;
  background: var(--gold);
  transform: translate(-50%, -50%);
}

.sticky-header .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
  transition: color .15s ease;
}

/* ---------- CTA primary (large hero CTA) ---------- */
.cta-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
  min-height: 64px;
  padding: var(--space-4) var(--space-5);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius-sm);
  box-shadow:
    0 2px 0 rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
  position: relative;
}
.cta-primary:hover {
  background: var(--accent-deep);
  color: #fff;
  box-shadow:
    0 3px 0 rgba(0,0,0,0.22),
    0 12px 24px -8px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.cta-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.cta-primary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.cta-hero-label {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
}
.phone-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  direction: ltr;
}

/* Compact CTA (header) — same anchor reused via second class */
.cta-primary.cta-header {
  width: auto;
  min-height: 38px;
  flex: 0 0 auto;
  flex-direction: row;
  gap: var(--space-2);
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08);
}
.cta-primary.cta-header:hover { box-shadow: 0 2px 0 rgba(0,0,0,.2); transform: none; }
.cta-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
  animation: cta-pulse 1.8s ease-in-out infinite;
}
@keyframes cta-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--container-reading);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter) var(--space-6);
}
/* Decorative watermark (case file feel) */
.hero::before {
  content: "24";
  position: absolute;
  top: -12px;
  left: -8px;
  font-family: var(--font-display);
  font-size: 14rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.07;
  line-height: 0.85;
  letter-spacing: -0.06em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.hero > * { position: relative; z-index: 1; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  margin: 0 0 var(--space-5);
  text-wrap: balance;
  hyphens: none;
}
.hero-lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-md);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-strong);
  margin: 0 0 var(--space-6);
  max-width: 60ch;
}

/* The "case card" — a printed-form aesthetic CTA panel */
.case-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  padding: var(--space-5) var(--space-5) var(--space-5);
  margin: 0;
  box-shadow: var(--shadow-card);
}
.case-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.case-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.case-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 500;
}
.case-card-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
  animation: cta-pulse 1.8s ease-in-out infinite;
}
.case-card-eta { color: var(--ink-muted); }
.case-card .cta-primary { width: 100%; }
.case-card-foot {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink-muted);
  text-align: center;
}

/* ---------- Trust row — barrister card aesthetic ---------- */
.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: var(--space-7) 0 var(--space-7);
  padding: 0;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px dashed var(--rule-hairline);
  position: relative;
}
.trust-item:last-child { border-bottom: 0; }
.trust-item-label {
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.trust-item-value {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
}
.trust-item-foot {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ---------- Benefits / Service grid ---------- */
.benefits-section {
  margin: var(--space-8) 0;
}
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.benefit {
  position: relative;
  padding: var(--space-5) var(--space-5);
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.benefit-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: var(--tracking-mono);
  margin: 0 0 var(--space-3);
}
.benefit-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.benefit-title::before { display: none; }
.benefit-text {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: none;
}

/* ---------- Long-form content (H2 sections + paragraphs) ---------- */
.content-section {
  margin: var(--space-8) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--ink-strong);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}
h1 { font-weight: 900; letter-spacing: var(--tracking-display); }

.content-section h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  margin: var(--space-8) 0 var(--space-4);
  padding-top: var(--space-5);
  position: relative;
}
.content-section h2::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.content-section h2::after {
  content: "";
  position: absolute;
  top: 0;
  right: 60px;
  width: 18px;
  height: 2px;
  background: var(--gold);
}

.content-section h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  margin: var(--space-6) 0 var(--space-3);
}

.content-section p {
  margin: 0 0 var(--space-4);
  max-width: 60ch;
  color: var(--ink-strong);
}
.content-section p strong {
  color: var(--ink);
  font-weight: 700;
}
.content-section em { color: var(--ink-muted); font-style: italic; }

/* Drop cap — only on the very first paragraph after H1/H2 in main content */
.content-section h2 + p::first-letter,
.content-section > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.5em;
  line-height: 0.9;
  float: right;
  margin: 0.04em 0 0 0.08em;
  margin-inline-start: 0.08em;
  margin-inline-end: 0;
  color: var(--accent);
  padding: 4px 8px 0 4px;
  background: var(--gold-soft);
}

.content-section ul,
.content-section ol {
  margin: var(--space-4) 0 var(--space-5);
  padding-inline-start: var(--space-5);
}
.content-section ul { list-style: none; padding-inline-start: 0; }
.content-section ul li {
  position: relative;
  padding-inline-start: var(--space-5);
  margin: var(--space-2) 0;
  line-height: 1.55;
}
.content-section ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 12px;
  height: 1px;
  background: var(--gold);
}
.content-section li strong { color: var(--ink); }

/* ---------- Inline phone link in body ---------- */
.inline-phone {
  display: inline-block;
  padding: 1px 8px;
  margin: 0 2px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  direction: ltr;
  white-space: nowrap;
  border-bottom: 1px solid var(--accent);
  transition: background .15s ease, color .15s ease;
}
.inline-phone:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Articles hub (main page section + article-page sibling list) ---------- */
.articles-hub {
  margin: var(--space-8) 0;
  padding: var(--space-7) var(--space-5);
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: var(--shadow-card);
}
.articles-hub::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--space-7);
  width: 80px;
  height: 4px;
  background: var(--accent);
}
.articles-hub-header { margin: 0 0 var(--space-6); }
.articles-hub-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.articles-hub-title::before { display: none; }
.articles-hub-lede {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
  max-width: 60ch;
}

.article-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  counter-reset: article;
}
.article-card {
  position: relative;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--rule-hairline);
  border-radius: var(--radius-md);
  counter-increment: article;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.article-card::before {
  content: counter(article, decimal-leading-zero);
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gold-deep);
  letter-spacing: var(--tracking-mono);
  pointer-events: none;
}
.article-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.article-card-link {
  display: block;
  padding: var(--space-5) var(--space-5) var(--space-4);
  color: inherit;
  text-decoration: none;
}
.article-card-title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.article-card-title::before { display: none; }
.article-card-snippet {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 var(--space-4);
  max-width: none;
}
.article-card-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.article-card-link:hover .article-card-cta { color: var(--accent-deep); }

/* ---------- Lead form ---------- */
.form-section {
  margin: var(--space-8) 0;
  position: relative;
}
.form-section-inner {
  position: relative;
  padding: var(--space-7) var(--space-5);
  background: var(--ink);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(184,148,92,.08) 0%, transparent 35%),
    radial-gradient(circle at 88% 90%, rgba(110,26,35,.18) 0%, transparent 45%);
  color: var(--paper);
  border: 1px solid var(--ink-strong);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
}
.form-section-inner::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(216,207,184,0.10);
  pointer-events: none;
  border-radius: 1px;
}
.form-eyebrow { color: var(--gold); margin-bottom: var(--space-4); }
.form-headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--paper);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.form-headline::before { display: none; }
.form-sub {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.5;
  color: var(--rule-soft);
  margin: 0 0 var(--space-6);
  max-width: 50ch;
}

.form { display: grid; gap: var(--space-4); }
.form-field { display: block; }
.form-field-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.form input,
.form select {
  width: 100%;
  padding: 14px 14px;
  background: rgba(251,247,238,0.04);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  border: 1px solid rgba(216,207,184,0.18);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form input::placeholder {
  color: rgba(216,207,184,0.45);
  font-weight: 400;
}
.form input:focus,
.form select:focus {
  outline: none;
  background: rgba(251,247,238,0.08);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,148,92,0.20);
}

.form-submit {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 16px var(--space-5);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 56px;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.form-submit:hover { background: #c9a370; box-shadow: 0 3px 0 rgba(0,0,0,.22); }
.form-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.form-submit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.form-submit-arrow {
  font-family: var(--font-mono);
  font-size: 1.2em;
  transform: scaleX(-1); /* mirror for RTL */
}

.form-disclaimer {
  margin: var(--space-3) 0 0;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: rgba(216,207,184,0.55);
}

.thank-you {
  margin-top: var(--space-4);
  padding: var(--space-5);
  background: rgba(45,90,71,0.18);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-sm);
  text-align: center;
}
.thank-you p {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 0 var(--space-3);
  color: var(--paper);
}
.thank-you .cta-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--rule);
}
.thank-you .cta-primary:hover { background: var(--paper-deep); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { margin: var(--space-8) 0; }
.faq-header { margin: 0 0 var(--space-5); }
.faq-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.faq-list { display: grid; gap: 0; }

.faq details {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border-bottom: 1px solid var(--rule-soft);
  transition: background .15s ease;
}
.faq details:first-child { border-top: 1px solid var(--rule-soft); }
.faq details[open] { background: var(--paper-card); }
.faq summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  padding: var(--space-2) 0;
  padding-inline-end: var(--space-7);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-start: 0;
  top: var(--space-2);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--accent);
  transition: transform .25s ease, background .15s ease, color .15s ease;
}
.faq details[open] summary::after {
  content: "−";
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-deep);
  transform: rotate(180deg);
}
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}
.faq details p {
  margin: var(--space-3) 0 var(--space-2);
  padding-inline-start: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink-strong);
  max-width: 64ch;
}

/* ---------- Article page hero ---------- */
.article-hero {
  position: relative;
  max-width: var(--container-reading);
  margin: 0 auto;
  padding: var(--space-6) var(--gutter) var(--space-5);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--ink-quiet);
  letter-spacing: 0.04em;
}
.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.breadcrumb a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.breadcrumb-sep { color: var(--rule); padding: 0 2px; }
.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
  max-width: 32ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-hero-eyebrow { margin-bottom: var(--space-4); }
.article-headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
.article-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-6);
}
.article-meta span { white-space: nowrap; }
.article-hero-cta { margin-top: var(--space-3); }
.article-body { margin-top: var(--space-6); }

/* ---------- Footer ---------- */
footer {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  padding-bottom: calc(var(--space-7) + 80px);
  border-top: 1px solid var(--rule-soft);
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.legal-footer { margin: 0 auto; max-width: 60ch; padding: 0 var(--gutter); }
.legal-footer-card { padding: var(--space-3) 0; }
.legal-footer-name {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
.legal-footer-meta {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}
.legal-footer-phone {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  direction: ltr;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}
.legal-sep { color: var(--rule); padding: 0 2px; }
.legal-footer-links {
  margin: var(--space-3) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.legal-footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.legal-footer-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.copyright {
  margin: var(--space-4) 0 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-quiet);
  letter-spacing: 0.05em;
}

/* ---------- Sticky footer CTA bar (mobile only) ---------- */
.sticky-footer-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 2fr 1fr;
  max-width: 100%;
  margin: 0;
  background: var(--ink);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 24px rgba(20,17,15,.30);
}
.cta-footer-phone,
.cta-footer-whatsapp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  min-height: 64px;
}
.cta-footer-phone {
  background: var(--accent);
  color: #fff;
  border-inline-end: 1px solid var(--accent-deep);
}
.cta-footer-phone:hover { background: var(--accent-deep); color: #fff; }
.cta-footer-whatsapp {
  background: var(--ink-strong);
  color: var(--gold);
}
.cta-footer-whatsapp:hover { background: #1f1a16; color: #fff; }
.cta-footer-icon {
  font-size: 1.1em;
  line-height: 1;
  margin-bottom: 2px;
}
.cta-footer-label {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cta-footer-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  direction: ltr;
  letter-spacing: var(--tracking-mono);
  opacity: 0.92;
}

/* ---------- Tablet+ ---------- */
@media (min-width: 768px) {
  main, footer { max-width: var(--container-max); }

  .hero { max-width: var(--container-reading); padding: var(--space-9) 0 var(--space-7); }
  .hero-headline { font-size: var(--text-4xl); }
  .hero-lede { font-size: 1.4375rem; }
  .case-card { padding: var(--space-6) var(--space-7); }
  .case-card-meta { font-size: var(--text-sm); }
  .cta-primary { font-size: var(--text-md); min-height: 72px; }
  .cta-hero-label { font-size: var(--text-md); }
  .phone-number { font-size: 1.625rem; }

  .trust-row {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0;
  }
  .trust-item {
    border-bottom: 0;
    border-inline-end: 1px dashed var(--rule-hairline);
    padding: var(--space-5) var(--space-6);
  }
  .trust-item:last-child { border-inline-end: 0; }

  .benefits { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .benefit { padding: var(--space-6) var(--space-5); }

  .content-section h2 { font-size: var(--text-2xl); }
  .content-section h2 + p::first-letter,
  .content-section > p:first-of-type::first-letter { font-size: 4em; }

  .article-cards { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .articles-hub { padding: var(--space-8) var(--space-7); }
  .articles-hub-title { font-size: var(--text-2xl); }

  .form-section-inner { padding: var(--space-8) var(--space-7); }
  .form-headline { font-size: var(--text-2xl); }
  .form { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
  .form .form-field-name,
  .form .form-field:nth-child(1) { grid-column: 1 / 2; }
  .form-submit, .form-disclaimer, .thank-you { grid-column: 1 / -1; }

  .article-hero { padding: var(--space-7) 0 var(--space-6); }
  .article-headline { font-size: var(--text-3xl); }

  .faq-title { font-size: var(--text-2xl); }
  .faq summary { font-size: var(--text-lg); }

  .sticky-footer-cta { display: none; }
  footer { padding-bottom: var(--space-8); }
}

/* ---------- Print + reduced motion ---------- */
@media print {
  .sticky-header, .sticky-footer-cta, .form-section { display: none; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  a { color: #000; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
