/* Rachel's Therapeutic Massage — Mobile Styles */

/* ── GLOBAL: prevent horizontal scroll ── */
html, body { overflow-x: hidden; }

/* ── Ensure all images are responsive ── */
img { max-width: 100%; height: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

/* ══════════════════════════════════
   TABLET / MOBILE ≤ 900px
   (matches index.html nav breakpoint)
══════════════════════════════════ */
@media (max-width: 900px) {

  /* Show hamburger, hide desktop nav */
  .nav-toggle { display: flex; align-items: center; }
  nav .inner > ul { display: none !important; }

  /* ── Full-viewport menu — scrollable when dropdowns open ── */
  nav.nav-open .inner > ul {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh;
    background: linear-gradient(160deg, #1C3A2A 0%, #162e21 60%, #0f1f17 100%);
    padding: 80px 28px 32px;
    z-index: 99;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    border-top: 3px solid #C9A84C;
  }

  /* ── Services / Areas: tappable row with chevron ── */
  nav.nav-open .has-dropdown > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-transform: none !important;
    color: rgba(255,255,255,0.88) !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(201,168,76,0.18) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    background: transparent !important;
  }

  /* Chevron visible, gold, rotates when open */
  nav.nav-open .has-dropdown > a .dd-arrow {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    color: #C9A84C !important;
    transition: transform 0.25s ease !important;
    flex-shrink: 0 !important;
  }

  nav.nav-open .has-dropdown.mob-open > a .dd-arrow {
    transform: rotate(180deg) !important;
  }

  /* ── Sub-menus: hidden until toggled ── */
  nav.nav-open .nav-dropdown {
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    min-width: 0 !important;
    padding: 4px 0 8px 0 !important;
  }

  nav.nav-open .has-dropdown.mob-open .nav-dropdown {
    display: flex !important;
  }

  nav.nav-open .nav-dropdown li { list-style: none !important; }

  nav.nav-open .nav-dropdown li a {
    display: block !important;
    padding: 10px 0 10px 16px !important;
    font-size: 13px !important;
    letter-spacing: 0.4px !important;
    color: rgba(255,255,255,0.70) !important;
    background: transparent !important;
    border: none !important;
    border-left: 2px solid rgba(201,168,76,0.30) !important;
    border-radius: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  nav.nav-open .nav-dropdown li a:active {
    color: #E8C55A !important;
    border-left-color: #C9A84C !important;
  }

  /* ── Simple links: About, Contact ── */
  nav.nav-open ul > li:not(.has-dropdown):not(.nav-cta) > a {
    display: block !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.88) !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(201,168,76,0.18) !important;
    letter-spacing: 0.5px !important;
  }

  /* ── Book Now button ── */
  nav.nav-open .nav-cta { border-bottom: none !important; margin-top: 8px !important; }
  nav.nav-open .nav-cta a {
    display: block !important;
    text-align: center !important;
    padding: 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    background: #C9A84C !important;
    color: #fff !important;
    border-radius: 3px !important;
    min-height: 44px !important;
  }

  /* ══ Section padding reductions ══ */
  #services, #about, #techniques, #testimonials,
  #contact, #faq { padding: 64px 0 !important; }
  #cta            { padding: 56px 0 !important; }
  footer          { padding: 48px 0 28px !important; }

  /* ══ Page layout — single column ══ */
  .content-layout, .about-grid, .contact-grid,
  .footer-grid, .techniques-intro {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .sidebar              { position: static !important; }
  .benefit-grid,
  .conditions-list      { grid-template-columns: 1fr !important; }
  .services-grid        { grid-template-columns: 1fr !important; gap: 16px !important; }
  .testimonial-grid     { grid-template-columns: 1fr !important; }
  .techniques-grid      { grid-template-columns: 1fr 1fr !important; }

  /* ══ Service / technique card padding ══ */
  .service-card         { padding: 36px 28px 32px !important; }
  .technique-item       { padding: 28px 24px !important; }

  /* ══ Hero ══ */
  .hero-ctas            { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .hero-stats           { flex-wrap: wrap; gap: 24px; }

  /* ══ About ══ */
  .about-img-accent     { display: none !important; }
  .about-badge          { left: 16px !important; }

  /* ══ Booking ══ */
  .booking-frame-wrap iframe { height: 650px !important; }
  #booking              { padding: 60px 0 40px !important; }

  /* ══ Inner page hero ══ */
  .page-hero            { min-height: 360px !important; padding-top: 96px !important; padding-bottom: 48px !important; }
  .page-hero h1         { font-size: clamp(1.8rem, 5.5vw, 2.6rem) !important; }

  /* ══ Touch-friendly buttons (44px min tap target) ══ */
  .btn                  { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* ══ iOS Safari: background-attachment fix ══ */
  #hero, #cta           { background-attachment: scroll !important; }

  /* ══ Footer ══ */
  .footer-grid          { gap: 32px !important; }
  .footer-brand img     { height: 48px !important; }
}

/* ══════════════════════════════════
   LARGE PHONE ≤ 540px
══════════════════════════════════ */
@media (max-width: 540px) {
  .techniques-grid      { grid-template-columns: 1fr !important; }
  #hero h1              { font-size: clamp(1.7rem, 8vw, 2.2rem) !important; }
  .btn                  { padding: 13px 22px !important; font-size: 11px !important; }
  .booking-frame-wrap iframe { height: 560px !important; }
  .section-title        { font-size: clamp(1.4rem, 6vw, 1.9rem) !important; }
  .container            { padding: 0 16px !important; }
  .page-hero            { padding-top: 80px !important; min-height: 300px !important; }
  .page-hero h1         { font-size: clamp(1.5rem, 7vw, 1.9rem) !important; }
  .content-wrap         { padding: 48px 0 !important; }
  .footer-grid          { gap: 28px !important; }

  /* Further section padding reduction */
  #services, #about, #techniques, #testimonials,
  #contact, #faq        { padding: 48px 0 !important; }
  #cta                  { padding: 40px 0 !important; }
  footer                { padding: 40px 0 24px !important; }

  /* Card padding */
  .service-card         { padding: 28px 20px 24px !important; }
  .technique-item       { padding: 24px 20px !important; }
  .testimonial-card     { padding: 28px 20px !important; }

  /* Nav logo */
  nav .logo-wrap img    { height: 42px !important; }

  /* About badge */
  .about-badge          { padding: 14px 16px !important; }
  .about-badge-num      { font-size: 2rem !important; }

  /* Hero stats */
  .hero-stats           { margin-top: 32px !important; gap: 16px !important; padding-top: 24px !important; }
  .hero-stat-num        { font-size: 1.8rem !important; }

  /* Letter spacing reduction */
  .section-label        { letter-spacing: 2px !important; }
}

/* ══════════════════════════════════
   PHONE ≤ 480px
══════════════════════════════════ */
@media (max-width: 480px) {
  /* Full-width CTAs */
  .hero-ctas .btn       { width: 100% !important; text-align: center !important; }
  .cta-actions          { flex-direction: column !important; align-items: center !important; }
  .cta-actions .btn     { width: 100% !important; max-width: 320px !important; }

  /* Hero */
  #hero h1              { font-size: clamp(1.6rem, 9vw, 2rem) !important; }
  #hero p               { font-size: 0.93rem !important; }

  /* Services header */
  .services-header      { margin-bottom: 40px !important; }

  /* Testimonial quote mark */
  .testimonial-card::before { font-size: 4rem !important; top: -6px !important; }
}

/* ══════════════════════════════════
   SMALL PHONE ≤ 360px
══════════════════════════════════ */
@media (max-width: 360px) {
  .container            { padding: 0 12px !important; }
  #hero h1              { font-size: 1.55rem !important; }
  .section-title        { font-size: 1.3rem !important; }
  .btn                  { padding: 12px 16px !important; font-size: 10px !important; letter-spacing: 1px !important; }

  /* Hero stats vertical on very small */
  .hero-stats           { flex-direction: column !important; gap: 8px !important; }

  /* Hide about badge on tiny screens */
  .about-badge          { display: none !important; }

  /* Section padding */
  #services, #about, #techniques, #testimonials,
  #contact, #faq        { padding: 36px 0 !important; }
}
