/* =============================================
   BIGLEX BUSTERS — Shared Stylesheet
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #C4202B;
  --red-dark: #9E1921;
  --black: #0D0D0D;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --surface-3: #252525;
  --border: #2E2E2E;
  --white: #F5F5F5;
  --gray: #888;
  --gray-light: #AAAAAA;
  --font-d: 'Barlow Condensed', sans-serif;
  --font-b: 'Inter', sans-serif;
  --max-w: 1200px;
  --sp: clamp(5rem, 8vw, 9rem);
}

html { scroll-behavior: smooth; }
body { background: #f4f7fa; color: var(--white); font-family: var(--font-b); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--sp) 2rem; }
.section--surface { background: var(--surface); }
.section--light { background: #ffffff; }
.section--soft  { background: #f4f7fa; }

/* ---- TYPOGRAPHY UTILITIES ---- */
.tag {
  display: inline-block;
  font-family: var(--font-d); font-size: 11px; font-weight: 700;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red);
  padding: .3em .9em; border-radius: 2px; margin-bottom: 1.25rem;
}
.heading {
  font-family: var(--font-d); font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 900; text-transform: uppercase; line-height: .95;
  letter-spacing: -.01em; margin-bottom: 1.25rem;
}
.heading--xl { font-size: clamp(3rem, 7vw, 5.5rem); }
.heading span { color: var(--red); }
.heading em { font-style: normal; -webkit-text-stroke: 1.5px var(--white); color: transparent; }
.lead {
  font-size: clamp(.975rem, 1.8vw, 1.1rem);
  color: var(--gray-light); line-height: 1.8; max-width: 580px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-d); font-size: 14px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: .85rem 2rem;
  border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; background: none;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-outline { color: var(--white); border-color: var(--border); }
.btn-outline:hover { border-color: var(--white); }
.btn-white { background: #fff; color: var(--red); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }

/* ---- REVEAL ANIMATION ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: .5rem 2rem; display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 20px rgba(0,0,0,.06);
  transition: padding .3s, box-shadow .3s;
}
.navbar.scrolled {
  padding: .2rem 2rem;
  box-shadow: 0 2px 28px rgba(0,0,0,.1);
}
.navbar.scrolled .nav-logo-img { height: 86px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img {
  height: 110px; width: auto; display: block;
  mix-blend-mode: multiply;
}
/* fallback text logo (footer / dark surfaces) */
.logo-mark {
  width: 40px; height: 40px; background: var(--red); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-d); font-size: 22px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.logo-text { line-height: 1.1; margin-left: .75rem; }
.logo-name { font-family: var(--font-d); font-size: 18px; font-weight: 900; letter-spacing: .03em; color: var(--white); }
.logo-name em { font-style: normal; color: var(--gray); }
.logo-sub { font-size: 8px; letter-spacing: .28em; color: var(--red); font-weight: 700; font-family: var(--font-d); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #555;
  padding-bottom: 3px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: #111; }
.nav-links a.active { color: #111; border-color: var(--red); }
.nav-cta { margin-left: .75rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #333; transition: all .3s; }

/* ---- MOBILE MENU ---- */
/* The mobile menu itself stays dark — only the top bar is white */
.menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1999; opacity: 0; transition: opacity .3s; pointer-events: none; }
.menu-overlay.open { opacity: 1; pointer-events: all; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 2000; padding: 5rem 2rem 2rem;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s ease;
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  text-decoration: none; font-family: var(--font-d); font-size: 22px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--white); padding: .85rem 0; border-bottom: 1px solid var(--border); transition: color .2s;
}
.mobile-menu a:hover, .mobile-menu a.m-cta { color: var(--red); }
.mobile-menu a:last-child { border-bottom: none; }
.menu-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--white); cursor: pointer; font-size: 1.4rem; line-height: 1; }

