/* ==========================================================================
   14-horizontal-scroll | layout.css
   Architecture-specific LAYOUT ONLY — no colors, fonts, or visual decoration.
   Mixed vertical/horizontal scroll sections with CSS scroll-snap.
   ========================================================================== */

/* ---------- Header Layout ---------- */
.hscroll-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

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

.hscroll-header .logo {
  flex-shrink: 0;
  margin-right: 2rem;
}

.hscroll-header .nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: 2rem;
}

.hscroll-header .nav-list a {
  white-space: nowrap;
  font-size: 0.8rem;
}

.hscroll-header .header-cta,
.hscroll-header .phone-cta,
.hscroll-header .header-phone {
  flex-shrink: 0;
  white-space: nowrap;
}

.hscroll-header .mobile-toggle {
  display: none;
}

/* ---------- Vertical Sections ---------- */
.v-section {
  padding: 5rem 2rem;
}

.v-section--cta {
  padding: 4rem 2rem;
}

/* .container — defined in base.css */

.container--centered {
  text-align: center;
}

.container--narrow {
  max-width: 800px;
}

/* ---------- Hero Layout ---------- */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.container--centered .hero-actions {
  justify-content: center;
}

/* ---------- Content Split ---------- */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.content-split__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---------- Horizontal Section ---------- */
.h-section {
  padding: 3rem 0;
}

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

.h-section-controls {
  display: none; /* Hidden — no horizontal scroll */
}

.h-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}

.h-indicators {
  display: flex;
  gap: 0.5rem;
}

.h-indicator {
  width: 8px;
  height: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ---------- Horizontal Track ---------- */
.h-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.h-track::-webkit-scrollbar {
  height: 6px;
}

/* ---------- Horizontal Slides ---------- */
.h-slide {
  width: 100%;
  overflow: hidden;
}

.h-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.h-slide-content {
  padding: 1.5rem;
}

.h-slide--text {
  width: 100%;
  padding: 2rem;
}

.h-slide--media {
  width: 100%;
}

.h-slide--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full-width slide (program detail) */
.h-slide--full {
  width: 100%;
  max-width: 900px;
}

.h-slide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: 100%;
}

.h-slide-split .h-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-slide-split .h-slide-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding: 3rem 2rem;
}

/* ---------- Map ---------- */
.map-embed {
  width: 100%;
  min-height: 400px;
}

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

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.breadcrumb ol {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Footer Layout ---------- */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

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

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}

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

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

/* ---------- Responsive: Tablet ---------- */

/* ---------- 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) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .content-split {
    grid-template-columns: 1fr;
  }

  .h-slide--full {
    width: 100%;
  }

  .h-slide-split {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 640px) {
  .hscroll-header .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
  }

  .hscroll-header .main-nav.is-open {
    display: block;
  }

  .hscroll-header .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
  }

  .hscroll-header .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
  }

  .v-section {
    padding: 3rem 1rem;
  }

  .h-slide {
    width: 100%;
  }

  .h-slide--text {
    width: 100%;
  }

  .h-slide--full {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
