/* ============================================================
   TARSO ENERGY — Premium Production Stylesheet
   Solar Energy Solutions — Chad & Central Africa
   Design: Editorial minimalism meets energy branding
   ============================================================ */

/* ---------- 1. Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ---------- 2. CSS Custom Properties ---------- */
:root {
  /* Brand Palette */
  --color-primary: #1B2A4A;
  --color-secondary: #2B6CB0;
  --color-accent: #E8751A;
  --color-accent-light: #F5A623;
  --color-accent-dark: #C9620F;
  --color-green: #5BA532;
  --color-green-dark: #4A8C28;
  --color-dark: #0F1724;
  --color-bg: #F8F9FC;
  --color-white: #FFFFFF;
  --color-black: #111111;

  /* Grays */
  --color-gray-50: #F7F8FA;
  --color-gray-100: #F0F2F5;
  --color-gray-200: #E1E4E8;
  --color-gray-300: #CDD1D8;
  --color-gray-400: #9BA3AE;
  --color-gray-500: #6B7380;
  --color-gray-600: #4A5160;
  --color-gray-700: #374151;

  /* Functional */
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-danger: #DC2626;
  --color-danger-light: #FEF2F2;
  --color-success-light: #F0FFF4;
  --color-facebook: #1877F2;
  --color-instagram: #E4405F;
  --color-tiktok: #010101;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 72px;
  --space-section: 7rem;
  --space-section-mobile: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 36, 0.06), 0 1px 2px rgba(15, 23, 36, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 36, 0.08), 0 2px 4px rgba(15, 23, 36, 0.04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 36, 0.1), 0 4px 8px rgba(15, 23, 36, 0.04);
  --shadow-xl: 0 20px 48px rgba(15, 23, 36, 0.14), 0 8px 16px rgba(15, 23, 36, 0.06);
  --shadow-glow-accent: 0 4px 20px rgba(232, 117, 26, 0.35);
  --shadow-glow-whatsapp: 0 4px 16px rgba(37, 211, 102, 0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 3. CSS Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-700);
  background-color: var(--color-bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }
