/* ============ I-255 Truck & Trailer Repair ============ */

:root {
  --ink: #14181d;
  --ink-2: #1c2129;
  --ink-3: #242b35;
  --paper: #f5f6f7;
  --white: #ffffff;
  --steel: #99a3b0;
  --steel-dark: #5b6675;
  --accent: #d92127;
  --accent-hot: #b0181e;
  --accent-soft: #fbe9ea;
  --chrome: #eceff2;
  --road-yellow: #eab308;
  --line: #e4e7eb;
  --line-dark: #303845;
  --radius: 12px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .brand-text, .why-num {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.05;
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.03em; }

a { color: inherit; }

.accent { color: var(--accent); }
.accent-text { color: var(--accent-hot); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 11px 20px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { font-size: 1.05rem; padding: 15px 28px; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(217, 33, 39, 0.35); }
.btn-primary:hover { background: var(--accent-hot); }

.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-hot); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-outline-dark { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 24, 29, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand-mark { color: var(--accent); display: grid; place-items: center; flex: none; }
.brand-logo { display: none; height: 62px; width: auto; flex: none; }
.brand-logo.ok { display: block; }
.brand-logo.ok ~ .brand-mark,
.brand-logo.ok ~ .brand-text { display: none; }
.brand-text { font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.brand-text strong { color: var(--accent); font-weight: 800; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a:hover { color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.badge-247 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    /* dark overlay, heavier on the text side */
    linear-gradient(100deg, rgba(13, 16, 20, 0.94) 0%, rgba(13, 16, 20, 0.84) 45%, rgba(13, 16, 20, 0.55) 100%),
    /* soft red glow, matching the logo */
    radial-gradient(900px 420px at 82% 12%, rgba(217, 33, 39, 0.28), rgba(217, 33, 39, 0) 60%),
    /* the actual shop, 911 Water St */
    url("/img/hero-shop.jpg") center 62% / cover no-repeat,
    linear-gradient(180deg, #171c22 0%, #12161b 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  /* road center-line, like the logo's highway stripe */
  background: repeating-linear-gradient(90deg,
    var(--road-yellow) 0 60px,
    transparent 60px 110px);
  opacity: 0.85;
}
.hero-inner {
  position: relative;
  padding: 96px 24px 84px;
}
.hero-kicker {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 18px;
}
.stars { color: #fbbf24; letter-spacing: 2px; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero-sub {
  max-width: 560px;
  font-size: 1.13rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  max-width: 760px;
}
.hero-stats li {
  background: rgba(20, 24, 29, 0.85);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stats span { font-size: 0.82rem; color: var(--steel); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-kicker {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 10px;
}
.section-sub {
  color: var(--steel-dark);
  max-width: 540px;
  margin-top: 12px;
  font-size: 1.05rem;
}
.section-dark { background: var(--ink); color: #fff; }
.section-dark .section-kicker { color: var(--accent); }

/* ---------- Services ---------- */
.services-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 24, 29, 0.09);
  border-color: rgba(217, 33, 39, 0.45);
}
.service-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-hot);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 25px; height: 25px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--steel-dark); }

.services-note {
  margin-top: 34px;
  font-weight: 600;
  color: var(--steel-dark);
}
.services-note a { color: var(--accent-hot); }

/* ---------- Why Us ---------- */
.why-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px 28px;
}
.why-item { border-top: 3px solid var(--accent); padding-top: 18px; }
.why-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.why-item h3 { margin: 8px 0 10px; }
.why-item p { color: rgba(255,255,255,0.72); font-size: 0.94rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: block;
  border: 1px solid var(--line);
}
.gallery-grid img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ---------- Reviews ---------- */
.reviews { background: var(--chrome); }
.reviews-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 44px;
  box-shadow: 0 10px 30px rgba(20,24,29,0.08);
}
.reviews-number {
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1;
}
.stars-lg { font-size: 1.5rem; }
.reviews-caption { font-size: 0.82rem; color: var(--steel-dark); font-weight: 600; }
.reviews-copy h2 { margin-bottom: 12px; }
.reviews-copy p { color: var(--steel-dark); max-width: 520px; margin-bottom: 22px; }

/* ---------- Request Service ---------- */
.request-inner {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr);
  gap: 56px;
  align-items: start;
}
.request-copy > p { color: rgba(255,255,255,0.75); margin-top: 12px; max-width: 420px; }
.request-urgent {
  margin-top: 34px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 22px;
}
.request-urgent strong { font-size: 1.02rem; }
.request-urgent p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin: 6px 0 14px; }

.request-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-field label {
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.form-field label span { color: var(--accent-hot); }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
  width: 100%;
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-field input.invalid,
.form-field select.invalid { border-color: #dc2626; }

.cf-turnstile { margin: 4px 0 14px; }

.form-status { margin-top: 14px; font-weight: 600; font-size: 0.93rem; min-height: 1.4em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #dc2626; }

/* ---------- Location ---------- */
.location-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(260px, 4fr) minmax(320px, 8fr);
  gap: 40px;
}
.info-block { margin-bottom: 30px; }
.info-block h3 { color: var(--accent-hot); margin-bottom: 8px; }
.info-block p { margin-bottom: 12px; }
.phone-link {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  text-decoration: none;
}
.phone-link:hover { color: var(--accent-hot); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(20,24,29,0.08);
  min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0e1216;
  color: var(--steel);
  padding: 56px 0 0;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 84px; width: auto; margin-bottom: 12px; }
.footer-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-name strong { color: var(--accent); }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-col p { margin-bottom: 8px; }
.site-footer a { color: var(--steel); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 0.82rem;
}

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .request-inner { grid-template-columns: 1fr; gap: 40px; }
  .location-grid { grid-template-columns: 1fr; }
  .reviews-inner { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-inner { padding: 64px 20px 64px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .header-inner { height: 68px; gap: 12px; justify-content: space-between; }
  .brand-text { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { height: 52px; }
  .badge-247 { display: none; }
  .btn-call { padding: 10px 12px; }
  .btn-call-text { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid img:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16 / 10; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .request-form { padding: 22px; }
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 58px; }
  .reviews-score { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-dot { animation: none; }
  .service-card, .btn { transition: none; }
}
