/* ===========================
   City Power Solutions – style.css
   Premium Design System
   =========================== */

/* ---- Custom Properties ---- */
:root {
  --brand-dark:  #0a1628;
  --brand:       #1e3a6b;
  --brand-light: #2d5498;
  --accent:      #f59e0b;
  --accent-dark: #d97706;
  --white:       #ffffff;
  --text-main:   #1a202c;
  --text-muted:  #6b7280;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --shadow-card: 0 4px 24px rgba(10,22,40,0.09);
  --shadow-hover:0 12px 40px rgba(10,22,40,0.18);
  --transition:  all 0.25s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; color: var(--text-main); background: #fff; overflow-x: hidden; width: 100%; position: relative; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--brand-light); border-radius: 3px; }

/* ---- Selection ---- */
::selection { background: var(--accent); color: var(--brand-dark); }

/* ---- Utilities ---- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---- Form Fixes ---- */
select { color-scheme: dark; }
select option { background-color: var(--brand-dark) !important; color: #fff !important; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar { background: var(--brand-dark); }

#mainHeader { transition: box-shadow 0.3s ease, background 0.3s ease; }
#mainHeader.scrolled { box-shadow: 0 4px 30px rgba(10,22,40,0.15); }

/* ============================================================
   HERO SWIPER
   ============================================================ */
.hero-swiper { width: 100%; height: 100vh; min-height: 560px; max-height: 780px; }

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.55) 50%, rgba(10,22,40,0.25) 100%);
  z-index: 1;
}

.hero-slide .hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-title span { color: var(--accent); }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-swiper .swiper-pagination-bullet {
  background: rgba(255,255,255,0.4);
  width: 8px; height: 8px;
  opacity: 1;
  transition: var(--transition);
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after { font-size: 14px; font-weight: 700; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-label::before, .section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.2;
}

.section-title span { color: var(--brand-light); }
.section-sub { color: var(--text-muted); font-size: 1rem; line-height: 1.7; max-width: 580px; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
  background: #fff;
  border: 1.5px solid #e8edf5;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.category-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8edf5, #d4dff0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--brand);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  transform: scale(1.1);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: #fff;
  border: 1.5px solid #f0f4f9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: #c5d0e3;
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.product-card .product-image-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8faff, #edf2ff);
  aspect-ratio: 4/3;
}

.product-card .product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card .product-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card .product-title { font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 0.5rem; line-height: 1.3; }
.product-card .product-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.product-card .product-footer { padding: 0 1.25rem 1.25rem; }

.btn-inquiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 9999px;
  width: 100%;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-inquiry:hover {
  background: linear-gradient(135deg, var(--brand), var(--accent-dark));
  box-shadow: 0 6px 20px rgba(30,58,107,0.3);
  transform: translateY(-1px);
}

/* ============================================================
   STATS / TRUST BAR
   ============================================================ */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: #fff;
  border: 1.5px solid #f0f4f9;
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: #c5d0e3;
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8edf5, #d4dff0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--brand);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
}

/* ============================================================
   TESTIMONIALS SWIPER
   ============================================================ */
.testimonials-swiper .swiper-slide { height: auto; }

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1.5px solid #f0f4f9;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  font-family: Georgia, serif;
  color: var(--brand);
  opacity: 0.08;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.star-rating { color: var(--accent); font-size: 0.85rem; letter-spacing: 2px; }

/* ============================================================
   OFFER BANNER CARDS
   ============================================================ */
.offer-card {
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  color: #fff;
  transition: var(--transition);
}

.offer-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.25); }

/* ============================================================
   INDUSTRY CARDS
   ============================================================ */
.industry-card {
  text-align: center;
  padding: 1.75rem 1rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid #f0f4f9;
  background: #fff;
  transition: var(--transition);
  cursor: pointer;
}

.industry-card:hover {
  border-color: var(--brand-light);
  background: linear-gradient(135deg, #f0f4ff, #e8edf5);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.industry-card:hover .industry-icon { background: var(--brand); color: #fff; }

.industry-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8edf5, #d4dff0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
  color: var(--brand);
  transition: var(--transition);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
  background: #fff;
  border: 1.5px solid #f0f4f9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.blog-card:hover {
  border-color: #c5d0e3;
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover img { transform: scale(1.05); }

/* ============================================================
   BRAND LOGOS
   ============================================================ */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1.5px solid #f0f4f9;
  border-radius: var(--radius-lg);
  background: #fafbff;
  transition: var(--transition);
  filter: grayscale(1) opacity(0.6);
}

.brand-logo-wrap:hover {
  filter: none;
  border-color: var(--brand-light);
  background: #fff;
  box-shadow: var(--shadow-card);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 8px 24px rgba(30,58,107,0.3);
  transform: translateY(-2px);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 8px 24px rgba(245,158,11,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ============================================================
   SCROLL TOP BUTTON
   ============================================================ */
#scrollTop { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#scrollTop.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   WHATSAPP FLOAT PULSE
   ============================================================ */
#whatsappFloat::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(34,197,94,0.4);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

/* Staggered hero animations */
.hero-content .hero-badge  { animation: fadeInUp 0.5s 0.1s ease both; }
.hero-content .hero-title  { animation: fadeInUp 0.5s 0.25s ease both; }
.hero-content .hero-desc   { animation: fadeInUp 0.5s 0.4s ease both; }
.hero-content .hero-ctas   { animation: fadeInUp 0.5s 0.55s ease both; }
.hero-content .hero-trust  { animation: fadeInUp 0.5s 0.7s ease both; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.gradient-brand { background: linear-gradient(135deg, var(--brand-dark), var(--brand-light)); }
.gradient-accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.text-gradient { background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.section-bg-light { background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%); }
.section-bg-dark  { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); }

/* ============================================================
   PRODUCT PLACEHOLDER IMAGES (SVG gradients for demo)
   ============================================================ */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8edf5 0%, #c5d0e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--brand-light);
}

/* ============================================================
   FORM STYLES
   ============================================================ */
.form-input {
  width: 100%;
  border: 1.5px solid #e5e9f0;
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  color: var(--text-main);
}

.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(30,58,107,0.08);
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  margin-bottom: 0.4rem;
}

/* ============================================================
   RESPONSIVE TWEAKS & OVERFLOW FIXES
   ============================================================ */
section { overflow: hidden; } /* Prevent AOS animations from causing horizontal scroll */

@media (max-width: 768px) {
  .hero-swiper { max-height: 620px; }
  .hero-title  { font-size: clamp(1.75rem, 6vw, 2.5rem); margin-bottom: 0.5rem; }
  .hero-desc   { font-size: 0.85rem; margin-bottom: 1.25rem; }
  .section-title { font-size: 1.75rem; }
  .stat-number { font-size: 2rem; }
  
  /* Compact Footer for Mobile */
  footer { padding-bottom: 70px !important; }
  footer .max-w-7xl { padding-top: 2rem !important; padding-bottom: 1rem !important; }
  footer h4 { font-size: 0.75rem !important; margin-bottom: 0.75rem !important; padding-bottom: 0.5rem !important; }
  footer .grid { gap: 1.5rem !important; }
  footer p { font-size: 0.75rem !important; line-height: 1.4 !important; }
  footer .text-sm { font-size: 0.75rem !important; }
  footer .space-y-3 > a, footer .space-y-2.5 > li > a { padding: 0.25rem 0 !important; }
  
  /* Hero Form Mobile Tweak */
  .lg\:absolute { margin-top: -2rem; position: relative; z-index: 50; }
}
