/* BASTEVOR SYSTEMS – site styles
   All sizes are in rem so the accessibility text-size control scales the whole page.
   Colours are tokens; high-contrast mode only redefines tokens. */

:root {
  --ink-900: #060b12;
  --ink-800: #0a121d;
  --ink-700: #0f1a27;
  --ink-600: #152436;
  --ink-500: #1d3049;
  --paper: #f7f6f3;
  --paper-2: #eceef0;
  --surface: #ffffff;
  --text: #17212c;
  --text-muted: #4c5a69;
  --line: #dfe3e8;
  --on-dark: #eef2f6;
  --on-dark-muted: #cfd8e2;
  --line-dark: rgba(255, 255, 255, .14);
  --gold: #d2ab76;          /* accents on dark backgrounds (≥ 8:1) */
  --gold-strong: #c39a62;   /* button background, dark text on it (≥ 7:1) */
  --gold-hover: #ddb985;
  --gold-ink: #7a5726;      /* gold text on light backgrounds (≥ 5.5:1) */
  --focus: #ffbf3c;
  --success: #1f7a4d;
  --error: #b3261e;
  --radius: .25rem;
  --radius-lg: .5rem;
  --shadow: 0 1.25rem 2.75rem rgba(9, 24, 39, .16);
  --container: 75rem;
  --header-h: 4.75rem;
  --font: "Heebo", "Noto Sans Hebrew", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: calc(100% * var(--font-scale, 1));
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .75rem; font-weight: 800; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--gold-strong); color: var(--ink-900); }

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed; inset-inline-start: .75rem; top: -6rem; z-index: 1000;
  background: #fff; color: #111; padding: .75rem 1rem; border: 3px solid var(--gold-ink);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-strong); color: var(--ink-900); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: #fff; }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { background: #18773f; }
.btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 13, 20, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark); color: var(--on-dark);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo svg { width: 2.6rem; height: 2.9rem; flex: none; }
.brand { direction: ltr; text-align: left; font-weight: 900; font-size: 1.3rem; letter-spacing: .18em; line-height: 1.15; }
.brand small { display: block; direction: rtl; text-align: left; font-size: .7rem; font-weight: 500; letter-spacing: .12em; color: var(--gold); }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--gold); border-color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-actions .btn { min-height: 2.6rem; padding: .55rem 1.1rem; font-size: .95rem; }
.menu-toggle {
  display: none; width: 2.75rem; height: 2.75rem; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 1.4rem; height: 1.4rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(44rem, 92vh); display: flex; align-items: center;
  padding: 6rem 0 5rem; background: var(--ink-800); color: var(--on-dark);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: left center;
  animation: hero-zoom 18s ease-out both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(8, 14, 23, .97) 0%, rgba(8, 14, 23, .9) 38%, rgba(8, 14, 23, .45) 72%, rgba(8, 14, 23, .2) 100%),
    linear-gradient(to top, var(--ink-800) 0%, transparent 35%);
}
.hero-content { max-width: 40rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: 1rem; font-weight: 700; color: var(--gold); letter-spacing: .02em; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.02em; line-height: 1.12; margin-bottom: 1.25rem; }
.hero h1 .eyebrow { display: flex; width: fit-content; line-height: 1.5; letter-spacing: .02em; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-dark-muted); line-height: 1.9; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-area { display: flex; align-items: center; gap: .5rem; margin: 1.25rem 0 0; color: var(--on-dark-muted); }
.hero-area svg { width: 1.2rem; height: 1.2rem; color: var(--gold); flex: none; }
.hero-area strong { color: #fff; }
.hero > .container > * { animation: rise .8s ease both; }
.trust {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem;
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); list-style: none;
  max-width: 46rem;
}
.trust li { border-inline-start: 2px solid var(--gold); padding-inline-start: 1rem; color: var(--on-dark-muted); font-size: .95rem; line-height: 1.6; }
.trust strong { display: block; color: #fff; font-size: 1rem; margin-bottom: .2rem; }

@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-dark { background: var(--ink-700); color: var(--on-dark); }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.kicker {
  display: inline-block; font-size: 1rem; font-weight: 800; color: var(--gold-ink);
  letter-spacing: .02em; margin-bottom: .5rem;
}
.kicker::after { content: ""; display: block; width: 3rem; height: 2px; background: currentColor; margin: .45rem auto 0; }
.section-dark .kicker { color: var(--gold); }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
.section-head p:not(.kicker) { color: var(--text-muted); line-height: 1.9; margin: 0; }
.section-dark .section-head p:not(.kicker) { color: var(--on-dark-muted); }

/* ---------- Services ---------- */
/* align-items: start so opening one card's "מה כלול?" doesn't stretch its row neighbours */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; align-items: start; }
.service-card {
  height: 100%; background: var(--ink-600); border: 1px solid #33465c; border-radius: var(--radius);
  overflow: hidden; transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-.4rem); border-color: var(--gold); box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .35); }