/* ---- HOME HERO ---- */
.home-hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.home-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,.93) 38%, rgba(13,13,13,.65));
}
/* subtle grid texture */
.home-hero .overlay::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.home-hero-inner {
  position: relative; z-index: 1; width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: clamp(10rem,15vw,13rem) 2rem clamp(4rem,6vw,5rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: auto auto;
  column-gap: 4rem;
  row-gap: 2.5rem;
  align-items: start;
}
.hero-eyebrow-h1 { grid-column: 1; grid-row: 1; }
.hero-sub-actions { grid-column: 1; grid-row: 2; }
.hero-form-panel  { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.eyebrow-line { width: 40px; height: 2px; background: var(--red); flex-shrink: 0; }
.eyebrow span { font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase; color: var(--red); }
.hero-h1 {
  font-family: var(--font-d); font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.02em; margin-bottom: 2rem;
}
.hero-h1 .acc { color: var(--red); }
.hero-h1 .out { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero-sub { font-size: clamp(.975rem, 1.6vw, 1.1rem); color: var(--gray-light); line-height: 1.8; max-width: 480px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--gray); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; z-index: 1;
}
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--gray), transparent); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ---- HERO FORM CARD ---- */
.hero-form-card {
  width: 100%;
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 3px solid var(--red);
  border-radius: 6px;
  padding: 2rem 1.75rem;
}
.hero-form-title {
  font-family: var(--font-d); font-size: 1.55rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.1;
  color: var(--white); margin-bottom: .35rem;
}
.hero-form-title span { color: var(--red); }
.hero-form-sub {
  font-size: 13px; color: var(--gray-light); line-height: 1.6;
  margin-bottom: 1.4rem; padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
#heroLeadForm .fg { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
#heroLeadForm .fg label {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gray);
}
#heroLeadForm .fg input,
#heroLeadForm .fg select {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px; padding: .65rem .9rem; color: var(--white);
  font-family: var(--font-b); font-size: 14px; outline: none; width: 100%;
  transition: border-color .2s, background .2s;
}
#heroLeadForm .fg input:focus,
#heroLeadForm .fg select:focus { border-color: var(--red); background: rgba(255,255,255,.09); }
#heroLeadForm .fg input::placeholder { color: #666; }
#heroLeadForm .fg select { appearance: none; cursor: pointer; }
#heroLeadForm .fg select option { background: #1c1c1c; color: var(--white); }
.hero-form-btn { width: 100%; justify-content: center; margin-top: .5rem; }
#heroFormStatus { font-size: 12px; text-align: center; min-height: 16px; margin-top: .65rem; }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--red); padding: 2.5rem 2rem; }
.stats-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-d); font-size: clamp(2.25rem,4.5vw,3.25rem); font-weight: 900; color: #fff; line-height: 1; }
.stat-lbl { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-top: .2rem; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 13rem 2rem 5.5rem;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,.92) 48%, rgba(13,13,13,.55));
}
/* About page: gradient from left */
.page-hero--about::before {
  background: linear-gradient(to left, rgba(13,13,13,.93) 44%, rgba(13,13,13,.45));
}
/* Services page: bottom-heavy gradient, taller hero */
.page-hero--services { padding: 14rem 2rem 6rem; }
.page-hero--services::before {
  background: linear-gradient(to top, rgba(13,13,13,.98) 15%, rgba(13,13,13,.55) 55%, rgba(13,13,13,.25));
}
/* Projects page: diagonal gradient */
.page-hero--projects::before {
  background: linear-gradient(135deg, rgba(13,13,13,.97) 38%, rgba(13,13,13,.4) 75%);
}
/* Contact page: centered content, softer overlay */
.page-hero--contact::before {
  background: radial-gradient(ellipse at 30% 50%, rgba(13,13,13,.05) 0%, rgba(13,13,13,.88) 60%);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gray); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .cur { color: var(--red); }

