/* Dallas Tow Truck hazard-chevron design system
   Low polish, high credibility. Phone-first, mobile-first.
   Tokens and rationale in builds/towtruckdallastx/design-direction.md */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  --asphalt: #14161A;
  --steel: #23272E;
  --steel-2: #2D323B;
  --hivis: #FFB100;
  --hivis-d: #E69E00;
  --signal: #E0121E;
  --signal-d: #B50D17;
  --paper: #F4F1EA;
  --paper-2: #ECE7DC;
  --ink: #15171B;
  --muted: #5C636E;
  --line: #DAD4C7;
  --maxw: 1140px;
  --disp: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;

  /* hazard chevron stripe used as a reusable background */
  --chevron: repeating-linear-gradient(135deg,
      var(--hivis) 0 22px, var(--asphalt) 22px 44px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, .disp {
  font-family: var(--disp);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1.04;
  color: var(--asphalt);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .35em; }
h3 { font-size: 1.45rem; letter-spacing: .4px; }
p { margin-bottom: 1rem; font-size: 1.05rem; }

.eyebrow {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; font-size: .9rem; color: var(--hivis-d);
}

/* chevron divider strip */
.chev { height: 14px; background: var(--chevron); }
.chev-sm { height: 8px; background: var(--chevron); }

/* ---------- Top utility bar ---------- */
.utilbar {
  background: var(--asphalt); color: #E8EAED;
  font-family: var(--disp); letter-spacing: 1px; text-transform: uppercase;
  font-size: .82rem; text-align: center; padding: 7px 14px;
}
.utilbar b { color: var(--hivis); }
.beacon {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--hivis); margin-right: 7px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(255,177,0,.7); animation: beacon 1.4s infinite;
}
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(255,177,0,.6); }
  70% { box-shadow: 0 0 0 9px rgba(255,177,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,177,0,0); }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper); border-bottom: 2px solid var(--asphalt);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 22px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 44px; height: 44px; flex: none; border-radius: 5px;
  background: var(--asphalt); display: grid; place-items: center;
  border-bottom: 4px solid var(--hivis);
}
.brand .logo svg { width: 28px; height: 28px; }
.brand .name { font-family: var(--disp); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; line-height: .95; color: var(--asphalt); letter-spacing: .5px; }
.brand .name small { display: block; font-family: var(--body); font-weight: 600; font-size: .6rem; letter-spacing: 2.5px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-family: var(--disp); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; color: var(--asphalt); font-size: 1.02rem; }
.nav-links a:hover { color: var(--signal); text-decoration: none; }

.has-sub { position: relative; }
.submenu { display: none; position: absolute; top: 100%; left: 0; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: 0 0 6px 6px; min-width: 210px; padding: 6px 0; box-shadow: 0 12px 28px rgba(0,0,0,.12); z-index: 60; }
.submenu a { display: block; padding: 9px 16px; font-size: .95rem; letter-spacing: .6px; }
.submenu a:hover { background: var(--paper-2); color: var(--signal); }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }

