/* ===== Hilo Flatbed Towing ===== */
:root {
  --navy-950: #0a1428;
  --navy-900: #0d1b35;
  --navy-800: #112344;
  --navy-700: #16305e;
  --gold: #f7b500;
  --gold-deep: #e6a700;
  --ink: #1d2c44;
  --muted: #5c6b81;
  --line: #e3e8f0;
  --bg: #f4f6fa;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(13, 27, 53, .08);
  --shadow-lg: 0 18px 50px rgba(13, 27, 53, .22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Archivo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }

.container { width: min(1160px, 100% - 48px); margin-inline: auto; }

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 15px/1 "Archivo", sans-serif;
  padding: 14px 24px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold); color: var(--navy-950);
  box-shadow: 0 6px 18px rgba(247, 181, 0, .35);
}
.btn-gold:hover { background: #ffc41d; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(247, 181, 0, .45); }
.btn-outline {
  background: rgba(13, 27, 53, .45); color: var(--white);
  border-color: var(--gold);
}
.btn-outline:hover { background: rgba(247, 181, 0, .14); transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(10, 20, 40, .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 900; font-size: 27px; letter-spacing: .04em; color: var(--white); }
.brand-sub {
  margin-top: 4px; font-weight: 800; font-size: 10.5px; letter-spacing: .14em;
  color: var(--gold); border: 1.5px solid var(--gold); border-radius: 3px;
  padding: 2px 5px; text-align: center;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: #cdd6e6; text-decoration: none; font-weight: 600; font-size: 14.5px;
  padding: 6px 0; position: relative; transition: color .18s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--gold); transition: right .22s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--white); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-phone { margin-left: 8px; padding: 11px 18px; font-size: 14.5px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(92deg, rgba(10, 20, 40, .97) 0%, rgba(10, 20, 40, .9) 30%, rgba(10, 20, 40, .55) 52%, rgba(10, 20, 40, .12) 72%, rgba(10, 20, 40, .25) 100%),
    url("../assets/hero-truck.jpg") right 38% / cover no-repeat;
}
.hero-inner { padding: 72px 0 120px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.08;
  letter-spacing: -.01em; text-shadow: 0 3px 18px rgba(0, 0, 0, .45);
}
.hero-sub { margin-top: 18px; font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; color: #e8edf6; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-badges {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: rgba(8, 15, 31, .82); backdrop-filter: blur(4px);
  border-top: 1px solid rgba(247, 181, 0, .25);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: space-between; padding: 14px 0; }
.badge-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: #e8edf6; }
.badge-check {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center;
}
.badge-check svg { width: 14px; height: 14px; fill: var(--navy-950); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-title {
  display: flex; align-items: center; gap: 22px; justify-content: center;
  font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--navy-900);
  margin-bottom: 14px; text-align: center;
}
.section-title::before, .section-title::after {
  content: ""; height: 3px; width: clamp(40px, 8vw, 110px);
  background: var(--gold); border-radius: 2px;
}
.section-lede { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

.block-title { font-size: clamp(21px, 2.4vw, 26px); font-weight: 800; color: var(--navy-900); margin-bottom: 28px; }
.block-title .rule { display: inline-block; vertical-align: middle; height: 3px; width: 34px; background: var(--gold); border-radius: 2px; margin: 0 14px; }

/* ===== Services ===== */
.services { background: var(--bg); }
.services .section-title { margin-bottom: 40px; }
.services-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1100px) { .svc-card h3 { min-height: 42px; } }

.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.svc-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.svc-ico {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy-900);
  display: grid; place-items: center; flex: none;
}
.svc-ico svg { width: 24px; height: 24px; fill: var(--white); }
.svc-card h3 { font-size: 14.5px; font-weight: 800; color: var(--navy-900); line-height: 1.25; display: flex; align-items: center; justify-content: center; }
.svc-card img { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; }
.svc-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: auto; }

