/* ELVION — Design System (see DESIGN.md) */

:root {
  --ink: #10151C;
  --ink-soft: #333B47;
  --surface: #F7F8FA;
  --surface-raised: #FFFFFF;
  --border: #E2E5EA;
  --muted: #6B7280;
  --amber: #F5A623;
  --amber-deep: #C97F0E;
  --steel: #2F6F8F;
  --steel-soft: #E8F1F5;
  --success: #2E7D5B;
  --warning: #C97F0E;
  --error: #C0392B;

  --font-display: 'Fraunces', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-data: 'Geist', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  --max-width: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --ink: #F4F5F7;
  --ink-soft: #C7CCD3;
  --surface: #0B0E13;
  --surface-raised: #151B23;
  --border: #262E38;
  --muted: #8A93A0;
  --steel-soft: #16232A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
section { padding: var(--space-3xl) 0; border-bottom: 1px solid var(--border); }
section.no-border { border-bottom: none; }
section.tight { padding: var(--space-2xl) 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0 0 var(--space-md); letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }
p { line-height: 1.6; color: var(--ink-soft); margin: 0 0 var(--space-md); }
.lede { font-size: 18px; max-width: 46ch; }

.eyebrow {
  font-family: var(--font-data);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-deep);
  margin-bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

/* Top bar */
header.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { height: 28px; width: auto; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
nav.topnav { display: flex; gap: var(--space-lg); font-size: 14px; font-weight: 600; }
nav.topnav a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 2px solid transparent; }
nav.topnav a:hover, nav.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }
.topbar-actions { display: flex; align-items: center; gap: var(--space-sm); }
.theme-toggle {
  font-family: var(--font-data); font-size: 12px; font-weight: 600;
  background: var(--surface-raised); border: 1px solid var(--border); color: var(--ink);
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 36px; height: 36px; cursor: pointer; color: var(--ink);
}

/* Buttons */
.btn {
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--radius-sm); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s var(--ease-out), border-color .15s var(--ease-out), transform .1s var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost { background: transparent; color: var(--steel); border: none; padding-left: 0; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn:active { transform: translateY(1px); }

/* Hero visual */
.lamp-visual {
  aspect-ratio: 4/5; border-radius: var(--radius-lg);
  background:
    radial-gradient(120px 120px at 50% 38%, rgba(245,166,35,0.55), transparent 70%),
    linear-gradient(160deg, var(--ink) 0%, #1C2430 100%);
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
}
.lamp-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-radial-gradient(circle at 50% 38%, transparent 0, transparent 18px, rgba(245,166,35,0.12) 19px, transparent 20px);
}
.lamp-visual .spec-chip {
  position: absolute; bottom: var(--space-lg); left: var(--space-lg); right: var(--space-lg);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-md); font-family: var(--font-data); font-size: 13px;
  display: flex; justify-content: space-between; color: var(--ink);
  backdrop-filter: blur(6px);
}
:root[data-theme="dark"] .lamp-visual .spec-chip { background: rgba(21,27,35,0.9); }

.trust-row { display: flex; gap: var(--space-xl); margin-top: var(--space-2xl); flex-wrap: wrap; }
.trust-item { font-family: var(--font-data); font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust-item strong { color: var(--ink); font-size: 15px; }

/* Value grid */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.value-card { background: var(--surface-raised); padding: var(--space-xl); }
.value-card .num { font-family: var(--font-data); font-size: 12px; color: var(--amber-deep); font-weight: 600; }
.value-card h3 { margin-top: var(--space-sm); }
.value-card p { font-size: 14px; margin-bottom: 0; }

/* Spec / product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.spec-card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-lg); display: grid; grid-template-columns: 96px 1fr; gap: var(--space-lg);
}
.spec-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--steel-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.spec-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.spec-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.spec-card .compat { font-size: 13px; color: var(--muted); margin-bottom: var(--space-sm); }
.spec-table { width: 100%; border-collapse: collapse; font-family: var(--font-data); font-size: 12px; }
.spec-table td { padding: 3px 0; color: var(--muted); }
.spec-table td:last-child { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.spec-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-sm); }
.price { font-family: var(--font-data); font-weight: 700; font-size: 16px; }
.badge {
  font-family: var(--font-data); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--steel-soft); color: var(--steel); padding: 3px 8px; border-radius: 999px;
  display: inline-block;
}

/* Product gallery */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; }
.gallery-main { aspect-ratio: 3/4; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface-raised); display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.gallery-thumbs button { padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-raised); cursor: pointer; width: 64px; height: 64px; overflow: hidden; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.gallery-thumbs button.active { border-color: var(--amber); border-width: 2px; }
.product-info .price-row { display: flex; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-lg); }
.product-info .price-row .price { font-size: 28px; }

