/* ===================================
   800 Battery Care — Custom Styles
   Palette:
     Background  #FFFFFF   Sections   #FAF9F6
     Btn         #046A38   Btn Hover  #014D2E
     Headings    #1E1E1E   Body       #4B5563
     Borders     #E5E7EB   Gold       #C5A572
=================================== */

:root {
  --bg:        #FFFFFF;
  --section:   #FAF9F6;
  --btn:       #046A38;
  --btn-hover: #014D2E;
  --heading:   #1E1E1E;
  --body:      #4B5563;
  --border:    #E5E7EB;
  --gold:      #C5A572;
  --dark:      #111111;
}

/* ── Reset & base ─────────────────────── */
html  { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
  animation: pageFade 0.45s ease both;
}
@keyframes pageFade {
  from {opacity: 0; }

  to {opacity: 1;}
}

/* ── Scroll progress bar ─────────────── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--btn), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Hero background ─────────────────── */
.hero-bg {
  background-color: #F8F5F0;
  background-image:
    radial-gradient(ellipse at 12% 55%, rgba(4,106,56,0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 18%, rgba(197,165,114,0.12) 0%, transparent 42%);
  will-change: background-position-y;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.028) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Particle canvas */
#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ── Gold decorators ─────────────────── */
.gold-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197,165,114,0.35), transparent);
  margin: 0;
}
.gold-badge {
  background: linear-gradient(135deg, #C5A572, #E8C97A, #C5A572);
  color: #1E1E1E;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ── Nav active ──────────────────────── */
.nav-active {
  color: var(--btn) !important;
  border-bottom: 2px solid var(--btn);
  padding-bottom: 2px;
}

/* ── Primary button ──────────────────── */
.btn-primary {
  background: var(--btn);
  color: #fff;
  transition: background 0.22s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4,106,56,0.28);
}

/* ── Offer box (batteries hero left) ─── */
.offer-box {
  background: linear-gradient(140deg, #046A38 0%, #013d27 100%);
  position: relative;
  overflow: hidden;
}
.offer-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(197,165,114,0.08);
  pointer-events: none;
}
.offer-box::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

/* ── REVEAL animations ───────────────── */
/* Default: visible. JS adds 'js-ready' to body, then hides & animates */
.reveal {
  transition: opacity 0.58s cubic-bezier(0.22,1,0.36,1),
              transform 0.58s cubic-bezier(0.22,1,0.36,1);
}
/* Only hide when JS is ready — prevents blank sections if JS is slow */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}
body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left — removed opacity-0 default to prevent blank sections */
.reveal-left {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

/* Slide from right — removed opacity-0 default to prevent blank sections */
.reveal-right {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Scale in — removed opacity-0 default */
.reveal-scale {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ── Service cards ───────────────────── */
.service-card {
  cursor: pointer;
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 44px rgba(4,106,56,0.13);
}

/* ── Battery cards ───────────────────── */
.battery-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.battery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 52px rgba(4,106,56,0.15);
}

/* Battery image wrapper */
.batt-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f0f4f1;
}
.batt-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.battery-card:hover .batt-img-wrap img {
  transform: scale(1.06);
}
.batt-img-wrap .batt-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Workshop / garage image cards ───── */
.workshop-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.workshop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.workshop-card img {
  transition: transform 0.5s ease;
}
.workshop-card:hover img {
  transform: scale(1.07);
}

/* ── Brand pill ──────────────────────── */
.brand-pill {
  transition: all 0.24s ease;
}

/* ── Area card ───────────────────────── */
.area-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.area-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold) !important;
  box-shadow: 0 8px 28px rgba(197,165,114,0.18);
}

/* ── Testimonial ─────────────────────── */
.testi-card {
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}
.testi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(4,106,56,0.10);
}

/* ── Floating WhatsApp ───────────────── */
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  60%     { box-shadow: 0 0 0 16px rgba(22,163,74,0);  }
}
.wa-float { animation: wa-pulse 2.6s infinite; }

/* ── Stats number ────────────────────── */
.stat-num { font-variant-numeric: tabular-nums; }

/* ── Typewriter cursor ───────────────── */
#typeAccent::after {
  content: '|';
  animation: blink 0.75s step-end infinite;
  color: var(--btn);
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

/* ── Image shimmer placeholder ───────── */
.img-placeholder {
  background: linear-gradient(110deg, #ede9e2 30%, #f7f3ec 50%, #ede9e2 70%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Floating number badge (hero) ─────── */
.float-badge {
  animation: floatY 3s ease-in-out infinite;
}
@keyframes floatY {
  0%,100% { transform: translateY(0);    }
  50%     { transform: translateY(-8px); }
}

/* ── Scrollbar hide (brand nav bar) ─── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Section spacing normalisation ───── */
/* Remove accidental margin/padding double-ups */
section + .gold-sep-wrap,
.gold-sep-wrap + section { margin-top: 0; }

/* ── Rotating icon animation ─────────── */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 12s linear infinite; }

/* ── Feature badge pulse ─────────────── */
@keyframes badge-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.badge-pulse { animation: badge-pop 2.2s ease-in-out infinite; }

/* ══════════════════════════════════════
   MOBILE STICKY CALL / WHATSAPP BAR
   Shows on all screens ≤1023px
══════════════════════════════════════ */
.mob-cta {
  display: none;
}

@media (max-width: 1023px) {
  /* Push footer/content up so bar doesn't overlap */
  body {
    padding-bottom: 72px !important;
  }

  .mob-cta {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 2px solid #E5E7EB;
    box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.13);
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    gap: 10px;
    align-items: center;
  }

  .mob-cta a {
    flex: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    border: none;
    cursor: pointer;
  }

  .mob-cta a:active {
    opacity: 0.82;
    transform: scale(0.97);
  }

  .mob-cta .mob-call {
    background: #1E1E1E;
    color: #ffffff;
  }

  .mob-cta .mob-call i {
    color: #C5A572;
    font-size: 16px;
  }

  .mob-cta .mob-wa {
    background: #16a34a;
    color: #ffffff;
  }

  .mob-cta .mob-wa i {
    color: #ffffff;
    font-size: 18px;
  }
}

/* Also hide floating WhatsApp on mobile since bar replaces it */
@media (max-width: 1023px) {
  .wa-float {
    display: none !important;
  }
}
