/**
 * 40th Anniversary Landing Page - FINAL STYLES
 * Matches final design from designers
 * 
 * Includes: Hero (video/image), Stats (circles 4-2-1), Timeline (original),
 * Impact Tri-Valley, Look Back (carousel+lightbox), Future CTA (2-column layout)
 */

/* =============================================================================
   Variables
   ============================================================================= */
:root {
  --wheels-blue: #0066cc;
  --wheels-blue-dark: #004a99;
  --wheels-light-blue: #aad6f2;
  --wheels-burgundy: #751e3a;
  --wheels-dark: #333333;
  --wheels-gray: #666666;
  --wheels-light-gray: #f5f5f5;
  --wheels-white: #ffffff;
  --container-max-width: 1200px;
}

.container-40th {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-40th {
  padding: 80px 20px;
}

.section-40th__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wheels-dark);
  text-align: center;
  margin-bottom: 50px;
}

.section-40th__main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wheels-dark);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-40th__intro-text {
  max-width: 800px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--wheels-gray);
}

/* =============================================================================
   Hero (Video/Image Background + Centered Text)
   ============================================================================= */
.hero-40th-final {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-40th-final__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-40th-final__video,
.hero-40th-final__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-40th-final__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    0deg,
    var(--black_blue_rgba_zero) 0%,
    var(--black_blue_rgba_fifty) 45%,
    var(--black_blue_rgba_fifty) 55%
  );
  z-index: 2;
}

.hero-40th-final__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 40px 20px;
  max-width: 1000px;
  top: 155px;
  margin: 0 auto;
}

.hero-40th-final__title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--wheels-white);
  margin-bottom: 0px;
  line-height: 1.2;
}

.hero-40th-final__subtitle {
  font-size: 1rem;
  color: var(--wheels-white);
  line-height: 1.6;
}

/* =============================================================================
   Statistics (Circles 4-2-1 Responsive)
   ============================================================================= */
.section-40th--statistics-final {
  padding-top: 10px;
  background-color: var(--wheels-light-blue);
}

.section-40th--statistics-final .section-40th__main-title {
  margin-bottom: 0;
  padding-bottom: 20px;
}

.stats-40th-final__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 50px;
  justify-items: center;
}

.stats-40th-final__circle {
  width: 200px;
  height: 200px;
  background: var(--wheels-white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.stats-40th-final__circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stats-40th-final__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--wheels-blue);
  margin-bottom: 10px;
  line-height: 1;
}

.stats-40th-final__label {
  font-size: 1rem;
  color: var(--wheels-dark);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* =============================================================================
   Timeline (Original - from your code)
   ============================================================================= */
/* .section-40th--timeline {
    background-color: var(--wheels-white);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--wheels-blue);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.timeline-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wheels-blue);
    background: var(--wheels-white);
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #FF6600;
    border: 4px solid var(--wheels-white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--wheels-blue);
}

.timeline-left,
.timeline-right {
    display: flex;
    align-items: center;
}

.timeline-item.left .timeline-left {
    justify-content: flex-end;
}

.timeline-item.right .timeline-right {
    justify-content: flex-start;
}

.timeline-content {
    background: var(--wheels-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.timeline-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wheels-blue);
    margin-bottom: 15px;
}

.timeline-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--wheels-gray);
}

.timeline-image {
    max-width: 400px;
}

.timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
} */

/* =============================================================================
   Impact on Tri-Valley (2x2 Grid + 1 Image)
   ============================================================================= */
.section-40th--impact-trivalley-final {
  background-color: var(--wheels-light-blue);
}

.impact-trivalley-final {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.impact-trivalley-final__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.impact-trivalley-final__item {
  background: var(--wheels-white);
  padding: 25px;
  border-radius: 8px;
}

.impact-trivalley-final__item-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wheels-blue);
  margin-bottom: 10px;
}

.impact-trivalley-final__item-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--wheels-gray);
}

.impact-trivalley-final__image-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.impact-trivalley-final__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================================
   A Look Back (Carousel + Lightbox)
   ============================================================================= */
.section-40th--lookback-final {
  background-color: var(--wheels-white);
}

.lookback-gallery-final__carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 50px;
  overflow: visible;
}

.lookback-gallery-final__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: block;
}

.lookback-gallery-final__item:hover {
  transform: scale(1.03);
}

.lookback-gallery-final__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.lookback-gallery-final__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: var(--wheels-white);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lookback-gallery-final__item:hover .lookback-gallery-final__caption {
  opacity: 1;
}

