/* ===================================================================
   Hydra Baseball Co. — Landing page styles
   Theme: white / black with baseball-stitch red accent
   "By Players For Players"
   =================================================================== */

:root {
  --ink:        #111114;   /* near-black sections */
  --ink-2:      #17171b;   /* raised dark panels */
  --ink-3:      #202027;   /* dark borders / chips */
  --paper:      #ffffff;   /* white */
  --cream:      #f4f1ea;   /* warm off-white (light sections / footer) */
  --cream-2:    #ece7dc;
  --red:        #c8202f;   /* stitch red accent */
  --red-dk:     #a5121f;

  --text:       #16161a;   /* primary text on light */
  --muted:      #6b6b73;   /* secondary text on light */
  --text-inv:   #f4f3f0;   /* primary text on dark */
  --muted-inv:  #a7a7b0;   /* secondary text on dark */
  --line:       #e6e2d9;   /* hairlines on light */
  --line-dark:  rgba(255, 255, 255, 0.10);

  --maxw: 1200px;
  --display: 'Saira Condensed', 'Oswald', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow--red { color: var(--red); }

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lead-dark { color: var(--muted); font-size: 1.06rem; max-width: 46ch; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 14px 30px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--dark   { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover  { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.btn--light  { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--cream); border-color: var(--cream); transform: translateY(-2px); }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn--header { padding: 11px 22px; font-size: 0.82rem; }

/* ---------- Brand logo ---------- */
.brand { display: inline-flex; align-items: center; }
.brand__logo {
  display: block;
  height: 54px;
  width: auto;
  /* the header/footer logo image is a fixed-height, auto-width lockup */
}
.brand--footer .brand__logo { height: 74px; }
@media (max-width: 640px) {
  .brand__logo { height: 46px; }
  .brand--footer .brand__logo { height: 64px; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--text);
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--red); }
/* A squeezed row would break a two-word link across lines rather than
   overflow, which reads as a layout bug; the breakpoints below keep the row
   wide enough that it never comes to that. */
.site-nav a { white-space: nowrap; }
.btn--header { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .25s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 70px) 0 80px;
  color: var(--text-inv);
  background-color: #0b0b0d;
  /* Dark base behind the photo slideshow (also the fallback if images are absent) */
  background-image:
    radial-gradient(900px 520px at 78% 18%, rgba(200, 32, 47, 0.18), transparent 60%),
    linear-gradient(95deg, #0a0a0c 0%, #101014 38%, #1a1a20 100%);
  background-size: cover, cover;
  background-position: center, center;
  overflow: hidden;
}
/* ----- Hero photo slideshow (right panel) ----- */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero__slide.is-active { opacity: 1; }
/* Video slide fills the panel just like the photos (cover-crop, no controls) */
.hero__slide--video { background-color: #0b0b0d; }
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Blend the panel's left edge into the dark hero so the photos melt in */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, #0b0b0d 0%, rgba(11, 11, 13, 0.5) 20%, transparent 52%);
}
.hero__dots {
  position: absolute;
  z-index: 4;
  right: 30px;
  bottom: 26px;
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero__dot:hover { background: rgba(255, 255, 255, 0.75); }
.hero__dot.is-active { background: #fff; transform: scale(1.3); }
.hero__inner { position: relative; z-index: 3; }
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted-inv);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(3rem, 8.5vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
}
.hero__lead { color: #d6d6dc; font-size: 1.12rem; margin-top: 26px; max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ---------- The Hydra Difference ---------- */
.difference {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
}
.difference__media {
  position: relative;
  min-height: 540px;
  background-color: #2f4624;
  /* A1492 product photo; radial gradient is the fallback if the file is absent */
  background-image:
    url('/images/ball.jpg'),
    radial-gradient(120% 90% at 50% 30%, #4f6a3f 0%, #38502c 45%, #25371d 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  overflow: hidden;
}

.difference__panel { background: var(--cream); display: flex; align-items: center; }
.difference__inner { padding: clamp(48px, 6vw, 84px) clamp(28px, 5vw, 76px); max-width: 640px; }
.difference__inner .section-title { color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 36px;
  margin-top: 38px;
}
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  color: var(--ink);
}
.feature__icon svg { width: 100%; height: 100%; }
.feature h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 4px;
}
.feature p { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* ---------- Leather grades ---------- */
.grades {
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.grades__title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 20px;
}
.grades__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
}
.grade { display: flex; gap: 14px; align-items: flex-start; }
.grade__badge {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.grade__badge--plain {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--line);
}
.grade__name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 4px;
}
.grade__desc { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

/* ---------- Our Mission ---------- */
.mission { background: var(--paper); padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.mission__inner { max-width: 720px; margin: 0 auto; }
.mission__title { color: var(--text); }
.mission__rule { display: block; width: 64px; height: 3px; background: var(--red); margin: 24px auto 22px; }
.mission__text { color: var(--muted); font-size: 1.12rem; line-height: 1.7; max-width: 54ch; margin: 0 auto; }

/* ---------- Custom ball preview ---------- */
.customizer {
  background: var(--ink);
  color: var(--text-inv);
  padding: clamp(64px, 9vw, 110px) 0 clamp(52px, 7vw, 90px);
}
.customizer__head { max-width: 640px; margin: 0 auto; text-align: center; }
.customizer__title { color: #fff; }
.customizer__rule { display: block; width: 64px; height: 3px; background: var(--red); margin: 24px auto 22px; }
.customizer__lead { color: var(--muted-inv); font-size: 1.06rem; max-width: 52ch; margin: 0 auto; }

.customizer__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(36px, 5vw, 58px);
  text-align: left;
}

/* ----- Stage ----- */
.customizer__stage { display: flex; flex-direction: column; align-items: center; }
.customizer__canvas {
  width: 100%;
  max-width: 540px;
  height: auto;
  /* the pointer drags the logo across the ball, so don't let it pan the page */
  touch-action: none;
  border-radius: 10px;
}
.customizer__canvas.is-draggable { cursor: grab; }
.customizer__canvas.is-dragging { cursor: grabbing; }
.customizer__canvas:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }
.customizer__hint {
  color: var(--muted-inv);
  font-size: 0.86rem;
  text-align: center;
  margin-top: 6px;
  min-height: 1.4em;
}

/* ----- Control panel ----- */
.customizer__panel { max-width: 460px; }

.dropzone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover,
.dropzone.is-over { border-color: var(--red); background: rgba(200, 32, 47, 0.08); }
.dropzone:focus-within { border-color: var(--red); }
/* Kept in the layout (not display:none) so it stays keyboard reachable */
.dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dropzone__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 26px;
  text-align: center;
  cursor: pointer;
}
.dropzone__icon { width: 30px; height: 30px; color: var(--red); }
.dropzone__icon svg { width: 100%; height: 100%; }
.dropzone__label strong {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: #fff;
}
.dropzone__meta { color: var(--muted-inv); font-size: 0.84rem; line-height: 1.5; }

.customizer__status {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted-inv);
}
.customizer__status.is-error { color: #ff8f8f; }

.controls { margin-top: 18px; display: flex; flex-direction: column; gap: 20px; }
.controls[hidden] { display: none; }
.control { display: flex; flex-direction: column; gap: 10px; }
.control__label {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted-inv);
}

/* Range — styled for both engines; the track is a thin rule, thumb is red */
.control__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
.control__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.control__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
}
.control__range::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.control__range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--red); }
.control__range:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-inv);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.swatch:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.swatch.is-active { color: #fff; background: var(--red); border-color: var(--red); }

.control__check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted-inv); font-size: 0.92rem; }
.control__check input { width: 17px; height: 17px; accent-color: var(--red); cursor: pointer; }

