/*
Theme Name: NVZNLGACY
Theme URI: https://nvznlgacy.com
Author: NVZNLGACY
Description: Custom theme for NVZNLGACY — a KLOEREL company. Brand system built on the Midnight Navy / Heritage Gold / Baobab Brown / Sage Green / Warm Ivory palette, with Cormorant Garamond and Inter typography.
Version: 1.1.0
Requires PHP: 7.4
Text Domain: nvznlgacy
*/

/* ===================================================================
   KLOEREL — Brand System
   Palette: Midnight Navy / Heritage Gold / Baobab Brown / Sage Green / Warm Ivory
   Type: Cormorant Garamond (headlines) + Inter (body & UI)
=================================================================== */

:root {
  --ink: #0F172A;          /* Midnight Navy */
  --ink-soft: #17253F;
  --paper: #F8F6F2;        /* Warm Ivory */
  --paper-dim: #EDE9E0;
  --ink-on-paper: #17253F;
  --gold: #C8A23A;         /* Heritage Gold */
  --gold-bright: #D9BC5C;
  --teal: #6B8E6E;         /* Sage Green */
  --rust: #6B4F3A;         /* Baobab Brown */
  --rule: #263857;
  --rule-soft: #1B2A45;
  --text-dim: #93A0B8;
  --text-mid: #C9D0DC;

  --display: 'Cormorant Garamond', serif;
  --body: 'Inter', sans-serif;
  --mono: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text-mid);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- Header / masthead ---------------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand .mark {
  width: 10px;
  height: 10px;
  background: var(--gold);
  display: inline-block;
  border-radius: 1px;
}

.brand small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

nav.primary {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

nav.primary a {
  padding: 7px 12px;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 3px;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

nav.primary a:hover { color: var(--gold-bright); }
nav.primary a.active {
  color: var(--ink);
  background: var(--gold);
}

.ticker-tape {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--ink-soft);
  padding: 7px 0;
  letter-spacing: 0.02em;
}
.ticker-tape .wrap { display: flex; gap: 26px; overflow-x: auto; }
.ticker-tape span { white-space: nowrap; }
.ticker-tape .up { color: var(--teal); }
.ticker-tape .down { color: var(--rust); }

/* ---------------- Hero ---------------- */

.hero {
  padding: 92px 0 76px;
  border-bottom: 1px solid var(--rule);
}

.hero .eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero .eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold-bright);
  display: inline-block;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.04;
  color: var(--paper);
  max-width: 15ch;
  letter-spacing: -0.01em;
}

.hero .sub {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 19px;
  color: var(--text-mid);
}

.hero .stat-row {
  margin-top: 48px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  font-family: var(--mono);
}
.stat .n {
  font-size: 26px;
  color: var(--paper);
  font-weight: 500;
}
.stat .l {
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------------- Ledger / index table ---------------- */

.ledger { padding: 76px 0 100px; }

.ledger .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  color: var(--paper);
}

.section-head .note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.row {
  display: grid;
  grid-template-columns: 90px 1fr 140px 140px;
  align-items: center;
  gap: 22px;
  padding: 22px 18px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background .15s ease;
}
.row:hover { background: var(--ink-soft); }

.row .ticker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-bright);
}

.row .name-block h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  color: var(--paper);
  margin-bottom: 5px;
}
.row .name-block p {
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 52ch;
}
.row .name-block .cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 2px;
  padding: 2px 7px;
  margin-bottom: 8px;
}

.row .spark { width: 130px; height: 34px; }
.row .spark path.line {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1.4s ease forwards;
}
.row.is-down .spark path.line { stroke: var(--rust); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.row .cta-cell { text-align: right; }
.row .go {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--rule);
  padding: 8px 14px;
  border-radius: 3px;
  display: inline-block;
  transition: all .15s ease;
}
.row:hover .go {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 12px; }
  .row .spark { display: none; }
  .row .cta-cell { text-align: left; }
}

/* ---------------- Filing (division page) header ---------------- */

.filing-head {
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--rule);
}

.filing-head .code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.filing-head .code .cat {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 2px;
  padding: 3px 8px;
}

.filing-head h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  color: var(--paper);
  line-height: 1.05;
}

.filing-head .thesis {
  margin-top: 22px;
  max-width: 58ch;
  font-size: 18.5px;
  color: var(--text-mid);
}

