/* =====================================================================
   Wilkinson Electric — public site (DRAFT rebuild, Oct 2026)
   Clean-room build. No assets carried over from the old (hacked) site.
   Brand colors live here as variables — change --navy once to retheme.
   ===================================================================== */

:root {
  /* --- Brand (CONFIRM exact hex against WE brand file) --- */
  --navy:      #163a5e;   /* primary WE navy */
  --navy-d:    #0e2740;   /* deep navy (hero, footer) */
  --navy-dd:   #091c30;   /* deepest */
  --navy-l:    #1f5287;   /* lighter navy */
  --electric:  #2e86de;   /* electric-blue accent (links, CTAs) */
  --electric-l:#5aa6ef;
  --spark:     #f5a623;   /* amber "spark" — used sparingly on stats/facts */

  /* --- Neutrals --- */
  --ink:    #0d1b2a;
  --body:   #33404d;
  --slate:  #5f7180;
  --line:   #e4e9ef;
  --mist:   #f4f7fa;
  --mist-2: #eaeff5;
  --paper:  #ffffff;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(14,39,64,.10);
  --shadow-lg: 0 24px 60px rgba(9,28,48,.22);
  --ease: .28s cubic-bezier(.4,0,.2,1);

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--electric); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.04;
  margin: 0 0 .4em;
  font-weight: 600;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600; font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--electric);
  display: inline-block; margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--electric-l); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: var(--ease); text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--electric); color: #fff; }
.btn-primary:hover { background: #2576c7; box-shadow: 0 10px 24px rgba(46,134,222,.35); }
.btn-ghost { background: rgba(9,28,48,.22); color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-d); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); }
.btn .arr { transition: transform var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: .98rem;
  letter-spacing: .01em; text-decoration: none; position: relative; padding: 4px 0;
}
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:-2px; height:2px; width:0;
  background: var(--electric); transition: width var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display:none; background:none; border:0; cursor:pointer; padding:8px; }
.nav-toggle span { display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; transition: var(--ease); }

