/* =========================
   HISTORY PAGE
========================= */

.history-page {
  background: #f7f5f2;
  color: #151a1f;
}

.history-container {
  width: min(1250px, 90%);
  margin: 0 auto;
}


/* =========================
   HERO
========================= */

.history-hero {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: 430px;

  padding: 90px 0 70px;

  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      #141618 0%,
      #1d1f21 55%,
      #2a2c2e 100%
    );

  color: #ffffff;
}

.history-hero::before {
  content: "HISTORY";

  position: absolute;

  right: -20px;
  bottom: -65px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(180px, 22vw, 390px);
  line-height: 0.8;

  color: rgba(255, 255, 255, 0.025);

  pointer-events: none;
}

.history-hero .history-container {
  position: relative;
  z-index: 2;
}

.history-eyebrow {
  margin: 0 0 12px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;

  color: #d10b10;
}

.history-hero h1 {
  margin: 0;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(85px, 10vw, 150px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 2px;

  color: #ffffff;
}

.history-hero-description {
  max-width: 620px;

  margin: 28px 0 0;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 18px;
  line-height: 1.65;

  color: rgba(255, 255, 255, 0.72);
}


/* =========================
   INTRO
========================= */

.history-intro {
  padding: 85px 0 80px;

  background: #f7f5f2;
}

.history-intro-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;

  align-items: end;

  gap: 80px;
}

.section-label {
  display: block;

  margin-bottom: 10px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;

  color: #bb080b;
}

.history-intro h2 {
  margin: 0;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(55px, 6vw, 82px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 1px;

  color: #151a1f;
}

.history-intro-inner > p {
  max-width: 480px;

  margin: 0 0 4px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;

  color: #686868;
}


/* =========================
   TIMELINE
========================= */

.history-timeline {
  padding: 10px 0 110px;

  background: #f7f5f2;
}


/* =========================
   CHAPTER
========================= */

.history-chapter {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;

  align-items: stretch;

  overflow: hidden;

  min-height: 560px;

  border: 1px solid #dedbd6;
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.055);
}


/* =========================
   CHAPTER IMAGE
========================= */

.chapter-image {
  position: relative;

  min-height: 560px;

  overflow: hidden;

  background: #1d1f21;
}

.chapter-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.7s ease;
}

.history-chapter:hover .chapter-image img {
  transform: scale(1.025);
}

.chapter-image-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 40%,
      rgba(0, 0, 0, 0.48) 100%
    );
}

.chapter-number {
  position: absolute;

  right: 24px;
  bottom: -14px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: 130px;
  line-height: 1;

  color: rgba(255, 255, 255, 0.25);
}


/* =========================
   CHAPTER CONTENT
========================= */

.chapter-content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 55px;
}

.chapter-heading {
  display: flex;
  align-items: center;

  gap: 15px;

  margin-bottom: 16px;
}

.chapter-year {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;

  color: #bb080b;
}

.chapter-type {
  padding-left: 15px;

  border-left: 1px solid #cac7c2;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;

  color: #888580;
}

.chapter-content h2 {
  margin: 0;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: 0.5px;

  color: #151a1f;
}

.chapter-description {
  max-width: 490px;

  margin: 22px 0 28px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;

  color: #696969;
}


/* =========================
   STATS
========================= */

.chapter-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);

  margin-bottom: 30px;

  border-top: 1px solid #e2dfda;
  border-bottom: 1px solid #e2dfda;
}

.history-stat {
  padding: 20px 12px 18px 0;
}

.history-stat + .history-stat {
  padding-left: 17px;

  border-left: 1px solid #e2dfda;
}

.history-stat strong {
  display: block;

  margin-bottom: 4px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: 31px;
  font-weight: 400;
  line-height: 1;

  color: #151a1f;
}

.history-stat span {
  font-family: 'Sofia Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;

  color: #888580;
}


/* =========================
   EVENT BUTTON
========================= */

