/* ═══════════════════════════════════════
   COMPONENTS — tier1concept
   All section-level component styles
   Based on confirmed mockup (selected-mockup.html)
   ═══════════════════════════════════════ */

/* ───── HEADER ───── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 36px;
  background: transparent;
  transition: background .3s, border-color .3s;
}

.site-header.scrolled {
  background: rgba(8, 8, 7, .88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tan-border);
}

.hdr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.hdr-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hdr-nav a:not(.hdr-cta) {
  font-family: var(--mono);
  font-size: var(--text-nav);
  letter-spacing: .2em;
  color: var(--white-55);
  text-transform: uppercase;
  transition: color .2s;
  text-decoration: none;
}

.hdr-nav a:not(.hdr-cta):hover {
  color: var(--tan);
}

/* WP menu items */
.hdr-nav .menu-item a {
  font-family: var(--mono);
  font-size: var(--text-nav);
  letter-spacing: .2em;
  color: var(--white-55);
  text-transform: uppercase;
  transition: color .2s;
  text-decoration: none;
}

.hdr-nav .menu-item a:hover {
  color: var(--tan);
}

.hdr-cta {
  white-space: nowrap;
}

/* Mobile toggle */
.hdr-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hdr-mobile-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--white);
  transition: transform .3s, opacity .3s;
}

.hdr-mobile-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(2px, 3px);
}

.hdr-mobile-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(2px, -3px);
}

/* ───── HERO ───── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bars::before,
.hero-bars::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--black);
  z-index: 4;
}

.hero-bars::before { top: 0; }
.hero-bars::after { bottom: 0; }

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--black) 0%, rgba(8, 8, 7, .6) 40%, transparent 70%);
  z-index: 2;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(180, 210, 120, .02) 3px,
    rgba(180, 210, 120, .02) 4px
  );
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 60px 120px;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .3em;
  color: var(--tan);
  margin-bottom: 16px;
}

.hero-h1 {
  font-family: var(--stencil);
  font-size: var(--text-hero);
  line-height: .88;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-h1 b {
  display: block;
  color: var(--tan);
  font-weight: 400;
}

.hero-sub {
  font-size: 13px;
  line-height: 1.8;
  color: var(--white-55);
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero corner stats */
.hero-corner {
  position: absolute;
  bottom: 120px;
  right: 60px;
  z-index: 5;
  display: flex;
  gap: 30px;
  text-align: right;
}

.hero-corner-num {
  font-family: var(--stencil);
  font-size: var(--text-stat);
  color: var(--tan);
  line-height: 1;
}

.hero-corner-lbl {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--white-40);
  margin-top: 4px;
}

/* ───── MARQUEE ───── */
.marquee {
  background: var(--tan);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  gap: 40px;
  animation: marquee-scroll 20s linear infinite;
}

.marquee-inner span {
  font-family: var(--stencil);
  font-size: 14px;
  letter-spacing: .28em;
  color: var(--black);
}

/* ───── APPLY / FEATURED PRODUCT ───── */
.apply-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.apply-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8s ease-out;
  /* Placeholder — will use actual image via inline style or WP */
  background-color: #1a1a18;
}

.apply-section.in-view .apply-bg {
  transform: scale(1);
}

.apply-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8, 8, 7, .92) 0%,
    rgba(8, 8, 7, .6) 50%,
    rgba(8, 8, 7, .05) 100%
  );
  z-index: 1;
}

.apply-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 580px;
}

.apply-label {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .3em;
  color: var(--tan);
  margin-bottom: 16px;
}

.apply-h2 {
  font-family: var(--stencil);
  font-size: var(--text-h2);
  letter-spacing: .06em;
  color: var(--white);
  line-height: .9;
  margin-bottom: 24px;
}

.apply-h2 span {
  display: block;
  color: var(--tan);
}

.apply-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--white-55);
  margin-bottom: 24px;
}

.apply-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.apply-tag {
  font-family: var(--mono);
  font-size: var(--text-tag);
  letter-spacing: .1em;
  color: var(--white-55);
  border: 1px solid var(--tan-border);
  padding: 5px 12px;
}

.apply-cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.apply-price {
  font-family: var(--stencil);
  font-size: 28px;
  letter-spacing: .06em;
  color: var(--tan);
  line-height: 1;
}

/* ───── PRODUCT STRIP ───── */
.strip-section {
  background: var(--surface);
  padding: var(--section-py) 0;
}

.strip-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--section-px) 40px;
}

.strip-h2 {
  font-family: var(--stencil);
  font-size: var(--text-h3);
  letter-spacing: .06em;
  color: var(--white);
}

.strip-h2 em {
  font-style: normal;
  color: var(--tan);
}

.strip-link {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .14em;
  color: var(--tan);
  transition: color .2s;
}

.strip-link:hover {
  color: var(--white);
}

