/* =========================================================================
   Dick's Lazers & Beacons — styles.css
   Dark theme, neon "lazer" accents. Plain CSS, no build step.
   Sections in order: tokens, base, layout, header, hero, owner, catalog,
   story, trust, footer, cart drawer, checkout modal, responsive.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0b0c0f;   /* page background */
  --bg-2:      #101218;   /* raised surfaces */
  --bg-3:      #161922;   /* cards */
  --line:      #232733;   /* hairline borders */
  --text:      #e9ecf2;   /* primary text */
  --muted:     #9aa3b2;   /* secondary text */
  --faint:     #6b7383;   /* tertiary text */

  --neon:      #39ff14;   /* electric green (primary accent) */
  --cyan:      #00f0ff;   /* cyan glow (secondary accent) */
  --neon-soft: rgba(57, 255, 20, 0.16);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --header-h:  68px;

  --shadow:    0 20px 50px rgba(0, 0, 0, 0.45);
  --glow:      0 0 18px rgba(57, 255, 20, 0.45);

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon);
  margin: 0 0 0.7em;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease),
              background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--neon), #6dff5a);
  color: #06210a;
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(57, 255, 20, 0.65); transform: translateY(-2px); }
.btn-primary:disabled {
  background: #2a2f3a; color: var(--faint);
  box-shadow: none; cursor: not-allowed; transform: none;
}

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

.btn-block { width: 100%; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(11, 12, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 0 6px rgba(57,255,20,0.6)); }
.brand-dot  { fill: var(--neon); }
.brand-beam { fill: var(--neon); opacity: 0.85; }
.brand-text { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; color: var(--neon); }

.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  position: relative; transition: color 0.18s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--neon); transition: width 0.22s var(--ease); box-shadow: var(--glow);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cart-btn:hover { border-color: var(--neon); color: var(--neon); }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--neon); color: #06210a;
  font-size: 0.72rem; font-weight: 700; border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform 0.2s var(--ease);
}
.cart-count.bump { transform: scale(1.35); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 600px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(57,255,20,0.16), transparent 70%),
    radial-gradient(500px 260px at 20% 10%, rgba(0,240,255,0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 0.4em; }
.glow-text { color: var(--neon); text-shadow: 0 0 24px rgba(57,255,20,0.55); }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 38px; color: var(--faint); font-size: 0.86rem;
}

/* JULY4 promo callout in the hero */
.promo-banner {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 30px;
  padding: 11px 18px;
  background: rgba(57, 255, 20, 0.07);
  border: 1px solid rgba(57, 255, 20, 0.4);
  border-radius: 999px;
  font-size: 0.95rem; color: var(--text);
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.12);
}
.promo-banner strong { color: var(--neon); letter-spacing: 0.04em; }
.promo-tag {
  background: var(--neon); color: #06210a;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

/* =========================================================================
   OWNER
   ========================================================================= */
.owner { padding: 60px 0; }
.owner-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.owner-photo { position: relative; }
.owner-photo img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.owner-photo::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius);
  pointer-events: none; box-shadow: inset 0 0 60px rgba(57,255,20,0.08);
}
.owner-badge {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(11,12,15,0.85); backdrop-filter: blur(6px);
  border: 1px solid var(--neon); color: var(--neon);
  font-size: 0.78rem; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.owner-bio h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.owner-bio p { color: var(--muted); }
.owner-quote {
  margin: 24px 0 0; padding: 16px 20px;
  border-left: 3px solid var(--neon);
  background: var(--bg-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; color: var(--text);
}
.owner-quote span { display: block; font-size: 0.85rem; color: var(--faint); margin-top: 6px; font-family: "Inter", sans-serif; }

/* =========================================================================
   CATALOG / PRODUCT CARDS
   ========================================================================= */
.catalog { padding: 70px 0; }
.product-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(57,255,20,0.5);
  box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(57,255,20,0.15);
}
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #0c0d10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(11,12,15,0.8); border: 1px solid var(--line);
  color: var(--cyan); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.18rem; margin: 0 0 6px; }
.card-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-price { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.35rem; }
.card-price small { display: block; font-size: 0.68rem; color: var(--faint); font-weight: 500; letter-spacing: 0.04em; }

