/* ==========================================================================
   WSS Junk Removal — global styles
   Concept: "Great white". White Shark Solutions' own name sets the palette:
   a great white is slate on top and white underneath, so the site is
   mostly white with slate bands, cut by fin-sharp angles. The brand orange
   is used like hi-vis safety gear: for actions, the trucks and the routes,
   never as decoration.
   ========================================================================== */

/* --- Font: Archivo (variable weight + width), self-hosted, OFL licence ---- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-var.woff2') format('woff2-variations'),
       url('../fonts/archivo-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ---------------------------------------------------------------- */
:root {
  /* Great-white palette */
  --slate-950: #121B23;   /* deepest dorsal slate: footer, utility bar */
  --slate-900: #17222C;   /* body text, dark bands */
  --slate-800: #22303C;
  --slate-700: #34495A;
  --slate-500: #5B7183;   /* secondary text on white (5.0:1) */
  --slate-300: #A9B8C4;
  --slate-200: #CFD9E1;
  --slate-100: #E6ECF1;
  --mist: #F2F5F8;        /* alternating light band */
  --white: #FFFFFF;

  --orange: #F65C02;      /* WSS brand orange: buttons (dark text), trucks, routes */
  --orange-soft: #FFE6D6;
  --ember: #B83F00;       /* orange for text on white (5.6:1) */
  --water: #DDE8EF;

  /* Semantic */
  --text: var(--slate-900);
  --text-muted: var(--slate-500);
  --line: var(--slate-200);
  --focus: #F65C02;

  /* Type */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wide: 118%;           /* fleet-lettering width for display type */
  --fs-hero: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);
  --fs-h2: clamp(1.85rem, 1.25rem + 2.3vw, 3rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --fin: 9vw;             /* horizontal size of the fin-angle cuts */

  --shadow-card: 0 1px 2px rgba(18, 27, 35, .06), 0 18px 40px -18px rgba(18, 27, 35, .35);
  --shadow-float: 0 2px 6px rgba(18, 27, 35, .08), 0 34px 70px -28px rgba(18, 27, 35, .5);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* --- Reset + base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--slate-900); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
address { font-style: normal; }
html:not(.js) .js-only { display: none !important; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-stretch: var(--wide);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--slate-900);
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 750; line-height: 1.2; }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--slate-900); color: var(--white); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--slate-900);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.4em;
  font-family: var(--font); font-size: 1rem; font-weight: 750; font-stretch: 108%;
  line-height: 1.1; letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-bg); border-radius: var(--r-sm);
  transition: transform .18s var(--ease-out), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(18,27,35,.55); }
