/* ==========================================================================
   Jassar Construction LLC — site.css
   Design language matched to signaltransportation.ca: Bebas Neue display caps,
   Manrope body, rounded corners, pill nav, amber primary CTA.
   Palette is Signal's blue + amber, lightened for a brighter feel.

   TO SWAP THE HERO FOR A REAL PHOTO: see --hero-img at the bottom of :root.
   ========================================================================== */

:root {
  /* ---- brand — same palette as signaltransportation.ca ---- */
  --am:        #E8A020;   /* amber — primary CTA */
  --am-hi:     #F5B03A;
  --am-ink:    #22180A;
  --st:        #1455A4;   /* Signal blue — secondary / links / eyebrows */
  --st-hi:     #0E3F7C;
  --st-rgb:    20, 85, 164;
  --st-bright: #4A7BB5;

  --txt:       #09285C;   /* navy ink */
  --txt-2:     #4A5C78;
  --txt-3:     #5A6A80;

  --bg:        #FFFFFF;
  --bg-1:      #E8EDF5;
  --bg-3:      #DDE4EF;
  --line:      #DDE4EF;
  --line-2:    #B9C6DA;

  --ink-bg:    #1A5AA8;   /* blue sections — lighter than Signal's deep navy */
  --ink-bg-2:  #2E74C4;

  --ok:        #0F7A52;

  /* ---- type ---- */
  --dis:  "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* ---- metrics ---- */
  --wrap: 1280px;
  --gut:  24px;
  --sec:  clamp(64px, 8vw, 112px);
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow:    0 1px 2px rgba(10,34,51,.05), 0 8px 24px -12px rgba(10,34,51,.15);
  --shadow-lg: 0 24px 60px -26px rgba(10,34,51,.33);

  /* Swap this for your own photo once you have one you like.
     NOTE: this path is relative to THIS css file, so it needs the ../ prefix. */
  --hero-img: url(../images/hero.webp);
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--dis);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 0 0 .4em;
  color: var(--txt);
}
h1 { font-size: clamp(3rem, 6.6vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 4.3vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: .95; }
h4 { font-family: var(--body); font-size: 1.04rem; font-weight: 700; margin: 0 0 .4em; letter-spacing: -.01em; }
/* Feature blocks are semantically h3 (they sit under a section h2) but read as
   body-weight labels, not display headings. */
.feat h3 { font-family: var(--body); font-size: 1.04rem; font-weight: 700;
           margin: 0 0 .4em; letter-spacing: -.01em; text-transform: none; line-height: 1.35; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- helpers -- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 800px; }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--bone2 { background: var(--bg-1); }
.section--ink { background: var(--ink-bg); color: rgba(255,255,255,.88); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 11px/1 var(--mono);
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--st); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .65; }
.eyebrow--center { justify-content: center; }
.section--ink .eyebrow { color: var(--am); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.6; color: var(--txt-2); }
.section--ink .lede { color: rgba(255,255,255,.88); }
.muted { color: var(--txt-2); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* -------------------------------------------------------------- button -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 800 .98rem/1 var(--body); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  background: var(--am); color: var(--am-ink);
  box-shadow: 0 8px 22px -10px rgba(232,160,32,.9);
}
.btn:hover { background: var(--am-hi); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }

