/*
Theme Name: NewLife Electrical
Theme URI: https://newlifeelectrical.com
Author: NewLife Electrical-Technology Limited
Description: Dark luxury gold-accented one-page theme for electrical, security & smart-home companies. Built from the NEWLIFE ELECTRICAL brand site. Pair with the "NewLife Shop" plugin for the product catalog and WhatsApp cart.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: newlife-electrical
*/

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97E;
  --gold-dark: #9A7A2E;
  --black: #0A0A0A;
  --deep: #111111;
  --charcoal: #1C1C1C;
  --white: #F9F6F0;
  --gray: #9A9A9A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  padding-bottom: 70px;
}

/* ── ANIMATED GOLD SHIMMER ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}
@keyframes floatWA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes rotateLine {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes particleDrift {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 1; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-120vh) scale(1.5); }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--gold); }
  50% { border-color: var(--gold-light); box-shadow: 0 0 20px var(--gold-light); }
}
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
}

.gold-text {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ── PARTICLES ── */
.particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  animation: particleDrift linear infinite;
}

/* ── HEADER ── */
header.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  backdrop-filter: blur(12px);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 40px; height: 40px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}
.logo-text { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.logo-sub { font-size: 9px; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }
.header-rc { font-size: 9px; color: var(--gray); letter-spacing: 1px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #0A0A0A 0%, #161610 40%, #0A0A0A 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 3px;
  padding: 6px 18px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  animation: fadeUp 0.9s 0.15s ease both;
}
.hero-tagline {
  color: var(--gray);
  font-size: clamp(11px, 2vw, 14px);
  letter-spacing: 2px;
  margin: 18px 0 36px;
  text-transform: uppercase;
  animation: fadeUp 1s 0.3s ease both;
}
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 1s 0.45s ease both;
}
.stat { text-align: center; }
.stat-n { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700; }
.stat-l { font-size: 9px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; }
.hero-divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 40px auto 0;
  animation: fadeUp 1s 0.6s ease both;
}
.circle-ring {
  position: absolute; width: 500px; height: 500px;
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: rotateLine 30s linear infinite;
}
.circle-ring-2 {
  position: absolute; width: 750px; height: 750px;
  border: 1px dashed rgba(201,168,76,0.05);
  border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: rotateLine 60s linear infinite reverse;
}

/* ── SECTIONS ── */
section { padding: 80px 20px; position: relative; z-index: 1; }
.section-eyebrow {
  text-align: center;
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.2;
}
.gold-rule {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 16px auto 48px;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.service-card {
  background: var(--charcoal);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 24px 16px;
  text-align: center;
  cursor: default;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.service-card:hover { background: #222; border-color: var(--gold); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.service-name { font-size: 11px; letter-spacing: 1px; color: var(--gold-light); font-weight: 600; text-transform: uppercase; line-height: 1.4; }

/* ── ABOUT STRIP ── */
.about-strip {
  background: linear-gradient(135deg, #111 0%, #1a1800 50%, #111 100%);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 60px 24px;
}
.about-inner {
  max-width: 700px; margin: 0 auto; text-align: center;
}
.about-inner p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px;
}
.cert-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--gold);
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── SHOP ── */
#shop { background: #0D0D0D; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.shop-card {
  background: var(--charcoal);
  border: 1px solid rgba(201,168,76,0.15);
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}
.shop-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.shop-img {
  height: 160px;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  position: relative; overflow: hidden;
}
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
}
.shop-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold);
  color: var(--black);
  font-size: 8px; font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 1;
}
.shop-body { padding: 18px; }
.shop-body h3 { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 6px; line-height: 1.4; }
.shop-body p { font-size: 11px; color: var(--gray); line-height: 1.6; margin-bottom: 14px; }
.shop-footer { display: flex; align-items: center; justify-content: space-between; }
.shop-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 700;
  color: var(--gold);
}
.shop-price span { font-size: 11px; color: var(--gray); font-family: 'Montserrat', sans-serif; font-weight: 400; }
.btn-cart {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 8px 14px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.25s;
  font-family: 'Montserrat', sans-serif;
}
.btn-cart:hover { background: var(--gold); color: var(--black); }
.btn-cart.added { background: var(--gold); color: var(--black); animation: cartBounce 0.4s ease; }

/* ── CART PANEL ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 70px; width: 320px;
  background: #111;
  border-left: 1px solid var(--gold);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex; flex-direction: column;
}
.cart-overlay.open .cart-panel { transform: translateX(0); }
.cart-header {
  padding: 20px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 22px; }
.cart-close {
  background: none; border: none; color: var(--gold);
  font-size: 22px; cursor: pointer;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 12px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
}
.cart-item-icon { font-size: 28px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.cart-item-info p { font-size: 11px; color: var(--gold); }
.cart-item-remove { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 16px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--gray); font-size: 13px; }
.cart-footer { padding: 16px; border-top: 1px solid rgba(201,168,76,0.2); }
.cart-total {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 14px;
}
.cart-total strong { color: var(--gold); font-size: 18px; font-family: 'Cormorant Garamond', serif; }
.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  border: none; color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-checkout:hover { opacity: 0.88; }

/* ── CONTACT ── */
#contact { background: var(--deep); text-align: center; }
.contact-box {
  max-width: 600px; margin: 0 auto;
  border: 1px solid rgba(201,168,76,0.25);
  padding: 40px 30px;
  background: rgba(201,168,76,0.03);
  animation: borderGlow 3s ease-in-out infinite;
}
.contact-box p { color: #bbb; font-size: 13px; line-height: 1.8; margin-bottom: 8px; }
.contact-box a { color: var(--gold); text-decoration: none; }
.contact-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
}
.contact-cta:hover { background: var(--gold); color: var(--black); }

/* ── FOOTER ── */
footer.site-footer {
  background: #050505;
  border-top: 1px solid rgba(201,168,76,0.15);
  text-align: center;
  padding: 30px 20px;
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 1px;
}
footer.site-footer .f-gold { color: var(--gold); }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid rgba(201,168,76,0.3);
  backdrop-filter: blur(16px);
  display: flex;
  height: 70px;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; cursor: pointer;
  text-decoration: none;
  color: var(--gray);
  font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.2s;
  border: none; background: none;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}
.nav-item:hover, .nav-item.active { color: var(--gold); }
.nav-icon { font-size: 22px; line-height: 1; }
.cart-badge {
  position: absolute; top: 8px; right: calc(50% - 20px);
  background: var(--gold);
  color: var(--black);
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.show { display: flex; }

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 86px; right: 20px; z-index: 99;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: floatWA 3s ease-in-out infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: 1fr; }
  .cart-panel { width: 100%; }
  .hero-stats { gap: 24px; }
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── WP DEFAULTS ── */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
