/* ============================================
   KEROXEN - Solar Energy Provider
   Design System & Styles
   ============================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  /* Primary Palette - Solar Green/Yellow */
  --primary-green: #1B8C3A;
  --primary-green-dark: #146B2D;
  --primary-green-light: #2AAF4F;
  --primary-yellow: #F5B800;
  --primary-yellow-dark: #D9A300;
  --primary-yellow-light: #FFD54F;

  /* Accent & UI */
  --accent-orange: #FF8C42;
  --accent-teal: #00BFA6;

  /* Neutrals */
  --bg-primary: #FAFCFA;
  --bg-secondary: #F0F5F0;
  --bg-dark: #0D1F12;
  --bg-card: #FFFFFF;
  --text-primary: #1A2E1A;
  --text-secondary: #4A6A4A;
  --text-muted: #8BA68B;
  --text-on-dark: #F0F5F0;
  --text-on-primary: #FFFFFF;
  --border-light: #D4E5D4;
  --border-medium: #B0CDB0;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0D1F12 0%, #1B3A20 50%, #1B8C3A 100%);
  --gradient-primary: linear-gradient(135deg, #1B8C3A 0%, #2AAF4F 100%);
  --gradient-accent: linear-gradient(135deg, #F5B800 0%, #FF8C42 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-section: linear-gradient(180deg, #FAFCFA 0%, #F0F5F0 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(13, 31, 18, 0.06);
  --shadow-md: 0 4px 20px rgba(13, 31, 18, 0.08);
  --shadow-lg: 0 8px 40px rgba(13, 31, 18, 0.12);
  --shadow-xl: 0 16px 64px rgba(13, 31, 18, 0.16);
  --shadow-glow-green: 0 0 30px rgba(27, 140, 58, 0.3);
  --shadow-glow-yellow: 0 0 30px rgba(245, 184, 0, 0.3);

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

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ---------- Utility ---------- */
.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;
}

/* ---------- Language Switcher ---------- */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="en"] { display: initial; }
body.lang-en [data-lang="fr"] { display: none; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13, 31, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(1.1);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--primary-yellow);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.02em;
}

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

