/* ============================================================
   home.css  —  Styles for index.html (HomePage)
   All classes prefixed "home-" to avoid shared.css conflicts.
   ============================================================ */

/* ---- Page wrapper ---- */
.home-page {
  min-height: 100vh;
  background-color: #062726;
}

/* ================================================================
   HERO VIDEO SECTION
   ================================================================ */
.home-hero-video-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  background: #000;
}
@media (min-width: 768px) {
  .home-hero-video-wrap {
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
}

.home-hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Overlay ---- */
.home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 39, 38, 0.35) 0%,
    transparent 40%,
    transparent 70%,
    rgba(6, 39, 38, 0.6) 100%
  );
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .home-overlay {
    padding: 2rem 2.5rem;
  }
}

/* ---- Title block ---- */
.home-title-block {
  max-width: 520px;
  margin-left: 0;
}
@media (min-width: 480px) {
  .home-title-block {
    margin-left: 1.5rem;
  }
}
@media (min-width: 768px) {
  .home-title-block {
    margin-left: 5rem;
  }
}
@media (min-width: 1024px) {
  .home-title-block {
    margin-left: 7rem;
  }
}
@media (min-width: 1200px) {
  .home-title-block {
    margin-left: 9rem;
  }
}

.home-title-line {
  font-family: 'IvyJournal', serif;
  font-style: normal;
  font-weight: 600;
  color: rgb(255, 255, 255);
  font-size: clamp(2rem, 10vw, 79px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .home-title-line {
    line-height: 87px;
  }
}

/* Second title line (Thrilling) gets extra indent */
.home-title-line--indent {
  margin-left: 0;
}
@media (min-width: 480px) {
  .home-title-line--indent {
    margin-left: 1em;
  }
}
@media (min-width: 768px) {
  .home-title-line--indent {
    margin-left: 1.5em;
  }
}

.home-subtitle {
  font-family: 'Muli', serif;
  font-style: normal;
  font-weight: 800;
  color: rgb(255, 255, 255);
  font-size: clamp(1rem, 4vw, 25px);
  line-height: 1.4;
  margin: 0.5rem 0 0;
}
@media (min-width: 768px) {
  .home-subtitle {
    font-size: 25px;
    line-height: 37px;
    margin: 0.75rem 0 0;
  }
}

/* ---- Bottom row (location + info strip) ---- */
.home-bottom-row-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 12%,
    transparent 25%,
    transparent 75%,
    rgba(0, 0, 0, 0.2) 88%,
    rgba(0, 0, 0, 0.5) 100%
  );
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .home-bottom-row-wrap {
    padding: 2rem 2.5rem;
  }
}

.home-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.home-location {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
}
@media (min-width: 768px) {
  .home-location {
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .home-location {
    font-size: 1.375rem;
  }
}

.home-info-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .home-info-strip {
    gap: 2.5rem;
  }
}

.home-info-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}
@media (min-width: 768px) {
  .home-info-item {
    font-size: 1.1875rem;
    gap: 0.5rem;
  }
}
@media (min-width: 1024px) {
  .home-info-item {
    font-size: 1.25rem;
  }
}

.home-info-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
@media (min-width: 768px) {
  .home-info-item img {
    width: 28px;
    height: 28px;
  }
}

/* ================================================================
   SECTION WITH BACKGROUND IMAGE
   ================================================================ */
.home-section-with-bg {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background-image: url(../assets/img/background/79c28a37b2e0cd0b28048c69bff136c0d20c34a1-856x568.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .home-section-with-bg {
    min-height: 60vh;
    padding: 3rem 2rem;
    gap: 3.5rem;
  }
}
@media (min-width: 1200px) {
  .home-section-with-bg {
    padding: 4rem 2.5rem;
    gap: 4rem;
  }
}

.home-section-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 0;
}

.home-section-with-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #062726);
  pointer-events: none;
  z-index: 0;
}

.home-section-with-bg > * {
  position: relative;
  z-index: 1;
}

