/* Stidham's Lounge — screen-size adjustments for every page, widest first.
   Loaded last, so these override the other stylesheets. */

/* ---------- Small desktops: tighter navigation so the links stay on one line ---------- */
@media (min-width: 1025px) and (max-width: 1240px) {
  .header-inner { gap: 18px; }
  .site-nav { gap: 18px; }
  .nav-list { gap: clamp(12px, 1.5vw, 18px); }
  .nav-list a { letter-spacing: .08em; font-size: .74rem; }
}
@media (min-width: 1025px) {
  .nav-list a, .nav-cta { white-space: nowrap; }
}

/* ---------- Tablet and below: mobile menu ---------- */
@media (max-width: 1100px) {
  .food-events-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .header-inner { justify-content: space-between; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: 0 0 auto; top: var(--header-h, 82px);
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px var(--gutter) 28px;
    background: rgba(15, 14, 12, .98);
    border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--header-h, 82px)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-header:has(.site-nav.is-open) { background: rgba(15, 14, 12, .98); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 14px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-cta { align-self: flex-start; }
}
/* Services: featured cards full width, the other four in pairs. */
@media (max-width: 1024px) {
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows:
      clamp(320px, 46vw, 420px)
      repeat(2, clamp(240px, 32vw, 300px))
      clamp(320px, 46vw, 420px);
    grid-template-areas:
      "bil  bil"
      "axe  mus"
      "arc  kar"
      "food food";
  }
}
/* Events: two columns; the featured event spans both, one row taller. */
@media (max-width: 1024px) {
  .gig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(clamp(260px, 34vw, 320px), auto); }
  .gig-grid > .experience--feature { grid-column: 1 / -1; grid-row: span 1; min-height: clamp(320px, 46vw, 420px); }
  .gig-grid > .experience--feature:first-child:nth-last-child(2) + * { grid-row: span 1; grid-column: 1 / -1; }
  .whats-on-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(260px, 34vw, 320px); }
  .whats-on-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Axe Throwing: rate cards and rules stack in one column, side by side inside. */
