/* ==========================================================================
   LAYOUT COMPONENTS — header, footer, hero, page-banner
   ========================================================================== */

/* --- Site header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .3s var(--ease);
}

.site-header.is-scrolled {
  background: var(--forest);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding .3s var(--ease);
}

.site-header.is-scrolled .container {
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--paper);
  text-transform: uppercase;
}

.logo .mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.logo .word small {
  display: block;
  font-family: var(--f-mono);
  font-size: .58rem;
  letter-spacing: .24em;
  color: var(--yellow);
  font-weight: 500;
  margin-top: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-list a {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--steel-light);
  position: relative;
  padding: .4em 0;
  transition: color .25s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--paper);
}

.nav-list a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  width: 32px;
  height: 24px;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle::before {
  top: 0;
}

.nav-toggle span {
  top: 11px;
}

.nav-toggle::after {
  bottom: 0;
}

@media (max-width: 900px) {
  .nav-list {
    position: fixed;
    inset: 0 0 0 30%;
    background: var(--forest);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }

  .nav-list.is-open {
    transform: translateX(0);
  }

  .nav-list a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta .btn-outline {
    display: none;
  }
}

/* --- Hero (home) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(20, 34, 25, .35) 0%, rgba(20, 34, 25, .55) 55%, rgba(20, 34, 25, .92) 100%),
    repeating-linear-gradient(120deg, #234a34 0 2px, #1e4130 2px 90px),
    var(--forest);
  overflow: hidden;
}

.hero::after {
  /* signature angled grade-cut at hero base */
  /* content:'';
  position:absolute; left:0; right:0; bottom:0; height:110px;
  background:var(--paper);
  clip-path:polygon(0 100%, 100% 100%, 100% 40%, 0 100%); */
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(70px, 10vw, 120px);
  padding-top: 180px;
  width: 100%;
}

.hero-tag {
  font-family: var(--f-mono);
  color: var(--yellow);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  display: flex;
  align-items: center;
  gap: .8em;
}

.hero-tag::before {
  content: '';
  width: 44px;
  height: 2px;
  background: var(--yellow);
}

.hero h1 {
  color: var(--paper);
  max-width: 14ch;
  margin-bottom: .4em;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-lead {
  color: var(--steel-light);
  max-width: 46ch;
  font-size: 1.08rem;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 130px;
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--steel-light);
  display: flex;
  align-items: center;
  gap: .8em;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  width: 2px;
  height: 50px;
  background: var(--yellow);
}

/* --- Page banner (interior pages) --- */
.page-banner {
  position: relative;
  padding: 200px 0 80px;
  background:
    linear-gradient(180deg, rgba(20, 34, 25, .55), rgba(20, 34, 25, .85)),
    repeating-linear-gradient(120deg, #234a34 0 2px, #1e4130 2px 90px),
    var(--forest);
  color: var(--paper);
  overflow: hidden;
}

.page-banner .eyebrow {
  color: var(--yellow);
}

.page-banner h1 {
  color: var(--paper);
  max-width: 20ch;
  margin-bottom: .3em;
}

.page-banner .lead {
  max-width: 52ch;
  color: var(--steel-light);
}

.breadcrumb {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--steel-light);
  text-transform: uppercase;
  margin-bottom: 1.4em;
  display: flex;
  gap: .5em;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.breadcrumb .sep {
  color: var(--forest-3);
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding-top: clamp(56px, 8vw, 96px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand .logo {
  margin-bottom: 1.1em;
}

.footer-brand p {
  color: var(--steel-light);
  font-size: .94rem;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 1.1em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .7em;
}

.footer-col a {
  font-size: .92rem;
  color: var(--steel-light);
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-contact li {
  font-size: .92rem;
  display: flex;
  gap: .7em;
  align-items: flex-start;
}

.footer-contact svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--steel-light);
  flex-wrap: wrap;
  gap: 1em;
}

.footer-social {
  display: flex;
  gap: .9em;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}

.footer-social a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}