/* Testimonial */
.testimonial { background: var(--ink); color: var(--surface); border-radius: var(--radius-lg); padding: var(--space-2xl); }
.testimonial blockquote { font-family: var(--font-display); font-size: 24px; font-style: italic; line-height: 1.4; margin: 0 0 var(--space-lg); color: var(--surface); font-weight: 500; }
.testimonial cite { font-family: var(--font-data); font-style: normal; font-size: 13px; color: rgba(247,248,250,0.65); }

/* Brand strip */
.brand-strip { display: flex; align-items: center; gap: var(--space-2xl); flex-wrap: wrap; justify-content: center; }
.brand-strip img { height: 32px; width: auto; opacity: 0.75; filter: grayscale(100%); }
:root[data-theme="dark"] .brand-strip img { filter: grayscale(100%) invert(1); opacity: 0.6; }

/* Forms */
.ui-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }
label.field-label { display: block; font-family: var(--font-data); font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input.field, textarea.field, select.field {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 14px; margin-bottom: var(--space-md);
}
textarea.field { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-data); margin-bottom: 8px; }
.alert.success { background: rgba(46,125,91,0.12); color: var(--success); }
.alert.info { background: rgba(47,111,143,0.12); color: var(--steel); }

/* Contact info blocks */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.contact-method { display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-md) 0; border-bottom: 1px solid var(--border); }
.contact-method:last-child { border-bottom: none; }
.contact-method .icon { width: 36px; height: 36px; border-radius: 50%; background: var(--steel-soft); color: var(--steel); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-data); font-weight: 700; font-size: 13px; }
.contact-method h4 { margin-bottom: 2px; font-size: 15px; }
.contact-method p { margin-bottom: 0; font-size: 14px; }
.contact-method a { text-decoration: none; color: var(--steel); font-weight: 600; }

