/* Tech Theme v2 — structural layout overhaul, white + green */

:root {
  --ink: #0c1f1a;
  --muted: #5a746b;
  --line: #d5ebe2;
  --paper: #f4faf7;
  --white: #ffffff;
  --teal: #00a86b;
  --teal-dark: #008556;
  --mint: #e8f8f1;
  --navy: #0d2a22;
  --green: #00a86b;
  --green-dark: #008556;
  --green-deep: #063528;
  --green-glow: rgba(0, 168, 107, 0.18);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --content-max: 1180px;
  --shadow-soft: 0 8px 28px rgba(6, 53, 40, 0.07);
  --shadow-card: 0 14px 40px rgba(6, 53, 40, 0.1);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3,
.brand strong,
.brand-signal {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: -0.03em;
}

body {
  background: #fff;
  color: var(--ink);
}

/* ═══════════════ HEADER: topbar + full nav ═══════════════ */
.site-header.site-header--stack {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex !important;
  flex-direction: column;
  grid-template-columns: none !important;
  gap: 0;
  min-height: 0;
  padding: 0 !important;
  border-bottom: 1px solid var(--line);
  background: #fff;
  backdrop-filter: none;
}

.site-header .header-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 10px clamp(16px, 3vw, 40px);
  background: #fff;
}

.site-header .brand {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}

.site-header .brand strong {
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 700;
}

.site-header .brand small {
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}

.site-header .brand-mark {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 168, 107, 0.25), 0 8px 20px var(--green-glow);
}

.site-header .header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header .menu-button {
  display: none;
}

.site-header .nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  width: 100%;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: #2d4a40;
  font-size: 13px;
  font-weight: 650;
}

.brand-signal {
  color: #7dffc2 !important;
  text-shadow: 0 2px 18px rgba(0, 200, 120, 0.35);
}

.site-header .nav a {
  padding: 8px 14px;
  border-bottom: none;
  border-radius: 999px;
}

.site-header .nav a:hover,
.site-header .nav a.is-active {
  background: var(--mint);
  color: var(--green-dark);
  border-bottom-color: transparent;
}

.site-header .nav-dropdown-menu {
  border-radius: var(--radius-md);
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.site-header .header-cta,
.site-header .cart-header-button {
  border-color: var(--green);
  background: linear-gradient(135deg, #00b877, var(--green-dark));
  border-radius: 999px;
}

.site-header .cart-header-button > span:not(.cart-label) {
  background: #fff;
  color: var(--green-dark);
}

.lang-switcher-toggle {
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}

/* ═══════════════ HERO: centered stage, full-bleed image ═══════════════ */
.hero.hero--stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - 120px);
  padding: 0;
  background: var(--green-deep) !important;
  background-image: none !important;
  overflow: hidden;
}

.hero-stage-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 53, 40, 0.35) 0%, rgba(6, 53, 40, 0.72) 48%, rgba(6, 53, 40, 0.94) 100%),
    linear-gradient(rgba(0, 168, 107, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 107, 0.08) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-stage-inner {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) 0 48px;
  text-align: center;
  color: #fff;
  animation: fadeUp 0.75s ease both;
}

.brand-signal {
  margin: 0 0 18px;
  color: #7dffc2;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1;
}

.hero-stage-inner h1 {
  max-width: none;
  margin: 0 auto 18px;
  color: #fff;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.15;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto;
  color: #b7d4c8 !important;
  font-size: 17px !important;
  line-height: 1.7;
}

.hero-stage-inner .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.hero-actions .primary-button {
  background: linear-gradient(135deg, #00c878, var(--green-dark));
  border-color: transparent;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 168, 107, 0.35);
}

.hero-actions .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
}

.hero-metric-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-metric-bar div {
  display: grid;
  gap: 4px;
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #9fbdb0;
  font-size: 12px;
}

.hero-metric-bar div:last-child { border-right: 0; }

.hero-metric-bar strong {
  color: #7dffc2;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
}

