/* ============================================================
   Dick's Towing LLC — style.css
   Palette: flame orange/red logo, asphalt black, AZ sky blue,
   desert sand neutrals.
   ============================================================ */

:root {
  --flame-yellow: #FDB913;
  --flame-orange: #F26522;
  --flame-red:    #C1121F;
  --flame-red-dk: #8E0D17;

  --ink:        #141414;
  --ink-2:      #1f1f1f;
  --ink-3:      #2c2c2c;
  --asphalt:    #333638;

  --sky:        #1B75BC;
  --sky-lt:     #4a9fe0;

  --sand:       #f4efe7;
  --sand-2:     #e9e1d3;
  --paper:      #ffffff;

  --text:       #1b1b1b;
  --text-soft:  #55524d;
  --text-onDark:#f3f0ea;
  --text-onDark-soft: #b9b4ab;

  --line:       #e2ddd3;
  --line-dark:  #3a3a3a;

  --radius:     14px;
  --radius-sm:  9px;
  --shadow:     0 18px 45px -20px rgba(0,0,0,.45);
  --shadow-sm:  0 6px 18px -10px rgba(0,0,0,.4);

  --wrap:       1140px;
  --font-head:  'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:  'Barlow', system-ui, -apple-system, sans-serif;

  --grad-flame: linear-gradient(180deg, var(--flame-yellow), var(--flame-orange) 55%, var(--flame-red));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }

a { color: var(--flame-red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.05;
  margin: 0 0 .4em;
  letter-spacing: .3px;
}

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sky-lt);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--flame-orange);
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .5px;
  padding: .7rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
  line-height: 1.1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-flame);
  color: #1a1200;
  box-shadow: var(--shadow-sm);
  border-color: rgba(0,0,0,.12);
}
.btn-primary:hover { box-shadow: 0 12px 26px -12px rgba(242,101,34,.8); }

.btn-ghost {
  background: transparent;
  color: var(--text-onDark);
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.section .btn-ghost { color: var(--text); border-color: rgba(0,0,0,.35); }
.section .btn-ghost:hover { background: rgba(0,0,0,.05); }

.btn-lg { font-size: 1.18rem; padding: .95rem 1.7rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-phone-icon { font-size: 1.2em; }

.link-btn {
  background: none; border: none; padding: 0;
  color: var(--flame-red); font: inherit; cursor: pointer;
  text-decoration: underline; font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,20,20,.96);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--flame-orange);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; gap: 1rem;
}
.brand img { height: 48px; width: auto; }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 1.4rem;
}
.main-nav a {
  color: var(--text-onDark); font-family: var(--font-head);
  font-weight: 600; font-size: 1.08rem; text-transform: uppercase;
  letter-spacing: .6px;
}
.main-nav a:hover { color: var(--flame-yellow); text-decoration: none; }
.nav-cta {
  background: var(--grad-flame); color: #1a1200 !important;
  padding: .45rem .9rem; border-radius: var(--radius-sm);
}
.nav-cta:hover { color: #1a1200 !important; }
.nav-simple { gap: 1.1rem; }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--flame-orange); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--text-onDark);
  min-height: min(84vh, 720px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: #0c0c0c url('assets/dicks-tow-yard-1.jpg') center 35% / cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,12,12,.92) 0%, rgba(12,12,12,.7) 45%, rgba(12,12,12,.25) 100%),
    linear-gradient(0deg, rgba(12,12,12,.75), rgba(12,12,12,0) 55%);
}
.hero-inner { position: relative; padding: 3.5rem 0; max-width: 660px; }

.eyebrow {
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: 2px; font-weight: 700; font-size: .95rem;
  color: var(--flame-yellow); margin: 0 0 .8rem;
}
.eyebrow-dark { color: var(--flame-red); }

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-style: italic; font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-onDark-soft);
  max-width: 34em; margin: 0 0 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }

.hero-badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .5px; font-size: .92rem; color: var(--text-onDark-soft);
}
.hero-badges li { display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: "\2714"; color: var(--flame-orange); font-weight: 700; }

/* ---------- Strip ---------- */
.strip { background: var(--ink); color: var(--text-onDark); border-bottom: 1px solid var(--line-dark); }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding: 1.6rem 0; text-align: center;
}
.strip-item { display: flex; flex-direction: column; }
.strip-item strong {
  font-family: var(--font-head); font-size: 1.6rem; color: var(--flame-yellow);
  text-transform: uppercase; letter-spacing: .5px;
}
.strip-item span { color: var(--text-onDark-soft); font-size: .95rem; }
.strip-item + .strip-item { border-left: 1px solid var(--line-dark); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-dark { background: var(--ink); color: var(--text-onDark); }
.section-dark .section-title { color: #fff; }
.section-sand { background: var(--sand); }

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-style: italic; font-weight: 800; text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem; margin-top: 2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--flame-orange); }
.card-icon {
  font-size: 2rem; width: 58px; height: 58px;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--sand-2); margin-bottom: .9rem;
}
.card h3 {
  font-size: 1.4rem; text-transform: uppercase; font-style: italic;
  font-weight: 700; margin-bottom: .4rem;
}
.card p { margin: 0; color: var(--text-soft); }

