:root {
  --ink: #07181d;
  --ink-2: #0d262d;
  --cream: #faedcf;
  --orange: #e96532;
  --gold: #f2ad4c;
  --teal: #1f7779;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(250,237,207,.18);
}
.brand {
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .14em;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .8rem;
}
.nav a:hover { color: var(--gold); }

.hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
  padding: 64px 0 84px;
}
.hero-art img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.28));
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3 {
  line-height: .98;
  margin-top: 0;
  letter-spacing: -.035em;
}
h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  margin-bottom: 26px;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: 22px;
}
h3 {
  font-size: clamp(2rem, 3.5vw, 3.8rem);
  margin-bottom: 18px;
}
.lead, .section-heading > p:last-child, .body-copy, .contact > p {
  font-size: 1.1rem;
  color: rgba(250,237,207,.82);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 24px;
}
.button {
  border: 1px solid var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font: inherit;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.button.primary {
  background: var(--orange);
  color: var(--cream);
  border-color: var(--orange);
}
.button.ghost {
  background: transparent;
  color: var(--cream);
}
a.button:hover { transform: translateY(-2px); }
.disabled-button { opacity: .55; cursor: not-allowed; }
.tagline {
  margin-top: 34px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .2em;
  color: #48a5a7;
}
.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 110px 0;
  border-top: 1px solid rgba(250,237,207,.18);
}
.section-heading { max-width: 760px; margin-bottom: 48px; }
.product-card {
  background: var(--ink-2);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  border: 1px solid rgba(250,237,207,.14);
}
.product-placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(233,101,50,.2), rgba(31,119,121,.18)), var(--ink);
}
.product-placeholder span {
  color: rgba(250,237,207,.55);
  font-weight: 900;
  letter-spacing: .18em;
  font-size: .8rem;
}
.product-info { padding: clamp(36px, 6vw, 72px); align-self: center; }
.product-info > p:not(.eyebrow) { color: rgba(250,237,207,.8); }
.specs { margin: 32px 0; }
.specs div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(250,237,207,.14);
}
.specs dt { color: rgba(250,237,207,.68); }
.specs dd { margin: 0; font-weight: 700; }
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
}
.body-copy { max-width: 640px; }
.contact { text-align: center; max-width: 900px; }
.contact > p { max-width: 680px; margin: 0 auto 28px; }
.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(250,237,207,.18);
  color: rgba(250,237,207,.68);
  font-size: .86rem;
}

@media (max-width: 850px) {
  .hero, .product-card, .split { grid-template-columns: 1fr; }
  .hero { gap: 26px; padding-top: 34px; }
  .hero-art { max-width: 620px; margin: 0 auto; }
  .product-placeholder { min-height: 360px; }
  .split { gap: 16px; }
}
@media (max-width: 560px) {
  .site-header { align-items: flex-start; padding: 20px 0; min-height: auto; }
  .nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .nav a { font-size: .68rem; }
  .section { padding: 80px 0; }
  .footer { flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ---------- Desktop experience ----------
   On larger screens the site behaves like a set of full-screen panels
   instead of one long scrolling page. Mobile keeps the original scroll flow.
------------------------------------------------------------ */
@media (min-width: 901px) {
  html, body {
    height: 100%;
  }

  body {
    overflow: hidden;
  }

  .site-header {
    height: 84px;
    min-height: 84px;
  }

  main {
    height: calc(100vh - 84px);
    position: relative;
  }

  .desktop-panel {
    position: absolute;
    inset: 0;
    width: min(calc(100% - 48px), 1360px);
    margin: 0 auto;
    height: 100%;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    border-top: 0;
  }

  .desktop-panel.active-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    grid-template-columns: minmax(560px, 1.2fr) minmax(420px, .8fr);
    gap: clamp(48px, 6vw, 110px);
    padding: 24px 0 40px;
    min-height: 100%;
  }

  .hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-art img {
    width: min(100%, 760px);
    max-height: calc(100vh - 125px);
    object-fit: contain;
  }

  .hero-copy {
    align-self: center;
  }

  h1 {
    font-size: clamp(3.8rem, 5.8vw, 6.7rem);
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  #pedals {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  #pedals .product-card {
    min-height: 0;
    height: 100%;
    max-height: calc(100vh - 250px);
  }

  .product-placeholder {
    min-height: 0;
  }

  #about {
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  #contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .footer {
    display: none;
  }

  .nav a[aria-current="page"] {
    color: var(--gold);
  }
}