.controls__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.controls__actions .btn { padding: 12px 22px; font-size: 0.84rem; }
.controls__reset {
  background: none;
  border: 0;
  padding: 6px 2px;
  color: var(--muted-inv);
  font-family: var(--body);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.controls__reset:hover { color: #fff; }

/* ---------- Quote band ---------- */
.quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 360px;
}
.quote__media {
  position: relative;
  min-height: 360px;
  background-color: #16161a;
  /* Action photo with a darkening overlay for label legibility;
     the radial gradient is the fallback shown if /images/players.jpg is absent */
  background-image:
    linear-gradient(180deg, rgba(20, 20, 24, 0.12), rgba(20, 20, 24, 0.5)),
    url('/images/players.jpg'),
    radial-gradient(120% 120% at 30% 20%, #3a3a44 0%, #24242b 55%, #16161a 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center 28%, center;
  background-size: cover, cover, cover;
  overflow: hidden;
}
.quote__panel { background: var(--ink); color: var(--text-inv); display: flex; align-items: center; }
.quote__inner { padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 76px); }
.quote__mark {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 14px;
}
.quote__text {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.02;
  text-transform: none;
  color: #fff;
}
.quote__rule { display: block; width: 64px; height: 3px; background: var(--red); margin: 26px 0 16px; }
.quote__attrib {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted-inv);
}

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink-2); border-top: 1px solid var(--line-dark); padding: 30px 0; }
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust { display: flex; align-items: center; gap: 14px; padding: 6px 10px; }
.trust + .trust { position: relative; }
.trustbar__grid .trust:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 1px;
  background: var(--line-dark);
}
.trust__icon { flex: 0 0 auto; width: 30px; height: 30px; color: var(--red); }
.trust__icon svg { width: 100%; height: 100%; }
.trust__text { display: flex; flex-direction: column; }
.trust__text strong {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.86rem;
  color: #fff;
}
.trust__text span { color: var(--muted-inv); font-size: 0.82rem; }