/* ---- SERVICE CARDS (home overview) ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.svc-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s;
}
.svc-card:hover { border-color: rgba(196,32,43,.6); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.svc-img { height: 240px; overflow: hidden; position: relative; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.svc-card:hover .svc-img img { transform: scale(1.08); }
.svc-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.7) 0%, transparent 55%);
  transition: opacity .3s;
}
.svc-body { padding: 1.75rem; border-top: 2px solid transparent; transition: border-color .3s; }
.svc-card:hover .svc-body { border-top-color: var(--red); }
.svc-num-label { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--red); margin-bottom: .5rem; }
.svc-body h3 { font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .6rem; }
.svc-body p { font-size: 13.5px; color: var(--gray-light); line-height: 1.7; }
.svc-link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.25rem;
  font-family: var(--font-d); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); text-decoration: none; transition: gap .2s;
}
.svc-link:hover { gap: .6rem; }

/* ---- ABOUT TEASER ---- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-img-wrap { border-radius: 6px; overflow: hidden; position: relative; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.about-img-wrap::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13,13,13,.3) 0%, transparent 60%);
  border-radius: 6px;
}
.about-badge {
  position: absolute; bottom: 2rem; left: 2rem;
  background: var(--red); padding: 1.1rem 1.4rem; border-radius: 4px;
}
.about-badge .n { font-family: var(--font-d); font-size: 2.5rem; font-weight: 900; line-height: 1; color: #fff; }
.about-badge .l { font-size: 10px; color: rgba(255,255,255,.8); letter-spacing: .1em; text-transform: uppercase; }
.highlights { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2rem; }
.hl-item { display: flex; gap: 1rem; align-items: flex-start; }
.hl-icon {
  width: 40px; height: 40px; background: rgba(196,32,43,.1); border: 1px solid rgba(196,32,43,.25);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: var(--red); flex-shrink: 0;
}
.hl-text h4 { font-family: var(--font-d); font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.hl-text p { font-size: 14px; color: var(--gray-light); line-height: 1.65; }

/* ---- WHY US PILLARS ---- */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin-top: 3rem; }
.pillar { padding: 2rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
.pillar-n { font-family: var(--font-d); font-size: 3.5rem; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: .5rem; }
.pillar h4 { font-family: var(--font-d); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.pillar p { font-size: 13.5px; color: var(--gray-light); line-height: 1.65; }

/* ---- INDUSTRIES STRIP ---- */
.ind-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 3rem; }
.ind-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px;
  padding: 1.5rem 1.75rem; display: flex; align-items: center; gap: 1rem;
  transition: border-color .2s, background .2s;
}
.ind-card:hover { border-color: var(--red); background: var(--surface-3); }
.ind-icon {
  width: 42px; height: 42px; background: rgba(196,32,43,.1);
  border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0;
}
.ind-name { font-family: var(--font-d); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ---- PROJECTS GRID ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.proj-card {
  border-radius: 6px; overflow: hidden; position: relative;
  aspect-ratio: 4/3; background: var(--surface-2);
  transition: transform .3s;
}
.proj-card:hover { transform: translateY(-4px); }
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj-card:hover img { transform: scale(1.05); }
.proj-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.95) 35%, rgba(13,13,13,.1) 70%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem;
  transition: background .3s;
}
.proj-card:hover .proj-overlay { background: linear-gradient(to top, rgba(13,13,13,.98) 45%, rgba(13,13,13,.2) 75%); }
.proj-sector { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .4rem; }
.proj-title { font-family: var(--font-d); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .4rem; }
.proj-meta { font-size: 12px; color: var(--gray-light); }

/* ---- SERVICES DETAIL PAGE ---- */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: var(--sp) 2rem; }
.svc-detail:nth-child(even) .svc-detail-img { order: -1; }
.svc-detail-img { border-radius: 6px; overflow: hidden; }
.svc-detail-img img { width: 100%; height: 480px; object-fit: cover; }
.svc-detail-content .svc-features { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.svc-detail-content .svc-features li { display: flex; align-items: flex-start; gap: .75rem; font-size: 14px; color: var(--gray-light); line-height: 1.6; }
.svc-detail-content .svc-features li::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: rgba(196,32,43,.15); border: 1px solid rgba(196,32,43,.4); flex-shrink: 0; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23C4202B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 12px 12px; }

/* ---- PROCESS STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); position: relative; margin-top: 3.5rem; }
.steps::before { content: ''; position: absolute; top: 26px; left: 12%; right: 12%; height: 1px; background: var(--border); }
.step { padding: 0 1.25rem; text-align: center; }
.step-n { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.4rem; font-family: var(--font-d); font-size: 20px; font-weight: 900; color: var(--red); position: relative; z-index: 1; }
.step h4 { font-family: var(--font-d); font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.step p { font-size: 13px; color: var(--gray-light); line-height: 1.65; }

/* ---- CTA BAND ---- */
.cta-band { background: var(--red); padding: clamp(3.5rem,6vw,5rem) 2rem; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px); background-size: 40px 40px; }
.cta-band-inner { max-width: var(--max-w); margin: 0 auto; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-d); font-size: clamp(1.8rem,4vw,3rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; color: #fff; }
.cta-band h2 em { font-style: normal; -webkit-text-stroke: 1.5px #fff; color: transparent; }

/* ---- CONTACT / FORM ---- */
.contact-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.5rem; }
.c-item { display: flex; gap: 1rem; align-items: flex-start; }
.c-icon { width: 40px; height: 40px; background: rgba(196,32,43,.1); border: 1px solid rgba(196,32,43,.2); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0; }
.c-item h4 { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); margin-bottom: .15rem; }
.c-item p, .c-item a { font-size: 15px; color: var(--white); text-decoration: none; }
.c-item a:hover { color: var(--red); }
.form-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.fg label { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); }
.fg input, .fg select, .fg textarea { background: var(--surface-3); border: 1px solid var(--border); border-radius: 3px; padding: .75rem 1rem; color: var(--white); font-family: var(--font-b); font-size: 14px; outline: none; transition: border-color .2s; width: 100%; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,32,43,.1); }
.fg select { appearance: none; cursor: pointer; }
.fg textarea { resize: vertical; min-height: 130px; }
.fg input::placeholder, .fg textarea::placeholder { color: var(--gray); }
.fg select option { background: var(--surface-2); }
#formStatus { margin-top: 1rem; font-size: 13px; text-align: center; min-height: 18px; }

