/* Advance Truck Painting — site styles */
:root {
  --ink: #14181d;
  --ink-2: #1e242b;
  --paper: #ffffff;
  --muted: #5b6672;
  --line: #e3e7eb;
  --red: #c8102e;
  --red-dark: #9c0c23;
  --steel: #33414f;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--red);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px; max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { height: 84px; width: auto; background: #fff; padding: 10px 20px; border-radius: 12px; display: block; box-shadow: 0 3px 14px rgba(0,0,0,.28); }
@media (max-width: 720px) { .brand-logo { height: 62px; padding: 8px 14px; } }
.brand .mark {
  font-weight: 800; letter-spacing: 1px; font-size: 20px;
  background: var(--red); color: #fff; padding: 6px 10px; border-radius: 6px;
  line-height: 1;
}
.brand .name { font-weight: 700; font-size: 15px; letter-spacing: .5px; line-height: 1.15; }
.brand .name small { display: block; font-weight: 500; font-size: 11px; color: #b9c2cc; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  text-decoration: none; color: #cdd5dd; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 6px;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a.active { color: #fff; background: var(--red); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(20,24,29,.86), rgba(20,24,29,.94)),
    repeating-linear-gradient(45deg, #1b222a 0 22px, #1e262f 22px 44px);
  color: #fff; text-align: center;
  padding: 74px 22px 82px;
}
.hero .tag { color: var(--red); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }

/* Home hero motto — brand line, flanked by red rules */
.hero .tagline {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 0 auto 22px; max-width: 760px;
}
.hero .tagline span {
  color: #fff; font-weight: 800; text-transform: uppercase;
  font-size: clamp(17px, 2.9vw, 27px); letter-spacing: 3px; line-height: 1.25;
  text-shadow: 0 2px 14px rgba(200,16,46,.45);
}
.hero .tagline::before,
.hero .tagline::after {
  content: ""; flex: 1 1 auto; min-width: 24px; height: 2px; border-radius: 2px;
}
.hero .tagline::before { background: linear-gradient(90deg, transparent, var(--red)); }
.hero .tagline::after  { background: linear-gradient(90deg, var(--red), transparent); }

@media (max-width: 560px) {
  .hero .tagline { gap: 10px; }
  .hero .tagline span { letter-spacing: 1.5px; }
}
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.12; margin: 0 auto 18px; max-width: 780px; font-weight: 800; }
.hero p { color: #c3ccd5; font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 8px; border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: #46525f; color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-alt { background: #f6f8fa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--red); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 18px; font-weight: 800; line-height: 1.15; }
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }

/* media row (text + photo) */
.media-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.media-row .photo { border-radius: 14px; overflow: hidden; box-shadow: 0 16px 38px rgba(20,24,29,.20); border: 1px solid var(--line); max-height: 460px; }
.media-row .photo img { width: 100%; height: 100%; object-fit: cover; }
.media-row .photo figcaption { background: var(--ink); color: #c3ccd5; font-size: 13px; padding: 8px 14px; text-align: center; }
@media (max-width: 720px) { .media-row { grid-template-columns: 1fr; gap: 26px; } }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; }
.stat .num { font-size: 30px; font-weight: 800; color: var(--red); line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 8px; font-weight: 600; }

/* quote */
.pull {
  border-left: 5px solid var(--red); background: #fff; border-radius: 0 12px 12px 0;
  padding: 22px 26px; font-size: 20px; font-style: italic; color: var(--steel);
  margin: 34px 0 0; box-shadow: 0 1px 0 var(--line);
}

/* ---------- Service cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 34px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: #fff; transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,24,29,.10); }
.card .icon { width: 46px; height: 46px; border-radius: 10px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Contact / info blocks ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 30px; }
.info { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.info h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--red); }
.info p, .info a { margin: 0; color: var(--ink); text-decoration: none; font-size: 16px; }
.info a:hover { color: var(--red); }

.notice { margin-top: 30px; background: #fff8e6; border: 1px solid #f0d98a; border-radius: 12px; padding: 18px 22px; color: #6b5a1e; font-size: 15px; }
.notice strong { color: #4d4114; }

/* ---------- Trusted By ---------- */
.trusted { text-align: center; }
.trusted .brands-img { max-width: 900px; width: 100%; margin: 26px auto 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 18px; }
.trusted .brands-note { max-width: 900px; margin: 16px auto 0; font-size: 13px; line-height: 1.6; color: var(--muted); font-style: italic; }

/* ---------- Gallery carousel (rolodex slideshow) ---------- */
.carousel { position: relative; margin-top: 34px; max-width: 940px; margin-left: auto; margin-right: auto; }
.stage { position: relative; overflow: hidden; border-radius: 16px; background: #14181d; box-shadow: 0 16px 40px rgba(20,24,29,.22); }
.track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide { flex: 0 0 100%; height: min(64vh, 560px); display: flex; align-items: center; justify-content: center; }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.c-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20,24,29,.5); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; }
.c-btn:hover { background: var(--red); border-color: var(--red); }
.c-prev { left: 14px; } .c-next { right: 14px; }
.c-cap { text-align: center; margin-top: 18px; font-weight: 700; font-size: 18px; color: var(--ink); }
.c-count { text-align: center; color: var(--muted); font-size: 14px; margin-top: 4px; }
.dots { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #c7ced6; cursor: pointer; padding: 0; transition: transform .15s ease, background .15s ease; }
.dot.active { background: var(--red); transform: scale(1.3); }
@media (max-width: 720px) {
  .c-btn { width: 42px; height: 42px; font-size: 21px; }
  .c-prev { left: 8px; } .c-next { right: 8px; }
  .slide { height: min(54vh, 420px); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb8c2; padding: 40px 22px; border-top: 3px solid var(--red); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; max-width: var(--max); margin: 0 auto; }
.site-footer a { color: #d6dde4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer h5 { color: #fff; margin: 0 0 10px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.copy { text-align: center; color: #7d8894; font-size: 13px; margin-top: 30px; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav { flex-direction: column; gap: 10px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
