/* ============================================
   High School Ministry — GateWay Bible Church
   ============================================ */

/* (Hero uses shared page-hero--photo component from components.css) */


/* --- Intro Layout (details left, text right — flipped from middle school) --- */

.hs-intro-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--space-16);
  align-items: start;
}

.hs-intro-content {
  padding-top: var(--space-2);
}

.hs-intro-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
  margin-top: var(--space-4);
}


/* --- Details Card (gold accent — differs from middle school's bright blue) --- */

.hs-details-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.hs-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hs-details-list li {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--dark-blue-10);
}

.hs-details-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hs-detail-label {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--gray-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hs-detail-value {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--dark-blue);
  line-height: 1.5;
}

.hs-detail-value a {
  color: var(--bright-blue);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.hs-detail-value a:hover {
  text-decoration: underline;
}


/* --- Wednesday Night Flow (horizontal timeline — differs from MS grid) --- */

.hs-night-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--space-12);
  position: relative;
}

.hs-night-flow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--white-20);
}

.hs-night-flow::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 5%;
  width: 0%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--bright-blue));
  box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(216, 170, 25, 0.4);
  opacity: 0;
  z-index: 0;
  transition: none;
}

.hs-night-flow.is-glowing::after {
  opacity: 1;
  width: 90%;
  transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.3s ease;
}

.hs-night-step {
  text-align: center;
  padding: 0 var(--space-4);
  position: relative;
}

.hs-night-marker {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto var(--space-6);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(216, 170, 25, 0.2);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hs-night-step.is-lit .hs-night-marker {
  box-shadow: 0 0 0 6px rgba(216, 170, 25, 0.3), 0 0 16px var(--gold), 0 0 32px rgba(216, 170, 25, 0.3);
  transform: scale(1.2);
}

.hs-night-title {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.hs-night-desc {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-book);
  color: var(--white-70);
  line-height: 1.6;
}


/* --- Beyond Wednesdays (text + stacked photos) --- */

.hs-beyond-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.hs-beyond-text {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
  margin-top: var(--space-4);
}

.hs-beyond-text a {
  color: var(--bright-blue);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.hs-beyond-text a:hover {
  text-decoration: underline;
}

.hs-photo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.hs-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hs-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hs-photo-card--1 {
  aspect-ratio: 3 / 4;
}

.hs-photo-card--2 {
  aspect-ratio: 3 / 4;
  margin-top: var(--space-10);
}


/* --- Calendar Grid --- */

/* Summer 2026 — two-column split (prose left, calendar thumbs right), matches MS layout */
.hs-summer-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-10);
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.hs-summer-split .hs-summer-content {
  max-width: 520px;
}

.hs-summer-text {
  font-size: var(--text-base);
  color: var(--gray-blue);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.hs-calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 240px);
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

/* Inside the summer split, render thumbnails side-by-side at smaller size */
.hs-summer-split .hs-calendar-grid {
  grid-template-columns: repeat(2, 190px);
  gap: var(--space-4);
  justify-content: end;
  margin-top: 0;
}

.hs-calendar-card {
  display: block;
  text-align: left;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--dark-blue-10);
  background: var(--white);
  padding: 0;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-out);
}

.hs-calendar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hs-calendar-card img {
  width: 100%;
  display: block;
}

.hs-calendar-label {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--dark-blue);
  text-align: center;
}


/* --- Team (centered grid — differs from MS side-by-side) --- */

.hs-team {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hs-team-sub {
  font-size: var(--text-base);
  font-weight: var(--font-weight-light);
  color: var(--dark-blue-70);
  line-height: 1.7;
  margin-top: var(--space-3);
}

.hs-team-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-10);
}

.hs-team-member {
  text-align: center;
}

.hs-team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto var(--space-3);
  border: 3px solid var(--gold);
  opacity: 0.9;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.hs-team-member:hover .hs-team-photo {
  opacity: 1;
}

.hs-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-team-name {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--dark-blue);
}

.hs-team-role {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: var(--gray-blue);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


/* --- Scripture (dark blue bg — differs from MS gray-blue) --- */

.hs-verse {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.hs-verse-text {
  font-family: var(--font-primary);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-light);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.hs-verse-ref {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* --- Closing CTA --- */

.hs-closing {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hs-closing-headline {
  font-size: clamp(2.5rem, 7vw, var(--text-5xl));
  font-weight: var(--font-weight-black);
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.hs-closing-sub {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-book);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto var(--space-8);
}

.hs-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}


/* --- Lightbox --- */

.hs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(13, 32, 56, 0.92);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.hs-lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hs-lightbox-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hs-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  flex-shrink: 0;
}

.hs-lightbox-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--white-70);
}

.hs-lightbox-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hs-lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--bright-blue);
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--white-10);
  transition: background var(--duration-fast) var(--ease-out);
}

.hs-lightbox-download:hover {
  background: var(--white-20);
}

.hs-lightbox-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-10);
  border: none;
  border-radius: 50%;
  font-size: var(--text-2xl);
  color: var(--white);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.hs-lightbox-close:hover {
  background: var(--white-20);
}

.hs-lightbox-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-6) var(--space-6);
  overflow: auto;
}

.hs-lightbox-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .hs-intro-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* Flip order so text comes first on mobile */
  .hs-intro-layout .hs-details-card { order: 2; }
  .hs-intro-layout .hs-intro-content { order: 1; }

  .hs-night-flow {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: var(--space-10);
  }

  .hs-night-flow::before {
    top: 0;
    bottom: 0;
    left: 24px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .hs-night-flow::after {
    top: 0;
    left: 22px;
    width: 6px;
    height: 0%;
    right: auto;
    background: linear-gradient(180deg, var(--gold), var(--bright-blue));
  }

  .hs-night-flow.is-glowing::after {
    width: 6px;
    height: 100%;
    transition: height 2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.3s ease;
  }

  .hs-night-step {
    text-align: left;
    padding: 0 0 var(--space-8) 0;
    position: relative;
  }

  .hs-night-marker {
    position: absolute;
    left: calc(-1 * var(--space-10) + 16px);
    top: 0;
    margin: 0;
  }

  .hs-beyond-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hs-photo-card--2 {
    margin-top: 0;
  }

  .hs-calendar-grid {
    grid-template-columns: 1fr;
  }

  .hs-summer-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hs-summer-split .hs-summer-content {
    max-width: none;
  }

  .hs-summer-split .hs-calendar-grid {
    grid-template-columns: repeat(2, 200px);
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hs-team-grid {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
  }

  .hs-verse-text {
    font-size: var(--text-xl);
  }
}
