/* ==========================================================================
   10-progressive-disclosure :: layout.css
   Layout-only properties: display, position, width, height, flex, grid,
   gap, margin, padding, overflow. NO colors, fonts, shadows.
   ========================================================================== */

/* ---------- Skip Nav ---------- */
/* Defined in base.css — no override needed */

/* ---------- Container ---------- */
/* Defined in base.css with var(--container-max) — no override needed */

/* Journey Progress Bar */
.journey-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 2000;
  overflow: hidden;
}

.journey-progress-fill {
  width: 0%;
  height: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 4px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  height: 100dvh;
  z-index: 2000;
  overflow-y: auto;
  padding: 4rem 2rem 2rem;
  background: var(--color-bg, #fff);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-nav.is-open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1999;
  display: none;
}

.mobile-nav-overlay.is-visible {
  display: block;
}

/* Skip Journey Button */
.skip-journey {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

/* Progressive Disclosure Sections */
.pd-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  overflow: hidden;
}

.pd-section[data-reveal="hidden"] {
  /* Hidden sections still occupy space for scroll detection */
}

.pd-section-static {
  padding: 4rem 0;
}

.pd-section-static:first-of-type {
  padding-top: 6rem;
}

/* Background */
.pd-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.pd-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.pd-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  margin: 0 auto;
}

/* Continue Button */
.continue-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  cursor: pointer;
}

/* Actions */
.pd-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Split Layout */
.pd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pd-split-reverse {
  direction: rtl;
}

.pd-split-reverse > * {
  direction: ltr;
}

.pd-split-image img {
  width: 100%;
  height: auto;
}

/* Features */
.pd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Programs */
.pd-programs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.pd-program {
  padding: 1.5rem;
}

/* Testimonials */
.pd-testimonials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

/* Gallery */
.pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pd-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Team */
.pd-team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Amenities */
.pd-amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Steps */
.pd-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pd-step {
  padding: 1.5rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
}

/* Insurance */
.pd-insurance {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

/* FAQ */
.pd-faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Blog Grid */
.pd-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Contact Grid */
.pd-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.pd-contact-item {
  padding: 1.5rem;
}

/* Modalities & Substances */
.pd-modalities,
.pd-substances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

/* Form */
.contact-form {
  margin-top: 2rem;
  max-width: 700px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
}

/* Map */
.pd-map {
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  margin-top: 2rem;
}

.pd-map iframe {
  width: 100%;
  height: 400px;
}

.pd-directions {
  margin-top: 2rem;
}

/* Prose */
.prose ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copy {
  margin-top: 2rem;
}

/* Screen reader only */
/* .sr-only — defined in base.css */

/* Responsive */

/* ---------- Mobile Menu Toggle ---------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span,
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .mega-nav:not(.is-mobile-open), .main-nav:not(.is-open) { display: none; }
  .mega-nav.is-mobile-open, .main-nav.is-open { display: block; width: 100%; }
  .mobile-menu-toggle { display: flex; }
  .pd-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pd-split-reverse {
    direction: ltr;
  }
  .pd-features {
    grid-template-columns: 1fr;
  }
  .pd-programs {
    grid-template-columns: 1fr;
  }
  .pd-team {
    grid-template-columns: 1fr;
  }
  .pd-steps {
    grid-template-columns: 1fr;
  }
  .pd-contact-grid {
    grid-template-columns: 1fr;
  }
  .pd-blog-grid {
    grid-template-columns: 1fr;
  }
  .pd-insurance {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-amenities,
  .pd-modalities,
  .pd-substances {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .pd-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .pd-insurance,
  .pd-amenities,
  .pd-modalities,
  .pd-substances {
    grid-template-columns: 1fr;
  }
}