/* Footer */
footer.site-footer { padding: var(--space-2xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-grid h4 { font-family: var(--font-data); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: var(--space-md); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.footer-grid a:hover { color: var(--amber-deep); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-lg); border-top: 1px solid var(--border); flex-wrap: wrap; gap: var(--space-md); }
.footer-bottom p { margin: 0; font-family: var(--font-data); font-size: 12px; color: var(--muted); }
.social-row { display: flex; gap: var(--space-md); }
.social-row a { color: var(--muted); text-decoration: none; font-family: var(--font-data); font-size: 13px; font-weight: 600; }
.social-row a:hover { color: var(--amber-deep); }

/* Reveal-on-scroll (minimal-functional motion) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Page hero (non-home pages) */
.page-hero { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); }

@media (max-width: 860px) {
  nav.topnav { position: fixed; inset: 64px 0 0 0; background: var(--surface); flex-direction: column; padding: var(--space-lg); gap: var(--space-md); font-size: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  nav.topnav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .hero-grid, .value-grid, .product-grid, .footer-grid, .contact-grid, .field-row { grid-template-columns: 1fr; }
  .spec-card { grid-template-columns: 72px 1fr; }
}

/* ============================================================
   Shop hero — premium dark redesign (scoped to shop.html only,
   all rules nested under .shop-hero-dark)
   ============================================================ */
.shop-hero-dark {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(63,169,245,0.20), transparent 60%),
    radial-gradient(820px 480px at 88% 115%, rgba(216,168,74,0.14), transparent 60%),
    linear-gradient(180deg, #06152A 0%, #081B33 100%);
}
.shop-hero-dark .hero-dark-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.shop-hero-dark .hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.shop-hero-dark .wave {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 14 12;
  will-change: stroke-dashoffset;
  animation: shop-wave-flow linear infinite;
}
.shop-hero-dark .wave-1 { stroke: #3FA9F5; opacity: 0.5; filter: drop-shadow(0 0 5px #3FA9F5); animation-duration: 11s; }
.shop-hero-dark .wave-2 { stroke: #5DEBFF; opacity: 0.32; filter: drop-shadow(0 0 6px #5DEBFF); animation-duration: 15s; animation-direction: reverse; }
.shop-hero-dark .wave-3 { stroke: #D8A84A; opacity: 0.28; filter: drop-shadow(0 0 5px #D8A84A); animation-duration: 19s; }

@keyframes shop-wave-flow { to { stroke-dashoffset: -520; } }

.shop-hero-dark .hero-particles { position: absolute; inset: 0; }
.shop-hero-dark .hero-particles span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #5DEBFF;
  box-shadow: 0 0 8px 2px rgba(93,235,255,0.65);
  opacity: 0;
  will-change: transform, opacity;
  animation: shop-particle-float ease-in-out infinite;
}
.shop-hero-dark .hero-particles span:nth-child(3n+2) { background: #3FA9F5; box-shadow: 0 0 8px 2px rgba(63,169,245,0.6); }
.shop-hero-dark .hero-particles span:nth-child(3n) { background: #D8A84A; box-shadow: 0 0 7px 2px rgba(216,168,74,0.55); width: 4px; height: 4px; }
.shop-hero-dark .hero-particles span:nth-child(1) { left: 6%;  top: 78%; animation-duration: 13s; animation-delay: 0s; }
.shop-hero-dark .hero-particles span:nth-child(2) { left: 14%; top: 30%; animation-duration: 16s; animation-delay: 1.2s; }
.shop-hero-dark .hero-particles span:nth-child(3) { left: 22%; top: 62%; animation-duration: 12s; animation-delay: 2.4s; }
.shop-hero-dark .hero-particles span:nth-child(4) { left: 33%; top: 18%; animation-duration: 18s; animation-delay: 0.6s; }
.shop-hero-dark .hero-particles span:nth-child(5) { left: 44%; top: 84%; animation-duration: 14s; animation-delay: 3.1s; }
.shop-hero-dark .hero-particles span:nth-child(6) { left: 55%; top: 40%; animation-duration: 17s; animation-delay: 1.8s; }
.shop-hero-dark .hero-particles span:nth-child(7) { left: 63%; top: 70%; animation-duration: 13.5s; animation-delay: 2.9s; }
.shop-hero-dark .hero-particles span:nth-child(8) { left: 71%; top: 24%; animation-duration: 19s; animation-delay: 0.3s; }
.shop-hero-dark .hero-particles span:nth-child(9) { left: 80%; top: 58%; animation-duration: 15s; animation-delay: 4s; }
.shop-hero-dark .hero-particles span:nth-child(10) { left: 88%; top: 82%; animation-duration: 12.5s; animation-delay: 1.4s; }
.shop-hero-dark .hero-particles span:nth-child(11) { left: 92%; top: 20%; animation-duration: 20s; animation-delay: 2.1s; }
.shop-hero-dark .hero-particles span:nth-child(12) { left: 50%; top: 12%; animation-duration: 16.5s; animation-delay: 3.6s; }

@keyframes shop-particle-float {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate(12px, -46px); opacity: 0.45; }
  90%  { opacity: 0.7; }
  100% { transform: translate(-10px, -96px); opacity: 0; }
}

.shop-hero-dark .hero-pulse {
  position: absolute;
  left: 38%; top: 42%;
  width: 460px; height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(63,169,245,0.28) 0%, rgba(93,235,255,0.10) 42%, transparent 72%);
  border-radius: 50%;
  filter: blur(6px);
  will-change: transform, opacity;
  animation: shop-pulse-glow 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes shop-pulse-glow {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}

.shop-hero-dark .hero-dark-content {
  position: relative;
  z-index: 1;
  animation: shop-fade-in-up 0.9s var(--ease-out) both;
}
@keyframes shop-fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shop-hero-dark .eyebrow-gold { color: #D8A84A; }
.shop-hero-dark .eyebrow-gold::before { background: #D8A84A; box-shadow: 0 0 0 3px rgba(216,168,74,0.28); }

.shop-hero-dark .hero-dark-heading {
  color: #FFFFFF;
  font-size: clamp(40px, 6.2vw, 70px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-shadow: 0 0 34px rgba(63,169,245,0.28);
}
.shop-hero-dark .hero-dark-lede { color: #C7D0DC; }

.shop-hero-dark .btn-gold-link {
  display: inline-flex;
  align-items: center;
  color: #D8A84A;
  font-weight: 700;
  padding: 2px 14px;
  margin: 0 2px;
  border: 1.5px solid #D8A84A;
  border-radius: 999px;
  text-decoration: none;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), box-shadow .25s var(--ease-out), transform .15s var(--ease-out);
}
.shop-hero-dark .btn-gold-link:hover {
  background: #D8A84A;
  color: #06152A;
  box-shadow: 0 0 20px rgba(216,168,74,0.5);
  transform: translateY(-1px);
}

.shop-hero-dark .brand-strip-dark { margin-top: var(--space-2xl); }
.shop-hero-dark .brand-strip-dark img {
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity .25s var(--ease-out), filter .25s var(--ease-out);
}
.shop-hero-dark .brand-strip-dark img:hover {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(93,235,255,0.55));
}

@media (max-width: 860px) {
  .shop-hero-dark .hero-pulse { width: 300px; height: 300px; left: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero-dark .wave,
  .shop-hero-dark .hero-particles span,
  .shop-hero-dark .hero-pulse,
  .shop-hero-dark .hero-dark-content {
    animation: none !important;
  }
}