.service-card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-500); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover img { transform: scale(1.04); }
.service-card { display: flex; flex-direction: column; }
.service-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.25rem; color: #fff; margin-bottom: .4rem; }
.service-body p { color: var(--on-dark-muted); margin: 0; font-size: .98rem; line-height: 1.8; min-height: calc(3 * 1.8 * .98rem); }
.service-more { margin-top: 1rem; border-top: 1px solid var(--line-dark); }
.service-more summary {
  list-style: none; cursor: pointer; padding: .7rem 0 .2rem; font-weight: 700; color: var(--gold);
  display: flex; justify-content: space-between; align-items: center;
}
.service-more summary::-webkit-details-marker { display: none; }
.service-more summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.service-more[open] summary::after { content: "−"; }
.service-more ul { list-style: none; display: grid; gap: .35rem; padding: .4rem 0 0; color: var(--on-dark-muted); font-size: .95rem; line-height: 1.6; }
.service-more li { display: flex; gap: .55rem; }
.service-more li::before { content: "✓"; color: var(--gold); font-weight: 700; flex: none; }
.service-cta {
  margin-top: auto; padding-top: 1rem; align-self: flex-start; color: #fff; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .35em; text-decoration-thickness: 2px;
}
.service-cta::after { content: " ←"; color: var(--gold); }
.service-cta:hover { color: var(--gold); }

