/* =========================================================
   Leading Edge Enterprises — Shared Stylesheet
   Theme: White · Black · Orange (premium / bold)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Ink (near-black scale) */
  --ink:        #0B1B34;   /* near-black navy — headings / dark text */
  --navy:       #0B1B34;   /* legacy alias → ink */
  --navy-800:   #102544;
  --navy-700:   #15315A;
  --slate:      #33415A;   /* body text (blue-grey) */
  --slate-500:  #5A6A85;
  --slate-400:  #93A1B8;

  /* Blue (brand accent) */
  --orange:      #007BFF;  /* secondary/bright blue — main accent */
  --orange-600:  #004AAD;  /* primary blue — hover / CTAs */
  --orange-500:  #2B8CFF;
  --orange-300:  #9EC9FF;
  --orange-soft: #E8F1FF;  /* light blue tint */
  /* accent aliases → blue */
  --accent:      #007BFF;
  --accent-600:  #004AAD;
  --accent-500:  #2B8CFF;
  --accent-300:  #9EC9FF;
  --accent-soft: #E8F1FF;

  --amber:       #EA580C;   /* fire / safety (kept warm for contrast) */
  --green:       #16A34A;   /* live / normal */

  --bg:          #F8FBFF;
  --surface:     #FFFFFF;
  --surface-2:   #EDF3FB;   /* light blue-grey */
  --surface-3:   #E2EBF6;
  --black:       #07172E;   /* deep navy — dark sections */
  --fg:          #0B1B34;
  --muted:       #E2EBF6;
  --border:      #E1E9F2;
  --border-2:    #C9D6E6;

  /* Typography */
  --font-head: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-brand: 'Montserrat', 'Hanken Grotesk', system-ui, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(10,10,10,.05), 0 1px 3px rgba(10,10,10,.05);
  --sh-md: 0 8px 22px -8px rgba(10,10,10,.12), 0 2px 8px -3px rgba(10,10,10,.08);
  --sh-lg: 0 28px 56px -20px rgba(10,10,10,.22), 0 10px 22px -12px rgba(10,10,10,.12);
  --sh-accent: 0 18px 40px -16px rgba(0,123,255,.5);

  /* Layout */
  --container: 1200px;
  --nav-h: 80px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 160ms;
  --t-mid: 280ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.center { text-align: center; }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }

/* ---------- Typography utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); }
.eyebrow--center { justify-content: center; }
.h-display { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; }
.h-section { font-size: clamp(1.85rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--slate-500); max-width: 60ch; }
.lead--center { margin-inline: auto; }
.text-muted { color: var(--slate-500); }
.section-head { max-width: 760px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; letter-spacing: -.01em;
  color: #fff; background: var(--ink);
  border: 1px solid transparent; border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), background var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn svg { width: 19px; height: 19px; }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-600)); color: #fff; box-shadow: 0 14px 30px -12px rgba(0,74,173,.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 42px -14px rgba(0,74,173,.6); }
.btn--accent { background: var(--orange); color: #fff; box-shadow: var(--sh-accent); }
.btn--accent:hover { transform: translateY(-2px); background: var(--orange-600); box-shadow: 0 22px 44px -14px rgba(0,123,255,.6); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-2); box-shadow: var(--sh-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: var(--sh-md); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: .92rem; }
.btn:active { transform: translateY(0) scale(.98); }
/* circled arrow inside primary buttons (reference-style) */
.btn--primary svg, .btn--accent svg { background: rgba(255,255,255,.16); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 700; font-family: var(--font-head);
  background: var(--orange-soft); color: var(--orange-600);
  border: 1px solid #cfe0f5;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.pill .dot::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--green); opacity:.5; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0%{transform:scale(.6);opacity:.6} 80%,100%{transform:scale(1.6);opacity:0} }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--t-mid), box-shadow var(--t-mid), height var(--t-mid), border-color var(--t-mid);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  height: 66px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--sh-sm);
  border-color: var(--border);
}
.nav { width:100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 50px; width: auto; display: block; transition: height var(--t-mid); }
.site-header.scrolled .brand__logo { height: 42px; }
.brand__logo--light { height: 56px; }
/* simple temporary text wordmark (until the new logo arrives) */
.brand__wordmark { font-family: var(--font-brand); font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; white-space: nowrap; }
.brand__wordmark .a { color: var(--accent); }
.brand__wordmark--light { color: #fff; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 15px; border-radius: var(--r-sm);
  font-family: var(--font-head); font-weight: 600; font-size: .96rem; color: var(--slate);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { content:""; position:absolute; left:15px; right:15px; bottom:5px; height:3px; border-radius:3px; background: var(--orange); }
.nav__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__phone { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-head); font-weight:700; font-size:.92rem; color:var(--ink); padding:8px 6px; }
.nav__phone svg { width:18px; height:18px; color: var(--orange); }
.nav__phone:hover { color: var(--orange); }