h4 { font-weight: 600; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- 4. Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- 5. Promo Banner ---------- */
.promo-banner {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: var(--color-white);
  text-align: center;
  padding: 10px 48px 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
  letter-spacing: 0.01em;
}

.promo-banner a {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 600;
}

.promo-banner a:hover {
  color: var(--color-white);
  opacity: 0.9;
}

.promo-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.promo-close:hover {
  opacity: 1;
}

body.has-promo .navbar {
  top: 0;
}

body.has-promo {
  padding-top: 0;
}

/* ---------- 6. Navbar — PREMIUM ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--color-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(27, 42, 74, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(15, 23, 36, 0.2);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-logo-text .logo-tarso {
  color: var(--color-white);
}

.nav-logo-text .logo-energy {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
  box-shadow: 0 2px 12px rgba(232, 117, 26, 0.25);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-1px);
  color: var(--color-white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  border-radius: 2px;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 42, 74, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    z-index: 1001;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
  }

  .nav-cta {
    font-size: 1rem;
    padding: 14px 32px;
  }
}

/* Body offset for fixed navbar */
body {
  padding-top: var(--navbar-height);
}

/* ---------- 7. Hero — FULL IMPACT ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: calc(var(--navbar-height) * -1);
  padding-top: var(--navbar-height);
}

/* Premium CSS gradient hero — no image needed */
.hero-gradient {
  background: linear-gradient(135deg, #0F1724 0%, #1B2A4A 35%, #2B6CB0 70%, #1B2A4A 100%);
  background-size: 200% 200%;
  animation: heroShift 12s ease infinite;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 40%, rgba(232, 117, 26, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(43, 108, 176, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(245, 166, 35, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-gradient .hero-content {
  position: relative;
  z-index: 2;
}

@keyframes heroShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 36, 0.88) 0%,
    rgba(27, 42, 74, 0.78) 50%,
    rgba(43, 108, 176, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.hero-tag {
  display: inline-block;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  position: relative;
  padding: 6px 16px;
  background: rgba(232, 117, 26, 0.12);
  border-radius: var(--radius-full);
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero h1 .text-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}

.hero-stat {
  flex: 1;
  min-width: 140px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

.hero-stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

@media (max-width: 576px) {
  .hero-content {
    padding: 60px 16px 40px;
  }

  .hero-stat {
    min-width: 120px;
    padding: 16px 12px;
  }

  .hero-stat-number {
    font-size: 1.35rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ---------- 8. Section Base ---------- */
.section {
  padding: var(--space-section) 0;
  overflow: hidden;
}

.section-alt {
  background: var(--color-gray-50);
}

.section-title {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-section-mobile) 0;
  }

  .section-subtitle {
    margin-bottom: 36px;
  }
}

/* ---------- 9. Category Cards — EDITORIAL ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  color: inherit;
}

.category-card-image {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.category-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.category-card-icon {
  position: absolute;
  bottom: -24px;
  left: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
  font-size: 1.25rem;
  color: var(--color-accent);
}

.category-card-body {
  padding: 40px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.category-card-desc {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.category-card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.1rem;
}

@media (max-width: 991px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-card-body {
    padding: 32px 24px 24px;
  }
}

/* ---------- 10. Trust Bar ---------- */
.trust-bar {
  background: var(--color-gray-100);
  padding: 48px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  text-align: center;
}

.trust-item:hover {
  opacity: 1;
}

.trust-item-icon {
  font-size: 1.5rem;
  color: var(--color-gray-600);
}

.trust-item-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-600);
  white-space: nowrap;
}

@media (max-width: 576px) {
  .trust-bar-inner {
    gap: 32px;
  }

  .trust-item-text {
    font-size: 0.78rem;
  }
}

/* ---------- 11. Advantages Grid ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.advantage-item {
  border-left: 3px solid var(--color-accent);
  padding-left: 24px;
}

.advantage-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.advantage-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.advantage-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.advantage-desc {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }
}

@media (max-width: 576px) {
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- 12. Product Cards — PREMIUM E-COMMERCE ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-gray-100);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.badge-stock {
  background: var(--color-green);
  color: var(--color-white);
}

.badge-order {
  background: var(--color-secondary);
  color: var(--color-white);
}

.badge-promo {
  background: var(--color-accent);
  color: var(--color-white);
}

.badge-new {
  background: var(--color-accent-light);
  color: var(--color-primary);
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-name a {
  color: inherit;
  text-decoration: none;
}

.product-name a:hover {
  color: var(--color-accent);
}

.product-specs {
  margin-bottom: 16px;
  flex: 1;
}

.product-specs li {
  font-size: 0.82rem;
  color: var(--color-gray-500);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.product-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 4px;
  height: 4px;
  background: var(--color-gray-300);
  border-radius: 50%;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.price-tag .currency {
  font-size: 0.75em;
  font-weight: 500;
}

.product-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-fast);
  text-decoration: none;
}

.product-cta:hover {
  background: var(--color-whatsapp-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.product-cta:active {
  transform: scale(0.98);
}

.product-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 13. Product Filters ---------- */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1.5px solid var(--color-gray-300);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-gray-600);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

@media (max-width: 576px) {
  .product-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .product-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }
}

/* ---------- 14. Comparison Section ---------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-card {
  border-radius: var(--radius-xl);
  padding: 36px 32px;
}

.comparison-card--generator {
  background: var(--color-danger-light);
  border-left: 4px solid var(--color-danger);
}

.comparison-card--solar {
  background: var(--color-success-light);
  border-left: 4px solid var(--color-green);
}

.comparison-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-card--generator .comparison-card-title {
  color: var(--color-danger);
}

.comparison-card--solar .comparison-card-title {
  color: var(--color-green);
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--color-gray-700);
}

.comparison-item-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.comparison-card--generator .comparison-item-icon {
  color: var(--color-danger);
}

.comparison-card--solar .comparison-item-icon {
  color: var(--color-green);
}

.comparison-cta {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comparison-card {
    padding: 28px 24px;
  }
}

/* ---------- 15. FAQ Accordion ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-item details {
  padding: 0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-gray-400);
  transition: transform var(--transition-base), color var(--transition-base);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item details[open] summary::after {
  content: '\00D7';
  transform: rotate(0deg);
  color: var(--color-accent);
}

.faq-item summary:hover {
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--color-gray-600);
  font-size: 0.925rem;
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- 16. Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  color: var(--color-gray-700);
  background: var(--color-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
}

.form-textarea {
  height: 140px;
  padding: 14px 16px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239BA3AE' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-400);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.form-submit:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-glow-accent);
}

.form-submit:active {
  transform: scale(0.98);
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 24px;
  height: 24px;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
}

.contact-info-text {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  line-height: 1.6;
}

.contact-info-text strong {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
}

/* Social Links */
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.social-pill:hover {
  transform: translateY(-2px);
  color: var(--color-white);
}

.social-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-pill--facebook {
  background: var(--color-facebook);
}

.social-pill--facebook:hover {
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-pill--instagram {
  background: linear-gradient(135deg, #833AB4, #E4405F, #FCAF45);
}

.social-pill--instagram:hover {
  box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4);
}

.social-pill--tiktok {
  background: var(--color-tiktok);
}

.social-pill--tiktok:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-pill--whatsapp {
  background: var(--color-whatsapp);
}

.social-pill--whatsapp:hover {
  box-shadow: var(--shadow-glow-whatsapp);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 17. Footer — DARK PREMIUM ---------- */
.footer {
  background: var(--color-dark);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-logo-text .logo-tarso {
  color: var(--color-white);
}

.footer-logo-text .logo-energy {
  color: var(--color-accent);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.footer-social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-gray-400);
}

.footer-bottom a {
  color: var(--color-gray-400);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 56px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- 18. WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-direction: row-reverse;
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-glow-whatsapp);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  opacity: 0;
  animation: whatsappPulse 2s ease-in-out infinite;
  z-index: -1;
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: var(--color-white);
}

.whatsapp-tooltip {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: all var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-md);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-primary);
  border-right: 0;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.2;
  }
}

/* ---------- 19. Page Header (Subpages) ---------- */
.page-header {
  background: var(--color-primary);
  padding: 120px 0 48px;
  margin-top: calc(var(--navbar-height) * -1);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: var(--color-white);
  font-weight: 500;
}

.page-header h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-header-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ---------- 20. Spec Tables ---------- */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.9rem;
}

