/* ===========================================================
   Premier 1st Construction LLC — site styles
   Direction: industrial · safety-first · modern utility
   Palette: blue · grey · black
   =========================================================== */

:root {
  /* Color */
  --c-bg: #F2EFE8;        /* concrete off-white */
  --c-surface: #FFFFFF;
  --c-surface-2: #ECE8DE; /* secondary surface */
  --c-ink: #15181C;       /* near-black charcoal */
  --c-ink-2: #2A2F36;     /* slate */
  --c-muted: #5A6068;
  --c-line: #D7D2C5;

  --c-primary: #2F80C3;    /* utility blue */
  --c-primary-2: #153A5B;
  --c-steel: #8A94A3;
  --c-blue: #2F80C3;      /* utility blue */
  --c-blue-2: #16395A;

  /* Type */
  --f-display: "Clash Grotesk", "Inter", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --f-body: "Satoshi", "Inter", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Sizes (clamp for fluid scale) */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 17px;
  --text-lg: clamp(18px, 1.6vw, 20px);
  --text-xl: clamp(22px, 2.4vw, 28px);
  --text-2xl: clamp(28px, 3.2vw, 40px);
  --text-3xl: clamp(36px, 5vw, 60px);
  --text-hero: clamp(40px, 6.2vw, 78px);

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --sp-16: 64px; --sp-20: 80px; --sp-24: 96px; --sp-32: 128px;

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(21,24,28,0.06), 0 1px 1px rgba(21,24,28,0.04);
  --shadow-md: 0 8px 24px rgba(21,24,28,0.08);

  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: var(--text-md); letter-spacing: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-6); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: var(--c-bg);
  padding: var(--sp-3) var(--sp-4);
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); border-radius: var(--r-sm); }

/* Focus styles */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
}
.eyebrow-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--c-primary);
  border-radius: 999px;
}
.eyebrow-light { color: var(--c-steel); }
.accent { color: var(--c-primary); }
.muted { color: var(--c-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: var(--text-base); }
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 6px 14px rgba(47,128,195,0.25);
}
.btn-primary:hover { background: var(--c-primary-2); border-color: var(--c-primary-2); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(21,24,28,0.06); }
.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: var(--c-bg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--c-bg) 88%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--c-line);
  background: color-mix(in oklab, var(--c-bg) 96%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: 76px;
  padding-top: var(--sp-3);
  padding-bottom: var(--sp-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--c-ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 56px;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 2px 3px rgba(21,24,28,0.18));
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 4px;
}

.primary-nav {
  margin-left: auto;
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-ink-2);
  position: relative;
  padding: 6px 2px;
}
.primary-nav a:hover { color: var(--c-ink); }
.primary-nav a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 2px; background: var(--c-primary);
  transition: right .25s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }

.header-cta { margin-left: var(--sp-3); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  width: 44px; height: 44px;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-ink);
  margin: 4px auto;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
}
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--sp-4) var(--sp-6);
}
.mobile-menu a {
  text-decoration: none;
  color: var(--c-ink);
  padding: 14px var(--sp-3);
  font-weight: 500;
  border-radius: var(--r-sm);
  font-size: var(--text-md);
}
.mobile-menu a:hover { background: var(--c-surface-2); }
.mobile-menu .btn { margin-top: var(--sp-3); justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-ink);
  color: #F2EFE8;
  padding: clamp(44px, 5vw, 76px) 0 clamp(36px, 4vw, 64px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.9;
}
.hero-glow {
  position: absolute;
  top: -10%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(47,128,195,0.18), rgba(47,128,195,0) 60%);
  filter: blur(20px);
}
.hero-inner { position: relative; }
.hero .eyebrow { color: var(--c-primary); }

