/* ==========================================================================
   EverUplift — design system
   Hand-written CSS, no framework. Mobile-first. Palette + Quantico from brand.
   ========================================================================== */

/* ---- Fonts (self-hosted Quantico, OFL) -------------------------------- */
@font-face {
  font-family: "Quantico";
  src: url("../fonts/Quantico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quantico";
  src: url("../fonts/Quantico-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ----------------------------------------------------------- */
:root {
  --ink: #0a1c35;
  --ink-2: #06101e;
  --ink-deep: #05172e;
  --paper: #f3f4ed;
  --surface: #ffffff;
  --text: #20201f;
  --muted: #4b6972;

  --teal: #2d6b87;
  --teal-deep: #2e505d;
  --teal-ink: #1f5c74;
  --steel: #b0c7d5;
  --sage: #a9bab7;
  --mint: #b0d2bf;
  --slate: #4b6972;

  --on-ink: #f3f4ed;
  --on-ink-muted: #b0c7d5;
  --on-ink-faint: #8aa19d;

  --line: rgba(10, 28, 53, 0.12);
  --line-strong: rgba(10, 28, 53, 0.2);
  --on-ink-line: rgba(176, 199, 213, 0.16);

  --tint-steel: #e9eff1;
  --tint-teal: #e4eeee;

  --container: 1120px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --font-display: "Quantico", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-eyebrow: 0.8rem;
  --step-h1: clamp(2.1rem, 1.3rem + 3.4vw, 3.35rem);
  --step-h2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-h3: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --step-lead: clamp(1.02rem, 0.98rem + 0.3vw, 1.18rem);

  --focus: #2d6b87;
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; color: var(--ink); letter-spacing: 0.01em; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }
#main:focus { outline: none; }
/* FocusOnNavigate focuses the page h1 on load for screen readers; suppress the visible
   ring since the heading isn't keyboard-interactive (keyboard focus elsewhere still shows). */
h1:focus { outline: none; }

/* ---- Layout ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
section[id] { scroll-margin-top: 84px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-eyebrow);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--teal);
}
.section-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title { font-size: var(--step-h2); margin-top: 0.5rem; }
.section-intro { color: var(--muted); margin-top: 0.6rem; max-width: 48ch; font-size: var(--step-lead); }

/* Brand keyline */
.keyline { display: flex; height: 5px; }
.keyline > span:nth-child(1) { flex: 2; background: var(--teal); }
.keyline > span:nth-child(2) { flex: 1; background: var(--mint); }
.keyline > span:nth-child(3) { flex: 1; background: var(--sage); }
.keyline > span:nth-child(4) { flex: 1; background: var(--steel); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.25rem;
  border-radius: 5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.form__submit { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.85rem; }
.form__sending { font-size: 0.9rem; color: var(--muted); }
.form__sending[hidden] { display: none; }
.btn-primary { background: var(--teal); color: var(--on-ink); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
/* ---- Icons (inline SVG sprite) --------------------------------------- */
.icon {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.btn .icon { width: 1.05rem; height: 1.05rem; stroke-width: 2.2; }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fafdfd;
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand:hover { text-decoration: none; }
.wordmark { display: block; width: auto; flex-shrink: 0; }
.wordmark__ever { fill: var(--wm-primary, currentColor); }
.wordmark__uplift { fill: var(--wm-secondary, currentColor); }
.brand-icon { display: block; flex-shrink: 0; }
/* The ascending "rail" (uplift ramp) can take a color distinct from the rest of the mark. */
.brand-icon polyline { stroke: var(--rail-color, currentColor); }
.brand__icon { width: 3.75rem; height: 3.75rem; color: var(--ink); --rail-color: var(--teal); }
.brand__wordmark { height: 3.5rem; --wm-primary: var(--ink); --wm-secondary: var(--muted); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.9rem); }
.site-nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav__link:hover { color: var(--ink); text-decoration: none; }
/* Header CTA sized to match the enlarged nav links (other buttons unchanged).
   Slightly shorter than the default button, and never wraps to multiple lines. */
.site-nav .btn { font-size: 0.84rem; min-height: 40px; padding-block: 0.55rem; white-space: nowrap; }
.site-nav__social { display: inline-flex; align-items: center; color: #0a66c1; }
.site-nav__social:hover { color: #084f97; }
.site-nav__social .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Header nav flips to the hamburger before the horizontal nav would crowd the
   brand / wrap the CTA (~1014px is the tight-fit point). Higher than the content
   grid breakpoint below, which stays at 860px. */
@media (max-width: 1040px) {
  /* No-JS fallback: let the inline nav wrap instead of overflowing the header. */
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }

  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fafdfd;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(1.1rem, 4vw, 2.5rem) 1.1rem;
    box-shadow: 0 18px 30px -24px rgba(10, 28, 53, 0.5);
    display: none;
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .site-nav__link { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.82rem; }
  .js .site-nav__social { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .js .site-nav .btn { margin-top: 0.8rem; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero { background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero__title { font-size: var(--step-h1); margin-top: 0.85rem; text-transform: uppercase; letter-spacing: 0.01em; }
.hero__lead { font-size: var(--step-lead); color: var(--text); max-width: 42ch; margin-top: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; margin-top: 1.6rem; padding: 0; list-style: none; }
.trust-badge { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: var(--muted); }
.trust-badge .icon { width: 1.15rem; height: 1.15rem; color: var(--teal); }
.hero__panel {
  position: relative;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  min-height: 240px;
  /* aspect-ratio + min-height transfers a width of (min-height × ratio) — ~427px on
     mobile — which overflows the column/viewport (the grid's align-items:center means
     stretch doesn't clamp it). min-width:0 lets max-width:100% win and cap it to the column. */
  min-width: 0;
  max-width: 100%;
}
.hero__panel svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- Stats band ------------------------------------------------------- */
.stats { background: var(--ink); }
.stats__grid { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1.25rem 2rem; padding-block: 1.15rem; }
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--on-ink); }
.stat__label { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-ink-muted); }

/* ---- Services --------------------------------------------------------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
}
.chip {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: var(--chip-bg, var(--tint-teal));
  color: var(--chip-fg, var(--teal-ink));
}
/* One distinct, on-topic hue per service card (icon fg + soft matching tint). */
.s-cloud { --chip-bg: #dcebf9; --chip-fg: #0f6cbd; } /* Card 1 cloud — Azure blue */
.s-auto  { --chip-bg: #e8e1f7; --chip-fg: #6b4fbb; } /* Card 2 automate — violet */
.s-cont  { --chip-bg: #d4eef1; --chip-fg: #0e8f9b; } /* Card 3 network — teal/cyan */
.s-idam  { --chip-bg: #dcefe3; --chip-fg: #2e8b57; } /* Card 4 cost — green */
.s-migr  { --chip-bg: #f7e9d4; --chip-fg: #c07d1e; } /* Card 5 migration — amber */
.s-road  { --chip-bg: #f7dede; --chip-fg: #c0392b; } /* Card 6 BCDR — red */
.service-card__name { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-top: 0.85rem; }
.service-card__desc { font-size: 0.95rem; color: var(--muted); margin-top: 0.4rem; }
.service-card__list { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.5rem; }
.service-card__list li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.86rem; color: var(--muted); }
.service-card__list .icon { width: 1rem; height: 1rem; color: var(--teal); flex-shrink: 0; margin-top: 0.15rem; }

/* ---- Selected work (highlights) --------------------------------------- */
.highlights { background: var(--tint-steel); }
.highlights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.highlight-card { background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--teal); border-radius: var(--radius); padding: 1.15rem 1.15rem 1.25rem; }
.highlight-card__desc { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.highlight-card__desc strong { color: var(--ink); font-weight: 600; }

/* ---- Credentials (certifications + skills) ---------------------------- */
.certs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 1.4rem; }
.cert-badge { display: flex; align-items: center; gap: 0.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 0.9rem; min-width: 0; }
.cert-badge .icon { width: 1.25rem; height: 1.25rem; color: var(--teal); flex-shrink: 0; }
.cert-badge__name { font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink); flex: 1; min-width: 0; }
.cert-badge__note { font-family: var(--font-display); font-weight: 700; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8496a0; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.15rem 0.5rem; flex-shrink: 0; }
.skills__label { margin-top: 1.8rem; }
.skills__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; padding: 0; }

/* ---- Why us ----------------------------------------------------------- */
.whyus { background: var(--tint-teal); }
.whyus__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(1.1rem, 3vw, 2rem); margin-top: 1.4rem; }
.value__icon { width: 1.7rem; height: 1.7rem; color: var(--teal); }
.value__title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: var(--ink); margin-top: 0.5rem; }
.value__desc { font-size: 0.95rem; color: var(--muted); margin-top: 0.35rem; }

/* ---- FAQ -------------------------------------------------------------- */
.faq { background: var(--tint-steel); }
.faq__list { margin-top: 1.4rem; border-top: 1px solid var(--line); max-width: 56rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: 1.05rem 0; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--ink); }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__chev { width: 1.25rem; height: 1.25rem; color: var(--teal); transition: transform 0.2s ease; }
.faq-item[open] .faq-item__chev { transform: rotate(180deg); }
.faq-item__a { padding: 0 0 1.1rem; }
.faq-item__a p { color: var(--muted); max-width: 64ch; }

/* ---- About ------------------------------------------------------------ */
.about__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 2.2rem); align-items: center; }
.about__photo {
  width: 11.5rem; height: 11.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  flex-shrink: 0;
}
.about__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-h3); color: var(--ink); margin: 0.5rem 0 0.4rem; }
.about__bio { color: var(--muted); max-width: 58ch; margin-bottom: 0.8rem; }
.tag { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--teal-deep); background: var(--tint-teal); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.3rem 0.7rem; }

/* ---- Contact / closing CTA -------------------------------------------- */
.contact { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.contact__keyline { position: absolute; left: 0; right: 0; bottom: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start; }
.contact .eyebrow { color: var(--mint); }
.contact__title { color: var(--on-ink); font-size: var(--step-h2); }
.contact__intro { color: var(--on-ink-muted); margin-top: 0.7rem; max-width: 42ch; }
.contact__details { margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.contact__item { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--on-ink-muted); font-size: 0.96rem; }
.contact__item a { color: var(--on-ink); }
.contact__item .icon { width: 1.2rem; height: 1.2rem; color: var(--mint); }

.form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.field > label { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--teal); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success { display: flex; align-items: flex-start; gap: 0.7rem; background: var(--tint-teal); border: 1px solid var(--mint); border-radius: var(--radius); padding: 1rem 1.1rem; color: var(--teal-deep); }
.form__success .icon { width: 1.4rem; height: 1.4rem; color: #2f6b4e; }
.form__success strong { color: var(--teal-deep); }
.form__success p { margin-top: 0.2rem; font-size: 0.9rem; color: var(--teal-deep); }
.field__optional { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.validation-message { color: #b3322c; font-size: 0.82rem; }
.invalid { border-color: #b3322c !important; }
.form__hint { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.9rem; }
.form__errors { list-style: none; margin: 0 0 1rem; padding: 0.8rem 1rem; background: #fdeceb; border: 1px solid #e3b3af; border-radius: 8px; color: #b3322c; font-size: 0.88rem; }
.form__errors:empty { display: none; }
.form__fail { margin: 0 0 1rem; padding: 0.8rem 1rem; background: #fdeceb; border: 1px solid #e3b3af; border-radius: 8px; color: #b3322c; font-size: 0.88rem; }
.form__fail p { margin-top: 0.25rem; }
.form__fail a { color: #b3322c; text-decoration: underline; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink-2); color: var(--on-ink-muted); }
.site-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; padding-block: 0.85rem; }
.site-footer__brand { gap: 0.45rem; }
.site-footer__icon { width: 3.25rem; height: 3.25rem; color: var(--steel); --rail-color: var(--mint); }
.site-footer__wordmark { height: 3.15rem; --wm-primary: var(--steel); --wm-secondary: var(--on-ink-faint); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.site-footer__nav a { color: var(--on-ink-muted); font-size: 0.96rem; letter-spacing: 0.04em; }
.site-footer__social { display: inline-flex; align-items: center; }
.site-footer__social:hover { color: var(--steel); }
.site-footer__social .icon { width: 1.35rem; height: 1.35rem; }
.site-footer__legal { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--on-ink-faint); }

/* ---- Legal / simple pages -------------------------------------------- */
.prose { max-width: 70ch; }
.prose h1 { font-size: var(--step-h2); margin-bottom: 0.5rem; }
.prose h2 { font-size: var(--step-h3); margin: 1.6rem 0 0.5rem; }
.prose p, .prose li { color: var(--text); margin-bottom: 0.8rem; }
.prose ul { padding-left: 1.2rem; }

/* ---- Reveal animation ------------------------------------------------- */
[data-reveal].reveal-init { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-init { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { order: -1; aspect-ratio: 16 / 9; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .highlights__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about__bio { text-align: left; }
  .hero__actions .btn { width: 100%; }
}

/* Ensure ≥44px tap targets for text links on touch devices and narrow screens. */
@media (pointer: coarse), (max-width: 640px) {
  .site-footer__nav a,
  .contact__item a,
  .site-nav__link,
  .site-nav__social,
  .site-footer__social {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ---- Blazor framework error UI ---------------------------------------- */
#blazor-error-ui {
  color-scheme: light only;
  background: #fff6d6;
  border-top: 1px solid #e6cf6a;
  bottom: 0; left: 0; width: 100%;
  display: none;
  padding: 0.7rem 1.25rem;
  position: fixed;
  z-index: 1000;
  color: var(--text);
  box-shadow: 0 -2px 12px -6px rgba(10, 28, 53, 0.4);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.9rem; top: 0.6rem; }
#blazor-error-ui .reload { color: var(--teal); }
