/* ==========================================================================
   QMITC – site.css
   Single stylesheet: design tokens, base, layout, components, pages.
   Mobile-first. Uses logical properties so RTL (dir="rtl") works unchanged.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand (existing green #007934, refined shades) */
  --brand-50:  #f1faf5;
  --brand-100: #dff3e7;
  --brand-500: #1a9a4f;
  --brand-600: #007934;
  --brand-700: #005f29;
  --brand-900: #0a2e1a;
  /* Complementary accent (warm gold, echoes the yellow used in the old hero) */
  --accent-400: #ffd84d;
  --accent-500: #f2b705;
  /* Neutrals */
  --ink-900: #131313;
  --ink-800: #1d222b;
  --ink-700: #323946;
  --ink-500: #5b6472;
  --ink-300: #c8cdd4;
  --ink-200: #e5e8ec;
  --ink-100: #f4f6f8;
  --white:   #ffffff;
  --danger:  #b3261e;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--ink-100);
  --bg-tint: var(--brand-50);
  --text: var(--ink-700);
  --text-strong: var(--ink-900);
  --text-muted: var(--ink-500);
  --border: var(--ink-200);
  --link: var(--brand-600);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl:  clamp(1.875rem, 1.4rem + 2vw, 2.75rem);
  --fs-3xl:  clamp(2.25rem, 1.4rem + 3.6vw, 4rem);
  --lh-body: 1.7;
  --lh-head: 1.2;

  /* Spacing scale (4 / 8 / 16 / 24 / 32 / 48 / 64) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;

  /* Shape, depth, motion */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
  --shadow-md: 0 8px 24px rgb(16 24 40 / 10%);
  --shadow-lg: 0 18px 48px rgb(16 24 40 / 16%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 280ms var(--ease);

  /* Layout */
  --container: 1200px;
  --gutter: 1.25rem;
  --header-h: 72px;
  --focus-ring: 0 0 0 3px rgb(0 121 52 / 35%);
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 80px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
iframe { border: 0; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--lh-head);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--space-3); }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--link); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-700); }

:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand-100); color: var(--brand-900); }

.sr-only {
  position: absolute; 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(--space-3); top: -100px; z-index: 1000;
  padding: var(--space-2) var(--space-3); background: var(--brand-700); color: #fff;
  border-radius: var(--radius-sm); transition: top var(--t-fast);
}
.skip-link:focus { top: var(--space-3); color: #fff; }

/* ---------- 3. Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--alt  { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 40rem; margin-block-end: var(--space-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: var(--fs-md); margin: 0; }

.eyebrow {
  display: inline-block; margin-block-end: var(--space-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-600);
}

.grid { display: grid; gap: var(--space-4); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 260px)), 1fr)); }

.split { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

.prose { max-width: 68ch; }
.prose p > strong:first-child { display: block; color: var(--text-strong); margin-block-end: var(--space-1); }
.prose ul { margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.prose li { position: relative; padding-inline-start: 1.75rem; }
.prose li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.7em;
  width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--brand-600);
}

/* ---------- 4. Components ---------- */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.75rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius-pill);
  font: 600 var(--fs-sm)/1.2 var(--font-body); text-align: center; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--secondary { background: transparent; color: var(--brand-600); border-color: var(--brand-600); }
.btn--secondary:hover { background: var(--brand-600); color: #fff; }
.btn--light { background: #fff; color: var(--brand-700); }
.btn--light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / 70%); }
.btn--outline-light:hover { background: #fff; color: var(--brand-700); }
.btn--block { width: 100%; }

/* Cards */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover, a.card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
a.card { color: inherit; }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--space-4); display: grid; gap: var(--space-2); }
.card__title { margin: 0; font-size: var(--fs-md); }
.card__more { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--brand-600); font-weight: 600; font-size: var(--fs-sm); }
.card__more .icon { transition: transform var(--t-fast); }
.card:hover .card__more .icon { transform: translateX(4px); }

/* Badge */
.badge {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: var(--radius-pill);
  background: var(--brand-100); color: var(--brand-700); font-size: var(--fs-xs); font-weight: 600;
}

/* Tables (shared styling for any content table) */
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: var(--space-2) var(--space-3); text-align: start; border-bottom: 1px solid var(--border); }
thead th { background: var(--brand-50); color: var(--text-strong); font-weight: 600; }
tbody tr:hover { background: var(--ink-100); }

/* Forms */
.form { display: grid; gap: var(--space-3); }
.form-row { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.375rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-strong); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.75rem 0.9rem; font: inherit; color: var(--text-strong);
  background: #fff; border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-500); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-600); box-shadow: var(--focus-ring);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-xs); min-height: 1em; }