.spec-table thead {
  background: var(--color-primary);
}

.spec-table thead th {
  color: var(--color-white);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background var(--transition-fast);
}

.spec-table tbody tr:last-child {
  border-bottom: none;
}

.spec-table tbody tr:hover {
  background: var(--color-gray-50);
}

.spec-table td {
  padding: 12px 16px;
  color: var(--color-gray-700);
}

.spec-table td:first-child {
  font-weight: 500;
  color: var(--color-primary);
}

/* ---------- 21. Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.6;
}

.testimonial-text {
  color: var(--color-primary);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-gray-200);
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.testimonial-author-product {
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

/* ---------- 22. Gallery Grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 36, 0);
  transition: background var(--transition-base);
}

.gallery-item:hover::after {
  background: rgba(15, 23, 36, 0.15);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ---------- 23. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* Repeated badge-stock, badge-order, badge-promo, badge-new handled above in product section */

/* ---------- 24. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  line-height: 1.2;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-glow-accent);
  transform: translateY(-1px);
}

.btn-accent:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #253a5e;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-glow-whatsapp);
  transform: translateY(-1px);
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid var(--color-gray-300);
  color: var(--color-primary);
}

.btn-outline-dark:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* ---------- 25. Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--color-accent); }
.text-navy { color: var(--color-primary); }
.text-green { color: var(--color-green); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray-500); }
.text-danger { color: var(--color-danger); }

.bg-white { background-color: var(--color-white); }
.bg-gray { background-color: var(--color-gray-50); }
.bg-navy { background-color: var(--color-primary); }
.bg-dark { background-color: var(--color-dark); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.overflow-hidden { overflow: hidden; }

.w-100 { width: 100%; }

.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }

/* Responsive grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 26. Animations ---------- */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2).visible {
  transition-delay: 0.1s;
}

.fade-in:nth-child(3).visible {
  transition-delay: 0.2s;
}

.fade-in:nth-child(4).visible {
  transition-delay: 0.3s;
}

.fade-in:nth-child(5).visible {
  transition-delay: 0.4s;
}

