/* ============================================================
   ALL TRAILER SERVICE — Brand Stylesheet
   Design concept: "Roadside Industrial" — diamond plate texture,
   highway mile-marker numbering, high-vis safety yellow on asphalt.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Color tokens */
  --asphalt:        #17191c;
  --asphalt-2:       #202327;
  --asphalt-3:       #2b2f34;
  --steel:          #545b64;
  --steel-light:    #8a919b;
  --safety-yellow:  #f5b700;
  --safety-yellow-dim: #cf9c00;
  --signal-red:     #c8352d;
  --off-white:      #f1efe9;
  --muted:          #a9adb4;
  --line:           rgba(241,239,233,0.10);

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
  line-height: 1.08;
  font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.02em; }
p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--off-white); }

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

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

/* ---------- Diamond plate texture ---------- */
.plate-strip {
  height: 10px;
  width: 100%;
  background-color: var(--safety-yellow);
  background-image: repeating-linear-gradient(
    -45deg, rgba(23,25,28,0.18) 0 6px, transparent 6px 12px
  );
}
.plate-bg {
  background-color: var(--asphalt-2);
  background-image:
    radial-gradient(circle at 10px 10px, rgba(241,239,233,0.05) 1.6px, transparent 1.8px);
  background-size: 22px 22px;
}

/* ---------- Skip link / focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--safety-yellow);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--safety-yellow);
  color: var(--asphalt); padding: 10px 16px; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============ NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(23,25,28,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.03em; color: var(--off-white);
}
.brand-text .tag {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  color: var(--safety-yellow); margin-top: 4px; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 30px;
}
.nav-links a {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted);
  position: relative; padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--off-white); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--safety-yellow);
}
.nav-cta {
  display: flex; align-items: center; gap: 14px;
}
.nav-phone {
  display: none;
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--off-white);
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--off-white);
  width: 40px; height: 40px; border-radius: 4px; cursor: pointer;
}
@media (min-width: 900px) { .nav-phone { display: inline; } }
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--asphalt-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { background: rgba(245,183,0,0.08); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 3px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, background 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--safety-yellow); color: var(--asphalt); }
.btn-primary:hover { background: #ffc61a; }
.btn-outline { background: transparent; color: var(--off-white); border-color: var(--steel); }
.btn-outline:hover { border-color: var(--off-white); }
.btn-red { background: var(--signal-red); color: var(--off-white); }
.btn-red:hover { background: #e03e35; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============ BADGES / EYEBROWS ============ */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--safety-yellow);
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--safety-yellow); }

.sign-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); text-align: center;
  border: 2px solid var(--off-white); border-radius: 6px;
  padding: 10px 16px; min-width: 108px;
  background: var(--asphalt-2);
}
.sign-badge .big { font-size: 1.5rem; font-weight: 700; color: var(--safety-yellow); font-family: var(--font-display); }
.sign-badge .small { font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 40px;
}

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23,25,28,0.55), rgba(23,25,28,0.96) 78%),
    repeating-linear-gradient(115deg, #1c1e22 0 2px, #191b1e 2px 90px);
}
.hero-inner {
  padding: 86px 24px 70px;
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding-top: 56px; } }
.hero h1 { color: var(--off-white); }
.hero h1 .accent { color: var(--safety-yellow); }
.hero-sub { font-size: 1.08rem; max-width: 46ch; margin-bottom: 30px; }
.hero-art { justify-self: center; }

.road-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--off-white) 0 34px, transparent 34px 60px);
  opacity: 0.12;
}

/* ============ SECTION GENERICS ============ */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-alt { background: var(--asphalt-2); }
.divider {
  height: 1px; background: var(--line); border: none; margin: 0;
}

/* ============ MILE MARKER LIST (signature component) ============ */
.marker-list { display: flex; flex-direction: column; }
.marker-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px;
  padding: 34px 0; border-top: 1px dashed var(--line);
  position: relative;
}
.marker-item:last-child { border-bottom: 1px dashed var(--line); }
.marker-num {
  font-family: var(--font-mono); color: var(--asphalt);
  background: var(--safety-yellow);
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; line-height: 1; align-self: start;
}
.marker-num .mm { font-size: 0.55rem; letter-spacing: 0.06em; margin-bottom: 2px; }
.marker-num .num { font-size: 1.15rem; font-family: var(--font-display); }
.marker-body h3 { color: var(--off-white); margin-bottom: 8px; }
.marker-body p { margin-bottom: 0; }

