/* ==========================================================
   Roadside Central Towing — black, gold & brushed silver
   ========================================================== */

:root {
  --black: #050505;
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --line: #2a2a2a;

  --gold: #e9b541;
  --gold-light: #ffe08a;
  --gold-dark: #a8761e;
  --gold-grad: linear-gradient(180deg, #fff1b0 0%, #f2c654 38%, #d49a2a 62%, #f5cf63 100%);

  --silver: #e6e6e6;
  --silver-grad: linear-gradient(180deg, #ffffff 0%, #d9d9d9 45%, #9c9c9c 55%, #e9e9e9 100%);

  --text: #e8e8e8;
  --muted: #a3a3a3;

  --radius: 14px;
  --header-h: 76px;
  --font-display: "Saira", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-gold {
  background: var(--gold-grad);
  color: #1a1203;
  box-shadow: 0 6px 24px -8px rgba(233, 181, 65, .6), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(233, 181, 65, .8), inset 0 1px 0 rgba(255,255,255,.6); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  background: rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,5,5,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: rgba(233,181,65,.35);
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand img,
.footer-logo { mix-blend-mode: lighten; } /* drop the logo's black JPG background */
.brand img { height: 58px; width: auto; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--silver);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero { background: var(--black); }
.hero-bg {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: max(0px, calc(50% - 300px));
  z-index: -1;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(5,5,5,.7) 22%, rgba(5,5,5,.1) 55%, rgba(5,5,5,0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,11,11,0) 25%),
    url("images/truck-pickup.jpg") center / cover no-repeat;
}

.hero-content { padding-block: 80px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 16px;
  border: 1px solid rgba(233,181,65,.5);
  border-radius: 999px;
  background: rgba(233,181,65,.08);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero h1 .gold-text { text-shadow: none; }

.lead {
  text-shadow: 0 1px 12px rgba(0,0,0,.85);
  max-width: 520px;
  margin: 22px 0 34px;
  font-size: 1.15rem;
  color: #d4d4d4;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 46px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
}
.hero-badges li {
  text-shadow: 0 1px 10px rgba(0,0,0,.85);
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}
.hero-badges strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1.2;
}

/* ---------- Sections ---------- */
.section { padding-block: 100px; }
.section-alt {
  background: radial-gradient(ellipse at top right, rgba(233,181,65,.08), transparent 55%), var(--black);
  border-block: 1px solid var(--line);
}

.section-head { text-align: center; margin-bottom: 56px; }
.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.section h2,
.cta-band h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 900;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rule {
  width: 90px;
  height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.rule-left { margin-left: 0; background: linear-gradient(90deg, var(--gold) 70%, transparent); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
@media (hover: hover) {
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233,181,65,.45);
  box-shadow: 0 18px 40px -20px rgba(233,181,65,.35);
}
.service-card:hover::before { transform: scaleX(1); }
}

.icon {
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, rgba(255,224,138,.22), rgba(233,181,65,.06));
  border: 1px solid rgba(233,181,65,.35);
}
.icon svg {
  width: 34px; height: 34px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.service-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(90deg, rgba(5,5,5,.94), rgba(5,5,5,.75)),
    url("images/truck-flatbed.jpg") center 60% / cover no-repeat;
  border-block: 1px solid rgba(233,181,65,.45);
  padding-block: 56px;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.cta-phone {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: .01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(233,181,65,.25));
  transition: filter .2s ease;
}
.cta-phone:hover { filter: drop-shadow(0 4px 24px rgba(233,181,65,.55)); }

/* ---------- Fleet ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 24px;
}
.fleet-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  min-height: 460px;
}
.fleet-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.fleet-card:first-child img { object-position: center 60%; }
@media (hover: hover) {
  .fleet-card:hover img { transform: scale(1.04); }
}
.fleet-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 60px 26px 24px;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 60%, transparent);
}
.fleet-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.fleet-card p { margin: 0; color: #d0d0d0; font-size: .95rem; }

/* ---------- Why us ---------- */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-text h2 { margin-top: 2px; }
.why-text > p { color: var(--muted); margin: 22px 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li {
  position: relative;
  padding-left: 36px;
  color: #cfcfcf;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 3px rgba(233,181,65,.15);
}
.checks li::after {
  content: "";
  position: absolute;
  left: 7px; top: 7px;
  width: 8px; height: 5px;
  border-left: 2.5px solid #1a1203;
  border-bottom: 2.5px solid #1a1203;
  transform: rotate(-45deg);
}
.checks strong { color: #fff; }

/* Gold-rimmed card with an offset outline behind it */
.why { isolation: isolate; } /* keeps the outline above the section background */
.why-media {
  position: relative;
  margin: 14px 14px 14px 0;
  padding: 3px;
  border-radius: 20px;
  background: var(--gold-grad);
  box-shadow: 0 30px 70px -30px rgba(233,181,65,.45), 0 20px 50px -20px rgba(0,0,0,.9);
}
.why-media::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px; right: -14px; bottom: -14px;
  z-index: -1;
  border: 1.5px solid rgba(233,181,65,.35);
  border-radius: 20px;
}
.why-media img {
  width: 100%;
  padding: clamp(18px, 4%, 36px);
  border-radius: 17px;
  background: radial-gradient(ellipse at 50% 40%, #1a1508 0%, #000 70%);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s ease;
}
a.contact-item:hover { border-color: rgba(233,181,65,.5); }
.ci-icon {
  flex: none;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
}
.ci-icon svg { width: 22px; height: 22px; fill: #1a1203; }
.contact-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.contact-item strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.3;
}
.contact-item strong.big { font-size: 1.7rem; font-weight: 900; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 380px;
  background: var(--surface);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
  filter: grayscale(.35) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(233,181,65,.3);
  padding-block: 48px 36px;
  text-align: center;
}
.footer-inner { display: grid; justify-items: center; gap: 18px; }
.footer-logo { width: 240px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.footer-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  color: var(--silver);
}
.footer-nav a:hover { color: var(--gold); }
.footer-meta { margin: 0; color: var(--muted); font-size: 14px; }
.footer-meta a { color: var(--gold); }
.footer-copy { margin: 0; color: #6b6b6b; font-size: 13px; }

/* ---------- Mobile call bar ---------- */
.mobile-call {
  display: none;
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #1a1203;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.mobile-call svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why { gap: 40px; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { height: 48px; }
  .header-call { display: none; }
  .menu-toggle { display: block; margin-left: auto; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 20px 20px;
    background: rgba(5,5,5,.98);
    border-bottom: 1px solid rgba(233,181,65,.35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }

  .why { grid-template-columns: 1fr; }
  .why-media { max-width: 640px; }

  /* Photo stays behind the text, but sized to the screen width so the whole
     truck shows; its lower edge fades into black where the text sits. */
  .hero { align-items: flex-end; }
  .hero-bg {
    left: 0;
    background:
      linear-gradient(0deg, rgba(5,5,5,.97) 0%, rgba(5,5,5,.8) 50%, rgba(5,5,5,.45) 100%),
      linear-gradient(0deg, var(--black) 0%, rgba(5,5,5,.6) 35%, rgba(5,5,5,0) 70%) center top / 100% 67.4vw no-repeat, /* 67.4vw = photo's 1800×1213 ratio */
      url("images/truck-pickup.jpg") center top / 100% auto no-repeat,
      var(--black);
  }
  .hero-content { padding-block: 60px 50px; }

  .fleet-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .fleet-card { min-height: 320px; }
  @supports (aspect-ratio: 1) {
    .fleet-card { min-height: 0; aspect-ratio: 4 / 3; }
  }

  .section { padding-block: 72px; }
  .cta-inner { flex-direction: column; text-align: center; }

  .mobile-call { display: flex; }
  .site-footer { padding-bottom: 110px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { gap: 12px 22px; }
  .hero-badges strong { font-size: 1.2rem; }
  .contact-item strong.big { font-size: 1.4rem; }
}

/* Phones in landscape and other short screens */
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 58px; }
  .brand img { height: 40px; }
  /* Wide, short screen: put the photo back behind the text */
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .hero-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    height: auto;
    background:
      linear-gradient(90deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.7) 55%, rgba(5,5,5,.35) 100%),
      url("images/truck-pickup.jpg") center / cover no-repeat;
  }
  .hero-content { padding-block: 32px 40px; }
  .hero h1 { font-size: clamp(1.8rem, 9vh, 2.6rem); max-width: none; }
  .eyebrow { margin-bottom: 14px; }
  .lead { margin: 14px 0 20px; font-size: 1rem; max-width: 60ch; }
  .hero-actions .btn { width: auto; }
  .hero-badges { margin-top: 24px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .fleet-card { aspect-ratio: 3 / 4; }
  .fleet-card:last-child { aspect-ratio: auto; }
  .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

  /* Compact call button so it doesn't cover a third of the screen */
  .mobile-call {
    left: auto;
    right: max(12px, env(safe-area-inset-right, 0px));
    padding: 12px 22px;
    font-size: 15px;
  }
  .site-footer { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
