/* ─── LUMIA THERAPY — MOBILE & RESPONSIVE STYLES ─── */

/* Burger menu button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-ink-900);
  transition: all 0.3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-bg-page);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 48px 24px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.mobile-nav a.book-btn {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-on-rust);
  background: var(--color-accent-deep);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--brand-ink-900);
  line-height: 1;
}


/* ─── TABLET (max 1024px) ─── */
@media (max-width: 1024px) {
  header { padding: 16px 32px !important; }

  section[style*="grid-template-columns:1fr 1fr"],
  section[style*="grid-template-columns:0.9fr 1.1fr"],
  section[style*="grid-template-columns:1fr 1.3fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  div[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}


/* ─── MOBILE (max 768px) ─── */
@media (max-width: 768px) {

  header {
    padding: 16px 20px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
  }

  header nav { display: none !important; }
  .nav-burger { display: flex !important; }

  /* Hero: let image drive height naturally (1344x1185, ratio ~1.13:1) */
  section[style*="height:640px"] {
    height: auto !important;
    min-height: unset !important;
    display: block !important;
    position: relative !important;
  }

  section[style*="height:640px"] picture {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    inset: unset !important;
  }

  section[style*="height:640px"] picture img {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    inset: unset !important;
    object-fit: unset !important;
  }

  section[style*="height:640px"] > div[style*="background:linear-gradient"] {
    display: none !important;
  }

  section[style*="height:640px"] > div[style*="padding-bottom:64px"] {
    position: relative !important;
    inset: unset !important;
    padding: 28px 20px !important;
    text-align: center !important;
    background: var(--color-bg-page) !important;
  }

  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  section[style*="grid-template-columns"],
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  section img[style*="height:380px"],
  section img[style*="height:460px"],
  section img[style*="height:280px"],
  section img[style*="height:420px"],
  section img[style*="height:480px"] {
    height: 240px !important;
  }

  div[style*="display:flex;justify-content:center;gap:40px"] {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  footer { padding: 36px 20px 20px !important; }

  footer > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  section[style*="max-width:var(--content-max)"],
  section[style*="max-width:var(--content-narrow)"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}



/* ── SMALL PHONES (max 390px) ── */
@media (max-width: 390px) {
  /* Centre the hero image on small screens */
  section[style*="height:640px"] picture img {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: auto !important;
  }

  section[style*="height:640px"] {
    overflow: hidden !important;
  }
}

/* ── REDUCE GAP BETWEEN BUTTON AND ABOUT SECTION ON MOBILE ── */
@media (max-width: 768px) {
  section[style*="height:640px"] > div[style*="padding-bottom:64px"] {
    padding: 16px 20px !important;
    margin-bottom: 0 !important;
  }

  /* Reduce top padding on the About section that follows the hero */
  section[style*="height:640px"] + section,
  section[style*="height:640px"] ~ section:first-of-type {
    padding-top: 32px !important;
  }
}

/* ── REDUCE SECTION TOP PADDING AFTER HERO ON MOBILE ── */
@media (max-width: 768px) {
  /* All sections using space-10 padding get reduced on mobile */
  section[style*="padding:var(--space-10)"] {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  section[style*="padding:var(--space-9)"] {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
}

/* ── BODY AND HERO FULL WIDTH ── */
html, body { margin: 0 !important; padding: 0 !important; }

@media (max-width: 768px) {
  body > div { margin: 0 !important; padding: 0 !important; }

  section[style*="height:640px"] {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  section[style*="height:640px"] picture,
  section[style*="height:640px"] picture img {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
