/* ============================================================
   Scuppers Watersports — shared responsive layer
   Loaded AFTER each page's inline <style> so these rules win.
   Covers: mobile nav (hamburger + accordion), layout stacking,
   and type scaling across the homepage + all inner pages.
   ============================================================ */

/* ---- Hamburger button (hidden on desktop) ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 130;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* prevent iOS text auto-inflation */
html { -webkit-text-size-adjust: 100%; }

/* ============================================================
   NAV → mobile drawer  (≤ 980px)
   ============================================================ */
@media (max-width: 980px) {
  #nav { padding: 0 20px; }
  #nav.nav-open {
    background: rgba(13,27,62,0.99);
    backdrop-filter: blur(16px);
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(13,27,62,0.99);
    backdrop-filter: blur(16px);
    padding: 8px 0 48px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    -webkit-overflow-scrolling: touch;
  }
  #nav.nav-open .nav-links { transform: translateX(0); }

  /* top-level items become full-width rows */
  .nav-links > a,
  .nav-dropdown > a {
    display: block;
    padding: 16px 26px;
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  /* dropdown caret indicator */
  .nav-dropdown { position: relative; }
  .nav-dropdown > a::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--teal);
  }
  .nav-dropdown.open > a::after { content: '\2013'; }

  /* submenus = accordion (override the desktop :hover rule) */
  .nav-drop-menu {
    position: static !important;
    display: none !important;
    min-width: 0;
    padding: 0;
    border: none !important;
    border-radius: 0 !important;
    background: rgba(0,0,0,.18) !important;
    box-shadow: none !important;
  }
  .nav-dropdown.open .nav-drop-menu { display: block !important; }
  .nav-drop-menu a {
    padding: 13px 26px 13px 42px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .nav-drop-menu a:hover { padding-left: 42px; }

  /* Book Now becomes a real button at the bottom */
  .nav-book {
    margin: 22px 26px 0 !important;
    text-align: center;
    padding: 16px !important;
    font-size: 12px !important;
  }
}

/* ============================================================
   HOMEPAGE + SHARED LAYOUT STACKING  (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

  /* --- HERO (homepage) --- */
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .hero-left { padding: 112px 24px 56px; }
  .hero-left::after { display: none; }
  .hero-desc { max-width: none; }
  .hero-actions { flex-wrap: wrap; }
  .hero-right { min-height: 300px; }
  .hero-badge { bottom: 20px; right: 20px; padding: 14px 20px; }
  .hero-scroll-hint { display: none; }

  /* --- section padding + headers --- */
  #activities, #rentals, #reviews { padding: 72px 24px; }
  .experience-strip, .cta-strip { padding: 72px 24px; }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  /* --- activities bento → single column --- */
  .activities-grid { grid-template-columns: 1fr; }
  .activities-grid .act-card { grid-column: auto !important; grid-row: auto !important; }
  .act-card .act-img { height: 240px !important; }
  .act-card:nth-child(1) .act-name { font-size: 24px; }

  /* --- locations --- */
  #locations { grid-template-columns: 1fr; min-height: 0; }
  .loc-divider { display: none; }
  .loc-panel { min-height: 440px; }
  .loc-body { padding: 40px 24px 44px; }

  /* --- rentals (if re-enabled) --- */
  .rentals-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .rentals-grid { grid-template-columns: 1fr; }

  /* --- experience strip --- */
  .experience-strip { grid-template-columns: 1fr; gap: 56px; }
  .exp-stats { gap: 24px; }
  .exp-main-img { height: 360px; }

  /* --- reviews --- */
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 36px 26px; }

  /* --- homepage CTA --- */
  .cta-actions { justify-content: center; flex-wrap: wrap; }

  /* ===== INNER PAGES ===== */

  /* page hero */
  .page-hero { height: 380px; padding: 0 24px 44px; }
  .page-title { font-size: 44px; letter-spacing: -1px; }

  /* two-column body → stacked */
  .page-body { grid-template-columns: 1fr; gap: 44px; padding: 56px 24px; }
  .contact-body { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px; }
  .loc-intro { grid-template-columns: 1fr; gap: 44px; padding: 56px 24px; }

  /* related / activity card grids → 2-up */
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .related-section { padding: 64px 24px; }
  .activities-section, .map-section { padding: 64px 24px; }

  /* inner CTA strip (row → stacked, centered) */
  .cta-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cta-text, .related-title { font-size: 32px; }
  .cta-actions { justify-content: center; }

  /* contact book CTA */
  .book-cta { flex-direction: column; align-items: flex-start; padding: 64px 24px; }
  .book-cta-text { font-size: 32px; }

  /* --- FOOTER (all pages) --- */
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 28px;
    padding: 44px 24px;
  }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; gap: 16px 24px; }
  .footer-right { align-items: center; }
}

/* ============================================================
   PHONE  (≤ 560px)
   ============================================================ */
@media (max-width: 560px) {
  .hero-title { font-size: 42px; }
  .hero-hand { font-size: 22px; }

  .section-title-serif { font-size: 32px; }
  .page-title { font-size: 34px; }
  .page-hero { height: 320px; }

  .loc-name { font-size: 30px; }

  /* single-column card grids on small phones */
  .related-grid { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: 1fr; }

  .exp-accent-img { display: none; }
  .exp-stats { grid-template-columns: 1fr 1fr; }

  /* make full-width buttons easier to tap */
  .hero-actions .btn-solid,
  .hero-actions .btn-ghost-white,
  .cta-actions .btn-solid,
  .cta-actions .btn-ghost-white,
  .cta-actions .btn-cta,
  .cta-actions .btn-cta-ghost {
    width: 100%;
    text-align: center;
  }
  .hero-actions, .cta-actions { width: 100%; }

  .book-buttons .btn-book,
  .book-buttons .btn-book-outline { width: 100%; }

  footer { padding: 40px 20px; }
  #activities, #rentals, #reviews,
  .experience-strip, .cta-strip { padding: 60px 20px; }
}