.history-event-btn {
  display: inline-flex;
  align-items: center;

  align-self: flex-start;

  gap: 12px;

  padding: 13px 19px;

  border-radius: 7px;

  background: #c9080c;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;

  color: #ffffff;

  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.history-event-btn span {
  transition: transform 0.2s ease;
}

.history-event-btn:hover {
  background: #a8070a;

  transform: translateY(-2px);
}

.history-event-btn:hover span {
  transform: translateX(3px);
}


/* =========================
   REVERSE CHAPTER
========================= */

.history-chapter-reverse {
  grid-template-columns: 0.92fr 1.08fr;
}

.history-chapter-reverse .chapter-image {
  order: 2;
}

.history-chapter-reverse .chapter-content {
  order: 1;
}


/* =========================
   TIMELINE DIVIDER
========================= */

.timeline-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  gap: 20px;

  padding: 48px 0;
}

.timeline-divider span {
  height: 1px;

  background: #d8d5d0;
}

.timeline-divider p {
  margin: 0;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;

  color: #99958f;
}


/* =========================
   NEXT CHAPTER
========================= */

.next-chapter {
  position: relative;

  margin-top: 65px;

  padding: 85px 70px;

  overflow: hidden;

  border-radius: 16px;

  background:
    linear-gradient(
      100deg,
      #141618 0%,
      #202225 100%
    );

  color: #ffffff;
}

.next-chapter-year {
  position: absolute;

  right: 30px;
  bottom: -60px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(200px, 24vw, 360px);
  line-height: 0.8;

  color: rgba(255, 255, 255, 0.035);

  pointer-events: none;
}

.next-chapter .section-label {
  position: relative;
  z-index: 2;

  color: #d10b10;
}

.next-chapter h2 {
  position: relative;
  z-index: 2;

  margin: 0;

  max-width: 700px;

  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(55px, 7vw, 90px);
  font-weight: 400;
  line-height: 0.9;

  color: #ffffff;
}

.next-chapter > p {
  position: relative;
  z-index: 2;

  max-width: 510px;

  margin: 24px 0 30px;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;

  color: rgba(255, 255, 255, 0.65);
}

.next-chapter-btn {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;

  gap: 12px;

  padding: 14px 20px;

  border-radius: 7px;

  background: #c9080c;

  font-family: 'Sofia Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;

  color: #ffffff;

  text-decoration: none;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.next-chapter-btn span {
  transition: transform 0.2s ease;
}

.next-chapter-btn:hover {
  background: #a8070a;

  transform: translateY(-2px);
}

.next-chapter-btn:hover span {
  transform: translateX(3px);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

  .history-hero {
    min-height: 380px;
  }

  .history-intro-inner {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .history-intro-inner > p {
    max-width: 650px;
  }

  .history-chapter,
  .history-chapter-reverse {
    grid-template-columns: 1fr;
  }

  .history-chapter-reverse .chapter-image,
  .history-chapter-reverse .chapter-content {
    order: initial;
  }

  .chapter-image {
    min-height: 480px;
  }

  .chapter-content {
    padding: 50px;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

  .history-container {
    width: 90%;
  }

  .history-hero {
    min-height: 330px;

    padding: 70px 0 50px;
  }

  .history-hero h1 {
    font-size: 85px;
  }

  .history-hero-description {
    margin-top: 20px;

    font-size: 15px;
  }

  .history-intro {
    padding: 55px 0;
  }

  .history-intro h2 {
    font-size: 55px;
  }

  .history-timeline {
    padding-bottom: 70px;
  }

  .history-chapter {
    min-height: 0;

    border-radius: 12px;
  }

  .chapter-image {
    min-height: 0;
    height: 330px;
  }

  .chapter-number {
    right: 15px;

    font-size: 95px;
  }

  .chapter-content {
    padding: 32px 25px 35px;
  }

  .chapter-content h2 {
    font-size: 49px;
  }

  .chapter-description {
    margin: 18px 0 25px;
  }

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

  .history-stat {
    padding: 17px 10px 17px 0;
  }

  .history-stat + .history-stat {
    padding-left: 15px;
  }

  .history-stat:nth-child(3) {
    padding-left: 0;

    border-left: 0;
    border-top: 1px solid #e2dfda;
  }

  .history-stat:nth-child(4) {
    border-top: 1px solid #e2dfda;
  }

  .timeline-divider {
    padding: 35px 0;

    gap: 12px;
  }

  .timeline-divider p {
    letter-spacing: 2px;

    white-space: nowrap;
  }

  .next-chapter {
    margin-top: 45px;

    padding: 60px 27px;

    border-radius: 12px;
  }

  .next-chapter h2 {
    font-size: 56px;
  }

  .next-chapter-year {
    right: -20px;

    font-size: 210px;
  }

}