/* ------------------------------------------------------------------
   MedPrep — farewell site

   The styling is carried over from the original MedPrep platform: the
   same palette, the same Tailwind-derived type scale, the same nav,
   hero, cards, FAQ accordions and footer. Written out as plain CSS so
   the site needs no build step.
   ------------------------------------------------------------------ */

:root {
  /* Brand — from the original tailwind.config.js */
  --primary: #004485;
  --secondary: #2c64ac;
  --accent: #61afff;
  --background: rgb(244, 247, 250);
  --bright: #7fb6ef;
  --bright-2: #b1daff;

  /* Tailwind greys, as used across the original pages */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / .25);

  --nav-h: 72px;

  /* Every section uses this one vertical rhythm — heroes, content sections,
     the About header and the footer all pad by the same amount. */
  --section-y: 4rem;
}

@media (min-width: 640px) { :root { --section-y: 5.5rem; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

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

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--secondary); }
a:hover { color: var(--primary); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: .7rem 1.1rem;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap--narrow { max-width: 56rem; }
.wrap--prose { max-width: 48rem; }
.block-narrow { max-width: 48rem; }

.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;
}

/* --- Language switching ------------------------------------------------
   Both languages ship in the HTML; CSS hides the inactive one, so the page
   still reads correctly with JavaScript disabled (Dutch is the default).  */
html[data-lang="nl"] [lang="en"],
html[data-lang="en"] [lang="nl"] { display: none !important; }

/* --- Navigation — the original fixed white bar ------------------------ */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem;
}
@media (min-width: 1024px) { .nav { padding: 1rem 2rem; } }

.nav__left { display: flex; align-items: center; }
.nav__logo { margin-right: 2rem; display: block; }
.nav__logo img { height: 2.5rem; width: auto; object-fit: contain; }

.nav__links { display: none; gap: 1.5rem; align-items: center; }
@media (min-width: 1024px) { .nav__links { display: flex; } }
.nav__links a, .nav__mobile a {
  font-size: .875rem; font-weight: 600; line-height: 1.5rem;
  color: var(--gray-900); text-decoration: none;
  transition: color .15s ease;
}
.nav__links a:hover, .nav__mobile a:hover { color: var(--primary); }
.nav__links a[aria-current="page"],
.nav__mobile a[aria-current="page"] { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }

.nav__right { display: flex; align-items: center; gap: 1rem; }

.nav__burger {
  display: inline-flex; padding: .25rem; border: 0; background: none;
  color: var(--gray-900); cursor: pointer;
}
.nav__burger:hover { color: var(--primary); }
.nav__burger svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) { .nav__burger { display: none; } }

.nav__mobile {
  position: fixed; top: var(--nav-h); left: 0; width: 100%; z-index: 40;
  background: #fff; box-shadow: var(--shadow-md);
  display: none; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem;
}
.nav__mobile[data-open="true"] { display: flex; }
@media (min-width: 1024px) { .nav__mobile[data-open="true"] { display: none; } }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--gray-200); border-radius: 9999px;
  overflow: hidden; background: #fff;
}
.lang-toggle button {
  font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem .7rem; border: 0; background: transparent; color: var(--gray-500);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--primary); color: #fff; }

/* --- Hero — the original blue banner with blurred clip-path shapes ---- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--primary);
  padding: calc(var(--nav-h) + var(--section-y)) 0 var(--section-y);
}
/* Used mid-page, so it does not clear the fixed nav. */
.hero--band { padding-top: var(--section-y); }

/* The blur sits on the wrapper and the clip-path on the child, exactly as the
   original markup did — clipping a blurred element instead would give the
   shape hard edges. */
.hero__glow { position: absolute; z-index: -10; pointer-events: none; filter: blur(64px); }
.hero__glow i {
  display: block; width: 82.0625rem; aspect-ratio: 1313 / 771; background: #fff;
  clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%,
    72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%,
    0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%);
}
.hero__glow--a { top: 50%; left: max(50%, 38rem); transform: translateY(-50%); opacity: .3; }
.hero__glow--b { top: 0; left: -22rem; opacity: .25; }
.hero__glow--b i { transform: rotate(30deg); transform-origin: top right; }

