/* ==========================================================================
   HHM Motors — Hydrogen Heritage Motors
   Palette (brand sheet): Navy #0B1F3A · Blue #009FD2 · Ink #0A0D10
                          Warm Grey #EBE6E1 · Off White #F8F7F4
   Type: Instrument Sans (primary) · IBM Plex Mono (technical)
   Layout: alternating full-width image bands / white text bands
   ========================================================================== */

:root {
  --navy: #0B1F3A;
  --blue: #009FD2;
  --ink: #0A0D10;
  --warm-grey: #EBE6E1;
  --off-white: #F8F7F4;
  --line: #DDD8D2;
  --text-soft: #445062;
  --wrap: 1180px;
  --gutter: 28px;
  --header-h: 84px;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  width: min(100%, var(--wrap));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ------------------------------- Header --------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}

.brand-link { display: inline-flex; align-items: center; text-decoration: none; }

/* logo — cropped from the supplied brand PNG (real pixels, no redraw) */
.brand-crop {
  display: block;
  background-image: url('../images/hhm-logo.png');
  background-repeat: no-repeat;
  background-size: 1024px 576px;
}
.brand-crop-header { width: 132px; height: 76px; background-position: -40px -30px; }

.site-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; padding: 10px 12px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); border-color: var(--blue); outline: none; }
.site-nav a.is-active { border-color: var(--navy); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 1px; }

/* -------------------------------- Bands --------------------------------- */

.band { position: relative; }

/* image bands */
.band-image { height: clamp(320px, 52vw, 620px); overflow: hidden; background: var(--navy); }
.band-image-short { height: clamp(240px, 38vw, 460px); }
.band-hero { height: clamp(520px, calc(100vh - var(--header-h)), 820px); }

.band-img { width: 100%; height: 100%; object-fit: cover; }

.band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.15) 0%, rgba(11,31,58,0.55) 100%);
}
.band-overlay-soft {
  background: linear-gradient(180deg, rgba(11,31,58,0) 45%, rgba(11,31,58,0.5) 100%);
}

.band-caption {
  position: absolute; left: 0; right: 0; bottom: 30px;
}
.band-label {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: rgba(11,31,58,0.55);
  border-left: 3px solid var(--blue); padding: 8px 12px;
}

/* hero copy */
.band-hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(48px, 8vw, 96px);
  color: #fff;
}
.band-hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.94; letter-spacing: -0.05em; text-transform: uppercase; color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-sub {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 500;
  color: rgba(255,255,255,0.92);
}

/* text bands */
.band-text { background: #fff; padding: clamp(64px, 9vw, 120px) 0; }
.band-text-inner { max-width: 760px; }

.eyebrow {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue);
}
.eyebrow-light { color: #fff; opacity: 0.9; }

.band-text h2 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.05; letter-spacing: -0.035em; color: var(--navy);
}
.band-text p { margin: 0 0 18px; color: var(--text-soft); font-size: 1.05rem; }
.band-text p:last-child { margin-bottom: 0; }
.band-text .note { color: var(--navy); font-weight: 500; }
.band-text .hint { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: #6B7480; margin-top: 12px; }

/* pills / tags */
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; padding: 0; }
.pill-list a {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  font-weight: 600; font-size: 0.95rem; color: var(--navy); background: var(--off-white);
  transition: border-color .15s ease, color .15s ease;
}
.pill-list a:hover { border-color: var(--blue); color: var(--blue); }

.tag {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: var(--blue); padding: 6px 11px;
}

/* buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  padding: 14px 28px; border-radius: 3px; border: 1px solid transparent;
  transition: background-color .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; margin-top: 10px; }
.btn-primary:hover { background: var(--blue); }

/* contact */
.contact-block { font-style: normal; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.contact-email {
  font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; color: var(--navy);
  text-decoration: none; letter-spacing: -0.02em;
}
.contact-email:hover { color: var(--blue); }
.contact-place { color: var(--text-soft); font-size: 1.05rem; }

/* -------------------------------- Footer -------------------------------- */

.site-footer { background: var(--navy); color: #C9D3E0; padding: 44px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer-title { margin: 0 0 4px; font-weight: 700; color: #fff; }
.footer-text { margin: 0; font-size: 0.9rem; color: #9FB0C6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #C9D3E0; text-decoration: none;
}
.footer-nav a:hover { color: #fff; }
.footer-meta { margin: 0; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: #7E8FA6; }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand-crop-header { width: 116px; height: 67px; background-size: 899px 505px; background-position: -35px -26px; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--warm-grey); }
  .site-nav a.is-active { border-color: var(--warm-grey); color: var(--blue); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .band-hero { height: clamp(440px, 78vh, 640px); }
  .band-image { height: clamp(220px, 58vw, 360px); }
  .band-image-short { height: clamp(180px, 46vw, 280px); }
  .band-caption { bottom: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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