/* Sip'Stroke v27/v28 - phone layer. Loaded last on every public page.
   Everything is inside phone/tablet media queries, so desktop is untouched. */

@media (max-width: 760px) {
  /* Readability: the muted grey was too dim on a phone in daylight */
  :root { --muted: #aaa38f; }
  body { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }

  /* Header: the logo was 32px tall and hard to read */
  nav img, nav .nav-logo img { height: 40px !important; width: auto !important; }

  /* Small helper text up a notch */
  .hint, .rv-m, .card-meta, .row-label, .addon { font-size: 13px !important; }
  .section-lead, .lead { line-height: 1.6; }

  /* Calmer, more photographic hero: lighter overlay, text gets its own shadow */
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,14,12,.30) 0%, rgba(8,14,12,.55) 45%, rgba(8,14,12,.88) 100%) !important; }
  .hero h1, .hero .lead, .hero-eyebrow { text-shadow: 0 2px 18px rgba(0,0,0,.55); }

  /* Homepage hero: fewer things fighting for the first screen */
  .hero .mh-chip { font-size: 12.5px !important; padding: 7px 14px 7px 8px !important; margin-top: 16px !important; gap: 8px !important; line-height: 1.3 !important; }
  .hero .mh-chip span { font-size: 9.5px !important; padding: 2px 7px !important; }
  .hero .hero-press a + a { display: none !important; }  /* keep the Google rating, drop the press line */
  .hero .hero-press a { border-bottom: 0 !important; }
  .hero .hero-press { margin: 6px 0 18px !important; }
  .hero h1 { margin-bottom: 14px; }
  .hero-price { opacity: .85; }

  /* Buttons: comfortable thumb targets */
  .btn, .hero-actions .btn { min-height: 50px; }

  /* Events/golf hero stats sit on a photo: make them legible */
  .hero [class*="stat"], .hero [data-count] { text-shadow: 0 2px 14px rgba(0,0,0,.7); }
}

/* Homepage member card: on narrow phones the "Founding Member" pill widened the
   right column, squeezing the name and pushing the QR code off the card. */
@media (max-width: 520px) {
  #membership-home .mh-card { grid-template-columns: minmax(0, 1fr) 70px !important; }
  #membership-home .mh-card .lg { grid-row: 1; grid-column: 1; }
  #membership-home .mh-card .fd { grid-row: 1; grid-column: 1 / -1; justify-self: end; }
  #membership-home .mh-card .who b { white-space: nowrap; }
  #membership-home .mh-card .who span { white-space: nowrap; }
  #membership-home .mh-card { gap: 4px 12px !important; padding: 15px 16px 14px !important; }
  #membership-home .mh-card .who .ph { width: 28px !important; height: 28px !important; font-size: 14px !important; margin-bottom: 5px !important; }
  #membership-home .mh-card .qr { width: 64px !important; height: 64px !important; padding: 4px !important; }
  #membership-home .mh-card .ft { min-width: 0; overflow: hidden; }
}