.hero__inner { position: relative; text-align: center; max-width: 42rem; margin: 0 auto; }
.hero__inner--left { text-align: left; margin: 0; }

.hero h1, .hero h2 {
  font-size: 1.875rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: #fff;
}
@media (min-width: 640px) { .hero h1, .hero h2 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1, .hero h2 { font-size: 3.75rem; } }

.hero__lead {
  margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.75; color: rgb(255 255 255 / .9);
}
@media (min-width: 640px) { .hero__lead { font-size: 1.25rem; } }
.hero__inner--left .hero__lead { max-width: 42rem; }


/* --- Masthead — the original landing header ---------------------------
   Light background, blurred gradient shape behind it, copy on the left and a
   large rounded square photo on the right. Same as the old headerComponent. */

/* Full screen, as the original landing header was (h-screen). svh keeps it
   honest on mobile, where the browser chrome eats into vh. */
.masthead {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: var(--nav-h);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.masthead__inner { width: 100%; }
.masthead__glow { position: absolute; inset: 0 0 auto 0; z-index: -10; display: flex; filter: blur(64px); }
.masthead__glow i {
  display: block; flex: none; margin-left: -22rem;
  width: 82.0625rem; aspect-ratio: 1313 / 771;
  transform: rotate(30deg); transform-origin: top right;
  background: linear-gradient(to top right, var(--bright), var(--bright-2));
  clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%,
    72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%,
    0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%);
}
@media (min-width: 1280px) { .masthead__glow i { margin-left: 0; margin-right: calc(50% - 12rem); } }

.masthead__inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) {
  .masthead__inner {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem; align-items: center; padding-inline: 2rem;
  }
  .masthead__copy { grid-column: span 7; padding-right: 4rem; }
  .masthead__media { grid-column: span 5; }
}
.masthead__copy { padding: var(--section-y) 0; }

.masthead h1 {
  font-size: 2.25rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
  color: var(--gray-900);
}
@media (min-width: 640px) { .masthead h1 { font-size: 3.75rem; } }
.masthead__lead {
  margin-top: 1.5rem; font-size: 1.125rem; line-height: 2rem; color: var(--gray-600);
  max-width: 34rem;
}

.masthead__media { display: none; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .masthead__media { display: flex; } }

/* The frame owns the square; the photo just fills it. Sizing the <img> itself
   lets a flex/grid track stretch it out of shape. */
.masthead__frame {
  width: 100%; max-width: 28rem; aspect-ratio: 1 / 1; flex: none;
  border-radius: 1.5rem; overflow: hidden; background: var(--gray-50);
  box-shadow: 0 25px 50px -12px var(--accent);
}
.masthead__frame img { width: 100%; height: 100%; object-fit: cover; }

.masthead__logos { display: flex; justify-content: center; gap: 2rem; padding-bottom: var(--section-y); }
@media (min-width: 640px) { .masthead__logos { display: none; } }
.masthead__logos img { max-height: 3rem; width: auto; object-fit: contain; }

/* --- Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; line-height: 1.5; text-decoration: none;
  padding: .75rem 1.5rem; border-radius: 9999px; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: #fff; color: var(--primary); box-shadow: var(--shadow-lg); }
.btn--primary:hover { background: var(--bright-2); color: var(--primary); }
.btn--ghost { border-color: rgb(255 255 255 / .45); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / .12); color: #fff; }
.btn--solid { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn--solid:hover { background: var(--secondary); color: #fff; }
.btn--outline { border-color: var(--gray-300); background: #fff; color: var(--primary); }
.btn--outline:hover { border-color: var(--accent); color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2.5rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .95rem; font-weight: 600; line-height: 1.5rem; color: var(--gray-900);
  text-decoration: none;
}
.text-link:hover { color: var(--primary); }
.btn-row--center { justify-content: center; }

/* --- Cards — the original white card with gradient icon header -------- */

