/**
 * Footer Section - EXACT copy from InlineLayoutSwitch-main with countdown/CTA
 */

/* Root Variables */
.section-footer {
  --color-text: #fff;
  --color-text-alt: rgba(114,116,114,0.6);
  --color-link: #ccc;
  --color-link-hover: #fff;
  --color-bg: #010101;
  --padding-ver: 0.5rem;
  --padding-hor: 0.5rem;
}

.section-footer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Fira Sans', var(--font-primary), system-ui, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Loader */
.section-footer.loading::before,
.section-footer.loading::after {
  content: '';
  position: fixed;
  z-index: 1000;
}

.section-footer.loading::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
}

.section-footer.loading::after {
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  opacity: 0.5;
  background: var(--color-text-alt);
  animation: loaderAnim 0.7s linear infinite forwards;
}

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

.section-footer a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

.section-footer a:hover {
  color: var(--color-link-hover);
}

.section-footer .unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: var(--color-text);
}

.section-footer .footer-main {
  display: grid;
  min-height: 100vh;
  padding: 0;
  position: relative;
}

.section-footer .oh {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.section-footer .oh__inner {
  display: inline-block;
  will-change: transform;
}

/* Prime Section */
.section-footer .prime {
  grid-area: 1 / 1 / 2 / 2;
  padding: 10rem var(--padding-ver) 0;
  position: relative;
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.section-footer.content-open .prime {
  pointer-events: none;
}

/* Background Image */
.section-footer .image--bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.1;
}

.section-footer .image {
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  will-change: transform;
}

.section-footer .image__inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 50%;
}

/* Intro Section */
.section-footer .intro {
  grid-column: 1 / span 2;
  grid-row: 1 / span 3;
  display: inline-flex;
  gap: 0;
  line-height: 1.2;
  flex-wrap: wrap;
  font-size: clamp(2rem, 7.5vw, 5rem);
  letter-spacing: -0.25vw;
  align-items: center;
  align-content: center;
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 500;
  font-style: normal;
  position: relative;
  z-index: 10;
}

.section-footer .intro .oh__inner {
  padding: 0 1vw;
}

.section-footer .intro em.oh__inner {
  padding: 0 2vw;
}

.section-footer .intro .image-wrap:first-child {
  padding-left: 2vw;
}

.section-footer .intro em {
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Image Wrap */
.section-footer .image-wrap {
  width: 11vw;
  min-width: 80px;
  aspect-ratio: 1.75;
  position: relative;
}

.section-footer .image-wrap .image {
  width: 100%;
  height: 100%;
}

/* Meta Title */
.section-footer .meta__title {
  font-size: clamp(1rem, 5vw, 2.25rem);
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 500;
  font-style: normal;
  margin: 2rem 0;
  display: flex;
  justify-content: flex-end;
}

.section-footer .meta__title .oh__inner {
  padding: 0 0.25rem;
}

/* Content Section (for Flip animation) */
.section-footer .content {
  position: relative;
  grid-area: 1 / 1 / 2 / 2;
  display: grid;
  height: 100%;
  grid-template-rows: repeat(5, min-content);
  grid-template-columns: 100%;
  align-content: space-between;
  justify-items: center;
  padding: 0.5rem;
  pointer-events: none;
  opacity: 0;
}

.section-footer.content-open .content {
  pointer-events: auto;
  opacity: 1;
}

.section-footer .content__item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 215px;
  grid-template-rows: 130px;
  grid-column-gap: 4vw;
  align-items: center;
  justify-items: end;
  z-index: 20;
  position: relative;
}

.section-footer .content__item:last-child {
  z-index: 1;
}

.section-footer .content__item .image {
  grid-column: 2;
}

.section-footer .content .image {
  width: 215px;
  height: 100%;
}

/* Title Wrap */
.section-footer .title-wrap {
  opacity: 0;
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto auto;
  grid-template-areas: 'back ...' 'number ...' '... title';
}

.section-footer .content__item--current .title-wrap {
  opacity: 1;
}

.section-footer .title-wrap .oh__inner {
  transform: translateY(100%);
}

/* Back Button */
.section-footer .back {
  grid-area: back;
  stroke: var(--color-link);
  cursor: pointer;
  fill: none;
}

.section-footer .back svg {
  pointer-events: none;
}

.section-footer .content .back {
  opacity: 0;
}

/* Number */
.section-footer .number {
  grid-area: number;
  font-size: 0.65rem;
  justify-self: end;
}

/* Title */
.section-footer .title {
  grid-area: title;
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 500;
  font-style: normal;
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 3rem);
  text-transform: lowercase;
  white-space: nowrap;
}

.section-footer .title .oh__inner {
  padding: 0 0.5vw;
}

/* Countdown Section */
.section-footer .countdown-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 2rem 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  clear: both;
}

.section-footer .countdown-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  filter: grayscale(100%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.section-footer .countdown-section:hover .countdown-bg {
  opacity: 0.15;
}

.section-footer .countdown-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #fff;
  margin: 0 0 2.5rem;
  font-weight: 400;
  opacity: 0.5;
  position: relative;
}

.section-footer .countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
}