/* ---------- Homepage dish strip (v27): photo cards, swipe on phones ---------- */
.hd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.hd-card { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 2 / 3; background: #122d25; color: #f5f1e8; text-decoration: none; box-shadow: 0 24px 50px -28px rgba(0,0,0,.8); isolation: isolate; }
.hd-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -1; }
.hd-card:hover img { transform: scale(1.04); }
.hd-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,22,18,0) 40%, rgba(6,22,18,.92) 100%); z-index: -1; }
.hd-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 22px; }
.hd-tag { font: 600 10.5px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #d4af7a; }
.hd-t { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; line-height: 1.1; margin: 6px 0 6px; }
.hd-d { font-size: 13.5px; line-height: 1.45; color: rgba(245,241,232,.82); margin: 0; }
.hd-p { position: absolute; top: 14px; right: 14px; background: rgba(6,22,18,.72); border: 1px solid rgba(212,175,122,.45); color: #f3d9a8; font: 600 13px Inter, sans-serif; padding: 5px 11px; border-radius: 99px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hd-more { display: flex; justify-content: center; margin-top: 34px; }
.hd-hint { display: none; }
@media (max-width: 760px) {
  .hd { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 34px -20px 0; padding: 4px 20px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hd::-webkit-scrollbar { display: none; }
  .hd-card { flex: 0 0 72%; scroll-snap-align: center; }
  .hd-t { font-size: 24px; }
  .hd-hint { display: block; text-align: center; font: 500 11.5px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8a8472; margin-top: 12px; }
}

@media (max-width: 760px) {
  /* Faint body copy on dark cards (60% white) -> 80% */
  .feature p, .zone-sub { color: rgba(245,241,232,.82) !important; }

  /* Catering: the order bar IS the call to action there - don't stack the
     Call/Directions bar underneath it. */
  body:has(.ob-bar) .ss-mbar { display: none !important; }
  body:has(.ob-bar) .ob-bar { bottom: 0 !important; padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 760px) {
  /* About / Careers / House rules / Terms / Accessibility: 180px of empty space above the title */
  .page-head:not(.ct-head) { padding-top: 140px !important; }
}

/* ---------- v28: membership in the phone navigation + full-screen phone menu ---------- */
@media (max-width: 760px) {
  .ss-mbar.has-mem { grid-template-columns: repeat(5, 1fr) !important; }
  .ss-mbar a.mb-mem, .ss-mbar a.mb-mem span, .ss-mbar a.mb-mem svg { color: #e6c08a !important; }
  .ss-mbar a.mb-mem.on span { text-decoration: underline; text-underline-offset: 3px; }

  .nav-mobile-menu { bottom: 0 !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; padding-bottom: calc(32px + env(safe-area-inset-bottom)) !important; }
  .nav-mobile-menu > a { display: flex !important; align-items: center; gap: 10px; }
  .nav-mobile-menu .mm-mem { color: #e6c08a !important; }
  .mm-new { font: 700 9.5px Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; background: #d4af7a; color: #0a1f1a; border-radius: 99px; padding: 3px 8px; }
  .mm-box { margin: 22px 0 18px; }
  .nav-mobile-menu .mm-box a { border-bottom: 0 !important; }
  .nav-mobile-menu .mm-cta { display: flex !important; justify-content: center; align-items: center; min-height: 54px; border-radius: 999px; background: #d4af7a; color: #0a1f1a !important; font: 600 13px Inter, sans-serif !important; letter-spacing: .12em; text-transform: uppercase; padding: 0 !important; }
  .mm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .nav-mobile-menu .mm-row a { display: flex !important; justify-content: center; align-items: center; min-height: 48px; border-radius: 999px; border: 1px solid rgba(245,241,232,.3) !important; font: 600 12.5px Inter, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: #f5f1e8 !important; padding: 0 !important; }
  .mm-hrs { font: 400 12.5px/1.6 Inter, sans-serif; color: #aaa38f; text-align: center; margin: 14px 0 0; }

  /* Long stacks of feature cards (events, golf, catering, membership) become one swipeable row */
  .feature-grid { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important; margin-left: -20px !important; margin-right: -20px !important; padding: 4px 20px 12px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; grid-template-columns: none !important; }
  .feature-grid::-webkit-scrollbar { display: none; }
  .feature-grid > * { flex: 0 0 80%; scroll-snap-align: start; scroll-margin-left: 20px; margin: 0 !important; }
}

/* ---------- v29: membership page fixes for phones ---------- */
@media (max-width: 520px) {
  /* Hero member card: same squeeze as the homepage card had - QR and clock were cut off */
  .mp-card { grid-template-columns: minmax(0, 1fr) 64px !important; gap: 4px 12px !important; padding: 15px 16px 14px !important; }
  .mp-card .lg { grid-row: 1; grid-column: 1; }
  .mp-card .fd { grid-row: 1; grid-column: 1 / -1; justify-self: end; }
  .mp-card .who b, .mp-card .who span { white-space: nowrap; }
  .mp-card .ph { width: 28px !important; height: 28px !important; font-size: 14px !important; margin-bottom: 5px !important; }
  .mp-card .qr { width: 64px !important; height: 64px !important; padding: 4px !important; }
  .mp-card .ft { min-width: 0; overflow: hidden; font-size: 9.5px !important; gap: 2px 8px !important; }

  /* "Member vs pay as you go" table: fit all four columns instead of hiding Full off the edge */
  .mp-cmp table { min-width: 0 !important; width: 100% !important; table-layout: fixed; font-size: 12px !important; }
  .mp-cmp th, .mp-cmp td { padding: 10px 5px !important; line-height: 1.35; overflow-wrap: anywhere; }
  .mp-cmp th { font-size: 9px !important; letter-spacing: .06em !important; }
  .mp-cmp td:first-child, .mp-cmp th:first-child { width: 27%; padding-left: 10px !important; }
}
