/* ============================================
   IRVINE GREAT PARK — Design System & Styles
   Modern, immersive, excitement-driven
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #0A3D2E;
  --color-primary-light: #14694E;
  --color-primary-dark: #062A1F;
  --color-accent: #E8A838;
  --color-accent-light: #F0C060;
  --color-accent-dark: #C08820;
  --color-sky: #4A9FD9;
  --color-sky-light: #7ABDE8;
  --color-sunset: #E85D3A;
  --color-cream: #FAF7F2;
  --color-warm-white: #FFF9F0;
  --color-text: #1A1A1A;
  --color-text-light: #5A5A5A;
  --color-text-inverse: #FFFFFF;
  --color-border: rgba(0,0,0,0.08);

  /* Typography */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --container-max: 1320px;
  --container-narrow: 900px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.7s;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.7; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-text-inverse);
  transition: color var(--duration-fast);
  z-index: 10;
}

.nav--scrolled .nav__logo {
  color: var(--color-primary);
}

.nav__logo-icon {
  width: 42px;
  height: 42px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  font-weight: 800;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
}

.nav--scrolled .nav__link {
  color: var(--color-text);
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.4);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-inverse);
  transition: all var(--duration-fast);
}

.nav--scrolled .nav__toggle span {
  background: var(--color-text);
}

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-primary-dark);
  z-index: 5;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.nav__mobile.active {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-inverse);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 42, 31, 0.95) 0%,
    rgba(6, 42, 31, 0.6) 30%,
    rgba(6, 42, 31, 0.2) 60%,
    rgba(6, 42, 31, 0.1) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 var(--space-3xl);
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: var(--color-accent-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-xl);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 168, 56, 0.4);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--dark:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 61, 46, 0.3);
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ============================================
   MARQUEE TICKER
   ============================================ */
.marquee {
  background: var(--color-primary);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-inverse);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.marquee__dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================
   STATS BAR
   ============================================ */
.stats {
  background: var(--color-primary-dark);
  padding: var(--space-xl) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.stat {
  position: relative;
}

.stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stat:last-child::after {
  display: none;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .stat::after { display: none; }
}


/* ============================================
   SECTION HEADERS
   ============================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.section--green {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.section__header {
  margin-bottom: var(--space-xl);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section__eyebrow-line {
  width: 24px;
  height: 2px;
  background: var(--color-accent);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--color-text-light);
  max-width: 600px;
  line-height: 1.7;
}

.section--dark .section__desc,
.section--green .section__desc {
  color: rgba(255,255,255,0.65);
}


/* ============================================
   FEATURED ATTRACTIONS (Bento Grid)
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: var(--space-md);
}

.bento__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.bento__card--large {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 480px;
}

.bento__card--medium {
  grid-column: span 5;
  min-height: 240px;
}

.bento__card--wide {
  grid-column: span 8;
  min-height: 300px;
}

.bento__card--small {
  grid-column: span 4;
  min-height: 300px;
}

.bento__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--duration-slow) var(--ease-out);
}

.bento__card:hover .bento__card-bg {
  transform: scale(1.06);
}

.bento__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  transition: background var(--duration-normal);
}

.bento__card:hover .bento__card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.bento__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  z-index: 1;
}

.bento__card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.bento__card-tag--coming {
  background: var(--color-sky);
  color: #fff;
}

.bento__card-title {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin-bottom: 8px;
}

.bento__card-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 480px;
}

.bento__card-arrow {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all var(--duration-normal) var(--ease-out);
}

.bento__card:hover .bento__card-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 900px) {
  .bento__card--large,
  .bento__card--medium,
  .bento__card--wide,
  .bento__card--small {
    grid-column: span 12;
    min-height: 280px;
  }
  .bento__card--large {
    min-height: 360px;
  }
}


/* ============================================
   UPCOMING PROJECTS TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary-light), transparent);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline__dot {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 4px solid var(--color-cream);
  z-index: 1;
}

.timeline__item--future .timeline__dot {
  background: var(--color-sky);
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.timeline__item--future .timeline__year {
  color: var(--color-sky);
}

.timeline__card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

.timeline__card-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.timeline__card-img {
  height: 100%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
}

.timeline__card-body {
  padding: var(--space-lg);
}

.timeline__card-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.timeline__card-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.timeline__card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline__card-status--active {
  background: rgba(20, 105, 78, 0.1);
  color: var(--color-primary-light);
}

.timeline__card-status--upcoming {
  background: rgba(74, 159, 217, 0.1);
  color: var(--color-sky);
}

@media (max-width: 768px) {
  .timeline__card-inner {
    grid-template-columns: 1fr;
  }
  .timeline__card-img {
    min-height: 180px;
  }
}


/* ============================================
   MAP SECTION (Interactive Hotspot)
   ============================================ */
.map-section {
  position: relative;
  background: var(--color-primary-dark);
  overflow: hidden;
}

.map-section__bg {
  position: relative;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
}

.map-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-primary-dark) 0%, transparent 30%),
              linear-gradient(to bottom, var(--color-primary-dark) 0%, transparent 20%);
  z-index: 1;
  pointer-events: none;
}

