/* =============================================================================
   Yards Golf Book — components.css
   Collins-style section components: hex blobs, marquee, hex tiles,
   alternating concept rows, stat bands.

   Lifted from design-tests/pebble-fonts.html (the approved direction).
   Tokens come from base.css.
   ============================================================================= */

/* ── Hero with hex-blob accents ───────────────────────────────────────────── */
.collins-hero {
  padding: 100px 32px 80px;
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.collins-hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.collins-hero h1 {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(64px, 11vw, 184px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  max-width: 1300px;
  color: var(--ink);
}
.collins-hero h1 em {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
}
.collins-hero h1 .alt {
  display: inline-block;
  transform: rotate(-3deg);
  background: var(--cream);
  padding: 0 24px;
  border-radius: 24px;
}
.collins-hero .hero-tag {
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.collins-hero .hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--ink);
}
.collins-hero .hero-deck {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  max-width: 560px;
  color: var(--ink-mid);
}
.collins-hero .hero-deck em {
  font-family: var(--display-font);
  font-style: italic;
  color: var(--ink);
}
.collins-hero .hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  max-width: 1400px;
}
.collins-hero .hero-stats { display: flex; gap: 56px; flex-wrap: wrap; }
.collins-hero .hero-stat .num {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.collins-hero .hero-stat .lbl {
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink-muted);
}

/* ── Hex blob: clip-path hexagon with soft-edge blur ──────────────────────── */
.hex-blob {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 0;
}
.hex-blob.blob-punch { background: var(--punch); filter: blur(3px); transform: rotate(8deg); }
.hex-blob.blob-green { background: var(--green-deep); filter: blur(2px); transform: rotate(-12deg); }
.hex-blob.blob-ink { background: var(--ink); opacity: 0.08; transform: rotate(20deg); }

/* Convenience positions
   Anchored in viewport units (vw/vh) instead of percent-of-parent so the
   blob locations don't shift when the hero container grows or shrinks
   (e.g. when web fonts load and the h1 re-flows). Fixed-pixel sizes
   keep the visual identical to the earlier %-based layout at typical
   viewport heights. */
.hex-blob.top-right    { top: 60px;          right: -160px; width: 580px; height: 580px; }
.hex-blob.bottom-left  { bottom: -190px;     left: -160px;  width: 500px; height: 500px; }
.hex-blob.center-right { top: 50vh;          right: 38vw;   width: 120px; height: 120px; }

/* ── Marquee: scrolling italic display strip ──────────────────────────────── */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 24px 0;
}
.marquee-track {
  white-space: nowrap;
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.02em;
  animation: marquee 30s linear infinite;
}
.marquee-track span { margin: 0 32px; }
.marquee-track span.dot { color: var(--punch); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Concept rows: alternating hex tile + copy ────────────────────────────── */
.concept {
  padding: 100px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.concept-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.concept-row:last-child { margin-bottom: 0; }
.concept-row:nth-child(even) { direction: rtl; }
.concept-row:nth-child(even) > * { direction: ltr; }
.concept-visual {
  aspect-ratio: 1;
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.concept-row:nth-child(2) .concept-visual { background: var(--punch); }
.concept-visual .big-mark {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 800;
  font-size: 240px;
  line-height: 0.85;
  color: var(--cream);
  letter-spacing: -0.05em;
}
.concept-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.concept-tag {
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--punch);
  margin-bottom: 16px;
}
.concept-row h2 {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.concept-row h2 em {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
}
.concept-row p {
  font-size: 19px;
  line-height: 1.55;
  max-width: 480px;
  color: var(--ink-mid);
}

/* ── Quote band ───────────────────────────────────────────────────────────── */
.quote-band {
  padding: 100px 32px;
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 1200px;
  margin: 0 auto;
}
.quote-band blockquote .punch { color: var(--punch); }
.quote-band cite {
  display: block;
  font-family: var(--body-font);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 40px;
  opacity: 0.7;
}

/* ── Stat band ────────────────────────────────────────────────────────────── */
.stat-band {
  padding: 96px 32px;
  background: var(--ink);
  color: var(--cream);
}
.stat-band-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
.stat-cell { border-top: 1px solid rgba(245, 243, 235, 0.2); padding-top: 24px; }
.stat-cell .num {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 6.5vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.stat-cell .num .accent { color: var(--punch); }
.stat-cell .label {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 16px;
  color: rgba(245, 243, 235, 0.65);
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.cta-band {
  padding: 120px 32px;
  text-align: center;
  background: var(--punch);
  color: var(--cream);
}
.cta-band h2 {
  font-family: var(--display-font);
  font-weight: 800;
  font-size: clamp(56px, 9vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 1300px;
  margin: 0 auto 40px;
  color: var(--cream);
}
.cta-band h2 em {
  font-family: var(--display-font);
  font-style: italic;
  font-weight: 400;
}
.cta-form {
  display: inline-flex;
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
}
.cta-form input {
  background: transparent;
  border: none;
  padding: 18px 26px;
  font-family: var(--body-font);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  min-width: 300px;
}
.cta-form input::placeholder { color: var(--ink-dim); }
.cta-form button {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 18px 36px;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border-radius: 0 999px 999px 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .collins-hero { padding: 60px 20px 48px; }
  .collins-hero h1 { font-size: clamp(48px, 12vw, 80px); }
  .collins-hero .hero-row { grid-template-columns: 1fr; gap: 32px; }
  .collins-hero .hero-stats { gap: 24px; }
  .concept-row { grid-template-columns: 1fr; gap: 32px; }
  .concept-row:nth-child(even) { direction: ltr; }
  .concept-visual .big-mark { font-size: 160px; }
  .stat-band-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hex-blob.top-right { width: 360px; height: 360px; right: -25%; }
  .hex-blob.bottom-left { width: 320px; height: 320px; left: -25%; }
  .cta-form { flex-direction: column; min-width: 280px; border-radius: 24px; }
  .cta-form input { min-width: 0; }
  .cta-form button { border-radius: 0 0 24px 24px; }
}