.nav__toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--border-2); border-radius: var(--r-sm); background: var(--surface); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-mid) var(--ease), opacity var(--t-fast); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 90;
  background: rgba(255,255,255,.99); backdrop-filter: blur(8px);
  padding: 24px clamp(20px,5vw,40px) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a.m-link { display: flex; align-items: center; justify-content: space-between; padding: 17px 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-nav a.m-link svg { width: 18px; height: 18px; color: var(--slate-400); }
.mobile-nav .btn { margin-top: 18px; }
.mobile-nav__contact { margin-top: 24px; color: var(--slate-500); font-size: .92rem; }
body.nav-open { overflow: hidden; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid); }
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--orange-300); }

.icon-badge {
  width: 60px; height: 60px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--orange-soft); border: 1px solid #cfe0f5; color: var(--orange);
  transition: transform var(--t-mid) var(--ease), background var(--t-mid);
}
.icon-badge svg { width: 28px; height: 28px; stroke-width: 1.7; }
.card:hover .icon-badge { transform: scale(1.06) rotate(-3deg); background: var(--orange); color: #fff; }
.icon-badge--amber { background: #FFF4ED; border-color:#fcd9bf; color: var(--amber); }
.card:hover .icon-badge--amber { background: var(--amber); color: #fff; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: var(--reveal-from, translateY(26px)); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay:.08s } .reveal[data-delay="2"]{ transition-delay:.16s }
.reveal[data-delay="3"]{ transition-delay:.24s } .reveal[data-delay="4"]{ transition-delay:.32s }
.reveal[data-delay="5"]{ transition-delay:.40s }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .pill .dot::after { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #B5B2AD; padding-block: clamp(56px,7vw,88px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px,4vw,48px); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: -.01em; }
.site-footer a { color: #B5B2AD; transition: color var(--t-fast); }
.site-footer a:hover { color: var(--orange-500); }
.footer-links li { margin-bottom: 11px; font-size: .94rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #7C7975; }
.footer-about { margin-top: 18px; font-size: .94rem; color: #8B8884; max-width: 38ch; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .94rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: clamp(40px,5vw,60px); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .86rem; color: #7C7975; }
.social-row { display: none; gap: 10px; margin-top: 20px; } /* hidden for now */
.social-row a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: background var(--t-fast), transform var(--t-fast); }
.social-row a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--sh-lg); transition: transform var(--t-fast) var(--ease); }
.fab svg { width: 26px; height: 26px; }
.fab:hover { transform: scale(1.08); }
.fab--wa { background: #25D366; }
.fab--call { background: var(--orange); display: none; }

/* ---------- Interior page hero ---------- */
.page-hero { position: relative; padding-top: calc(var(--nav-h) + 64px); padding-bottom: clamp(48px,7vw,84px); overflow: hidden; background: linear-gradient(180deg, #fff, var(--bg)); }
.page-hero::before {
  content:""; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(55% 75% at 88% -10%, rgba(0,123,255,.12), transparent 60%),
    radial-gradient(45% 65% at 3% 0%, rgba(0,123,255,.06), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--slate-500); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Stats ---------- */
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem,4vw,3.1rem); color: var(--ink); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__num .suffix { color: var(--orange); }
.stat__label { margin-top: 8px; font-size: .92rem; color: var(--slate-500); }
.stat-cluster { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-sm); }
.stat-box:nth-child(1) { background: linear-gradient(165deg, var(--navy), var(--navy-700)); border-color: transparent; }
.stat-box:nth-child(1) .stat__num { color: #fff; }
.stat-box:nth-child(1) .stat__num .suffix { color: var(--accent-300); }
.stat-box:nth-child(1) .stat__label { color: #94a3b8; }
@media (max-width: 620px) { .stat-cluster { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.form-field .req { color: var(--orange); }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(0,123,255,.14); }
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.form-help { font-size: .82rem; color: var(--slate-500); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--slate-500); margin-top: 14px; text-align: center; }
.form-success { display: none; padding: 18px; border-radius: var(--r-md); background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; font-size: .95rem; align-items: center; gap: 10px; }
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.form-error { display: none; padding: 16px 18px; border-radius: var(--r-md); background: #FEF2F2; border: 1px solid #FCA5A5; color: #B91C1C; font-size: .92rem; margin-bottom: 18px; }
.form-error.show { display: block; }

/* ---------- CTA band (shared: Home + About + Services) ---------- */
.cta-band { position: relative; }
.cta-inner {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--accent-600), var(--accent)); color: #fff;
  padding: clamp(40px, 6vw, 72px); box-shadow: var(--sh-accent);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-inner::before { content:""; position:absolute; right:-60px; top:-60px; width:300px; height:300px; border-radius:50%; background: rgba(255,255,255,.12); }
.cta-inner::after { content:""; position:absolute; left:-40px; bottom:-80px; width:240px; height:240px; border-radius:50%; background: rgba(255,255,255,.08); }
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem,3.2vw,2.4rem); }
.cta-inner p { color: rgba(255,255,255,.9); margin-top: 12px; max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 980px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Two-column split + feature list (shared: Home + About) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: center; }
.feature-list { margin-top: 28px; display: grid; gap: 22px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .fi-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.feature-item .fi-ic svg { width: 23px; height: 23px; }
.feature-item h4 { font-size: 1.08rem; margin-bottom: 5px; }
.feature-item p { font-size: .94rem; color: var(--slate-500); }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }

/* ---------- Certifications (shared: Home + About) ---------- */
.cert-grid { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; margin-top: clamp(36px,4vw,52px); }
.cert-card { text-align: center; align-items: center; }
.cert-card .cert-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--orange-soft); border: 1px solid #cfe0f5; color: var(--orange); display: grid; place-items: center; margin: 0 auto 18px; transition: transform var(--t-mid) var(--ease), background var(--t-mid); }
.cert-card .cert-ic svg { width: 30px; height: 30px; }
.cert-card:hover .cert-ic { transform: scale(1.06) rotate(-3deg); background: var(--orange); color: #fff; }
.cert-card .cert-logo { height: 112px; display: grid; place-items: center; margin: 0 auto 20px; }
.cert-card .cert-logo img { max-height: 112px; max-width: 80%; object-fit: contain; display: block; transition: transform var(--t-mid) var(--ease); }
.cert-card:hover .cert-logo img { transform: scale(1.05); }
.cert-card h3 { font-size: 1.06rem; margin-bottom: 8px; }
.cert-card p { font-size: .9rem; color: var(--slate-500); }
@media (max-width: 820px) { .cert-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* ---------- Misc ---------- */
.divider-line { height: 1px; background: var(--border); border: 0; }
.bg-surface { background: var(--surface-2); }
.bg-navy { background: var(--black); color: #B5B2AD; }
.rounded-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 880px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta .btn { display: none; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab--call { display: grid; }
  .brand__logo { height: 40px; }
  .brand__logo--light { height: 48px; }
}