.filing-head .spark-big { width: 220px; height: 56px; margin-top: 32px; }
.filing-head .spark-big path.line {
  fill: none; stroke: var(--teal); stroke-width: 2;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 1.6s ease forwards;
}
.filing-head.is-down .spark-big path.line { stroke: var(--rust); }

/* ---------------- Content sections (paper panels) ---------------- */

.panel-section { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.panel-section.tight { padding: 48px 0; }

.panel-section h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  color: var(--paper);
  margin-bottom: 20px;
}

.panel-section .lede {
  font-size: 18px;
  max-width: 62ch;
  color: var(--text-mid);
  margin-bottom: 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--ink);
  padding: 28px 26px;
}
.card .idx {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--gold-bright);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.card h3 {
  font-family: var(--display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 10px;
}
.card p { font-size: 14.5px; color: var(--text-dim); }

.status-panel {
  background: var(--paper);
  color: var(--ink-on-paper);
  padding: 34px 36px;
  border-radius: 2px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .status-panel { grid-template-columns: 1fr 1fr; } }

.status-panel .item .l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5A6B5F;
  margin-bottom: 6px;
}
.status-panel .item .v {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
}

.cta-strip {
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
}
.cta-strip h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
}
.cta-strip p { color: var(--text-dim); font-size: 14.5px; margin-top: 6px; }

.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 22px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid var(--gold);
}
.btn.solid { background: var(--gold); color: var(--ink); }
.btn.ghost { color: var(--gold-bright); }

/* ---------------- Footer ---------------- */

footer {
  padding: 40px 0 60px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
footer a:hover { color: var(--gold-bright); }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------------- NVZNLGACY brand layer: util bar + category nav ---------------- */

.util-bar {
  background: var(--ink-soft);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 11.5px;
}
.util-bar .wrap { display: flex; justify-content: flex-end; gap: 2px; padding: 8px 32px; }
.util-bar a {
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  transition: color .15s ease;
}
.util-bar a:hover { color: var(--gold-bright); }
.util-bar a.active { color: var(--gold); }

.cat-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
}
.cat-nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 32px;
  flex-wrap: wrap;
}
.cat-nav .brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  color: var(--paper);
  letter-spacing: 0.01em;
  margin-right: 12px;
}
.cat-nav .brand .mark { width: 9px; height: 9px; background: var(--gold); display: inline-block; margin-right: 8px; border-radius: 1px; }
.cat-nav .cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
}
.cat-nav .cats a {
  padding: 7px 11px;
  color: var(--text-mid);
  border-radius: 3px;
  transition: all .15s ease;
  white-space: nowrap;
}
.cat-nav .cats a:hover { color: var(--gold-bright); }
.cat-nav .cats a.active { background: var(--gold); color: var(--ink); }

/* ---------------- Article / content grid ---------------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  margin-top: 8px;
}
@media (max-width: 860px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .article-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--ink);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}
.article-card .meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  gap: 10px;
}
.article-card h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
}
.article-card p { font-size: 14px; color: var(--text-dim); flex-grow: 1; }
.article-card .stub {
  font-family: var(--mono);
  font-size: 11px;
  border-top: 1px dashed var(--rule);
  padding-top: 10px;
  margin-top: auto;
  color: var(--text-dim);
}

.review-card .rating {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

/* ---------------- Newsletter ---------------- */