.hero-title {
  font-family: var(--f-display);
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 16ch;
  margin-top: var(--sp-4);
  color: #F8F6F0;
}
.hero-lede {
  margin-top: var(--sp-6);
  max-width: 62ch;
  font-size: var(--text-lg);
  color: rgba(242,239,232,0.78);
}
.hero-cta {
  margin-top: var(--sp-8);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
}
.hero-cta .btn-ghost { color: #F2EFE8; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,0.08); }

.hero-strip {
  list-style: none;
  margin: var(--sp-8) 0 0;
  padding: var(--sp-4) 0 0;
  border-top: 1px solid rgba(242,239,232,0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.hero-strip li {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.strip-num {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.strip-label {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,239,232,0.65);
}

/* ---------- Section base ---------- */
.section {
  padding: clamp(72px, 9vw, 140px) 0;
}
.section-dark {
  background: var(--c-ink);
  color: #F2EFE8;
}
.section-dark h2 { color: #F8F6F0; }
.section-dark .section-lede { color: rgba(242,239,232,0.7); }

.section-head {
  max-width: 760px;
  margin-bottom: var(--sp-12);
}
.section-head h2 { margin-top: var(--sp-4); }
.section-lede {
  margin-top: var(--sp-6);
  font-size: var(--text-lg);
  color: var(--c-muted);
  max-width: 60ch;
}

.grid { display: grid; gap: var(--sp-6); }

/* ---------- Services ---------- */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; gap: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--c-primary);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-ink);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { transform: scaleY(1); }
.service-photo {
  margin: calc(var(--sp-6) * -1) calc(var(--sp-6) * -1) var(--sp-2);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-ink-2);
  border-bottom: 1px solid var(--c-line);
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .45s ease, filter .45s ease;
  filter: saturate(0.96) contrast(1.02);
}
.service-card:hover .service-photo img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.04);
}
.service-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-ink);
  color: var(--c-primary);
  border-radius: var(--r-md);
}
.service-card h3 { margin-top: var(--sp-2); }
.service-card p { color: var(--c-muted); font-size: var(--text-base); }
.bullets {
  list-style: none; padding: 0; margin: auto 0 0;
  display: grid; gap: var(--sp-2);
  border-top: 1px solid var(--c-line);
  padding-top: var(--sp-4);
}
.bullets li {
  font-size: var(--text-sm);
  color: var(--c-ink-2);
  padding-left: var(--sp-4);
  position: relative;
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 2px; background: var(--c-primary);
}

/* ---------- Sectors ---------- */
.sector-list {
  border-top: 1px solid rgba(242,239,232,0.18);
}
.sector-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--sp-6);
  align-items: center;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid rgba(242,239,232,0.18);
  transition: padding .2s ease;
}
.sector-row:hover { padding-left: var(--sp-3); }
.sector-num {
  font-family: var(--f-mono);
  font-size: var(--text-sm);
  color: var(--c-primary);
  letter-spacing: 0.14em;
}
.sector-body h3 { margin-bottom: var(--sp-2); color: #F8F6F0; }
.sector-body p { color: rgba(242,239,232,0.68); max-width: 60ch; }
.sector-tag {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-steel);
  padding: 6px 12px;
  border: 1px solid rgba(138,148,163,0.45);
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Process ---------- */
.process-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-6);
  counter-reset: step;
}
.process-step {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-3);
  position: relative;
}
.step-num {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--c-primary-2);
  font-weight: 500;
}
.process-step h3 { font-size: var(--text-lg); }
.process-step p { color: var(--c-muted); font-size: var(--text-sm); }