/* ============ CARDS ============ */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 30px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--safety-yellow-dim); transform: translateY(-4px); }
.card .icon { width: 40px; height: 40px; margin-bottom: 18px; color: var(--safety-yellow); }
.card h3 { color: var(--off-white); }
.card p { margin-bottom: 0; }

.card-flush { padding: 0; overflow: hidden; }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--safety-yellow); color: var(--asphalt);
  padding: 56px 0;
}
.cta-band h2, .cta-band p { color: var(--asphalt); }
.cta-band p { opacity: 0.75; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.cta-band .btn-outline { border-color: var(--asphalt); color: var(--asphalt); }
.cta-band .btn-outline:hover { background: rgba(23,25,28,0.08); }

/* ============ PARKING RATE CARD ============ */
.rate-card {
  background: var(--asphalt); border: 2px solid var(--safety-yellow); border-radius: 10px;
  padding: 40px; position: relative;
}
.rate-card .price {
  font-family: var(--font-display); font-size: 3.4rem; color: var(--safety-yellow); line-height: 1;
}
.rate-card .price span { font-size: 1.1rem; font-family: var(--font-mono); color: var(--muted); text-transform: uppercase; }
.rate-list { margin-top: 24px; }
.rate-list li {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.85rem;
}
.rate-list li span:first-child { color: var(--off-white); }
.rate-list li span:last-child { color: var(--safety-yellow); }

.calc-box {
  background: var(--asphalt-2); border: 1px solid var(--line); border-radius: 10px; padding: 32px;
}
.calc-row { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.calc-row input[type="range"] { flex: 1; accent-color: var(--safety-yellow); }
.calc-nights { font-family: var(--font-mono); color: var(--off-white); min-width: 84px; text-align: right; }
.calc-total { font-family: var(--font-display); font-size: 2.6rem; color: var(--safety-yellow); }
.calc-total span { font-family: var(--font-mono); font-size: 1rem; color: var(--muted); }

/* ============ TEAM ============ */
.team-card { text-align: left; }
.team-photo {
  aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(160deg, var(--asphalt-3), var(--asphalt));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.team-photo svg { width: 46%; color: var(--steel); }
.team-role {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--safety-yellow);
}

/* ============ FORMS ============ */
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--asphalt); border: 1px solid var(--line); color: var(--off-white);
  padding: 13px 14px; border-radius: 4px; font-family: var(--font-body); font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--safety-yellow); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel-light); }
.form-success {
  display: none; background: rgba(245,183,0,0.1); border: 1px solid var(--safety-yellow-dim);
  padding: 16px 18px; border-radius: 6px; margin-top: 18px; font-family: var(--font-mono); font-size: 0.85rem;
}
.form-success.show { display: block; }

/* ============ INFO STRIP (contact/hours) ============ */
.info-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.info-strip > div { padding: 26px; border-left: 1px solid var(--line); }
.info-strip > div:first-child { border-left: none; }
.info-strip .label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--safety-yellow); margin-bottom: 8px;
}
.info-strip .value { font-family: var(--font-display); font-size: 1.15rem; color: var(--off-white); }
@media (max-width: 860px) {
  .info-strip { grid-template-columns: 1fr 1fr; }
  .info-strip > div:nth-child(3) { border-left: none; }
}
@media (max-width: 520px) {
  .info-strip { grid-template-columns: 1fr; }
  .info-strip > div { border-left: none; border-top: 1px solid var(--line); }
  .info-strip > div:first-child { border-top: none; }
}

/* ============ MAP ============ */
.map-frame {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }

/* ============ FOOTER ============ */
.site-footer { background: var(--asphalt-2); border-top: 1px solid var(--line); padding-top: 64px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--safety-yellow);
  text-transform: uppercase; margin-bottom: 18px;
}
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid ul a { color: var(--muted); font-size: 0.92rem; }
.footer-grid ul a:hover { color: var(--off-white); }
.footer-brand p { max-width: 32ch; font-size: 0.92rem; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.footer-social a:hover { color: var(--safety-yellow); border-color: var(--safety-yellow-dim); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 22px 0; margin-top: 8px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel-light);
}

/* ============ MISC ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

.breadcrumb {
  padding: 26px 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel-light);
}
.breadcrumb span { color: var(--safety-yellow); }
