/* ==========================================================================
   Layout — header, hero, sections, sector/feature grids, footer, mobile bar
   ========================================================================== */

/* ---------- Sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(15, 20, 25, 0.07);
  background: rgba(251, 247, 240, 0.94);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-wm { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.brand-flag {
  display: inline-flex;
  margin-left: 7px;
  width: 18px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
  margin-left: auto;
}
.nav-links a { color: var(--ink-2); font-weight: 500; transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--pad) 20px;
  border-top: 1px solid var(--rule);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 13px 6px;
  font-family: var(--f-display);
  font-size: 18px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

/* ---------- Hero (merged brand band + value prop) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(165deg, #1b2233 0%, #0c1119 55%, #06090e 100%);
  color: var(--on-dark);
  padding: clamp(44px, 7vw, 92px) var(--pad) clamp(52px, 7vw, 96px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 78% 28%, rgba(255, 154, 43, 0.30), transparent 62%),
    radial-gradient(40% 44% at 12% 8%, rgba(111, 168, 255, 0.12), transparent 60%);
}
/* faint engineering grid overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 0%, transparent 75%);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.hero .eyebrow { color: var(--on-dark-2); }
.hero h1 {
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero h1 em { font-style: normal; color: var(--temp); }
.hero-lede {
  font-size: var(--t-lede);
  color: var(--on-dark-2);
  max-width: 52ch;
  margin: 0 0 30px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 30px; }
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--on-dark-2);
}
.hero-contact a { color: var(--on-dark); border-bottom: 1px solid var(--temp); }
.hero-contact .mono { color: var(--on-dark-3); }

/* Hero product media */
.hero-media { position: relative; display: flex; justify-content: center; }
.hero-figure {
  position: relative;
  width: min(100%, 430px);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  background: #0c1018;
}
.hero-figure::before {           /* warm rim glow behind the product */
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 35%, var(--temp-glow), transparent 70%);
  filter: blur(26px);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero-figcap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(10, 13, 18, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 11px;
  border-radius: 999px;
}
.hero-chip b { color: var(--temp-2); font-weight: 500; }

/* ---------- Generic section ---------- */
.section {
  padding: clamp(64px, 9vw, 138px) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section-alt {
  background: var(--canvas-3);
  max-width: 100%;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-alt > * { max-width: var(--max); margin-inline: auto; }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 820px; }
.section-head h2 {
  font-size: clamp(29px, 4.2vw, 56px);
  letter-spacing: -0.025em;
  margin: 6px 0 18px;
}
.section-lede {
  color: var(--ink-2);
  font-size: var(--t-lede);
  margin: 0;
  max-width: 62ch;
  line-height: 1.62;
}

/* ---------- Stats band (honest, spec-based) ---------- */
.stats { padding: clamp(48px, 6vw, 84px) var(--pad); max-width: var(--max); margin: 0 auto; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.stat { padding: 30px 26px 4px; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--temp-ink);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num span { font-family: var(--f-mono); font-size: 0.42em; color: var(--ink-2); }
.stat-label { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; max-width: 24ch; line-height: 1.45; }

/* ---------- Series grid ---------- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.series-card {
  padding: 32px 30px 36px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  transition: background 0.25s var(--ease);
}
.series-card:hover { background: rgba(255, 255, 255, 0.6); }
.series-num { color: var(--temp-ink); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; }
.series-card h3 { font-size: 23px; margin: 16px 0 10px; transition: color 0.2s var(--ease); }
.series-card:hover h3 { color: var(--temp-ink); }
.series-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.series-range { color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; margin: 0 !important; }

/* ---------- Sector cards (capability, replaces fabricated case studies) ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--gutter); }
.sector {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--canvas-2);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.sector:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--rule-strong); }
.sector-ico { width: 38px; height: 38px; color: var(--temp-ink); }
.sector-ico svg { width: 100%; height: 100%; }
.sector h3 { font-size: 21px; margin: 0; }
.sector p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }
.sector-spec {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--temp-ink);
}

/* ---------- Why list ---------- */
.why-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.why-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.why-num { color: var(--temp-ink); font-family: var(--f-mono); font-size: 14px; letter-spacing: 0.2em; padding-top: 6px; }
.why-list h3 { font-size: clamp(20px, 2.4vw, 27px); margin: 0 0 9px; }
.why-list p { color: var(--ink-2); margin: 0; max-width: 62ch; line-height: 1.6; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  counter-reset: step;
}
.steps li { padding: 30px 28px 36px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.step-num { color: var(--temp-ink); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; }
.steps h3 { font-size: 20px; margin: 14px 0 10px; line-height: 1.2; }
.steps p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }

/* ---------- Commitments (replaces fabricated testimonials) ---------- */
.commit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gutter); }
.commit {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--canvas-2);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.commit-check { width: 30px; height: 30px; color: var(--temp-ink); }
.commit h3 { font-size: 19px; margin: 0; }
.commit p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; }
.commit-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(32px, 5vw, 84px); align-items: start; }
.about-grid h2 { font-size: clamp(27px, 3.8vw, 50px); letter-spacing: -0.025em; margin: 10px 0 0; }
.about-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin: 0 0 18px; max-width: 58ch; }

