/*
Theme Name: DFW Tow Trucks
Theme URI: https://dfwtowtrucks.com/
Author: DFWTowTrucks.com
Description: Fast, accessible directory theme for independent DFW towing providers.
Version: 0.4.0
Text Domain: dfw-towtrucks
*/

:root {
  --ink: #101b2d;
  --muted: #586579;
  --navy: #071426;
  --blue: #0f5fa8;
  --blue-dark: #0a477f;
  --amber: #f5a623;
  --amber-dark: #d98706;
  --paper: #ffffff;
  --mist: #f1f5f9;
  --line: #d9e2ec;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(7, 20, 38, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 400 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
input, select, textarea { color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.site-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; padding: 12px 16px; background: #fff; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; color: #fff; background: rgba(7, 20, 38, .97); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 850; letter-spacing: -.025em; }
.brand span { color: var(--amber); }
.nav-list { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: #fff; text-decoration: none; font-weight: 700; font-size: .94rem; }
.nav-list .nav-cta a { padding: 11px 16px; color: var(--navy); background: var(--amber); border-radius: 999px; }
.menu-toggle { display: none; border: 0; color: #fff; background: transparent; font: inherit; font-weight: 800; }

.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #071426 0%, #0c2748 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(30deg, transparent 48%, #fff 49%, #fff 50%, transparent 51%); background-size: 46px 46px; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; min-height: 690px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: stretch; gap: 30px; }
.hero-copy-column { align-self: center; padding-block: 76px; }
.hero-visual { min-height: 690px; margin-right: calc((100vw - min(1180px, calc(100vw - 40px))) / -2); background-image: linear-gradient(90deg, #071426 0%, rgba(7,20,38,.34) 24%, rgba(7,20,38,.02) 65%), url('assets/images/dfw-heavy-duty-towing-hero.webp'); background-position: 61% center; background-size: cover; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #ffd48b; font-size: .82rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--amber); }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 790px; margin-bottom: 22px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
.hero-copy { max-width: 690px; color: #d8e6f5; font-size: 1.16rem; }
.hero-safety { margin-top: 25px; color: #b9cce0; font-size: .9rem; font-weight: 700; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 850; cursor: pointer; }
.button-primary { color: var(--navy); background: var(--amber); }
.button-primary:hover { color: var(--navy); background: #ffc25b; }
.button-secondary { color: #fff; border-color: rgba(255,255,255,.55); }
.button-secondary:hover { color: #fff; border-color: #fff; }
.button-outline { color: var(--blue); background: #fff; border-color: var(--blue); }
.button-outline:hover { color: #fff; background: var(--blue); }
.trust-bar { color: #fff; background: var(--blue); }
.trust-bar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.25); }
.trust-bar p { display: grid; gap: 2px; height: 100%; margin: 0; padding: 20px 24px; background: var(--blue); }
.trust-bar strong { font-size: .98rem; }
.trust-bar span { color: #d8e9fa; font-size: .86rem; }

.section { padding-block: 86px; }
.section-muted { background: var(--mist); }
.section-dark { color: #fff; background: var(--navy); }
.section-dark .section-head p, .section-dark .step p { color: #c5d4e3; }
.section-dark .step { background: #0d2138; box-shadow: none; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(7,20,38,.05); }
.card p { color: var(--muted); }
.card a { font-weight: 800; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 30px; border-top: 5px solid var(--amber); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 22px; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 900; }
.corridors { display: flex; flex-wrap: wrap; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.corridors li { padding: 9px 15px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 750; }
.coverage-grid { display: grid; grid-template-columns: 1.7fr .8fr; align-items: start; gap: 48px; }
.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-block: 32px; }
.content-grid section { padding: 24px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.content-grid section p { margin-bottom: 0; }
.disclosure { padding: 18px 20px; color: #39475a; background: #f7fafc; border-left: 4px solid var(--blue); }
.entry { width: min(840px, calc(100% - 40px)); margin: 0 auto; padding-block: 60px 90px; }
.entry-header { margin-bottom: 36px; }
.entry-header h1 { color: var(--navy); font-size: clamp(2.4rem, 5vw, 4.2rem); }
.entry-content h2 { margin-top: 48px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.entry-content li { margin-bottom: 10px; }
.article-meta { margin: -20px 0 34px; color: var(--muted); font-size: .92rem; }
.article-summary { margin: 0 0 34px; padding: 24px; background: var(--mist); border-left: 5px solid var(--amber); border-radius: 0 12px 12px 0; font-size: 1.08rem; }
.article-cta { margin-top: 50px; padding: 28px; color: #fff; background: var(--navy); border-radius: var(--radius); }
.article-cta h2 { color: #fff; margin-top: 0; }
.article-cta p { color: #d8e6f5; }
.article-list { display: grid; gap: 24px; }
.article-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(7,20,38,.05); }
.article-card h2 { margin: 0 0 12px; font-size: 1.65rem; }
.article-card p { color: var(--muted); }
.page-lead { color: var(--muted); font-size: 1.2rem; }
.notice, .form-success { margin-block: 30px; padding: 22px 24px; background: #e9f3fc; border-left: 5px solid var(--blue); border-radius: 0 12px 12px 0; }

.directory-disclosure, .directory-empty { margin-block: 30px; padding: 24px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.provider-grid { display: grid; gap: 24px; margin-top: 30px; }
.provider-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 25px rgba(7,20,38,.06); }
.provider-card-featured { border: 2px solid var(--amber); box-shadow: var(--shadow); }
.provider-badge { display: inline-block; margin: 0 0 16px; padding: 6px 11px; color: var(--navy); background: #ffdda4; border-radius: 999px; font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.provider-details { display: grid; grid-template-columns: minmax(145px, .35fr) 1fr; gap: 10px 22px; margin-block: 24px; }
.provider-details dt { font-weight: 850; }
.provider-details dd { margin: 0; color: var(--muted); }
.provider-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-block: 30px; }
.pricing-card { padding: 28px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-card-featured { background: #fff8ea; border: 2px solid var(--amber); }
.pricing-card .eyebrow { color: var(--blue-dark); }
.pricing-card h2, .pricing-card h3 { margin-bottom: 15px; font-size: clamp(2rem, 4vw, 3rem); }

.tow-form { display: grid; gap: 28px; margin-top: 36px; }
.form-section { padding: 26px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.form-section h2 { margin: 0 0 20px; font-size: 1.45rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-field { display: grid; align-content: start; gap: 7px; font-weight: 750; }
.form-field-wide { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 50px; padding: 11px 13px; background: #fff; border: 1px solid #a8b7c7; border-radius: 9px; }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(15,95,168,.18); }
.optional { color: var(--muted); font-size: .84rem; font-weight: 500; }
.consent-field { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.consent-field input { width: 20px; height: 20px; margin-top: 3px; }
.form-emergency { margin: 0; color: #8b280d; font-weight: 800; }
.honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.cta-band { padding-block: 58px; color: #fff; background: var(--blue-dark); }
.cta-band-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; }
.cta-band h2 { max-width: 760px; margin-bottom: 0; }

.site-footer { padding-block: 54px 24px; color: #cbd8e6; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #dbe8f5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 28px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 76px 0 auto; padding: 20px; background: var(--navy); }
  .site-nav.is-open { display: block; }
  .nav-list { width: min(1180px, calc(100% - 40px)); margin-inline: auto; align-items: stretch; flex-direction: column; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .hero-copy-column { padding-block: 58px; }
  .hero-visual { min-height: 390px; margin-inline: calc((100vw - min(100vw - 40px, 1180px)) / -2); background-position: 70% center; }
  .card-grid, .steps, .footer-grid, .coverage-grid, .content-grid, .pricing-grid { grid-template-columns: 1fr; }
  .trust-bar-grid { grid-template-columns: 1fr; }
  .cta-band-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .site-shell { width: min(100% - 28px, 1180px); }
  .hero-grid { padding-block: 44px; }
  .hero-copy-column { padding-block: 16px 8px; }
  .hero-visual { min-height: 275px; margin-inline: -14px; }
  .button-row, .button { width: 100%; }
  .section { padding-block: 62px; }
  .card, .step, .form-section { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .provider-details { grid-template-columns: 1fr; gap: 3px; }
  .provider-details dd { margin-bottom: 14px; }
  .provider-actions, .provider-actions .button { width: 100%; }
}