/* ---- Section inner (title / divider / text) ---- */
.home-section-inner {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 768px) {
  .home-section-inner {
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .home-section-inner {
    grid-template-columns: 1fr auto 1.5fr;
    gap: 2.5rem;
  }
}
@media (min-width: 1200px) {
  .home-section-inner {
    max-width: 1600px;
  }
}
@media (min-width: 1600px) {
  .home-section-inner {
    max-width: 1800px;
    grid-template-columns: 1fr auto 2fr;
  }
}

.home-section-title {
  font-family: 'IvyJournal', serif;
  font-style: normal;
  font-weight: 600;
  color: rgb(255, 255, 255);
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0;
}
@media (min-width: 480px) {
  .home-section-title {
    font-size: 1.75rem;
  }
}
@media (min-width: 768px) {
  .home-section-title {
    font-size: 36px;
  }
}
@media (min-width: 1024px) {
  .home-section-title {
    font-size: 45px;
    line-height: 54px;
  }
}
@media (min-width: 1600px) {
  .home-section-title {
    white-space: nowrap;
  }
  .home-section-title br {
    display: none;
  }
}

.home-section-divider {
  width: 1px;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.4);
  display: none;
}
@media (min-width: 1024px) {
  .home-section-divider {
    display: block;
    align-self: stretch;
    min-height: 0;
  }
}

.home-section-text {
  font-family: 'Muli', serif;
  font-style: normal;
  font-weight: 300;
  color: rgb(255, 255, 255);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}
@media (min-width: 768px) {
  .home-section-text {
    font-size: 20px;
    line-height: 1.65;
  }
}
@media (min-width: 1024px) {
  .home-section-text {
    font-size: 25px;
    line-height: 42px;
  }
}

/* ================================================================
   CARDS ROW
   ================================================================ */
.home-cards-row {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .home-cards-row {
    gap: 1rem;
  }
}
@media (min-width: 600px) {
  .home-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 900px) {
  .home-cards-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1200px) {
  .home-cards-row {
    max-width: 2000px;
    gap: 2rem;
  }
}
@media (min-width: 1600px) {
  .home-cards-row {
    max-width: 2800px;
  }
}

/* ---- Individual card ---- */
.home-card {
  position: relative;
  height: 200px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: block;
  text-decoration: none;
  border: none;
  outline: none;
  min-height: 160px;
}
@media (min-width: 380px) {
  .home-card {
    height: 240px;
  }
}
@media (min-width: 480px) {
  .home-card {
    height: 340px;
  }
}
@media (min-width: 768px) {
  .home-card {
    height: 420px;
  }
}
@media (min-width: 900px) {
  .home-card {
    height: 520px;
  }
}
@media (min-width: 1200px) {
  .home-card {
    height: 580px;
  }
}

.home-card:focus {
  outline: none;
}

.home-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.625rem 0.75rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .home-card-overlay {
    padding: 1.25rem 1.25rem 1.5rem;
    gap: 0.75rem;
  }
}

.home-card-title {
  font-family: 'IvyJournal', serif;
  font-style: normal;
  font-weight: 600;
  color: rgb(255, 255, 255);
  font-size: 1.125rem;
  line-height: 1.25;
}
@media (min-width: 380px) {
  .home-card-title {
    font-size: 1.25rem;
  }
}
@media (min-width: 480px) {
  .home-card-title {
    font-size: 26px;
  }
}
@media (min-width: 768px) {
  .home-card-title {
    font-size: 30px;
  }
}
@media (min-width: 1200px) {
  .home-card-title {
    font-size: 34px;
    line-height: 51px;
  }
}

.home-card-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  box-shadow: none;
}
.home-card-arrow img {
  width: 18px;
  height: 18px;
  border: none;
  outline: none;
  display: block;
}
@media (min-width: 768px) {
  .home-card-arrow {
    width: 56px;
    height: 56px;
  }
  .home-card-arrow img {
    width: 28px;
    height: 28px;
  }
}
@media (min-width: 1200px) {
  .home-card-arrow {
    width: 72px;
    height: 72px;
  }
  .home-card-arrow img {
    width: 36px;
    height: 36px;
  }
}

/* ================================================================
   FEATURED EVENT
   ================================================================ */
.home-featured-event-wrap {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-decoration: none;
  color: inherit;
}
@media (min-width: 1200px) {
  .home-featured-event-wrap {
    max-width: 2000px;
  }
}
@media (min-width: 1600px) {
  .home-featured-event-wrap {
    max-width: 2800px;
  }
}

.home-featured-event-header {
  background-color: #062726;
  padding: 0.875rem 1rem 1rem;
}
@media (min-width: 768px) {
  .home-featured-event-header {
    padding: 1rem 1.5rem 1rem;
  }
}

.home-featured-event-label {
  font-family: 'Muli', serif;
  font-style: normal;
  font-weight: 800;
  color: rgb(255, 255, 255);
  font-size: 1.125rem;
  text-transform: uppercase;
  line-height: 1.35;
}
@media (min-width: 768px) {
  .home-featured-event-label {
    font-size: 27px;
    line-height: 41px;
  }
}

