/* ============================================================
   Edwards Engineering Services — bespoke styles
   Industrial blue + steel + amber-accent. Te Awamutu since 2013.
   ============================================================ */

:root {
  --bg: #0e1a2b;
  --bg-2: #122236;
  --bg-3: #18293f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --steel: #5a738f;
  --steel-2: #6b85a3;
  --amber: #f5a524;
  --amber-soft: rgba(245, 165, 36, 0.10);
  --text: #e9eef5;
  --text-dim: #a8b6c8;
  --text-muted: #6a7991;
  --white: #ffffff;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --container: 1240px;
  --r: 6px;
  --r-lg: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.hero-accent { color: var(--amber); }

/* TOPBAR */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 24px;
  padding: 14px 28px;
  background: rgba(14, 26, 43, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand-mark { height: 44px; width: auto; }
.nav-primary { display: none; gap: 28px; font-size: 14px; }
.nav-primary a { color: var(--text-dim); transition: color .2s; }
.nav-primary a:hover { color: var(--amber); }
.nav-primary .nav-cta {
  padding: 8px 18px; border: 1px solid var(--amber); color: var(--amber);
  border-radius: 4px; transition: background .2s, color .2s;
}
.nav-primary .nav-cta:hover { background: var(--amber); color: var(--bg); }
.nav-call {
  display: none; padding: 10px 16px; background: var(--amber); color: var(--bg);
  font-weight: 700; border-radius: 4px; font-size: 14px; letter-spacing: 0.02em;
}
.nav-call:hover { background: #ffb736; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
  background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 25;
  display: flex; flex-direction: column;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  padding: 12px 28px;
}
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu .mobile-cta { color: var(--amber); }
@media (min-width: 980px) {
  .nav-primary { display: flex; }
  .nav-call { display: inline-block; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,26,43,0.78) 0%, rgba(14,26,43,0.95) 100%),
    radial-gradient(ellipse at 25% 35%, rgba(245,165,36,0.10) 0%, transparent 60%);
}
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 80px 28px 64px; width: 100%; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.32em; font-size: 12px;
  color: var(--amber); margin: 0 0 24px; font-weight: 600;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 600; line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-sub {
  max-width: 620px; font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-dim); margin: 0 0 36px; line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.cta-primary, .cta-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 26px; border-radius: 4px;
  font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background .15s, color .15s, transform .15s;
}
.cta-primary { background: var(--amber); color: var(--bg); }
.cta-primary:hover { background: #ffb736; transform: translateY(-1px); }
.cta-ghost { color: var(--text); border: 1px solid var(--line-strong); }
.cta-ghost:hover { background: var(--amber-soft); color: var(--amber); border-color: var(--amber); }
.hero-stats {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-top: 32px; border-top: 1px solid var(--line);
  max-width: 920px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--display); color: var(--amber); font-weight: 700; font-size: 22px; }
.hero-stats span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; }

/* SECTION HEADS */
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head--left { margin-left: 0; margin-right: 0; text-align: left; max-width: none; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: 0.32em; font-size: 11px;
  color: var(--amber); margin: 0 0 16px; font-weight: 600;
}
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin: 0 0 20px; color: var(--white);
}
.section-blurb { font-size: 17px; color: var(--text-dim); margin: 0; line-height: 1.55; }
.lede { font-size: 19px; color: var(--text); line-height: 1.6; font-weight: 400; }

/* CAPABILITY */
.capability { padding: clamp(72px, 9vw, 130px) 28px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.cap {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg);
  transition: border-color .2s, transform .2s;
}
.cap:hover { border-color: var(--amber); transform: translateY(-2px); }
.cap-num { font-family: var(--display); font-weight: 700; font-size: 36px; color: var(--amber); margin: 0 0 12px; line-height: 1; }
.cap h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 16px; color: var(--white); letter-spacing: -0.01em; }
.cap ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text); }
.cap ul li { padding-left: 18px; position: relative; }
.cap ul li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--amber); font-weight: 700; }