.btn--st { background: var(--st); color: #fff; box-shadow: 0 8px 22px -10px rgba(var(--st-rgb), .8); }
.btn--st:hover { background: var(--st-hi); }
.btn--ghost { background: #fff; color: var(--txt); border-color: var(--line-2); box-shadow: none; font-weight: 700; }
.btn--ghost:hover { background: var(--bg-3); border-color: var(--txt-3); }
.btn--light { background: #fff; color: var(--txt); box-shadow: none; }
.btn--light:hover { background: var(--bg-1); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); box-shadow: none; font-weight: 700; }
.btn--outline-light:hover { background: #fff; color: var(--txt); border-color: #fff; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center .btn-row { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font: 700 .93rem/1 var(--body); color: var(--st); text-decoration: none;
  transition: gap .18s, color .18s;
}
.textlink:hover { gap: 11px; color: var(--txt); }
.section--ink .textlink { color: var(--am); }

/* ---------------------------------------------------------- photo slot -- */
/* Empty state: an obvious "a photo goes here" frame, so blank areas read as
   deliberate slots rather than broken images. The moment a background-image is
   set inline, the frame, icon and label all disappear automatically. */
.ph {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 16px; text-align: center;
  background-color: #E9F0FA;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 2px dashed #9EBDDD;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ph::before {
  content: ""; flex: none; width: 46px; height: 46px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C77A8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2.5'/%3E%3Ccircle cx='8.5' cy='9' r='1.6'/%3E%3Cpath d='M21 14.5l-4.5-4.5L5.5 21'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ph::after {
  content: attr(data-label);
  font: 700 11px/1.45 var(--body); letter-spacing: .09em; text-transform: uppercase;
  color: #4C77A8; max-width: 22ch;
}
.ph[style*="background-image"] { border-color: transparent; background-color: transparent; padding: 0; }
.ph[style*="background-image"]::before,
.ph[style*="background-image"]::after { display: none; }
.ph--ratio-43  { aspect-ratio: 4 / 3; }
.ph--ratio-11  { aspect-ratio: 1 / 1; }
.ph--ratio-32  { aspect-ratio: 3 / 2; }
.ph--ratio-45  { aspect-ratio: 4 / 5; }
.ph--ratio-169 { aspect-ratio: 16 / 9; }

/* ------------------------------------------------------------- topbar --- */
.topbar { background: var(--ink-bg); color: rgba(255,255,255,.7); font-size: .8rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--am); }
.topbar__set { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.topbar__item svg { width: 13px; height: 13px; opacity: .6; flex: none; }
@media (max-width: 900px) { .topbar__set--left { display: none; } .topbar__in { justify-content: center; } }
/* Both remaining items are nowrap and together overflow a 360px phone (the most
   common Android width), so below 560px keep only the phone number. */
@media (max-width: 560px) {
  .topbar__set .topbar__item:not(:last-child) { display: none; }
  .topbar__set { gap: 0; }
}

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 2px 20px rgba(9,40,92,.1); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--dis); font-size: 1.62rem; letter-spacing: .02em; text-transform: uppercase; color: var(--txt); }
.brand__sub { font: 600 9px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--st); margin-top: 5px; }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 auto 0 18px; padding: 0; }
.nav__links a, .has-sub > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--r-xs);
  font: 600 .95rem/1 var(--body); color: var(--txt-2);
  text-decoration: none; white-space: nowrap;
  background: none; border: 0; cursor: pointer; font-family: var(--body);
  transition: color .15s, background .15s;
}
.nav__links a:hover, .has-sub > button:hover, .has-sub[data-open="true"] > button { color: var(--txt); background: var(--bg-3); }
.nav__links a[aria-current="page"] {
  color: var(--st); background: rgba(var(--st-rgb), .09);
  box-shadow: inset 0 0 0 1px rgba(var(--st-rgb), .2);
}
.has-sub > button svg { width: 10px; height: 10px; transition: transform .2s; }
.has-sub[data-open="true"] > button svg { transform: rotate(180deg); }

.has-sub { position: relative; }
.subnav {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 274px; padding: 8px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); border-radius: var(--r);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub[data-open="true"] .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; width: 100%; padding: 11px 13px; border-radius: var(--r-xs); font-weight: 600; }
.subnav a:hover { background: var(--bg-1); color: var(--st); }

.nav__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 1rem/1 var(--body); text-decoration: none; color: var(--txt); white-space: nowrap;
}
.nav__phone svg { width: 16px; height: 16px; color: var(--am); flex: none; }
.nav__phone:hover { color: var(--st); }

