/* layout.css — container, header, footer, lane rule, page structure */

/* ── Container ───────────────────────────────────────────────────── */
.spd-container {
  max-width: var(--sp-container);
  margin: 0 auto;
  padding: 0 var(--sp-gutter);
}

/* ── Section ─────────────────────────────────────────────────────── */
.spd-section { padding: var(--sp-space-xl) 0; }
.spd-section--surface {
  background: var(--sp-surface);
  border-top: 1px solid var(--sp-hairline);
  border-bottom: 1px solid var(--sp-hairline);
}

/* ── Lane rule ───────────────────────────────────────────────────── */
/*
 * The page rhythm device. Short solid left bar | eyebrow label gap | dashed
 * road-marking stretch. Appears at the top of every major section.
 */
.lane-rule {
  display: grid;
  grid-template-columns: 2.5rem auto 1fr;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 2rem;
}
.lane-rule::before { content: ''; height: 1px; background: var(--sp-ink); }
.lane-rule::after {
  content: ''; height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--sp-hairline) 0, var(--sp-hairline) 1.5rem,
    transparent 1.5rem, transparent 2.75rem
  );
}
.lane-rule__label {
  font-family: var(--sp-font-body);
  font-size: var(--sp-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sp-muted);
  white-space: nowrap;
}
.lane-rule--inv::before { background: rgba(244,242,236,0.4); }
.lane-rule--inv::after {
  background: repeating-linear-gradient(
    to right, rgba(244,242,236,0.2) 0, rgba(244,242,236,0.2) 1.5rem,
    transparent 1.5rem, transparent 2.75rem
  );
}
.lane-rule--inv .lane-rule__label { color: rgba(244,242,236,0.4); }
.lane-rule--blue::before { background: rgba(255,255,255,0.4); }
.lane-rule--blue::after {
  background: repeating-linear-gradient(
    to right, rgba(255,255,255,0.2) 0, rgba(255,255,255,0.2) 1.5rem,
    transparent 1.5rem, transparent 2.75rem
  );
}
.lane-rule--blue .lane-rule__label { color: rgba(255,255,255,0.4); }
.lane-rule--citrus::before { background: rgba(20,24,29,0.3); }
.lane-rule--citrus::after {
  background: repeating-linear-gradient(
    to right, rgba(20,24,29,0.2) 0, rgba(20,24,29,0.2) 1.5rem,
    transparent 1.5rem, transparent 2.75rem
  );
}
.lane-rule--citrus .lane-rule__label { color: rgba(20,24,29,0.45); }

/* ── Site header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--sp-paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--sp-ease-md), box-shadow var(--sp-ease-md);
}
.site-header.is-scrolled {
  border-color: var(--sp-hairline);
  box-shadow: 0 2px 12px rgba(20,24,29,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sp-header-h);
}

/* Logo */
.site-logo {
  font-family: var(--sp-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--sp-ink);
}
.site-logo__dot { color: var(--sp-blue); }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav__list { display: flex; align-items: center; gap: 2rem; }
.primary-nav__list a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--sp-ink);
  transition: color var(--sp-ease);
}
.primary-nav__list a:hover,
.primary-nav__list a[aria-current="page"] { color: var(--sp-blue); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--sp-ink);
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--sp-header-h); left: 0; right: 0;
    background: var(--sp-paper);
    border-bottom: 1px solid var(--sp-hairline);
    padding: 1.5rem var(--sp-gutter);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav__list { flex-direction: column; align-items: flex-start; gap: 1rem; width: 100%; }
  .primary-nav__list a { font-size: 1.125rem; }
}

/* ── Content offset (below fixed header) ─────────────────────────── */
.site-main { padding-top: var(--sp-header-h); }

/* ── Page hero ───────────────────────────────────────────────────── */
.page-hero {
  padding-top: var(--sp-space-xl);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--sp-hairline);
}
.page-hero__inner { max-width: 760px; }
.page-hero__lead { font-size: 1.125rem; color: var(--sp-muted); max-width: 560px; margin-top: 1rem; }

