/* ==========================================================================
   08-fullscreen-sections :: 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 */

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.progress-bar-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;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  white-space: nowrap;
  font-size: 0.85rem;
}

.header-phone {
  flex-shrink: 0;
  margin-left: 1.5rem;
  white-space: nowrap;
}

/* Dot Navigation */
.dot-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

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

.dot-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.dot-nav-btn.active .dot {
  background: var(--color-primary, #fff);
  border-color: var(--color-primary, #fff);
  transform: scale(1.3);
}

/* Fullscreen Container */
.fullscreen-container {
  overflow-y: auto;
  scroll-snap-type: y proximity;
  height: 100vh;
  height: 100dvh;
}

/* Fullscreen Sections */
.fs-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  overflow: hidden;
}

.fs-section-scroll {
  display: block;
  height: auto;
  min-height: auto;
  overflow: visible;
  scroll-snap-align: none;
}

.fs-section-scroll .fs-content {
  max-height: none;
}

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

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

.fs-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}

.fs-section:not(.fs-section-scroll) .fs-content {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2.5rem;
  color: var(--color-text, #222);
}

.fs-content-wide {
  max-width: 1100px;
}

.fs-content-scroll {
  max-height: none;
  padding: 6rem 2rem;
}

/* Fullscreen Grid Layouts */
.fs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.fs-grid-item {
  padding: 1.5rem;
}

.fs-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.fs-testimonials {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.fs-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.fs-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

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

.fs-amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.fs-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

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

.fs-step {
  padding: 1.5rem;
}

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

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

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

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

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

/* Form */
.contact-form {
  margin-top: 1.5rem;
}

.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: 1rem;
}

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

/* Map */
.fs-map {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  overflow: hidden;
  margin: 1rem 0;
}

.fs-map iframe {
  width: 100%;
  height: 100%;
}

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

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

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

.fs-substances {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* Privacy / Standard Pages */
.page-hero-compact {
  padding: 6rem 0 3rem;
}

.privacy-content {
  padding: 3rem 0 5rem;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

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

.footer-minimal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

/* 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: 1024px) {
  .fs-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fs-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@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; }
  .dot-nav {
    right: 0.75rem;
  }
  .primary-nav {
    display: none;
  }
  .fs-grid,
  .fs-features,
  .fs-steps {
    grid-template-columns: 1fr;
  }
  .fs-team-grid {
    grid-template-columns: 1fr;
  }
  .fs-gallery {
    grid-template-columns: 1fr;
  }
  .fs-amenities,
  .fs-insurance,
  .fs-modalities,
  .fs-substances {
    grid-template-columns: repeat(2, 1fr);
  }
  .fs-contact-grid {
    grid-template-columns: 1fr;
  }
  .fs-blog-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .fs-content {
    padding: 1.5rem;
  }
  .fs-actions {
    flex-direction: column;
    align-items: center;
  }
}

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