.burger {
  display: none; width: 46px; height: 46px; flex: none;
  border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-xs);
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--txt); position: relative; border-radius: 2px; transition: background .18s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--txt); border-radius: 2px;
  transition: transform .26s, top .18s;
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1140px) { .nav__links { display: none; } .burger { display: flex; } .nav { min-height: 68px; } }
@media (max-width: 720px)  { .nav__phone { display: none; } }
@media (max-width: 540px)  { .nav__cta .btn { display: none; } .brand__name { font-size: 1.42rem; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 95; background: #fff;
  padding: 92px var(--gut) 48px; overflow-y: auto;
  transform: translateY(-100%); transition: transform .34s cubic-bezier(.4,0,.2,1);
}
body.menu-open .drawer { transform: translateY(0); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer > ul > li { border-bottom: 1px solid var(--line); }
.drawer a { display: block; padding: 15px 0; text-decoration: none; font-family: var(--dis); font-size: 1.85rem; text-transform: uppercase; color: var(--txt); }
.drawer a:hover { color: var(--st); }
.drawer .subnav-m { padding: 0 0 12px 14px; }
.drawer .subnav-m a { font-family: var(--body); font-size: 1rem; font-weight: 600; text-transform: none; padding: 8px 0; color: var(--txt-2); }
.drawer__foot { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }

/* --------------------------------------------------------------- hero --- */
.hero { position: relative; background: var(--ink-bg); color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background-color: #1A5AA8;
  background-image:
    var(--hero-img),
    radial-gradient(1100px 640px at 78% 10%, rgba(255,193,80,.40) 0%, transparent 58%),
    radial-gradient(1000px 620px at 12% 96%, rgba(96,164,224,.72) 0%, transparent 64%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.05) 0 1px, transparent 1px 96px);
  background-size: cover, cover, cover, auto;
  background-position: center;
}
/* Two layers: a blue wash that ties the photo to the brand, plus a left-weighted
   darkening so the headline stays readable over whatever the photo is doing. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9,40,92,.90) 0%, rgba(14,60,118,.66) 46%, rgba(20,85,164,.34) 100%),
    linear-gradient(0deg, rgba(20,85,164,.34), rgba(20,85,164,.34));
}
.hero__in { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 132px); }
.hero__copy { max-width: 760px; }
.hero .eyebrow {
  color: var(--am);
  background: rgba(232,160,32,.12);
  border: 1px solid rgba(232,160,32,.3);
  padding: 8px 15px; border-radius: 999px; margin-bottom: 26px;
}
.hero .eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--am); opacity: 1; }
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--am); display: block; }
.hero .lede { color: rgba(255,255,255,.92); max-width: 600px; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 22px);
  margin-top: clamp(32px, 5vw, 48px);
}
.hero__trust div {
  flex: 1 1 140px; min-width: 130px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: 18px 20px;
}
.hero__trust b { display: block; font-family: var(--dis); font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 400; color: var(--am); line-height: .9; }
.hero__trust span { display: block; margin-top: 9px; font: 600 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* interior page hero */
.phero { background: var(--ink-bg); color: #fff; position: relative; overflow: hidden; }
.phero__bg {
  position: absolute; inset: 0; background-color: #1A5AA8;
  background-image:
    radial-gradient(900px 470px at 86% 16%, rgba(255,193,80,.34) 0%, transparent 60%),
    radial-gradient(820px 460px at 6% 98%, rgba(96,164,224,.66) 0%, transparent 62%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.045) 0 1px, transparent 1px 96px);
}
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,60,118,.66) 0%, rgba(20,85,164,.18) 100%); }
.phero__in { position: relative; z-index: 2; padding-block: clamp(50px, 7vw, 92px); }
.phero h1 { color: #fff; max-width: 18ch; }
.phero .lede { color: rgba(255,255,255,.92); max-width: 640px; margin-top: 18px; }

/* ---------------------------------------------------------- breadcrumb -- */
.crumbs { font: 600 10px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 22px; color: rgba(255,255,255,.75); }
.crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.crumbs a:hover { color: var(--am); }
.crumbs span { margin-inline: 9px; opacity: .45; }

/* --------------------------------------------------------------- grid --- */
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
/* Grid/flex children default to min-width:auto, so one wide unbreakable child
   (a long email address, a map embed) can push a column past its container and
   cause horizontal scroll on narrow phones. */
.split > *, .grid > * { min-width: 0; }
.split--text-first > *:first-child { order: -1; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- card --- */
.scard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
/* Inside a card the card's own border is the frame, so the slot drops its
   dashed outline and just keeps the tint, icon and label. */
.scard__img { border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.scard__body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.scard__body h3 { margin-bottom: 9px; }
.scard__body p { color: var(--txt-2); font-size: .96rem; flex: 1; margin: 0; }
.scard__body .textlink { margin-top: 18px; align-self: flex-start; }
.scard__num {
  display: inline-block; margin-bottom: 12px;
  font: 600 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--st); background: rgba(var(--st-rgb), .10);
  padding: 6px 10px; border-radius: 999px; align-self: flex-start;
}

/* ------------------------------------------------------------ feature --- */
.feat { display: flex; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.section--bone2 .feat { background: #fff; }
.feat__ico {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border-radius: var(--r-sm); background: rgba(var(--st-rgb), .10); color: var(--st);
}
.feat__ico svg { width: 21px; height: 21px; }
.section--ink .feat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section--ink .feat__ico { background: rgba(232,160,32,.16); color: var(--am); }
.feat p { font-size: .95rem; color: var(--txt-2); margin: 0; }
.section--ink .feat p { color: rgba(255,255,255,.84); }

/* -------------------------------------------------------------- steps --- */
.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 78px 1fr; gap: clamp(14px, 3vw, 28px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.6vw, 30px); box-shadow: var(--shadow); align-items: start;
}
.section--bone2 .step { background: #fff; }
.step__n {
  font-family: var(--dis); font-size: 2.4rem; line-height: .85; color: var(--am);
  background: rgba(232,160,32,.12); border-radius: var(--r-sm);
  width: 66px; height: 66px; display: grid; place-items: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--txt-2); margin: 0; max-width: 68ch; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; } .step__n { width: 54px; height: 54px; font-size: 1.9rem; } }

/* --------------------------------------------------------------- list --- */
/* minmax(0,1fr) rather than a bare 1fr: an auto track sizes to its widest
   item's content and will push past the container on a narrow phone. */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: .99rem; color: var(--txt-2); min-width: 0; overflow-wrap: anywhere; }
.ticks li strong { color: var(--txt); }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: rgba(20,85,164,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231455A4' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.section--ink .ticks li { color: rgba(255,255,255,.88); }
.section--ink .ticks li strong { color: #fff; }
.ticks--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; }
@media (max-width: 700px) { .ticks--2 { grid-template-columns: minmax(0, 1fr); } }

/* -------------------------------------------------------------- quote --- */
.quote {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--am);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.quote p { font-family: var(--body); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 600; letter-spacing: -.015em; color: var(--txt); }
.quote cite { display: block; margin-top: 18px; font: 600 11px/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--st); font-style: normal; }

/* ---------------------------------------------------------------- CTA --- */
.cta { background: var(--ink-bg); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(820px 440px at 76% 22%, rgba(255,193,80,.34) 0%, transparent 62%),
    radial-gradient(700px 400px at 8% 92%, rgba(96,164,224,.62) 0%, transparent 62%);
}
.cta__in { position: relative; z-index: 2; padding-block: clamp(60px, 8vw, 104px); text-align: center; }
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta .lede { color: rgba(255,255,255,.9); max-width: 56ch; margin: 16px auto 0; }
.cta__phone {
  display: inline-block; margin-top: 28px;
  font-family: var(--dis); font-size: clamp(2.3rem, 5vw, 3.6rem);
  color: var(--am); text-decoration: none; letter-spacing: .01em;
}
.cta__phone:hover { color: #fff; }

/* --------------------------------------------------------------- form --- */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.4vw, 38px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 7px; font: 700 .82rem/1 var(--body); color: var(--txt); }
.field .req { color: var(--am); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  background: var(--bg-1); border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--body); font-size: 1rem; color: var(--txt);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field textarea { min-height: 142px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--am); background: #fff;
  box-shadow: 0 0 0 4px rgba(232,160,32,.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--txt-2); margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- faq --- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 56px 20px 22px;
  font: 700 1.04rem/1.4 var(--body); color: var(--txt);
  transition: color .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--st); }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 20px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(20,85,164,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231455A4' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .26s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 22px; color: var(--txt-2); max-width: 78ch; }

/* -------------------------------------------------------------- areas --- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.area-grid a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 5px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.area-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.area-grid strong { font-family: var(--dis); font-size: 1.62rem; font-weight: 400; text-transform: uppercase; color: var(--txt); line-height: 1; }
.area-grid span { font-size: .88rem; color: var(--txt-2); }

/* ------------------------------------------------------------- footer --- */
.site-footer { background: var(--ink-bg); color: rgba(255,255,255,.84); font-size: .94rem; }
.site-footer a { color: rgba(255,255,255,.84); text-decoration: none; transition: color .18s; }
.site-footer a:hover { color: var(--am); }
.footer__top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(52px, 6vw, 82px); }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 16px; max-width: 36ch; }
/* Footer column labels. Deliberately NOT heading tags — they're navigation
   labels, and as <h4> they broke the document's heading hierarchy on every page. */