/* SERVICES */
.services { padding: clamp(72px, 9vw, 130px) 28px; max-width: var(--container); margin: 0 auto; }
.service-list {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-2); position: relative; overflow: hidden;
  transition: border-color .2s, background .2s;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--amber); transform: scaleY(0); transform-origin: top;
  transition: transform .3s ease;
}
.service-card:hover { border-color: var(--amber); background: var(--bg-3); }
.service-card:hover::before { transform: scaleY(1); }
.service-card h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 12px; color: var(--white); letter-spacing: -0.01em; }
.service-card p { font-size: 14px; color: var(--text-dim); margin: 0 0 20px; line-height: 1.55; flex-grow: 1; }
.service-arrow { color: var(--amber); font-size: 22px; align-self: flex-end; transition: transform .2s; }
.service-card:hover .service-arrow { transform: translateX(4px); }

/* SISTER (ITS) */
.sister { padding: clamp(72px, 9vw, 130px) 28px; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sister-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .sister-inner { grid-template-columns: 1.6fr 1fr; gap: 80px; } }
.sister-text .section-title { margin-top: 8px; }
.sister-bullets {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 28px 0;
  font-size: 14px;
}
.sister-bullets li { padding-left: 18px; position: relative; }
.sister-bullets li::before { content: "+"; position: absolute; left: 0; top: 0; color: var(--amber); font-weight: 700; }
.sister-card {
  padding: 36px; border: 1px solid var(--amber); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(245,165,36,0.06), transparent);
  text-align: center;
}
.sister-eyebrow { color: var(--amber); text-transform: uppercase; letter-spacing: 0.24em; font-size: 11px; margin: 0 0 12px; font-weight: 600; }
.sister-addr { font-size: 22px; line-height: 1.4; margin: 0 0 16px; font-weight: 500; color: var(--white); font-family: var(--display); }
.sister-blurb { font-size: 13px; color: var(--text-dim); margin: 0; }

/* ABOUT */
.about { padding: clamp(72px, 9vw, 130px) 28px; }
.about-inner { max-width: var(--container); margin: 0 auto; }
.about-grid {
  display: grid; gap: 48px; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.about-body p { font-size: 17px; color: var(--text-dim); line-height: 1.65; margin: 0 0 18px; }
.about-card {
  padding: 32px; border: 1px solid var(--amber);
  background: linear-gradient(135deg, rgba(245,165,36,0.08), rgba(245,165,36,0.02));
  border-radius: var(--r-lg);
}
.aside-eyebrow {
  display: inline-block; padding: 4px 10px; background: var(--amber); color: var(--bg);
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px;
  border-radius: 4px;
}
.aside-name { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.4; margin: 0 0 12px; color: var(--white); }
.aside-blurb { font-size: 14px; color: var(--text-dim); margin: 0 0 20px; line-height: 1.55; }
.aside-cta {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--amber);
  color: var(--amber); border-radius: 4px; font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background .2s, color .2s;
}
.aside-cta:hover { background: var(--amber); color: var(--bg); }

/* CONTACT STRIP */
.contact-strip {
  padding: clamp(72px, 9vw, 130px) 28px;
  background: var(--bg-2); border-top: 1px solid var(--line);
  position: relative;
}
.contact-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(245,165,36,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contact-strip-inner { max-width: var(--container); margin: 0 auto; position: relative; text-align: center; }
.contact-strip-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1;
  letter-spacing: -0.02em; margin: 16px 0 18px; color: var(--white);
}
.contact-strip-blurb { font-size: 17px; color: var(--text-dim); margin: 0 0 32px; }
.contact-strip-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { padding: 56px 28px 24px; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { height: 60px; width: auto; margin-bottom: 12px; }
.footer-blurb { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.footer-eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 11px;
  color: var(--amber); margin: 0 0 14px; font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-col a { color: var(--text-dim); transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-base {
  max-width: var(--container); margin: 36px auto 0;
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.footer-fineprint a { color: var(--amber); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 700px) {
  .topbar { padding: 12px 18px; gap: 12px; grid-template-columns: auto 1fr auto; }
  .nav-call { display: none; }
  .hero-inner { padding: 64px 18px 48px; }
  .capability, .services, .sister, .about, .contact-strip, .footer { padding-left: 18px; padding-right: 18px; }
  .footer-base { flex-direction: column; gap: 10px; }
}
