/* Header */
:root {
  --header-height: 78px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  transition:
    background 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    backdrop-filter 760ms cubic-bezier(0.22, 0.61, 0.36, 1),
    -webkit-backdrop-filter 760ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-nav .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(9, 18, 15, 0.18);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-nav .site-header.is-scrolled,
.hero-nav.nav-open .site-header {
  background: rgba(9, 18, 15, 0.54);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
}

.hero-nav .site-header.is-scrolled .nav-toggle,
.hero-nav.nav-open .site-header .nav-toggle {
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-nav .site-header.is-scrolled .site-nav__link:hover,
.hero-nav .site-header.is-scrolled .site-nav__link.is-active {
  color: #ffffff;
  background: transparent;
}

.site-header__inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-brand {
  min-width: 0;
  display: flex;
  align-items: center;
}

.site-logo {
  color: var(--text);
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 520ms ease;
}

.hero-nav .site-logo,
.hero-nav .site-nav__link,
.hero-nav .nav-toggle {
  color: #ffffff;
}

.site-brand__partners {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  padding: 8px 10px;
  color: var(--text2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 520ms ease,
    background var(--transition);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-medium) var(--motion-ease-out);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--green);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.hero-nav .site-nav__link:hover,
.hero-nav .site-nav__link.is-active {
  color: #ffffff;
  opacity: 0.74;
  background: transparent;
  border-radius: 0;
}

.site-nav__cta {
  margin-left: 12px;
  color: #20180d;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}

.site-nav__cta:hover {
  background: #a78635;
  border-color: #a78635;
  color: #1a140a;
}

.site-nav__cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(184, 148, 58, 0.35);
}

.hero-nav .site-nav__cta {
  border-color: #c8a24a;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 520ms ease,
    border-color 520ms ease,
    background var(--transition);
}

.hero-nav .nav-toggle {
  border-color: rgba(255, 255, 255, 0.28);
}

.mobile-story-cta {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--hero-text);
  background: var(--hero-bg) var(--hero-image, url("/assets/img/hero-image.jpg")) center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 31, 26, 0.44);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(15, 31, 26, 0.62), rgba(15, 31, 26, 0.12));
}

.hero__container {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hero__content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__inner {
  max-width: 760px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--hero-sub);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.hero .countdown {
  width: fit-content;
  margin-top: 0;
  padding: 0;
  background: transparent;
}

.hero .countdown__num {
  color: #ffffff;
}

.hero .countdown__label {
  color: rgba(255, 255, 255, 0.5);
}

.hero-partner-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.hero .hero-partner-box__label {
  margin: 4px 0 0;
  color: var(--text2);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.hero-partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.hero-partner-logos img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 52px;
  object-fit: contain;
}

.hero-partner-logos img[alt="Magniflex"] {
  max-width: 240px;
  max-height: 64px;
}

@media (min-width: 1021px) {
  .hero-partner-logos {
    gap: 48px;
    flex-wrap: nowrap;
  }
  
  .hero-partner-logos img {
    max-width: 200px;
    max-height: 56px;
  }

  .hero-partner-logos img[alt="Magniflex"] {
    max-width: 280px;
    max-height: 72px;
  }
}


.photo-placeholder {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-10);
}

.photo-placeholder__label {
  padding: 24px;
  color: var(--green-dark);
  text-align: center;
}

.dark-band {
  position: relative;
  padding: var(--space-xl) 0;
  background: var(--hero-bg);
  color: #ffffff;
}

.dark-band p {
  color: rgba(255, 255, 255, 0.72);
}

/* Footer */
.site-footer {
  padding: 52px 0 22px;
  background: #2f6f5a;
  color: #ffffff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.site-footer__brand .site-logo {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 27px;
  text-decoration: none;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 42px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
}

.footer-logo-link img {
  width: auto;
  max-width: 120px;
  height: 26px;
  object-fit: contain;
}

.site-footer__col h3 {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__col p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.5;
}

.site-footer__col a {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.cta-band {
  padding: var(--space-lg) 0;
  background: var(--green);
  color: #ffffff;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-band h2 {
  color: #ffffff;
  margin-bottom: 8px;
}

.cta-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 1020px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  .hero {
    min-height: auto;
    aspect-ratio: auto;
    align-items: start;
    background-position: center center;
  }

  .hero__container {
    height: auto;
    display: block;
    padding-top: 0;
    padding-bottom: 56px;
  }

  .hero__inner {
    padding-top: calc(var(--header-height) + 34px);
  }

  .hero h1 {
    font-size: clamp(38px, 10.8vw, 50px);
    margin-bottom: 16px;
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
    position: relative;
    z-index: 120;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-content: start;
    justify-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 14px 24px 24px;
    background: rgba(255, 255, 255, 0.94);
    z-index: 150;
    overflow-y: auto;
    min-height: calc(100svh - var(--header-height));
    border-top: 1px solid rgba(212, 212, 207, 0.74);
    backdrop-filter: blur(8px) saturate(1.04);
    -webkit-backdrop-filter: blur(8px) saturate(1.04);
  }

  .hero-nav .site-nav,
  .hero-nav.nav-open .site-nav {
    background: rgba(255, 255, 255, 0.92);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 20px;
  }

  .site-nav__link::after {
    display: none;
  }

  .hero-nav .site-nav__link {
    color: var(--text);
    border-bottom-color: var(--border);
  }

  .site-nav__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 16px;
    margin-left: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .site-logo {
    font-size: 22px;
  }

  .hero__actions {
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
  }

  .hero__actions a {
    width: 100%;
  }

  .hero .countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .hero .countdown__unit {
    min-width: 0;
  }

  .hero .countdown__num {
    font-size: 34px;
  }

  .hero-partner-logos {
    width: auto;
    max-width: 100%;
    justify-content: center;
    gap: 18px;
    padding: 12px 14px;
  }

  .hero-partner-logos img {
    max-width: 104px;
    height: 25px;
  }

  .hero-partner-logos img[alt="Magniflex"] {
    max-width: 136px;
  }

  .site-footer__grid,
  .site-footer__bottom,
  .cta-band__inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
  }
}