.footer .foot-h { color: #fff; font: 600 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 15px; height: 15px; color: var(--am); flex: none; margin-top: 4px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.72);
}
.footer__bottom a { color: rgba(255,255,255,.72); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------------------------------------------------------- mobile bar -- */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 80; display: none; background: var(--ink-bg); border-top: 1px solid rgba(255,255,255,.14); }
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 10px; text-decoration: none; color: #fff;
  font: 800 .88rem/1 var(--body);
}
.callbar a + a { background: var(--am); color: var(--am-ink); }
.callbar svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .callbar { display: flex; } body { padding-bottom: 50px; } }

/* --------------------------------------------------------------- a11y --- */
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--txt); color: #fff; padding: 14px 20px; border-radius: 0 0 var(--r-sm) 0; text-decoration: none; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--am); outline-offset: 2px; border-radius: 3px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- reveal --- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Chat assistant (bottom corner). Markup is injected by js/chat.js.
   Same pattern as signaltransportation.ca, in Jassar's colours.
   ========================================================================== */
.chat {
  position: fixed; right: 20px; z-index: 120;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  bottom: 20px; bottom: max(20px, env(safe-area-inset-bottom));
  contain: layout;
}
.chat__fab {
  display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--st); color: #fff; font: 700 .96rem/1 var(--body);
  box-shadow: 0 10px 30px -10px rgba(var(--st-rgb), .75), 0 2px 8px rgba(10,34,51,.2);
  transition: transform .18s ease, background .18s ease;
}
.chat__fab:hover { background: var(--st-hi); transform: translateY(-2px); }
.chat__fab-ico { display: grid; place-items: center; width: 22px; height: 22px; }
.chat__fab-ico svg { width: 22px; height: 22px; }
.chat.is-open .chat__fab-txt { display: none; }
.chat.is-open .chat__fab { padding: 0; width: 52px; justify-content: center; }