/* ---------- Quote section: form + contact rail ---------- */
.quote-layout { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.quote-rail {
  position: sticky;
  top: 100px;
  background: linear-gradient(165deg, var(--canvas-2), var(--canvas-3));
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.quote-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 92% 0%, var(--temp-soft), transparent 65%);
}
.quote-rail h3 { color: var(--ink); font-size: 22px; margin: 0; }
.quote-rail p { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0; }
.rail-phone { font-family: var(--f-display); font-size: 26px; font-weight: 500; color: var(--ink) !important; border-bottom-color: var(--temp); }
.rail-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rail-hours { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(56px, 7vw, 88px) var(--pad) 34px;
  background: var(--void);
  color: var(--on-dark);
  border-top: 1px solid var(--rule-dark);
}
.foot-cta {
  max-width: var(--max);
  margin: 0 auto clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-dark);
}
.foot-cta .eyebrow { color: var(--on-dark-3); }
.foot-cta h3 { font-size: clamp(21px, 2.6vw, 30px); margin: 6px 0 0; line-height: 1.22; max-width: 34ch; color: #fff; }
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-sub { color: var(--on-dark-3); }
.foot-tag { color: var(--on-dark-2); margin: 16px 0 0; max-width: 34ch; font-size: 14px; line-height: 1.6; }
.foot-col h4 { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3); margin: 0 0 12px; }
.foot-col p, .foot-col a { color: var(--on-dark-2); font-size: 14px; line-height: 1.7; }
.foot-col a:hover { color: #fff; }
.foot-base {
  max-width: var(--max);
  margin: clamp(40px, 5vw, 56px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--on-dark-3);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1px;
  background: var(--rule-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 30px rgba(10, 13, 18, 0.18);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 11px 4px;
  background: var(--void);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: var(--mobilebar-h);
}
.mobile-bar a svg { width: 19px; height: 19px; }
.mobile-bar .mb-wa { background: #1f7a4d; }
.mobile-bar .mb-quote { background: var(--temp); color: var(--void); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-rail { position: static; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { order: 2; justify-content: flex-start; }
  .hero-figure { width: min(82%, 360px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--rule); padding-bottom: 24px; }
  .stat:nth-last-child(-n + 2) { border-bottom: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-cta { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-cta .btn-header-quote { display: none; }   /* keep WhatsApp in header; quote lives in sticky bar */
  .header-wa .btn-label { display: none; }            /* WhatsApp becomes icon-only so the wordmark keeps its room */
  .header-wa { padding-left: 11px; padding-right: 11px; }
  .mobile-bar { display: grid; }
  body { padding-bottom: var(--mobilebar-h); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .why-list li { grid-template-columns: 1fr; gap: 8px; }
  .why-num { padding-top: 0; }
  .foot-base { flex-direction: column; }
}

@media (max-width: 440px) {
  .foot-grid { grid-template-columns: 1fr; }
}