.strip-scroll {
  display: flex;
  gap: var(--gap-tight);
  overflow-x: auto;
  padding: 0 var(--section-px);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.strip-scroll::-webkit-scrollbar {
  display: none;
}

.strip-card {
  flex: 0 0 280px;
  position: relative;
  overflow: hidden;
  display: block;
  scroll-snap-align: start;
  text-decoration: none;
}

.strip-card-img {
  width: 280px;
  height: 300px;
  object-fit: cover;
  filter: brightness(.85);
  transition: filter .4s, transform .4s;
}

.strip-card-placeholder {
  width: 280px;
  height: 300px;
  background: linear-gradient(135deg, #1a1a18 0%, #111 100%);
}

.strip-card:hover .strip-card-img {
  filter: brightness(1);
  transform: scale(1.04);
}

.strip-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(8, 8, 7, .85));
  pointer-events: none;
}

.strip-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
}

.strip-card-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 4px;
}

.strip-card-price {
  font-family: var(--stencil);
  font-size: 18px;
  color: var(--tan);
}

.strip-card-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--black);
  background: var(--tan);
  padding: 5px 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}

.strip-card:hover .strip-card-btn {
  opacity: 1;
  transform: none;
}

/* ───── APPLICATION GRID (Bento) ───── */
.appgrid-section {
  padding: var(--section-py) 0;
}

.appgrid-header {
  padding: 0 var(--section-px) 40px;
}

.appgrid-h2 {
  font-family: var(--stencil);
  font-size: var(--text-h3);
  letter-spacing: .06em;
  color: var(--white);
}

.appgrid-h2 em {
  font-style: normal;
  color: var(--tan);
}

.appgrid-sub {
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .2em;
  color: rgba(196, 169, 122, .45);
  margin-top: 8px;
}

.appgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 340px 300px;
  gap: var(--gap-tight);
  padding: 0 var(--section-px);
}

.appgrid-cell {
  position: relative;
  overflow: hidden;
  background: #111;
}

.appgrid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.8) contrast(1.05);
  transition: filter .5s, transform .5s;
}

.appgrid-cell:hover img {
  filter: brightness(1) contrast(1.05);
  transform: scale(1.04);
}

.appgrid-cell--tall {
  grid-row: span 2;
}

.appgrid-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(8, 8, 7, .85));
  padding: 24px 20px 16px;
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .14em;
  color: rgba(244, 242, 237, .7);
}

.appgrid-caption strong {
  display: block;
  font-family: var(--stencil);
  font-size: 16px;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 2px;
}

/* ───── SPEC SECTION (Parallax) ───── */
.spec-section {
  position: relative;
  padding: 120px var(--section-px);
  overflow: hidden;
}

.spec-bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: brightness(.12) blur(2px);
  background-color: #0a0a09;
}

.spec-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.spec-h2 {
  font-family: var(--stencil);
  font-size: clamp(40px, 4vw, 68px);
  letter-spacing: .04em;
  color: var(--white);
  line-height: .95;
  margin-bottom: 24px;
}

.spec-h2 b {
  color: var(--tan);
  font-weight: 400;
  display: block;
}

.spec-body {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(244, 242, 237, .6);
  margin-bottom: 32px;
}

.spec-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.spec-cell {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--tan-border);
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.spec-cell-icon {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--tan);
  margin-bottom: 10px;
}

.spec-cell-title {
  font-family: var(--stencil);
  font-size: 17px;
  letter-spacing: .1em;
  color: var(--white);
  margin-bottom: 6px;
}

.spec-cell-desc {
  font-family: var(--mono);
  font-size: var(--text-label);
  line-height: 1.6;
  color: var(--white-40);
}

/* ───── WHERE TO BUY ───── */
.buy-section {
  position: relative;
  overflow: hidden;
  padding: 100px var(--section-px);
  background: var(--od);
}

.buy-bg-text {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--stencil);
  font-size: 220px;
  color: rgba(0, 0, 0, .12);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.buy-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
}

.buy-h2 {
  font-family: var(--stencil);
  font-size: clamp(42px, 5vw, 80px);
  letter-spacing: .04em;
  color: var(--white);
  line-height: .9;
  margin-bottom: 20px;
}

.buy-h2 span {
  color: var(--tan);
  display: block;
}

.buy-desc {
  font-size: 13px;
  color: var(--white-55);
  line-height: 1.7;
  max-width: 400px;
}

.buy-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buy-card {
  background: rgba(8, 8, 7, .6);
  border: 1px solid rgba(196, 169, 122, .2);
  padding: 22px 30px;
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s;
}

.buy-card:hover {
  background: rgba(8, 8, 7, .8);
  border-color: var(--tan);
}

.buy-badge {
  background: var(--tan);
  color: var(--black);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  padding: 3px 9px;
  white-space: nowrap;
}

.buy-card-name {
  font-family: var(--stencil);
  font-size: 18px;
  letter-spacing: .1em;
  color: var(--white);
}

.buy-card-sub {
  font-family: var(--mono);
  font-size: var(--text-tag);
  letter-spacing: .1em;
  color: var(--white-40);
}

.buy-arrow {
  margin-left: auto;
  color: var(--tan);
  font-size: 20px;
}

/* ───── FOOTER ───── */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(196, 169, 122, .08);
  padding: 56px var(--section-px) 28px;
}