.nav-links a:hover {
  color: #fff;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}

.lang-toggle button {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle button.active {
  background: var(--primary-green);
  color: #fff;
}

.btn-contact-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-accent);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-contact-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(245, 184, 0, 0.5);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO / CAROUSEL SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--bg-dark);
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide .slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder styling for images before they're provided */
.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slide-placeholder:nth-child(1) { background: linear-gradient(135deg, #0D1F12, #1B3A20); }

.carousel-slide:nth-child(1) .slide-placeholder { background: linear-gradient(135deg, #0D1F12, #1B8C3A); }
.carousel-slide:nth-child(2) .slide-placeholder { background: linear-gradient(135deg, #1B3A20, #2AAF4F); }
.carousel-slide:nth-child(3) .slide-placeholder { background: linear-gradient(135deg, #146B2D, #F5B800); }
.carousel-slide:nth-child(4) .slide-placeholder { background: linear-gradient(135deg, #0D1F12, #FF8C42); }

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 31, 18, 0.3) 0%,
    rgba(13, 31, 18, 0.5) 50%,
    rgba(13, 31, 18, 0.85) 100%
  );
  z-index: 1;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 0 80px;
}

.carousel-content .container {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(245, 184, 0, 0.15);
  border: 1px solid rgba(245, 184, 0, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-yellow-light);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-yellow);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Carousel Controls */
.carousel-controls {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary-yellow);
  width: 28px;
  border-radius: 5px;
  box-shadow: var(--shadow-glow-yellow);
}

/* Progress bar */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 3;
}

.carousel-progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-green);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(27, 140, 58, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(245, 184, 0, 0.5);
}

.btn-icon {
  font-size: 1.1rem;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-alt {
  background: var(--gradient-section);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-green);
  margin-bottom: 16px;
}

.section-dark .section-label {
  color: var(--primary-yellow);
}

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

.section-dark .section-label::before,
.section-dark .section-label::after {
  background: var(--primary-yellow);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-dark .section-title {
  color: #fff;
}

.section-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.6);
}

/* ============================================
   ABOUT / STATS SECTION
   ============================================ */
.about {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content {
  position: relative;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

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

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-visual {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #1B8C3A 0%, #0D1F12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-light);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.floating-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.floating-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.floating-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 184, 0, 0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-icon.green {
  background: rgba(27, 140, 58, 0.15);
  color: var(--primary-green-light);
}

.service-icon.yellow {
  background: rgba(245, 184, 0, 0.15);
  color: var(--primary-yellow);
}

.service-icon.orange {
  background: rgba(255, 140, 66, 0.15);
  color: var(--accent-orange);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.service-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.product-card {
  position: relative;
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
}

.product-card.solar::after { background: var(--gradient-primary); }
.product-card.anti::after { background: var(--gradient-accent); }

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

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-features {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-feature .check {
  color: var(--primary-green);
  font-weight: 700;
}

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.partner-logo {
  width: 180px;
  height: 80px;
  background: linear-gradient(135deg, #e0f4ff 0%, #b3e5fc 100%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 8px; /* Added padding to control margins */
}

.partner-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.partner-logo:hover {
  border-color: rgba(245, 184, 0, 0.3);
  color: var(--primary-yellow);
  transform: scale(1.05);
}

.partner-logo:hover::before {
  opacity: 1;
}

.partner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform var(--transition-base);
}

/* Fallback for Jarrett if image is corrupted */
#partnerJarrett::after {
  content: 'JARRETT';
  position: absolute;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: #1B8C3A;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0f4ff 0%, #b3e5fc 100%);
  z-index: 0;
  opacity: 0;
}

#partnerJarrett.img-error::after {
  opacity: 1;
  z-index: 10;
}

/* ============================================
   MAP / LOCATION SECTION
   ============================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--border-light);
  height: 420px;
}

#map {
  width: 100%;
  height: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.contact-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-green-light);
}

.contact-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-icon.green { background: rgba(27, 140, 58, 0.1); color: var(--primary-green); }
.contact-icon.yellow { background: rgba(245, 184, 0, 0.1); color: var(--primary-yellow-dark); }
.contact-icon.orange { background: rgba(255, 140, 66, 0.1); color: var(--accent-orange); }

.contact-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--primary-green);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--primary-green-dark);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 184, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo-text span {
  color: var(--primary-yellow);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-glow-green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(27, 140, 58, 0.5);
}

/* ============================================
   BOT BLOCK OVERLAY
   ============================================ */
.bot-blocked-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 18, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.bot-blocked-overlay.active {
  display: flex;
}

.bot-blocked-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-yellow);
  margin-bottom: 16px;
}

.bot-blocked-content p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 400px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .map-wrapper {
    height: 350px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 72px 0;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 31, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right var(--transition-base);
    border-left: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-hamburger {
    display: flex;
  }

  .btn-contact-nav {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 500px;
    max-height: 700px;
  }

  .carousel-content {
    padding-bottom: 60px;
  }

  .carousel-controls {
    right: 20px;
    bottom: 16px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Products */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Partners */
  .partners-logos {
    gap: 20px;
  }

  .partner-logo {
    width: 140px;
    height: 64px;
    font-size: 0.75rem;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 28px;
  }

  /* Video */
  .video-container,
  .video-thumbnail {
    aspect-ratio: 16 / 9 !important;
  }

  .video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Carousel controls - better touch targets */
  .carousel-btn {
    width: 42px;
    height: 42px;
  }

  .carousel-dot {
    width: 12px;
    height: 12px;
  }

  .carousel-dot.active {
    width: 30px;
  }

  /* Scroll-top avoid overlap with floating btn */
  .scroll-top {
    bottom: 90px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 20px 24px;
  }

  .stat-number {
    font-size: 2rem;
    min-width: 70px;
  }

  .about-floating-card {
    right: 8px;
    bottom: -10px;
    padding: 16px;
  }

  .hero {
    min-height: 450px;
  }

  /* App download button and text */
  .app-grid {
    padding: 28px 20px;
  }

  .app-feature h4 {
    font-size: 0.95rem;
  }

  .app-feature p {
    font-size: 0.85rem;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.2rem;
  }

  /* Hero CTA buttons */
  .btn {
    padding: 12px 24px;
    font-size: 0.88rem;
  }

  /* Contact items */
  .contact-item {
    padding: 16px;
    gap: 14px;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
  }

  /* Section header spacing */
  .section-header {
    margin-bottom: 40px;
  }

  .carousel-controls {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ============================================
   LEAFLET OVERRIDES
   ============================================ */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-body) !important;
}

.leaflet-popup-content {
  margin: 16px !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
}

.leaflet-popup-content b {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--primary-green);
}

/* ============================================
   PRELOADER
   ============================================ */
body.loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(27, 140, 58, 0.3);
  border-left-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-green-light);
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--primary-green-light);
  opacity: 0.2;
  position: absolute;
  top: 10px;
  left: 20px;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   APP DOWNLOAD SECTION
   ============================================ */
.app-download {
  padding: var(--section-padding);
}

.app-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 60px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.app-visual {
  flex: 0 0 240px;
  text-align: center;
}

.qr-wrapper {
  position: relative;
  padding: 15px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  overflow: hidden;
}

.qr-code {
  width: 100%;
  height: auto;
  display: block;
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-green);
  box-shadow: 0 0 10px var(--primary-green-light);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0%, 100% { top: 0%; }
  50% { top: 100%; }
}

.qr-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-content {
  flex: 1;
}

.app-features {
  margin-bottom: 32px;
}

.app-feature {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-feature h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.app-feature p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-buttons {
  display: flex;
  gap: 16px;
}

.app-btn {
  padding: 14px 28px;
}

/* ============================================
   FLOATING APP BUTTON
   ============================================ */
.floating-app-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-btn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.app-btn-text {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.floating-app-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow-green);
  background: var(--gradient-accent);
  color: var(--bg-dark);
}

@media (max-width: 900px) {
  .app-grid {
    flex-direction: column;
    padding: 40px;
    gap: 40px;
  }
  .app-visual {
    flex: 0 0 auto;
    width: 200px;
  }
}

@media (max-width: 600px) {
  .floating-app-btn {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
  .app-btn-text {
    display: none;
  }
}

/* ============================================
   ABOUT SECTION YOUTUBE VIDEO
   ============================================ */
.youtube-wrapper {
  background: var(--bg-dark);
}

.video-thumbnail {
  cursor: pointer;
  overflow: hidden;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(27, 140, 58, 0.85);
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(27, 140, 58, 0.5);
  padding-left: 6px;
  z-index: 2;
}

.video-thumbnail:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary-green);
  box-shadow: 0 0 30px rgba(27, 140, 58, 0.8);
}