.map-section__header {
  position: absolute;
  top: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.map-hotspot {
  position: absolute;
  z-index: 3;
  cursor: pointer;
}

.map-hotspot__ping {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 0 0 rgba(232, 168, 56, 0.5);
  animation: hotspotPing 2s ease-in-out infinite;
  transition: transform var(--duration-fast);
}

.map-hotspot:hover .map-hotspot__ping {
  transform: scale(1.3);
}

@keyframes hotspotPing {
  0% { box-shadow: 0 0 0 0 rgba(232, 168, 56, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(232, 168, 56, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 168, 56, 0); }
}

.map-hotspot__tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.map-hotspot:hover .map-hotspot__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-hotspot__tooltip h5 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.map-hotspot__tooltip p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.4;
}


/* ============================================
   EVENTS CAROUSEL
   ============================================ */
.events-carousel {
  overflow: hidden;
}

.events-carousel__track {
  display: flex;
  gap: var(--space-md);
  transition: transform 0.5s var(--ease-out);
}

.event-card {
  flex: 0 0 calc(33.333% - var(--space-md));
  min-width: 300px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.event-card__img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-card__date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  min-width: 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.event-card__date-month {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sunset);
}

.event-card__date-day {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-text);
}

.event-card__body {
  padding: var(--space-md);
}

.event-card__category {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: 6px;
}

.event-card__title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.event-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.events-carousel__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.events-carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  color: var(--color-text);
}

.events-carousel__btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}


/* ============================================
   GALLERY SECTION (Masonry-style)
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-xs);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gallery__item:nth-child(1) { grid-row: span 2; grid-column: span 2; }
.gallery__item:nth-child(5) { grid-column: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-overlay span {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
}


/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: var(--space-3xl) 0;
  text-align: center;
  overflow: hidden;
}

.cta-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary), var(--color-primary-light));
  z-index: 0;
}

.cta-banner__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,168,56,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74,159,217,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner__content {
  position: relative;
  z-index: 1;
}

.cta-banner__title {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.cta-banner__desc {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}


/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  background: var(--color-warm-white);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.newsletter__text h4 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.newsletter__text p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.newsletter__form {
  display: flex;
  gap: 8px;
}

.newsletter__input {
  padding: 14px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 300px;
  background: #fff;
  transition: border-color var(--duration-fast);
  outline: none;
}

.newsletter__input:focus {
  border-color: var(--color-primary);
}

.newsletter__input::placeholder {
  color: #bbb;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: var(--space-sm);
  max-width: 340px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  font-size: 0.9rem;
}

.footer__social a:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__legal a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--duration-fast);
}

.footer__legal a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-left"] { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="scale-up"] { transform: scale(0.92); }

[data-animate].is-visible[data-animate="fade-left"],
[data-animate].is-visible[data-animate="fade-right"] {
  transform: translateX(0);
}
[data-animate].is-visible[data-animate="scale-up"] {
  transform: scale(1);
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.2s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.3s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.35s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.4s; }

[data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   SMOOTH PARALLAX IMAGES
   ============================================ */
