/* ===========================================
   NERF COMPONENTS CSS
   Header, footer, hero, product page, cards.
   ALL selectors scoped under #nerf-root.
   =========================================== */

/* ===========================================
   HEADER
   =========================================== */
#nerf-root .nerf-header {
  background: var(--nerf-secondary);
  border-bottom: 2px solid var(--nerf-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--nerf-shadow);
}
#nerf-root .nerf-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
#nerf-root .nerf-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}
#nerf-root .nerf-logo img {
  height: 48px;
  width: auto;
  display: block;
}
#nerf-root .nerf-logo-text {
  font-family: var(--nerf-font-display) !important;
  font-size: 1.25rem;
  color: var(--nerf-text) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#nerf-root .nerf-logo-text .nerf-logo-accent { color: var(--nerf-primary) !important; }

#nerf-root .nerf-nav { flex: 1; }
#nerf-root .nerf-nav-list {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  justify-content: center;
}
#nerf-root .nerf-nav-link {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  font-family: var(--nerf-font-display) !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nerf-text) !important;
  border-radius: var(--nerf-radius);
  transition: all var(--nerf-transition);
}
#nerf-root .nerf-nav-link:hover {
  color: var(--nerf-accent) !important;
  background: rgba(200,240,0,0.06);
}
#nerf-root .nerf-nav-active {
  color: var(--nerf-primary) !important;
  border-bottom: 2px solid var(--nerf-primary);
  border-radius: 0;
}

#nerf-root .nerf-nav-dropdown { position: relative; }
#nerf-root .nerf-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nerf-surface);
  border: 1px solid var(--nerf-border);
  border-top: 2px solid var(--nerf-primary);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  min-width: 220px;
  box-shadow: var(--nerf-shadow-lg);
  z-index: 1001;
}
#nerf-root .nerf-nav-dropdown:hover .nerf-dropdown-menu { display: block; }
#nerf-root .nerf-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--nerf-font-body) !important;
  font-size: 0.875rem;
  color: var(--nerf-text) !important;
  text-transform: none;
  letter-spacing: 0;
}
#nerf-root .nerf-dropdown-menu li a:hover {
  background: var(--nerf-surface-alt);
  color: var(--nerf-accent) !important;
}

#nerf-root .nerf-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
#nerf-root .nerf-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--nerf-font-display) !important;
  font-size: 0.85rem;
  color: var(--nerf-accent) !important;
  border: 1px solid var(--nerf-border-strong);
  border-radius: var(--nerf-radius);
  transition: all var(--nerf-transition);
}
#nerf-root .nerf-phone-link:hover {
  border-color: var(--nerf-accent);
  background: rgba(200,240,0,0.06);
  color: var(--nerf-accent) !important;
}
#nerf-root .nerf-cart-btn {
  position: relative;
  background: var(--nerf-primary);
  color: #fff !important;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: var(--nerf-radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--nerf-transition);
}
#nerf-root .nerf-cart-btn:hover {
  background: var(--nerf-primary-hover);
  box-shadow: var(--nerf-glow-orange);
}
#nerf-root .nerf-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--nerf-accent);
  color: var(--nerf-secondary);
  font-family: var(--nerf-font-display) !important;
  font-size: 0.7rem;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#nerf-root .nerf-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--nerf-border-strong);
  color: var(--nerf-text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--nerf-radius);
  cursor: pointer;
}
#nerf-root .nerf-mobile-toggle:hover {
  border-color: var(--nerf-accent);
  color: var(--nerf-accent);
}

@media (max-width: 992px) {
  #nerf-root .nerf-nav { display: none; }
  #nerf-root .nerf-mobile-toggle { display: inline-flex; }
  #nerf-root .nerf-phone-link span { display: none; }
}

/* ===========================================
   PAGE HEADER / HERO BANNER
   Full-bleed background image with dark overlay
   =========================================== */
#nerf-root .nerf-page-header {
  background-color: #0D1B2A;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 2px solid var(--nerf-primary);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#nerf-root .nerf-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(13,27,42,0.65), rgba(13,27,42,0.75)),
    radial-gradient(circle at 80% 20%, rgba(255,85,0,0.25), transparent 60%);
  pointer-events: none;
}
#nerf-root .nerf-page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}
#nerf-root .nerf-page-header h1 {
  color: var(--nerf-text) !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}
#nerf-root .nerf-page-header-lead {
  color: #E8EEF4 !important;
  font-size: clamp(1rem, 1.6vw, 1.25rem) !important;
  font-weight: 500 !important;
  max-width: 760px;
  margin: 0 auto !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ===========================================
   PRODUCT / ACTIVITY PAGE (Template A)
   =========================================== */
#nerf-root .nerf-product-wrap {
  padding: var(--nerf-space-2xl) 0;
}
#nerf-root .nerf-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--nerf-space-2xl);
  align-items: start;
}
@media (max-width: 992px) {
  #nerf-root .nerf-product-grid { grid-template-columns: 1fr; gap: var(--nerf-space-lg); }
}

