/* Hercules Automobiles — built to match "Hercules Automobiles Responsive Website Mockup.png". Mobile-first. */
:root {
  --navy: #12285a;
  --navy-dk: #0d1f47;
  --navy-hero: #0f2350;
  --gold: #d6a531;
  --gold-hi: #e4b544;
  --ink: #13264f;
  --text: #2c3a55;
  --muted: #5d6b85;
  --tint: #eef2f7;
  --card: #f2f5f9;
  --border: #dfe5ee;
  --wa: #1fae4b;
  --wa-hi: #189a41;
  --line-d: rgba(255,255,255,.18);
  --wrap: 1180px;
  --gutter: 16px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
  --bar-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text); font: 400 16px/1.55 var(--body); overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); line-height: 1; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Titles: italic condensed uppercase navy */
.title { font-style: italic; font-weight: 800; text-transform: uppercase; color: var(--ink); font-size: clamp(28px, 7.5vw, 34px); line-height: .98; letter-spacing: .2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 4px; border: 2px solid transparent;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.btn .ic { width: 20px; height: 20px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-gold .ic { stroke-width: 2.2; }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hi); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Header (white) */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand-logo { width: 54px; height: auto; }
.brand-name { padding-left: 14px; border-left: 1.5px solid var(--navy); font: 700 15px/1.2 var(--body); color: var(--ink); white-space: nowrap; }
.menu-btn { width: 48px; height: 48px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; margin-right: -10px; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0; display: flex; flex-direction: column;
  padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(13,31,71,.12);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: 17px; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--gold); }
.nav-cta { margin-top: 16px; }