.nav-call {
  background: var(--signal); color: #fff !important; padding: 10px 18px; border-radius: 5px;
  letter-spacing: .5px; display: inline-flex; align-items: center; gap: 8px;
}
.nav-call:hover { background: var(--signal-d); text-decoration: none; }
.nav-call svg { width: 18px; height: 18px; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle svg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  font-family: var(--disp); text-transform: uppercase; letter-spacing: 1px;
  background: var(--signal); color: #fff; font-weight: 700; font-size: 1.3rem;
  padding: 15px 30px; border-radius: 6px; border: 0; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.btn svg { width: 22px; height: 22px; }
.btn:hover { background: var(--signal-d); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-amber { background: var(--hivis); color: var(--asphalt); }
.btn-amber:hover { background: var(--hivis-d); color: var(--asphalt); }
.btn-outline { background: transparent; color: var(--asphalt); border: 2px solid var(--asphalt); }
.btn-outline:hover { background: var(--asphalt); color: #fff; }
.bg-asphalt .btn-outline { color: #fff; border-color: #fff; }
.bg-asphalt .btn-outline:hover { background: #fff; color: var(--asphalt); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(rgba(18,20,24,.80), rgba(18,20,24,.90)), var(--asphalt) url('/images/hero.jpg') center/cover; color: #EDEFF2; position: relative; overflow: hidden; }
.hero .chev-edge { position: absolute; top: 0; left: 0; right: 0; height: 14px; background: var(--chevron); }
.hero .wrap { padding: 64px 22px 58px; position: relative; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--hivis); }
.hero .lead { font-size: 1.25rem; color: #C3C8D0; max-width: 46ch; margin: 16px 0 26px; }

/* the phone IS the hero */
.phone-block { display: inline-flex; flex-direction: column; gap: 4px; }
.phone-cta {
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--signal); color: #fff; border-radius: 9px;
  padding: 16px 28px; border-bottom: 5px solid var(--signal-d);
  transition: transform .1s ease, background .15s ease;
}
.phone-cta:hover { background: var(--signal-d); text-decoration: none; color: #fff; transform: translateY(-2px); }
.phone-cta .ring { width: 50px; height: 50px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.16); border-radius: 50%; }
.phone-cta .ring svg { width: 26px; height: 26px; }
.phone-cta .txt small { display: block; font-family: var(--disp); letter-spacing: 2px; text-transform: uppercase; font-size: .72rem; opacity: .85; }
.phone-cta .num { font-family: var(--disp); font-weight: 700; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1; letter-spacing: 1px; }

.creds { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; list-style: none; }
.creds li { font-family: var(--disp); text-transform: uppercase; letter-spacing: 1px; font-size: .92rem; color: #C3C8D0; display: flex; align-items: center; gap: 8px; }
.creds svg { width: 17px; height: 17px; color: var(--hivis); }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
.bg-asphalt { background: var(--asphalt); color: #DDE0E5; }
.bg-asphalt h2, .bg-asphalt h3 { color: #fff; }
.bg-paper2 { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.bg-asphalt .section-head p { color: #A9B0BA; }

/* ---------- Duty / service cards ---------- */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.svc {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 24px; position: relative; border-top: 4px solid var(--asphalt);
  transition: border-top-color .15s ease, transform .1s ease;
}
.svc:hover { border-top-color: var(--hivis); transform: translateY(-3px); }
.svc .ic { width: 46px; height: 46px; color: var(--asphalt); margin-bottom: 14px; }
.svc h3 { margin-bottom: 7px; }
.svc p { color: var(--muted); font-size: 1rem; margin-bottom: 14px; }
.svc .call-link { font-family: var(--disp); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--signal); display: inline-flex; align-items: center; gap: 7px; }
.svc .call-link svg { width: 16px; height: 16px; }

/* duty tier badge */
.tier { display: inline-block; font-family: var(--disp); font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; background: var(--hivis); color: var(--asphalt); padding: 3px 9px; border-radius: 3px; margin-bottom: 12px; }

/* ---------- Process (real sequence, numbered legitimately) ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background:#fff; }
.step { padding: 28px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--disp); font-weight: 700; font-size: 2.6rem; color: var(--hivis); line-height: 1; }
.step h3 { margin: 6px 0 6px; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; text-align: center; }
.stats .v { font-family: var(--disp); font-weight: 700; font-size: 2.7rem; color: var(--hivis); line-height: 1; }
.stats .k { font-family: var(--disp); text-transform: uppercase; letter-spacing: 1.5px; font-size: .85rem; color: #A9B0BA; margin-top: 6px; }

/* ---------- Checklist ---------- */
.checks { list-style: none; }
.checks li { padding: 9px 0 9px 34px; position: relative; font-size: 1.06rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 7px; color: var(--hivis); font-weight: 700; font-size: 1.2rem; font-family: var(--disp); }

/* ---------- Call band ---------- */
.callband { background: var(--signal); color: #fff; text-align: center; position: relative; }
.callband .chev-top { position:absolute; top:0; left:0; right:0; height:10px; background: var(--chevron); }
.callband h2 { color: #fff; }
.callband .num { font-family: var(--disp); font-weight: 700; font-size: clamp(2.4rem, 7vw, 3.6rem); letter-spacing: 1.5px; line-height: 1; margin: 6px 0 4px; }
.callband .num a { color:#fff; }
.callband .num a:hover { text-decoration: none; }
.callband p { color: #FFD9DC; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.review { background:#fff; border:1px solid var(--line); border-radius:8px; padding: 22px; border-left: 4px solid var(--hivis); }
.review .stars { color: var(--hivis); letter-spacing: 2px; font-size: 1.1rem; }
.review p { font-size: 1rem; margin: 8px 0 12px; }
.review .who { font-family: var(--disp); text-transform: uppercase; letter-spacing: 1px; font-size: .9rem; color: var(--muted); }
.owner-note { background: var(--paper-2); border: 1px dashed var(--muted); border-radius: 6px; padding: 12px 16px; font-size: .9rem; color: var(--muted); margin-top: 18px; }

/* ---------- Area list ---------- */
.area { columns: 4; column-gap: 26px; list-style: none; }
.area li { padding: 6px 0; font-family: var(--disp); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--line); break-inside: avoid; }
.area li a { color: var(--asphalt); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative; font-family: var(--disp); text-transform: uppercase; letter-spacing: .6px; font-size: 1.2rem; color: var(--asphalt); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--signal); font-size: 1.6rem; font-family: var(--disp); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--asphalt); color: #EDEFF2; position: relative; }
.page-hero .chev-edge { position:absolute; top:0; left:0; right:0; height:12px; background: var(--chevron); }
.page-hero .wrap { padding: 52px 22px 46px; }
.page-hero h1 { color:#fff; }
.page-hero p { color:#C3C8D0; font-size:1.18rem; max-width: 56ch; margin: 12px 0 0; }
.crumb { font-family: var(--disp); text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; color: #8A919C; margin-bottom: 12px; }
.crumb a { color: #8A919C; }

/* ---------- Photos ---------- */
.photo { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); margin: 0 0 1rem; }
figure.photo-fig { margin: 0 0 1.4rem; }
figure.photo-fig figcaption { font-family: var(--disp); text-transform: uppercase; letter-spacing: 1px; font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* ---------- Two-col feature ---------- */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.panel { background: var(--steel); color: #DDE0E5; border-radius: 10px; padding: 30px; border-top: 5px solid var(--hivis); }
.panel h3 { color: #fff; }

/* ---------- Article body ---------- */
.article h2 { margin: 1.5em 0 .4em; }
.article h3 { margin: 1.3em 0 .3em; }
.article ul { margin: 0 0 1rem 1.2rem; }
.article ul li { padding: 4px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt); color: #AEB4BD; padding: 52px 0 22px; }
.site-footer h4 { font-family: var(--disp); text-transform: uppercase; letter-spacing: 1.5px; color:#fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 30px; }
.site-footer a { color: #AEB4BD; }
.site-footer a:hover { color: var(--hivis); }
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; }
.footer-call { display:inline-flex; align-items:center; gap:9px; background: var(--signal); color:#fff !important; font-family: var(--disp); text-transform: uppercase; letter-spacing: 1px; font-size:1.15rem; padding: 11px 20px; border-radius: 6px; margin-top: 8px; }
.footer-call:hover { background: var(--signal-d); text-decoration: none; }
.footer-call svg { width:18px; height:18px; }
.footer-bottom { border-top: 1px solid #2A2E35; margin-top: 32px; padding-top: 18px; font-size: .82rem; color:#7C828C; text-align:center; }
.footer-bottom .disc { max-width: 90ch; margin: 8px auto 0; line-height: 1.5; }

/* ---------- Mobile sticky call ---------- */
.mobile-call { display:none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--signal); color:#fff; align-items:center; justify-content:center; gap:10px;
  padding: 14px; font-family: var(--disp); text-transform: uppercase; letter-spacing: 1px; font-size: 1.3rem;
  border-top: 4px solid var(--hivis); }
.mobile-call:hover { color:#fff; text-decoration:none; }
.mobile-call svg { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { gap: 16px; }
}
@media (max-width: 900px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 26px; }
  .reviews { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .area { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); padding: 16px 22px; gap: 14px; border-bottom: 2px solid var(--asphalt); max-height: 80vh; overflow-y: auto; }
  .nav-links.open .nav-call { width: 100%; justify-content: center; }
  .has-sub .submenu { position: static; display: block; box-shadow: none; border: 0; border-left: 3px solid var(--signal); border-radius: 0; padding: 4px 0 4px 4px; min-width: 0; margin-top: 6px; background: transparent; }
  .submenu a { padding: 6px 10px; }
  .menu-toggle { display: block; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .area { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 66px; }
  .mobile-call { display: flex; }
  section { padding: 46px 0; }
  .hero .wrap { padding: 46px 22px 44px; }
}
