/* ==========================================================================
   Intellivra Global - main stylesheet
   Above-the-fold rules live inline in each page <head> (see assets/css/critical.css,
   which is the canonical copy of that inlined block). Everything else is here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Layout primitives
   -------------------------------------------------------------------------- */

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}

.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(108, 140, 255, 0.045) 40%, transparent),
    var(--surface);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  inline-size: 1.5rem;
  block-size: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section__head--center .eyebrow::before { display: none; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
}

.section__head .lede { margin-top: 0.9rem; }
.section__head--center .lede { margin-inline: auto; }

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

/* --------------------------------------------------------------------------
   2. Cards & surfaces
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color var(--t), transform var(--t), background-color var(--t);
  block-size: 100%;
}

.card--link:hover,
.card--link:focus-within {
  border-color: var(--accent-line);
  background: var(--surface-3);
  transform: translateY(-3px);
}

.card__icon {
  inline-size: 2.75rem;
  block-size: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(140deg, rgba(108, 140, 255, 0.22), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--accent-line);
  margin-bottom: 1.15rem;
  color: var(--accent-text);
}

.card__icon svg { inline-size: 1.35rem; block-size: 1.35rem; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t);
}

.card--link:hover h3 a,
.card h3 a:focus-visible { color: var(--accent-text); }

.card p { color: var(--text-muted); font-size: 0.975rem; }

.card__meta {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Whole-card click target that keeps the real link accessible. */
.card__stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
  list-style: none;
  padding: 0;
}

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

a.tag {
  text-decoration: none;
  transition: color var(--t), border-color var(--t), background-color var(--t);
}

a.tag:hover,
a.tag:focus-visible {
  color: var(--accent-text);
  border-color: var(--accent-line);
  background: rgba(108, 140, 255, 0.08);
}

.tag--accent {
  color: var(--accent-text);
  border-color: var(--accent-line);
  background: rgba(108, 140, 255, 0.09);
}

/* --------------------------------------------------------------------------
   3. Lists
   -------------------------------------------------------------------------- */

.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.checklist li {
  position: relative;
  padding-inline-start: 1.85rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.45em;
  inline-size: 0.7rem;
  block-size: 0.4rem;
  border-inline-start: 2px solid var(--accent);
  border-block-end: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.checklist li strong { color: var(--text); font-weight: 600; }

.numbered {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
}

.numbered li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 3.25rem;
  color: var(--text-muted);
}

.numbered li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -0.1em;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-text);
  border: 1px solid var(--accent-line);
  border-radius: 0.6rem;
  padding: 0.3rem 0.5rem;
  background: rgba(108, 140, 255, 0.08);
}

.numbered li h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   4. Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--surface-2);
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
}

.stat dt {
  font-size: 0.85rem;
  color: var(--text-dim);
  order: 2;
}

.stat dd {
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  background: linear-gradient(115deg, #ffffff 15%, var(--accent-text) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat { display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   5. Logo strip (placeholders until real client marks are cleared)
   -------------------------------------------------------------------------- */

.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  justify-items: center;
}

.logos img {
  inline-size: 100%;
  max-inline-size: 10rem;
  block-size: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--t), filter var(--t);
}

.logos img:hover { opacity: 0.9; filter: grayscale(0); }

.logos-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   6. Testimonials
   -------------------------------------------------------------------------- */

.quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(108, 140, 255, 0.09), transparent 60%),
    var(--surface-2);
  block-size: 100%;
}

.quote blockquote {
  font-size: 1.03rem;
  color: var(--text);
  line-height: 1.65;
}

.quote blockquote::before {
  content: "";
  display: block;
  inline-size: 2rem;
  block-size: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.quote figcaption {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: auto;
}

.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. FAQ (details/summary - no JS)
   -------------------------------------------------------------------------- */

.faq { display: grid; gap: 0.75rem; max-width: 52rem; margin-inline: auto; }

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color var(--t);
}

.faq details[open] { border-color: var(--accent-line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.25rem 1.15rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  color: var(--text);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 1.35rem;
  inset-block-start: 1.45rem;
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border-inline-end: 2px solid var(--accent-text);
  border-block-end: 2px solid var(--accent-text);
  transform: rotate(45deg);
  transition: transform var(--t);
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq .faq__body { padding: 0 1.35rem 1.35rem; color: var(--text-muted); }
.faq .faq__body p + p { margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   8. Service & industry detail sections
   -------------------------------------------------------------------------- */

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 1rem 0 0;
}

.anchor-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t), border-color var(--t), background-color var(--t);
}

.anchor-nav a:hover,
.anchor-nav a:focus-visible {
  color: var(--text);
  border-color: var(--accent-line);
  background: rgba(108, 140, 255, 0.08);
}

.detail {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 6rem;
}

.detail:first-of-type { border-top: 0; }

.detail__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
}

.detail h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.9rem;
}

