/* ==========================================================================
   RR Towing & Recovery LLC — site stylesheet
   One file, no framework. Colors come from the company palette / truck wrap.
   EDIT HERE: the :root block below is the single place to change colors.
   ========================================================================== */

/* ---- Fonts (self-hosted, headings only; body uses system fonts) ---------- */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  --red: #c32023;          /* primary action red (AA with white text) */
  --red-bright: #ed0004;   /* accent red, large display use only */
  --charcoal: #332b2b;     /* dark sections, matches truck wrap */
  --charcoal-deep: #241f1f;/* footer / overlays */
  --ink: #2b2424;          /* body text on white */
  --muted: #6e5c58;        /* secondary text on white (AA) */
  --paper: #ffffff;
  --paper-dim: #f6f4f3;    /* alternate section background */
  --line: #e5dfdd;         /* hairline borders */
  --on-dark-dim: #d8d0ce;  /* secondary text on charcoal (AA) */
  --font-head: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 68rem;            /* content max width */
}

/* ---- Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-bright); }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { margin: 0 0 1em; }

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--paper); color: var(--ink); padding: 0.75rem 1.25rem;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: 0.03em; text-decoration: none;
  padding: 0.8rem 1.6rem; min-height: 3rem; border-radius: 6px;
  border: 2px solid transparent;
}
.btn svg { flex: none; }
.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-bright); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--charcoal); }
.btn-outline-dark { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; }
.btn-big { font-size: 1.6rem; padding: 1.1rem 2rem; width: 100%; }
@media (min-width: 40em) { .btn-big { width: auto; min-width: 18rem; } }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--charcoal);
  border-bottom: 3px solid var(--red);
}
.header-bar {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: var(--max); margin: 0 auto; padding: 0.5rem 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 52px; height: 52px; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  color: #fff; font-size: 1.35rem; line-height: 1;
}
.brand-name small { display: block; color: var(--on-dark-dim); font-size: 0.72rem; letter-spacing: 0.12em; font-weight: 600; }
/* On phones the fixed bottom Call/Text bar is always on screen, so the header
   button only appears once the bottom bar is hidden (wider screens). */
.header-call { display: none; font-size: 1.1rem; padding: 0.6rem 1rem; }
.header-call .lbl { display: none; }
@media (min-width: 54em) { .header-call { display: inline-flex; } }

/* Nav */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: #fff;
}
.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.site-nav a {
  display: block; padding: 0.7rem 0.5rem; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red-bright); }
@media (min-width: 54em) {
  .nav-toggle { display: none; }
  .header-bar { flex-wrap: nowrap; }
  .site-nav { display: block; width: auto; }
  .site-nav ul { display: flex; gap: 0.25rem; padding: 0; }
  .site-nav a { border: 0; padding: 0.5rem 0.7rem; font-size: 1.15rem; }
}
@media (max-width: 53.99em) {
  .header-bar { flex-wrap: wrap; }
}

/* ---- Mobile bottom call bar ---------------------------------------------- */
.callbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex;
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 0.5rem; min-height: 3.5rem; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; text-transform: uppercase;
}
.callbar .cb-call { background: var(--red); color: #fff; }
.callbar .cb-text { background: var(--charcoal); color: #fff; }
body { padding-bottom: 3.5rem; } /* clears the fixed bar */
@media (min-width: 54em) {
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { background: var(--charcoal); color: #fff; position: relative; }
.hero .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; position: relative; }
.hero-photo { position: absolute; inset: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero p.lead { font-size: 1.2rem; max-width: 46rem; color: var(--on-dark-dim); }
.hero .kicker {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--red-bright); font-size: 1.05rem; margin: 0 0 0.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 54em) {
  .hero .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 3rem 0; }
.section-dim { background: var(--paper-dim); }
.section-dark { background: var(--charcoal); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--on-dark-dim); }
.section .lead { font-size: 1.15rem; max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Trust strip */
.trust {
  display: grid; gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
}
.trust > div { background: var(--paper); padding: 1.1rem 1.25rem; text-align: center; }
.trust b {
  display: block; font-family: var(--font-head); font-size: 1.5rem;
  text-transform: uppercase; color: var(--red); line-height: 1.1;
}
.trust span { font-size: 0.95rem; color: var(--muted); }
.trust a { text-decoration: none; color: inherit; }
.trust a b { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 40em) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 54em) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* Card grids (services, areas) */
.grid { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 34em) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 54em) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red);
  border-radius: 6px; padding: 1.25rem;
}
.card h3 { margin-bottom: 0.35rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red); }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .more {
  display: inline-block; margin-top: 0.6rem; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; color: var(--red); text-decoration: none; font-size: 1.05rem;
}
.card .more:hover { color: var(--red-bright); text-decoration: underline; }