.cards {
  display: grid; gap: 2rem; margin: var(--section-y) auto 0;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.cards--on-hero { max-width: none; }

.card {
  background: #fff; border-radius: .75rem; overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow .5s ease, transform .5s ease;
}
.card:hover { box-shadow: var(--shadow-2xl); transform: translateY(-.5rem); }
.card__head {
  display: flex; flex-direction: row; align-items: center; gap: 1rem; padding: 1.5rem;
  background: linear-gradient(to right, rgb(0 68 133 / .05), rgb(44 100 172 / .05));
}
.card__icon {
  width: 3rem; height: 3rem; border-radius: .75rem; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(to bottom right, var(--primary), var(--secondary));
  transition: transform .3s ease;
}
.card:hover .card__icon { transform: scale(1.1); }
.card__icon svg { width: 1.5rem; height: 1.5rem; }
.card__head h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--primary); line-height: 1.4;
  transition: color .3s ease;
}
.card:hover .card__head h3 { color: var(--secondary); }
.card__body { padding: 1.5rem; }
.card__body p { color: var(--gray-600); line-height: 1.75; }
.card__body p + p { margin-top: .75rem; }

/* --- Sections --------------------------------------------------------- */

.section { padding: var(--section-y) 0; }
.section--bg { background: var(--background); }
.section--white { background: #fff; }
.section--fade { background: linear-gradient(to bottom, var(--gray-50), #fff); }

.section__head { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.section__head--left { text-align: left; margin-left: 0; }
.section__head h2 {
  font-size: 1.875rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; line-height: 1.2;
}
@media (min-width: 640px) { .section__head h2 { font-size: 2.25rem; } }
.section__head--dark h2 { color: var(--gray-900); }
.section__head p { font-size: 1.125rem; color: var(--gray-600); line-height: 1.75; }

.rule { border: 0; border-top: 1px solid var(--gray-300); margin: 3rem 0; }

/* --- Prose (about, terms) --------------------------------------------- */

.prose h2 {
  font-size: 1.5rem; font-weight: 600; color: var(--gray-900); margin-top: 3rem; margin-bottom: 1rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--gray-600); font-size: 1.0625rem; line-height: 1.8; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--gray-900); font-weight: 600; }
.prose ul { padding-left: 1.25rem; margin: 1rem 0 0; }
.prose li { margin-bottom: .5rem; }
.prose .rule { margin: 3rem 0; }

.page-title {
  font-size: 2.25rem; font-weight: 600; letter-spacing: -.025em; color: var(--gray-900); line-height: 1.1;
}
@media (min-width: 640px) { .page-title { font-size: 3rem; } }
.page-lead { margin-top: 1.5rem; font-size: 1.125rem; color: var(--gray-600); line-height: 1.75; }
.mission-lead {
  margin-top: 2rem; font-size: 1.125rem; font-weight: 500; color: var(--gray-500); line-height: 1.75;
}
@media (min-width: 640px) { .mission-lead { font-size: 1.25rem; line-height: 2rem; } }

.page-title--hero { font-size: 3rem; }
@media (min-width: 640px) { .page-title--hero { font-size: 4.5rem; } }

.section--top { padding-top: calc(var(--nav-h) + var(--section-y)); }

/* --- About: grid pattern + gradient blob, as on the original ---------- */

.pattern { position: relative; isolation: isolate; overflow: hidden; }
.pattern__grid {
  position: absolute; inset: 0 0 auto 0; z-index: -10; height: 64rem; width: 100%;
  stroke: var(--gray-200);
  -webkit-mask-image: radial-gradient(32rem 32rem at center, white, transparent);
          mask-image: radial-gradient(32rem 32rem at center, white, transparent);
}
/* Blur on the wrapper, clip-path on the child — see .hero__glow. */
.pattern__blob { position: absolute; top: 0; left: 50%; z-index: -10; margin-left: -6rem; filter: blur(64px); }
@media (min-width: 1024px) { .pattern__blob { margin-left: 6rem; } }
.pattern__blob i {
  display: block; width: 50.0625rem; aspect-ratio: 801 / 1036; opacity: .3;
  background: linear-gradient(to top right, var(--secondary), var(--accent));
  clip-path: polygon(63.1% 29.5%, 100% 17.1%, 76.6% 3%, 48.4% 0%, 44.6% 4.7%, 54.5% 25.3%,
    59.8% 49%, 55.2% 57.8%, 44.4% 57.2%, 27.8% 47.9%, 35.1% 81.5%, 0% 97.7%, 39.2% 100%,
    35.2% 81.4%, 97.2% 52.8%, 63.1% 29.5%);
}

.logo-cloud { display: flex; flex-direction: row; justify-content: center; gap: 2rem; margin-top: 3rem; }
@media (min-width: 1024px) { .logo-cloud { flex-direction: column; gap: 2rem; align-items: center; } }
.logo-cloud img { max-height: 3rem; width: auto; object-fit: contain; }

.split { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) 20rem; } }

