/* ========================================================================
   Valenco — Shared Product Detail Page (PDP) styles
   Loaded by whey-protein.html, whey-isolate.html, preworkout.html
   ======================================================================== */

:root {
  --bg:           #0A0A0A;
  --bg-elev-1:    #111111;
  --bg-elev-2:    #161616;
  --border:       #1F1F1F;
  --border-strong:#2A2A2A;
  --text:         #FAFAFA;
  --text-muted:   #9A9A9A;
  --text-dim:     #6B6B6B;
  --accent:       #D4A857;
  --accent-hi:    #E8C079;
  --accent-ink:   #0A0A0A;

  --display: "Instrument Serif", "Times New Roman", serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max:     1280px;
  --gutter:  clamp(20px, 4vw, 48px);
  --radius:  14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 540px at 80% -10%, rgba(212, 168, 87, .08), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(212, 168, 87, .04), transparent 60%);
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 10, 10, .72);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 14px rgba(0,0,0,.35);
}
.brand__logo img {
  width: 158%; height: 158%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.nav__links {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }
@media (min-width: 768px) { .nav__links { display: inline-flex; } }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s var(--ease-spring), filter .2s var(--ease-out);
}
.nav__cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 28px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--accent); }

/* ---------- EYEBROW ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* ---------- PDP HERO ---------- */
.pdp-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px);
}
.pdp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .pdp-hero__grid { grid-template-columns: 1fr 1fr; }
}
.pdp-hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(212,168,87,.18), transparent 60%),
    linear-gradient(180deg, #181818, #0c0c0c);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
}
.pdp-hero__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
}
.pdp-hero__info { max-width: 540px; }
.pdp-hero__eyebrow { margin-bottom: 20px; }
.pdp-hero__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.pdp-hero__name em { font-style: italic; color: var(--accent); }
.pdp-hero__flavor {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin: 0 0 28px;
}
.pdp-hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--accent);
  margin: 0 0 28px;
  line-height: 1.2;
}
.pdp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 32px;
}
.pdp-stat {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  border-radius: 8px;
}
.pdp-stat strong { color: var(--accent); font-weight: 500; font-size: 14px; }
.pdp-hero__desc {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.pdp-cta-group {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform .2s var(--ease-spring), filter .2s var(--ease-out);
}
.cta-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.cta-secondary:hover { background: var(--bg-elev-1); border-color: var(--accent); }

/* ---------- SECTION + RELATED ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--border); }
.sec__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 16px;
}
.sec__title em { color: var(--accent); font-style: italic; }
.sec__lede {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.benefit__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.benefit h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.benefit p {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .related { grid-template-columns: repeat(2, 1fr); } }
.related__item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out);
  align-items: center;
}
.related__item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong));
  background: var(--bg-elev-2);
}
.related__img {
  flex-shrink: 0;
  width: 90px; height: 90px;
  border-radius: 10px;
  background: linear-gradient(180deg, #181818, #0c0c0c);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  padding: 8px;
}
.related__img img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.related__copy { flex: 1; }
.related__copy h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.related__copy p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.related__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.related__item:hover .related__arrow {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  font-size: 14px;
  color: var(--text-muted);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot__about { color: var(--text-dim); font-size: 13.5px; max-width: 36ch; margin-top: 14px; }
.foot__h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}
.foot__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot__list a { color: var(--text-muted); transition: color .15s; }
.foot__list a:hover { color: var(--text); }
.foot__bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}
.disclaimer {
  max-width: 80ch;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 24px;
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- A11Y ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