.btn:active { transform: translateY(0); }
/* Orange with slate text: 4.8:1, the look of hi-vis gear */
.btn-primary { --btn-bg: var(--orange); --btn-fg: var(--slate-950); }
.btn-primary:hover { --btn-bg: #FF6E1A; }
.btn-dark { --btn-bg: var(--slate-900); --btn-fg: var(--white); }
.btn-dark:hover { --btn-bg: var(--slate-800); }
.btn-outline { --btn-fg: var(--slate-900); background: transparent; border-color: var(--slate-900); }
.btn-outline:hover { background: var(--slate-900); color: var(--white); }
.btn-outline-light { --btn-fg: var(--white); background: transparent; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: var(--white); color: var(--slate-900); border-color: var(--white); }
.btn-lg { min-height: 56px; padding: .95em 1.7em; font-size: 1.06rem; }
.btn-sm { min-height: 40px; padding: .55em 1em; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }
/* legacy names still used by a few templates */
.btn-secondary { --btn-fg: var(--slate-900); background: transparent; border-color: var(--slate-900); }
.btn-secondary:hover { background: var(--slate-900); color: var(--white); }

.text-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 750; font-stretch: 108%; color: var(--slate-900);
  text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.text-link i { transition: transform .2s var(--ease-out); color: var(--ember); }
.text-link:hover { color: var(--ember); }
.text-link:hover i { transform: translateX(4px); }

/* --- Utility bar ------------------------------------------------------------- */
.utility-bar { background: var(--slate-950); color: var(--slate-200); font-size: .875rem; }
.utility-inner { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.utility-item { display: inline-flex; align-items: center; gap: 8px; }
.utility-item i { color: var(--orange); font-size: .8rem; }
.utility-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.utility-bar a { color: var(--white); text-decoration: none; font-weight: 600; }
.utility-bar a:hover { color: var(--orange); }
.utility-bar .lang-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
}
@media (max-width: 860px) { .utility-hide-sm { display: none !important; } }
@media (max-width: 520px) { .utility-inner { gap: 12px; font-size: .8rem; } }

/* --- Header ---------------------------------------------------------------- */
.site-header-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header-wrap.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(18,27,35,.55); }
.site-header { display: flex; align-items: center; gap: 28px; min-height: 84px; transition: min-height .25s var(--ease-out); }
.site-header-wrap.is-scrolled .site-header { min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo { width: auto; height: 56px; transition: height .25s var(--ease-out); }
.site-header-wrap.is-scrolled .site-logo { height: 46px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  position: relative; display: inline-block; padding: 10px 14px;
  font-weight: 650; font-stretch: 106%; color: var(--slate-900); text-decoration: none;
}
.nav-list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-mobile-only { display: none; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: inline-flex; flex-direction: column; line-height: 1.15;
  color: var(--slate-900); text-decoration: none;
}
.header-phone-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.header-phone-number { font-weight: 800; font-stretch: 110%; font-size: 1.02rem; }
.header-phone:hover .header-phone-number { color: var(--ember); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  border: 2px solid var(--slate-200);
}
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: var(--slate-900); border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .site-header { min-height: 72px; gap: 12px; }
  .site-logo { height: 46px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(18,27,35,.5);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .main-nav.active { display: block; animation: nav-drop .25s var(--ease-out); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--slate-100); }
  .nav-list a::after { left: 4px; right: auto; width: 40px; bottom: 8px; }
  .nav-mobile-only { display: block; }
  .nav-mobile-only .btn { margin-top: 16px; width: 100%; }
  .nav-mobile-only a.btn { border-bottom: 0; padding: .8em 1.4em; font-size: 1rem; }
  .nav-mobile-only a.btn::after { display: none; }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --- Services mega menu ---------------------------------------------------- */
.has-mega { position: relative; display: flex; align-items: center; }
.mega-toggle {
  width: 28px; height: 32px; margin-left: -2px; border-radius: 6px; display: grid; place-items: center;
  color: var(--slate-700); font-size: .7rem; transition: transform .25s var(--ease-out), background-color .2s;
}
.mega-toggle:hover { background: var(--slate-100); }
.has-mega.is-open .mega-toggle { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 120;
  width: min(820px, calc(100vw - 48px)); display: grid; grid-template-columns: 1fr 250px; gap: 8px;
  padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translate(-46%, 8px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.mega::before { /* hover bridge between the link and the panel */
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}
.has-mega.is-open .mega,
.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translate(-46%, 0); transition-delay: 0s; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-link {
  display: flex !important; align-items: center; gap: 14px; padding: 12px !important; border-radius: var(--r-md);
  color: var(--slate-900); text-decoration: none; transition: background-color .2s;
}
.mega-link::after { display: none !important; }
.mega-link:hover { background: var(--mist); }
.mega-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--slate-900); color: var(--orange); font-size: .95rem; transition: background-color .2s, color .2s; }
.mega-link:hover .mega-icon { background: var(--orange); color: var(--slate-950); }
.mega-title { display: block; font-weight: 750; font-stretch: 106%; font-size: .98rem; line-height: 1.2; }
.mega-sub { display: block; margin-top: 3px; font-size: .84rem; font-weight: 500; color: var(--text-muted); line-height: 1.3; }
.mega-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: var(--r-md); background: var(--slate-900); color: var(--slate-300); font-size: .9rem; }
.mega-card-title { color: var(--white); font-weight: 800; font-stretch: 110%; font-size: 1.05rem; line-height: 1.2; }
.mega-card .btn { margin-top: 4px; }
.mega-all { display: inline-flex !important; gap: 8px; align-items: center; margin-top: auto; padding: 6px 0 !important; color: var(--white) !important; font-weight: 700; font-size: .9rem; text-decoration: none; }
.mega-all::after { display: none !important; }
.mega-all:hover { color: var(--orange) !important; }

