/* Hill Law PLLC public website — locked brand (navy #1F3864, Sylfaen headings) */

@font-face {
  font-family: Sylfaen;
  src: url("../assets/fonts/Sylfaen.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Literata;
  src: url("../assets/fonts/Literata-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Literata;
  src: url("../assets/fonts/Literata-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1f3864;
  --navy-dark: #152a4a;
  --navy-light: #2a4a7a;
  --gold: #c9a227;
  --gold-soft: #d4b84a;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 8px 28px rgba(15, 23, 42, 0.12);
  --font-heading: Sylfaen, "Times New Roman", Georgia, serif;
  --font-body: Literata, Georgia, "Times New Roman", serif;
  --header-height: 88px;
  --focus-ring: 0 0 0 3px rgba(201, 162, 39, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-light);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.55rem 0.9rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  box-shadow: var(--focus-ring);
}

h1,
h2,
h3,
h4,
.site-title {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.utility-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.utility-bar a {
  color: #fff;
  text-decoration: none;
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
  flex-wrap: wrap;
}

.utility-links a:hover,
.site-footer a.phone-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Plain clickable phone numbers (not buttons / not video-call CTAs) */
a.phone-link {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

a.phone-link:hover {
  text-decoration-thickness: 2px;
}

.hero-phone,
.cta-phone,
.intake-phone,
.atty-phone,
.files-phone {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.hero-intake-card .hero-phone {
  margin-top: 0.75rem;
}

.cta-band .cta-phone {
  margin: 0.85rem 0 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .cta-phone a.phone-link {
  color: #fff;
  font-weight: 700;
}

.intake-phone {
  margin-top: 0.75rem;
}

.intake-phone a.phone-link {
  color: var(--navy);
  font-size: 1.05rem;
}

.site-header-slot {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); /* gentle ease-out drift */
}

body.header-away .site-header {
  transform: translateY(-110%);
  pointer-events: none;
}

/*
 * Header (stable for every language):
 *  Row 1:  [ Logo + title .............. language trapezoid ]
 *  Row 2:  [ ===== Home | Services | Our Attorney | … ===== ]
 * Nav gets a full-width row so it never squeezes into a vertical stack.
 */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand langs"
    "nav nav";
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.55rem;
  /* Restore some blue breathing room (was trimmed too hard) */
  padding: 0.75rem 0 0.85rem;
}

/* Full-size square letterhead + wordmark */
.brand {
  --brand-mark-size: 200px;
  grid-area: brand;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: calc(var(--brand-mark-size) * 0.14);
  text-decoration: none;
  color: #fff;
  min-width: 0;
  overflow: visible;
}

.brand:hover {
  color: #fff;
}

.brand-mark-plate {
  flex: 0 0 auto;
  background: #fff;
  border-radius: calc(var(--brand-mark-size) * 0.08);
  padding: calc(var(--brand-mark-size) * 0.055);
  line-height: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.brand-mark {
  display: block;
  width: var(--brand-mark-size);
  height: var(--brand-mark-size);
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(var(--brand-mark-size) * 0.045);
  min-width: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: calc(var(--brand-mark-size) * 0.22);
  font-weight: 400;
  line-height: 1.08;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: calc(var(--brand-mark-size) * 0.095);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.95;
  white-space: nowrap;
  overflow: visible;
  /* Full label: IMMIGRATION LAW (from “Immigration Law”) */
}

/* Full-width horizontal Home bar (row 2) — never vertical */
.site-nav {
  grid-area: nav;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.35rem;
  width: 100%;
  min-width: 0;
  padding-top: 0.55rem;
  padding-bottom: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-soft);
}

/* Language trapezoid — upper right, on-page, same in every locale */
.header-actions {
  grid-area: langs;
  justify-self: end;
  align-self: center;
  width: min(24rem, 100%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.lang-switcher {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  position: relative;
  top: 0;
  z-index: 2;
  /* Chip order EN ES ZH / PT FR AR stays identical; RTL page must not reverse the trapezoid */
  direction: ltr;
  unicode-bidi: isolate;
}

.lang-row {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  align-items: stretch;
}

.lang-row-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Upside-down trapezoid: 3 centered under 3 (slightly inset) */
.lang-row-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 88%;
  margin-inline: auto;
}

.lang-switcher a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  height: 2.5rem;
  min-height: 2.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  /* Latin + CJK so 中文 metrics match other chips */
  font-family: Literata, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Geeza Pro", "Arabic UI Text", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-switcher a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.lang-switcher a.is-active {
  color: var(--navy-dark);
  background: var(--gold);
  border-color: var(--gold);
}

/* Client Portal / Start Intake — original placement, not moved */
.header-cta {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-cta .btn {
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy-dark);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Secondary on light backgrounds (replaces inline styles) */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  background: #f1f5f9;
  color: var(--navy-dark);
  border-color: #cbd5e1;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dark);
  color: #fff;
}

.btn-text {
  background: transparent;
  border-color: transparent;
  color: var(--navy-light);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  font-weight: 700;
}

.btn-text:hover {
  color: var(--navy);
  text-decoration: underline;
}

/*
 * Locale layout lock: English skeleton is the reference.
 * Only typography / density tweaks per script — not positions.
 */
html[lang="es"] .site-nav,
html[lang="pt"] .site-nav,
html[lang="fr"] .site-nav {
  gap: 0.85rem;
}

html[lang="es"] .site-nav a,
html[lang="pt"] .site-nav a,
html[lang="fr"] .site-nav a {
  font-size: 0.98rem;
  letter-spacing: 0;
}

html[lang="zh-Hans"] {
  --cjk-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Heiti SC", sans-serif;
}

html[lang="zh-Hans"] body {
  font-family: var(--cjk-sans);
  line-height: 1.65;
}

html[lang="zh-Hans"] h1,
html[lang="zh-Hans"] h2,
html[lang="zh-Hans"] h3,
html[lang="zh-Hans"] h4,
html[lang="zh-Hans"] .btn,
html[lang="zh-Hans"] .site-nav a,
html[lang="zh-Hans"] .brand-name,
html[lang="zh-Hans"] .brand-tag,
html[lang="zh-Hans"] .hero-intake-card,
html[lang="zh-Hans"] .card,
html[lang="zh-Hans"] .section-head {
  font-family: var(--cjk-sans);
}

html[lang="zh-Hans"] .brand-tag {
  letter-spacing: 0.05em;
  text-transform: none;
}

html[lang="zh-Hans"] .site-nav {
  gap: 1rem;
}

html[lang="zh-Hans"] .site-nav a {
  letter-spacing: 0;
  font-size: 1.05rem;
}

html[lang="zh-Hans"] .btn {
  letter-spacing: 0;
  line-height: 1.3;
}

html[lang="zh-Hans"] .header-actions,
html[lang="es"] .header-actions,
html[lang="pt"] .header-actions,
html[lang="fr"] .header-actions,
html[lang="ar"] .header-actions {
  flex: 0 0 26rem;
  width: 26rem;
  max-width: 26rem;
}

html[lang="zh-Hans"] .lang-switcher a {
  height: 2.5rem;
  min-height: 2.5rem;
  letter-spacing: 0;
}

.hero {
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(31, 56, 100, 0.06), transparent 55%),
    var(--card);
  border-bottom: 1px solid var(--border);
}

/* Single-column hero — logo lives in the header only */
.hero-grid {
  display: block;
  padding: 3.5rem 0 3.25rem;
  max-width: 40rem;
}

.hero-grid.hero-wide {
  max-width: none;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  margin: 0 0 1rem;
  max-width: 20ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* First-person hero: kicker above; portrait top = Bond, bottom = top of Schedule button */
.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}

.hero-voice {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 1.75rem;
  row-gap: 0.85rem;
  align-items: stretch;
  min-width: 0;
}

/* Let h1 / lead / actions join the voice grid so the portrait can span Bond → button */
.hero-voice .hero-copy {
  display: contents;
}

.hero-portrait {
  grid-column: 1;
  grid-row: 1 / 3;
  margin: 0;
  min-height: 12rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.11);
  background: #e8edf5;
  align-self: stretch;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
}

.hero-voice h1,
.hero-voice .hero-copy h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  max-width: 18ch;
}

.hero-voice .hero-lead {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.hero-voice .hero-actions {
  grid-column: 2;
  grid-row: 3;
  margin: 0.15rem 0 0;
}

@media (max-width: 720px) {
  .hero-voice {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    column-gap: 1.2rem;
    row-gap: 0.75rem;
  }
}

@media (max-width: 520px) {
  .hero-voice {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .hero-portrait {
    grid-column: 1;
    grid-row: 1;
    width: 12.5rem;
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 0;
  }
  .hero-voice h1,
  .hero-voice .hero-copy h1 {
    grid-column: 1;
    grid-row: 2;
  }
  .hero-voice .hero-lead {
    grid-column: 1;
    grid-row: 3;
  }
  .hero-voice .hero-actions {
    grid-column: 1;
    grid-row: 4;
  }
}

/* Home: left copy + right Start Intake card */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 2rem 2.5rem;
  align-items: center;
  padding: 2.75rem 0 2.75rem;
}

.hero-copy {
  min-width: 0;
  max-width: 38rem;
  justify-self: start;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.hero h1,
.hero-copy h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-intake-card {
  justify-self: stretch;
  background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.35rem;
}

.hero-intake-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-intake-card h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  color: var(--navy);
}

.hero-intake-card > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.btn-intake-gold {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.hero-intake-note {
  margin: 0.85rem 0 0 !important;
  font-size: 0.82rem !important;
  color: var(--muted);
  line-height: 1.4;
}


/* Kept for rare pages that still want a logo callout (unused on main home) */
.hero-logo-wrap {
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-logo {
  width: min(240px, 78%);
  margin: 0 auto 0.9rem;
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.08));
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.02em;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt + .section-alt {
  border-top: 0;
  background: linear-gradient(180deg, #f8fafc 0%, var(--card) 100%);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

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

.card p:last-child {
  margin-bottom: 0;
}

.card .btn {
  margin-top: 0.25rem;
}

.featured-card {
  border-color: var(--navy);
  border-width: 2px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.featured-card:hover {
  border-color: var(--navy-dark);
}

.featured-card .badge,
.option-card .badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.why-list li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.why-list strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.value-card {
  margin: 0;
  padding: 1.35rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.value-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.value-card p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.35rem;
  opacity: 0.92;
  max-width: 48ch;
}

.cta-band .btn-primary {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: center;
  align-items: center;
}

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.25rem 0 1.75rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.75rem;
}

.site-footer strong {
  display: block;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-heading {
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

.footer-note {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  opacity: 0.75;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 1.25rem;
}

/* Attorney page */
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.bio-photo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.photo-placeholder {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #e8edf5, #d5deec);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Professional headshot frame (Meet Joseph / attorney page) */
.bio-portrait {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
  background: #e8edf5;
}

.bio-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.bio-mark {
  aspect-ratio: 1;
  background: linear-gradient(160deg, #f8fafc 0%, #e8edf5 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  margin-bottom: 0.9rem;
}

.bio-mark img {
  width: min(160px, 70%);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08));
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.credentials li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

/* Intake page */
.intake-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.intake-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.intake-panel h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.intake-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.intake-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 1.15rem;
  background: #fafbfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.option-card.featured-card {
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.option-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

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

.form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42, 74, 122, 0.15);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.form-status.ok {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.err {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.intake-sidebar .help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.intake-sidebar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.intake-sidebar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Marguerite chat widget */
.marguerite-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.marguerite-launcher:hover {
  background: var(--navy-dark);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.32);
}

.marguerite-launcher:focus-visible {
  box-shadow: var(--focus-ring), 0 8px 24px rgba(15, 23, 42, 0.25);
}

.marguerite-panel {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 200;
  width: min(420px, calc(100vw - 2.5rem));
  max-height: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.marguerite-panel.open {
  display: flex;
}

.marguerite-head {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.marguerite-head strong {
  font-family: var(--font-heading);
}

.marguerite-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.marguerite-intro {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  line-height: 1.35;
}


.marguerite-privacy {
  margin: 0;
  padding: 0.55rem 0.9rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4a5568;
  border-bottom: 1px solid rgba(31, 56, 100, 0.12);
  background: #f7f8fb;
}

.marguerite-quick-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.marguerite-quick-btn {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.marguerite-quick-btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.marguerite-quick-btn:hover:not(:disabled) {
  filter: brightness(0.97);
}

.marguerite-quick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.marguerite-doc-first-band {
  background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-top: 1rem;
}

.marguerite-doc-first-band h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
  color: #fff;
}

.marguerite-doc-first-band p {
  margin: 0 0 1rem;
  color: #dbeafe;
  max-width: 52ch;
}

.marguerite-doc-first-band .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.35rem;
}

.marguerite-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
}

.marguerite-msg {
  margin: 0.35rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  max-width: 92%;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.marguerite-msg.bot {
  background: #e8eef7;
  border: 1px solid #d5e0f2;
}

.marguerite-msg.bot.marguerite-msg-revealing {
  min-height: 2.4rem;
}

.marguerite-sentence {
  animation: margueriteSentenceIn 0.42s ease-out;
}

@keyframes margueriteSentenceIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marguerite-sentence {
    animation: none;
  }
}

.marguerite-msg.user {
  background: #f1f5f9;
  border: 1px solid var(--border);
  margin-left: auto;
  text-align: right;
}

.marguerite-attachments {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  max-height: 4.5rem;
  overflow-y: auto;
}

.marguerite-attachments[hidden] {
  display: none;
}

.marguerite-file-chip {
  font-size: 0.78rem;
  background: #e8eef7;
  border: 1px solid #d5e0f2;
  color: var(--navy);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.marguerite-compose {
  flex: 0 0 auto;
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.marguerite-attach {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  border-radius: 8px;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.marguerite-attach:hover:not(:disabled) {
  background: #f1f5f9;
}

.marguerite-attach:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.marguerite-compose input[type="text"] {
  flex: 1;
  min-width: 0;
}

.marguerite-compose button[type="submit"] {
  padding: 0.55rem 0.85rem;
}

@media (max-width: 900px) {
  .bio-grid,
  .intake-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero-copy h1 {
    max-width: none;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-intake-card {
    max-width: 28rem;
  }


  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "langs"
      "nav";
    justify-items: center;
  }

  .brand {
    --brand-mark-size: 160px;
    justify-self: center;
  }

  .header-actions {
    width: min(24rem, 100%);
    justify-self: center;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 640px) {
  .brand {
    --brand-mark-size: 200px;
  }

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

  .utility-inner {
    justify-content: center;
    text-align: center;
  }

  .hero-grid {
    padding: 2.25rem 0 2rem;
    gap: 1.75rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .site-nav {
    font-size: 0.95rem;
  }

  .site-nav a {
    font-size: 0.95rem;
  }

  .marguerite-launcher {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .marguerite-panel {
    top: 0.75rem;
    right: 0.75rem;
    bottom: 4.75rem;
    width: calc(100vw - 1.5rem);
    border-radius: 10px;
  }

  .marguerite-quick-actions {
    flex-wrap: wrap;
  }

  .marguerite-quick-btn {
    flex: 1 1 calc(50% - 0.25rem);
  }
}

@media (max-width: 480px) {
  .brand {
    --brand-mark-size: 200px;
  }

  .lang-switcher {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .card,
  .why-list li,
  .marguerite-launcher {
    transition: none;
  }

  .btn:active,
  .card:hover,
  .why-list li:hover {
    transform: none;
  }
}


/* Intake survey expansion (Mendoza-net) */
.intake-survey-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}

.intake-survey-actions .btn-text {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.survey-privacy {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f7f9fc;
  border-left: 3px solid var(--gold, #c9a227);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.intake-survey .form-help {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-section h2 {
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--navy, #1F3864);
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.55rem 1rem;
}

.check-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.check-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 500;
  color: var(--text, #1a1a1a);
  margin: 0;
}

.check-item input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.repeat-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem 1.15rem;
  margin: 0 0 1rem;
  background: #fafbfc;
}

.repeat-row legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--navy, #1F3864);
  font-size: 0.95rem;
}

.yn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--navy, #1F3864);
  font-weight: 600;
}

.yn-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  margin: 0;
  color: inherit;
}

.yn-row input[type="radio"] {
  width: auto;
  margin: 0;
}

.field-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.req {
  color: #b45309;
  font-weight: 700;
}

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


/* Upfront fees on bond/removal intake CTAs */
.cta-fee {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.35;
}

.cta-fee-block {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(31, 56, 100, 0.06);
  border: 1px solid rgba(31, 56, 100, 0.12);
}

.cta-fee-block .cta-fee-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.cta-fee-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cta-fee-block li {
  margin-bottom: 0.3rem;
}

.cta-fee-block .cta-fee-line {
  margin: 0.45rem 0 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.svc-cta-stack {
  margin-top: 0.25rem;
}

.svc-cta-stack .btn {
  margin-top: 0.65rem;
}

.intake-tracks {
  margin: 0 0 1.5rem;
}

.intake-tracks-lead {
  margin: 0 0 0.85rem;
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 600;
  max-width: 40rem;
}

.intake-track-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.intake-track-card h3 {
  margin: 0.25rem 0 0.5rem;
  color: var(--navy);
}

.pricing-jump {
  margin: 0.75rem 0 0;
  font-weight: 600;
}

/* Services page — detail cards & pricing outline */
.page-hero-head {
  max-width: 48rem;
}

.page-hero-head h1 {
  margin-bottom: 0.75rem;
}

.svc-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.svc-detail-card h2 {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 0.35rem 0 0.75rem;
}

.svc-includes-h {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 1.1rem 0 0.45rem;
}

.svc-includes {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.svc-includes li {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}


.svc-also-note {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.pricing-outline {
  border: 1px solid rgba(31, 56, 100, 0.12);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 0.8fr);
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid rgba(31, 56, 100, 0.1);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-label h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.pricing-label p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-slot {
  text-align: right;
}

.pricing-amount {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.pricing-row-wide {
  grid-template-columns: 1fr;
}

.pricing-row-stack {
  grid-template-columns: 1fr;
}

.pricing-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.pricing-block {
  border: 1px solid rgba(31, 56, 100, 0.12);
  border-radius: 10px;
  background: rgba(31, 56, 100, 0.03);
  padding: 0.9rem 1rem;
}

.pricing-block-title {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.pricing-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0;
}

.pricing-line-label {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: 0;
}

.pricing-line .pricing-amount {
  flex: 0 0 auto;
  text-align: right;
  font-size: 1.2rem;
  white-space: nowrap;
}

.pricing-avail {
  margin: 0.55rem 0 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-sub {
  margin-top: 0.85rem;
}

.pricing-sub-h {
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.pricing-sub-list {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.pricing-sub-list li {
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.pricing-sub-line {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.pricing-blank {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: #c9a227;
  font-weight: 700;
}

.pricing-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.pricing-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 48rem;
}

@media (max-width: 720px) {
  .pricing-row {
    grid-template-columns: 1fr;
  }
  .pricing-slot {
    text-align: right;
  }
  .pricing-line {
    flex-wrap: wrap;
  }
  .pricing-line .pricing-amount {
    margin-left: auto;
  }
}


/* --------------------------------------------------------------------------
 * Arabic (lang=ar, dir=rtl) — gentle typography + reasonable flip.
 * Lang trapezoid stays LTR-ordered (see .lang-switcher). LTR locales unchanged.
 * -------------------------------------------------------------------------- */
html[lang="ar"] {
  --ar-sans: "Geeza Pro", "Arabic UI Text", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

html[lang="ar"] body,
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .btn,
html[lang="ar"] .site-nav a,
html[lang="ar"] .brand-name,
html[lang="ar"] .brand-tag,
html[lang="ar"] .hero-intake-card,
html[lang="ar"] .card,
html[lang="ar"] .section-head,
html[lang="ar"] .marguerite-launcher,
html[lang="ar"] .marguerite-head strong,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] label {
  font-family: var(--ar-sans);
}

html[lang="ar"] .brand-tag,
html[lang="ar"] .hero-kicker {
  letter-spacing: 0.02em;
  text-transform: none;
}

html[lang="ar"] .site-nav a,
html[lang="ar"] .btn {
  letter-spacing: 0;
}

.lang-switcher a[data-lang="ar"] {
  font-family: "Geeza Pro", "Arabic UI Text", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  letter-spacing: 0;
  gap: 0.28rem;
}

.lang-switcher a[data-lang="ar"] .lang-ar-latin {
  font-family: Literata, Georgia, serif;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Chat dock follows inline-end so it sits at the start-edge in RTL */
html[dir="rtl"] .marguerite-launcher {
  right: auto;
  left: 1.25rem;
}

html[dir="rtl"] .marguerite-panel {
  right: auto;
  left: 1.25rem;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 0.75rem;
}

@media (max-width: 640px) {
  html[dir="rtl"] .marguerite-launcher {
    left: 0.85rem;
    right: auto;
  }
  html[dir="rtl"] .marguerite-panel {
    left: 0.75rem;
    right: auto;
  }
}