/* Hero (navy) */
.hero { position: relative; background: var(--navy-hero); color: #fff; overflow: hidden; }
.hero-media { display: none; }
.hero-in { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 22px; }
.hero h1 { font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(36px, 10vw, 54px); line-height: .96; }
.hero h1::after { content: ""; display: block; width: 52px; height: 3px; background: var(--gold); margin-top: 14px; }
.lead { margin-top: 14px; font-size: 16.5px; line-height: 1.45; color: #e7ecf5; max-width: 30em; }
.cta-row { display: grid; gap: 12px; margin-top: 20px; }
.cta-row .btn { width: 100%; }
.brands-line { margin-top: 16px; font-weight: 600; text-align: center; font-size: 15.5px; }
.brands-line i { font-style: normal; margin: 0 6px; }
.hero-img-m { width: 100%; height: auto; aspect-ratio: 640 / 222; object-fit: cover; }

/* Facts */
.facts { background: var(--tint); border-bottom: 1px solid var(--border); }
.facts-in { display: grid; padding-top: 6px; padding-bottom: 6px; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 8px 4px; font-weight: 600; color: var(--ink); font-size: 15px; }
.facts .ic { color: var(--gold); width: 24px; height: 24px; stroke-width: 1.8; }
.facts .ic-fill { fill: currentColor; stroke: none; }

/* About */
.about { padding: 28px 0; background: #fff; }
.about-in { display: grid; gap: 14px; }
.about-img { order: 2; width: 100%; height: auto; aspect-ratio: 586 / 138; object-fit: cover; }
.about-text { order: 1; display: grid; gap: 10px; }
.about-text p { font-size: 15px; color: var(--text); }

/* Products */
.products { padding: 8px 0 32px; background: #fff; }
.products-in { display: grid; gap: 16px; }
.title-bar::before { content: ""; display: none; width: 38px; height: 3px; background: var(--gold); margin-bottom: 14px; }
.cat-grid { display: grid; gap: 8px; }
.cat-grid a {
  display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 8px 14px;
  background: var(--card); border: 1px solid var(--border); text-decoration: none;
  font-weight: 700; color: var(--ink); transition: border-color .15s, background .15s;
}
.cat-grid a:hover { border-color: var(--gold); background: #fffaf0; }
.cat-grid .ic { color: var(--gold); width: 30px; height: 30px; stroke-width: 1.5; }
.cat-grid span { flex: 1; }
.cat-img { width: 84px; height: 56px; flex: none; object-fit: contain; mix-blend-mode: multiply; }
.cat-grid a { padding-left: 8px; }
.cat-grid .chev { width: 18px; height: 18px; color: var(--ink); stroke-width: 2.2; }

/* Strip */
.strip { background: #222; overflow: hidden; }
.strip img { width: 100%; height: 84px; object-fit: cover; }

/* Fleets (navy) */
.fleets { background: var(--navy); color: #fff; padding: 32px 0; }
.fleets-in { display: grid; gap: 24px; }
.fleets .title { color: #fff; }
.title-slash { position: relative; }
.fleet-types { display: grid; grid-template-columns: repeat(4, 1fr); }
.fleet-types li { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; font-weight: 600; font-size: 14px; line-height: 1.2; padding: 0 4px; }
.fleet-types li + li { border-left: 1px solid var(--line-d); }
.fleet-types .ic { color: var(--gold); width: 34px; height: 34px; }
.badge { position: relative; justify-self: center; width: 116px; height: 116px; display: grid; place-items: center; color: var(--gold); }
.badge .laurel { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge span { position: relative; text-align: center; font: italic 800 17px/1.02 var(--head); text-transform: uppercase; color: #fff; }
.checks { display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.checks .ic { color: var(--gold); width: 20px; height: 20px; stroke-width: 3; }

/* Why */
.why { background: #fff; padding: 28px 0; border-bottom: 1px solid var(--border); }
.why-in { display: grid; gap: 18px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.why-list li { display: flex; align-items: center; gap: 12px; }
.why-list b { font: italic 700 38px/1 var(--head); color: var(--gold); }
.why-list span { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.2; }

/* Contact (tint) */
.contact { background: var(--tint); padding: 32px 0; }
.contact-in { display: grid; gap: 20px; }
.contact-list { display: grid; gap: 2px; margin-bottom: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; min-height: 36px; font-weight: 500; color: var(--ink); flex-wrap: wrap; }
.contact-list .ic { color: var(--ink); width: 18px; height: 18px; }
.contact-list .who { min-width: 62px; }
.contact-list a { text-decoration: none; word-break: break-all; }
.contact-list a:hover { color: var(--gold); }
.contact-info .btn-wa { width: 100%; }
.contact-list .addr { align-items: flex-start; flex-wrap: nowrap; padding-top: 6px; line-height: 1.4; }
.contact-list .addr .ic { color: var(--gold); margin-top: 1px; }
.contact-list .addr a { white-space: normal !important; word-break: normal; }
.enquiry { display: grid; gap: 12px; }
.field-row { display: grid; gap: 12px; }
input, textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff;
  border: 1px solid #c9d2e0; border-radius: 3px; padding: 11px 12px; min-height: 46px;
}
input::placeholder, textarea::placeholder { color: #5d6b85; }
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,165,49,.25); }
.invalid { border-color: #dc2626 !important; }
.form-error { color: #b91c1c; font-size: 14px; }
.form-foot { display: grid; gap: 10px; }
.form-foot .btn { width: 100%; }
.form-foot .form-error { margin: 0; }

/* Footer */
.site-footer { background: var(--navy-dk); color: #fff; padding: 22px 0; }
.footer-in { display: grid; gap: 10px; justify-items: start; }
.footer-logo { width: 52px; height: auto; }
.footer-name { font-weight: 700; font-size: 15px; }
.footer-group { font-size: 13.5px; color: #cfd7e6; }
.legal { font-size: 12px; color: #cfd7e6; line-height: 1.5; }

/* Mobile bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--navy-dk);
}
.mobile-bar .btn { width: 100%; min-height: 54px; font-size: 19px; border-radius: 6px; }
.mobile-bar .btn .ic { width: 24px; height: 24px; }
.mobile-bar .btn-gold { color: var(--ink); }

@media (max-width: 599px) { .why-list span br { display: none; } }

/* ---------- ≥ 600px ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .cta-row { display: flex; flex-wrap: wrap; }
  .cta-row .btn { width: auto; }
  .brands-line { text-align: left; }
  .facts-in { grid-template-columns: 1fr 1fr; padding: 0 var(--gutter); }
  .facts li { justify-content: center; padding: 14px 6px; }
  .facts li:nth-child(even) { border-left: 1px solid #c5cedd; }
  .facts li:nth-child(-n+2) { border-bottom: 1px solid #c5cedd; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .why-list { grid-template-columns: repeat(4, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-foot { grid-template-columns: 1fr auto; align-items: center; gap: 16px; }
  .form-foot .btn { grid-column: 2; }
  .form-foot .form-error { grid-column: 1; grid-row: 1; }
  .contact-info .btn-wa { width: auto; }
  .strip img { height: 110px; }
}

/* ---------- ≥ 960px: desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .mobile-bar, .menu-btn, .hero-img-m { display: none; }
  .brand-logo { width: 66px; }
  .brand-name { font-size: 19px; padding-left: 18px; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 36px; padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 6px 0; border: 0; font-size: 15px; font-weight: 600; }
  .nav-cta { margin: 0 0 0 4px; }

  /* Hero: text left, photo right fading into navy */
  .hero { min-height: 360px; }
  .hero-media {
    display: block; position: absolute; top: 0; right: 0; bottom: 0; width: 56%;
    background: url("assets/hero.jpg") center 60% / cover no-repeat;
  }
  .hero-media::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--navy-hero) 0%, rgba(15,35,80,.75) 14%, rgba(15,35,80,0) 38%);
  }
  .hero-in { padding-top: 34px; padding-bottom: 30px; }
  .hero h1 { font-size: 54px; }
  .lead { font-size: 17px; max-width: 30em; }
  .cta-row { gap: 16px; margin-top: 22px; }
  .cta-row .btn { min-width: 210px; }
  .cta-row .btn-outline { min-width: 245px; }
  .brands-line { font-size: 17px; margin-top: 18px; }

  .facts-in { grid-template-columns: repeat(4, 1fr); }
  .facts li { font-size: 16px; padding: 18px 6px; border-bottom: 0 !important; white-space: nowrap; }
  .facts li + li { border-left: 1px solid #c5cedd; }

  .about { padding: 16px 0; }
  .about-in { grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
  .about-img { order: 0; aspect-ratio: auto; height: 172px; }
  .about-text { order: 0; }
  .about-text p { font-size: 16px; }

  .products { padding: 16px 0 18px; }
  .products-in { grid-template-columns: 200px 1fr; gap: 24px; align-items: center; }
  .title-bar::before { display: block; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
  .cat-grid a { min-height: 76px; font-size: 16px; }
  .cat-img { width: 96px; height: 62px; }

  .strip img { height: 120px; }

  .fleets { padding: 22px 0; }
  .fleets-in { grid-template-columns: 240px 1.35fr auto 1.15fr; align-items: center; gap: 0; }
  .fleet-types li { white-space: nowrap; }
  .title-slash::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 3px; height: 62px;
    background: var(--gold); transform: translateY(-50%) skewX(-22deg);
  }
  .fleet-types { padding-right: 22px; }
  .fleet-types li { font-size: 14px; }
  .badge { width: 120px; height: 120px; margin: 0 22px; }
  .fleets-in .checks { padding-left: 22px; border-left: 1px solid var(--line-d); }
  .checks li { font-size: 14.5px; }

  .why { padding: 16px 0; }
  .why-in { grid-template-columns: 200px 1fr; align-items: center; gap: 24px; }
  .why-list { gap: 0; }
  .why-list li { justify-content: center; padding: 6px 12px; }
  .why-list li + li { border-left: 1px solid #c5cedd; }
  .why-list b { font-size: 40px; }

  .contact { padding: 26px 0; }
  .contact-in { grid-template-columns: 200px 400px 1fr; gap: 0; align-items: start; }
  .contact-list li { flex-wrap: nowrap; }
  .contact-list a { word-break: normal; white-space: nowrap; }
  .contact .title { align-self: start; margin-top: 2px; }
  .contact-info { padding-right: 32px; border-right: 1px solid #c5cedd; }
  .enquiry { padding-left: 40px; }
  .form-foot .btn { width: auto; min-width: 200px; }

  .site-footer { padding: 16px 0; }
  .footer-in { grid-template-columns: auto auto 1fr auto; align-items: center; gap: 22px; }
  .footer-name { padding-left: 22px; border-left: 1px solid var(--line-d); }
  .footer-group { padding-left: 22px; border-left: 1px solid var(--line-d); white-space: nowrap; }
  .footer-name { white-space: nowrap; }
  .legal { text-align: right; }
}

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