/* ---- TEAM GRID ---- */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3rem; }
.team-card { border-radius: 6px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); }
.team-img { height: 260px; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .team-img img { transform: scale(1.05); }
.team-info { padding: 1.25rem; }
.team-name { font-family: var(--font-d); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.team-role { font-size: 12px; color: var(--red); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; }
.team-bio { font-size: 13px; color: var(--gray-light); margin-top: .6rem; line-height: 1.6; }

/* ---- VALUES CARDS ---- */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem; }
.value-card { padding: 2rem 1.75rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); border-top: 3px solid var(--red); }
.value-icon { color: var(--red); margin-bottom: 1.25rem; }
.value-card h3 { font-family: var(--font-d); font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .6rem; }
.value-card p { font-size: 14px; color: var(--gray-light); line-height: 1.7; }

/* ---- CERT STRIP ---- */
.cert-strip { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.cert-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; }
.cert-item span { font-family: var(--font-d); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-light); }

/* ---- FAQ ---- */
.faq { margin-top: 3rem; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.faq-q { width: 100%; background: var(--surface-2); border: none; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-d); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--white); text-align: left; gap: 1rem; }
.faq-q:hover { background: var(--surface-3); }
.faq-icon { color: var(--red); flex-shrink: 0; transition: transform .3s; font-size: 20px; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.5rem 1.25rem; font-size: 14px; color: var(--gray-light); line-height: 1.75; background: var(--surface-2); }
.faq-item.open .faq-a { display: block; }

/* ---- FAQ SECTION GRID ---- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }

/* ---- MAP PLACEHOLDER ---- */
.map-placeholder { width: 100%; height: 380px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: var(--gray); position: relative; overflow: hidden; margin-top: 3rem; }
.map-placeholder::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px); background-size: 30px 30px; }
.map-placeholder span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .5; position: relative; }

/* ---- FOOTER ---- */
footer { background: var(--black); border-top: 1px solid var(--border); padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.footer-brand p { font-size: 13px; color: var(--gray); line-height: 1.7; max-width: 280px; margin-top: 1rem; }
.footer-col h4 { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: 14px; color: var(--gray); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: var(--gray); }
.footer-bottom a { color: var(--red); text-decoration: none; }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-icon { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--gray); text-decoration: none; transition: border-color .2s, color .2s; }
.social-icon:hover { border-color: var(--red); color: var(--red); }

/* =====================
   LIGHT SECTION OVERRIDES
   Applied whenever a section uses .section--light or .section--soft
   ===================== */

