/* ================================================================
   responsive.css — Shared mobile/tablet styles for all four themes
   Loaded after the active theme stylesheet so these rules take
   precedence at the relevant breakpoints.
   Theme CSS custom properties (--terracotta, --sage, etc.) remain
   in scope here and resolve correctly per active theme.
   ================================================================ */

/* ── Tablet: 2-col grids narrow, nav starts to compress ── */
@media (max-width: 960px) {

  /* Nav: hide text links, show hamburger */
  #nav-links { display: none; }
  #nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  #nav-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }
  #nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  #nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* Mobile nav drawer */
  #nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: inherit;
    border-top: 1px solid var(--border, #E8DDD4);
    border-bottom: 1px solid var(--border, #E8DDD4);
    padding: 8px 0;
    z-index: 200;
  }
  #nav-links.open li { list-style: none; }
  #nav-links.open a {
    display: block;
    padding: 14px 24px;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border, #E8DDD4);
  }
  #nav-links.open li:last-child a { border-bottom: none; }

  /* Keep header positioned for the drawer */
  #site-header { position: sticky; top: 0; z-index: 100; }
  #main-nav { position: relative; }

  /* Hero: stack content and image */
  #hero { grid-template-columns: 1fr; min-height: auto; }
  #hero-visual { min-height: 280px; order: -1; }
  #hero-content { padding: 48px 32px; }
  #hero-headline { font-size: 38px; }
  #hero-body { font-size: 14px; }

  /* About: stack portrait above content */
  #about { grid-template-columns: 1fr; }
  #about-visual { min-height: 300px; order: 0 !important; }
  #about-content { order: 1 !important; padding: 48px 32px; }
  #about-content h2 { font-size: 28px; }

  /* Contact: stack */
  #contact { grid-template-columns: 1fr; }
  #contact-info { padding: 48px 32px; }
  #contact-form-wrap { padding: 48px 32px; }

  /* Offerings: 2-col on tablet */
  #offerings-grid { grid-template-columns: repeat(2, 1fr); }

  /* Pricing: 2-col on tablet */
  #pricing-grid { grid-template-columns: repeat(2, 1fr); }

  /* General section padding */
  section { padding: 56px 32px; }
  #announce-bar { padding: 8px 24px; }
  #main-nav { padding: 16px 24px; }
}

/* ── Mobile: single column, simplified layout ── */
@media (max-width: 600px) {

  /* Announce bar — simplify or hide on very small screens */
  #announce-bar { display: none; }

  /* Nav */
  #main-nav { padding: 14px 20px; }
  #nav-cta { display: none; } /* avoid crowding; booking accessible via hero CTA */

  /* Logo: shorten on small screens */
  .logo-text { font-size: 15px; }

  /* Hero */
  #hero-visual { min-height: 220px; }
  #hero-content { padding: 36px 20px; }
  #hero-headline { font-size: 32px; line-height: 1.2; }
  #hero-body { font-size: 14px; max-width: 100%; }
  #hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  #hero-actions .btn-secondary { margin-top: 4px; }

  /* Info strip: hide on mobile, too dense */
  #info-strip { display: none; }

  /* Sections */
  section { padding: 48px 20px; }
  .section-header h2 { font-size: 28px; }

  /* Offerings: single column */
  #offerings-grid { grid-template-columns: 1fr; gap: 16px; }
  .offering-card { padding: 24px 20px; }
  .offering-num { font-size: 36px; margin-bottom: 10px; }

  /* About */
  #about-visual { min-height: 260px; }
  #about-content { padding: 36px 20px; }
  #about-content h2 { font-size: 26px; }
  #about-content p { font-size: 14px; }

  /* Schedule */
  #schedule-cta-wrap { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Pricing: single column, reorder so featured is first */
  #pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .price-featured { order: -1; }
  .price-card { padding: 28px 20px; }
  .price-badge {
    position: static;
    transform: none;
    display: inline-block;
    margin-bottom: 12px;
  }
  .price-amount { font-size: 44px; }

  /* Contact */
  #contact-info { padding: 36px 20px; }
  #contact-form-wrap { padding: 36px 20px; }
  #contact-info h2 { font-size: 26px; }

  /* Footer */
  #site-footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px 20px; }
  #footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Theme switcher: move up slightly so it clears mobile browser chrome */
  #theme-switcher { bottom: 20px; right: 16px; }
  #theme-panel { width: 200px; }

  /* Login page */
  #login-card { padding: 32px 24px; }

  /* Schedule page */
  #schedule-main { padding: 48px 20px; }
  #schedule-main h1 { font-size: 28px; }
  #logout-bar { padding: 12px 20px; }
}

/* ── Style 2 override: hero is left-heavy, needs reorder on mobile ── */
@media (max-width: 960px) {
  /* Style 2 hero is 5fr/3fr — collapse to full-width image on top */
  #hero { grid-template-columns: 1fr; }
}

/* ── Touch: remove hover effects that don't make sense ── */
@media (hover: none) {
  .offering-card:hover { background: inherit; }
  .price-card:hover { border-color: var(--border, #E8DDD4); }
  .price-featured:hover { border-color: inherit; }
  #nav-links a:hover { color: inherit; }
}