@media (max-width: 900px) {
  .has-mega { flex-wrap: wrap; }
  .has-mega > a { flex: 1; }
  .mega-toggle { width: 48px; height: 48px; margin: 0; border: 1px solid var(--slate-200); font-size: .8rem; }
  .mega {
    position: static; width: 100%; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 12px;
    display: none; grid-template-columns: minmax(0, 1fr); opacity: 1; visibility: visible; transition: none;
  }
  .has-mega:hover .mega, .has-mega.is-open .mega { transform: none; }
  .mega::before { display: none; }
  .has-mega.is-open .mega { display: grid; }
  .mega-grid { grid-template-columns: minmax(0, 1fr); }
  .mega-link { border-bottom: 0 !important; padding: 10px 4px !important; }
  .mega-card { display: none; }
}

/* --- Mobile quick actions -------------------------------------------------- */
.mobile-actions { display: none; }
@media (max-width: 760px) {
  .mobile-actions {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 27, 35, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .3s var(--ease-out);
  }
  .mobile-actions.is-shown { transform: none; }
  .mobile-actions a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r-sm);
    font-weight: 800; font-stretch: 104%; font-size: .98rem; white-space: nowrap; text-decoration: none;
  }
  .ma-call { background: transparent; color: var(--white) !important; border: 2px solid rgba(255,255,255,.55); }
  .ma-quote { background: var(--orange); color: var(--slate-950) !important; }
  .site-footer { padding-bottom: 76px; }
}

/* --- Section scaffolding ---------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.bg-mist { background: var(--mist); }
.bg-slate { background: var(--slate-900); color: var(--slate-100); }
.bg-slate h2, .bg-slate h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 18px; font-size: var(--fs-lead); color: var(--text-muted); max-width: 62ch; }
.bg-slate .section-head p { color: var(--slate-300); }

/* Fin-angle cut on the top edge of a band (the brand's one geometric motif) */
.fin-top { clip-path: polygon(0 var(--fin-h, 56px), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--fin-h, 56px) * -1); padding-top: calc(clamp(64px, 9vw, 120px) + var(--fin-h, 56px)); }

/* wake lines drift: tile size is an exact multiple of the 26px stripe period at 115deg, so the loop is seamless */
@keyframes wake { from { background-position: 0 0, 0 0; } to { background-position: -573.76px 0, 0 0; } }

/* --- Interior page hero (about, services, blog, legal...) ------------------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--mist);
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  isolation: isolate;
}
.page-hero::after {
  /* the fin: a slate wedge on the right with an orange leading edge */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 34%;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.04) 0 2px, transparent 2px 26px),
    var(--slate-900);
  background-size: 573.76px 615.2px, auto;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: none;
}
.page-hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: calc(34% + 12px);
  background: var(--orange);
  clip-path: polygon(calc((100% - 12px) * .38) 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 900px) { .page-hero::before { width: calc(22% + 10px); } }
@media (max-width: 600px) { .page-hero::before { display: none; } }
.page-hero .container { position: relative; }
.page-hero-inner { max-width: 780px; }
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); }
.page-hero .lead { margin-top: 20px; font-size: var(--fs-lead); color: var(--slate-700); max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: .9rem; color: var(--text-muted); }
.crumbs a { color: var(--slate-700); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--ember); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--slate-300); }
@media (max-width: 900px) {
  .page-hero::after { width: 22%; opacity: .95; }
}
@media (max-width: 600px) {
  .page-hero::after { display: none; }
  .page-hero { border-bottom: 6px solid var(--orange); }
}

