/* ============================================================
   Summit Sipping — mobile responsive overrides
   Targets inline styles via attribute selectors + !important.
   Works because the JSX inline styles are not flagged !important.
   ============================================================ */

/* -------------------- TABLET & MOBILE (≤900px) -------------------- */
@media (max-width: 900px) {

  /* Top decorative strip in the nav */
  header > div:first-child {
    padding: 8px 14px !important;
    font-size: 9.5px !important;
    letter-spacing: 1.3px !important;
    gap: 8px;
  }
  header > div:first-child > span:first-child {
    display: none !important; /* hide the "Established..." line for room */
  }

  /* Main nav row stacks vertically */
  header > div:nth-child(2) {
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    text-align: center;
  }
  header nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 14px 18px !important;
  }
  header nav > * {
    font-size: 11.5px !important;
    letter-spacing: 1.8px !important;
  }

  /* All page sections — slim horizontal padding */
  section {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Collapse multi-column grids to one column.
     Exception: any 6-col grid (events) becomes 2 cols. */
  section [style*="grid-template-columns: repeat(6"],
  section [style*="grid-template-columns:repeat(6"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  section [style*="grid-template-columns"]:not([style*="repeat(6"]),
  footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  /* Inner decorative padded boxes (saloon posters & frames) */
  section [style*="padding: 60px 70px"],
  section [style*="padding: 50px"],
  section [style*="padding: 44px"],
  section [style*="padding: 40px"],
  section [style*="padding: 60px"],
  section [style*="padding: '60px 70px"],
  section [style*="padding: '50px"],
  section [style*="padding: '44px"],
  section [style*="padding: '40px"],
  section [style*="padding: '60px"] {
    padding: 28px 20px !important;
  }
  section [style*="padding: '50px 60px"] {
    padding: 28px 20px !important;
  }

  /* Stats banner inner padding */
  [style*="padding: 28px 40px"] {
    padding: 18px 14px !important;
  }

  /* Cap section vertical padding too on mobile */
  section[style*="padding: '110px"], section[style*="padding: 110px"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  section[style*="padding: '90px"], section[style*="padding: 90px"] {
    padding-top: 48px !important;
    padding-bottom: 24px !important;
  }
  section[style*="padding: '70px"], section[style*="padding: 70px"] {
    padding-top: 40px !important;
  }
  section[style*="padding: '60px"], section[style*="padding: 60px"] {
    padding-top: 32px !important;
  }

  /* Big display headings — scale down via attribute-style match. */
  [style*="font-size: 132px"] { font-size: clamp(44px, 11.5vw, 80px) !important; line-height: 0.95 !important; letter-spacing: -0.5px !important; }
  [style*="font-size: 120px"] { font-size: clamp(42px, 11vw, 76px) !important; line-height: 0.95 !important; letter-spacing: -0.5px !important; }
  [style*="font-size: 116px"] { font-size: clamp(42px, 10.5vw, 74px) !important; line-height: 0.95 !important; letter-spacing: -0.5px !important; }
  [style*="font-size: 110px"] { font-size: clamp(40px, 10vw, 72px) !important; line-height: 0.95 !important; }
  [style*="font-size: 104px"] { font-size: clamp(40px, 10vw, 70px) !important; line-height: 0.95 !important; }
  [style*="font-size: 96px"]  { font-size: clamp(38px, 9.5vw, 64px) !important; line-height: 1 !important; }
  [style*="font-size: 90px"]  { font-size: clamp(36px, 9vw, 60px) !important; line-height: 1 !important; }
  [style*="font-size: 88px"]  { font-size: clamp(36px, 9vw, 60px) !important; line-height: 1 !important; }
  [style*="font-size: 84px"]  { font-size: clamp(34px, 8.5vw, 58px) !important; line-height: 1 !important; }
  [style*="font-size: 64px"]  { font-size: clamp(30px, 7vw, 48px) !important; }
  [style*="font-size: 60px"]  { font-size: clamp(28px, 6.5vw, 46px) !important; }
  [style*="font-size: 56px"]  { font-size: clamp(28px, 6.5vw, 44px) !important; }
  [style*="font-size: 52px"]  { font-size: clamp(26px, 6vw, 42px) !important; }
  [style*="font-size: 50px"]  { font-size: clamp(26px, 6vw, 40px) !important; }
  [style*="font-size: 48px"]  { font-size: clamp(24px, 5.5vw, 38px) !important; }
  [style*="font-size: 44px"]  { font-size: clamp(24px, 5.5vw, 36px) !important; }
  [style*="font-size: 36px"]  { font-size: clamp(22px, 4.8vw, 32px) !important; }
  [style*="font-size: 32px"]  { font-size: clamp(20px, 4.5vw, 28px) !important; }
  [style*="font-size: 30px"]  { font-size: clamp(20px, 4.2vw, 26px) !important; }
  [style*="font-size: 28px"]  { font-size: clamp(18px, 4vw, 24px) !important; }
  [style*="font-size: 26px"]  { font-size: clamp(17px, 3.6vw, 22px) !important; }

  /* Images — scale to container width, cap height */
  img {
    width: 100% !important;
    height: auto !important;
    max-height: 70vh;
  }

  /* Hero CTA rows wrap */
  [style*="display: flex"][style*="gap: 14"],
  [style*="display: flex"][style*="gap: 18"],
  [style*="display: flex"][style*="gap: 28"] {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* Footer paddings */
  footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 44px !important;
  }
}

/* -------------------- SMALL PHONES (≤480px) -------------------- */
@media (max-width: 480px) {
  section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  section [style*="padding: 28px 20px"] {
    padding: 22px 14px !important;
  }

  /* Bigger reduction on display headings */
  [style*="font-size: 132px"], [style*="font-size: 120px"],
  [style*="font-size: 116px"], [style*="font-size: 110px"] {
    font-size: clamp(36px, 13vw, 56px) !important;
  }

  /* Tighten footer to single column */
  footer [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  /* Logo + crest a bit smaller */
  header svg {
    width: 44px !important;
    height: 44px !important;
  }
}
