/* Page-specific rules for index.html */

.hero-grid h1 { font-size: clamp(40px, 5.1vw, 65px); }

/* Laptop and up: pin the landing hero to exactly one screen — below this,
   .hero's own min-height:100vh (and min-height:auto under 680px) lets it
   grow with its stacked, content-sized mobile/tablet layout instead. */
@media (min-width: 1024px) {
    .hero { height: 100vh; }
  }

/* Swaps just the homepage's "Friday fancies" newsletter band away from the
   shared .newsletter image (also used by about.html's closing CTA) without
   touching that page. */
.home-newsletter-bg { background-image:linear-gradient(rgba(165,50,50,0.85),rgba(165,50,50,0.85)),url('../assets/images/tft-bets-old-trafford-2.webp'); }

@media (max-width: 768px) {
    .header-cta, .header-cta-primary { display: none; }
    .mobile-menu-cta { display: flex; }
    .operator-card-actions, .operator-card-cta-row { flex-direction: column; align-items: center; gap: 8px; }
  }

/* "This weekend's three": the text column stacks to full width below this,
   while its card grid alongside it (.fancy-list-grid) stays 2-per-row until
   the narrower breakpoint below. */
@media (max-width: 992px) {
    .fancies-split { grid-template-columns: 1fr; }
  }

@media (max-width: 1240px) {
    .header-nav { display: none; }
    .hamburger-button { display: flex; }
    .hero-grid { grid-template-columns: 1fr 0.8fr; }
  }

/* "This weekend's three" cards (+ the "See all" tile) — 2-per-row down to
   here, then one per row, same width as the stacked text box above. Placed
   after the ≤1240px rule above (which also matches this width) so this one
   wins the cascade tie. */
@media (max-width: 768px) {
    /* .fancies-split is full-bleed (100vw) by design — its 2-up card grid
       deliberately has gap:0 and square corners so the cards tile flush
       edge-to-edge like a mosaic. Once it drops to a single column here,
       that same flush edge reads as a layout bug (cards touching the
       screen edge with no gutter at all) rather than a mosaic, so give
       this breakpoint its own inset + gap + corners back.
       grid-template-columns/gap are overridden on the same .fancies-split
       .fancy-list-grid selector components.css uses (rather than on the
       plain class), since that compound selector otherwise outranks a
       plain .fancy-list-grid override regardless of load order. */
    .fancies-split .fancy-list-grid { grid-template-columns: 1fr; gap: 16px; }
    .fancy-list-grid { padding: 0 20px; }
    .fancies-split .fancy-card, .fancies-split .fancy-cta-tile { border-radius: 6px; }
    /* The section wrapping #game normally gets .section's 96px top padding
       — same cream background as the section above it with nothing to mark
       a real break, so that reads as a huge dead gap next to the tight
       16px card-to-card spacing right above it. Tighten just this section. */
    .section:has(#game) { padding-top: 20px; }
    /* .fancies-split-text's 56px padding is sized for the desktop column
       width — at 390px wide that's 112px gone to padding alone, noticeably
       tighter than every other mobile card's ~24-32px. Bottom is trimmed
       further, to 16px, so the gap before the first stacked card below
       matches the 16px gap .fancy-list-grid already uses between cards,
       instead of sitting at a mismatched 32px. */
    .fancies-split-text { margin-bottom: 96px;padding: 32px 24px; }
    /* .hero's tri-colour stripe (black/red/black) is a deliberate desktop
       flourish behind the two-column grid — once the hero stacks to a
       single narrow column, the red band just cuts across the stacked
       logo/text awkwardly. Flatten it to the same solid black as the
       stripe's own outer thirds. */
    .hero .hero-glow { background: rgba(18,16,15,1); }
  }

/* .operator-card-featured is deliberately left out of this — it always
   spans both columns via its own components.css rule (grid-column:1/-1).
   Including it here used to be harmless only because components.css
   loaded after this file and won the tie regardless; now that load order
   is reversed (see the top of components.css), this file winning the tie
   would squash the featured card into a single column. */
.operator-card { grid-column: span 1; }

@media (max-width: 1080px) {
    .operator-card-actions, .operator-card-cta-row { grid-column: 1 / -1; }
    .operator-card-featured { grid-template-columns: 110px minmax(0,1fr); }
  }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; padding: 32px; }
    .hero-media { height: 360px; }
    /* .hero-media-frame's left:22px/right:-10px insets are tuned for the
       desktop two-column row (balanced against the stars badge beside it)
       — once .hero-grid stacks to one column above, that same asymmetry
       reads as the logo sitting visibly off-centre to the right. Flatten
       both sides to 0 so the (object-fit:contain, so still centred within
       whatever box it's given) logo actually centres in the stacked column. */
    .hero-media-frame { left: 0; right: 0; }
    .newsletter-card { grid-template-columns: 1fr; gap: 28px; }
    /* #game *is* .game-promo (a div, not a section) — stacks early so its
       button row doesn't sit side-by-side against the now-narrower text
       column, matching .newsletter-card's own stack at this width. */
    #game { padding-top: 36px; gap: 24px; flex-direction: column; align-items: center; text-align: center; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    /* One consistent heading scale from here down — every one of these
       otherwise jumps straight from its own uncapped desktop size (44-65px)
       at 961px to a different mobile override at 680px. */
    .hero-grid h1 { font-size: clamp(28px, 6.4vw, 44px); }
    .section-title-hero { font-size: clamp(28px, 6.4vw, 44px); }
    .promo-title { font-size: clamp(28px, 6.4vw, 44px); }
    /* "This weekend's three" (the Fancies section on Home) reuses
       .page-hero-title — normally each other page's own H1 — for this H2. */
    .page-hero-title { font-size: clamp(28px, 6.4vw, 44px); }
  }