/* --- Scroll reveal (only when JS is running; content is visible without it) - */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--slate-950); color: var(--slate-300); position: relative; overflow: hidden; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-top { padding: clamp(56px, 8vw, 96px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1fr 1.15fr; gap: 32px; }
.footer-brand p { max-width: 40ch; margin-top: 16px; }
.footer-wordmark {
  font-weight: 900; font-stretch: 125%; font-size: 1.55rem; line-height: 1; color: var(--white);
  letter-spacing: -0.01em;
}
.footer-wordmark span { display: block; color: var(--orange); font-size: .95rem; font-stretch: 110%; letter-spacing: 0; margin-top: 8px; font-weight: 700; }
.footer-title { color: var(--white); font-weight: 750; font-stretch: 110%; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul li + li { margin-top: 10px; }
.footer-col p + p, .footer-col p + address { margin-top: 12px; }
.footer-col strong { display: block; color: var(--slate-300); font-weight: 600; font-size: .85rem; }
.footer-col a[href^="tel:"] { white-space: nowrap; }
.footer-phone { display: inline-block; margin-top: 20px; font-size: 1.6rem; font-weight: 850; font-stretch: 118%; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: .88rem; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- CTA band (home, about, services) ------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; background: var(--orange); color: var(--slate-950);
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-band::before {
  /* reflective tape along the top edge, like the back of a truck */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(-45deg, var(--slate-950) 0 14px, #fff 14px 28px);
}
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.cta-copy h2 { color: var(--slate-950); font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.cta-copy p { margin-top: 14px; font-size: var(--fs-lead); max-width: 46ch; color: var(--slate-900); }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-phone { display: flex; flex-direction: column; color: var(--slate-950); text-decoration: none; }
.cta-phone-label { font-weight: 700; font-size: .95rem; }
.cta-phone-number { font-weight: 900; font-stretch: 125%; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); line-height: 1; letter-spacing: -0.02em; }
.cta-phone:hover .cta-phone-number { color: var(--white); }

@media (max-width: 760px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* --- Shared bits ------------------------------------------------------------ */
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--slate-200);
  font-size: .9rem; font-weight: 650; color: var(--slate-800);
}
.status-dot { position: relative; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: #1FA463; }
.status-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #1FA463;
  animation: ping 2.2s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }


/* --- Live "open now" status (posted hours, Montréal time; set by script.js) -- */
.live-dot { position: relative; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--slate-500); }
.is-open .live-dot { background: #2BD07F; }
.is-open .live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #2BD07F;
  animation: ping 2.2s var(--ease-out) infinite;
}
.utility-item.is-live strong { color: var(--white); font-weight: 700; }
.open-badge {
  display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: .72rem; font-weight: 750; letter-spacing: .02em; text-transform: none;
  background: rgba(255,255,255,.08); color: var(--slate-200);
}
.open-badge.is-open { background: rgba(43,208,127,.16); color: #8BEBBB; }

/* --- Page-to-page transitions (Chrome, Edge, Safari 18.2+; others just navigate) */
@view-transition { navigation: auto; }
.site-header-wrap { view-transition-name: site-header; }
.utility-bar { view-transition-name: utility-bar; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .34s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* --- Back to top (added by script.js) --------------------------------------- */
.to-top {
  position: fixed; z-index: 85; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--slate-900); color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(18,27,35,.55);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s, background-color .2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--slate-800); }
.to-top i { font-size: .95rem; transition: transform .25s var(--ease-out); }
.to-top:hover i { transform: translateY(-2px); }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring-track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 3; }
.to-top .ring { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 144.5; stroke-dashoffset: calc(144.5 * (1 - var(--p, 0))); }
@media (max-width: 760px) {
  .to-top { right: 12px; bottom: 80px; width: 46px; height: 46px; }
}
@media print { .to-top, .mobile-actions { display: none !important; } }

/* --- Pointer light on dark panels (added by script.js on hover devices) ----- */
.spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(246,92,2,.16), transparent 62%);
  opacity: 0; transition: opacity .35s;
}
[data-spot] { isolation: isolate; }
[data-spot] > .spot { z-index: -1; }
[data-spot-on] > .spot { opacity: 1; }

