/* Perfect Raceway — draft site styles. Static, no framework. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #161513;
  --ink-soft: #3F3B36;
  --muted: #6A655C;
  --paper: #F3EFE6;
  --paper-2: #E8E2D6;
  --card: #FFFcf6;
  --line: #D4CDBF;
  --navy: #1A2746;
  --navy-2: #243560;
  --navy-3: #152038;
  --brass: #A67C2D;
  --brass-2: #C4A15A;
  --copper: #B45028;
  --copper-hover: #9A401F;
  --white: #fff;
  --focus: #2A62C8;
  --draft: #3B2A12;
  --font-sans: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --radius: 8px;
  --shadow: 0 12px 32px rgba(22, 21, 19, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--copper); text-underline-offset: 0.12em; }
a:hover { color: var(--navy); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin-inline: auto;
}

/* Draft banner */
.draft-banner {
  background: #E8D3A8;
  color: var(--draft);
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.4rem 1rem;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--brass-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.logo svg { width: 2rem; height: 2rem; flex: none; color: var(--paper); }
.logo-text {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-text span {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--brass-2);
  margin-bottom: 0.1rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(243, 239, 230, 0.35);
  border-radius: 4px;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  gap: 0.15rem 1.35rem;
  align-items: center;
}
.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-cond);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brass-2);
  border-bottom-color: var(--brass-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border-radius: 4px;
  border: 2px solid transparent;
  line-height: 1.2;
  cursor: pointer;
}
.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}
.btn-primary:hover { background: var(--copper-hover); border-color: var(--copper-hover); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--brass-2);
}
.btn-ghost:hover { background: var(--brass-2); color: var(--navy); }
.btn-navy {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-buy {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
  width: 100%;
}
.btn-buy:hover { background: var(--copper-hover); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Hero */
.hero {
  background:
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(196, 161, 90, 0.28);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.2rem 0 3.4rem;
  position: relative;
}
.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--brass-2);
  margin: 0 0 0.7rem;
}
.hero h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--brass-2);
  display: inline;
}
.hero .lead {
  font-size: 1.15rem;
  max-width: 38rem;
  color: #E4DDD0;
  margin: 0;
}
.hero-photo {
  margin: 0;
  background: #2a3c72;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Portrait V2-with-laser hero: contain, uncropped, so the laser dot stays visible. */
.hero-photo.portrait {
  background: #1a1a18;
}
.hero-photo.portrait img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(40rem, 80vh);
  margin: 0 auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  background: #1a1a18;
}
.hero-photo figcaption {
  font-size: 0.8rem;
  color: #D4CDBF;
  padding: 0.45rem 0.7rem 0.6rem;
  background: var(--navy-3);
}

/* Spec strip */
.spec-strip {
  background: var(--navy-3);
  color: var(--paper);
  border-top: 1px solid rgba(196, 161, 90, 0.25);
}
.spec-strip ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.spec-strip li { margin: 0; }
.spec-strip strong {
  display: block;
  font-family: var(--font-cond);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brass-2);
  line-height: 1.1;
}
.spec-strip span {
  display: block;
  font-size: 0.88rem;
  color: #C9C2B4;
  margin-top: 0.2rem;
}

/* Sections */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--paper-2); }
main h2,
.section h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.1;
}
.section h3 {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.lede { font-size: 1.15rem; max-width: 44rem; color: var(--ink-soft); }
.prose { max-width: 44rem; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  counter-reset: step;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.1rem 1.2rem;
  counter-increment: step;
  position: relative;
}
.steps h3 { margin-bottom: 0.3rem; }
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-cond);
  color: var(--brass);
  margin-right: 0.45rem;
}