/* ---------- Safety ---------- */
.safety {
  background: var(--c-surface-2);
  position: relative;
  overflow: hidden;
}
.safety::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--c-primary) 0 14px,
    var(--c-ink) 14px 28px
  );
  opacity: 0.85;
}
.safety-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}
.safety-list {
  margin-top: var(--sp-8);
  padding: 0; list-style: none;
  display: grid; gap: var(--sp-4);
}
.safety-list li {
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-surface);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-sm);
  font-size: var(--text-base);
  color: var(--c-ink-2);
}
.safety-list strong { color: var(--c-ink); display: block; margin-bottom: 2px; }
.safety-copy p { color: var(--c-ink-2); }
.safety-note {
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  color: var(--c-muted);
  font-style: italic;
}
.safety-card {
  background: var(--c-ink);
  color: #F2EFE8;
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  position: sticky;
  top: 96px;
}
.safety-card-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-6);
}
.safety-card h3 { color: #F8F6F0; margin-bottom: var(--sp-4); }
.safety-card p { color: rgba(242,239,232,0.75); margin-bottom: var(--sp-6); }
.safety-card .btn-outline { color: #F2EFE8; border-color: rgba(242,239,232,0.4); }
.safety-card .btn-outline:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pulse {
  width: 8px; height: 8px; border-radius: 999px; background: var(--c-primary);
  box-shadow: 0 0 0 0 rgba(47,128,195,0.7);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,128,195,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(47,128,195,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,128,195,0); }
}

/* ---------- Credentials ---------- */
.credentials {
  background: var(--c-ink);
  color: #F8F6F0;
  padding: var(--sp-14) 0;
  border-top: 1px solid rgba(242,239,232,0.1);
  border-bottom: 1px solid rgba(242,239,232,0.1);
}
.credentials-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--sp-12);
  align-items: center;
}
.credentials .eyebrow {
  color: var(--c-primary);
}
.credentials h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  max-width: 12ch;
}
.credentials p {
  color: rgba(242,239,232,0.72);
  max-width: 58ch;
  margin-top: var(--sp-4);
}
.credential-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.credential-badge {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(242,239,232,0.16);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-5);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}
.credential-badge-wide {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) 1fr;
  align-items: center;
}
.credential-logo {
  min-height: 78px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  width: 100%;
  background: #fff;
  color: var(--c-ink);
}
.credential-logo span {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.credential-logo-isn span {
  font-size: clamp(42px, 6vw, 64px);
  color: #F36C21;
}
.credential-logo-isn {
  background:
    linear-gradient(135deg, #fff 0 58%, #FFF1E8 58% 100%);
  border: 1px solid rgba(243,108,33,0.34);
}
.credential-logo-avetta span {
  font-size: clamp(32px, 5vw, 50px);
  color: #343A40;
}
.credential-logo-avetta {
  background:
    linear-gradient(90deg, #fff 0 70%, #F05A28 70% 100%);
  border: 1px solid rgba(240,90,40,0.34);
}
.credential-logo-avetta::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #F05A28;
  transform: rotate(45deg);
  margin-right: var(--sp-3);
  border-radius: 4px;
}
.credential-logo-license {
  background:
    linear-gradient(135deg, #F8F6F0, #DDE3EA);
  border: 1px solid rgba(47,128,195,0.22);
}
.credential-logo-license span {
  font-family: var(--f-mono);
  letter-spacing: 0.12em;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--c-primary-2);
}
.credential-badge h3 {
  color: #fff;
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}
.credential-badge p {
  margin: 0;
  color: rgba(242,239,232,0.68);
  font-size: var(--text-sm);
}

/* ---------- Environment ---------- */
.environment {
  background:
    radial-gradient(circle at 85% 10%, rgba(47,128,195,0.12), transparent 32%),
    linear-gradient(180deg, #F7F8F8 0%, var(--c-bg) 100%);
}
.environment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--sp-16);
  align-items: start;
}
.environment-copy {
  position: sticky;
  top: 96px;
}
.environment-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.environment-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.environment-card:nth-child(even) {
  transform: translateY(var(--sp-8));
}
.environment-num {
  font-family: var(--f-mono);
  color: var(--c-primary);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  font-weight: 500;
}
.environment-card h3 {
  font-size: var(--text-lg);
}
.environment-card p {
  color: var(--c-muted);
  font-size: var(--text-sm);
}

/* ---------- Why us ---------- */
.why-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.why-card {
  border: 1px solid rgba(242,239,232,0.18);
  background: rgba(255,255,255,0.02);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  transition: border-color .25s ease, background-color .25s ease;
}
.why-card:hover { border-color: var(--c-primary); background: rgba(47,128,195,0.05); }
.why-card h3 { color: #F8F6F0; margin-bottom: var(--sp-3); }
.why-card p { color: rgba(242,239,232,0.72); font-size: var(--text-base); }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--c-bg); }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
}
.cap-item {
  padding: var(--sp-6);
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--text-base);
  color: var(--c-ink-2);
  background: var(--c-surface);
  transition: background-color .2s ease;
}
.cap-item:hover { background: #fff; }
.cap-dot {
  width: 10px; height: 10px;
  background: var(--c-primary);
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ---------- Contact ---------- */
.contact { background: var(--c-surface-2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-16);
  align-items: start;
}
.contact-info {
  margin-top: var(--sp-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.contact-info div { padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.contact-info dt {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--sp-2);
}
.contact-info dd {
  margin: 0;
  font-size: var(--text-base);
  color: var(--c-ink);
}
.contact-info a { color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-primary); padding-bottom: 1px; }
.contact-info a:hover { color: var(--c-primary-2); }

/* Form */
.quote-form {
  background: var(--c-surface);
  padding: var(--sp-10);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.form-title {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-2);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.field label {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  font-weight: 500;
}
.req { color: var(--c-primary-2); }

.field input,
.field select,
.field textarea {
  font-family: var(--f-body);
  font-size: var(--text-base);
  color: var(--c-ink);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47,128,195,0.18);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #B23A2F;
  background: #FCEEEC;
}
.field-error {
  font-size: var(--text-xs);
  color: #B23A2F;
  min-height: 0;
  margin: 0;
}
.field.invalid .field-error { min-height: 18px; }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--c-ink-2);
  cursor: pointer;
}
.checkbox input { accent-color: var(--c-primary); width: 18px; height: 18px; }

.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--c-muted);
  margin-top: var(--sp-2);
  line-height: 1.5;
}
[hidden] { display: none !important; }
.form-success {
  background: #EAF5E5;
  border: 1px solid #C4DEB1;
  border-left: 3px solid #4A8B2A;
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-6);
  display: flex; flex-direction: column; gap: 4px;
  color: #2F5418;
  font-size: var(--text-sm);
}
.form-success strong { font-size: var(--text-base); }
.form-success a { color: #2F5418; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(242,239,232,0.7);
  padding: var(--sp-16) 0 var(--sp-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(242,239,232,0.12);
}
.site-footer .brand-name { color: #F8F6F0; }
.site-footer .brand-sub { color: rgba(242,239,232,0.5); }
.footer-tag {
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(242,239,232,0.6);
  max-width: 38ch;
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer-col a {
  text-decoration: none;
  color: rgba(242,239,232,0.7);
  font-size: var(--text-sm);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--c-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--sp-6);
  font-size: var(--text-xs);
  color: rgba(242,239,232,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .safety-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .safety-card { position: static; }
  .credentials-inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .credentials h2 { max-width: 18ch; }
  .environment-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .environment-copy { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero-strip { grid-template-columns: 1fr 1fr; gap: var(--sp-8) var(--sp-4); }
  .sector-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
  .sector-num { order: -1; }
  .sector-tag { justify-self: start; margin-top: var(--sp-2); }
  .field-row { grid-template-columns: 1fr; }
  .credential-badges { grid-template-columns: 1fr; }
  .credential-badge-wide { grid-template-columns: 1fr; }
  .environment-panel { grid-template-columns: 1fr; }
  .environment-card:nth-child(even) { transform: none; }
  .contact-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
  .quote-form { padding: var(--sp-6); }
}

@media (max-width: 480px) {
  .brand-sub { display: none; }
  .hero-cta .btn { flex: 1; }
}