/* --- Finder: area finder (homepage map) and blog search; set up by script.js */
.finder { margin-top: 28px; max-width: 460px; }
.finder-label { display: block; margin-bottom: 10px; font-weight: 750; font-stretch: 110%; color: var(--white); }
.finder-field { position: relative; }
.finder-field i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--orange); pointer-events: none; }
.finder-field input {
  width: 100%; min-height: 54px; padding: 0 18px 0 46px; border-radius: var(--r-md);
  border: 2px solid transparent; background: var(--white); color: var(--slate-950);
  font: inherit; font-weight: 600; font-size: 1.02rem;
}
.finder-field input::placeholder { color: var(--slate-500); font-weight: 500; }
.finder-field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,92,2,.3); }
.finder-results:empty { display: none; }
.finder-results { margin-top: 10px; padding: 6px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-float); }
.finder-results a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--slate-900); text-decoration: none; font-weight: 700;
}
.finder-results a:hover { background: var(--mist); }
.finder-results a:focus-visible { background: var(--mist); outline: 3px solid var(--orange); outline-offset: -3px; }
.fr-pin { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--slate-900); color: var(--orange); font-size: .8rem; }
.fr-text { display: flex; flex-direction: column; min-width: 0; }
.fr-title { line-height: 1.25; }
.fr-sub { margin-top: 2px; font-size: .82rem; font-weight: 600; color: var(--slate-500); }
.fr-go { margin-left: auto; padding-left: 8px; color: var(--slate-500); font-size: .8rem; }
.finder-results mark { background: var(--orange-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.finder-empty { padding: 12px; color: var(--slate-700); font-size: .95rem; }
.finder-empty a { color: var(--ember); font-weight: 700; }
.blog-search { position: relative; z-index: 30; margin-top: 26px; max-width: 560px; }
.blog-search .finder-field input { border-color: var(--slate-200); box-shadow: var(--shadow-card); }
.blog-search .finder-field input:focus { border-color: var(--orange); }
.blog-search .finder-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; max-height: min(60vh, 460px); overflow: auto; }
.page-blog .page-hero { overflow: visible; z-index: 5; }

/* --- 404 + thank-you ------------------------------------------------------ */
[id] { scroll-margin-top: 120px; }
.error-page, .thankyou-page { background: var(--mist); }
.error-inner, .thankyou-inner { max-width: 760px; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(72px, 10vw, 128px); text-align: center; }
.error-visual { position: relative; display: inline-block; }
.error-code { display: block; font-weight: 900; font-stretch: 125%; font-size: clamp(5.5rem, 3rem + 12vw, 11rem); line-height: .9; color: transparent; -webkit-text-stroke: 3px var(--slate-900); letter-spacing: -0.04em; }
.error-truck { position: absolute; left: 50%; bottom: -6px; width: 96px; transform: translateX(-50%); animation: lost 6s ease-in-out infinite; }
.error-truck .minitruck { width: 96px; height: auto; }
@keyframes lost { 0%, 100% { transform: translateX(-140%); } 50% { transform: translateX(40%); } }
.error-inner h1, .thankyou-inner h1 { margin-top: 34px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.error-inner p, .thankyou-inner p { margin: 16px auto 0; max-width: 56ch; font-size: var(--fs-lead); color: var(--slate-700); }
.error-actions, .thankyou-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.error-search { margin: 30px auto 0; text-align: left; }
.error-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; text-align: left; }
.error-link {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line); color: var(--slate-900); text-decoration: none;
  transition: border-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.error-link:hover { border-color: var(--slate-900); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.el-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--slate-900); color: var(--orange); }
.el-title { display: block; font-weight: 800; font-stretch: 106%; }
.el-sub { display: block; margin-top: 2px; font-size: .88rem; color: var(--slate-500); }
@media (max-width: 560px) { .error-links ul { grid-template-columns: minmax(0, 1fr); } }
.thankyou-icon { width: 88px; height: 88px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--slate-950); font-size: 2.2rem; box-shadow: 0 0 0 10px var(--orange-soft); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 400px) { .mobile-actions a i { display: none; } }

/* contact page: the form is right there, so the quick bar only offers the call */
.page-contact .mobile-actions { grid-template-columns: minmax(0, 1fr); }
.page-contact .mobile-actions .ma-quote { display: none; }

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .page-hero::after { animation: wake 40s linear infinite; }
}

