/* ============================================================
   Windows Winnipeg — SYSTEM.CSS
   Blaze Orange palette: Mirage navy base, bold orange CTA/badges, deep-sea teal accents, wild-sand light.
   Space Grotesk 700 display, soft tinted shadows.
   ============================================================ */

/* ============== TOKENS ============== */
:root {
  /* Near-black warm-olive base (dark sections/footer) */
  --navy:        #16180F;
  --navy-2:      #0C0E07;
  --navy-3:      #262A1A;

  /* Neutrals — cream light base */
  --ink:         #16180F;
  --steel:       #5C5F52;
  --slate:       #71756A;
  --mist:        #DED9C7;
  --cloud:       #F1EEE4;
  --paper:       #FFFFFF;
  --cream:       #EDEADD;
  --cream-2:     #DED9C7;

  /* Brand accents — warm amber (tape/badges/buttons/cta band) — DARK text on it */
  --hi-vis:      #df9933;
  --hi-vis-deep: #C67F1E;
  --hi-vis-soft: rgba(223, 153, 51, 0.20);
  --hi-vis-bg:   #FBEDD6;

  /* Signal — dark amber-brown (links + light-section text highlight, readable on cream) */
  --signal:      #6B4A16;
  --signal-deep: #4A330F;
  --signal-soft: #E8D9BC;
  --signal-bg:   #F5EBD8;

  --trust:       #6B4A16;
  --trust-soft:  #EBDEC4;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Soft tinted shadows */
  --shadow-sm:   0 4px 12px -4px rgba(33, 48, 60, 0.10);
  --shadow-md:   0 12px 30px -8px rgba(33, 48, 60, 0.18);
  --shadow-lg:   0 24px 48px -12px rgba(33, 48, 60, 0.24);
  --shadow-card: 0 1px 3px rgba(33, 48, 60, 0.06), 0 4px 12px -4px rgba(33, 48, 60, 0.08);
  --shadow-glow-hi-vis: 0 0 0 3px rgba(223, 153, 51, 0.5);
  --shadow-glow-signal: 0 0 0 3px rgba(107, 74, 22, 0.35);

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-both: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:  120ms;
  --dur-base:  220ms;
  --dur-slow:  400ms;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 24px;
  --alert-bar-h:   60px;
  --nav-h:         76px;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--hi-vis); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--hi-vis-deep); }
:focus-visible { outline: none; box-shadow: var(--shadow-glow-hi-vis); border-radius: var(--radius-sm); }

/* ============== TYPOGRAPHY ============== */
.tow-text-display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.tow-text-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.tow-text-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.tow-text-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.tow-text-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--steel);
}
.tow-text-body  { font-size: 1rem; line-height: 1.65; color: var(--steel); }
.tow-text-small { font-size: 0.875rem; line-height: 1.55; color: var(--slate); }
.tow-text-stat {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tow-text-mono {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tow-text-overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tow-text-overline--hi-vis { color: var(--hi-vis-deep); }
.tow-text-overline--signal { color: var(--signal); }
.tow-text-overline--navy   { color: var(--navy); }

.tow-hl-hi-vis { color: var(--hi-vis); }
.tow-hl-signal { color: var(--signal); }

/* ============== LAYOUT ============== */
.tow-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
@media (min-width: 960px)  { .tow-container { padding: 0 40px; } }
@media (min-width: 1280px) { .tow-container { padding: 0 64px; } }

.tow-section { padding: var(--space-9) 0; }
.tow-section--tight { padding: var(--space-7) 0; }
.tow-section--navy  { background: var(--navy);  color: var(--paper); }
.tow-section--cloud { background: var(--cloud); color: var(--ink); }
.tow-section--paper { background: var(--paper); color: var(--ink); }
.tow-section--cream { background: var(--cream); color: var(--ink); }

.tow-main { padding-top: calc(var(--alert-bar-h) + var(--nav-h)); background: var(--paper); }

@media (min-width: 1024px) {
  .tow-main { padding-top: 0; }
}

/* ============== EDGE STRIP (concrete control-joint marker) ============== */
.tow-caution-tape {
  height: 18px;
  background-image: repeating-linear-gradient(
    135deg,
    var(--hi-vis) 0,
    var(--hi-vis) 18px,
    var(--navy) 18px,
    var(--navy) 36px
  );
  border-top: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
}
.tow-caution-tape--thin  { height: 12px; }
.tow-caution-tape--thick { height: 28px; }

/* ============== BUTTONS ============== */
.tow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.tow-btn:hover { transform: translateY(-2px); text-decoration: none; }

/* Primary = warm orange (the big estimate CTA) */
.tow-btn--primary {
  background: var(--signal);
  color: var(--paper);
  box-shadow: 0 4px 14px -2px rgba(217, 119, 46, 0.36);
}
.tow-btn--primary:hover {
  background: var(--signal-deep);
  color: var(--paper);
  box-shadow: 0 8px 22px -4px rgba(217, 119, 46, 0.48);
}

/* Hi-vis = warm amber secondary */
.tow-btn--hi-vis {
  background: var(--hi-vis);
  color: var(--navy);
  box-shadow: 0 4px 14px -2px rgba(228, 161, 74, 0.36);
}
.tow-btn--hi-vis:hover {
  background: var(--hi-vis-deep);
  color: var(--navy);
  box-shadow: 0 8px 22px -4px rgba(228, 161, 74, 0.48);
}

/* Ghost on dark backgrounds */
.tow-btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.3);
}
.tow-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--paper);
  color: var(--paper);
}