.detail__lead {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.detail p { color: var(--text-muted); }
.detail p + p { margin-top: 0.9rem; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
}

.panel h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   9. Careers
   -------------------------------------------------------------------------- */

.jobs { display: grid; gap: 1rem; }

.job .tag-row { margin-top: 0; }

.job {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.35rem, 2.6vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color var(--t), background-color var(--t);
}

.job:hover { border-color: var(--accent-line); background: var(--surface-3); }

.job__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.job h3 { font-size: 1.15rem; letter-spacing: -0.015em; }

.job__id { font-size: 0.8rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.job__summary { color: var(--text-muted); }

.job__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.job__salary { font-size: 0.9rem; color: var(--text); font-weight: 550; }

.jobs-status {
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.filters button {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  transition: color var(--t), border-color var(--t), background-color var(--t);
}

.filters button:hover { color: var(--text); border-color: var(--accent-line); }

.filters button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 1.15rem; }

.form__row {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.field { display: grid; gap: 0.45rem; }

.field label {
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--text);
}

.field .hint { font-size: 0.8rem; color: var(--text-dim); }

.field .req { color: var(--accent-text); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  inline-size: 100%;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
  appearance: none;
}

textarea { min-block-size: 8.5rem; resize: vertical; }

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - 0.8rem) 1.25rem;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-inline-end: 2.5rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 140, 255, 0.28);
}

input::placeholder,
textarea::placeholder { color: var(--text-faint); }

input:user-invalid,
textarea:user-invalid { border-color: var(--danger); }

.form__consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form__consent input { inline-size: 1.05rem; block-size: 1.05rem; margin-top: 0.15rem; accent-color: var(--accent); }

.hp {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__status {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.925rem;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text-muted);
}

.form__status[data-state="success"] {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
  color: var(--success);
}

.form__status[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.09);
  color: var(--danger);
}

.form__status[hidden] { display: none; }

/* --------------------------------------------------------------------------
   11. Contact details block
   -------------------------------------------------------------------------- */

.contact-list { display: grid; gap: 1.35rem; }

.contact-item { display: grid; gap: 0.2rem; }

.contact-item dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-item dd { font-size: 1.02rem; color: var(--text); }

.contact-item a { color: var(--text); text-decoration-color: var(--accent-line); }
.contact-item a:hover { color: var(--accent-text); }

.offices { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.office {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--surface-2);
}

.office h3 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.75rem;
}

.office address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.65;
}

.office .office__line { display: block; }
.office .office__contact { margin-top: 0.75rem; display: grid; gap: 0.25rem; font-size: 0.9rem; }
.office a { color: var(--text); }
.office a:hover { color: var(--accent-text); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 21 / 9;
}

@media (max-width: 46rem) {
  .map-frame { aspect-ratio: 4 / 3; }
}

.map-frame iframe {
  inline-size: 100%;
  block-size: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.35) contrast(1.05);
}

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.25rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(108, 140, 255, 0.22), transparent 65%),
    radial-gradient(70% 120% at 100% 100%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--surface-2);
}

.cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
}

.cta p { color: var(--text-muted); max-width: 48ch; margin-inline: auto; }

.cta .btn-row { justify-content: center; margin-top: 1.9rem; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.footer-brand { max-width: 26rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 1rem; }

.footer-col h2 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--t);
}

.footer-col a:hover,
.footer-col a:focus-visible { color: var(--text); }

.social-row { display: flex; gap: 0.6rem; margin-top: 1.5rem; list-style: none; padding: 0; }

.social-row a {
  inline-size: 2.4rem;
  block-size: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  transition: color var(--t), border-color var(--t), background-color var(--t);
}

.social-row a:hover,
.social-row a:focus-visible {
  color: var(--accent-text);
  border-color: var(--accent-line);
  background: rgba(108, 140, 255, 0.08);
}

.social-row svg { inline-size: 1.1rem; block-size: 1.1rem; }

.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   14. Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumb { padding-top: clamp(1.5rem, 3vw, 2.25rem); }

.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: var(--line-strong);
}

.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   15. Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: 1.1rem;
}

.page-hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }

/* --------------------------------------------------------------------------
   16. Abstract graphics
   -------------------------------------------------------------------------- */

.figure-abstract {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
}

.figure-abstract svg,
.figure-abstract img { inline-size: 100%; block-size: auto; display: block; }

.figure-abstract figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   17. 404
   -------------------------------------------------------------------------- */

.notfound {
  min-block-size: 62vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: clamp(3rem, 10vw, 7rem);
}

.notfound .code {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-text), rgba(34, 211, 238, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 1rem 0 0.85rem; }
.notfound p { color: var(--text-muted); max-width: 46ch; margin-inline: auto; }
.notfound .btn-row { justify-content: center; margin-top: 2rem; }

.notfound-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   18. Scroll reveal - pure CSS, progressive enhancement
   Uses scroll-driven animations where supported; everything stays visible
   (and unanimated) everywhere else, so there is never hidden content.
   -------------------------------------------------------------------------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
  }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .cta,
  .map-frame { display: none !important; }

  :root { --bg: #fff; --text: #000; --text-muted: #333; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}

/* --------------------------------------------------------------------------
   20. Footer office mini-list (rendered from site.config.json -> offices[])
   -------------------------------------------------------------------------- */

.offices-mini {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.55;
}

.offices-mini strong { color: var(--text-muted); font-weight: 600; }
