
/* Western Pavement Services — Design System */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800;900&family=Saira+Condensed:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette — slate + orange */
  --asphalt: #2c3035;
  --navy: #454a4f;
  --navy-2: #5a6166;
  --terracotta: #d26639;
  --terracotta-deep: #a04d24;
  --rust: #a04d24;
  --sand: #e6e3dc;
  --bone: #f1eee7;
  --paper: #f7f5ef;
  --amber: #d26639;
  --stripe: #d26639;
  --line: rgba(69, 74, 79, 0.14);
  --line-strong: rgba(69, 74, 79, 0.3);
  --muted: rgba(69, 74, 79, 0.62);

  /* Type — varsity/athletic chunky display */
  --display: 'Big Shoulders Display', 'Saira Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

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

html, body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ================================================================ */
/* LAYOUT PRIMITIVES                                                  */
/* ================================================================ */

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.wrap-wide { max-width: 1640px; margin: 0 auto; padding: 0 48px; }
.wrap-narrow { max-width: 1040px; margin: 0 auto; padding: 0 48px; }

@media (max-width: 720px) {
  .wrap, .wrap-wide, .wrap-narrow { padding: 0 24px; }
}

/* ================================================================ */
/* TYPOGRAPHY                                                         */
/* ================================================================ */

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.h-xxl { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8vw, 140px); line-height: 0.88; letter-spacing: -0.01em; text-transform: uppercase; }
.h-xl  { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.5vw, 88px); line-height: 0.9; letter-spacing: 0; text-transform: uppercase; }
.h-l   { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 3.5vw, 56px); line-height: 0.95; letter-spacing: 0; text-transform: uppercase; }
.h-m   { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: 0.005em; }
.h-s   { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; }

.editorial { font-family: var(--serif); font-weight: 400; font-style: italic; }

.mono, .label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.label-lg { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

.lede { font-size: 20px; line-height: 1.45; font-weight: 400; max-width: 56ch; }
.body { font-size: 16px; line-height: 1.6; }
.small { font-size: 14px; line-height: 1.5; }

/* ================================================================ */
/* NAV                                                                */
/* ================================================================ */

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 116px;
  max-width: 1640px; margin: 0 auto;
  padding: 0 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active { border-color: var(--terracotta); color: var(--terracotta); }

.nav-cta {
  background: var(--navy);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--terracotta); }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 40px;
  padding: 8px;
}
.nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 32px 24px;
}
.nav-mobile a {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.active { color: var(--terracotta); }
.nav-mobile-cta {
  margin-top: 16px;
  background: var(--navy);
  color: var(--bone) !important;
  text-align: center;
  border-bottom: none !important;
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; }
  .site-nav-inner { height: 88px; }
}

/* ================================================================ */
/* BUTTONS                                                            */
/* ================================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 28px;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-weight: 500;
}
.btn-primary { background: var(--terracotta); color: var(--bone); }
.btn-primary:hover { background: var(--terracotta-deep); }
.btn-dark { background: var(--navy); color: var(--bone); }
.btn-dark:hover { background: var(--asphalt); }
.btn-ghost { border-color: var(--line-strong); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--bone); }
.btn-ghost-light { border-color: rgba(244,239,229,0.3); color: var(--bone); }
.btn-ghost-light:hover { background: var(--bone); color: var(--navy); }

.btn .arrow { font-family: var(--sans); font-weight: 300; font-size: 16px; }

/* ================================================================ */
/* COMMON SECTIONS                                                    */
/* ================================================================ */

.section { padding: 88px 0; }
.section-sm { padding: 60px 0; }
.section-dark { background: var(--navy); color: var(--bone); }
.section-dark .label { color: var(--stripe); }
.section-dark .muted { color: rgba(244,239,229,0.65); }
.section-asphalt { background: var(--navy); color: var(--bone); }
.section-sand { background: var(--sand); }
.section-bone { background: var(--bone); }

.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  margin-bottom: 48px;
  align-items: end;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 60px 0; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--terracotta);
}
.section-dark .eyebrow { color: var(--stripe); }
.section-dark .eyebrow::before { background: var(--stripe); }

/* ================================================================ */
/* STRIPING ACCENT                                                    */
/* ================================================================ */

.stripe-line {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe) 0 40px,
    transparent 40px 64px
  );
}
.stripe-line-sm {
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe) 0 20px,
    transparent 20px 32px
  );
}

/* ================================================================ */
/* PLACEHOLDER IMAGERY                                                */
/* ================================================================ */

.ph {
  position: relative;
  background: #3a4150;
  color: var(--bone);
  overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px;
}
.ph::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 55%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 22px);
}
.ph-label {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: rgba(244,239,229,0.55);
  display: flex; justify-content: space-between; width: 100%;
}
.ph-terracotta { background: #8f4a31; }
.ph-terracotta::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 22px);
}
.ph-sand { background: #d8d3c7; color: var(--navy); }
.ph-sand::before {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.03) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(26,35,51,0.035) 0 1px, transparent 1px 22px);
}
.ph-sand .ph-label { color: rgba(26,35,51,0.5); }

.ph-asphalt {
  background:
    radial-gradient(ellipse at 30% 15%, #616770 0%, transparent 55%),
    var(--navy);
}
.ph-asphalt::before {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 24px);
  opacity: 1;
  inset: 0;
}

/* ================================================================ */
/* FOOTER                                                             */
/* ================================================================ */

