/* ═══════════════════════════════════════════
   TriAlliance — corporate site
   Brand: blue / gold / green tri-mark
   ═══════════════════════════════════════════ */

:root {
  --blue:        #0F3A8C;
  --blue-dark:   #0A2A68;
  --blue-light:  #2A5CC4;
  --gold:        #C4901E;
  --gold-light:  #E0AC38;
  --green:       #2E7D34;
  --green-light: #46A04D;

  --ink:         #10161F;
  --ink-2:       #33415A;
  --ink-3:       #5D6B85;
  --line:        #E2E7F0;
  --bg:          #FFFFFF;
  --bg-alt:      #F6F8FC;

  --wrap:        1160px;
  --r:           14px;
  --shadow-sm:   0 1px 2px rgba(15,58,140,.06), 0 4px 14px rgba(15,58,140,.05);
  --shadow-md:   0 10px 34px rgba(15,58,140,.10);
  --t:           .35s cubic-bezier(.22,.8,.3,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a  { color: var(--blue); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Inter", sans-serif; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* Hidden above the viewport rather than off to the side. A large negative left/right
   offset creates an enormous horizontal scroll on RTL pages, where overflow toward the
   inline-end direction is scrollable. Moving it vertically is direction-agnostic. */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top var(--t);
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

/* ── Brand mark ───────────────────────────── */
/* The mark is an SVG <symbol> coloured via custom properties, which — unlike class
   selectors — inherit reliably into the shadow tree that <use> creates. */
.svg-sprite { position: absolute; }
.brand-mark { width: 44px; height: 44px; flex: none; display: block; }
.brand-mark-lg { width: 68px; height: 68px; }

:root {
  --mark-blue:  var(--blue);
  --mark-gold:  var(--gold);
  --mark-green: var(--green);
}
/* Lift the blue so the mark stays legible on the dark footer. */
.site-footer { --mark-blue: #6E93E0; --mark-green: #4E9B55; --mark-gold: #DCA83A; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.brand-ar { font-size: .74rem; color: var(--blue); letter-spacing: .06em; }
.brand-en { font-size: 1.2rem; font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.brand-en b { font-weight: 700; color: var(--blue); }

/* ── Header ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 20px rgba(15,58,140,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:not(.btn):hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--blue); }
.nav-cta { color: #fff !important; }

/* Language switch — set apart from the section links so it doesn't read as one. */
.lang-switch {
  font-weight: 600; color: var(--blue) !important;
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 14px !important; font-size: .88rem; line-height: 1.4;
  transition: border-color var(--t), background var(--t);
}
.lang-switch:hover { border-color: var(--blue); background: rgba(15,58,140,.05); }
.lang-switch::after { display: none !important; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .97rem; font-weight: 600; letter-spacing: .01em; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  font-family: inherit;
}
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(15,58,140,.24); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(15,58,140,.30); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ── Hero ─────────────────────────────────── */
/* Photographic hero: image, then a scrim, then content. The base colour shows while the
   photo loads so the white text is never briefly invisible on white. */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(48px, 6vw, 76px);
  background: #0A2455;
}

.hero-photo { position: absolute; inset: 0; z-index: 0; }
/* 78% frames the horizon glow and the tower rather than empty upper sky. */
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 78%;
  pointer-events: none; user-select: none;
}

/* Heavy enough on the left for white text to pass contrast, light enough on the right
   that the sunset still reads as a photograph rather than a navy block. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,20,48,.90) 0%, rgba(6,20,48,.72) 38%, rgba(6,20,48,.34) 62%, rgba(6,20,48,.12) 100%),
    linear-gradient(180deg, rgba(6,20,48,.50) 0%, rgba(6,20,48,0) 30%, rgba(6,20,48,0) 62%, rgba(8,24,56,.62) 100%);
}

.hero-bg {
  position: absolute; inset: -10% -5% auto auto; width: min(760px, 78vw); aspect-ratio: 1;
  opacity: .22; pointer-events: none; z-index: 2;
}
.hero-bg svg { width: 100%; height: 100%; }
.hb-1 { fill: none; stroke: var(--gold);  stroke-width: 1.2; opacity: .40; }
.hb-2 { fill: none; stroke: var(--green); stroke-width: 1.2; opacity: .32; }
.hb-3 { fill: none; stroke: var(--blue);  stroke-width: 1.2; opacity: .26; }

.hero-inner { position: relative; z-index: 3; max-width: 880px; }
.hero .wrap { position: relative; z-index: 3; }

/* Light-on-dark treatment for the hero only — the rest of the page stays dark-on-white. */
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.92); }
.hero .hero-sub { color: rgba(255,255,255,.74); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(4px);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}

/* Brand gradient, lightened — the print-weight blue and green go muddy on dark ground. */
.grad {
  background: linear-gradient(100deg, #7FA9F5 0%, #6FCB7A 50%, #F0C25E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tag-blue  { color: #8FB6F7; }
.hero .tag-green { color: #7ED389; }
.hero .tag-gold  { color: #F2C868; }

/* Ghost button needs to read against the photo rather than against white. */
.hero .btn-ghost {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.42); color: #fff;
  backdrop-filter: blur(4px);
}
.hero .btn-ghost:hover { background: rgba(255,255,255,.20); border-color: #fff; color: #fff; }

.hero-tagline {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; margin: 20px 0 30px;
}
.tag-blue  { color: var(--blue); }
.tag-green { color: var(--green); }
.tag-gold  { color: var(--gold); }

.lede { font-size: clamp(1.06rem, 1.7vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.hero-sub { color: var(--ink-3); max-width: 66ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ── Pillars ──────────────────────────────── */
.pillars {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(56px, 8vw, 88px);
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.pillar {
  display: flex; align-items: center; gap: 16px; padding: 26px 30px;
  border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: 0; }
/* align-items keeps the RTL Arabic label flush with the English one above it */
.pillar div { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.pillar-en { font-weight: 700; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; font-size: .93rem; }
.pillar-ar { font-size: .95rem; }

.pillar-icon { width: 34px; height: 34px; flex: none; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pillar-blue  .pillar-icon, .pillar-blue  .pillar-ar { stroke: var(--blue);  color: var(--blue); }
.pillar-green .pillar-icon, .pillar-green .pillar-ar { stroke: var(--green); color: var(--green); }
.pillar-gold  .pillar-icon, .pillar-gold  .pillar-ar { stroke: var(--gold);  color: var(--gold); }

/* ── Section scaffolding ──────────────────── */
.section { padding: clamp(72px, 10vw, 124px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-sub { color: var(--ink-3); font-size: 1.06rem; }

.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); flex: none; }

/* ── Cards ────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 38px 32px 34px; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--blue); }
.card.accent-green::before { background: var(--green); }
.card.accent-gold::before  { background: var(--gold); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-num {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-3); opacity: .55; margin-bottom: 10px;
}
.card h3 { margin-bottom: .7em; }
.accent-blue  h3 { color: var(--blue); }
.accent-green h3 { color: var(--green); }
.accent-gold  h3 { color: #9E7314; }
.card p { font-size: .98rem; color: var(--ink-3); }

/* ── Steps ────────────────────────────────── */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  display: grid; grid-template-columns: 74px 1fr; gap: 26px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line); color: var(--blue);
  font-weight: 700; font-size: 1.1rem; transition: var(--t);
}
.step:hover .step-num { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.06); }
.step-body h3 { margin-bottom: .35em; }
.step-body p { color: var(--ink-3); max-width: 70ch; margin: 0; }

/* ── Tiles ────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.tile {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 26px 26px 58px; font-size: 1rem; color: var(--ink-2);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.tile::before {
  content: ""; position: absolute; left: 26px; top: 32px; width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.tile:nth-child(3n+2)::before { background: linear-gradient(135deg, var(--green), var(--gold)); }
.tile:nth-child(3n+3)::before { background: linear-gradient(135deg, var(--gold), var(--blue)); }
.tile:hover { transform: translateY(-3px); border-color: var(--blue-light); box-shadow: var(--shadow-md); }

/* ── Dark value section ───────────────────── */
/* Photograph sits beneath the gradient, not beside it — the gradient carries the colour
   and the image only adds depth, so text contrast is unaffected by the picture. */
.section-dark {
  background:
    linear-gradient(160deg, rgba(10,42,104,.94) 0%, rgba(12,47,115,.90) 55%, rgba(10,36,85,.96) 100%),
    /* Riyadh skyline. Deliberately a frame with no third-party signage in it — a
       readable company name behind our copy could read as an implied association. */
    url("riyadh-skyline.jpg") center 40% / cover no-repeat,
    var(--blue-dark);
  color: rgba(255,255,255,.78);
  position: relative; overflow: hidden;
}
.section-dark::after {
  content: ""; position: absolute; right: -8%; bottom: -22%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(196,144,30,.20), transparent 68%);
  pointer-events: none;
}
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--gold-light); }
.section-dark .kicker::before { background: var(--green-light); }
.section-dark .section-sub { color: rgba(255,255,255,.72); }

.value-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r); overflow: hidden;
}
.value-grid li {
  background: rgba(255,255,255,.03); padding: 24px 26px; font-weight: 500; color: #fff;
  font-size: 1rem; display: flex; align-items: center; gap: 12px;
  transition: background var(--t);
}
.value-grid li::before {
  content: ""; width: 8px; height: 8px; flex: none; border-radius: 2px;
  background: var(--gold-light); transform: rotate(45deg);
}
.value-grid li:hover { background: rgba(255,255,255,.10); }

/* ── Why + Commitment ─────────────────────── */
.why-layout { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-copy p { color: var(--ink-3); }
.why-copy h2 { margin-bottom: .6em; }

.commitment {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r);
  padding: 36px 34px; position: sticky; top: 108px;
}
.commitment-list { display: grid; gap: 20px; }
.commitment-list li {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.commitment-list em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.dot { width: 12px; height: 12px; flex: none; border-radius: 3px; transform: rotate(45deg); }
.dot-blue  { background: var(--blue); }
.dot-green { background: var(--green); }
.dot-gold  { background: var(--gold); }

/* ── Contact ──────────────────────────────── */
.contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.contact-copy p { color: var(--ink-3); }
.contact-details { display: grid; gap: 18px; margin: 32px 0 0; }
.contact-details dt { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact-details dd { margin: 4px 0 0; font-size: 1.05rem; color: var(--ink); font-weight: 500; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15,58,140,.10);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #C0392B; }

/* Honeypot — clipped rather than display:none (which some bots skip) and rather than
   pushed off-screen with a big negative offset, which would break RTL as above. */
.hp {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.form-foot { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .9rem; color: var(--green); font-weight: 500; }
.form-note.error { color: #C0392B; }
.form-note.pending { color: var(--ink-3); }

.contact-form.is-sending { opacity: .75; pointer-events: none; }
#formSubmit[disabled] { opacity: .6; cursor: not-allowed; }

/* ── Footer ───────────────────────────────── */
.site-footer { background: #08203F; color: rgba(255,255,255,.62); padding: 62px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-tag { margin: 0; font-size: .95rem; color: rgba(255,255,255,.80); line-height: 1.6; }
.footer-tag span { color: var(--gold-light); font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: center; }
/* Vertical padding gives a ~44px touch target without changing the visual rhythm;
   the negative margin keeps the row from growing taller than the text implies. */
.footer-nav a {
  color: rgba(255,255,255,.68); font-size: .93rem; transition: color .2s;
  display: inline-block; padding: 9px 0; margin: -9px 0;
}
.footer-nav a:hover { color: #fff; }
.footer-base {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  font-size: .85rem; color: rgba(255,255,255,.45);
}
.footer-base p { margin: 0; }

/* ── Reveal on scroll ─────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Stagger steps, applied by script.js to siblings within a grid or list. */
.rd-0 { transition-delay: 0ms; }
.rd-1 { transition-delay: 70ms; }
.rd-2 { transition-delay: 140ms; }
.rd-3 { transition-delay: 210ms; }
.rd-4 { transition-delay: 280ms; }
.rd-5 { transition-delay: 350ms; }
.rd-6 { transition-delay: 420ms; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 940px) {
  .why-layout, .contact-layout { grid-template-columns: 1fr; }
  .commitment { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); padding: 8px 24px 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: var(--t); max-height: calc(100vh - 78px); overflow-y: auto;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; border-bottom: 0 !important; }
}

@media (max-width: 700px) {
  /* The phone variant is a portrait crop, so it needs its own framing and a stronger
     scrim — the hero is much taller relative to its width here. */
  .hero-photo img { object-position: center 72%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(6,20,48,.86) 0%, rgba(6,20,48,.62) 40%, rgba(6,20,48,.55) 70%, rgba(8,24,56,.80) 100%);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .step { grid-template-columns: 52px 1fr; gap: 18px; }
  .step-num { width: 46px; height: 46px; font-size: 1rem; }
  .contact-form { grid-template-columns: 1fr; padding: 26px 22px; }
  .card { padding: 30px 24px; }
  .footer-inner { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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

@media print {
  .site-header, .nav-toggle, .hero-bg, .contact-form { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { font-size: 12pt; }
}