/* ── Breadcrumb ──────────────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--sp-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--sp-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { text-decoration: none; color: var(--sp-muted); }
.breadcrumb a:hover { color: var(--sp-ink); }

/* ── Site footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--sp-ink);
  color: var(--sp-paper);
  padding: var(--sp-space-xl) 0 var(--sp-space-md);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244,242,236,0.1);
  margin-bottom: 2rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo {
  font-family: var(--sp-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--sp-paper);
  display: block;
  margin-bottom: 1rem;
}
.footer__tagline { font-size: 0.875rem; color: rgba(244,242,236,0.45); max-width: 220px; line-height: 1.55; }
.footer__col-title { font-size: var(--sp-label); text-transform: uppercase; letter-spacing: 0.12em; color: rgba(244,242,236,0.35); margin-bottom: 1rem; }
.footer__col a { display: block; text-decoration: none; font-size: 0.875rem; color: rgba(244,242,236,0.65); margin-bottom: 0.5rem; transition: color var(--sp-ease); }
.footer__col a:hover { color: var(--sp-paper); }
.footer__contact-line { font-family: var(--sp-font-mono); font-size: 0.775rem; color: rgba(244,242,236,0.55); margin-bottom: 0.5rem; }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
.footer__scope { font-family: var(--sp-font-mono); font-size: 0.675rem; color: rgba(244,242,236,0.28); max-width: 620px; line-height: 1.65; }
.footer__legal { font-size: 0.8125rem; color: rgba(244,242,236,0.28); white-space: nowrap; }

/* ── Home page hero — split panel ────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--sp-header-h));
}

/* LEFT: ink text panel */
.hero__panel-text {
  background: var(--sp-ink);
  display: flex;
  align-items: center;
  /* Align text edge with container on wide screens, use gutter on narrow */
  padding: clamp(3.5rem, 7vw, 6rem)
           clamp(1.25rem, 3vw, 2.5rem)
           clamp(3.5rem, 7vw, 6rem)
           max(var(--sp-gutter), calc((100vw - var(--sp-container)) / 2 + var(--sp-gutter)));
}
.hero__text-inner { max-width: 520px; width: 100%; }

.hero__eyebrow {
  font-family: var(--sp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-citrus);
  margin: 0 0 1.5rem;
}

.hero__heading {
  font-family: var(--sp-font-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}

.hero__lead {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  color: rgba(244,242,236,0.68);
  line-height: 1.72;
  max-width: 440px;
  margin: 0 0 2.25rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.75rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  font-family: var(--sp-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity var(--sp-ease), border-color var(--sp-ease), color var(--sp-ease);
}
.hero__cta--primary {
  background: var(--sp-citrus);
  color: var(--sp-ink);
}
.hero__cta--primary:hover { opacity: 0.88; }
.hero__cta--ghost {
  background: transparent;
  color: rgba(244,242,236,0.8);
  border: 1px solid rgba(244,242,236,0.22);
}
.hero__cta--ghost:hover {
  border-color: rgba(244,242,236,0.55);
  color: #ffffff;
}

/* Pillar strip */
.hero__pillars {
  display: flex;
  gap: 0 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.625rem;
  border-top: 1px solid rgba(244,242,236,0.1);
  padding-top: 1.5rem;
}
.hero__pillar-sep {
  width: 1px;
  height: 1rem;
  background: rgba(244,242,236,0.15);
  flex-shrink: 0;
}
.hero__pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  transition: opacity var(--sp-ease);
}
.hero__pillar-link:hover { opacity: 0.75; }
.hero__pillar-num {
  font-family: var(--sp-font-mono);
  font-size: 0.65rem;
  color: var(--sp-citrus);
  letter-spacing: 0.04em;
}
.hero__pillar-name {
  font-family: var(--sp-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.38);
}

/* RIGHT: full-height photo panel */
.hero__panel-image {
  position: relative;
  overflow: hidden;
  background: var(--sp-ink);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__panel-text {
    padding: clamp(2.5rem, 5vw, 4rem) var(--sp-gutter);
  }
  .hero__text-inner { max-width: 600px; }
  .hero__panel-image {
    height: 55vw;
    min-height: 260px;
    max-height: 480px;
  }
  .hero__photo { position: absolute; }
}
@media (max-width: 520px) {
  .hero__panel-image { height: 65vw; }
  .hero__heading { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hero__pillars { gap: 0 1rem; }
}

/* ── Home page: build-band image ─────────────────────────────────── */
.build-band-img { overflow: hidden; }
.build-band-img__img {
  width: 100%;
  height: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

/* ── Home page: fleet image grid ─────────────────────────────────── */
.fleet-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fleet-images__item:first-child { grid-column: 1 / -1; }
.fleet-images__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.fleet-images__item:first-child img { height: 260px; }
