/* ============================================================
   Service landing pages (/<slug>/index.html, generated by
   build_pages.py). Same tokens and components as index.html.
============================================================ */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat-VariableFont_wght.woff2') format('woff2-variations'),
       url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --smt-red: #BB0408;
  --smt-green: #01461A;
  --smt-black: #000000;
  --smt-green-bright: #2E9B54;
  --ink: #14161A;
  --muted: #2B2F33;
  --line: #E6E8EA;
  --bg-soft: #F6F7F8;
  --bg-panel: #EDEFF1;
  color-scheme: light only;
}
html { -webkit-text-size-adjust: 100%; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 30px; width: auto; }
.brand .divider { width: 1px; height: 30px; background: var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text span:first-child { font-weight: 700; font-size: 15px; letter-spacing: 0.01em; }
.brand-text span:last-child { font-size: 13px; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav > a, .nav-services > a { font-size: 15px; font-weight: 600; padding: 4px 0; transition: color 0.2s ease; }
.main-nav > a:hover, .nav-services > a:hover { color: var(--smt-red); }

.nav-services { position: relative; }
/* invisible bridge so the dropdown survives the cursor crossing the gap */
.nav-services::after { content: ""; position: absolute; top: 100%; left: -20px; right: -20px; height: 18px; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; z-index: 5;
  margin-top: 14px;
  display: grid; grid-template-columns: auto auto; gap: 4px 16px;
  padding: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-services:hover .nav-dropdown,
.nav-services:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dd-label {
  display: block; padding: 6px 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.nav-dropdown a {
  display: block; padding: 8px 10px; border-radius: 6px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-dropdown a:hover, .nav-dropdown a[aria-current="page"] { background: var(--bg-soft); color: var(--smt-red); }

.call-btn {
  background: var(--smt-green); color: #fff; padding: 11px 20px; border-radius: 6px;
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.burger { display: none; }

/* ---------- Hero ---------- */
.svc-hero { background: var(--smt-black); color: #fff; padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.crumbs { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.cat-badge {
  display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 4px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.cat-badge.env { background: var(--smt-green); }
.cat-badge.freight { background: var(--smt-red); }
.svc-hero h1 { font-size: 44px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.lead { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 560px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 6px; font-weight: 700; font-size: 15px;
}
.btn-primary { background: var(--smt-red); color: #fff; }
.btn-outline { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn-call { background: var(--smt-green); color: #fff; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255,255,255,0.8); }
.hero-points li::before { content: "✓"; color: var(--smt-green-bright); font-weight: 800; margin-right: 8px; }
.hero-img { border-radius: 12px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.hero-img img { width: 100%; }

/* ---------- Content ---------- */
.content { padding: 64px 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prose h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 44px 0 14px; }
.prose > h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.prose a { color: var(--smt-red); font-weight: 700; }
.prose ul, .prose ol { list-style: none; margin-bottom: 16px; }
.prose li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--muted); }
.prose ul li::before {
  content: ""; position: absolute; left: 6px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--smt-red);
}
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; padding-left: 42px; min-height: 28px; padding-top: 2px; }
.prose ol li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--smt-green); color: #fff; font-weight: 800; font-size: 13px;
}
.prose .areas { display: flex; flex-wrap: wrap; gap: 8px; }
.prose .areas li {
  margin: 0; padding: 6px 12px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.prose .areas li::before { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 18px; }
.stats div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 16px 10px; text-align: center; }
.stats .num { font-size: 24px; font-weight: 800; color: var(--smt-red); line-height: 1.3; }
.stats .label { font-size: 12px; color: var(--muted); }

.faq details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 16px 50px 16px 18px; font-weight: 700; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 600; color: var(--smt-red);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; }

/* ---------- Sidebar ---------- */
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.side-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.quote-card { background: var(--bg-soft); }
.side-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.side-card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.side-card .btn { width: 100%; margin-bottom: 10px; }
.side-card .btn:last-child { margin-bottom: 0; }
.side-links { list-style: none; }
.side-links a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.side-links li:last-child a { border-bottom: none; }
.side-links a:hover { color: var(--smt-red); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--smt-green); color: #fff; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding-top: 40px; padding-bottom: 40px;
}
.cta-band h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.cta-band p { font-size: 14px; color: rgba(255,255,255,0.92); }
.cta-call { background: #fff; color: var(--smt-red); padding: 13px 22px; border-radius: 6px; font-weight: 800; font-size: 14px; }

/* ---------- Footer ---------- */
footer { background: var(--bg-panel); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 24px 40px; max-width: 1180px; margin: 0 auto; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.foot-name { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: var(--ink) !important; }
.foot-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--ink) !important; }
.foot-title::after { content: ""; display: block; width: 30px; height: 2px; background: var(--smt-red); margin-top: 8px; }
footer p, footer li { color: var(--muted); font-size: 14px; line-height: 2; }
footer ul { list-style: none; }
footer a:hover { color: var(--smt-red); }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; margin-bottom: 10px; }
.foot-social { display: flex; gap: 10px; margin-top: 18px; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.06); color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease;
}
.foot-social a:hover { background: var(--smt-red); color: #fff; }
.foot-social svg { width: 16px; height: 16px; fill: currentColor; }
.foot-bottom { border-top: 1px solid var(--line); text-align: center; padding: 20px; font-size: 13px; color: var(--muted); }

/* ---------- Sticky contact bar (phones) ---------- */
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .site-header { padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); }
  .brand img { height: 26px; }
  .brand .divider, .call-btn { display: none; }
  .brand-text span:first-child { font-size: 12px; letter-spacing: 0; }
  .brand-text span:last-child { font-size: 9px; letter-spacing: 0.1em; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; flex-shrink: 0;
    background: none; border: none; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 64px); overflow-y: auto;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-services > a {
    display: block; padding: 14px 22px; min-height: 48px;
    border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700;
  }
  .nav-services::after { display: none; }
  .nav-dropdown {
    position: static; margin: 0; padding: 4px 0 8px;
    grid-template-columns: 1fr; gap: 0;
    background: var(--bg-soft); border: none; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .dd-label { padding: 12px 22px 4px; }
  .nav-dropdown a { padding: 11px 22px 11px 34px; font-size: 15px; min-height: 44px; }

  .svc-hero { padding: 36px 0 40px; }
  .hero-grid, .content-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 28px; }
  .svc-hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .lead { font-size: 16px; }
  .content { padding: 44px 0; }
  .content-grid { gap: 36px; }
  .prose h2 { font-size: clamp(20px, 6vw, 24px); margin-top: 36px; }
  .side { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { gap: 26px; }
  .wrap, .foot-grid { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center;
    min-height: 46px; border-radius: 8px;
    font-weight: 800; font-size: 14px; color: #fff;
  }
  .mb-call { background: var(--smt-green); }
  .mb-wa { background: #25D366; }
  .mb-quote { background: var(--smt-red); }
  footer { padding-bottom: 76px; }
}
