/* Landing-matching header & footer on static template pages */

@import url('./site-shell.css');

body.landing-template {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.landing-template .page-wrap {
  flex: 1;
}

body.landing-template .page-wrap a:not(.btn) {
  color: var(--matcha);
}

body.landing-template .page-wrap a:not(.btn):not(.card) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.landing-template .page-wrap a.card,
body.landing-template .page-wrap a.card:hover,
body.landing-template .page-wrap a.card:focus-visible {
  color: inherit;
  text-decoration: none;
}

body.landing-template .page-wrap a:not(.btn):not(.card):hover,
body.landing-template .page-wrap a:not(.btn):not(.card):focus-visible {
  color: var(--matcha-dark);
}

body.landing-template .page-wrap a.btn {
  color: #fff;
  text-decoration: none;
}

body.landing-template .page-wrap a.btn:hover,
body.landing-template .page-wrap a.btn:focus-visible {
  color: #fff;
}

body.landing-template .page-wrap a.btn.btn-secondary {
  color: var(--text);
}

body.landing-template .page-wrap a.btn.btn-secondary:hover,
body.landing-template .page-wrap a.btn.btn-secondary:focus-visible {
  color: var(--text);
}

/* ── Nav (shared: landing SPA + static template pages) ── */
.landing-nav,
.landing-template [data-name='Nav'] {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(248, 248, 243, 0.85);
  backdrop-filter: blur(8px);
}

.landing-nav__border {
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.landing-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.landing-nav__end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.landing-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease, ease),
    border-color 0.2s var(--ease, ease);
}

.landing-nav__toggle:hover,
.landing-nav__toggle:focus-visible {
  background: #f8f8f3;
  border-color: rgba(127, 154, 83, 0.35);
  outline: none;
}

.landing-nav__toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(127, 154, 83, 0.18);
}

.landing-nav__toggle-icon,
.landing-nav__toggle-icon::before,
.landing-nav__toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #3a3a3a;
  transition:
    transform 0.25s var(--ease, ease),
    opacity 0.25s var(--ease, ease);
}

.landing-nav__toggle-icon {
  position: relative;
}

.landing-nav__toggle-icon::before,
.landing-nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.landing-nav__toggle-icon::before {
  top: -6px;
}

.landing-nav__toggle-icon::after {
  top: 6px;
}

.landing-nav__toggle.is-open .landing-nav__toggle-icon {
  background: transparent;
}

.landing-nav__toggle.is-open .landing-nav__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.landing-nav__toggle.is-open .landing-nav__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.landing-nav__logo {
  flex-shrink: 0;
  width: 112px;
  height: 33px;
}

.landing-nav__logo img {
  display: block;
  width: 100%;
  height: 100%;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.landing-nav [data-name='Link'].landing-link p,
.landing-template [data-name='Link'].landing-link p {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: #6e6e78;
  white-space: nowrap;
}

.landing-nav__cta {
  flex-shrink: 0;
  background: #e9f2db;
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
}

.landing-nav__cta--play {
  background: #7f9a53;
}

.landing-nav__cta p {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #7f9a53;
  text-align: center;
  white-space: nowrap;
}

.landing-nav__cta--play p {
  color: #fff;
}

/* ── Footer (shared: landing SPA + static template pages) ── */
.landing-site-footer {
  background: #3a3a3a;
  width: 100%;
  margin-top: auto;
}

.landing-site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: flex-start;
  padding-block: 56px;
}

.landing-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 280px;
  max-width: 339px;
}

.landing-site-footer__logo {
  width: 112px;
  height: 33px;
}

.landing-site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-site-footer__tagline,
.landing-site-footer__copy {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.landing-site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  flex: 0 1 auto;
}

.landing-site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 74px;
}

.landing-site-footer__heading {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  color: #fff;
  white-space: nowrap;
}

.landing-site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-site-footer__nav .landing-footer-link {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .landing-site-footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .landing-site-footer__brand {
    max-width: none;
  }

  .landing-site-footer__cols {
    width: 100%;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .landing-nav__toggle {
    display: inline-flex;
  }

  .landing-nav__cta {
    display: none;
  }

  .landing-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 101;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--site-shell-min-gutter, 20px) 20px;
    background: rgba(248, 248, 243, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 24px rgba(58, 58, 58, 0.08);
  }

  body.landing-nav-open {
    overflow: hidden;
  }

  .landing-nav__links.is-open {
    display: flex;
  }

  .landing-nav__links .landing-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .landing-nav__links .landing-link:last-child {
    border-bottom: none;
  }

  .landing-nav [data-name='Link'].landing-link p,
  .landing-template [data-name='Link'].landing-link p {
    font-size: 16px;
    line-height: 24px;
  }

  .landing-site-footer__inner {
    padding-block: 40px;
  }

  .landing-site-footer__cols {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .landing-nav__inner {
    min-height: 56px;
  }

  .landing-site-footer__inner {
    padding-block: 32px;
  }
}