.fade-in:nth-child(6).visible {
  transition-delay: 0.5s;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger support for grid children */
.stagger-children > .fade-in:nth-child(1).visible { transition-delay: 0s; }
.stagger-children > .fade-in:nth-child(2).visible { transition-delay: 0.1s; }
.stagger-children > .fade-in:nth-child(3).visible { transition-delay: 0.15s; }
.stagger-children > .fade-in:nth-child(4).visible { transition-delay: 0.2s; }
.stagger-children > .fade-in:nth-child(5).visible { transition-delay: 0.25s; }
.stagger-children > .fade-in:nth-child(6).visible { transition-delay: 0.3s; }
.stagger-children > .fade-in:nth-child(7).visible { transition-delay: 0.35s; }
.stagger-children > .fade-in:nth-child(8).visible { transition-delay: 0.4s; }
.stagger-children > .fade-in:nth-child(9).visible { transition-delay: 0.45s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ---------- 27. Responsive Breakpoints ---------- */

/* Small devices (576px) */
@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stat:not(:last-child)::after {
    right: 20%;
    top: auto;
    bottom: 0;
    height: 1px;
    width: 60%;
  }

  .section-title {
    font-size: 1.65rem;
  }
}

/* Tablet (768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .hero-stat {
    min-width: 140px;
  }
}

/* Desktop-start (992px) */
@media (min-width: 992px) {
  .hero-content {
    padding: 100px 20px 80px;
  }
}

/* Large desktop (1200px) */
@media (min-width: 1200px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Extra small adjustments */
@media (max-width: 360px) {
  :root {
    --navbar-height: 64px;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-logo-text {
    font-size: 1.05rem;
  }
}

/* ---------- 28. Print Styles ---------- */
@media print {
  .navbar,
  .footer,
  .whatsapp-float,
  .promo-banner,
  .nav-toggle {
    display: none !important;
  }

  body {
    padding-top: 0;
    background: white;
    color: black;
  }

  .hero {
    min-height: auto;
    margin-top: 0;
    padding: 40px 0;
  }

  .hero-bg::after {
    display: none;
  }

  .hero h1 {
    color: var(--color-primary);
  }

  .section {
    padding: 32px 0;
  }

  .btn {
    border: 1px solid currentColor;
  }

  a {
    text-decoration: underline;
  }

  .product-card,
  .category-card,
  .testimonial-card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ---------- 29. Dark Mode (Basic Support) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121826;
    --color-white: #1A2235;
    --color-gray-50: #151C2D;
    --color-gray-100: #1E2740;
    --color-gray-200: #2A3550;
    --color-gray-300: #3D4A63;
    --color-gray-400: #7A8499;
    --color-gray-500: #99A3B5;
    --color-gray-600: #B8BFC9;
    --color-gray-700: #D1D5DB;
    --color-black: #F5F5F5;
  }

  body {
    color: var(--color-gray-700);
  }

  h1, h2, h3, h4, h5, h6 {
    color: #E8ECF2;
  }

  .section-title {
    color: #E8ECF2;
  }

  .category-card,
  .product-card,
  .testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
  }

  .product-name,
  .category-card-title {
    color: #E8ECF2;
  }

  .form-input,
  .form-textarea,
  .form-select {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
    color: var(--color-gray-700);
  }

  .spec-table {
    background: var(--color-white);
  }

  .spec-table tbody tr {
    border-color: var(--color-gray-200);
  }

  .spec-table td {
    color: var(--color-gray-600);
  }

  .spec-table td:first-child {
    color: #E8ECF2;
  }

  .advantage-title {
    color: #E8ECF2;
  }

  .faq-item {
    border-color: var(--color-gray-200);
  }

  .faq-item summary {
    color: #E8ECF2;
  }

  .trust-bar {
    background: var(--color-gray-100);
  }

  .filter-btn {
    border-color: var(--color-gray-300);
    color: var(--color-gray-500);
  }

  .filter-btn:hover {
    border-color: #E8ECF2;
    color: #E8ECF2;
  }

  .filter-btn.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
  }

  .comparison-card--generator {
    background: rgba(220, 38, 38, 0.08);
    border-color: var(--color-danger);
  }

  .comparison-card--solar {
    background: rgba(91, 165, 50, 0.08);
    border-color: var(--color-green);
  }

  .page-header {
    background: var(--color-dark);
  }

  .navbar {
    background: var(--color-dark);
  }

  .navbar.scrolled {
    background: rgba(15, 23, 36, 0.92);
  }
}

/* ---------- 30. Smooth Scroll Offset ---------- */
html {
  scroll-padding-top: calc(var(--navbar-height) + 16px);
}

/* ---------- 31. Selection ---------- */
::selection {
  background: rgba(232, 117, 26, 0.2);
  color: var(--color-primary);
}