/* =============================================================================
   Future CTA Section (2 Column Layout - matches WheelsFree)
   Image left + Content right on desktop
   Stacked on mobile
   ============================================================================= */
.section-40th--future-cta {
  padding: 71px 0 80px 0;
  position: relative;
}

/* Container for 2-column layout */
.future-cta-40th {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left Column - Image */
.future-cta-40th__image-wrapper {
  width: 100%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.future-cta-40th__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Right Column - Content */
.future-cta-40th__content {
  color: var(--wheels-white);
}

.future-cta-40th__title {
  font-size: 2rem;
  line-height: 1.2;
  padding-top: 0;
  color: var(--wheels-white);
}

.future-cta-40th__text {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 32px;
  color: var(--wheels-white);
  opacity: 0.95;
}

.future-cta-40th__text p {
  margin-bottom: 16px;
  color: white;
}

.future-cta-40th__text p:last-child {
  margin-bottom: 0;
}

/* CTA Button */
.future-cta-40th__button {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--wheels-white);
  color: #6b1c23;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.future-cta-40th__button:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: #6b1c23;
  text-decoration: none;
}

.future-cta-40th__button:active {
  transform: translateY(0);
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn-40th {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-40th--primary {
  background-color: var(--wheels-blue);
  color: var(--wheels-white);
}

.btn-40th--primary:hover {
  background-color: var(--wheels-blue-dark);
  transform: translateY(-2px);
}

.btn-40th--light {
  background-color: var(--wheels-white);
  color: var(--wheels-burgundy);
}

.btn-40th--light:hover {
  background-color: var(--wheels-light-gray);
  transform: translateY(-2px);
}

/* =============================================================================
   AOS Animations
   ============================================================================= */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* =============================================================================
   Responsive - Tablet
   ============================================================================= */
@media (max-width: 1024px) {
  .hero-40th-final {
    height: 400px;
  }

  .hero-40th-final__title {
    font-size: 2.5rem;
  }

  .stats-40th-final__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-trivalley-final {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .impact-trivalley-final__item {
    padding: 25px 25px 5px 25px;
    text-align: center;
  }

  .impact-trivalley-final__grid {
    grid-template-columns: 1fr;
  }

  #impact h2 {
    padding: 0;
  }

  #impact h3 {
    padding: 0 0 5px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-center {
    grid-row: 1;
    justify-self: start;
    margin-left: 30px;
  }

  .timeline-left,
  .timeline-right {
    grid-row: 2;
  }

  /* Future CTA Tablet */
  .future-cta-40th {
    gap: 40px;
  }

  .future-cta-40th__title {
    font-size: 2rem;
  }

  .future-cta-40th__text {
    font-size: 1rem;
  }
}

/* =============================================================================
   Responsive - Mobile
   ============================================================================= */
@media (max-width: 768px) {
  .subheader-40th {
    display: none;
  }

  .section-40th {
    padding: 60px 20px;
  }

  .section-40th__title,
  .section-40th__main-title {
    font-size: 2rem;
  }

  .section-40th--statistics-final .section-40th__main-title {
    padding-top: 0;
  }

  .hero-40th-final {
    height: 350px;
  }

  .hero-40th-final__title {
    font-size: 2rem;
  }

  .hero-40th-final__subtitle {
    font-size: 1.125rem;
  }

  .stats-40th-final__grid {
    gap: 30px;
  }

  .stats-40th-final__circle {
    width: 160px;
    height: 160px;
  }

  .stats-40th-final__number {
    font-size: 2.5rem;
  }

  .lookback-gallery-final__carousel {
    grid-template-columns: 1fr;
  }

  /* Future CTA Mobile */
  .section-40th--future-cta {
    padding: 60px 0;
  }

  .future-cta-40th {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .future-cta-40th__title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .future-cta-40th__text {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .future-cta-40th__button {
    width: 100%;
    text-align: center;
    padding: 14px 32px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-40th-final {
    height: 300px;
  }

  .hero-40th-final__title {
    font-size: 1.75rem;
  }

  .stats-40th-final__grid {
    grid-template-columns: 1fr;
  }

  .stats-40th-final__circle {
    width: 180px;
    height: 180px;
  }

  /* Future CTA Extra Small Mobile */
  .section-40th--future-cta {
    padding: 40px 0;
  }

  .future-cta-40th {
    gap: 24px;
  }

  .future-cta-40th__title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .future-cta-40th__text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}
