/* Home · Stack — template-parts/gf-home-stack.php */

.gf-band--stack {
  position: relative;
  background: #ffffff !important;
  padding: clamp(3.25rem, 5.5vw, 5rem) 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(12, 12, 14, 0.06);
}

.gf-band--stack::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, #ffcc00 0%, rgba(255, 204, 0, 0.2) 40%, transparent 72%);
}

.gf-band--stack .gf-index {
  display: none !important;
}

.gf-stack__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.gf-stack__kicker {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7b00;
}

.gf-stack__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: 100%;
}

.gf-band--stack .gf-band__title {
  margin: 0 !important;
  max-width: 11ch;
  color: #08080a !important;
  font-family: var(--font-display), sans-serif !important;
  font-size: clamp(2rem, 1.35rem + 1.8vw, 3rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em;
  line-height: 1.08 !important;
}

.gf-band--stack .gf-stack__lede,
.gf-band--stack .gf-band__lede {
  margin: 0 0 0 auto !important;
  max-width: min(36rem, 46%);
  text-align: right;
  color: #5c6570 !important;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 450;
}

.gf-band--stack .gf-stack__lede p {
  margin: 0 !important;
  color: inherit;
}

.gf-stack__board {
  border: 1px solid rgba(12, 12, 14, 0.1);
  background: #f7f6f2;
  overflow: hidden;
}

.gf-stack__tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #ffffff;
  border-bottom: 1px solid rgba(12, 12, 14, 0.08);
}

.gf-stack__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 6.25rem;
  padding: 1rem 0.65rem;
  margin: 0;
  border: 0;
  border-right: 1px solid rgba(12, 12, 14, 0.08);
  background: transparent;
  color: #5c6570;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.gf-stack__tab:last-child {
  border-right: 0;
}

.gf-stack__tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f4f1e8;
}

.gf-stack__tab-icon img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

.gf-stack__tab-label {
  font-family: var(--font-body), sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.gf-stack__tab:hover {
  background: #fffbeb;
  color: #08080a;
}

.gf-stack__tab.is-active {
  background: #08080a;
  color: #ffffff;
}

.gf-stack__tab.is-active .gf-stack__tab-icon {
  background: #ffcc00;
}

.gf-stack__tab:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: -2px;
  z-index: 1;
}

.gf-stack__panels {
  position: relative;
}

.gf-stack__panel {
  display: none;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 26rem;
}

.gf-stack__panel.is-active {
  display: grid;
}

.gf-stack__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.15rem;
  padding: clamp(1.75rem, 4vw, 3.25rem);
}

.gf-stack__eyebrow {
  margin: 0;
  font-family: var(--font-body), sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a7b00;
}

.gf-stack__text,
.gf-stack__text p {
  margin: 0 !important;
  max-width: 38rem;
  color: #2a3038;
  font-size: 1.08rem;
  line-height: 1.65;
}

.gf-home .gf-stack__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  margin-top: 0.25rem;
  border: 1px solid #0c0c0e;
  background: #0c0c0e;
  color: #ffffff !important;
  font-family: var(--font-body), sans-serif;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gf-home .gf-stack__cta:hover {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #08080a !important;
}

.gf-stack__side {
  position: relative;
  min-height: 22rem;
  background: #111114;
  overflow: hidden;
}

.gf-stack__media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.gf-stack__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}

.gf-stack__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.15) 0%, rgba(8, 8, 10, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 8, 10, 0.28) 0%, transparent 38%);
}

.gf-stack__chips {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 2;
}

.gf-stack__chips-label {
  margin: 0 0 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gf-stack__chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gf-home .gf-stack__chip,
.gf-stack__chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 10, 0.45);
  backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gf-home .gf-stack__chip:hover,
.gf-stack__chip:hover {
  background: #ffcc00;
  border-color: #ffcc00;
  color: #08080a !important;
}

@media (max-width: 980px) {
  .gf-stack__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gf-band--stack .gf-stack__lede,
  .gf-band--stack .gf-band__lede {
    margin: 0.35rem 0 0 !important;
    max-width: 42rem;
    text-align: left;
  }

  .gf-stack__panel.is-active {
    grid-template-columns: 1fr;
  }

  .gf-stack__side {
    min-height: 18rem;
  }
}

@media (max-width: 760px) {
  .gf-stack__tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gf-stack__tabs::-webkit-scrollbar {
    display: none;
  }

  .gf-stack__tab {
    flex: 0 0 7.25rem;
    min-height: 5.5rem;
    border-right: 1px solid rgba(12, 12, 14, 0.08);
  }

  .gf-stack__copy {
    padding: 1.5rem 1.15rem 1.75rem;
  }

  .gf-stack__side {
    min-height: 16rem;
  }
}