.add-btn {
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem;
  transition: all 0.18s var(--ease);
}
.add-btn:hover { background: var(--neon); color: #06210a; border-color: var(--neon); box-shadow: var(--glow); }
.add-btn.added { background: var(--neon); color: #06210a; border-color: var(--neon); }

/* =========================================================================
   STORY
   ========================================================================= */
.story { padding: 80px 0; background:
  radial-gradient(800px 400px at 80% 0%, rgba(0,240,255,0.07), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.story-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.story-inner p { color: var(--muted); font-size: 1.08rem; }

/* =========================================================================
   TRUST STRIP
   ========================================================================= */
.trust { padding: 56px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust-grid div { padding: 18px; }
.trust-grid strong {
  display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.7rem; color: var(--neon);
  text-shadow: 0 0 16px rgba(57,255,20,0.4);
}
.trust-grid span { color: var(--faint); font-size: 0.9rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand p { color: var(--faint); font-size: 0.9rem; margin-top: 10px; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); margin-bottom: 14px; }
.footer-cols a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color 0.15s var(--ease); }
.footer-cols a:hover { color: var(--neon); }

.footnotes { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.footnotes p { color: var(--faint); font-size: 0.8rem; margin: 4px 0; }
.footnotes .disclaimer { color: #525a6a; }

/* =========================================================================
   CART DRAWER + OVERLAY
   ========================================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.25s var(--ease);
}
.overlay.show { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 80;
  width: min(420px, 92vw); height: 100%;
  background: var(--bg-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.32s var(--ease);
  box-shadow: var(--shadow);
}
.drawer.open { transform: translateX(0); }

.drawer-head, .drawer-foot { padding: 20px 22px; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { border-top: 1px solid var(--line); }

.icon-close {
  background: transparent; border: none; color: var(--muted);
  font-size: 1.8rem; line-height: 1; width: 36px; height: 36px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.icon-close:hover { color: var(--text); background: var(--bg-3); }

.cart-empty { color: var(--faint); text-align: center; padding: 60px 10px; }
.cart-empty span { display: block; font-size: 2.4rem; margin-bottom: 10px; }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.cl-info { min-width: 0; }
.cl-name { font-weight: 600; font-size: 0.95rem; margin: 0 0 2px; }
.cl-price { color: var(--faint); font-size: 0.82rem; }
.cl-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--text);
  font-size: 1rem; line-height: 1; display: grid; place-items: center;
  transition: border-color 0.15s, color 0.15s;
}
.qty-btn:hover { border-color: var(--neon); color: var(--neon); }
.qty-val { min-width: 22px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cl-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cl-total { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.cl-remove { background: none; border: none; color: var(--faint); font-size: 0.78rem; text-decoration: underline; padding: 0; }
.cl-remove:hover { color: #ff6b6b; }

/* drawer totals breakdown */
.cart-summary { margin-bottom: 16px; }
.cart-summary .cs-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); font-size: 0.92rem; }
.cart-summary .cs-row.cs-discount { color: var(--neon); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-total-row span { color: var(--text); }
.cart-total-row strong { font-family: "Space Grotesk", sans-serif; font-size: 1.5rem; }
.drawer-note { color: var(--faint); font-size: 0.78rem; text-align: center; margin: 12px 0 0; }

/* =========================================================================
   CHECKOUT MODAL
   ========================================================================= */
.modal-wrap {
  position: fixed; inset: 0; z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.modal-wrap.open { display: flex; }

.modal {
  position: relative;
  width: min(480px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px;
  box-shadow: var(--shadow);
  animation: pop 0.28s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-close { position: absolute; top: 14px; right: 14px; }

/* Pay-with-Shopify express button + divider */
.shopify-btn {
  background: #5a31f4; color: #fff; gap: 10px;
  box-shadow: 0 0 18px rgba(90, 49, 244, 0.35);
}
.shopify-btn:hover { background: #4a27d4; transform: translateY(-2px); box-shadow: 0 0 26px rgba(90, 49, 244, 0.6); }
.shopify-btn svg { flex: none; }
.or-divider {
  display: flex; align-items: center; text-align: center;
  color: var(--faint); font-size: 0.78rem; margin: 18px 0 22px;
}
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or-divider span { padding: 0 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.modal-title { font-size: 1.5rem; margin: 0 0 6px; }
.modal-sub { color: var(--muted); margin: 0 0 22px; font-size: 0.95rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.95rem; transition: border-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder { color: #4d5564; }
.field input:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft); }
.field input.valid { border-color: var(--neon); }
.field input.invalid { border-color: #ff5b6b; }
.field-hint { display: block; margin-top: 6px; font-size: 0.78rem; color: var(--faint); }
.field-hint.ok { color: var(--neon); }
.field-hint.err { color: #ff6b6b; }

.checkout-summary {
  margin: 20px 0; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg);
  font-size: 0.88rem;
}
.checkout-summary .cs-row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.checkout-summary .cs-row.cs-discount { color: var(--neon); }
.checkout-summary .cs-row.cs-grand { color: var(--text); font-weight: 700; font-size: 1.05rem; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.checkout-summary .cs-grand strong { font-family: "Space Grotesk", sans-serif; }

/* promo code field */
.promo-row { display: flex; gap: 10px; }
.promo-row input { flex: 1; }
.promo-apply { padding: 12px 18px; white-space: nowrap; }
.promo-field .field-hint.ok { color: var(--neon); }
.promo-field .field-hint.err { color: #ff6b6b; }

.secure-note { text-align: center; font-size: 0.76rem; color: var(--faint); margin: 14px 0 0; }

/* confirmation */
.confirm-check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--neon-soft); border: 1px solid var(--neon); color: var(--neon);
  font-size: 1.8rem; border-radius: 50%; box-shadow: var(--glow);
}
#confirmView { text-align: center; }
#confirmView .modal-sub { margin-bottom: 20px; }
.confirm-meta { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.confirm-meta li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.confirm-meta span { color: var(--muted); }
.confirm-blurb { color: var(--muted); font-size: 0.9rem; margin: 0 0 22px; }
.confirm-blurb em { color: var(--neon); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 860px) {
  .site-nav { display: none; }            /* keep header clean on mobile; cart + brand remain */
  .owner-grid { grid-template-columns: 1fr; gap: 30px; }
  .owner-photo { max-width: 420px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero { padding: 64px 0 56px; }
  .hero-badges { gap: 12px; font-size: 0.78rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .modal { padding: 26px 20px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