.consult-banner {
  display: flex; align-items: center; gap: 1.75rem;
  margin-top: 2.25rem; padding: 2rem 2.4rem; border: 1px solid var(--gold-strong);
  background: linear-gradient(120deg, rgba(210, 171, 118, .16), rgba(210, 171, 118, .04) 55%), #111d2b;
  border-radius: var(--radius);
}
.consult-banner > div { flex: 1; }
.consult-icon { width: 3.25rem; height: 3.25rem; flex: none; color: var(--gold); }
.consult-banner h3 { font-size: 1.6rem; color: #fff; margin: .25rem 0 .5rem; }
.consult-banner p { color: var(--on-dark-muted); max-width: 46rem; margin-bottom: .4rem; }
.consult-banner small { color: var(--on-dark-muted); font-size: .9rem; }
.consult-banner .kicker::after { margin-inline: 0; }
.consult-banner .btn { flex: none; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-split { align-items: center; }
.about-text .kicker::after { margin-inline: 0; }
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.35; }
.about-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 560 / 441; background: var(--ink-600); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 em { font-style: normal; color: var(--gold-ink); }
.about-text p { color: var(--text-muted); }
.audience { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; list-style: none; }
.audience li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 2rem;
  padding: .35rem 1rem; font-size: .95rem; font-weight: 600;
}
/* ---------- Expertise ---------- */
.about-text p { font-size: 1.08rem; line-height: 1.95; }
.expert-lead { max-width: 46rem; margin: 0 auto 2.25rem; text-align: center; }
.expert-lead h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.35; margin: 0 0 .9rem; }
.expert-lead h2 em { font-style: normal; color: var(--gold); }
.expert-lead p:not(.kicker) { color: var(--on-dark-muted); line-height: 1.9; margin: 0; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; list-style: none; }
.tags li { border: 1px solid #8f7a5c; color: #ead3b0; background: rgba(210, 171, 118, .08); padding: .25rem .8rem; font-size: .88rem; border-radius: 2rem; }
.expert-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; }
.expert-card {
  background: var(--ink-600); border: 1px solid #33465c; border-top: 3px solid var(--gold-strong);
  border-radius: var(--radius); padding: 1.9rem 1.75rem; transition: transform .35s, border-color .35s;
}
.expert-card:hover { transform: translateY(-.4rem); border-color: var(--gold); }
.expert-num { display: block; color: var(--gold); font-size: 2rem; font-weight: 900; line-height: 1.2; margin-bottom: .5rem; }
.expert-card h3 { font-size: 1.2rem; color: #fff; }
.expert-card p { color: var(--on-dark-muted); margin: 0; line-height: 1.85; font-size: .98rem; }

/* ---------- Team (from config.team) ---------- */
.team { margin-top: clamp(3rem, 6vw, 4.5rem); }
.team-title { font-size: clamp(1.5rem, 2.8vw, 2rem); text-align: center; margin-bottom: 2rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; list-style: none; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; text-align: center; }
.team-photo {
  position: relative; width: 8rem; height: 8rem; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden;
  background: var(--ink-600); color: var(--gold); display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  border: 3px solid var(--gold-strong);
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.2rem; margin: 0 0 .15rem; }
.team-role { color: var(--gold-ink); font-weight: 700; font-size: .95rem; margin-bottom: .6rem; }
.team-bio { color: var(--text-muted); font-size: .95rem; line-height: 1.75; margin: 0; }

/* ---------- Process ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
/* A gold line behind the cards: it only shows in the gaps, so the steps read as one sequence */
.steps::before { content: ""; position: absolute; top: 3.1rem; inset-inline: 2rem; height: 2px; background: var(--gold-strong); }
.step { z-index: 1; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold-strong);
  border-radius: var(--radius); padding: 1.75rem 1.5rem; counter-increment: step; transition: transform .35s, border-color .35s, box-shadow .35s;
}
.step:hover { transform: translateY(-.4rem); border-color: var(--gold-strong); box-shadow: var(--shadow); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2.1rem; font-weight: 900; color: var(--gold-ink); line-height: 1.2; margin-bottom: .6rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-muted); margin: 0; font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.faq details[open] { border-color: var(--gold-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.5rem; font-weight: 700; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-ink); }
.faq summary::after {
  content: ""; width: .7rem; height: .7rem; flex: none; border: solid var(--gold-ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-.2rem); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-.1rem); }
