/* ==========================================================================
   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: 0.5rem 0;
  background: var(--color-bg, #ffffff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.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%;
  background: var(--hero-overlay, linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.60)));
}

.pd-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  margin: 0 auto;
  color: #ffffff;
}
.pd-content h1, .pd-content h2 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.pd-content p, .pd-content .pd-sub {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Continue Button */
.continue-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  cursor: pointer;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
}
.pd-content .btn-secondary,
.pd-content a:not(.btn-primary) {
  color: #ffffff;
}

/* 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;
  }
}

/* ---------- Heading Spacing ---------- */
.pd-content h3, .col-text h3, .content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.pd-content p, .col-text p, .content-section p {
  margin-bottom: 1rem;
}
.footer-links h3, .footer-brand h3 {
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-brand p { margin-top: 0.75rem; line-height: 1.6; }

/* ---------- Hero Text ---------- */
.pd-hero-content, .pd-content-hero {
  color: #ffffff;
}
.pd-hero-content h1, .pd-content-hero h1,
.pd-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.pd-hero-content p, .pd-content-hero p,
.pd-subtitle {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ---------- Blog Layout ---------- */
.blog-listing, .blog-list, .blog-card-grid, .pd-blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
}
.blog-card-image {
  width: 300px;
  min-height: 220px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-body h3 { font-size: 1.15rem; margin: 0.5rem 0 0.75rem; }
.blog-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- FAQ Accordion ---------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto 0;
}
.faq-item {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1.5rem 1.25rem; line-height: 1.7; }

@media (max-width: 768px) {
  .blog-card { flex-direction: column; }
  .blog-card-image { width: 100%; min-height: 180px; }
}