/* ---------- Why ---------- */
.why-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.why-copy p { color: var(--text-onDark-soft); }
.checklist { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text-onDark); }
.checklist li::before {
  content: "\2714"; position: absolute; left: 0; top: 0;
  color: #1a1200; background: var(--grad-flame);
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.why-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }

/* ---------- Area ---------- */
.area-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.area-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }
.area-note {
  background: var(--sand); border-left: 4px solid var(--flame-orange);
  padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}
.area-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }

/* ---------- Impound ---------- */
.impound-lead { max-width: 60ch; color: var(--text-soft); font-size: 1.08rem; }
.req-list {
  list-style: none; margin: 2rem 0 1.6rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem;
}
.req-list li {
  background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--flame-orange);
  border-radius: var(--radius-sm); padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.req-list strong { font-family: var(--font-head); font-size: 1.2rem; text-transform: uppercase; }
.req-list span { color: var(--text-soft); font-size: .95rem; }
.impound-hours { color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-lead { color: var(--text-onDark-soft); }
.phone-block {
  display: flex; flex-direction: column; gap: .1rem;
  background: var(--grad-flame); color: #1a1200;
  padding: 1.1rem 1.4rem; border-radius: var(--radius);
  margin: 1.3rem 0; box-shadow: var(--shadow-sm); width: fit-content;
}
.phone-block:hover { text-decoration: none; transform: translateY(-2px); transition: transform .12s ease; }
.phone-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; font-weight: 700; }
.phone-number { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; font-style: italic; line-height: 1; }

.contact-details { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-details li { display: grid; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); }
.cd-label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; color: var(--flame-yellow); font-size: .85rem; }
.cd-value { color: var(--text-onDark); }

/* ---------- Forms ---------- */
.contact-form-wrap, .tow-form { background: var(--paper); color: var(--text); border-radius: var(--radius); }
.contact-form { padding: 1.8rem; box-shadow: var(--shadow); }
.contact-form h3, .tow-form legend { font-family: var(--font-head); text-transform: uppercase; font-style: italic; }
.contact-form h3 { font-size: 1.6rem; margin-bottom: .2rem; }
.form-hint { color: var(--text-soft); margin: 0 0 1.2rem; }

.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; font-size: .95rem; }
.field .opt { color: var(--text-soft); text-transform: none; font-weight: 400; letter-spacing: 0; }
.field input, .field textarea {
  font: inherit; padding: .7rem .85rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfbf9; color: var(--text); width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--flame-orange); outline: none; box-shadow: 0 0 0 3px rgba(242,101,34,.18); }
.field textarea { resize: vertical; }

.form-status, .tow-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok, .tow-status.ok { color: #1a7a3c; }
.form-status.err, .tow-status.err { color: var(--flame-red); }

/* ---------- Footer ---------- */
.site-footer { background: #0e0e0e; color: var(--text-onDark-soft); }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
  padding: 3rem 0 2rem;
}
.footer-brand img { height: 46px; width: auto; margin-bottom: .8rem; }
.footer-brand p { max-width: 30ch; }
.footer-col h4 { font-family: var(--font-head); text-transform: uppercase; color: #fff; letter-spacing: .5px; font-size: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--text-onDark-soft); }
.footer-col a:hover { color: var(--flame-yellow); text-decoration: none; }
.footer-bar { border-top: 1px solid var(--line-dark); padding: 1.1rem 0; text-align: center; }
.footer-bar p { margin: 0; font-size: .9rem; }
.footer-bar a { color: var(--flame-yellow); }
.footer-bar-solo { border-top: none; }

/* ---------- Floating call button (mobile) ---------- */
.fab-call {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  display: none; align-items: center; gap: .4rem;
  background: var(--grad-flame); color: #1a1200;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  padding: .8rem 1.2rem; border-radius: 999px;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.6);
}
.fab-call:hover { text-decoration: none; }

/* ============================================================
   Request-a-Tow page
   ============================================================ */
.page-tow { background: var(--sand); }
.tow-main { padding: clamp(2rem, 5vw, 3.5rem) 0 4rem; }
.tow-wrap { width: min(760px, 92vw); }
.tow-intro { text-align: center; margin-bottom: 1.6rem; }
.tow-title { font-size: clamp(2.2rem, 5vw, 3.2rem); font-style: italic; font-weight: 800; text-transform: uppercase; }
.tow-lead { color: var(--text-soft); max-width: 52ch; margin-inline: auto; }

.tow-call-band {
  display: flex; align-items: center; gap: 1rem;
  background: var(--ink); color: #fff;
  padding: 1rem 1.3rem; border-radius: var(--radius);
  margin-bottom: 1.6rem; box-shadow: var(--shadow-sm);
}
.tow-call-band:hover { text-decoration: none; transform: translateY(-2px); transition: transform .12s ease; }
.tcb-icon { font-size: 1.8rem; color: var(--flame-yellow); }
.tcb-text { display: flex; flex-direction: column; line-height: 1.15; }
.tcb-text strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .5px; font-size: 1.1rem; }
.tcb-text span { color: var(--text-onDark-soft); }
.tcb-arrow { margin-left: auto; color: var(--flame-orange); font-size: 1.5rem; }

.tow-form { padding: 1.8rem; box-shadow: var(--shadow); }
.tow-fieldset { border: none; padding: 0; margin: 0 0 1.6rem; }
.tow-fieldset legend {
  font-size: 1.4rem; padding: 0; margin-bottom: 1rem;
  border-bottom: 3px solid var(--flame-orange); width: 100%; padding-bottom: .4rem;
}

.loc-explainer {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--sand); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; margin-bottom: 1.1rem;
}
.loc-pin { font-size: 1.5rem; line-height: 1; }
.loc-explainer p { margin: 0; color: var(--text-soft); font-size: .97rem; }
.loc-explainer strong { color: var(--text); }