.faq details p { padding: 0 1.5rem 1.25rem; margin: 0; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { background: var(--ink-800); color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-info h3 { font-size: 1.6rem; }
.contact-info > p { color: var(--on-dark-muted); }
.channels { list-style: none; display: grid; gap: .75rem; margin-top: 1.75rem; }
.channel {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; text-decoration: none;
  background: var(--ink-600); border: 1px solid #33465c; border-radius: var(--radius); transition: border-color .2s;
}
.channel:hover { border-color: var(--gold); }
.channel svg { width: 1.5rem; height: 1.5rem; color: var(--gold); flex: none; }
.channel small { display: block; color: var(--on-dark-muted); font-size: .85rem; }
.channel strong { direction: ltr; unicode-bidi: isolate; }
.contact-points { list-style: none; margin-top: 1.75rem; display: grid; gap: .6rem; color: var(--on-dark-muted); }
.contact-points li { display: flex; gap: .7rem; align-items: baseline; }
.contact-points li::before { content: ""; width: .5rem; height: .5rem; flex: none; background: var(--gold); transform: rotate(45deg) translateY(-.1rem); }

.form-eta {
  display: flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; padding: .7rem .9rem;
  background: #f4ede2; border-inline-start: 3px solid var(--gold-strong); border-radius: var(--radius); font-weight: 700; font-size: .95rem;
}
.form-eta svg { width: 1.2rem; height: 1.2rem; color: var(--gold-ink); flex: none; }
.form { background: var(--surface); color: var(--text); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #b9c3cf; border-radius: var(--radius);
  background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-ink); box-shadow: 0 0 0 3px rgba(195, 154, 98, .3); outline: none; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input[type="tel"] { direction: ltr; text-align: right; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; margin-top: .3rem; font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .35rem; flex: none; accent-color: var(--gold-ink); }
.consent a, .form-note a { color: var(--gold-ink); }
.form .btn { width: 100%; }
.form-note { font-size: .85rem; color: var(--text-muted); margin: .9rem 0 0; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status.ok { background: #e7f4ec; color: var(--success); }
.form-status.err { background: #fbeceb; color: var(--error); }
.form-status textarea { width: 100%; min-height: 8rem; margin-top: .6rem; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 400; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--on-dark-muted); padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .footer-cta { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .92rem; margin-top: .4rem; text-decoration: none; }
.site-footer .footer-cta:hover { color: var(--ink-900); text-decoration: none; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand p { max-width: 24rem; margin-top: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); font-size: .88rem; }

/* ---------- Floating controls ---------- */
.fab-whatsapp {
  position: fixed; inset-inline-start: 1rem; bottom: 1rem; z-index: 60;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center;
  background: #1f8f4e; color: #fff; box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3); transition: transform .2s;
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp svg { width: 1.9rem; height: 1.9rem; }

.mobile-cta { display: none; }

.a11y { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 60; }
.a11y-toggle {
  display: flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: 2rem;
  background: #fff; color: var(--ink-700); border: 2px solid var(--ink-600); font-weight: 700;
  box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .25);
}
.a11y-toggle svg { width: 1.3rem; height: 1.3rem; }
.a11y-panel {
  position: absolute; bottom: calc(100% + .6rem); inset-inline-end: 0; width: 15rem;
  background: #fff; color: var(--text); border: 2px solid var(--ink-600); border-radius: var(--radius-lg);
  padding: 1rem; box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .3);
}
.a11y-panel h2 { font-size: 1rem; margin-bottom: .5rem; }
.a11y-panel button {
  display: block; width: 100%; text-align: start; margin-top: .45rem; padding: .5rem .7rem;
  background: var(--paper-2); border: 1px solid #a3b0bf; border-radius: var(--radius); color: var(--text);
}
.a11y-panel button[aria-pressed="true"] { background: var(--ink-600); color: #fff; border-color: var(--ink-600); }

/* ---------- Legal dialog ---------- */
.legal-dialog {
  width: min(56rem, 100% - 1rem); max-height: min(88vh, 60rem); padding: 0;
  border: 1px solid var(--gold-strong); border-radius: var(--radius-lg);
  background: var(--ink-700); color: var(--on-dark); box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .6);
}
.legal-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.legal-dialog .dialog-close {
  position: sticky; top: .75rem; float: left; margin: .75rem; width: 2.5rem; height: 2.5rem;
  border-radius: 50%; border: 0; background: var(--gold-strong); color: var(--ink-900); font-size: 1.6rem; line-height: 1;
}
.legal-body { padding: 2.25rem clamp(1.1rem, 4vw, 2.5rem) 2rem; line-height: 1.9; }
.legal-body h2 { font-size: 1.9rem; color: var(--gold); }
.legal-body h3 { font-size: 1.2rem; color: var(--gold); margin-top: 1.75rem; }
.legal-body p, .legal-body li { color: var(--on-dark); font-size: 1rem; }
.legal-body .updated { color: var(--on-dark-muted); }
.legal-body ul { padding-inline-start: 1.5rem; }
.legal-body a { color: var(--gold); }
body.dialog-open { overflow: hidden; }

/* ---------- Scroll reveal (enabled by JS only when motion is allowed) ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .7s ease, transform .7s ease; }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Accessibility modes ---------- */
body.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
body.a11y-contrast {
  --ink-900: #000; --ink-800: #000; --ink-700: #000; --ink-600: #000; --ink-500: #000;
  --paper: #fff; --paper-2: #fff; --surface: #fff; --text: #000; --text-muted: #000;
  --on-dark: #fff; --on-dark-muted: #fff; --gold: #ffd84d; --gold-ink: #000; --gold-strong: #ffd84d; --gold-hover: #fff;
  --line: #000; --line-dark: #fff;
}
body.a11y-contrast .service-card, body.a11y-contrast .expert-card, body.a11y-contrast .team-card,
body.a11y-contrast .channel, body.a11y-contrast .consult-banner { border: 2px solid #fff; background: #000; }
body.a11y-contrast .step, body.a11y-contrast .faq details, body.a11y-contrast .audience li { border: 2px solid #000; }
body.a11y-contrast .hero::before { background: rgba(0, 0, 0, .9); }
body.a11y-contrast .site-header { background: #000; }

/* ---------- Responsive ---------- */
@media (max-width: 62rem) {
  .nav-links { gap: 1.1rem; }
  .nav-actions .btn-call { padding: .55rem .7rem; }
  .nav-actions .btn-call span { display: none; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  :root { --header-h: 4.25rem; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-primary { display: none; }
  .nav-links {
    display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0;
    background: var(--ink-800); border-bottom: 1px solid var(--line-dark); padding: .5rem 1rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: .85rem .25rem; border-bottom: 1px solid var(--line-dark); }
  .split, .expert-cards, .contact-grid { grid-template-columns: 1fr; }
  .mobile-cta {
    display: flex; gap: .5rem; position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(8, 13, 20, .96);
    border-top: 1px solid var(--line-dark); box-shadow: 0 -.5rem 1.5rem rgba(0, 0, 0, .3);
  }
  .mobile-cta[hidden] { display: none; }
  .mobile-cta .btn { flex: 1 1 0; min-height: 2.9rem; padding: .55rem .4rem; gap: .35rem; font-size: .9rem; white-space: nowrap; }
  .mobile-cta .btn:hover { transform: none; }
  body.has-mobile-cta { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  body.has-mobile-cta .fab-whatsapp { display: none; }
  body.has-mobile-cta .a11y { bottom: calc(4.9rem + env(safe-area-inset-bottom)); }
  .consult-banner { flex-direction: column; align-items: stretch; padding: 1.5rem; }
  .hero { min-height: 36rem; padding: 4.5rem 0 4rem; }
  .hero::before { background: linear-gradient(to left, rgba(8, 14, 23, .95), rgba(8, 14, 23, .78)), linear-gradient(to top, var(--ink-800), transparent 40%); }
}
@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .services-grid, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-actions .hero-explore { display: none; }
  .service-body p { min-height: 0; }
  .consult-icon { display: none; }
  .expert-card { padding: 1.6rem; }
  .brand { font-size: 1.1rem; }
  .a11y-toggle span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .a11y, .fab-whatsapp, .mobile-cta, .hero-media, .form, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section-dark, .contact, .hero { background: #fff; color: #000; }
}

/* ---------- Lead form extras ---------- */
.field .optional { font-weight: 400; color: var(--text-muted); font-size: .85rem; }
.field input[type="email"] { direction: ltr; text-align: right; }
.turnstile:not(:empty) { margin-bottom: 1rem; }
.form-status:focus { outline: none; }
.form-status p { margin: .75rem 0 0; font-weight: 400; }
.form-status .btn { width: auto; min-height: 2.5rem; padding: .5rem 1rem; margin-inline-start: .25rem; }