.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.ft-logo-link {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 8px;
  opacity: .85;
  transition: opacity .2s;
}

.ft-logo-link:hover {
  opacity: 1;
}

.ft-logo-link img {
  height: 32px;
  width: auto;
  display: block;
}

.ft-logo {
  font-family: var(--stencil);
  font-size: 20px;
  letter-spacing: .2em;
  color: var(--white);
  margin-bottom: 8px;
}

.ft-logo span {
  color: var(--tan);
}

.ft-tagline {
  font-family: var(--mono);
  font-size: var(--text-tag);
  letter-spacing: .22em;
  color: rgba(196, 169, 122, .3);
  margin-bottom: 16px;
}

.ft-desc {
  font-size: 12px;
  color: var(--white-30);
  line-height: 1.7;
  max-width: 280px;
}

.ft-col-h {
  font-family: var(--mono);
  font-size: var(--text-tag);
  letter-spacing: .26em;
  color: rgba(196, 169, 122, .35);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ft-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-links a {
  font-size: 13px;
  color: var(--white-45);
  text-decoration: none;
  transition: color .2s;
}

.ft-links a:hover {
  color: var(--tan);
}

.ft-bottom {
  border-top: 1px solid rgba(196, 169, 122, .07);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ft-copy,
.ft-geo {
  font-family: var(--mono);
  font-size: var(--text-tag);
  color: rgba(196, 169, 122, .2);
  letter-spacing: .1em;
}

/* ───── WOOCOMMERCE CATALOG ───── */
.wc-catalog .products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-tight);
  padding: 40px 0;
}

.wc-catalog .wc-product-card {
  display: block;
  flex: none;
  width: auto;
}

.wc-catalog .strip-card-img,
.wc-catalog .strip-card-placeholder {
  width: 100%;
  height: 300px;
}

.wc-catalog .woocommerce-pagination {
  padding: 40px 0;
  text-align: center;
}

.wc-catalog .woocommerce-pagination ul {
  display: inline-flex;
  gap: 4px;
}

.wc-catalog .woocommerce-pagination a,
.wc-catalog .woocommerce-pagination span {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--text-label);
  letter-spacing: .1em;
  padding: 8px 14px;
  color: var(--white-55);
  border: 1px solid var(--tan-border);
  transition: all .2s;
}

.wc-catalog .woocommerce-pagination a:hover {
  border-color: var(--tan);
  color: var(--tan);
}

.wc-catalog .woocommerce-pagination .current {
  background: var(--tan);
  color: var(--black);
  border-color: var(--tan);
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (900px and below)
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  /* Header */
  .site-header {
    padding: 0 18px;
  }

  .hdr-nav a:not(.hdr-cta),
  .hdr-nav .menu-item:not(:last-child) {
    display: none;
  }

  .hdr-mobile-toggle {
    display: flex;
  }

  /* Mobile nav open state */
  .hdr-nav--open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 8, 7, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px 24px;
    gap: 24px;
    z-index: 999;
  }

  .hdr-nav--open a:not(.hdr-cta),
  .hdr-nav--open .menu-item {
    display: block !important;
  }

  .hdr-nav--open a:not(.hdr-cta) {
    font-size: 14px;
    color: var(--white);
    letter-spacing: .14em;
  }

  .hdr-nav--open .hdr-cta {
    margin-top: 20px;
    text-align: center;
    width: 100%;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Hero */
  .hero-content {
    padding: 0 24px 100px;
  }

  .hero-corner {
    display: none;
  }

  .hero-bars::before,
  .hero-bars::after {
    height: 40px;
  }

  /* Apply */
  .apply-content {
    padding: 0 24px;
  }

  /* Strip */
  .strip-header {
    padding: 0 24px 30px;
    flex-direction: column;
    gap: 12px;
  }

  .strip-scroll {
    padding: 0 24px;
  }

  .strip-card {
    flex: 0 0 240px;
  }

  .strip-card-img,
  .strip-card-placeholder {
    width: 240px;
    height: 260px;
  }

  /* Application Grid */
  .appgrid-header {
    padding: 0 24px 30px;
  }

  .appgrid {
    padding: 0 24px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .appgrid-cell--tall {
    grid-row: span 1;
  }

  .appgrid-cell {
    min-height: 200px;
  }

  /* Spec */
  .spec-section {
    padding: 80px 24px;
  }

  .spec-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .spec-right {
    grid-template-columns: 1fr 1fr;
  }

  /* Where to Buy */
  .buy-section {
    padding: 80px 24px;
  }

  .buy-inner {
    flex-direction: column;
  }

  .buy-card {
    min-width: auto;
    width: 100%;
  }

  .buy-bg-text {
    font-size: 120px;
  }

  /* Footer */
  .site-footer {
    padding: 40px 24px 20px;
  }

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

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

  .spec-right {
    grid-template-columns: 1fr;
  }

  .ft-grid {
    grid-template-columns: 1fr;
  }

  .buy-bg-text {
    font-size: 80px;
  }
}
