/* ==========================================================================
   فارس محمد سعيد الكندي للاستشارات الهندسية — main stylesheet
   One file, mobile-first. Logical properties (inline/block) are used
   throughout so an LTR (English) version can reuse it with dir="ltr".
   ========================================================================== */

/* ---------- Fonts (self-hosted, OFL) ----------
   Body: IBM Plex Sans Arabic. Display headings: Readex Pro (variable).
   To switch to Thmanyah (see README), add its @font-face rules here and put
   "Thmanyah Sans" / "Thmanyah Serif Display" first in --font-body / --font-serif. */
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-arabic-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-arabic-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plex-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}
@font-face {
  font-family: "Readex Display";
  src: url("../fonts/readex-arabic-var.woff2") format("woff2");
  font-weight: 160 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Readex Display";
  src: url("../fonts/readex-latin-var.woff2") format("woff2");
  font-weight: 160 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-200B, U+2012-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215;
}

/* ---------- Tokens ---------- */
:root {
  /* brand colours sampled from the FK logo */
  --navy: #15344a;
  --gold: #d9ab70;
  --gold-ink: #8a6430;       /* gold dark enough for small text on white (5.3:1) */
  /* clean, airy ground */
  --paper: #ffffff;
  --paper-2: #f5f6f7;        /* alternating sections */
  --ink: #2c3a44;            /* body text (11.7:1) */
  --heading: var(--navy);
  --muted: #5f6b74;          /* secondary text (5.5:1 on white, 5.0:1 on --paper-2) */
  --rule: #e4e7ea;           /* hairlines */
  --rule-strong: #cfd5da;
  --on-dark: #f5f6f7;
  --on-dark-muted: #b8c3cc;
  --rule-dark: #2f4c61;
  --error: #9c3b2e;
  --ok: #2f6b4a;

  --font-body: "Plex Arabic", "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", sans-serif;
  --font-serif: "Readex Display", "Plex Arabic", "Segoe UI", Tahoma, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;       /* 17px body */
  --step-1: 1.1875rem;
  --step-2: clamp(1.25rem, 1.15rem + .4vw, 1.45rem);
  --step-3: clamp(1.85rem, 1.45rem + 1.6vw, 2.8rem);   /* section titles */
  --step-4: clamp(2.2rem, 1.6rem + 2.4vw, 3.3rem);     /* hero */

  --gutter: 1.25rem;
  --max: 72rem;
  --radius: 10px;
  --header-h: 6.4rem;  /* sticky header height (mobile: brand row + nav row) */
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }
@media (min-width: 60rem) { :root { --header-h: 4.5rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + .5rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* Letter-spacing stays 0: tracking breaks joined Arabic letters. */
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 700; line-height: 1.5; margin: 0; letter-spacing: 0; color: var(--heading); }
p { margin: 0 0 1em; }
p:last-child { margin-block-end: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
::selection { background: var(--navy); color: #fff; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.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;
}
.skip-link {
  position: absolute; inset-inline-start: var(--gutter); inset-block-start: -10rem;
  z-index: 100; padding: .6rem 1rem; background: var(--navy); color: #fff; border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { inset-block-start: .75rem; outline-color: var(--gold); }

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

/* ---------- Eyebrow label above section titles ---------- */
.sheet-label {
  display: flex; align-items: center; gap: .5rem;
  margin: 0 0 .5rem;
  font-size: var(--step--1); font-weight: 700; color: var(--muted); line-height: 1.8;
}
.sheet-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.dark .sheet-label { color: var(--on-dark-muted); }

/* ---------- Header (sticky, translucent) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--rule);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule), 0 10px 30px -18px rgba(21, 52, 74, .25); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #fff; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 0 var(--navy); }
}
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; padding-block: .5rem; text-decoration: none; color: var(--heading); }
.brand img { width: auto; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.brand-name { font-weight: 700; font-size: .9375rem; }
.brand-sub { font-size: .75rem; color: var(--muted); line-height: 1.4; }
.btn.header-cta { display: none; }

.site-nav { border-block-start: 1px solid var(--rule); margin-inline: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); }
.site-nav ul {
  list-style: none; display: flex; justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none;
  padding-inline: calc(var(--gutter) - .6rem);
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block; padding: .5rem .6rem .7rem; white-space: nowrap; text-decoration: none;
  font-size: .9375rem; font-weight: 400; color: var(--muted); position: relative; line-height: 1.6;
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--heading); }
.site-nav a:active { opacity: .6; transition: opacity 0s; }
.site-nav a[aria-current] { color: var(--heading); font-weight: 500; }
/* active section: a small gold dot under the label */
.site-nav a[aria-current]::after {
  content: ""; position: absolute; inset-inline-start: 50%; inset-block-end: .2rem;
  width: 5px; height: 5px; margin-inline-start: -2.5px; border-radius: 50%; background: var(--gold);
}
@media (min-width: 60rem) {
  .site-header .wrap { flex-wrap: nowrap; min-height: var(--header-h); }
  .brand img { height: 44px; }
  .site-nav { width: auto; margin: 0; margin-inline: auto; border: 0; }
  .site-nav ul { padding: 0; overflow: visible; gap: .5rem; }
  .site-nav a { padding-block: 1.35rem; font-size: .96875rem; }
  .site-nav a[aria-current]::after { inset-block-end: .75rem; }
  .btn.header-cta { display: inline-flex; min-height: 2.5rem; padding-block: .25rem; font-size: .875rem; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 2.875rem; padding: .45rem 1.4rem;
  border: 1px solid var(--navy); border-radius: var(--radius);
  background: var(--navy); color: #fff;
  font: 700 .9375rem/1.8 var(--font-body); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #0e2739; border-color: #0e2739; }
.btn:active { transform: scale(.97); transition: transform .1s ease-out; }
.btn[disabled] { opacity: .6; cursor: progress; }
.dark .btn { background: #fff; color: var(--navy); border-color: #fff; }
.dark .btn:hover { background: var(--paper-2); border-color: var(--paper-2); }
.text-link {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none;
  color: var(--heading); padding-block: .3rem; min-height: 2.75rem;
}
.text-link:hover { color: var(--gold-ink); }
.text-link:hover .arrow { width: 1.6em; }
.text-link:active { opacity: .6; transition: opacity 0s; }
.dark .text-link { color: #fff; }
.dark .text-link:hover { color: var(--gold); }
.arrow { display: inline-block; width: 1.1em; height: 1.5px; background: currentColor; position: relative; transition: width .25s var(--ease); }
.arrow::before {
  content: ""; position: absolute; inset-inline-end: 0; top: -3px; width: 7px; height: 7px;
  border-block-end: 1.5px solid currentColor; border-inline-end: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
[dir="rtl"] .arrow::before { transform: rotate(135deg); }

/* ---------- Line drawing (traced from the logo) ---------- */
.elevation { color: var(--navy); }
.elevation .ln { fill: none; stroke: currentColor; stroke-width: 1; }
.elevation .ln-faint { stroke: var(--muted); opacity: .45; }
.elevation .ln-navy { stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: miter; }
.elevation .ln-gold { stroke: var(--gold); stroke-width: 1.75; stroke-linejoin: miter; }
.elevation .ln-gold-thin { stroke: var(--gold); stroke-width: 1; }
.elevation .ln-strong { stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .draw .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
  .draw .g2 .ln { animation-delay: .35s; }
  .draw .g3 .ln { animation-delay: .7s; }
  .draw .g4 .ln { animation-delay: 1.05s; animation-duration: 1s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Hero ---------- */
.hero { padding-block: 2.5rem 3.5rem; overflow: hidden; background: var(--paper-2); }
.hero-grid { display: grid; gap: 2.5rem; }
.hero-kicker { font-size: var(--step--1); font-weight: 700; color: var(--muted); margin-block-end: .75rem; display: flex; align-items: center; gap: .5rem; }
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.hero h1 { font-family: var(--font-serif); font-size: var(--step-4); font-weight: 400; line-height: 1.5; }
.hero h1 .line { display: block; }
.hero h1 .soft { color: var(--muted); }
.hero-lead { max-width: 34rem; color: var(--muted); font-size: var(--step-1); margin-block: 1.25rem 2rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-figure { margin: 0; position: relative; max-width: 15rem; justify-self: center; width: 100%; }
.hero-figure svg { width: 100%; }
@media (min-width: 60rem) {
  .hero { padding-block: 5rem 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 4rem; }
  .hero-figure { max-width: 23rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; }
@media (min-width: 60rem) { .section { padding-block: 6rem; } }
.section.alt { background: var(--paper-2); }
.section-head { display: grid; gap: .25rem; margin-block-end: 2.25rem; }
.section-head h2 { font-family: var(--font-serif); font-size: var(--step-3); font-weight: 300; line-height: 1.5; }
.section-head p { color: var(--muted); max-width: 36rem; font-size: var(--step-1); }
@media (min-width: 60rem) {
  .section-head { margin-block-end: 3rem; }
  .section-head.split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; gap: 4rem; }
}

/* ---------- Dark band: statement + vision/mission ---------- */
.dark { background: var(--navy); color: var(--on-dark); }
.dark h2, .dark h3 { color: #fff; }
.statement-quote { margin: 0 0 2.5rem; }
.statement-quote p { font-family: var(--font-serif); font-size: var(--step-3); font-weight: 300; line-height: 1.6; max-width: 26ch; color: #fff; }

/* ---------- About ---------- */
.about-body { display: grid; gap: 2rem; }
.about-body .intro { font-size: var(--step-1); color: var(--ink); line-height: 1.9; }
.belief { margin: 0; border-inline-start: 2px solid var(--gold); padding-inline-start: 1.5rem; }
.belief p { font-family: var(--font-serif); font-weight: 300; font-size: var(--step-2); line-height: 1.8; color: var(--heading); }
@media (min-width: 60rem) {
  .about-body { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
}

.vm { display: grid; gap: 1rem; }
.vm > div { padding: 1.5rem; border: 1px solid var(--rule-dark); border-radius: 14px; }
.vm h3 { font-size: var(--step--1); font-weight: 700; color: var(--gold); margin-block-end: .5rem; }
.vm p { font-size: var(--step-1); line-height: 1.85; color: var(--on-dark); }
@media (min-width: 60rem) {
  .vm { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .vm > div { padding: 2rem; }
}

.values { list-style: none; display: grid; grid-template-columns: 1fr; gap: .75rem; }
.values li {
  display: flex; align-items: center; gap: .85rem; padding: 1.1rem 1.25rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
}
.values .num { font-size: var(--step--1); font-weight: 700; color: var(--gold-ink); min-width: 1.75rem; }
.values .t { font-weight: 700; font-size: var(--step-1); line-height: 1.6; color: var(--heading); }
@media (min-width: 48rem) { .values { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 60rem) { .values { grid-template-columns: repeat(3, 1fr); } .values li { padding: 1.4rem 1.5rem; } }

/* ---------- Services: clean numbered list ---------- */
.services { list-style: none; display: grid; grid-template-columns: 1fr; column-gap: 3rem; border-block-start: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .25rem 1rem;
  padding-block: 1.5rem; border-block-end: 1px solid var(--rule);
}
.service .num { grid-row: span 2; font-size: var(--step--1); font-weight: 700; color: var(--gold-ink); line-height: 2.1; }
.service h3 { font-size: var(--step-2); line-height: 1.6; }
.service p { color: var(--muted); }
@media (min-width: 60rem) {
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding-block: 1.9rem; }
}

/* ---------- Why us ---------- */
.spec { margin: 0; display: grid; gap: .75rem; }
.spec > div {
  display: grid; gap: .15rem 2rem; padding: 1.15rem 1.35rem;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
}
.spec dt { font-weight: 700; font-size: var(--step-1); line-height: 1.6; color: var(--heading); }
.spec dd { margin: 0; color: var(--muted); }
@media (min-width: 48rem) { .spec > div { grid-template-columns: 13rem 1fr; align-items: baseline; padding: 1.35rem 1.75rem; } }

/* ---------- Method: six connected steps ---------- */
.method { list-style: none; position: relative; margin-block-start: .5rem; }
.method li { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; padding-block-end: 1.5rem; }
.method li:last-child { padding-block-end: 0; }
/* the connecting line: runs from each node to the next */
.method li::before {
  content: ""; position: absolute; inset-inline-start: calc(1.375rem - .5px);
  inset-block: 2.75rem 0; width: 1px; background: var(--gold);
}
.method li:last-child::before { display: none; }
.method .node {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--navy); background: var(--paper); position: relative; z-index: 1;
  font-weight: 700; line-height: 1;
}
.dark .method .node { border-color: var(--gold); background: var(--navy); color: var(--gold); }
.method .step-t { padding-block-start: .4rem; font-size: var(--step-0); font-weight: 500; line-height: 1.8; }
@media (min-width: 60rem) {
  .method { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
  .method li { grid-template-columns: 1fr; gap: 1.25rem; padding: 0; padding-inline-end: 1.5rem; }
  .method li::before { inset-block: calc(1.375rem - .5px) auto; inset-inline: 2.75rem 0; width: auto; height: 1px; }
  .method li:last-child::before { display: none; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; } }

/* company details card (title block) */
.title-block { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--paper-2); font-size: var(--step--1); }
.title-block .tb-row { display: grid; border-block-end: 1px solid var(--rule); }
.title-block .tb-row:last-child { border-block-end: 0; }
.title-block .tb-cell { padding: .9rem 1.25rem; }
.title-block .tb-k { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.title-block .tb-v { display: block; font-size: var(--step-0); font-weight: 500; line-height: 1.8; overflow-wrap: anywhere; color: var(--heading); }
.title-block .tb-v a { text-decoration: none; }
.title-block .tb-v a:hover { text-decoration: underline; }
.title-block .tb-head { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; background: var(--paper); }
.title-block .tb-head img { height: 52px; width: auto; }
.title-block .tb-head strong { font-weight: 700; font-size: var(--step-0); line-height: 1.7; color: var(--heading); }
.tb-2 { grid-template-columns: 1fr 1fr; }
.tb-2 > .tb-cell + .tb-cell { border-inline-start: 1px solid var(--rule); }

/* form */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: .9375rem; line-height: 1.8; color: var(--heading); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); line-height: 1.8;
  background: #fff; border: 1px solid #b9c2c9; border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
  padding: .7rem .9rem; min-height: 3.1rem;
}
.field input:hover, .field textarea:hover { border-color: #8f9aa3; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21, 52, 74, .22); }
.field input[type="email"], .field input[type="tel"] { direction: ltr; text-align: end; }
.field .err { color: var(--error); font-size: var(--step--1); line-height: 1.8; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form-status { margin: 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.fail { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding-block: 3rem 1.5rem; }
/* the footer reuses .title-block markup but not the light contact-card look */
.site-footer .title-block { background: none; border: 0; border-radius: 0; overflow: visible; font-size: var(--step-0); }
.site-footer .tb-grid { display: grid; gap: 2rem; }
.site-footer .tb-k { display: block; color: var(--on-dark-muted); font-size: .8125rem; font-weight: 700; margin-block-end: .5rem; }
.site-footer .tb-v { color: var(--on-dark); }
.site-footer .foot-brand { display: flex; align-items: center; gap: 1rem; }
.site-footer .foot-brand img { height: 60px; width: auto; background: #fff; padding: 6px; border-radius: 10px; }
.site-footer .foot-brand strong { font-weight: 700; line-height: 1.8; display: block; color: #fff; }
.site-footer .foot-brand span { color: var(--on-dark-muted); font-size: var(--step--1); }
.site-footer nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.site-footer nav a { display: inline-block; padding-block: .25rem; text-decoration: none; color: var(--on-dark); line-height: 1.8; min-height: 2.25rem; }
.site-footer nav a:hover { color: var(--gold); }
.site-footer .contact-lines { list-style: none; display: grid; gap: .4rem; }
.site-footer .contact-lines a { text-decoration: none; }
.site-footer .contact-lines a:hover { color: var(--gold); text-decoration: underline; }
.legal { margin-block-start: 2.5rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--rule-dark); font-size: .8125rem; color: var(--on-dark-muted); }
@media (min-width: 60rem) {
  .site-footer { padding-block-start: 4rem; }
  .site-footer .tb-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 3rem; }
}

/* ---------- Simple message pages (404 / thanks / form result) ---------- */
.message-page { padding-block: 4rem 6rem; }
.message-page .code { font-family: var(--font-serif); font-weight: 200; font-size: clamp(4rem, 3rem + 6vw, 7rem); line-height: 1.2; color: var(--navy); }
.message-page h1 { font-family: var(--font-serif); font-weight: 300; font-size: var(--step-3); margin-block: .5rem 1rem; }
.message-page p { color: var(--muted); max-width: 36rem; }
.message-page ul { margin-block: 0 1.5rem; padding-inline-start: 1.25rem; color: var(--error); }
.message-page .actions { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-block-start: 2rem; align-items: center; }

/* ---------- Reveal on scroll ---------- */
.reveal-pending { opacity: 0; }
.reveal-in { opacity: 1; transition: opacity .3s ease; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { transform: translateY(12px); }
  .reveal-in { transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .hero-actions, .form { display: none !important; }
  .dark, .site-footer { background: none; color: #000; }
}