/* Outline on light */
.tow-btn--outline {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--mist);
  box-shadow: var(--shadow-sm);
}
.tow-btn--outline:hover {
  background: var(--cloud);
  color: var(--navy);
  border-color: var(--navy);
}

.tow-btn--xl { padding: 18px 32px; font-size: 1.05rem; }
.tow-btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ============== ICON ============== */
.tow-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.tow-icon--sm { width: 16px; height: 16px; }
.tow-icon--md { width: 24px; height: 24px; }
.tow-icon--lg { width: 36px; height: 36px; }
.tow-icon--xl { width: 56px; height: 56px; }

/* ============== BADGE ============== */
.tow-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.tow-badge--hi-vis  { background: var(--hi-vis-bg); color: var(--hi-vis-deep); border: 1px solid var(--hi-vis); }
.tow-badge--signal  { background: var(--signal-bg); color: var(--signal-deep); border: 1px solid var(--signal); }
.tow-badge--navy    { background: var(--navy);      color: var(--paper); }
.tow-badge--paper   { background: var(--paper);     color: var(--navy); border: 1px solid var(--mist); }
.tow-badge--trust   { background: var(--trust-soft); color: var(--trust); border: 1px solid var(--trust); }

.tow-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--trust);
  box-shadow: 0 0 0 0 var(--trust);
  animation: tow-pulse-trust 1.8s cubic-bezier(0.66, 0, 0, 1) infinite;
}
@keyframes tow-pulse-trust {
  0%   { box-shadow: 0 0 0 0 rgba(223, 153, 51, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(223, 153, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(223, 153, 51, 0); }
}

/* ============== UTILITIES ============== */
.u-skip-link { position: absolute; left: -9999px; }
.u-skip-link:focus {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--navy);
  color: var(--hi-vis);
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.u-text-mono { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; }
.u-text-center { text-align: center; }

.u-bg-navy   { background: var(--navy); }
.u-bg-paper  { background: var(--paper); }
.u-bg-cream  { background: var(--cream); }
.u-color-hi-vis { color: var(--hi-vis-deep); }
.u-color-signal { color: var(--signal); }
.u-color-navy   { color: var(--navy); }

.u-mt-4 { margin-top: var(--space-4); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-8 { margin-top: var(--space-8); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-mb-6 { margin-bottom: var(--space-6); }

.u-grid { display: grid; gap: var(--space-5); }
.u-grid-2, .u-grid-3, .u-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .u-grid-2, .u-grid-3, .u-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .u-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .u-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.u-flex { display: flex; }
.u-flex-center { display: flex; align-items: center; justify-content: center; }
.u-gap-2 { gap: var(--space-2); }
.u-gap-3 { gap: var(--space-3); }
.u-gap-4 { gap: var(--space-4); }

.u-hidden { display: none !important; }
@media (max-width: 959px) { .u-hidden-mobile  { display: none !important; } }
@media (min-width: 960px) { .u-hidden-desktop { display: none !important; } }

.u-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.u-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .u-reveal { opacity: 1; transform: none; }
}


/* PW icon: mask-image span renders the webp shape with currentColor — inherits theme color like an SVG sprite did */
.tow-icon--mask {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  vertical-align: -0.125em;
}
.tow-icon.tow-icon--sm { font-size: 16px; }
.tow-icon.tow-icon--md { font-size: 24px; }
.tow-icon.tow-icon--lg { font-size: 32px; }
.tow-icon.tow-icon--xl { font-size: 48px; }


/* Lime buttons → DARK near-black text (white-on-lime fails) */
.tow-btn--primary, .tow-cta-banner__primary-btn, button.tow-btn--primary {
  background-color: var(--hi-vis) !important;
  color: var(--navy) !important;
  border-color: var(--hi-vis) !important;
}
.tow-btn--primary:hover, button.tow-btn--primary:hover {
  background-color: var(--hi-vis-deep) !important;
  color: var(--navy) !important;
}
.tow-hero__cta--primary { background-color: var(--hi-vis); color: var(--navy); }
.tow-hero__cta--primary:hover { background-color: var(--hi-vis-deep); }


/* CTA banner sits on the lime (--hi-vis) band → DARK text, near-black button pops */
.tow-cta, .tow-cta__title, .tow-cta__body, .tow-cta__note { color: var(--navy) !important; }
.tow-cta__overline { color: var(--paper) !important; background: var(--navy) !important; }
.tow-cta__title em { color: var(--navy) !important; font-weight: 900; text-decoration: underline; text-decoration-color: rgba(0,0,0,0.35); text-underline-offset: 4px; }
section.tow-cta .tow-btn--primary, .tow-cta a.tow-btn--primary {
  background-color: var(--navy) !important;
  color: var(--paper) !important;
  border-color: var(--navy) !important;
}
section.tow-cta .tow-btn--primary:hover, .tow-cta a.tow-btn--primary:hover {
  background-color: var(--navy-2) !important;
}
section.tow-cta .tow-btn--ghost, .tow-cta a.tow-btn--ghost {
  background: transparent !important;
  color: var(--navy) !important;
  border: 2px solid var(--navy) !important;
}
section.tow-cta .tow-btn--ghost:hover { background: rgba(0, 0, 0, 0.08) !important; }

/* Badges/icons on the lime --hi-vis bg → dark near-black text/icon */
.tow-blog-card__tag, .tow-article-card__tag,
.tow-contact-hero__card-icon, .tow-contact-form__phone-icon,
.tow-service-nav__item.is-current .tow-service-nav__icon,
.tow-callout--signal .tow-callout__icon,
.tow-footer__area-chip:hover {
  color: var(--navy) !important;
}

/* Footer legal links (Contact / Terms / Sitemap) → cream branding color on the navy footer */
.tow-footer__legal a { color: var(--cloud) !important; }
.tow-footer__legal a:hover { color: var(--paper) !important; text-decoration: underline; }

/* Body / prose text links use the branded orange (card-wrapper links set their
   own dark color explicitly, so they are unaffected). */
a { color: var(--hi-vis); }
a:hover { color: var(--hi-vis-deep); }

/* Pulsing overline / promo dots → Blaze Orange */
[class$="__overline-dot"], [class$="__promo-dot"],
.tow-hero__overline-dot, .tow-mega__promo-dot {
  background: var(--hi-vis) !important;
  box-shadow: 0 0 0 0 var(--hi-vis);
}

/* Section overline pills → lime bg + dark near-black text (bold, consistent across all light sections) */
.tow-feature__overline, .tow-faq__overline, .tow-reviews__overline,
.tow-content__overline, .tow-inclusion__overline, .tow-hero--split .tow-hero__overline,
.tow-feature--bg-navy .tow-feature__overline {
  background: var(--hi-vis) !important;
  color: var(--navy) !important;
  border-color: var(--hi-vis) !important;
}

/* Service-card icon tiles → warm cream background (dark icon stays) */
.tow-service-card__icon { background: #EDEADD !important; color: #242826 !important; }

/* Remove diagonal stripe pattern from CTA banner background (solid lime) */
.tow-cta::before { display: none !important; }
