/* ==========================================================================
   UPVCLeads.com — Page styles (national pillar reference)
   ========================================================================== */

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

.hdr {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--c-surface) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: var(--mullion) solid var(--c-line);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 64px;
}
.hdr__logo { flex: none; display: flex; }
.hdr__nav {
  display: flex;
  gap: var(--s-5);
  flex: 1;
}
.hdr__nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-ink-body);
  text-decoration: none;
  padding-block: var(--s-2);
  border-bottom: 2px solid transparent;
}
.hdr__nav a:hover { color: var(--c-glass); border-bottom-color: var(--c-glass); }
.hdr__act { display: flex; align-items: center; gap: var(--s-3); flex: none; }

@media (max-width: 980px) {
  .hdr__nav { display: none; }
  .hdr__act .btn--ghost { display: none; }
}
@media (max-width: 720px) {
  .hdr__in { gap: var(--s-4); }
  .hdr__act { margin-left: auto; }
}


/* ---- Hero ---------------------------------------------------------------
   The section drawing is the thesis. It gets real estate, not a corner.
   ---------------------------------------------------------------------- */

.hero {
  border-bottom: var(--mullion) solid var(--c-line);
  overflow: hidden;
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s-8);
  align-items: center;
  padding-block: var(--s-9);
}

.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ink-muted);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: var(--mullion) solid var(--c-line);
  display: inline-block;
}

.hero__h {
  font-size: var(--t-3xl);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-5);
}
.hero__h em {
  font-style: normal;
  color: var(--c-glass);
}

.hero__lead { margin-bottom: var(--s-6); max-width: 46ch; }

.hero__toggle {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.hero__toggle-q {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink);
}
.hero__toggle-note { margin: 0; }

.hero__dwg { margin: 0; }
.hero__dwg img { width: 100%; height: auto; }

.dwg-cap {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  line-height: 1.5;
  color: var(--c-ink-muted);
  padding-top: var(--s-3);
  margin-top: var(--s-3);
  border-top: var(--mullion) solid var(--c-line);
  max-width: 52ch;
}
.dwg-cap .num { color: var(--c-ink); font-weight: 500; }

@media (max-width: 900px) {
  .hero__in {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding-block: var(--s-7);
  }
  .hero__dwg { order: -1; }
}


/* ---- Trust strip --------------------------------------------------------- */

.strip {
  background: var(--c-ink);
  color: #fff;
  padding-block: var(--s-5);
}
.strip__list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.strip__list li {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin: 0;
  padding-left: var(--s-4);
  border-left: var(--mullion) solid rgba(255,255,255,0.18);
}
.strip__list strong {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  color: var(--c-glass-edge);
  flex: none;
}
.strip__list span {
  font-size: var(--t-sm);
  color: rgba(255,255,255,0.72);
  line-height: 1.4;
}
@media (max-width: 780px) {
  .strip__list { grid-template-columns: 1fr; gap: var(--s-3); }
}


/* ---- Split section ------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.split__lead h2 { margin-bottom: var(--s-4); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
}


/* ---- Type cards ---------------------------------------------------------- */

.types { border-top: var(--mullion) solid var(--c-line); }
.types .type {
  border-bottom: var(--mullion) solid var(--c-line);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background var(--d-fast) var(--e-out);
}
.type:hover { background: var(--c-glass-tint); text-decoration: none; }
.type h3 { margin-bottom: var(--s-2); }
.type p { margin: 0; }


/* ---- Geo ----------------------------------------------------------------- */

.geo__h { margin-bottom: var(--s-4); }


/* ---- Fabricator CTA -----------------------------------------------------
   The one dark block on the page. It marks the switch from buyer to seller.
   ---------------------------------------------------------------------- */

.fab {
  background: var(--c-ink);
  color: #fff;
  padding-block: var(--s-9);
}
.fab__in { max-width: 62ch; }
.fab__h { color: #fff; margin-bottom: var(--s-4); font-size: var(--t-xl); }
.fab__lead { color: rgba(255,255,255,0.74); margin-bottom: var(--s-6); }
.label--onDark { color: rgba(255,255,255,0.5); }
.label--onDark::after { background: rgba(255,255,255,0.18); }


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

.ftr {
  border-top: var(--mullion) solid var(--c-line);
  padding-block: var(--s-7) var(--s-5);
}
.ftr__cols { border-top: 0; border-left: 0; }
.ftr__cols > * { padding: 0 var(--s-5); border-right: 0; }
.ftr__cols > *:first-child { padding-left: 0; }
.ftr__cols > *:not(:last-child) { border-right: var(--mullion) solid var(--c-line); }
.ftr__h {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  font-family: var(--f-mono);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--c-ink-muted);
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.ftr__cols a {
  display: block;
  font-size: var(--t-sm);
  color: var(--c-ink-body);
  text-decoration: none;
  padding-block: var(--s-2);
}
.ftr__cols a:hover { color: var(--c-glass); }
.ftr__base {
  margin: var(--s-6) 0 0;
  padding-top: var(--s-5);
  border-top: var(--mullion) solid var(--c-line);
}
@media (max-width: 720px) {
  .ftr__cols > * { padding: var(--s-4) 0; border-right: 0; }
  .ftr__cols > *:not(:last-child) { border-bottom: var(--mullion) solid var(--c-line); }
  body { padding-bottom: 76px; }  /* clear the sticky bar */
}


/* ---- Panel bits ---------------------------------------------------------- */

.panel__title { font-size: var(--t-lg); margin-bottom: var(--s-1); }
.panel__actions { display: flex; gap: var(--s-3); }
.panel__actions .btn--secondary { flex: none; }

.consent {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4);
  background: var(--c-surface-sunk);
  border: var(--mullion) solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--c-glass);
}
.consent span { color: var(--c-ink-body); line-height: 1.5; }


/* ---- Price table pending state -----------------------------------------
   Not an error, not a placeholder — a statement of method.
   ---------------------------------------------------------------------- */

.spec--price td.pending {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  color: var(--c-ink-faint);
  letter-spacing: 0;
}
.spec__foot {
  margin: 0;
  padding: var(--s-4);
  color: var(--c-ink-muted);
  background: var(--c-surface-sunk);
  border-top: var(--mullion) solid var(--c-line);
  line-height: 1.5;
}

/* Tap targets: footer links and the logo must clear 44px on touch.
   Desktop keeps the tighter rhythm. */
@media (hover: none) {
  .ftr__cols a { padding-block: var(--s-3); min-height: 44px; display: flex; align-items: center; }
  .hdr__logo { min-height: 44px; align-items: center; }
}

/* ---- Breadcrumb — used on category/product pages, not the homepage ---- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  padding-block: var(--s-4);
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--c-ink-faint);
}
.crumb a { color: var(--c-ink-muted); text-decoration: none; }
.crumb a:hover { color: var(--c-glass); text-decoration: underline; }
.crumb__sep { color: var(--c-line-strong); }
.crumb [aria-current] { color: var(--c-ink-body); }

/* ---- Related links list — product page footer nav to siblings ---- */
.related { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.related a {
  padding: var(--s-2) var(--s-4);
  border: var(--mullion) solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--t-xs);
  color: var(--c-ink-body);
  text-decoration: none;
}
.related a:hover { border-color: var(--c-glass); color: var(--c-glass); }