/* ---------- Desktop v4 fixes ----------
   Prevent horizontal scrolling and keep the complete hero within the viewport.
------------------------------------------------------------ */
@media (min-width: 901px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    width: min(calc(100% - 56px), 1280px);
  }

  main {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .desktop-panel {
    left: 0;
    right: 0;
    width: min(calc(100% - 56px), 1280px);
    max-width: 1280px;
    min-width: 0;
    overflow-x: hidden;
  }

  .hero {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(42px, 4.5vw, 78px);
    width: min(calc(100% - 56px), 1280px);
    max-width: 1280px;
    padding: 20px 0 34px;
  }

  .hero-art,
  .hero-copy {
    min-width: 0;
  }

  .hero-art img {
    width: min(100%, 650px);
    max-width: 100%;
    max-height: calc(100vh - 128px);
  }

  .hero-copy {
    max-width: 610px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(3.15rem, 4.15vw, 5.2rem);
    line-height: .98;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-copy .lead {
    max-width: 540px;
  }

  .actions {
    max-width: 100%;
  }
}

/* Extra-safe sizing for ordinary laptop/desktop widths */
@media (min-width: 901px) and (max-width: 1250px) {
  .hero {
    gap: 34px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .hero-art img {
    width: min(100%, 540px);
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 4.2vw, 4.25rem);
  }
}


/* ---------- Header + footer polish ----------
   Full-width header/footer chrome with centered inner content.
   Mobile header stays on one line and does not wrap awkwardly.
------------------------------------------------------------ */

.site-header {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
}

.footer {
  width: 100%;
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
}

/* Desktop: keep footer visible without reintroducing page scrolling */
@media (min-width: 901px) {
  .site-header {
    height: 76px;
    min-height: 76px;
  }

  main {
    height: calc(100vh - 76px - 56px);
  }

  .footer {
    display: flex;
    min-height: 56px;
    height: 56px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--ink);
    border-top: 1px solid rgba(250,237,207,.18);
  }

  .desktop-panel {
    height: 100%;
  }

  .hero-art img {
    max-height: calc(100vh - 76px - 56px - 36px);
  }
}

/* Mobile/tablet header: keep brand and nav neatly on one line */
@media (max-width: 900px) {
  .site-header {
    min-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
  }

  .brand {
    white-space: nowrap;
    font-size: .92rem;
    letter-spacing: .12em;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(10px, 3vw, 20px);
    min-width: 0;
  }

  .nav a {
    white-space: nowrap;
    font-size: clamp(.66rem, 2.4vw, .78rem);
    letter-spacing: .06em;
  }
}

/* Very narrow phones: tighten spacing, still no wrapping */
@media (max-width: 430px) {
  .site-header {
    padding-left: 14px;
    padding-right: 14px;
    gap: 10px;
  }

  .brand {
    font-size: .78rem;
    letter-spacing: .09em;
  }

  .nav {
    gap: 9px;
  }

  .nav a {
    font-size: .62rem;
    letter-spacing: .035em;
  }
}


/* ---------- Mobile sticky header + footer alignment ----------
   Keep the mobile header fixed while scrolling and keep footer content on one row.
------------------------------------------------------------ */

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .footer span {
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .footer {
    font-size: .74rem;
    gap: 10px;
  }
}
