/* =====================================================================
   Phillips Brothers Towing — v2
   Change a color once here and it changes site-wide.
   ===================================================================== */
:root {
  --red: #c63e40; --red-dark: #a8292b; --yellow: #f3c317; --yellow-dark: #d9ad0c;
  --ink: #15171a; --body: #3b3f45; --muted: #6b7078; --line: #e4e6ea;
  --bg: #ffffff; --bg-alt: #f4f5f7; --dark: #1b1d21; --dark-2: #25282d;
  --heading-font: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --body-font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1140px; --radius: 8px; --shadow: 0 10px 30px rgba(0,0,0,.10);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body-font); font-size: 17px; line-height: 1.65; color: var(--body); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); } a:hover { color: var(--red-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 700; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; text-transform: uppercase; letter-spacing: .2px; }
h1 { font-size: clamp(36px, 5.5vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1.1em; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.two-col { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; } }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--heading-font); font-weight: 700; font-size: 18px; letter-spacing: .5px; text-transform: uppercase; text-decoration: none; text-align: center; padding: 14px 30px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-yellow { background: var(--yellow); color: #000; } .btn-yellow:hover { background: var(--yellow-dark); color: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); } .btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; } .btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-lg { font-size: 20px; padding: 16px 38px; }
.btn-block { display: block; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--dark); color: #cfd3d9; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; margin-left: 18px; }
.topbar a strong { color: var(--yellow); }
.topbar-open { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 3px rgba(46,204,113,.25); }
.site-header { background: var(--dark-2); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
.nav { display: flex; align-items: center; gap: 20px; padding: 10px 0; }
.brand img { width: 150px; height: auto; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a { display: block; white-space: nowrap; font-family: var(--heading-font); font-weight: 700; text-transform: uppercase; font-size: 16px; letter-spacing: .4px; color: #fff; text-decoration: none; padding: 10px 11px; border-radius: 4px; }
@media (min-width: 960px) and (max-width: 1180px) { .menu a { font-size: 14px; padding: 10px 7px; } .nav-cta { font-size: 14px; padding: 10px 12px; } .brand img { width: 120px; } }
.menu a:hover, .menu li.is-active > a { color: var(--yellow); }
.sub-toggle { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 4px; display: inline-flex; }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 250px; z-index: 50; background: var(--dark); border-top: 3px solid var(--red); border-radius: 0 0 6px 6px; box-shadow: 0 12px 30px rgba(0,0,0,.4); padding: 6px 0; }
.sub a { font-family: var(--body-font); font-weight: 500; text-transform: none; font-size: 15px; padding: 9px 16px; border-radius: 0; }
.sub a:hover { background: var(--dark-2); color: var(--yellow); }
.has-sub:hover .sub, .has-sub.open .sub { display: block; }
.nav-cta { white-space: nowrap; font-size: 16px; padding: 11px 18px; }
.nav-toggle { display: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; color: #fff; background: #000 url("../images/photos/hero-red-ram-flatbed.jpg") center 45%/cover no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 50%, rgba(0,0,0,.45) 100%); }
.hero-grid { display: grid; gap: 40px; padding: 60px 0 70px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.2fr .9fr; padding: 80px 0 90px; } }
.eyebrow { font-family: var(--heading-font); text-transform: uppercase; letter-spacing: 1.5px; color: var(--yellow); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.hero h1 { color: #fff; font-size: clamp(42px, 6vw, 72px); text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.hero-sub { font-size: clamp(17px, 1.8vw, 21px); max-width: 560px; color: #e8eaee; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 15px; color: #e8eaee; }
.hero-points li::before { content: "\2713"; color: var(--yellow); margin-right: 8px; font-weight: 700; }

/* ---------- Lead form card ---------- */
.lead-card { background: #fff; color: var(--body); border-radius: 10px; padding: 26px 24px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); border-top: 6px solid var(--yellow); }
.lead-card h3 { font-size: 28px; margin-bottom: 4px; }
.lead-sub { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid #cfd3d9; border-radius: 6px; background: #fff; color: var(--ink); }
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--yellow); }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-or { text-align: center; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 10px 0 0; font-weight: 600; min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: #1f7a1f; } .form-status.err { color: var(--red); }
.lead-compact { box-shadow: var(--shadow); }
.lead-compact h3 { font-size: 24px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--yellow); color: #000; }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; padding: 18px 0; text-align: center; }
@media (min-width: 760px) { .trust-row { grid-template-columns: repeat(5, 1fr); } }
.trust-row strong { display: block; font-family: var(--heading-font); font-size: 30px; line-height: 1; }
.trust-row span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--body); transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red); color: var(--body); }
.svc-card img { width: 64px; height: 48px; object-fit: contain; margin-bottom: 14px; }
.svc-card h3 { font-size: 22px; margin-bottom: 6px; }
.svc-card p { flex: 1; font-size: 15px; margin-bottom: 12px; }
.svc-more { font-family: var(--heading-font); font-weight: 700; text-transform: uppercase; color: var(--red); letter-spacing: .5px; }
.svc-card.static { cursor: default; } .svc-card.static:hover { transform: none; border-color: var(--line); box-shadow: none; }

/* ---------- Checks list ---------- */
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: #000; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.checks.two-up { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 24px; }

/* ---------- Reviews ---------- */
.review-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; }
.review-track .review { flex: 0 0 min(85%, 360px); scroll-snap-align: start; }
.review-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review { margin: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.stars { color: var(--yellow); font-size: 18px; letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-size: 16px; }
.review footer { font-weight: 700; color: var(--ink); }
.review time { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.reviews .center .btn { margin: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background-color: #000; background-position: center 40%; background-size: cover; background-repeat: no-repeat; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; max-width: 820px; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.page-hero p { font-size: clamp(17px, 1.8vw, 20px); max-width: 720px; color: #e8eaee; }
.page-hero .cta-row { margin-bottom: 0; }
.crumbs { background: var(--bg-alt); font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--red); }
.crumbs span { color: var(--muted); margin: 0 6px; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; margin: 0; }

/* ---------- Service page layout ---------- */
.svc-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .svc-layout { grid-template-columns: 1.6fr 1fr; } .svc-side { position: sticky; top: 90px; } }
.svc-main h2 { font-size: 30px; margin-top: 34px; }
.svc-main h2:first-child { margin-top: 0; }
.side-box { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 24px; margin-top: 20px; }
.side-box h3 { font-size: 20px; margin-bottom: 8px; }
.side-box p { margin-bottom: 10px; }
.side-box iframe { width: 100%; height: 220px; border: 0; border-radius: 6px; margin-top: 8px; }
.big-phone { font-family: var(--heading-font); font-weight: 700; font-size: 30px; color: var(--ink); text-decoration: none; }
.big-phone:hover { color: var(--red); }
.faqs { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 32px 14px 0; list-style: none; position: relative; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 26px; color: var(--red); }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 16px; font-size: 16px; }

/* ---------- Forms page ---------- */
.form-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.form-card { display: flex; flex-direction: column; background: var(--bg-alt); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--body); border: 2px solid transparent; transition: border-color .2s, transform .15s; }
.form-card:hover { border-color: var(--red); transform: translateY(-2px); color: var(--body); }
.form-card h3 { font-size: 21px; margin-bottom: 8px; }
.form-card p { flex: 1; font-size: 15px; margin-bottom: 12px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #000; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-note { text-align: center; color: var(--muted); margin-top: 20px; font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.93); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; padding: 12px 20px; line-height: 1; }
.lightbox-close { top: 8px; right: 8px; } .lightbox-prev { left: 4px; top: 50%; transform: translateY(-50%); } .lightbox-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Maps / contact ---------- */
.maps { display: grid; gap: 16px; }
@media (min-width: 700px) { .maps { grid-template-columns: 1fr 1fr; } }
.maps iframe { width: 100%; height: 300px; border: 0; border-radius: 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; text-align: center; padding: 60px 16px; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 18px; opacity: .95; }
.cta-band .cta-row { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #b8bcc4; font-size: 15px; padding: 56px 0 110px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-grid img { width: 140px; margin-bottom: 12px; }
.footer-grid h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.footer-grid h3 + p + h3 { margin-top: 18px; }
.footer-grid ul li { margin-bottom: 4px; }
.footer a { color: #e2e5ea; text-decoration: none; } .footer a:hover { color: var(--yellow); }
.footer-grid p { margin: 0 0 8px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid #2f3339; margin-top: 36px; padding-top: 18px; text-align: center; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ---------- Mobile sticky bar + to-top ---------- */
.mobile-bar { display: none; }
.to-top { position: fixed; right: 16px; bottom: 80px; z-index: 90; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(0,0,0,.7); color: #fff; text-decoration: none; border-radius: 6px; opacity: 0; transition: opacity .3s; }
.to-top.show { opacity: 1; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; padding: 60px 16px 100px; }
.legal h2 { font-size: 30px; margin-top: 44px; } .legal h3 { font-size: 21px; margin-top: 28px; }

/* ---------- Mobile ---------- */
@media (max-width: 959px) {
  .topbar-links { display: none; }
  .nav { flex-wrap: wrap; justify-content: space-between; }
  .brand img { width: 120px; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span { width: 28px; height: 3px; background: #fff; border-radius: 2px; }
  .menu { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; margin: 8px 0 4px; }
  .menu.open { display: flex; }
  .menu > li { flex-wrap: wrap; }
  .menu a { flex: 1; padding: 12px 10px; }
  .sub { position: static; width: 100%; min-width: 0; box-shadow: none; border-radius: 0; }
  .has-sub:hover .sub { display: none; } .has-sub.open .sub { display: block; }
  .section { padding: 52px 0; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--red); box-shadow: 0 -4px 20px rgba(0,0,0,.35); }
  .mobile-bar a { color: #fff; text-decoration: none; text-align: center; font-family: var(--heading-font); font-weight: 700; text-transform: uppercase; font-size: 15px; padding: 14px 6px; border-right: 1px solid rgba(255,255,255,.2); }
  .mobile-bar a:last-child { border-right: 0; background: var(--yellow); color: #000; }
  .footer { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .svc-card { transition: none; } }