/* ===== Why / How ===== */
.why-how { padding: 64px 0; }
.why-how-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 1024px) {
  .why-how-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .how { border-left: 1px solid var(--line); padding-left: 48px; }
}
.why .block-title { text-align: center; }
.why .block-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin: 10px auto 0; border-radius: 2px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 18px; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } .why-item p { font-size: 12.5px; } }
.why-item { text-align: left; }
.why-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #eef2f9; margin-bottom: 10px; }
.why-ico svg { width: 24px; height: 24px; fill: var(--navy-800); }
.why-item h3 { font-size: 14.5px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.why-item p { font-size: 13px; color: var(--muted); }

.how .block-title { text-align: center; }
.how-grid { display: flex; align-items: flex-start; gap: 8px; }
.how-step { flex: 1; text-align: center; }
.step-top { position: relative; display: inline-block; margin-bottom: 12px; }
.step-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #e9eef7; }
.step-ico svg { width: 28px; height: 28px; fill: var(--navy-800); }
.step-num {
  position: absolute; top: -8px; left: -12px; z-index: 1;
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold);
  color: var(--navy-950); font-weight: 800; font-size: 14px;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.how-step h3 { font-size: 14.5px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.how-step p { font-size: 13px; color: var(--muted); }
.how-arrow { color: #9fb0c8; padding-top: 22px; flex: none; }
.how-arrow svg { width: 34px; height: 20px; }

/* ===== Service area strip ===== */
.area-strip { background: #021931; color: var(--white); padding: 26px 0; position: relative; overflow: hidden; }
.area-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.area-label { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; color: var(--gold); }
.area-label .pin { width: 30px; height: 30px; fill: var(--gold); filter: drop-shadow(0 2px 6px rgba(247,181,0,.4)); }
.area-towns { flex: 1; text-align: center; min-width: 280px; }
.area-towns ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-weight: 700; font-size: 15px; }
.area-towns li + li::before { content: "•"; color: var(--gold); margin: 0 14px; }
.area-towns p { font-size: 13px; color: #aebad0; margin-top: 4px; }
.island { width: 150px; height: auto; flex: none; margin: -26px 0 -26px auto; align-self: stretch; object-fit: contain; }

/* ===== Testimonials ===== */
.testimonials { background: var(--bg); padding: 56px 0; }
.testi-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.testi-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stars { color: var(--gold); font-size: 19px; letter-spacing: 4px; margin-bottom: 10px; }
.testi-card blockquote { font-size: 14px; color: var(--ink); line-height: 1.6; }
.testi-card figcaption { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ===== Pricing ===== */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 980px; margin: 0 auto; }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--gold); }
.price-card h3 { font-size: 17px; font-weight: 800; color: var(--navy-900); }
.price { margin: 12px 0 16px; color: var(--muted); font-size: 14px; }
.price strong { display: block; font-size: 34px; font-weight: 900; color: var(--navy-900); line-height: 1.1; }
.price-card ul { text-align: left; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.price-card li { padding-left: 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 800; }
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.pricing-note a { color: var(--navy-800); font-weight: 700; }

/* ===== About ===== */
.about { background: var(--bg); }
.about-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about-inner { grid-template-columns: 1.1fr 1fr; } }
.about-copy p { color: var(--muted); margin-bottom: 14px; max-width: 56ch; }
.about-copy .block-title { margin-bottom: 16px; }
.about-copy .block-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 10px; border-radius: 2px; }
.about-stats { display: flex; gap: 36px; margin-top: 24px; flex-wrap: wrap; }
.about-stats strong { display: block; font-size: 26px; font-weight: 900; color: var(--navy-900); }
.about-stats span { font-size: 13px; color: var(--muted); }
.about-cta { display: grid; gap: 18px; justify-items: center; }
.about-cta img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; aspect-ratio: 16 / 7; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-900); color: #c6d0e2; }
.footer-grid {
  display: grid; gap: 40px; padding: 54px 0 40px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}
.f-brand .brand { margin-bottom: 14px; }
.f-brand .brand-icon { width: 54px; }
.f-brand p { font-size: 14px; line-height: 1.6; }
.f-col h3 { color: var(--gold); font-size: 15px; font-weight: 800; letter-spacing: .02em; margin-bottom: 16px; }
.f-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14.5px; }
.f-contact svg { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.f-contact a { color: #e3e9f4; text-decoration: none; }
.f-contact a:hover { color: var(--gold); }
.f-links { columns: 2; column-gap: 28px; }
.f-links li { margin-bottom: 10px; }
.f-links a { color: #c6d0e2; text-decoration: none; font-size: 14.5px; transition: color .15s; }
.f-links a:hover { color: var(--gold); }
.hours-row { display: flex; gap: 12px; font-size: 14.5px; }
.hours-row svg { width: 22px; height: 22px; fill: var(--gold); flex: none; margin-top: 2px; }
.hours-row strong { color: var(--white); }

.f-badge {
  position: relative; justify-self: center; align-self: center;
  width: 118px; text-align: center; color: var(--gold);
}
.f-badge > svg { width: 118px; height: 118px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.f-badge span {
  position: absolute; inset: 0; display: grid; place-content: center;
  font-weight: 900; font-size: 15px; line-height: 1.25; letter-spacing: .04em;
  color: var(--white); padding-bottom: 18px;
}
.f-badge-check {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 26px !important; height: 26px !important; fill: var(--gold) !important; stroke: none !important;
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #93a1ba; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 15, 31, .72); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; background: var(--white); border-radius: 16px;
  width: min(640px, 100%); max-height: 90vh; overflow: auto;
  padding: 36px; box-shadow: var(--shadow-lg);
  animation: modalIn .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--navy-900); }
.modal h2 { color: var(--navy-900); font-weight: 800; font-size: 26px; }
.modal-sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 22px; }
#serviceForm label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-900); margin-bottom: 16px; }
#serviceForm input, #serviceForm select, #serviceForm textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font: 500 15px "Archivo", sans-serif; color: var(--ink);
  background: #fafbfd; transition: border-color .15s, box-shadow .15s;
}
#serviceForm input:focus, #serviceForm select:focus, #serviceForm textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(247, 181, 0, .2);
}
#serviceForm input.invalid, #serviceForm select.invalid { border-color: #d93025; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-error { color: #d93025; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.form-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.form-note a { font-weight: 700; color: var(--navy-800); }
.form-success { text-align: center; padding: 28px 0 12px; }
.success-check {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; background: var(--gold);
}
.success-check svg { width: 34px; height: 34px; fill: var(--navy-950); }
.form-success h3 { font-size: 22px; font-weight: 800; color: var(--navy-900); margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.form-success a { font-weight: 700; color: var(--navy-800); }

body.modal-open { overflow: hidden; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Mobile nav ===== */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.08);
    padding: 10px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .22s, transform .22s;
    box-shadow: 0 24px 40px rgba(8, 15, 31, .5);
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-link::after { display: none; }
  .nav-phone { margin: 16px 0 0; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .hero-inner { padding: 56px 0 150px; }
  .badge-row { justify-content: flex-start; gap: 8px 24px; }
  .how-grid { flex-direction: column; gap: 26px; }
  .how-arrow { display: none; }
  .island { margin: 0 auto; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