.site-foot {
  background: var(--navy);
  color: var(--bone);
  padding: 80px 0 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(244,239,229,0.1);
}
.foot-col h4 {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--stripe);
  margin-bottom: 20px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: rgba(244,239,229,0.75);
  padding: 6px 0;
  transition: color 0.15s;
  white-space: nowrap;
}
.foot-col a:hover { color: var(--bone); }
.foot-bottom {
  padding-top: 32px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(244,239,229,0.5);
}

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ================================================================ */
/* UTILS                                                              */
/* ================================================================ */

.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); }
.divider-dark { height: 1px; background: rgba(244,239,229,0.15); }

/* Marker dot */
.dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--terracotta); border-radius: 50%;
  vertical-align: middle;
}

/* ===== static export overrides ===== */
.nav-mobile{display:none !important;}
.nav-mobile.open{display:flex !important;}
.wps-page{display:none;}
.wps-page.active{display:block;}

/* ================================================================ */
/* COMPONENTS (static build)                                         */
/* ================================================================ */

/* Hero */
.hero { background: var(--navy); color: var(--bone); min-height: 74vh; display: flex; flex-direction: column; }
.hero-inner { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 72px; padding-bottom: 56px; }
.hero-tags { color: var(--stripe); display: flex; justify-content: space-between; width: 100%; }
.hero h1 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.005em; max-width: 880px; }
.hero h1 .accent { color: var(--stripe); }
.hero-lede { color: rgba(244,239,229,0.72); font-size: 18px; max-width: 560px; margin-top: 32px; line-height: 1.55; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Page header */
.pagehead { background: var(--bone); color: var(--navy); padding: 100px 0 80px; border-bottom: 1px solid var(--line); }
.pagehead.dark { background: var(--navy); color: var(--bone); border-bottom: none; }
.pagehead-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: end; }
.pagehead .lede { font-size: 20px; }
@media (max-width: 860px){ .pagehead-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Company marquee */
.co-marquee { position: relative; width: 100%; overflow: hidden; }
.co-track { display: flex; gap: 0; animation: wps-marquee 50s linear infinite; width: max-content; }
.co-track:hover { animation-play-state: paused; }
@keyframes wps-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.co-card { flex: 0 0 auto; width: 340px; padding: 36px 40px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.co-card .region { color: var(--terracotta); }
.co-logo { flex: 1; display: flex; align-items: center; padding: 20px 0; }
.co-logo img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }
.co-name { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.co-link { color: var(--terracotta); margin-top: 8px; display: inline-block; border-bottom: 1px solid var(--terracotta); padding-bottom: 2px; }
.co-link.placeholder { visibility: hidden; }

/* Coverage map */
.map-wrap { width: 100%; max-width: 1100px; margin: 0 auto; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.map-co-link { cursor: pointer; }
.map-co-link text { transition: fill 0.15s; }
.map-co-link:hover text { fill: var(--stripe); }

/* Sector grid */
.seg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.seg-card { border: 1px solid var(--line); background: var(--paper); }
.seg-card .img { height: 320px; overflow: hidden; }
.seg-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seg-card .body { padding: 36px; }
.seg-card .num { color: var(--terracotta); margin-bottom: 16px; }
.seg-card h3 { margin-bottom: 14px; }
@media (max-width: 760px){ .seg-grid { grid-template-columns: 1fr; } }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card .cap { position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,18,25,0.75) 0%, transparent 55%); display: flex; align-items: flex-end; padding: 20px 24px; }
.work-card .cap span { font-family: var(--display); font-size: 20px; font-weight: 600; text-transform: uppercase; color: var(--bone); letter-spacing: 0.02em; }
@media (max-width: 860px){ .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .work-grid { grid-template-columns: 1fr; } }

/* Services list */
.svc-row { display: grid; grid-template-columns: 80px 180px 1fr 1.2fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); align-items: center; }
.svc-row .num { color: var(--terracotta); font-size: 12px; }
.svc-row .thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.svc-benefits { list-style: none; }
.svc-benefits li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
@media (max-width: 980px){ .svc-row { grid-template-columns: 1fr; gap: 16px; } .svc-row .thumb { max-width: 280px; } }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.team-card { text-align: center; }
.team-card img, .team-ph { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: center top; display: block; margin: 0 auto; }
.team-ph { background: rgba(244,239,229,0.08); border: 1px solid rgba(244,239,229,0.2); display: flex; align-items: center; justify-content: center; }
.team-card .nm { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--bone); text-transform: uppercase; padding-top: 18px; }
.team-card .role { color: var(--stripe); margin-top: 6px; font-size: 11px; }
.team-card .li { display: inline-flex; margin-top: 12px; }
@media (max-width: 860px){ .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta-band { background: var(--navy); color: var(--bone); padding: 120px 0; position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: end; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px){ .cta-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 0; font-size: 16px; font-family: var(--sans); background: transparent; border: none; border-bottom: 1px solid var(--line-strong); outline: none; color: var(--navy); }
.field textarea { resize: vertical; min-height: 96px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.checks input { accent-color: var(--terracotta); width: auto; }
.state-tabs { display: flex; gap: 0; border: 1px solid var(--line-strong); width: fit-content; margin-bottom: 24px; }
.state-tab { padding: 10px 22px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; border-right: 1px solid var(--line-strong); background: transparent; color: var(--navy); }
.state-tab:last-child { border-right: none; }
.state-tab.active { background: var(--navy); color: var(--bone); }
.contact-aside { background: var(--navy); color: var(--bone); padding: 40px; }
.contact-aside .eyebrow { color: var(--stripe); }
.reach { background: var(--paper); border: 1px solid var(--line); padding: 40px; margin-top: 24px; }

/* Careers */
.careers-form .field input, .careers-form .field textarea { border: 1px solid var(--line-strong); padding: 14px 16px; }
.filenote { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px dashed var(--line-strong); cursor: pointer; }
