/* ============================================================
   New Life Laptops — Shared Site Stylesheet
   Technology + Faith + Restoration visual identity
   ============================================================ */

/* Google Fonts loaded in each page's <head><meta charset="utf-8"> */

/* === TOKENS === */
:root {
  --bg:          #040d1a;
  --bg2:         #06152a;
  --bg3:         #081d38;
  --blue:        #00b4ff;
  --blue-dk:     #007acc;
  --cyan:        #00d4ff;
  --glow:        rgba(0,180,255,.35);
  --glow-sm:     rgba(0,180,255,.18);
  --white:       #ffffff;
  --text:        #d0e8f8;
  --text-muted:  #7a9cbf;
  --text-dim:    #3a5a7a;
  --card-bg:     rgba(0,20,50,.65);
  --card-border: rgba(0,180,255,.18);
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  .22s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* === CIRCUIT CANVAS === */
#circuit-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: .7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(4,13,26,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  padding: .7rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

/* Logo block */
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img {
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  display: block;
}

/* Main nav links */
.main-nav {
  display: flex; align-items: center; gap: 2rem;
  flex: 1; justify-content: center;
}
.main-nav a {
  font-size: .82rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); transition: color var(--transition);
  padding: .3rem 0; position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--blue);
  transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.btn-shopnow {
  background: var(--blue); color: var(--bg);
  padding: .55rem 1.4rem; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  white-space: nowrap; cursor: pointer; border: none; display: inline-block;
}
.btn-shopnow:hover {
  background: var(--cyan);
  box-shadow: 0 0 20px var(--glow);
  transform: translateY(-1px);
}
.cart-icon-btn {
  background: transparent; border: 1.5px solid var(--card-border);
  color: var(--text); padding: .5rem .75rem;
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: .85rem; position: relative;
  transition: border-color var(--transition), color var(--transition);
}
.cart-icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.cart-count-badge {
  position: absolute; top: -6px; right: -6px;
  background: #ef4444; color: #fff;
  font-size: .65rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: 1.5px solid var(--card-border);
  color: var(--text); padding: .45rem .6rem;
  border-radius: 6px; cursor: pointer; font-size: 1.1rem;
  transition: border-color var(--transition);
}
.hamburger:hover { border-color: var(--blue); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 0; right: 0;
  width: 280px; height: 100vh;
  background: #061830;
  border-left: 1px solid var(--card-border);
  z-index: 300; padding: 2rem 1.5rem;
  flex-direction: column; gap: .25rem;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 40px rgba(0,0,0,.5);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; margin-bottom: 1.5rem;
  align-self: flex-end;
}
.mobile-menu a {
  display: block; padding: .9rem 0;
  border-bottom: 1px solid rgba(0,180,255,.07);
  font-size: .95rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text); transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu .btn-shopnow { margin-top: 1.5rem; text-align: center; display: block; padding: .85rem; }
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 290;
}
.mobile-overlay.open { display: block; }

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--blue); color: var(--bg);
  padding: .9rem 2.2rem; border-radius: var(--radius-sm);
  font-weight: 800; font-size: .95rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  cursor: pointer; border: none;
}
.btn-primary:hover {
  background: var(--cyan);
  box-shadow: 0 0 28px var(--glow);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
  padding: .88rem 2.2rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  border-color: var(--blue); color: var(--blue);
  transform: translateY(-2px);
}
.btn-blue-outline {
  display: inline-block;
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
  padding: .7rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .88rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.btn-blue-outline:hover {
  background: var(--blue); color: var(--bg);
  box-shadow: 0 0 16px var(--glow);
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--blue);
  display: inline-block;
}
.section-title {
  font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: 1.5px; line-height: 1.05;
  color: var(--white);
}
.section-title span { color: var(--blue); }
.section-sub {
  color: var(--text-muted); font-size: .95rem; margin-top: .75rem; line-height: 1.7;
}
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent);
  margin: 1rem 0 2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative; z-index: 1;
  background: #020810;
  border-top: 1px solid var(--card-border);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 260px;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,180,255,.25));
}
.footer-brand .brand-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: .5rem;
}
.footer-brand .brand-headline span { color: var(--blue); }
.footer-brand p {
  font-size: .85rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 1rem;
}
.footer-brand .tagline-italic {
  font-style: italic; color: var(--blue);
  font-size: .9rem;
}
.footer-phone a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1.05rem; font-weight: 800;
  color: var(--blue); margin-top: .5rem;
  transition: color var(--transition);
}
.footer-phone a:hover { color: var(--cyan); }
.footer-col h4 {
  font-size: .75rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--card-border);
}
.footer-col a {
  display: block; font-size: .85rem;
  color: var(--text-muted); margin-bottom: .7rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,180,255,.07);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-muted); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--blue); }

/* ============================================================
   PRODUCT CARDS (shared)
   ============================================================ */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  border-color: var(--blue);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,180,255,.2);
}
.product-img-wrap {
  width: 100%; aspect-ratio: 4/3;
  background: var(--card-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: transparent;
}
.product-img-wrap .no-img { font-size: 3.5rem; }
.product-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.product-badge {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .5px; padding: .18rem .6rem;
  border-radius: 20px;
  background: rgba(0,180,255,.12);
  color: var(--blue); border: 1px solid rgba(0,180,255,.25);
}
.product-badge.featured { background: rgba(255,200,0,.12); color: #f0c040; border-color: rgba(255,200,0,.25); }
.product-title { font-size: .95rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.product-specs { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
.product-price { font-size: 1.15rem; font-weight: 900; color: var(--blue); margin-top: auto; }
.product-price .orig { font-size: .82rem; font-weight: 400; color: var(--text-dim); text-decoration: line-through; margin-right: .35rem; }
.product-price .sale { color: #ff4d6d; }
.product-card-footer {
  padding: .85rem 1.1rem;
  border-top: 1px solid rgba(0,180,255,.08);
  display: flex; justify-content: space-between; align-items: center;
}
.product-condition { font-size: .75rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .mobile-menu { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-header { padding: .7rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}