/* ==========================================================================
   WSA Sales — shared site stylesheet
   --------------------------------------------------------------------------
   Everything in here is PAGE FURNITURE: design tokens, the reset, the nav,
   the footer. It is loaded by every page.

   Values are canonical from index.html. If a page needs to differ, override
   it in that page's own <style> block, which loads AFTER this file.

   DO NOT copy these rules back into a page. The whole point is one source.
   Pages that use it: index.html, privacy.html, industries/*.html
   ========================================================================== */

/* ── DESIGN TOKENS ────────────────────────────────────────────────────── */
:root {
  --gold:            #ff8000;   /* brand orange */
  --gold-light:      #ff7a22;   /* hover orange (note: reads darker than --gold) */
  --gold-text:       #b85600;   /* orange TEXT on white/light backgrounds — #ff8000 fails WCAG contrast there (2.5:1).
                                   Keep --gold for fills, bars, rings and text on navy. */
  --navy:            #2b4a6f;
  --navy-dark:       #1a2f47;
  --navy-light:      #3a5f8a;
  --blue-light-alt:  #e5e8f3;
  --white:           #ffffff;
  --off-white:       #f4f6f8;
  --steel:           #d0d8e0;
  --text:            #1c2b3a;
  --text-mid:        #4a5a6a;
  --shadow:          0 4px 24px rgba(27,47,71,0.13);

  /* Tinted section band, used by every industry page. Tuned 2026-08-07.
     --band-tint     darker = more contrast
     --band-feather  shorter = more contrast (the section holds full tint longer) */
  --band-tint:       #e5eeff;
  --band-feather:    50px;

  /* Fade between a light and a dark section, matching the homepage Credentials band. */
  --section-fade:    100px;
}

/* ── RESET & BASE ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* No scroll-behavior here — Lenis owns smooth scrolling. scroll-padding-top
   handles cross-page anchor arrivals, which are browser-driven and never
   touch Lenis. Keep matched to the nav height. */
html { scroll-padding-top: 112px; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
}

/* ── INDUSTRY PAGE SECTIONS ───────────────────────────────────────────────
   The alternating white / tinted band used on every industries/*.html page.
   Both edges feather, so no boundary with a neighbouring white section is a
   hard line. Tune the two --band-* tokens above; do not edit this rule.

   .block MUST set its own white background — relying on the body colour
   showing through breaks silently the moment the body colour changes. */
section.block { padding: 4rem 0; background: var(--white); }
section.block.alt {
  background: linear-gradient(180deg,
    var(--white) 0,
    var(--band-tint) var(--band-feather),
    var(--band-tint) calc(100% - var(--band-feather)),
    var(--white) 100%);
}

/* ── NAV ──────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(90deg, #0d1e30 0%, var(--navy-dark) 35%, var(--navy-dark) 100%);
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 100px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo-img {
  height: 84px; width: 84px; object-fit: contain; flex-shrink: 0;
  border-radius: 50%; background: white; padding: 2px;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5));
}
.nav-brand { display: flex; flex-direction: column; justify-content: space-between; height: 84px; padding-bottom: 0.1rem; }
.nav-brand-main {
  font-family: 'Barlow Condensed', sans-serif; font-size: 2.8rem; font-weight: 800;
  color: var(--white); letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1; flex: 1; display: flex; align-items: center;
}
.nav-brand-sub {
  font-size: 0.72rem; font-weight: 600; color: var(--gold); letter-spacing: 0.18em;
  text-transform: uppercase; border-top: 2px solid var(--gold); padding-top: 3px;
  display: inline-block;
}
/* Right side of the header, GasTech-style: a utility row (phone, email, quote) over the menu row */
.nav-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 0.7rem; height: 100%; }
.nav-util { display: flex; align-items: center; gap: 1.6rem; }
.nav-util a:not(.btn-nav) { color: var(--steel); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.04em; transition: color 0.2s; }
.nav-util a:not(.btn-nav):hover { color: var(--gold); }