/* Brand / logo (vector, rebuilt clean — no image file) */
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand:hover { text-decoration:none; }
.brand-badge {
  font-family: var(--font-display); font-weight:700; font-size:1.35rem;
  color:#fff; background: var(--navy); letter-spacing:.02em;
  width:46px; height:46px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  border: 2px solid var(--navy); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.brand-word {
  font-family: var(--font-display); line-height:1; color: var(--ink);
  font-weight:600; font-size:1.42rem; letter-spacing:.06em; text-transform:uppercase;
}
.brand-word b { color: var(--electric); font-weight:600; }
.brand.on-dark .brand-word { color:#fff; }
.brand.on-dark .brand-badge { background:#fff; color: var(--navy-d); border-color:#fff; }
.brand.on-dark .brand-word b { color: var(--electric-l); }
/* Real WE logo mark (from the Hub) */
.brand-logo { height: 42px; width: auto; display:block; flex-shrink:0; }
.brand.on-dark .brand-logo { background:#fff; padding:5px 8px; border-radius:8px; }

/* ---------- Photo placeholder (designed, not broken) ----------
   Used everywhere a real (confirmed-clean) photo will go.      */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 34px),
    linear-gradient(145deg, var(--navy-l), var(--navy-d));
  color: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: center;
}
.ph::before {
  content:''; position:absolute; width:120px; height:120px; border-radius:50%;
  background: radial-gradient(circle, rgba(46,134,222,.45), transparent 70%);
  top:-20px; right:-20px; filter: blur(6px);
}
.ph-label {
  position: relative; z-index:1; font-family: var(--font-body);
  font-size:.72rem; letter-spacing:.16em; text-transform:uppercase;
  padding:6px 12px; border:1px solid rgba(255,255,255,.3); border-radius:999px;
  background: rgba(9,28,48,.35);
}
.ph-16x9 { aspect-ratio: 16/9; }
.ph-4x3  { aspect-ratio: 4/3; }
.ph-1x1  { aspect-ratio: 1/1; }
.ph-tall { aspect-ratio: 3/4; }

/* Photos dropped into a .ph frame fill it and crop uniformly (heads up top) */
.ph.has-photo { padding: 0; }
.ph.has-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  display: block;
}

/* ---------- Hero ---------- */
.hero { position: relative; color:#fff; overflow:hidden;
  background: radial-gradient(1200px 600px at 75% -10%, var(--navy-l), transparent 60%), linear-gradient(160deg, var(--navy-d) 0%, var(--navy-dd) 100%); }
.hero-video {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  /* no zoom; align to the bottom so the crop comes off the TOP (sky), keeping the building */
  object-position: 50% 100%;
  z-index:0; pointer-events:none;
  opacity:0; transition: opacity 1.8s ease; /* fade in once the video is ready */
}
.hero-video.is-ready { opacity:1; }
@media (prefers-reduced-motion: reduce) { .hero-video { transition:none; } }
.hero-overlay {
  position:absolute; inset:0; z-index:1; pointer-events:none;
  /* dark navy on the left to frame the content, clearing toward the right so the footage shows */
  background: linear-gradient(90deg,
    rgba(9,28,48,.90) 0%,
    rgba(9,28,48,.82) 34%,
    rgba(9,28,48,.50) 62%,
    rgba(9,28,48,.16) 100%);
}
.hero-grid {
  position:absolute; inset:0; z-index:1; opacity:.5; pointer-events:none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 55%, transparent 100%);
}
.hero-inner { position:relative; z-index:2; padding: 104px 0 96px; max-width: 820px; }
.hero h1 { color:#fff; margin-bottom:.25em; text-shadow: 0 2px 12px rgba(0,0,0,.38); }
.hero h1 .accent { color: #fff; } /* Shaylei: both headline lines white over the video */
.hero-sub { font-size: 1.28rem; color: rgba(255,255,255,.92); max-width: 62ch; margin-bottom: 30px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-cta { display:flex; gap:14px; flex-wrap:wrap; }
/* On desktop, left-align the hero content (it is centred by default) with a
   comfortable gutter so it sits farther left and leaves the right for the video. */
@media (min-width: 1024px) { .hero-inner { margin-left: clamp(24px, 7vw, 120px); margin-right: auto; } }

/* ---------- Stat band ---------- */
.statband { background: var(--navy); color:#fff; }
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap:0; }
.stat { padding: 40px 22px; text-align:center; border-left:1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left:0; }
.stat .num { font-family: var(--font-display); font-weight:700; font-size: 3rem; line-height:1; color:#fff; }
.stat .num .u { color: var(--spark); }
.stat .lbl { font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; color: rgba(255,255,255,.7); margin-top:8px; }

/* ---------- Generic grids ---------- */
.grid { display:grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Project cards ---------- */
.pcard {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden; transition: var(--ease); display:flex; flex-direction:column;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard .ph { border-radius:0; }
.pcard-body { padding: 18px 20px 22px; display:flex; flex-direction:column; gap:8px; flex:1; }
.pcard .tags { display:flex; gap:8px; flex-wrap:wrap; }
.tag {
  font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; font-weight:600;
  padding:3px 9px; border-radius:999px; background: var(--mist-2); color: var(--navy-l);
}
.tag.region { background: rgba(46,134,222,.12); color: var(--electric); }
.pcard h3 { margin:2px 0; font-size:1.35rem; color: var(--ink); }
.pcard .meta { font-size:.9rem; color: var(--slate); }
.pcard a.cardlink { color: var(--navy); font-weight:600; font-family:var(--font-display);
  text-transform:uppercase; letter-spacing:.04em; margin-top:auto; }

/* ---------- Core values (hover reveal) ---------- */
.values { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value {
  position:relative; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; background:#fff; overflow:hidden; cursor:default;
  transition: var(--ease); min-height: 190px;
}
.value:hover, .value.open { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value .vnum { font-family:var(--font-display); font-size:.85rem; color: var(--electric); letter-spacing:.1em; }
.value h3 { font-size:1.6rem; margin:.3em 0 .1em; }
.value .vhint { font-size:.82rem; color: var(--slate); letter-spacing:.04em; }
.value .vbody {
  margin-top:14px; font-size:.98rem; color: var(--body);
  max-height:0; opacity:0; overflow:hidden;
  transition: max-height .4s ease, opacity .3s ease, margin .3s ease;
}
.value:hover .vbody, .value.open .vbody { max-height: 240px; opacity:1; margin-top:14px; }
.value:hover .vhint, .value.open .vhint { opacity:0; }
.value::after { content:''; position:absolute; left:0; top:0; height:4px; width:0; background:var(--electric); transition: width var(--ease); }
.value:hover::after, .value.open::after { width:100%; }

/* ---------- Split / feature rows ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items:center; }
.split.reverse > :first-child { order: 2; }

/* ---------- Mix band (people + jobsites + finished work) ---------- */
.mosaic { display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; }
.mosaic .ph { border-radius: var(--radius-sm); }
.mosaic .span2 { grid-column: span 2; }
.mosaic .row2 { grid-row: span 2; }

/* ---------- Careers / Join the team ---------- */
.jointeam { background: linear-gradient(160deg, var(--navy-d), var(--navy-dd)); color:#fff; border-radius: var(--radius); overflow:hidden; }
.perk { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.perk h3 { font-size:1.3rem; }
.perk .pico { width:44px; height:44px; border-radius:10px; background: rgba(46,134,222,.12);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px; color: var(--electric); }

/* ---------- Filter bar (projects) ---------- */
.filterbar { display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; margin-bottom: 30px;
  padding: 20px; background: var(--mist); border:1px solid var(--line); border-radius: var(--radius); }
.field { display:flex; flex-direction:column; gap:6px; }
.field label { font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--slate); font-weight:600; }
.field select, .field input {
  font-family: var(--font-body); font-size:.98rem; padding: 10px 14px;
  border:1px solid var(--line); border-radius: var(--radius-sm); background:#fff; color: var(--ink); min-width: 180px;
}
.field input { min-width: 240px; }
.field select:focus, .field input:focus { outline:2px solid var(--electric); border-color: var(--electric); }
.filter-count { margin-left:auto; color: var(--slate); font-size:.92rem; font-weight:500; align-self:center; }
.chip-reset { background:none; border:0; color: var(--electric); font-weight:600; cursor:pointer; font-size:.92rem; }
.no-results { text-align:center; padding: 60px 20px; color: var(--slate); grid-column: 1 / -1; }

/* ---------- Project detail (tight spacing per Shaylei's note) ---------- */
.pd-hero { background: var(--mist); border-bottom:1px solid var(--line); padding: 34px 0; }
.breadcrumb { font-size:.86rem; color: var(--slate); margin-bottom: 10px; }
.breadcrumb a { color: var(--slate); }
.pd-title { font-size: clamp(2rem,4vw,3rem); margin-bottom: 8px; }
.pd-meta { display:flex; flex-wrap:wrap; gap: 8px 10px; }
.pd-gallery { display:grid; grid-template-columns: 2fr 1fr 1fr; gap:12px; grid-auto-rows: 180px; margin: 28px 0; }
.pd-gallery .ph:first-child, .pd-gallery > a:first-child { grid-row: span 2; grid-column: span 1; }
.pd-gallery > a { display:block; overflow:hidden; border-radius: var(--radius); }
.pd-img { width:100%; height:100%; object-fit:cover; display:block; }
.pd-video { width:100%; border-radius: var(--radius); margin: 10px 0 4px; background:#000; display:block; }
/* project card photo (grid + home) */
.pcard-img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; background: var(--navy-d); }
.pd-layout { display:grid; grid-template-columns: 1fr 320px; gap: 44px; align-items:start; }
.pd-facts { position: sticky; top: 92px; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.pd-facts h3 { font-size: 1.05rem; letter-spacing:.06em; padding: 16px 20px; margin:0; background: var(--navy); color:#fff; text-transform:uppercase; }
.fact { display:flex; justify-content:space-between; gap:12px; padding: 13px 20px; border-top:1px solid var(--line); font-size:.95rem; }
.fact:first-of-type { border-top:0; }
.fact .k { color: var(--slate); }
.fact .v { color: var(--ink); font-weight:600; text-align:right; }
.scope-list { columns: 2; column-gap: 34px; }
.scope-list li { margin-bottom: 8px; break-inside: avoid; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose h3:first-child { margin-top: 0; }

/* Fun facts callout (Shaylei loved these) */
.funfacts { background: var(--navy-d); color:#fff; border-radius: var(--radius); padding: 30px; margin: 30px 0; }
.funfacts .eyebrow { color: var(--spark); }
.funfacts-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 8px; }
.funfact .ff-num { font-family: var(--font-display); font-weight:700; font-size: 2.6rem; color: var(--spark); line-height:1; }
.funfact .ff-lbl { font-size:.95rem; color: rgba(255,255,255,.82); margin-top:6px; }

/* ---------- CTA band ---------- */
.ctaband { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dd) 100%); color:#fff; text-align:center; }
.ctaband h2 { color:#fff; }
.ctaband p { color: rgba(255,255,255,.82); max-width: 56ch; margin:0 auto 26px; }

/* ---------- About / leadership ---------- */
.leader { text-align:center; }
.leader .ph { border-radius: var(--radius); margin-bottom: 14px; }
.leader .ln { font-family: var(--font-display); font-size:1.3rem; color: var(--ink); text-transform:uppercase; letter-spacing:.03em; }
.leader .lr { color: var(--electric); font-size:.86rem; letter-spacing:.08em; text-transform:uppercase; font-weight:600; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.office { border:1px solid var(--line); border-left:4px solid var(--electric); border-radius: var(--radius); padding: 26px; }
.office h3 { color: var(--navy); font-size: 1.5rem; }
.office .reg { font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color: var(--electric); font-weight:700; }
.office p { margin:.3em 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dd); color: rgba(255,255,255,.72); padding: 60px 0 30px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color:#fff; font-size:1rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration:none; }
.site-footer a:hover { color:#fff; }
.footer-links { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.84rem; }

/* ---------- Draft note banner ---------- */
.draftnote { background: var(--spark); color: #3a2a00; text-align:center; font-size:.82rem; padding: 7px 16px; font-weight:500; }
.draftnote b { font-weight:700; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .values, .stats, .funfacts-grid { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-facts { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-links { position: fixed; inset: 74px 0 auto 0; background:#fff; flex-direction:column;
    align-items: flex-start; gap:0; padding: 10px 24px 20px; border-bottom:1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-10px); opacity:0; visibility:hidden;
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease); }
  .nav-links.open { transform: translateY(0); opacity:1; visibility:visible; }
  .nav-links a { width:100%; padding: 13px 0; border-bottom:1px solid var(--line); }
  .nav-links a::after { display:none; }
  .nav-links a.nav-cta { margin:14px 0 0; justify-content:center; border-bottom:0; }
  .nav-toggle { display:block; }
  .grid-3, .grid-4, .values, .stats, .funfacts-grid, .grid-2, .scope-list { grid-template-columns: 1fr; columns: 1; }
  .mosaic { grid-template-columns: repeat(2,1fr); }
  .pd-gallery { grid-template-columns: 1fr 1fr; }
  .stat { border-left:0; border-top:1px solid rgba(255,255,255,.1); }
  .stat:first-child { border-top:0; }
}