/* --- Thank-you: animated check + what happens next ------------------------- */
.thankyou-icon svg { width: 52px; height: 52px; }
.ty-check { stroke-dasharray: 48; stroke-dashoffset: 0; }
.js .ty-check { stroke-dashoffset: 48; animation: ty-draw .6s .25s var(--ease-out) forwards; }
.js .thankyou-icon { animation: ty-pop .5s var(--ease-out) both; }
@keyframes ty-draw { to { stroke-dashoffset: 0; } }
@keyframes ty-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ty-next { margin: 36px auto 8px; max-width: 560px; text-align: left; padding: 24px 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.ty-next h2 { font-size: 1.2rem; font-stretch: 112%; }
.ty-steps { position: relative; margin-top: 16px; display: grid; gap: 18px; }
.ty-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--slate-200); }
.ty-step { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.ty-dot { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: .9rem; background: var(--white); border: 2px solid var(--slate-200); color: var(--slate-500); }
.ty-step.is-done .ty-dot { background: var(--slate-900); border-color: var(--slate-900); color: var(--orange); font-size: .8rem; }
.ty-step.is-now .ty-dot { background: var(--orange); border-color: var(--orange); color: var(--slate-950); }
.ty-step.is-now .ty-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2.2s var(--ease-out) infinite; }
.ty-text { padding-top: 6px; color: var(--slate-700); font-size: .98rem; line-height: 1.5; }
.ty-text strong { display: block; color: var(--slate-950); font-weight: 800; }
.thankyou-inner p.ty-more { font-size: .98rem; }
.ty-phone { font-weight: 800; color: var(--slate-950); white-space: nowrap; }
.ty-more a { font-weight: 750; color: var(--slate-950); }
.thankyou-inner p.ty-photos { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); max-width: none; font-size: .92rem; color: var(--slate-700); }
.ty-photos i { color: var(--ember); margin-right: 4px; }
.ty-photos a { color: var(--slate-950); font-weight: 750; }

/* --- Angled top edge on dark bands; an orange line draws along it ----------- */
.has-fin-edge {
  --edge: 56px;
  clip-path: polygon(0 var(--edge), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--edge));
  padding-top: calc(clamp(64px, 9vw, 120px) + var(--edge) * .6);
}
.fin-edge { position: absolute; left: 0; right: 0; top: 0; height: var(--edge); pointer-events: none; }
.fin-edge::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom right, transparent 50%, var(--orange) 50%, var(--orange) calc(50% + 4px), transparent calc(50% + 4px));
}
/* the box itself stays unclipped so the scroll observer can see it; only the line is wiped in */
.js .fin-edge[data-reveal] { opacity: 1; transform: none; }
.js .fin-edge[data-reveal]::before { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease-out) .15s; }
.js .fin-edge[data-reveal].is-in::before { clip-path: inset(0); }
@media (max-width: 760px) { .has-fin-edge { --edge: 28px; } }

/* --- On-this-page links (interior heroes) ----------------------------------- */
.jump-nav { margin-top: 26px; }
.jump-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--slate-200); color: var(--slate-800);
  font-weight: 650; font-size: .9rem; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s;
}
.jump-nav a:hover { border-color: var(--slate-900); color: var(--slate-950); }
.jump-nav a::after { content: "\f063"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: .7rem; margin-left: 8px; color: var(--orange); }

/* --- "This page is also in English / français" suggestion (script.js) ------- */
.lang-toast {
  position: fixed; z-index: 95; left: 20px; bottom: 20px; width: min(380px, calc(100vw - 40px));
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px 14px 14px 16px; border-radius: var(--r-md); background: var(--white); color: var(--slate-800);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  transform: translateY(16px); opacity: 0; transition: transform .4s var(--ease-out), opacity .3s;
}
.lang-toast.is-shown { transform: none; opacity: 1; }
.lt-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-900); color: var(--orange); }
.lt-text { font-size: .9rem; line-height: 1.35; }
.lt-text a { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 0; color: var(--slate-950); font-weight: 800; }
.lt-close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--slate-500); }
.lt-close:hover { background: var(--mist); color: var(--slate-950); }
@media (max-width: 760px) { .lang-toast { left: 12px; bottom: 136px; width: calc(100vw - 24px); } }
@media print { .lang-toast { display: none !important; } }
/* the header shows the phone number from 1081 px up; the utility bar covers the in-between widths */
.utility-phone i { color: var(--orange); font-size: .78rem; margin-right: 4px; }
@media (min-width: 1081px) { .utility-phone { display: none !important; } }