.loc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.loc-status { color: var(--text-soft); font-weight: 600; }
.loc-status.ok { color: #1a7a3c; }
.loc-status.err { color: var(--flame-red); }

.loc-preview {
  border: 1.5px solid #bfe3c7; background: #f0faf2;
  border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1.1rem;
}
.loc-preview h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 1.15rem; margin-bottom: .6rem; }
.loc-readout { margin: 0 0 .7rem; display: grid; gap: .4rem; }
.loc-readout div { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; }
.loc-readout dt { font-weight: 600; color: var(--text-soft); }
.loc-readout dd { margin: 0; word-break: break-word; }

.loc-or { color: var(--text-soft); font-size: .95rem; margin: 1.2rem 0 .8rem; }
.tow-privacy { color: var(--text-soft); font-size: .88rem; margin-top: 1rem; text-align: center; }

/* Request-a-tow: call-first "what to have ready" */
.tow-ready-title { font-family: var(--font-head); text-transform: uppercase; font-style: italic; text-align: center; margin: 2.2rem 0 0; font-size: 1.6rem; }
.tow-ready-note { color: var(--text-soft); text-align: center; max-width: 52ch; margin: 0 auto 1.4rem; }

/* ---------- Customer portal ---------- */
.portal-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  margin-bottom: 1.4rem;
}
.portal-h {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.field-help { margin: .2rem 0 0; color: var(--text-soft); font-size: .88rem; }
.portal-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.portal-status.ok { color: #1a7a3c; }
.portal-status.err { color: var(--flame-red); }
.portal-fineprint { margin: 1rem 0 0; color: var(--text-soft); font-size: .9rem; text-align: center; }

.portal-notice {
  display: flex; gap: .8rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1.4rem;
}
.portal-notice p { margin: 0; color: var(--text-soft); font-size: .97rem; }
.portal-notice strong { color: var(--text); }
.portal-notice-sub { margin-top: .6rem !important; font-size: .9rem !important; }

.portal-collected {
  margin-top: 1.4rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
}
.portal-collected h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: .7rem;
}
.portal-readout { margin: 0; display: grid; gap: .45rem; }
.portal-readout div { display: grid; grid-template-columns: 190px 1fr; gap: .6rem; }
.portal-readout dt { font-weight: 600; color: var(--text-soft); }
.portal-readout dd { margin: 0; word-break: break-word; }

.portal-done-lead { color: var(--text-soft); }
.loc-lead { color: var(--text-soft); font-size: .97rem; margin: 0 0 .8rem; }
.loc-lead strong { color: var(--text); }
.loc-map {
  height: 320px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: .4rem 0 1rem;
  z-index: 0; /* keep map panes under the site header/FAB */
}
.loc-map .leaflet-container { font-family: var(--font-body); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav ul#nav-list {
    position: absolute; top: 100%; right: 0; left: 0;
    background: rgba(20,20,20,.99);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 0; border-bottom: 3px solid var(--flame-orange);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .main-nav ul#nav-list.open { max-height: 420px; }
  .main-nav ul#nav-list.nav-simple { position: static; flex-direction: row; max-height: none; background: none; border: none; padding: 0; }
  .main-nav li { padding: 0 4vw; }
  .main-nav ul#nav-list > li > a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line-dark); }
  .nav-cta { text-align: center; margin: .5rem 0; }
  .nav-simple li { padding: 0; }

  .why-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .area-photo { order: 2; }
  .strip-inner { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .strip-item:nth-child(odd) { border-left: none; }
  .strip-item:nth-child(3) { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
  .strip-item:nth-child(4) { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .fab-call { display: inline-flex; }
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item + .strip-item { border-left: none; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .loc-readout div { grid-template-columns: 1fr; gap: 0; }
  .portal-readout div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .btn:hover, .card:hover, .phone-block:hover, .tow-call-band:hover { transform: none; }
}
