/* ============================================================
   NHE Systems — design system
   ============================================================ */

:root {
  --crimson:       #C8102E;
  --crimson-dark:  #A00D24;
  --ink:           #111114;
  --ink-hero:      #0E0E10;
  --slate:         #4A4A52;
  --mute:          #8A8A92;
  --bg:            #F7F7F8;
  --surface:       #FFFFFF;
  --border:        #E7E7EA;

  --max:    1200px;
  --prose:  720px;
  --radius: 12px;

  --shadow-sm: 0 1px 2px rgba(17,17,20,.04), 0 1px 1px rgba(17,17,20,.03);
  --shadow-md: 0 12px 32px -16px rgba(17,17,20,.18), 0 2px 6px rgba(17,17,20,.04);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 12px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 4.6vw + 1rem, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); }
h3 { font-size: 1.25rem; line-height: 1.3; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 20px;
}
.eyebrow-bar {
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--crimson);
}
.eyebrow-light { color: #ff5b6e; }
.eyebrow-light .eyebrow-bar { background: #ff5b6e; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(200,16,46,.6);
}
.btn-primary:hover { background: var(--crimson-dark); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-xl { padding: 18px 32px; font-size: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 4px;
  border-bottom: 1px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.btn-ghost:hover { color: var(--crimson); border-bottom-color: var(--crimson); }
.btn-ghost span { transition: transform .15s var(--ease); }
.btn-ghost:hover span { transform: translateX(3px); }

/* ============================================================
   Header / nav  — two-row layout
   ============================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,247,248,0);
  border-bottom: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.header-top { padding: 16px 0 12px; }
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
}
.brand-logo {
  height: clamp(40px, 5vw, 56px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.brand-tagline {
  display: inline-block;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
  line-height: 1.2;
}

.header-bottom {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.55);
}
.site-header.scrolled .header-bottom { background: transparent; }

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  height: 56px;
}
.primary-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 18px 2px;
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 12px;
  height: 2px; background: var(--crimson);
  transition: right .2s var(--ease);
}
.primary-nav a:hover { color: var(--crimson); }
.primary-nav a:hover::after { right: 0; }

.nav-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav a {
  padding: 14px 4px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: 0; margin-top: 12px; }
.mobile-nav.open { display: flex; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: clamp(64px, 9vw, 128px) 0 clamp(80px, 10vw, 144px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 36px; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(200,16,46,.10));
  animation: hero-float 8s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.section-soft { background: #fff; border-block: 1px solid var(--border); }
.section-dark {
  background: var(--ink-hero);
  color: #B5B5BC;
}
.section-dark h2,
.section-dark h3 { color: #fff; }
/* override anywhere --slate would otherwise leak through on dark bg */
.section-dark p,
.section-dark .section-head .section-sub,
.section-dark .approach-prose { color: #B5B5BC; }
.section-dark .section-head .section-sub { max-width: 720px; }

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head .section-sub { font-size: 1.05rem; color: var(--slate); }

/* ============================================================
   Capability cards
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #DADADE;
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(200,16,46,.08);
  color: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); }

/* Capability cards on dark background */
.section-dark .card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
  box-shadow: none;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 14px;
}
.section-dark .card:hover {
  border-color: rgba(200,16,46,.55);
  background: rgba(200,16,46,.06);
}
.section-dark .card-icon {
  background: rgba(200,16,46,.18);
  color: #ff7a8a;
  margin-bottom: 0;
  align-self: center;
}
.section-dark .card h3 {
  color: #fff;
  margin-bottom: 0;
  align-self: center;
}
.section-dark .card > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #B5B5BC;
}

/* ============================================================
   Approach
   ============================================================ */

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.approach-prose {
  max-width: var(--prose);
  font-size: 1.05rem;
  line-height: 1.7;
}

.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 32px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 14px;
  font-weight: bold;  
  color: var(--ink);
}
.chip::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--crimson);
}

/* ============================================================
   Industries (dark band)
   ============================================================ */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.industry-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 14px;
  align-content: start;
}
.industry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,16,46,.55);
  background: rgba(200,16,46,.06);
}

.industry-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(200,16,46,.18);
  color: #ff7a8a;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
  align-self: center;
}

.industry-card h3 {
  color: #fff;
  margin-bottom: 0;
  align-self: center;
  font-size: 1.15rem;
}
.industry-card > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #B5B5BC;
  font-size: 15px;
  line-height: 1.6;
}
.industry-card .process-list {
  grid-column: 1 / -1;
  margin: 0;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #B5B5BC;
  line-height: 1.5;
}
.process-list li {
  position: relative;
  padding-left: 16px;
}
.process-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crimson);
}

.industries-note {
  margin-top: 40px;
  text-align: center;
  color: #8A8A92;
  font-size: 15px;
  font-style: italic;
}

/* ============================================================
   Contact
   ============================================================ */

.section-cta {
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--border);
}
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 16px; }
.contact-inner .lead { margin: 0 auto 36px; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--ink-hero);
  color: #B5B5BC;
  padding: 48px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand img {
  height: 36px;
  width: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 13px;
  color: #8A8A92;
  margin: 0;
}
.footer-meta { text-align: right; }
.footer-meta a {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 6px;
}
.footer-meta a:hover { color: var(--crimson); }
.footer-meta p { font-size: 13px; color: #8A8A92; margin: 0; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid     { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual   { order: -1; max-width: 360px; margin: 0 auto; }
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid     { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-nav   { gap: 28px; }
}

@media (max-width: 860px) {
  .brand { gap: 10px; }
  .brand-tagline {
    padding-left: 10px;
    font-size: 11px;
    letter-spacing: .12em;
    white-space: normal;
    max-width: 9.5em;
  }
}

@media (max-width: 720px) {
  .header-top { padding: 12px 0; }
  .header-bottom { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand-logo { height: clamp(36px, 9vw, 48px); }
  .brand-tagline { display: none; }

  .card-grid     { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }

  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }

  .cta-row { gap: 16px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 72px; }
  .btn-xl { padding: 16px 24px; font-size: 15px; word-break: break-all; }
}