/* Hide legacy hero pieces if any remain */
.hero-content,
.hero-stats,
.trust-band { display: none !important; }

/* ═══════════════ TRUST RAIL: numbered horizontal strip ═══════════════ */
.trust-rail {
  border-bottom: 1px solid var(--line);
  background: #fff;
  overflow-x: auto;
}

.trust-rail-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  min-width: min(100%, 1100px);
  max-width: none;
}

.trust-rail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.trust-rail-item:last-child { border-right: 0; }

.trust-rail-num {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
}

.trust-rail-item h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--green-deep);
}

.trust-rail-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ═══════════════ CATEGORY STACK: alternating full rows ═══════════════ */
.category-stack-section {
  background: var(--paper);
  padding-top: clamp(48px, 6vw, 80px);
}

.stack-intro {
  width: min(720px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}

.stack-intro .eyebrow,
.eyebrow {
  color: var(--green-dark);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.stack-intro h2 {
  color: var(--green-deep);
  font-size: clamp(30px, 4vw, 44px);
}

.bestseller-trust-row {
  justify-content: center;
  margin: 18px 0 0;
}

.bestseller-trust-row span {
  border-radius: 999px;
  border-color: rgba(0, 168, 107, 0.25);
  background: var(--mint);
  color: var(--green-dark);
}

.category-stack {
  display: grid;
  gap: 22px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.category-stack-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-stack-row.reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.category-stack-row.reverse .category-stack-media { order: 2; }
.category-stack-row.reverse .category-stack-copy { order: 1; }

.category-stack-media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.category-stack-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.category-stack-row:hover .category-stack-media img {
  transform: scale(1.04);
}

.category-stack-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(28px, 4vw, 48px);
}

.stack-index {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
}

.category-stack-copy h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--green-deep);
}

.category-stack-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.stack-actions .secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 13px 22px;
}

/* Hide old bestseller grid if present */
.bestseller-category-grid,
.product-section .section-heading { display: none !important; }
.category-stack-section .stack-intro { display: block; }

/* ═══════════════ COA STAGE: carousel full width then table ═══════════════ */
.coa-stage {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-soft);
}

.coa-stage-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.coa-stage-head h2 {
  margin: 0;
  color: var(--green-deep);
}

.coa-stage-viewer {
  overflow: hidden;
  width: 100%;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.coa-stage-viewer .coa-report-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: scrollReports 48s linear infinite;
}

.coa-stage-viewer .coa-report-slide {
  flex: 0 0 200px;
  height: 100%;
  margin: 0;
  padding: 16px;
  display: grid;
  place-items: center;
}

.coa-stage-viewer .coa-report-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.coa-stage .coa-table {
  margin: 0;
  border-radius: var(--radius-md);
}