/* --- Team ------------------------------------------------------------- */

.team {
  display: grid; gap: 4rem 2rem; margin-top: var(--section-y); text-align: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.team figure { margin: 0; }
.team img {
  height: 6rem; width: 6rem; border-radius: 9999px; margin: 0 auto; object-fit: cover;
  background: var(--gray-100);
}
.team figcaption {
  margin-top: 1.5rem; font-size: 1rem; font-weight: 600; line-height: 1.75rem;
  letter-spacing: -.01em; color: var(--gray-900);
}
.team figcaption small { display: block; font-size: .875rem; font-weight: 400; color: var(--gray-600); }

/* --- Stat tiles — a KPI row, not a chart ------------------------------
   Label in muted ink, value as a large proportional figure in brand blue.
   No deltas or sparklines: these are totals, not a trend. */

/* Six tiles: 2 x 3 on small screens, 3 x 2 from tablet up — never one orphan
   on a row of its own. */
.stats { display: grid; gap: 1.25rem; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat {
  background: #fff; border: 1px solid var(--gray-200); border-radius: .75rem;
  padding: 1.5rem 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column-reverse; gap: .4rem;
  transition: box-shadow .3s ease, transform .3s ease;
}
.stat:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stat dt { font-size: .95rem; color: var(--gray-600); line-height: 1.5; }
.stat dd {
  margin: 0; font-size: 2.75rem; font-weight: 600; line-height: 1;
  letter-spacing: -.02em; color: var(--primary);
}
.stats__note {
  margin: 2.5rem auto 0; max-width: 42rem; text-align: center;
  color: var(--gray-600); line-height: 1.75;
}

/* --- Thank-you note --------------------------------------------------- */

.thanks { text-align: center; max-width: 48rem; margin: 0 auto; }
.thanks p.thanks__mark {
  margin-top: 0; font-size: 5rem; line-height: .7; font-weight: 700; color: var(--bright-2);
}
.thanks p {
  margin-top: 1.5rem; font-size: 1.25rem; line-height: 1.8; color: var(--gray-700);
}
@media (min-width: 640px) { .thanks p { font-size: 1.375rem; } }
.thanks p.small { font-size: 1.0625rem; color: var(--gray-600); }
.thanks p:first-child { margin-top: 0; }
.thanks__sign { margin-top: 2rem; font-weight: 700; color: var(--primary); }
.thanks__sign small { display: block; font-weight: 400; color: var(--gray-500); font-size: .875rem; margin-top: .25rem; }

/* --- Contact panel ---------------------------------------------------- */

.contact-panel {
  background: linear-gradient(to bottom right, var(--primary), var(--secondary));
  border-radius: .75rem; padding: 2.5rem; color: #fff; box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .contact-panel { padding: 3.5rem; } }
.contact-panel__logo { height: 2.25rem; width: auto; object-fit: contain; margin-bottom: 1.75rem; }
.contact-panel h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
@media (min-width: 640px) { .contact-panel__logo { height: 2.25rem; width: auto; object-fit: contain; margin-bottom: 1.75rem; }
.contact-panel h2 { font-size: 2.25rem; } }
.contact-panel p { color: rgb(255 255 255 / .9); line-height: 1.75; max-width: 46rem; }
.contact-panel p + p { margin-top: 1rem; }
.mail-link {
  display: inline-block; margin-top: 1.75rem; font-size: 1.25rem; font-weight: 700; color: #fff;
  text-decoration: none; border-bottom: 2px solid rgb(255 255 255 / .5); padding-bottom: .2rem;
  overflow-wrap: anywhere;
}
@media (min-width: 640px) { .mail-link { font-size: 1.75rem; } }
.mail-link:hover { color: var(--bright-2); border-color: var(--bright-2); }

.callout {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: .75rem; padding: 1.75rem;
}
.callout h3 { font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.callout p { color: var(--gray-600); line-height: 1.75; }

/* --- FAQ — the original accordion ------------------------------------- */

.faq { max-width: 48rem; margin: 0 auto; display: grid; gap: 1rem; }
.faq details { background: var(--gray-50); border-radius: .75rem; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.5rem; font-weight: 600; color: var(--gray-900);
  transition: background-color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--gray-100); }
.faq summary::after {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem;
  background: currentColor; color: var(--gray-500);
  transition: transform .3s ease;
  -webkit-mask: no-repeat center / contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="black" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/></svg>');
          mask: no-repeat center / contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="black" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/></svg>');
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq__body { padding: 0 1.5rem 1rem; }
.faq__body p { color: var(--gray-600); line-height: 1.75; }

/* --- Footer — the original centred grey footer ------------------------ */

.footer { background: var(--gray-100); }
.footer__inner {
  max-width: 80rem; margin: 0 auto; overflow: hidden; padding: var(--section-y) 1.5rem;
}
@media (min-width: 1024px) { .footer__inner { padding-inline: 2rem; } }
.footer__logo { display: block; margin: 0 auto 2.5rem; width: fit-content; }
.footer__logo img { height: 2.25rem; width: auto; object-fit: contain; }

.footer__nav { margin-bottom: -1.5rem; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 640px) {
  .footer__nav { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 2.5rem; }
}
.footer__nav > * { padding-bottom: 1.5rem; }
.footer__nav a { font-size: .875rem; line-height: 1.5rem; color: var(--gray-600); text-decoration: none; }
.footer__nav a:hover { color: var(--gray-900); }
.footer__social { color: var(--gray-400); }
.footer__social:hover { color: var(--gray-500); }
.footer__social svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.footer__legal {
  margin-top: 2.5rem; text-align: center; font-size: .75rem; line-height: 1.25rem; color: var(--gray-500);
}
.footer__legal span + span::before { content: " · "; }

/* --- Error page — the original centred card --------------------------- */

.error-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--background); padding: 1.5rem;
}
.error-card {
  text-align: center; padding: 2.5rem 3rem; border-radius: .5rem;
  box-shadow: var(--shadow-lg); background: #fff; max-width: 32rem;
}
.error-card img { width: 8rem; height: auto; object-fit: contain; margin: 0 auto 1.5rem; }
.error-card h1 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.error-card p { font-size: 1.125rem; color: var(--secondary); margin-bottom: 1.5rem; line-height: 1.7; }

/* --- Scroll animations — carried over from useScrollAnimation --------- */

.scroll-animation { opacity: 0; transition: opacity .6s ease-out, transform .6s ease-out; }
.scroll-animation.fade-up { transform: translateY(30px); }
.scroll-animation.animate-in { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: .1s; }
.delay-200 { transition-delay: .2s; }
.delay-300 { transition-delay: .3s; }
.delay-400 { transition-delay: .4s; }
.delay-500 { transition-delay: .5s; }

/* No JavaScript, or reduced motion: show everything straight away. */
html.no-js .scroll-animation { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-animation { opacity: 1; transform: none; }
}