.chat__panel[hidden] { display: none; }
.chat__panel {
  width: min(380px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 130px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -24px rgba(10,34,51,.45);
}
.chat__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.chat__avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--st); }
.chat__avatar svg { width: 26px; }
.chat__who b { display: block; font: 700 .97rem/1.2 var(--body); color: var(--txt); }
.chat__who span { display: flex; align-items: center; gap: 7px; font: 500 11px/1 var(--mono); letter-spacing: .05em; color: var(--txt-3); margin-top: 5px; }
.chat__who .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.chat__x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--txt-3); font-size: 22px; line-height: 1; cursor: pointer; }
.chat__x:hover { background: var(--bg-3); color: var(--txt); }

.chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.chat__row { display: flex; }
.chat__row--you { justify-content: flex-end; }
.chat__bubble {
  max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: .94rem; line-height: 1.5;
  background: var(--bg-1); color: var(--txt); border: 1px solid var(--line);
}
.chat__row--you .chat__bubble { background: var(--st); color: #fff; border-color: transparent; border-bottom-right-radius: 5px; }
.chat__row--bot .chat__bubble { border-bottom-left-radius: 5px; }
.chat__bubble a { color: var(--st); font-weight: 700; }
.chat__bubble strong { color: var(--txt); font-weight: 700; }
.chat__typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--txt-3); animation: chatdot 1.2s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: .16s; }
.chat__typing i:nth-child(3) { animation-delay: .32s; }
@keyframes chatdot { 0%,60%,100% { opacity:.25; transform: translateY(0); } 30% { opacity:1; transform: translateY(-3px); } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chat__chip {
  font: 600 .84rem/1 var(--body); padding: 9px 13px; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: var(--st); border: 1px solid var(--line-2); text-decoration: none;
  transition: background .15s, border-color .15s;
}
.chat__chip:hover { background: var(--bg-3); border-color: var(--st); }

.chat__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat__input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 13px; font: 400 .94rem var(--body);
  color: var(--txt); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 10px;
}
.chat__input:focus { border-color: var(--st); outline: none; box-shadow: 0 0 0 3px rgba(var(--st-rgb), .18); }
.chat__send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: var(--st); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat__send:hover { background: var(--st-hi); }
.chat__note { margin: 0; padding: 0 14px 12px; font-size: .76rem; color: var(--txt-3); }
.chat__note a { color: var(--txt-2); }