.tool-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tool-teaser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  object-position: 50% 25%;
}
.tool-teaser .copy { padding: 1.5rem 1.5rem 1.6rem 0.25rem; }
.facts {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.facts li {
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.facts li:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.facts b { font-weight: 650; }

.band {
  background: var(--navy);
  color: var(--paper);
  padding: 2.6rem 0;
  text-align: center;
}
.band h2 { color: var(--paper); }
.band p { max-width: 36rem; margin: 0 auto 0.4rem; color: #E4DDD0; }
.band .btn-row { justify-content: center; }

/* Product cards */
.page-intro { padding: 2.4rem 0 0.5rem; }
.page-intro h1 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.8rem;
}

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0 0;
  max-width: 50rem;
}

.products { display: grid; gap: 1.75rem; padding: 1.5rem 0 3.4rem; }

.product {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  scroll-margin-top: 5.5rem;
}
.product h2 {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.45rem;
  line-height: 1.1;
}
.product-media {
  margin: 0;
  background: #ece8df;
  border-radius: 6px;
  overflow: hidden;
  align-self: start;
  width: 100%;
}
.product-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
}
.product-media.contain img {
  object-fit: contain;
  object-position: center;
  background: #f7f4ee;
  padding: 0.75rem;
}
.product-media.portrait img {
  object-fit: contain;
  object-position: center;
  background: #fff;
  aspect-ratio: 3 / 4;
  max-height: 420px;
}
.product-media figcaption {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 0.45rem 0.65rem 0.55rem;
  background: var(--card);
}
.product-media-stack {
  display: grid;
  gap: 0.75rem;
  align-self: start;
}
.product-media.natural-size {
  width: max-content;
  max-width: 100%;
  background: #f7f4ee;
}
.product-media.natural-size img {
  width: auto;
  max-width: 270px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.no-photo {
  color: var(--muted);
  font-family: var(--font-cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem 1rem;
}
.sku {
  font-family: var(--font-cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.price {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 0.2rem 0 0.7rem;
  line-height: 1;
}
.price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-left: 0.25rem;
}

.tiers {
  width: 100%;
  max-width: 22rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 0.9rem;
}
.tiers th, .tiers td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.tiers th {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}
.tiers td:last-child, .tiers th:last-child { text-align: right; }

.tiers {
  max-width: 28rem;
}
.tiers .btn-buy {
  width: auto;
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tiers .contact-order {
  font-size: 0.85rem;
}

.buy-box { max-width: 22rem; }
.buy-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.todo-note {
  background: #F3E2C7;
  border: 1px solid #D9B56A;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 3rem;
}
.todo-note :first-child { margin-top: 0; }
.todo-note :last-child { margin-bottom: 0; }

/* Training / Find / Contact */
.resource-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
.resource {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.resource p { margin: 0; color: var(--ink-soft); flex: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}
.contact-card dt {
  font-family: var(--font-cond);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.contact-card dd { margin: 0; font-size: 1.25rem; font-weight: 600; }
.phone-tbd {
  display: inline-block;
  background: #F3E2C7;
  border: 1px dashed #A67C2D;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-family: var(--font-cond);
  letter-spacing: 0.06em;
}

/* Footer */
.site-footer {
  background: var(--navy-3);
  color: #C9C2B4;
  padding: 2rem 0 1.5rem;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
}
.site-footer a { color: var(--brass-2); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.7rem 1.1rem; }
.legal { margin: 1.1rem 0 0; color: #B7B0A4; font-size: 0.85rem; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-3);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1rem 1rem;
    gap: 0;
    border-bottom: 3px solid var(--brass-2);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.55rem 0; width: 100%; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .hero-grid,
  .split,
  .tool-teaser,
  .product,
  .resource-cards,
  .contact-grid,
  .spec-strip ul {
    grid-template-columns: 1fr;
  }
  .tool-teaser .copy { padding: 1.15rem 1.15rem 1.4rem; }
  .spec-strip ul { grid-template-columns: 1fr 1fr; }
  .hero-grid { padding: 2rem 0 2.2rem; gap: 1.5rem; }
  .tool-teaser img {
    aspect-ratio: 4 / 3;
    object-position: 50% 22%;
  }
  .product { grid-template-columns: 1fr; }
}


@media (max-width: 520px) {
  .spec-strip ul { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Classroom photos: never display larger than native pixels (Garrett thumb is 181×136). */
.classroom-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 1.5rem 0 0;
  align-items: flex-start;
}
.classroom-thumb {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  max-width: 18.5rem;
}
.classroom-thumb img {
  display: block;
  flex: none;
  width: auto;
  height: auto;
  max-width: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(22, 21, 19, 0.1);
  background: #1a1a18;
  image-rendering: auto;
}
.classroom-thumb img.thumb-garrett {
  width: 181px;
  height: 136px;
  max-width: 181px;
  max-height: 136px;
}
.classroom-thumb figcaption {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 260px) {
  .classroom-thumb img.thumb-garrett {
    max-width: 100%;
    height: auto;
  }
}

.store-conduit {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}
.store-conduit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  object-position: 50% 25%;
}
.store-conduit .copy { padding: 1.5rem 1.5rem 1.6rem 0.25rem; }
.store-kicker {
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--brass);
  margin: 0 0 0.45rem;
}

@media (max-width: 860px) {
  .store-conduit {
    grid-template-columns: 1fr;
  }
  .store-conduit .copy { padding: 1.15rem 1.15rem 1.4rem; }
}