.home-featured-event-strip {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin-top: 0.75rem;
  margin-left: -1rem;
  margin-right: -1rem;
  width: calc(100% + 2rem);
}
@media (min-width: 768px) {
  .home-featured-event-strip {
    margin-top: 1rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }
}

.home-featured-event-tagline {
  font-family: 'Muli', serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.25rem;
  text-transform: lowercase;
}
@media (min-width: 768px) {
  .home-featured-event-tagline {
    font-size: 0.8125rem;
  }
}

.home-featured-event-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 856 / 482;
  overflow: hidden;
  background: #000;
}
@media (min-width: 1600px) {
  .home-featured-event-image-wrap {
    aspect-ratio: 856 / 280;
  }
}

.home-featured-event-image-wrap:hover .home-featured-event-image {
  transform: scale(1.06);
}

.home-featured-event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center;
  transition: transform 0.4s ease;
}
@media (min-width: 1200px) {
  .home-featured-event-image {
    height: calc(100% + 600px);
    margin-top: -300px;
  }
}
@media (min-width: 1600px) {
  .home-featured-event-image {
    height: 100%;
    margin-top: 0;
  }
}

.home-featured-event-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 39, 38, 0.7) 0%, transparent 50%, transparent 70%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.home-featured-event-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1rem 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 1;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .home-featured-event-bottom {
    padding: 1.5rem 1.5rem 2rem;
    gap: 1rem;
  }
}

.home-featured-event-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.home-featured-event-date {
  font-family: 'Muli', serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
}
@media (min-width: 768px) {
  .home-featured-event-date {
    font-size: 0.875rem;
  }
}

.home-featured-event-title {
  font-family: 'IvyJournal', serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .home-featured-event-title {
    font-size: 2.5rem;
  }
}

.home-featured-event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Muli', serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .home-featured-event-link {
    font-size: 0.875rem;
    gap: 0.5rem;
  }
}

.home-featured-event-wrap:hover .home-featured-event-link {
  text-decoration: underline;
}

/* FeaturedEventArrow reuses card-arrow styles */
.home-featured-event-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  box-shadow: none;
}
.home-featured-event-arrow img {
  width: 18px;
  height: 18px;
  border: none;
  outline: none;
  display: block;
}
@media (min-width: 768px) {
  .home-featured-event-arrow {
    width: 56px;
    height: 56px;
  }
  .home-featured-event-arrow img {
    width: 28px;
    height: 28px;
  }
}
@media (min-width: 1200px) {
  .home-featured-event-arrow {
    width: 72px;
    height: 72px;
  }
  .home-featured-event-arrow img {
    width: 36px;
    height: 36px;
  }
}

/* ================================================================
   DARK SECTION — IMAGES ROW
   ================================================================ */
.home-section-dark {
  width: 100%;
  background-color: #062726;
  padding: 2rem 1rem;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .home-section-dark {
    padding: 3rem 2rem;
  }
}
@media (min-width: 1200px) {
  .home-section-dark {
    padding: 5rem 3rem;
  }
}
@media (min-width: 1600px) {
  .home-section-dark {
    padding: 6rem 4rem;
  }
}
@media (min-width: 2000px) {
  .home-section-dark {
    padding: 7rem 5rem;
  }
}

.home-images-row-label {
  font-family: 'Muli', serif;
  font-style: normal;
  font-weight: 800;
  color: rgb(255, 255, 255);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0 0 1.25rem;
  text-align: center;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .home-images-row-label {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
}
@media (min-width: 1200px) {
  .home-images-row-label {
    font-size: 27px;
    line-height: 41px;
    margin-bottom: 2rem;
  }
}

.home-images-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
}
.home-images-row::-webkit-scrollbar {
  height: 4px;
}
.home-images-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}
@media (min-width: 768px) {
  .home-images-row {
    gap: 1.25rem;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
}
@media (min-width: 1200px) {
  .home-images-row {
    max-width: 2200px;
    margin: 0 auto;
    gap: 1.5rem;
  }
}
@media (min-width: 1600px) {
  .home-images-row {
    max-width: 2800px;
    gap: 2rem;
  }
}
@media (min-width: 2000px) {
  .home-images-row {
    max-width: 3400px;
    gap: 2.25rem;
  }
}

.home-page-image-wrap {
  flex: 0 0 42vw;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .home-page-image-wrap {
    flex: 1 1 0;
    scroll-snap-align: none;
  }
}

.home-page-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