/* ---------- 32. Focus Visible (Accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 3px;
}

/* ---------- 33. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right,
  .scale-in {
    opacity: 1;
    transform: none;
  }

  .whatsapp-btn::before {
    animation: none;
  }
}

/* ---------- 34. Additional Component: Pricing Card ---------- */
.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
  border: 2px solid transparent;
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: var(--color-white);
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.pricing-amount .currency {
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  margin-bottom: 28px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--color-green);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- 35. Alert / Notification Bar ---------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.alert-success {
  background: var(--color-success-light);
  color: var(--color-green-dark);
  border: 1px solid rgba(91, 165, 50, 0.2);
}

.alert-error {
  background: var(--color-danger-light);
  color: var(--color-danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.alert-info {
  background: #EFF6FF;
  color: var(--color-secondary);
  border: 1px solid rgba(43, 108, 176, 0.2);
}

/* ---------- 36. Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-gray-400);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-gray-600);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ---------- 37. Separator ---------- */
.separator {
  height: 1px;
  background: var(--color-gray-200);
  border: none;
  margin: 48px 0;
}

.separator-short {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  border-radius: 2px;
  margin: 24px auto;
}

/* ---------- 38. Card Base (Generic) ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-body {
  padding: 24px;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-gray-200);
  font-weight: 600;
  color: var(--color-primary);
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
}

/* ---------- 39. Steps / Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step-counter;
}

.step {
  text-align: center;
  counter-increment: step-counter;
  position: relative;
}

.step::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin: 0 auto 20px;
}

.step-title {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ---------- 40. Tooltip (Generic) ---------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 100;
}

[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-primary);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 100;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

[data-tooltip]:hover::after {
  transform: translateX(-50%);
}

/* ---------- 41. Aspect Ratios ---------- */
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1; }
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-3-2 { aspect-ratio: 3/2; }

/* ---------- 42. Image placeholder gradients ---------- */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 2rem;
}

.img-placeholder-warm {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
}

.img-placeholder-green {
  background: linear-gradient(135deg, var(--color-green) 0%, #8BC34A 100%);
}

/* ---------- 43. Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- 44. Tag Cloud ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 4px 14px;
  background: var(--color-gray-100);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---------- 45. CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a6b 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(232, 117, 26, 0.08);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(43, 108, 176, 0.08);
  border-radius: 50%;
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 576px) {
  .cta-banner {
    padding: 40px 24px;
  }
}

/* ---------- 46. Map Container ---------- */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- 47. Counter / Stat Box ---------- */
.stat-box {
  text-align: center;
  padding: 32px 24px;
}

.stat-box-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-box-label {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ---------- 48. Partners / Logo Row ---------- */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
}

.partner-logo {
  height: 40px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity var(--transition-base), filter var(--transition-base);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ---------- 49. Mobile Specific Overrides ---------- */
@media (max-width: 576px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 577px) and (max-width: 991px) {
  .hide-tablet { display: none !important; }
}

@media (min-width: 992px) {
  .hide-desktop { display: none !important; }
}

@media (max-width: 991px) {
  .show-desktop-only { display: none !important; }
}

/* ---------- 50. Smooth image loading ---------- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Force loaded images to show */
img:not([loading="lazy"]) {
  opacity: 1;
}

/* ---------- 50. Contact Section (ap-* design from À Propos) ---------- */

.ap-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ap-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.ap-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 28px;
}

.ap-form-group {
  margin-bottom: 20px;
}

.ap-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.ap-form-group input,
.ap-form-group select,
.ap-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-primary);
  background: var(--color-gray-100);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.ap-form-group input:focus,
.ap-form-group select:focus,
.ap-form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 117, 26, 0.1);
  background: #fff;
}

.ap-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.ap-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-accent), #F5A623);
  color: #fff;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 117, 26, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  justify-content: center;
}

.ap-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 117, 26, 0.4);
}

.ap-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ap-info-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ap-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ap-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.08), rgba(27, 42, 74, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.ap-info-card h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ap-info-card p,
.ap-info-card a {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0;
}

.ap-info-card a {
  text-decoration: none;
  transition: color 0.2s;
}

.ap-info-card a:hover {
  color: var(--color-accent);
}

.ap-info-card .social-links {
  display: flex;
  gap: 12px;
}

.ap-info-card .social-links a {
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .ap-contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ap-form {
    padding: 28px 20px;
  }
}

/* ---------- End of Stylesheet ---------- */