.newsletter-box {
  background: var(--paper);
  color: var(--ink-on-paper);
  padding: 44px 40px;
  border-radius: 2px;
}
.newsletter-box h2 { font-family: var(--display); font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.newsletter-box p { max-width: 56ch; margin-bottom: 24px; color: #40504A; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 14px;
  border: 1px solid #B9AF95;
  background: #F6F2E6;
  font-family: var(--body);
  font-size: 15px;
  border-radius: 2px;
  color: var(--ink-on-paper);
}
.newsletter-form button {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 20px;
  background: var(--ink-on-paper);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  cursor: pointer;
}
.newsletter-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: #5A6B5F;
  margin-top: 14px;
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { margin-bottom: 16px; color: var(--text-mid); font-size: 16.5px; }
.about-side { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.about-side .row-item { border-bottom: 1px solid var(--rule-soft); padding: 14px 0; }
.about-side .row-item .l { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; margin-bottom: 5px; }
.about-side .row-item .v { color: var(--paper); font-size: 13.5px; }

/* ---------------- Topic chips & product roadmap strip ---------------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-mid);
  border: 1px solid var(--rule);
  padding: 7px 13px;
  border-radius: 20px;
  background: var(--ink-soft);
}

.credibility-note {
  margin-top: 26px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  background: var(--ink-soft);
  font-size: 14.5px;
  color: var(--text-mid);
  max-width: 60ch;
}

.disclaimer-note {
  margin-top: 14px;
  padding: 16px 20px;
  border-left: 2px solid var(--rust);
  background: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 60ch;
}

.product-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.product-pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-bright);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 16px;
  background: var(--ink-soft);
}

.vision-flow {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.vision-col { flex: 1; min-width: 160px; }
.vision-col .head {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.vision-col .item { font-family: var(--display); font-size: 15px; color: var(--paper); margin-bottom: 8px; }
.vision-pipeline {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.vision-pipeline .step { color: var(--teal); }
.vision-pipeline .arrow { color: var(--rule); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .row .spark path.line, .filing-head .spark-big path.line { animation: none; stroke-dashoffset: 0; }
}

/* ---------------- Easy Digital Downloads storefront ---------------- */
.util-bar .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.store-link, .cart-link { color: var(--gold-bright); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cart-link { margin-left: auto; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 5px; border-radius: 20px; background: var(--gold); color: var(--ink); }
.store-head .code { color: var(--gold-bright); }
.store-section { padding-top: 64px; }
.store-intro { max-width: 660px; margin-bottom: 34px; }
.store-intro h2, .store-empty h2 { color: var(--paper); font-family: var(--display); font-size: 34px; }
.store-empty { border: 1px solid var(--rule); padding: 34px; background: var(--ink-soft); }
.edd-nvz-grid, .edd_downloads_list { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.edd-nvz-card, .edd_download, .edd_download_inner { border: 1px solid var(--rule); background: var(--ink-soft); height: 100%; }
.edd-nvz-image { display: block; aspect-ratio: 4 / 3; background: var(--paper-dim); overflow: hidden; }
.edd-nvz-image img { width: 100%; height: 100%; object-fit: cover; }
.edd-nvz-card-body, .edd_download_inner { padding: 24px !important; }
.edd-nvz-card h2, .edd_download_title { color: var(--paper); font-family: var(--display); font-size: 26px; line-height: 1.1; margin: 8px 0 12px; }
.edd-nvz-card p, .edd_download_excerpt { color: var(--text-dim); font-size: 14px; }
.edd-nvz-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.edd_price, .edd_price_options { color: var(--gold-bright); font-weight: 700; }
.edd-submit, .edd-submit.button, #edd-purchase-button, .edd-add-to-cart { border: 0 !important; border-radius: 2px !important; background: var(--gold) !important; color: var(--ink) !important; font-family: var(--body) !important; font-weight: 700 !important; padding: 12px 18px !important; cursor: pointer; }
.edd-submit:hover, #edd-purchase-button:hover, .edd-add-to-cart:hover { background: var(--gold-bright) !important; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 54px; align-items: start; }
.product-visual { background: var(--paper-dim); min-height: 280px; }
.product-visual img { width: 100%; height: auto; }
.product-copy { border: 1px solid var(--rule); background: var(--ink-soft); padding: 34px; }
.product-price { color: var(--gold-bright); font-family: var(--display); font-size: 34px; margin-bottom: 20px; }
.product-copy .entry-content > * + * { margin-top: 16px; }
.product-buy { margin-top: 28px; }
.secure-note { margin-top: 16px; color: var(--text-dim); font-size: 12px; }
#edd_checkout_form_wrap, #edd_checkout_cart, .edd-blocks__checkout { color: var(--ink-on-paper); background: var(--paper); padding: 24px; }
#edd_checkout_form_wrap input, #edd_checkout_form_wrap select, #edd_checkout_form_wrap textarea { border: 1px solid #B9AF95; background: #fff; color: var(--ink-on-paper); padding: 11px; }
#edd_checkout_cart th, #edd_checkout_cart td { border-color: #D8D0C0; }
@media (max-width: 850px) { .edd-nvz-grid, .edd_downloads_list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .product-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .edd-nvz-grid, .edd_downloads_list { grid-template-columns: 1fr; } .cart-link { margin-left: 0; } }