#nerf-root .nerf-gallery {
  position: relative;
}
#nerf-root .nerf-gallery-main {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--nerf-surface);
  border: 1px solid var(--nerf-border);
  aspect-ratio: 16/10;
  box-shadow: 0 8px 32px rgba(255, 85, 0, 0.2);
}
#nerf-root .nerf-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#nerf-root .nerf-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
#nerf-root .nerf-gallery-thumb {
  border: 2px solid var(--nerf-border);
  border-radius: var(--nerf-radius);
  overflow: hidden;
  background: var(--nerf-surface);
  cursor: pointer;
  aspect-ratio: 16/10;
  padding: 0;
  display: block;
  transition: border-color var(--nerf-transition);
}
#nerf-root .nerf-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#nerf-root .nerf-gallery-thumb.is-active,
#nerf-root .nerf-gallery-thumb:hover {
  border-color: var(--nerf-primary);
}

#nerf-root .nerf-product-info {
  padding: 0.5rem 0;
}
#nerf-root .nerf-product-info h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
  margin-bottom: 0.75rem !important;
  color: var(--nerf-text) !important;
}
#nerf-root .nerf-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--nerf-space-md);
}
#nerf-root .nerf-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--nerf-space-md) 0;
}
#nerf-root .nerf-bullet-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: #E8EEF4;
  font-size: 1rem;
  line-height: 1.55;
}
#nerf-root .nerf-bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--nerf-primary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

#nerf-root .nerf-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: var(--nerf-space-md) 0;
}

/* Activity / fine-print prose blocks */
#nerf-root .nerf-prose-block {
  background: var(--nerf-surface);
  border: 1px solid var(--nerf-border);
  border-left: 4px solid var(--nerf-primary);
  border-radius: var(--nerf-radius);
  padding: var(--nerf-space-lg);
  margin-bottom: var(--nerf-space-md);
}
#nerf-root .nerf-prose-block h2,
#nerf-root .nerf-prose-block h3 {
  color: var(--nerf-text) !important;
  margin-top: 0 !important;
  margin-bottom: var(--nerf-space-sm) !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}
#nerf-root .nerf-prose-block p {
  color: #E8EEF4 !important;
  font-size: 1rem;
  line-height: 1.75;
}

/* ===========================================
   CARD GRID (listing pages)
   =========================================== */
#nerf-root .nerf-card {
  background: var(--nerf-surface);
  border: 1px solid var(--nerf-border);
  border-radius: var(--nerf-radius-lg);
  overflow: hidden;
  transition: all var(--nerf-transition);
  display: flex;
  flex-direction: column;
}
#nerf-root .nerf-card:hover {
  border-color: var(--nerf-primary);
  transform: translateY(-4px);
  box-shadow: var(--nerf-shadow-lg);
}
#nerf-root .nerf-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--nerf-surface-alt);
}
#nerf-root .nerf-card-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
#nerf-root .nerf-card-body {
  padding: var(--nerf-space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
#nerf-root .nerf-card-title {
  font-family: var(--nerf-font-display) !important;
  font-size: 1.125rem !important;
  color: var(--nerf-text) !important;
  margin: 0 0 0.5rem !important;
  text-transform: uppercase;
}
#nerf-root .nerf-card-excerpt {
  color: var(--nerf-text-muted) !important;
  font-size: 0.9375rem;
  margin-bottom: var(--nerf-space-sm) !important;
  flex: 1;
}

/* ===========================================
   FOOTER
   =========================================== */
#nerf-root .nerf-footer {
  background: #07111c;
  border-top: 2px solid var(--nerf-primary);
  color: var(--nerf-text-muted);
  padding: var(--nerf-space-2xl) 0 var(--nerf-space-md);
  margin-top: var(--nerf-space-2xl);
}
#nerf-root .nerf-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
#nerf-root .nerf-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--nerf-space-lg);
  margin-bottom: var(--nerf-space-lg);
}
@media (max-width: 768px) {
  #nerf-root .nerf-footer-grid { grid-template-columns: 1fr; }
}
#nerf-root .nerf-footer h4 {
  font-family: var(--nerf-font-display) !important;
  font-size: 0.9375rem !important;
  color: var(--nerf-accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--nerf-space-sm) !important;
}
#nerf-root .nerf-footer p,
#nerf-root .nerf-footer li {
  color: var(--nerf-text-muted) !important;
  font-size: 0.875rem;
}
#nerf-root .nerf-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#nerf-root .nerf-footer ul li { padding: 0.25rem 0; }
#nerf-root .nerf-footer a {
  color: var(--nerf-text-muted) !important;
  transition: color var(--nerf-transition);
}
#nerf-root .nerf-footer a:hover {
  color: var(--nerf-accent) !important;
}
#nerf-root .nerf-footer-bottom {
  border-top: 1px solid var(--nerf-border);
  padding-top: var(--nerf-space-md);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--nerf-text-dim);
}