/* Flat rate promo */
.flatrate {
  border: 3px solid var(--red); border-radius: 8px; background: var(--paper);
  padding: 1.5rem; margin-top: 2rem;
}
.flatrate .price {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 7vw, 4rem);
  color: var(--red); line-height: 1; text-transform: uppercase;
}
.flatrate ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.flatrate li { margin-bottom: 0.25rem; }
.flatrate .cols { display: grid; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 40em) { .flatrate .cols { grid-template-columns: 1fr 1fr; } }
.flatrate .fine { font-size: 0.9rem; color: var(--muted); margin: 1rem 0 0; }

/* Reviews */
.reviews { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 54em) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.25rem; margin: 0; display: flex; flex-direction: column;
}
.review .stars { color: var(--red); letter-spacing: 0.1em; font-size: 1.05rem; }
.review p { margin: 0.5rem 0 0.75rem; font-size: 0.98rem; }
.review footer { margin-top: auto; font-weight: 600; font-size: 0.95rem; }
.review footer span { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* FAQ */
.faq { max-width: 46rem; margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1rem 0; font-family: var(--font-head); font-weight: 600;
  font-size: 1.25rem; text-transform: uppercase; list-style-position: outside;
}
.faq summary:hover { color: var(--red); }
.faq details p { margin: 0 0 1rem; color: var(--muted); }

/* Area / link pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pills a {
  display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-transform: uppercase;
  background: var(--paper);
}
.pills a:hover { border-color: var(--red); color: var(--red); }

/* Two-column feature (photo + text) */
.feature { display: grid; gap: 1.5rem; align-items: center; margin-top: 2rem; }
@media (min-width: 54em) { .feature { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.feature img { border-radius: 8px; }

/* Photo gallery + photo strip */
.gallery { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 34em) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 54em) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure, .photo-strip figure { margin: 0; }
/* Gallery shows each photo whole; the small strips crop to uniform tiles. */
.gallery img { width: 100%; border-radius: 8px; background: var(--charcoal); }
.photo-strip img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--charcoal);
}
.gallery figcaption { padding: 0.5rem 0.25rem 0; font-size: 0.95rem; color: var(--muted); }
.section-dark .gallery figcaption { color: var(--on-dark-dim); }
.photo-strip { display: grid; gap: 0.75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; grid-template-columns: repeat(3, 1fr); }
.photo-strip img { aspect-ratio: 1 / 1; }
@media (min-width: 40em) { .photo-strip img { aspect-ratio: 4 / 3; } }
.photo { margin: 2rem 0; }
.photo img { border-radius: 8px; }
.photo figcaption { margin-top: 0.5rem; font-size: 0.95rem; color: var(--muted); }

/* NAP block */
.nap { font-style: normal; }
.nap strong { font-family: var(--font-head); font-size: 1.3rem; text-transform: uppercase; }
.nap a { color: inherit; }

/* Payment list */
.payments { color: var(--muted); font-size: 0.9rem; }

/* ---- Page CTA band ------------------------------------------------------- */
.cta-band { background: var(--red); color: #fff; text-align: center; }
.cta-band .wrap { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #fff; opacity: 0.92; }
.cta-band .btn-call { background: #fff; color: var(--red); }
.cta-band .btn-call:hover { background: var(--charcoal); color: #fff; }
.cta-band .btn-outline:hover { color: var(--red); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--charcoal-deep); color: var(--on-dark-dim); font-size: 0.95rem; }
.site-footer .wrap { padding-top: 3rem; padding-bottom: 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 54em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.site-footer h2 {
  font-size: 1.15rem; color: #fff; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--on-dark-dim); }
.site-footer a:hover { color: #fff; }
.footer-brand img { width: 120px; margin-bottom: 0.75rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.25rem;
  font-size: 0.85rem; text-align: center;
}

/* ---- Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