/* Base text colours */
.section--light, .section--soft {
  color: #111827;
}
.section--light .heading,
.section--soft  .heading  { color: #111827; }
.section--light .heading em,
.section--soft  .heading em { -webkit-text-stroke-color: #111827; }
.section--light .lead,
.section--soft  .lead { color: #6b7280; }

/* Service cards */
.section--light .svc-card,
.section--soft  .svc-card {
  background: #fff; border-color: #e5e7eb;
  box-shadow: 0 2px 14px rgba(0,0,0,.07);
}
.section--light .svc-card:hover,
.section--soft  .svc-card:hover {
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  border-color: rgba(196,32,43,.45);
}
.section--light .svc-body h3,
.section--soft  .svc-body h3 { color: #111827; }
.section--light .svc-body p,
.section--soft  .svc-body p  { color: #6b7280; }

/* Pillars */
.section--light .pillar,
.section--soft  .pillar {
  background: #fff; border-color: #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.section--light .pillar h4,
.section--soft  .pillar h4 { color: #111827; }
.section--light .pillar p,
.section--soft  .pillar p  { color: #6b7280; }

/* Value cards */
.section--light .value-card,
.section--soft  .value-card {
  background: #fff; border-color: #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.section--light .value-card h3,
.section--soft  .value-card h3 { color: #111827; }
.section--light .value-card p,
.section--soft  .value-card p  { color: #6b7280; }

/* Team cards */
.section--light .team-card,
.section--soft  .team-card {
  background: #fff; border-color: #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.section--light .team-name,
.section--soft  .team-name { color: #111827; }
.section--light .team-bio,
.section--soft  .team-bio  { color: #6b7280; }

/* Industry cards */
.section--light .ind-card,
.section--soft  .ind-card {
  background: #fff; border-color: #e5e7eb;
}
.section--light .ind-card:hover,
.section--soft  .ind-card:hover { background: #fff7f7; border-color: var(--red); }
.section--light .ind-name,
.section--soft  .ind-name { color: #111827; }

/* About highlights */
.section--light .hl-text h4,
.section--soft  .hl-text h4 { color: #111827; }
.section--light .hl-text p,
.section--soft  .hl-text p  { color: #6b7280; }

/* Certifications */
.section--light .cert-item,
.section--soft  .cert-item { background: #f9fafb; border-color: #e5e7eb; }
.section--light .cert-item span,
.section--soft  .cert-item span { color: #374151; }

/* Process steps */
.section--light .step-n,
.section--soft  .step-n { background: #f4f7fa; border-color: #e5e7eb; }
.section--light .step h4,
.section--soft  .step h4  { color: #111827; }
.section--light .step p,
.section--soft  .step p   { color: #6b7280; }
.section--light .steps::before,
.section--soft  .steps::before { background: #e5e7eb; }

/* FAQ */
.section--light .faq-item,
.section--soft  .faq-item { border-color: #e5e7eb; }
.section--light .faq-q,
.section--soft  .faq-q { background: #fff; color: #111827; }
.section--light .faq-q:hover,
.section--soft  .faq-q:hover { background: #f9fafb; }
.section--light .faq-a,
.section--soft  .faq-a { background: #fff; color: #6b7280; }

/* Contact form */
.section--light .form-wrap,
.section--soft  .form-wrap {
  background: #fff; border-color: #e5e7eb;
  box-shadow: 0 4px 28px rgba(0,0,0,.08);
}
.section--light .fg label,
.section--soft  .fg label { color: #374151; }
.section--light .fg input,
.section--light .fg select,
.section--light .fg textarea,
.section--soft  .fg input,
.section--soft  .fg select,
.section--soft  .fg textarea {
  background: #fff; border-color: #d1d5db; color: #111827;
}
.section--light .fg input::placeholder,
.section--light .fg textarea::placeholder,
.section--soft  .fg input::placeholder,
.section--soft  .fg textarea::placeholder { color: #9ca3af; }
.section--light .fg select option,
.section--soft  .fg select option { background: #fff; color: #111827; }

/* Contact detail items */
.section--light .c-item h4,
.section--soft  .c-item h4 { color: #6b7280; }
.section--light .c-item p,
.section--light .c-item a,
.section--soft  .c-item p,
.section--soft  .c-item a  { color: #111827; }
.section--light .c-item a:hover,
.section--soft  .c-item a:hover { color: var(--red); }
.section--light .c-quick-link,
.section--soft  .c-quick-link { border-color: #d1d5db; color: #374151; }
.section--light .c-quick-link:hover,
.section--soft  .c-quick-link:hover { border-color: var(--red); color: var(--red); }

/* Map placeholder */
.section--light .map-placeholder,
.section--soft  .map-placeholder { background: #f4f7fa; border-color: #e5e7eb; }

/* Project cards look fine on light too — overlays handle contrast */
.section--light .proj-card,
.section--soft  .proj-card { box-shadow: 0 4px 18px rgba(0,0,0,.12); }

/* =====================
   RESPONSIVE
   ===================== */

/* ---- CONTACT QUICK LINKS ---- */
.c-quick-links { margin-top: 2.5rem; }
.c-quick-links-label { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); margin-bottom: .75rem; }
.c-quick-links-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.c-quick-link {
  font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .5em 1em; border: 1px solid var(--border); border-radius: 2px;
  text-decoration: none; color: var(--gray-light); transition: border-color .2s, color .2s;
}
.c-quick-link:hover { border-color: var(--red); color: var(--white); }

/* ---- 1024px TABLET ---- */
@media (max-width: 1024px) {
  .about-split { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-wrap { display: block; }
  .about-img-wrap img { min-height: 340px; max-height: 400px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { flex-wrap: wrap; gap: 2rem; }
  .svc-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-detail:nth-child(even) .svc-detail-img { order: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---- 768px MOBILE ---- */
@media (max-width: 768px) {
  :root { --sp: 3.5rem; }

  /* Navbar */
  .navbar { padding: .3rem 1.25rem; }
  .navbar.scrolled { padding: .15rem 1.25rem; }
  .nav-logo-img { height: 78px; }
  .navbar.scrolled .nav-logo-img { height: 66px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .menu-overlay { display: block; }

  /* Hero */
  .home-hero-inner {
    padding: 8.5rem 1.25rem 3.5rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 1.75rem;
  }
  .hero-eyebrow-h1 { grid-column: 1; grid-row: 1; }
  .hero-form-panel  { grid-column: 1; grid-row: 2; }
  .hero-sub-actions { grid-column: 1; grid-row: 3; }
  .hero-h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .hero-sub { font-size: .95rem; }
  .hero-actions { gap: .75rem; }
  .hero-actions .btn { padding: .75rem 1.5rem; font-size: 13px; }
  .hero-form-card { padding: 1.6rem 1.25rem; }

  /* Page heroes */
  .page-hero { padding: 9rem 1.25rem 3.5rem; }
  .page-hero--services { padding: 9rem 1.25rem 3.5rem; }
  .page-hero--projects { padding: 9rem 1.25rem 3.5rem; }
  .page-hero--contact { padding: 9rem 1.25rem 3.5rem; }
  .page-hero--about { padding: 9rem 1.25rem 3.5rem; }

  /* About image */
  .about-img-wrap img { min-height: 260px; max-height: 320px; }

  /* Grids */
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 1rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .steps::before { display: none; }
  .contact-split { grid-template-columns: 1fr !important; }
  .faq-grid { display: block; }
  .faq-grid .faq { margin-top: 2rem; }

  /* Typography */
  .heading { font-size: clamp(2rem, 7vw, 3rem); }
  .heading--xl { font-size: clamp(2.4rem, 9vw, 4rem); }
  .lead { font-size: .95rem; }

  /* Cards */
  .svc-img { height: 200px; }
  .map-placeholder { height: 260px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 1.75rem 1.25rem; }

  /* CTA */
  .cta-band-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .cta-band h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Footer */
  .footer-top { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  footer { padding: 2.5rem 1.25rem 1.5rem; }
}

/* ---- 480px SMALL MOBILE ---- */
@media (max-width: 480px) {
  :root { --sp: 3rem; }

  /* Global padding tighten */
  .section { padding: var(--sp) 1.25rem; }
  .container { padding: 0 1.25rem; }

  /* Navbar */
  .navbar { padding: .2rem 1rem; }
  .nav-logo-img { height: 68px; }
  .navbar.scrolled .nav-logo-img { height: 58px; }

  /* Hero */
  .home-hero-inner { padding: 7.5rem 1.25rem 3rem; row-gap: 1.25rem; }
  .hero-form-card { padding: 1.25rem 1rem; }
  .hero-form-title { font-size: 1.35rem; }
  .hero-h1 { font-size: clamp(2.6rem, 12vw, 4rem); line-height: .95; }
  .page-hero { padding: 8rem 1.25rem 3rem; }
  .page-hero--services, .page-hero--projects,
  .page-hero--contact, .page-hero--about { padding: 8rem 1.25rem 3rem; }

  /* Grids → single column */
  .projects-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Cards */
  .svc-img { height: 200px; }
  .proj-card { aspect-ratio: 3/2; }
  .team-img { height: 200px; }

  /* Typography */
  .heading { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .heading--xl { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .stat-num { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* Certifications: stack on tiny screens */
  .cert-strip { gap: .75rem; }
  .cert-item { padding: .6rem 1rem; }

  /* Form */
  .form-wrap { padding: 1.25rem 1rem; }

  /* Footer */
  footer { padding: 2rem 1rem 1.25rem; }
  .footer-brand p { max-width: 100%; }
}