.coa-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00b877, var(--green-dark));
  border: none;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.coa-more-button:hover { color: #fff; background: var(--green-deep); }

.evidence-section { /* legacy */ }

/* ═══════════════ FEEDBACK MARQUEE ═══════════════ */
.feedback-marquee-section {
  background: linear-gradient(180deg, #f7fcf9, #fff);
  overflow: hidden;
}

.feedback-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.feedback-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: feedbackSlide 42s linear infinite;
  padding: 8px 0 4px;
}

.feedback-marquee-track:hover { animation-play-state: paused; }

@keyframes feedbackSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.feedback-marquee .quote-card {
  width: min(360px, 78vw);
  flex: 0 0 auto;
  min-height: 240px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.quote-avatar {
  background: linear-gradient(135deg, #00b877, var(--green-dark));
  border-radius: 10px;
}

.quote-card-header b {
  background: var(--mint);
  border-color: rgba(0, 168, 107, 0.25);
  color: var(--green-dark);
}

.quote-card footer { color: var(--green-dark); }

.feedback-grid { display: none !important; }

/* ═══════════════ INQUIRY PANEL ═══════════════ */
.inquiry-panel {
  background: var(--green-deep);
  padding: clamp(48px, 7vw, 88px) clamp(18px, 4vw, 48px);
}

.inquiry-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}

.inquiry-copy .eyebrow { color: #7dffc2; }
.inquiry-copy h2 { color: #fff; }
.inquiry-copy p { color: #b7d4c8; }

.inquiry-shell .quick-message-fields {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.inquiry-shell button,
.primary-button,
.cart-action,
.contact-form-panel button,
.quote-form button {
  background: linear-gradient(135deg, #00b877, var(--green-dark));
  border-color: transparent;
  border-radius: 999px;
}

.quick-message-board { display: none !important; }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 22px;
  padding: 48px clamp(18px, 4vw, 48px) 28px;
  background: linear-gradient(180deg, #084a38, var(--green-deep));
  color: #fff;
}

.site-footer p { color: #b7d4c8; }

.footer-trust-notes {
  justify-content: center;
}

.footer-trust-notes span,
.footer-trust-notes a {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dff7eb;
  border-radius: 999px;
}

.footer-right,
.footer-contact {
  justify-items: center;
  text-align: center;
}

.site-footer nav {
  justify-content: center;
  color: #dff7eb;
}

.footer-copyright {
  color: #8fb5a6;
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* ═══════════════ PRODUCTS: list rows not card grid ═══════════════ */
.products-page {
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 48px) 80px;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(0, 168, 107, 0.08), transparent 55%),
    #fff;
}

.products-page .catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--content-max);
  margin: 0 auto 28px;
  grid-template-columns: none;
}

.products-page .catalog-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.products-page .catalog-product-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.products-page .catalog-product-image {
  width: 110px;
  aspect-ratio: 1;
}

.products-page .catalog-product-card h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.products-page .catalog-product-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 8px;
}

.products-page .catalog-product-card dl div {
  grid-template-columns: auto auto;
  border-bottom: 0;
  padding-bottom: 0;
}

.products-page .catalog-price-row {
  justify-self: end;
}

/* Inner pages shared */
.about-page,
.faq-page,
.contact-page,
.blog-page,
.coa-page,
.product-detail-page {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(0, 168, 107, 0.08), transparent 55%),
    #fff;
}

.catalog-filter-row a.active,
.catalog-filter-row button.active,
.catalog-category-card.active {
  border-color: rgba(0, 168, 107, 0.45);
  background: var(--mint);
  color: var(--green-dark);
}

.blog-post-card,
.faq-item,
.contact-info-panel,
.contact-form-panel,
.coa-library-card,
.about-page-grid article {
  border-radius: var(--radius-md);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1120px) {
  .site-header .header-topbar {
    grid-template-columns: 1fr auto;
  }

  .site-header .brand {
    grid-column: 1;
    justify-self: start;
  }

  .site-header .header-actions {
    grid-column: 2;
  }

  .site-header .menu-button {
    display: block;
  }

  .site-header .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

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

  .category-stack-row,
  .category-stack-row.reverse {
    grid-template-columns: 1fr;
  }

  .category-stack-row.reverse .category-stack-media,
  .category-stack-row.reverse .category-stack-copy { order: initial; }

  .coa-stage-head,
  .inquiry-shell {
    grid-template-columns: 1fr;
    display: grid;
  }

  .coa-stage-head { align-items: start; }

  .hero-metric-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-rail-track {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 820px) {
  .trust-rail-track {
    grid-template-columns: 1fr;
  }

  .trust-rail-item { border-right: 0; border-bottom: 1px solid var(--line); }

  .hero-metric-bar { grid-template-columns: 1fr 1fr; }

  .products-page .catalog-product-card {
    grid-template-columns: 84px 1fr;
  }

  .products-page .catalog-product-image { width: 84px; }

  .products-page .catalog-price-row {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .site-header .cart-label { display: none; }
}

@media (max-width: 560px) {
  .hero-metric-bar { grid-template-columns: 1fr; }
  .hero-metric-bar div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}