.parallax-img {
  will-change: transform;
}


/* ============================================
   LIGHTBOX OVERLAY
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.lightbox__close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}


/* ============================================
   LOADING SCREEN
   ============================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.6s, visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-inverse);
  letter-spacing: 0.05em;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (max 900px) --- */
@media (max-width: 900px) {
  :root {
    --space-3xl: 4rem;
    --space-2xl: 3rem;
    --space-xl: 2.5rem;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero__content {
    padding-bottom: var(--space-xl);
  }

  .hero__scroll {
    display: none;
  }

  /* Timeline cards stack on tablet */
  .timeline {
    padding-left: 30px;
  }

  .timeline__dot {
    left: -23px;
    width: 14px;
    height: 14px;
  }

  .timeline::before {
    left: 10px;
  }

  /* Events carousel: 2 visible */
  .event-card {
    flex: 0 0 calc(50% - var(--space-md));
    min-width: 260px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  /* CTA banner */
  .cta-banner {
    padding: var(--space-2xl) 0;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh; /* safe viewport height for mobile browsers */
  }

  .hero__badge {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats grid */
  .stats {
    padding: var(--space-lg) 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .stat::after {
    display: none;
  }

  .stat__number {
    font-size: 1.8rem;
  }

  /* Bento grid stacks fully */
  .bento {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .bento__card {
    min-height: 260px !important;
  }

  .bento__card--large {
    min-height: 320px !important;
  }

  .bento__card-content {
    padding: var(--space-md);
  }

  .bento__card-desc {
    font-size: 0.85rem;
  }

  .bento__card-arrow {
    display: none;
  }

  /* Timeline cards: stack image/text */
  .timeline__card-inner {
    grid-template-columns: 1fr;
  }

  .timeline__card-img {
    min-height: 180px;
  }

  .timeline__card-body {
    padding: var(--space-md);
  }

  .timeline__card-title {
    font-size: 1.2rem;
  }

  .timeline__card-desc {
    font-size: 0.88rem;
  }

  /* Explore feature grid — force 1 column on mobile */
  .explore-grid {
    grid-template-columns: 1fr !important;
  }

  /* Events: single card visible, scroll snap */
  .events-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .events-carousel::-webkit-scrollbar {
    display: none;
  }

  .events-carousel__track {
    transition: none;
  }

  .event-card {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: start;
  }

  .event-card__img {
    height: 180px;
  }

  /* Events header: stack on mobile */
  .events-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .events-carousel__nav {
    align-self: flex-start;
  }

  /* Gallery grid */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }

  .gallery__item:nth-child(1) {
    grid-row: span 2;
    grid-column: span 2;
  }

  .gallery__item:nth-child(5) {
    grid-column: span 1;
  }

  /* Newsletter */
  .newsletter__inner {
    flex-direction: column;
    text-align: center;
  }

  .newsletter__form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter__input {
    width: 100%;
  }

  /* CTA actions */
  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner__actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: var(--space-xl) 0 var(--space-md);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .hero__content {
    padding-bottom: var(--space-lg);
  }

  .nav__inner {
    height: 64px;
    padding: 0 var(--space-sm);
  }

  .nav__logo {
    font-size: 1.1rem;
    gap: 8px;
  }

  .nav__logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .marquee__item {
    font-size: 0.75rem;
    padding: 0 16px;
    gap: 10px;
  }

  .stats__grid {
    gap: var(--space-sm);
  }

  .stat__number {
    font-size: 1.5rem;
  }

  .stat__label {
    font-size: 0.78rem;
  }

  .event-card {
    flex: 0 0 90%;
  }

  .gallery__grid {
    grid-auto-rows: 120px;
    gap: 4px;
  }

  .footer__legal {
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
  }
}