/* ---------- Team Orders ---------- */
.orders { background: var(--paper); padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.orders__inner { max-width: 680px; margin: 0 auto; }
.orders__inner .section-title { color: var(--text); }
.orders__lead { color: var(--muted); font-size: 1.08rem; margin: 18px auto 0; max-width: 52ch; }
.orders__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 34px 0 16px;
  text-align: left;
}
.orders__form input,
.orders__form select,
.orders__form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
}
.orders__form input::placeholder,
.orders__form textarea::placeholder { color: #9a9aa0; }
.orders__form input:focus,
.orders__form select:focus,
.orders__form textarea:focus { outline: none; border-color: var(--ink); }
/* Custom dropdown arrow */
.orders__form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b73' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.orders__form select:invalid { color: #9a9aa0; } /* show placeholder color until chosen */
.orders__form textarea { resize: vertical; min-height: 112px; line-height: 1.5; }
.orders__form textarea { grid-column: 1 / -1; }
.orders__form .btn { grid-column: 1 / -1; justify-self: start; }
/* Honeypot — hidden from real users */
.orders__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.orders__thanks {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--cream);
}
.orders__note { color: var(--muted); }
.orders__note a { color: var(--red); font-weight: 600; }

/* ---------- Apparel (Coming Soon) ---------- */
.apparel { background: var(--ink); color: var(--text-inv); padding: clamp(64px, 9vw, 110px) 0; text-align: center; }
.apparel__inner { max-width: 680px; margin: 0 auto; }
.apparel__title { color: #fff; }
.apparel__rule { display: block; width: 64px; height: 3px; background: var(--red); margin: 24px auto 22px; }
.apparel__text { color: var(--muted-inv); font-size: 1.08rem; margin: 0 auto; max-width: 48ch; }

/* ---------- Footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding: 56px 28px 40px;
}
.footer__brand .brand--footer { margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 0.96rem; max-width: 40ch; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 4px;
}
.footer__col a { color: var(--muted); font-size: 0.96rem; transition: color .18s ease; }
.footer__col a:hover { color: var(--red); }
.footer__social { display: flex; gap: 12px; margin-top: 6px; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.footer__social a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.footer__social svg { width: 20px; height: 20px; }
.footer__bar { border-top: 1px solid var(--line); padding: 20px 0; }
.footer__bar p {
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Seven nav links need more room than six did. Tighten the row once the
   container stops growing, and hand over to the menu button below 1120px —
   measured against the widest labels, that's where the row can no longer
   hold all seven alongside the brand and the header button. */
@media (max-width: 1260px) {
  .site-nav { gap: 22px; }
}

@media (max-width: 1120px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(0,0,0,0.3);
    padding: 8px 0 16px;
    transform: translateY(-130%);
    transition: transform .32s ease;
    margin-left: 0;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 14px 28px; }
  .btn--header { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 960px) {
  .customizer__grid { grid-template-columns: 1fr; }
  .customizer__panel { max-width: 540px; width: 100%; margin: 0 auto; }
  .customizer__stage { order: -1; }

  /* Hero slideshow spans full width behind the text on smaller screens */
  .hero__media { width: 100%; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(11, 11, 13, 0.62) 0%, rgba(11, 11, 13, 0.42) 45%, rgba(11, 11, 13, 0.74) 100%);
  }
  .hero__slide { background-position: center 18%; }
  .hero__dots { right: 50%; transform: translateX(50%); }

  .difference { grid-template-columns: 1fr; }
  .difference__media { min-height: 360px; }
  .quote { grid-template-columns: 1fr; }
  .quote__media { min-height: 240px; order: 2; }
  .quote__panel { order: 1; }

  .trustbar__grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .trustbar__grid .trust:not(:first-child)::before { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .hero { min-height: 80vh; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .grades__list { grid-template-columns: 1fr; gap: 20px; }
  .orders__form { grid-template-columns: 1fr; }
  .orders__form input[name="team"] { grid-column: auto; }
  .trustbar__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
  .swatch, .dropzone { transition: none; }
}