@media (max-width: 1024px) {
  .rate-grid { grid-template-columns: minmax(0, 1fr); }
  .rate-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    min-height: 0;
  }
  .rate-price { padding-top: 0; justify-content: flex-end; }
  .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; }
  .rule > * { grid-column: 2; }
  .rule .service-icon { grid-column: 1; grid-row: 1 / span 4; }
  .rule-figure { margin-top: 0; }
  .rule + .rule { border-left: 0; border-top: 1px solid var(--walnut-line); }
}
/* Contact: details above the form. */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
/* Menu: category heading above its items, no longer sticky. */
@media (max-width: 1024px) {
}
@media (max-width: 960px) {
  /* Home */
  .services { --overlap: 150px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  /* Portrait crop puts the lamps closer to the text: deepen the shade behind it. */
  .hero-media::after {
    background:
      radial-gradient(ellipse 85% 34% at 50% 44%, rgba(15, 14, 12, .6), rgba(15, 14, 12, 0) 78%),
      linear-gradient(to bottom,
        rgba(15, 14, 12, .9) 0%,
        rgba(15, 14, 12, .82) 34%,
        rgba(15, 14, 12, .4) 52%,
        rgba(15, 14, 12, .35) 66%,
        rgba(15, 14, 12, .9) 90%,
        var(--charcoal) 100%);
  }
  /* About: stack photo and text */
  .about-intro { grid-template-columns: 1fr; }
  .offer-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .services { --overlap: 220px; }
  .hero-media img { object-position: 49% 52%; }
  .hero-title-script { margin-top: calc(-.06em - var(--ink-pad-y)); }

  .service-card { min-height: 196px; padding: 16px 14px 14px; }
  .service-card::after { left: 14px; right: 14px; }
  .service-card .service-icon { width: 38px; height: 38px; }
  .service-card .service-icon .icon { width: 19px; height: 19px; }
  .service-card h3 { margin-top: 18px; font-size: 1.32rem; }
  .service-card p { font-size: .82rem; }

  .food-promo { grid-template-columns: 1fr; }
  .food-photo { aspect-ratio: 4 / 3; min-height: 0; }

  /* Photo hero (Services, Menu): less top space; index as a tidy 3 × 2 grid,
     since separators would wrap onto line starts. */
  .photo-hero-content { padding-top: calc(var(--header-h, 82px) + 56px); }
  .photo-hero-index ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 12px 22px; }
  .photo-hero-index li { justify-content: center; }
  .photo-hero-index li + li::before { display: none; }
  .photo-hero-index a { font-size: .68rem; letter-spacing: .14em; }

  /* Services: one column; featured cards stay a little taller. */
  /* Portrait crop: keep the aisle centred, with a table on either side. */
  .services-hero .photo-hero-media img { object-position: 49% 52%; }
  /* The narrow crop puts the far tables behind the copy: deepen the shade. */
  .services-hero .photo-hero-media::after {
    background:
      radial-gradient(ellipse 90% 40% at 50% 56%, rgba(15, 14, 12, .72), rgba(15, 14, 12, 0) 80%),
      linear-gradient(to bottom,
        rgba(15, 14, 12, .88) 0%,
        rgba(15, 14, 12, .45) 22%,
        rgba(15, 14, 12, .62) 55%,
        rgba(15, 14, 12, .94) 86%,
        var(--charcoal) 100%);
  }
  .experience-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    grid-template-areas: "bil" "axe" "mus" "arc" "kar" "food";
  }
  .experience { min-height: 280px; }
  .gig-grid, .whats-on-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .gig-grid > .experience--feature { min-height: 380px; }
  .gig-empty { grid-template-columns: minmax(0, 1fr); }
  /* Weekly special: badge beside the price on top, copy below. */
  .weekly-special { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "day price" "body body"; align-items: start; }
  .weekly-day { grid-area: day; }
  .weekly-price { grid-area: price; justify-self: end; font-size: 4.6rem; padding-right: 0; }
  .weekly-body { grid-area: body; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .contact-form .btn { width: 100%; justify-content: center; }
  .contact-hero .photo-hero-media img { object-position: 58% 62%; }
  .experience--feature { min-height: 380px; }
  .experience-meta { letter-spacing: .16em; }

  /* Events: portrait crop keeps the clock and back bar centred; deeper shade behind the copy. */
  .events-hero .photo-hero-media img { object-position: 46% 30%; }
  .events-hero .photo-hero-media::after {
    background:
      radial-gradient(ellipse 90% 40% at 50% 56%, rgba(15, 14, 12, .74), rgba(15, 14, 12, 0) 80%),
      linear-gradient(to bottom,
        rgba(15, 14, 12, .88) 0%,
        rgba(15, 14, 12, .45) 22%,
        rgba(15, 14, 12, .62) 55%,
        rgba(15, 14, 12, .94) 86%,
        var(--charcoal) 100%);
  }

  /* Axe Throwing: deeper shade behind the hero copy; price under the name. */
  .axe-hero .photo-hero-media::after {
    background:
      radial-gradient(ellipse 90% 40% at 50% 56%, rgba(15, 14, 12, .74), rgba(15, 14, 12, 0) 80%),
      linear-gradient(to bottom,
        rgba(15, 14, 12, .88) 0%,
        rgba(15, 14, 12, .45) 22%,
        rgba(15, 14, 12, .62) 55%,
        rgba(15, 14, 12, .94) 86%,
        var(--charcoal) 100%);
  }
  .rate-card { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .rate-price { justify-content: flex-start; padding-top: 8px; font-size: 4.8rem; }
  .rate-note { align-items: flex-start; }
  .rule { grid-template-columns: minmax(0, 1fr); }
  .rule > *, .rule .service-icon { grid-column: 1; grid-row: auto; }
  .rule-figure { margin-top: 18px; }

  /* Menu: deeper shade behind the hero copy, as on Services. */
  .menu-hero .photo-hero-media::after {
    background:
      radial-gradient(ellipse 90% 40% at 50% 56%, rgba(15, 14, 12, .74), rgba(15, 14, 12, 0) 80%),
      linear-gradient(to bottom,
        rgba(15, 14, 12, .88) 0%,
        rgba(15, 14, 12, .45) 22%,
        rgba(15, 14, 12, .62) 55%,
        rgba(15, 14, 12, .94) 86%,
        var(--charcoal) 100%);
  }
  /* Menu photo: the "view full size" pill shrinks to a magnifier badge so it
     covers as little of the menu as possible (the caption says to tap). */
  .menu-board-hint {
    right: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    justify-content: center;
    padding: 0;
    font-size: 0;
    letter-spacing: 0;
  }
  .menu-board-hint-icon { margin: 0 2px 2px 0; }
}
@media (max-width: 400px) {
  .photo-hero-index ul { grid-template-columns: repeat(2, auto); }
  .hero-location-label { gap: 6px; letter-spacing: .18em; }
  .hero-location-label::before,
  .hero-location-label::after { width: 18px; margin-inline: 4px; }
  .hero-location-label::after { margin-left: calc(4px - .18em); }
}
@media (max-width: 359px) {
  .services { --overlap: 420px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 170px; }
  .offer-list { grid-template-columns: 1fr; }
}

/* ---------- Short screens (phones in landscape) ----------
   Keep the whole intro, Explore button included, within the height. */
@media (max-height: 520px) {
  .hero-content { padding-top: 88px; padding-bottom: 20px; }
  .hero-title-main { font-size: clamp(3rem, 19svh, 10.75rem); }
  .hero-title-script { font-size: clamp(2rem, 11svh, 5.9rem); }
  .hero-location { margin-top: 16px; }
  .hero-cta { margin-top: 20px; }
}
