/* ==========================================================================
   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;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 100%) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.7) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.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;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  opacity: 0.85;
}

.site-header .logo-text {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.header-phone {
  flex-shrink: 0;
  margin-left: 1.5rem;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.header-phone:hover,
.header-phone:focus {
  color: #ffffff;
  opacity: 0.85;
}

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

.dot {
  display: block;
  width: 12px;
  height: 12px;
}

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

/* === CLAUDE.md mandatory visual rules === */

.animate-in, [data-animate] {
  animation: none !important;
  opacity: 1 !important;
}

.fs-section, .fs-content, .fs-bg, .fs-overlay,
.card, .program-card, .blog-card,
.hero, .page-hero,
.team-card, .testimonial-card, .why-card, .contact-card,
.info-card, .content-card, .step-card, .faq-item, .gallery-card, img {
  animation: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Stack blog/team/testimonial cards vertically inside fs sections */
.fs-blog-grid,
.fs-team-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 2rem !important;
  margin-top: 1.5rem;
}

.blog-card,
.team-card,
.testimonial-card {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog card magazine layout at desktop */
@media (min-width: 768px) {
  .blog-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
  }
  .blog-card > img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    border-radius: 12px;
  }
}

/* Why-features stack on small screens (already grid on desktop) */
@media (max-width: 768px) {
  .fs-features {
    grid-template-columns: 1fr !important;
  }
}

/* Stat cards layout — keep grid */

/* Team card polish (inside fs section) */
.team-card {
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}
.team-card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; line-height: 1.3; }
.team-card .team-role {
  color: var(--color-accent, #b08d57);
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.team-card p:last-child { margin: 0; line-height: 1.65; }

/* Testimonial polish (used on index in fs sections) */
.fs-testimonials {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  margin-top: 1.5rem;
}
.fs-testimonial {
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.5);
  border-left: 4px solid var(--color-accent, #b08d57);
  border-radius: 0 12px 12px 0;
}
.fs-testimonial blockquote { margin: 0; }
.fs-testimonial blockquote p {
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}
.fs-testimonial cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-accent, #8b6e3e);
  font-size: 0.9rem;
}

/* FAQ accordion */
.faq-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}
.faq-item[open] {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-accent, #b08d57);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary h3 {
  display: inline;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.faq-item > p {
  margin: 0.75rem 0 0;
  line-height: 1.65;
}

/* Step number polish */
.fs-step {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 4.5rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--color-accent, #b08d57);
}
.fs-step .step-number {
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-accent, #b08d57);
  color: #ffffff;
  font-weight: 700;
}
.fs-step h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.fs-step p { margin: 0; line-height: 1.55; }

/* Hero text inside fs-content (which has white-translucent background) stays dark — that's the default and looks correct. Section headings keep brand text color. */

/* Breadcrumb at top — sits over the page (not inside fs-content), make it readable */
.breadcrumb {
  position: relative;
  z-index: 10;
  padding: 1rem 2rem;
  background: var(--color-bg, #fdfaf3);
  font-size: 0.875rem;
  max-width: 1400px;
  margin: 0 auto;
}
.breadcrumb ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
}
.breadcrumb a {
  color: var(--color-accent, #8b6e3e);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] {
  color: var(--color-text-light, #6b6157);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: rgba(0, 0, 0, 0.3);
}

/* Header polish — top bar */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.nav-links a {
  white-space: nowrap;
  font-size: 0.85rem;
}
.nav-links a:hover { color: var(--color-accent, #b08d57); }
.nav-links a[aria-current="page"] {
  color: var(--color-accent, #b08d57);
  font-weight: 700;
}