@media (max-width: 680px) {
    section.page-hero-content-tall > div { padding: 128px 20px 56px; }
    section.page-hero-content-tall h1 { font-size: 36px; }
    .operator-card, .operator-card-featured { grid-column: 1 / -1; padding: 20px; }
    .operator-card-featured { grid-template-columns: 1fr; }
    .operator-card-featured > div:nth-child(2) { width: 100%; }
    /* .operator-card-logo stretches to the card's full width once the grid
       collapses to one column — nothing capped its width, so the (contain-fit,
       center-positioned) logo image ends up looking off-center inside a huge
       white box. Give the box a sane width and center it instead. */
    .operator-card-logo { width: 160px; max-width: 100%; margin: 0 auto; }
    header > div { padding: 0 20px; gap: 16px; }
    /* height comes from the content, not a fixed viewport floor — with
       the hero-grid stacked to one column below, text + the full-height
       logo column can run taller than 100vh on a short/narrow phone, and a
       fixed min-height:100vh plus the hero's own overflow:hidden was
       clipping the title's top edge instead of letting the section grow. */
    .hero { min-height: auto; }
    .hero-body { min-height: auto; }
    div.hero-grid { padding: 24px 20px; gap: 20px; }
    /* Centred block — eyebrow, title, subtitle and the compliance line
       below the buttons all read better centred than left-ragged once the
       hero-media column has dropped below instead of sitting beside it. */
    .hero-content { padding-top: 30px; padding-bottom: 0px; text-align: center; }
    /* max-width:520px (components.css) can still outlive the centred text
       above it between ~520-680px wide — margin:auto keeps the (narrower)
       box itself centred too, not just flush-left with centred text inside. */
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-compliance { justify-content: center; }
    .hero-grid h1 { font-size: clamp(28px, 6.4vw, 44px); }
    .section-title-hero { font-size: clamp(28px, 6.4vw, 44px); }
    .promo-title { font-size: clamp(28px, 6.4vw, 44px); }
    .page-hero-title { font-size: clamp(28px, 6.4vw, 44px); }
    /* Compact, side-by-side pills instead of full-width stacked buttons. */
    .hero-actions { justify-content: center; gap: 10px; }
    .hero-actions a { width: auto; padding: 14px 20px; font-size: 14px; }
    .section-alt > section.section { padding-left: 20px; padding-right: 20px; }
    section.section { padding-left: 20px; padding-right: 20px; }
    .footer-cols { grid-template-columns: 1fr; padding: 48px 20px 28px; gap: 32px; }
    .footer-legal { padding: 48px 20px 28px; }
    /* #game *is* .game-promo (a div, not a section) — "section#game > div"
       never matched anything, so the card kept its desktop padding/gap
       (sized for a side-by-side row) instead of shrinking like
       .newsletter-card does below it. */
    #game { padding: 28px 24px 32px; gap: 24px; flex-direction: column; align-items: center; text-align: center; }
    .game-promo-actions { flex-direction: column; align-items: center; width: 100%; }
    .newsletter-submit { width: 100%; }
  }

@media (max-width: 480px) {
    .hero-grid h1 { font-size: 34px; }
    .section-title-hero { font-size: 34px; }
    .promo-title { font-size: 34px; }
    .page-hero-title { font-size: 34px; }
    .hero-media { height: 280px; }
  }
