/* ============================================
   VELOCITY ISLAND PARK - Responsive Styles
   Mobile-First Breakpoints
   ============================================ */

/* --- Tablet and below (max 1024px) --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .two-col-reverse {
    direction: ltr;
  }
}

/* --- Mobile Navigation (max 900px) --- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: 0;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    padding: var(--space-md) 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--text-base);
  }

  .main-nav a::after,
  .nav-dropdown > .nav-dropdown-toggle::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-md);
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0;
    padding-left: var(--space-md);
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    border-bottom: none;
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
    color: var(--color-text-light);
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* --- Tablet (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --space-4xl: 3rem;
    --space-3xl: 2rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* Reset span-2 cards to single column */
  [style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  .hero {
    min-height: 400px;
  }

  .hero-page {
    min-height: 250px;
  }

  .hero-content {
    padding: var(--space-lg) var(--space-md);
  }

  .hero h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
  }

  .hero .subtitle {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .season-banner {
    font-size: var(--text-sm);
    padding: var(--space-xs) var(--space-md);
    min-height: 32px;
  }

  .info-bar .container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  /* Hide floating book button near hero - it's redundant */
  .floating-book {
    bottom: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .email-signup {
    flex-direction: column;
    max-width: 100%;
  }

  .email-signup button {
    width: 100%;
  }

  /* Show floating book button on mobile */
  .floating-book {
    display: block;
  }

  .cta-banner {
    padding: var(--space-2xl) var(--space-md);
  }

  table {
    font-size: var(--text-sm);
  }

  thead th, tbody td {
    padding: var(--space-sm) var(--space-md);
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section-sm {
    padding: var(--space-lg) 0;
  }

  .waiver-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --header-height: 64px;
  }

  .site-logo img {
    height: 36px;
  }

  .grid-4 { grid-template-columns: 1fr; }

  .pricing-card {
    padding: var(--space-lg);
  }

  .testimonial-card {
    padding: var(--space-lg);
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: var(--text-sm);
  }

  .activity-card-img {
    height: 160px;
  }

  .activity-card[style*="grid-column"] .activity-card-img {
    height: 180px !important;
  }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* --- Large Desktop (min 1400px) --- */
@media (min-width: 1400px) {
  .hero {
    min-height: 700px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .floating-book,
  .nav-toggle,
  .btn-book,
  .cta-banner,
  .email-signup {
    display: none !important;
  }

  .hero {
    min-height: auto;
    margin-top: 0;
    background: none;
    color: var(--color-text);
  }

  .hero-bg {
    display: none;
  }

  .hero h1 {
    color: var(--color-primary);
    text-shadow: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .section {
    padding: 1rem 0;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