.chat__teaser {
  display: flex; align-items: flex-start; gap: 11px; position: relative;
  width: min(288px, calc(100vw - 40px)); padding: 13px 34px 13px 13px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 16px 40px -14px rgba(9,40,92,.4);
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,.61,.36,1);
}
.chat__teaser.is-up { opacity: 1; transform: none; }
.chat__teaser-ava { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--bg-1); border: 1px solid var(--line); color: var(--st); }
.chat__teaser-ava svg { width: 24px; }
.chat__teaser-txt b { display: block; font: 800 .88rem/1.2 var(--body); color: var(--txt); margin-bottom: 3px; }
.chat__teaser-txt span { display: block; font-size: .85rem; line-height: 1.4; color: var(--txt-2); }
.chat__teaser-x { position: absolute; top: 5px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--txt-3); font-size: 17px; line-height: 1; cursor: pointer; }
.chat__teaser-x:hover { background: var(--bg-3); color: var(--txt); }
.chat.is-open .chat__teaser { display: none; }

/* Sit above the sticky phone bar on small screens rather than behind it. */
@media (max-width: 760px) { .chat { bottom: calc(50px + max(14px, env(safe-area-inset-bottom))); right: 14px; } }
@media (max-width: 620px) { .chat__panel { max-height: calc(100dvh - 150px); } }
@media (prefers-reduced-motion: reduce) { .chat__teaser { transition: none; opacity: 1; transform: none; } }

/* -------------------------------------------------------------- print --- */
@media print {
  .topbar, .site-header, .callbar, .cta, .drawer { display: none !important; }
  body { background: #fff; color: #000; }
}