.section-footer .countdown-item {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.section-footer .countdown-item:hover {
  transform: translateY(-3px);
}

.section-footer .countdown-item:hover .countdown-number {
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.section-footer .countdown-item:hover .countdown-label {
  opacity: 0.7;
}

.section-footer .countdown-number {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-family: 'Fira Sans', var(--font-primary), sans-serif;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  transition: text-shadow 0.3s ease;
}

.section-footer .countdown-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  opacity: 0.4;
  margin-top: 0.75rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.section-footer .countdown-separator {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 200;
  color: #fff;
  opacity: 0.2;
  line-height: 1;
  padding: 0 0.25rem;
}

/* CTA Section */
.section-footer .cta-section {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.section-footer .view {
  cursor: pointer;
  stroke: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #fff;
  width: 14rem;
  aspect-ratio: 1;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.section-footer .view:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.section-footer .view__text {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.section-footer .view svg {
  transform: scale(-1, -1);
  margin-top: 0.5rem;
  fill: #fff;
}

/* Nav Wrap (Footer) */
.section-footer .nav-wrap {
  margin-top: auto;
  padding: var(--padding-hor) 0;
  border-top: 1px solid var(--color-text-alt);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 'logo social' 'nav nav';
  align-items: center;
  will-change: transform;
  z-index: 10;
}

.section-footer .logo {
  grid-area: logo;
}

.section-footer .logo__years {
  font-size: 0.75rem;
  line-height: 1;
  color: var(--color-text-alt);
}

.section-footer .logo__title {
  display: block;
  margin: 0;
}

.section-footer .logo__img {
  height: 2.5rem;
  width: auto;
  transition: opacity 0.3s ease;
}

.section-footer .logo__title:hover .logo__img {
  opacity: 0.8;
}

.section-footer .nav {
  text-transform: uppercase;
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
}

.section-footer .nav__item {
  color: var(--color-text-alt);
  display: flex;
  flex-direction: column;
  pointer-events: none;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.section-footer .nav__item--active {
  color: var(--color-text);
  pointer-events: auto;
  cursor: pointer;
}

.section-footer .nav__item:hover {
  color: var(--color-text);
}

.section-footer .social {
  grid-area: social;
  display: flex;
  gap: 1rem;
  justify-self: end;
}

.section-footer .social__item {
  color: var(--color-text-alt);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.section-footer .social__item:hover {
  color: var(--color-text);
}

/* Copyright */
.section-footer .copyright {
  text-align: center;
  padding: 2rem var(--padding-ver);
  font-size: 0.7rem;
  color: var(--color-text-alt);
  background: var(--color-bg);
}

/* Responsive */
@media screen and (min-width: 53em) {
  .section-footer {
    --padding-ver: 2.5rem;
    --padding-hor: 1rem;
  }

  .section-footer .content__item {
    grid-template-columns: 1fr 215px 1fr;
  }

  .section-footer .title-wrap {
    opacity: 1;
  }

  .section-footer .prime {
    padding-top: 6rem;
  }

  .section-footer .nav-wrap {
    grid-template-columns: 20% 1fr 10% 10%;
    grid-template-areas: 'logo nav ... social';
  }

  .section-footer .nav {
    padding: 0;
    gap: 3vw;
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-footer .nav__item::after {
    content: '...';
    display: block;
    font-weight: 400;
    font-size: 1.15rem;
    text-align: center;
    line-height: 0.9;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .section-footer .intro {
    font-size: clamp(1.75rem, 6vw, 4rem);
  }

  .section-footer .view {
    width: 12rem;
  }
}

@media (max-width: 900px) {
  .section-footer .prime {
    padding: 7rem 2rem 0;
  }

  .section-footer .intro {
    font-size: clamp(1.5rem, 5.5vw, 3rem);
  }

  .section-footer .image-wrap {
    width: 14vw;
    min-width: 60px;
  }

  .section-footer .view {
    width: 11rem;
  }

  .section-footer .countdown-number {
    font-size: clamp(2rem, 9vw, 4rem);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section-footer .prime {
    padding: 6rem 1.5rem 0;
  }

  .section-footer .intro {
    font-size: clamp(1.35rem, 5.5vw, 2.5rem);
    line-height: 1.3;
  }

  .section-footer .intro .oh__inner {
    padding: 0 0.5vw;
  }

  .section-footer .image-wrap {
    width: 18vw;
    min-width: 55px;
  }

  .section-footer .meta__title {
    font-size: clamp(0.9rem, 4vw, 1.5rem);
    margin: 1.5rem 0;
    justify-content: center;
  }

  .section-footer .countdown-section {
    padding: 2.5rem 1rem;
    margin: 1.5rem 0;
  }

  .section-footer .countdown-item {
    padding: 0 0.5rem;
  }

  .section-footer .countdown-number {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .section-footer .countdown-separator {
    font-size: 1.25rem;
  }

  .section-footer .countdown-title {
    font-size: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .section-footer .countdown-label {
    font-size: 0.5rem;
  }

  .section-footer .view {
    width: 10rem;
  }

  .section-footer .view__text {
    font-size: 0.75rem;
  }

  .section-footer .nav-wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      'logo'
      'nav'
      'social';
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .section-footer .logo {
    justify-self: center;
  }

  .section-footer .logo__img {
    height: 2rem;
  }

  .section-footer .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }

  .section-footer .nav__item {
    font-size: 0.75rem;
  }

  .section-footer .social {
    justify-self: center;
    gap: 1.5rem;
  }

  .section-footer .social__item {
    font-size: 0.75rem;
  }

  .section-footer .copyright {
    padding: 1.5rem 1rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .section-footer .prime {
    padding: 5rem 1rem 0;
  }

  .section-footer .intro {
    font-size: clamp(1.15rem, 5vw, 1.75rem);
  }

  .section-footer .image-wrap {
    width: 20vw;
    min-width: 50px;
  }

  .section-footer .view {
    width: 8rem;
  }

  .section-footer .view__text {
    font-size: 0.65rem;
  }

  .section-footer .view svg {
    width: 12px;
    height: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-footer .view,
  .section-footer .countdown-item,
  .section-footer .oh__inner,
  .section-footer .image__inner {
    transition: none !important;
    animation: none !important;
  }
}