.form-status { margin: 0; font-size: var(--fs-sm); font-weight: 500; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--brand-700); }
.form-card {
  padding: var(--space-5); background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}

/* Scroll reveal (JS adds .js to <html>; without JS everything stays visible) */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / 94%);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: var(--space-3); }
.brand img { height: 48px; width: auto; }
@media (min-width: 768px) { .brand img { height: 56px; } }

.nav-toggle {
  display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1.5px solid var(--ink-200); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-800); border-radius: 2px; transition: transform var(--t-base), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; inset-inline: 0; top: 100%;
  display: none; padding: var(--space-3) var(--gutter) var(--space-4);
  background: #fff; border-block-end: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; gap: var(--space-1); }
.site-nav a {
  display: block; padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  color: var(--ink-800); font-weight: 500; font-size: var(--fs-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.site-nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.site-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.site-nav .nav-cta { margin-block-start: var(--space-2); }
.site-nav .nav-cta a { background: var(--brand-600); color: #fff; text-align: center; border-radius: var(--radius-pill); font-weight: 600; }
.site-nav .nav-cta a:hover { background: var(--brand-700); color: #fff; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav ul { display: flex; align-items: center; gap: var(--space-1); }
  .site-nav .nav-cta { margin: 0; margin-inline-start: var(--space-2); }
  .site-nav .nav-cta a { padding: 0.65rem 1.4rem; }
  .site-nav li:not(.nav-cta) a[aria-current="page"] { background: transparent; box-shadow: inset 0 -2px 0 var(--brand-600); border-radius: 0; }
}

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink-900);
  min-height: clamp(30rem, 82svh, 46rem); display: grid;
}
.hero__slide {
  position: absolute; inset: 0; display: grid; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 800ms var(--ease), visibility 0s linear 800ms;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition-delay: 0s; }
.hero__slide > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(8 24 14 / 85%) 0%, rgb(8 24 14 / 55%) 55%, rgb(8 24 14 / 20%) 100%);
}
.hero__content { max-width: 40rem; padding-block: var(--space-7) 6rem; }
.hero__title { margin-block-end: var(--space-4); font-size: var(--fs-3xl); color: #fff; }
.hero__title::after { content: ""; display: block; width: 4rem; height: 4px; margin-block-start: var(--space-3); border-radius: 2px; background: var(--accent-500); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__controls {
  position: absolute; inset-inline: 0; bottom: var(--space-4); z-index: 2;
  display: flex; align-items: center; gap: var(--space-3);
}
.hero__dots { display: flex; gap: var(--space-2); }
.hero__dot {
  width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: transparent; cursor: pointer; transition: background var(--t-fast), transform var(--t-fast);
}
.hero__dot[aria-current="true"] { background: var(--accent-500); border-color: var(--accent-500); transform: scale(1.2); }
.hero__pause {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  color: #fff; background: rgb(255 255 255 / 15%); border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 50%; cursor: pointer; font-size: 11px; line-height: 1;
}
.hero__pause:hover { background: rgb(255 255 255 / 30%); }

/* ---------- 7. Page hero (inner pages) ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--brand-50), #fff 70%);
  border-block-end: 1px solid var(--border);
}
.page-hero h1 { margin-block-end: var(--space-2); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: var(--space-2); color: var(--ink-300); }
.breadcrumbs [aria-current] { color: var(--text-strong); font-weight: 500; }

/* ---------- 8. Home sections ---------- */
/* Stats band */
.stats { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--brand-900); }
.stats__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgb(0 70 30 / 92%), rgb(10 46 26 / 88%)); }
.stats h2 { color: #fff; font-size: var(--fs-2xl); }
.stats .section-head p { color: rgb(255 255 255 / 85%); }
.stat-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.stat {
  padding: var(--space-4) var(--space-3); text-align: center;
  background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 18%); border-radius: var(--radius-md);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.stat__num { display: block; font: 700 clamp(2rem, 1.4rem + 2.6vw, 3.25rem)/1.1 var(--font-head); color: var(--accent-400); font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-block-start: var(--space-1); font-size: var(--fs-sm); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: rgb(255 255 255 / 90%); }

/* Callback */
.checklist { display: grid; gap: var(--space-2); margin-block: var(--space-3) 0; }
.checklist li { display: flex; gap: var(--space-2); align-items: flex-start; }
.checklist .icon { margin-block-start: 0.3em; padding: 2px; color: #fff; background: var(--brand-600); border-radius: 50%; width: 1.25rem; height: 1.25rem; stroke-width: 3; }

/* Board */
.member__photo { aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--brand-50), var(--brand-100)); overflow: hidden; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member__body { padding: var(--space-4); }
.member__name { font-size: var(--fs-md); margin-block-end: var(--space-2); }
.member__roles { display: grid; gap: var(--space-1); font-size: var(--fs-sm); color: var(--text-muted); }
.member__roles li { padding-inline-start: 1rem; position: relative; }
.member__roles li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-500); }

