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

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

.hscroll-header .nav-list {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hscroll-header .nav-list a {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.5rem 0.4rem;
}
.hscroll-header .logo { flex-shrink: 0; margin-right: 1.5rem; }
.hscroll-header .header-cta { flex-shrink: 0; margin-left: 1rem; }

.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;
  overflow: hidden;
}

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

.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 → Vertical Stack ---------- */
.h-track {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 2rem 1rem;
  overflow-x: visible;
}

.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: 100%;
}

.h-slide-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.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: repeat(4, 1fr);
  gap: 2rem;
  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: 90vw;
  }

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

/* ---------- Heading Spacing ---------- */
.v-section h3, .col-text h3, .content-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.v-section p, .col-text p, .content-section p {
  margin-bottom: 1rem;
}

/* ---------- Page Hero Text ---------- */
.v-section--page-hero h1,
.page-hero h1 {
  color: var(--color-text, #1a1a2e) !important;
  text-shadow: none !important;
}
.v-section--page-hero p,
.page-hero p {
  color: var(--color-text-light, #555) !important;
}

/* ---------- Hero Text (no bg image — use dark text) ---------- */
.hero-content {
  color: var(--color-text, #1a1a2e);
}
.hero-content h1 {
  color: var(--color-text, #1a1a2e);
  text-shadow: none;
}
.hero-content p {
  color: var(--color-text-light, #555);
}

/* ---------- Blog Layout ---------- */
.blog-listing, .blog-list, .blog-card-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 12px;
  overflow: hidden;
}
.blog-card-image {
  width: 100%;
  height: 220px;
  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; }

/* ---------- Footer Spacing ---------- */
.footer-nav h3, .footer-brand h3 { margin-bottom: 1rem; font-size: 1rem; }
.footer-brand p { margin-top: 0.75rem; line-height: 1.6; }

/* ---------- Contact word break ---------- */
.contact-card, .sidebar-widget {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---------- No scroll animations ---------- */
.animate-in, [data-animate] {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
