
:root {
  --red: #be1622;
  --nefa-hero-surface: #f4f3ee;
  --nefa-ink: #222423;
  --nefa-copy: #515650;
  --nefa-border: #dadcd6;
  --nefa-panel: #f0f1ed;
  --line: var(--nefa-border);
  --bg: var(--nefa-panel);
  --brand-header: #fff;
  --brand-footer: #eef0eb;
  --brand-radius: 0;
  --architectural-gradient: linear-gradient(125deg, #fbfaf7, #eef0eb);
}


.nefa-hero {
  background: var(--nefa-hero-surface);
  border-bottom: 1px solid var(--nefa-border);
}
.nefa-hero :is(h1, .hero-title) {
  color: var(--nefa-ink);
  font-family: var(--nefa-type);
  font-weight: 650;
  text-wrap: balance;
}
.nefa-hero .eyebrow,
.nefa-hero .service-identity { color: var(--red); }
.nefa-hero .eyebrow { margin-bottom: 16px; }
.nefa-hero--image :is(.nefa-front-inner, .service-intro-inner, .company-hero) {
  width: var(--intro-width);
  margin-inline: auto;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 78px);
  padding-block: var(--intro-space);
  align-items: center;
}
.nefa-hero--image :is(.service-intro-photo, .company-photo, .nefa-front-photo) {
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.nefa-hero--image :is(.service-intro-photo, .company-photo) img { height: auto; }
.nefa-hero--compact.page-title { padding-block: var(--intro-compact-space); }
.nefa-hero--compact h1 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; }
@media (max-width: 760px) {
  .nefa-hero--image :is(.nefa-front-inner, .service-intro-inner, .company-hero) {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}


:where(button, input, select, textarea, dialog) { border-radius: 0; }

@media (max-width: 900px) {
  header > #nav.open { max-height: calc(100dvh - 82px); }
  #nav > a, #nav .nav-services summary { min-height: 44px; }
}

@media (max-width: 760px) {
  #contact :is(input:not([type="checkbox"], [type="radio"]), select, textarea),
  .references input[type="search"] {
    font-size: 16px;
    min-height: 44px;
  }
  #contact .form-actions button { min-height: 48px; }
  #contact .form-summary dd { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .contact-page #contact .form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .contact-page #contact .form-actions :is([data-next], [type="submit"]) {
    width: 100%;
    margin-inline-start: 0;
  }
  .nefa-front-actions { gap: 8px 18px; }
  .nefa-evidence-sectors li { min-width: 0; }
}

.mobile-call-bar { display: none; }

@media (max-width: 900px) {
  :root { --mobile-call-height: calc(66px + env(safe-area-inset-bottom)); }
  html:has(.mobile-call-bar) { scroll-padding-bottom: var(--mobile-call-height); }
  body:has(.mobile-call-bar) { padding-bottom: var(--mobile-call-height); }
  body:has(.mobile-call-bar) .back-to-top { bottom: calc(var(--mobile-call-height) + 12px); }
  body:has(.mobile-call-bar) header > #nav.open {
    max-height: calc(100dvh - 82px - var(--mobile-call-height));
  }
  .mobile-call-bar {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 21;
    padding: 8px max(5%, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(5%, env(safe-area-inset-left));
    border-top: 1px solid var(--nefa-border);
    background: var(--brand-header);
  }
  .mobile-call-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    background: var(--red);
    color: #fff;
    font-size: 1rem;
    font-weight: 650;
  }
  .mobile-call-bar a:is(:hover, :active) { background: var(--red-dark); }
}