/* CTA band */
.cta-band { padding-block: var(--space-6); color: #fff; background: linear-gradient(120deg, var(--brand-700), var(--brand-600)); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.cta-band h2 { margin: 0; color: #fff; font-size: var(--fs-xl); }

/* ---------- 9. Inner pages ---------- */
.about-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.mv-card { padding: var(--space-5); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border-inline-start: 4px solid var(--brand-600); }
.mv-card h2 { font-size: var(--fs-lg); color: var(--brand-700); }
.mv-card p { margin: 0; }
.value-card { padding: var(--space-5) var(--space-4); text-align: center; align-items: center; }
.value-card__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-block-end: var(--space-3); color: #fff; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); border-radius: 50%; }
.value-card__icon .icon { width: 28px; height: 28px; }
.value-card h3 { margin: 0; font-size: var(--fs-md); }

/* Services tabs */
.tabs { display: grid; gap: var(--space-5); }
.tablist { display: flex; gap: var(--space-2); overflow-x: auto; padding-block-end: var(--space-2); -webkit-overflow-scrolling: touch; }
.tablist a {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 0.7rem 1.1rem; color: var(--ink-800); font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.tablist a .icon { display: none; }
.tablist a:hover { border-color: var(--brand-600); color: var(--brand-700); }
.tablist a[aria-selected="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.tab-panel { padding: var(--space-4); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.tab-panel__media { margin-block-end: var(--space-4); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3 / 2; max-height: 22rem; width: 100%; }
.tab-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.js .tab-panel[hidden] { display: none; }
@media (min-width: 640px) { .tab-panel { padding: var(--space-5); } }
@media (min-width: 900px) {
  .tabs { grid-template-columns: 280px 1fr; align-items: start; }
  .tablist { position: sticky; top: calc(var(--header-h) + var(--space-4)); flex-direction: column; overflow: visible; }
  .tablist a { border-radius: var(--radius-md); white-space: normal; }
  .tablist a .icon { display: block; }
}

/* Logo / photo grids */
.logo-grid { --min: 160px; }
.logo-tile {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: var(--space-3);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.logo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.photo-grid { --min: 280px; }
.photo-tile { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--ink-100); box-shadow: var(--shadow-sm); transition: transform var(--t-base), box-shadow var(--t-base); }
.photo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.photo-tile:hover img { transform: scale(1.06); }

/* Contact */
.map-frame { width: 100%; height: 100%; min-height: 20rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- 10. Footer ---------- */
.site-footer { color: rgb(255 255 255 / 78%); background: var(--ink-900); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--space-5); padding-block: var(--space-7) var(--space-6); }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 1.3fr 1.4fr; gap: var(--space-6); } }
.site-footer h2 { margin-block-end: var(--space-3); font-size: var(--fs-md); color: #fff; }
.site-footer a { color: rgb(255 255 255 / 85%); }
.site-footer a:hover { color: var(--accent-400); }
.footer-logo img { height: 64px; width: auto; margin-block-end: var(--space-3); }
.footer-links { display: grid; gap: var(--space-2); }
.footer-contact { display: grid; gap: var(--space-4); font-style: normal; }
.footer-contact__item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); }
.footer-contact__item .icon { margin-block-start: 0.2em; color: var(--accent-400); }
.footer-contact__item span, .footer-contact__item a { display: block; }
.social { display: flex; gap: var(--space-2); margin-block-start: var(--space-3); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / 10%); transition: background var(--t-fast), transform var(--t-fast); }
.social a:hover { background: var(--brand-600); color: #fff; transform: translateY(-3px); }
.footer-map { width: 100%; height: 180px; margin-block-end: var(--space-4); border-radius: var(--radius-md); filter: grayscale(0.3); }
.site-footer .form { gap: var(--space-2); }
.site-footer .field label { color: #fff; }
.site-footer .field-error { color: #ffb4ab; }
.site-footer .form-status.is-ok { color: var(--accent-400); }
.site-footer .form-status.is-error { color: #ffb4ab; }
.footer-bottom { padding-block: var(--space-3); border-block-start: 1px solid rgb(255 255 255 / 12%); font-size: var(--fs-xs); }
.footer-bottom p { margin: 0; }

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