.nav-links { display: flex; gap: 2.25rem; list-style: none; align-items: center; }
.nav-links > li { display: flex; align-items: center; }
.nav-links > li > a {
  color: var(--white); text-decoration: none; font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links > li > a:hover, .has-mega:hover > a, .has-mega:has(:focus-visible) > a { color: var(--gold); }
.nav-links > li > a.active { color: var(--gold); }
.has-mega > a::after { content: ''; display: inline-block; margin-left: 0.4rem; vertical-align: 0.15em;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }

/* Mega menu: one clean white panel under the header. It is positioned against the <nav>
   (the <li> is not positioned), so every panel lines up in the same place.
   ::before is an invisible bridge over the gap, so the panel stays open while the pointer moves down. */
.mega {
  display: none; position: absolute; top: calc(100% + 12px); right: 2.5rem;
  width: min(1040px, calc(100vw - 4rem)); padding: 2rem 2.5rem;
  background: var(--white); border-radius: 12px; box-shadow: 0 24px 60px rgba(13,30,48,0.35);
  grid-template-columns: 290px minmax(0, 1fr); gap: 2.5rem; text-align: left;
}
/* About has only three links: a narrower panel */
.mega:has(.cols-1) { width: min(700px, calc(100vw - 4rem)); grid-template-columns: 250px minmax(0, 1fr); }
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -32px; height: 32px; } /* gap only: taller covers the menu row and traps hover */
.has-mega:hover > .mega, .has-mega:has(:focus-visible) > .mega { display: grid; }
.mega-intro { border-right: 1px solid #d5dbe2; padding-right: 2.5rem; }
.mega-title { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--navy-dark); margin-bottom: 0.75rem; }
.mega-intro p:not(.mega-title) { font-size: 0.92rem; line-height: 1.65; color: var(--text-mid); }
.mega-body { display: flex; flex-direction: column; gap: 1.25rem; padding-top: 0.25rem; }
.mega-links { list-style: none; display: grid; gap: 0.15rem 2.5rem; align-content: start; }
.mega-links.cols-1 { grid-template-columns: minmax(0, 360px); }
.mega-links.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-links a {
  display: block; padding: 0.55rem 0; color: var(--navy-dark); text-decoration: none;
  font-size: 0.98rem; font-weight: 500; border-bottom: 1px solid #edf0f3; transition: color 0.15s;
}
.mega-links a:hover, .mega-links a:focus { color: var(--gold-text); }
.mega-all {
  align-self: flex-start; font-family: 'Barlow Condensed', sans-serif; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); text-decoration: none;
}
.mega-all:hover { text-decoration: underline; }

.btn-nav {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--navy-dark); text-decoration: none;
  padding: 0.45rem 1.1rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav:hover { background: var(--gold-light); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 28px; height: 2.5px; background: var(--white);
  border-radius: 2px; transition: transform 0.25s, opacity 0.25s; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed; top: 100px; left: 0; right: 0;
  background: var(--navy-dark); border-bottom: 3px solid var(--gold); z-index: 99;
  flex-direction: column; padding: 1rem 2rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  color: var(--white); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--gold); }
/* Grouped sections in the phone menu use native <details>, so no extra script */
.nav-drawer summary {
  list-style: none; cursor: pointer; color: var(--white);
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between;
}
.nav-drawer summary::-webkit-details-marker { display: none; }
.nav-drawer summary::after { content: '+'; color: var(--gold); font-weight: 700; }
.nav-drawer details[open] summary::after { content: '\2212'; }
.nav-drawer details a { display: block; padding: 0.7rem 0 0.7rem 1.25rem; font-size: 1.05rem; color: rgba(255,255,255,0.85); }
.nav-drawer { max-height: calc(100vh - 100px); overflow-y: auto; }
.nav-drawer .drawer-cta {
  margin-top: 1rem; background: var(--gold); color: var(--navy-dark) !important;
  text-align: center; padding: 0.9rem 1rem; border-radius: 6px; font-weight: 700;
  border-bottom: none;
}
.nav-drawer .drawer-cta:hover { background: var(--gold-light); color: var(--navy-dark) !important; }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer { background: var(--navy-dark); padding: 3rem 2.5rem 1.5rem; border-top: 4px solid var(--gold); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; display: grid;
  grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo { width: 180px; height: 180px; object-fit: contain; border-radius: 50%; background: white; padding: 6px; display: block; }
.footer-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.4rem; color: white; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.75rem; }
.footer-tag { font-size: 0.75rem; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.2rem; }
.footer-col address a { color: inherit; text-decoration: none; }
.footer-col address a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin-top: 1rem; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col address { color: rgba(255,255,255,0.55); font-size: 0.85rem; font-style: normal; line-height: 1.75; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem; text-align: center; color: rgba(255,255,255,0.6); font-size: 0.78rem;
}

.footer-legal { margin-top: 0.5rem; }
.footer-legal a, .footer-legal button {
  color: rgba(255,255,255,0.55); font: inherit; background: none; border: none; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--gold); }

/* ── COOKIE NOTICE (built by cookie-banner.js) ────────────────────────────
   Sits below modals (1200+) and above the nav (100). */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1100; max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.25rem;
  background: var(--navy-dark); border-top: 4px solid var(--gold); border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35); color: rgba(255,255,255,0.9); font-size: 0.9rem; line-height: 1.55;
}
.cookie-banner p { flex: 1; }
.cookie-banner a { color: var(--gold); font-weight: 600; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-actions button {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.6rem 1.4rem; border-radius: 6px; cursor: pointer;
}
.cookie-ok { background: var(--gold); color: var(--navy-dark); border: 2px solid var(--gold); }
.cookie-ok:hover { background: var(--gold-light); }
.cookie-decline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.cookie-decline:hover { border-color: var(--gold); color: var(--gold); }

/* ── RESPONSIVE (nav + footer only; page rules live on the page) ──────── */
@media (max-width: 1200px) {
  .nav-right { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 92px; }
  nav { padding: 0 1.25rem; height: 80px; }
  .nav-logo-img { height: 62px; width: 62px; }
  .nav-brand { height: 62px; }
  .nav-brand-main { font-size: 2rem; }
  .nav-drawer { top: 80px; max-height: calc(100vh - 80px); }
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 0.9rem; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  .cookie-actions button { flex: 1; }
}
