/* ================================================================
   MUTTI ELECTRONIC & MUSIC CENTER — Design System
   Mobile-first • Green/Grey Brand • Dark Mode Support
   ================================================================ */

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

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors */
  --primary: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --primary-glow: rgba(76, 175, 80, 0.25);

  --secondary: #616161;
  --secondary-light: #9E9E9E;
  --secondary-dark: #424242;

  --accent: #FFC107;
  --accent-dark: #FF8F00;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-grey: #e9ecef;
  --mid-grey: #dee2e6;
  --dark-grey: #343a40;
  --near-black: #212529;

  /* Semantic */
  --success: #2E7D32;
  --warning: #FFC107;
  --error: #d32f2f;
  --info: #1976D2;

  /* Surfaces */
  --bg-body: #f5f7f5;
  --bg-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.95);
  --bg-footer: #1a2e1a;
  --bg-hero: linear-gradient(135deg, #1B5E20 0%, #2E7D32 40%, #388E3C 70%, #4CAF50 100%);
  --bg-section-alt: #edf5ed;

  /* Text */
  --text-primary: #212529;
  --text-secondary: #616161;
  --text-muted: #9E9E9E;
  --text-on-primary: #ffffff;
  --text-on-dark: #e0e0e0;
  --text-heading: #1a2e1a;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 20px rgba(76, 175, 80, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

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

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 70px;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
  --bg-body: #0f1a0f;
  --bg-card: #1a2e1a;
  --bg-nav: rgba(15, 26, 15, 0.95);
  --bg-footer: #0a120a;
  --bg-section-alt: #142214;
  --bg-hero: linear-gradient(135deg, #0a120a 0%, #1a2e1a 40%, #1B5E20 70%, #2E7D32 100%);

  --text-primary: #e8f5e9;
  --text-secondary: #a5d6a7;
  --text-muted: #81c784;
  --text-heading: #c8e6c9;

  --white: #1a2e1a;
  --off-white: #142214;
  --light-grey: #1e331e;
  --mid-grey: #2a4a2a;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

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

a:hover {
  color: var(--primary-light);
}

ul, ol {
  list-style: none;
}

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

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

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ---- Section ---- */
.section {
  padding: var(--space-3xl) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .accent-line {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto 0;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: box-shadow var(--transition-base), background var(--transition-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--light-grey);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: var(--font-size-xl);
  color: var(--primary);
  z-index: 1001;
}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-hero);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--light-grey);
}

/* Language Toggle */
.lang-toggle {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--light-grey);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--font-size-xs);
  transition: all var(--transition-fast);
}

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

/* Quote Button in Nav */
.nav-cta {
  display: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  z-index: 1001;
  padding: 5px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

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

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

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-body);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: var(--font-size-xl);
  }

  .hamburger {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .lang-toggle {
    display: none;
  }

  .nav-links .mobile-only {
    display: flex;
    gap: var(--space-md);
    align-items: center;
  }
}

@media (min-width: 769px) {
  .nav-cta {
    display: inline-flex;
  }

  .mobile-only {
    display: none !important;
  }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all var(--transition-base);
  text-transform: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(46, 125, 50, 0.4);
}

.btn-accent {
  background: var(--accent);
  color: var(--near-black);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 193, 7, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: var(--off-white);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--font-size-xs);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  min-height: 100vh;
  background: var(--bg-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,193,7,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

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

.hero p {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat h3 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
}

.hero-stat p {
  font-size: var(--font-size-sm);
  opacity: 0.7;
  margin-bottom: 0;
}

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

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

@media (min-width: 769px) {
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .hero h1 {
    font-size: var(--font-size-5xl);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-2xl);
    min-height: auto;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .hero-stat h3 {
    font-size: var(--font-size-2xl);
  }

  .hero-image {
    display: none;
  }
}

/* ================================================================
   SERVICE CARDS
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--light-grey);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

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

.service-card .card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.service-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.service-card .price-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: #e8f5e9;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .service-card .price-tag {
  background: rgba(76, 175, 80, 0.15);
}

.service-card .monthly-payment {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ================================================================
   SOLAR CALCULATOR
   ================================================================ */
.calculator-section {
  background: var(--bg-hero);
  color: white;
  position: relative;
  overflow: hidden;
}

.calculator-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid rgba(255,255,255,0.15);
  max-width: 700px;
  margin: 0 auto;
}

.calculator-card h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.calc-input-group {
  margin-bottom: var(--space-lg);
}

.calc-input-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.calc-input-group input,
.calc-input-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast);
}

.calc-input-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

.calc-input-group input:focus,
.calc-input-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-input-group select option {
  background: var(--primary-dark);
  color: white;
}

.calc-result {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-top: var(--space-lg);
}

.calc-result .result-value {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--accent);
}

.calc-result .result-label {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin-top: var(--space-xs);
}

.calc-savings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.calc-savings-grid .saving-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
}

.calc-savings-grid .saving-item h4 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent);
}

.calc-savings-grid .saving-item p {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  margin-top: var(--space-xs);
}

@media (max-width: 480px) {
  .calc-savings-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   TRUST / STATS BAR
   ================================================================ */
.trust-bar {
  background: var(--bg-card);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--light-grey);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.trust-item .trust-number {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--primary);
}

.trust-item .trust-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-slider {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md) 0;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 320px;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  border: 1px solid var(--light-grey);
  flex-shrink: 0;
}

.testimonial-card .stars {
  color: var(--accent);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.testimonial-card .quote {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: var(--font-size-lg);
}

.testimonial-card .author-info h4 {
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-heading);
}

.testimonial-card .author-info p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ================================================================
   GALLERY / PROJECTS
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-base);
}

.gallery-item:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item .overlay h4 {
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

.gallery-item .overlay p {
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--font-size-sm);
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.form-group .required {
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control.error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.15);
}

.form-error {
  color: var(--error);
  font-size: var(--font-size-xs);
  margin-top: var(--space-xs);
  display: none;
}

.form-control.error + .form-error {
  display: block;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-grey);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   BLOG CARDS
   ================================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--light-grey);
}

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

.blog-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: var(--space-xl);
}

.blog-card .card-category {
  display: inline-block;
  background: #e8f5e9;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

[data-theme="dark"] .blog-card .card-category {
  background: rgba(76, 175, 80, 0.15);
}

.blog-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.blog-card .card-excerpt {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.blog-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-footer);
  color: var(--text-on-dark);
  padding: var(--space-3xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about .footer-logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-lg);
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: rgba(255,255,255,0.6);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--primary-light);
}

.footer-newsletter input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-sm);
}

.footer-newsletter input::placeholder {
  color: rgba(255,255,255,0.4);
}

.footer-newsletter input:focus {
  outline: none;
  border-color: var(--primary-light);
}

.footer-bottom {
  padding: var(--space-lg) 0;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: var(--font-size-xs);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition-base);
  text-decoration: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  color: white;
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: white;
  color: var(--near-black);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
  pointer-events: none;
}

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

/* ================================================================
   PAGE BANNERS (inner pages)
   ================================================================ */
.page-banner {
  background: var(--bg-hero);
  color: white;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  margin-bottom: var(--space-md);
}

.page-banner p {
  font-size: var(--font-size-lg);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

.breadcrumb a {
  color: white;
  opacity: 0.8;
}

.breadcrumb a:hover {
  opacity: 1;
  color: white;
}

@media (max-width: 768px) {
  .page-banner h1 {
    font-size: var(--font-size-3xl);
  }
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

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

.faq-question {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-heading);
  font-weight: 600;
  font-size: var(--font-size-base);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-icon {
  transition: transform var(--transition-base);
  font-size: var(--font-size-xl);
  color: var(--primary);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* ================================================================
   PRICING TABLE
   ================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--light-grey);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.popular .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.pricing-card .price {
  font-size: var(--font-size-4xl);
  font-weight: 900;
  color: var(--primary);
  margin: var(--space-lg) 0;
}

.pricing-card .price span {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card .paygo {
  background: #fff3e0;
  color: #e65100;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

[data-theme="dark"] .pricing-card .paygo {
  background: rgba(230, 81, 0, 0.15);
}

.pricing-features {
  text-align: left;
  margin: var(--space-lg) 0;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

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

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

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

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ================================================================
   PAYMENT MODAL
   ================================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.modal-header h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-heading);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--error);
  color: white;
}

/* ================================================================
   SUCCESS TOAST
   ================================================================ */
.toast {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-md));
  right: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  color: white;
  font-weight: 600;
  font-size: var(--font-size-sm);
  z-index: 3000;
  transform: translateX(120%);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--error);
}

.toast.info {
  background: var(--info);
}

/* ================================================================
   RESPONSIVE UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }

.desktop-only {
  display: block;
}

.mobile-only-block {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only-block {
    display: block;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header h2 {
    font-size: var(--font-size-2xl);
  }
}

/* ================================================================
   CONTACT INFO CARDS
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-grey);
  transition: all var(--transition-base);
}

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

.contact-info-card .contact-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-glow);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0 auto var(--space-md);
}

.contact-info-card h4 {
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ================================================================
   MAP
   ================================================================ */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-2xl);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ================================================================
   LOADING SKELETON
   ================================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--light-grey) 25%, var(--mid-grey) 50%, var(--light-grey) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

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

/* ================================================================
   RTL SUPPORT (Arabic)
   ================================================================ */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .faq-question .faq-icon {
  margin-left: 0;
  margin-right: var(--space-md);
}

[dir="rtl"] .pricing-features li::before {
  order: 1;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}

[dir="rtl"] .whatsapp-tooltip {
  right: auto;
  left: 70px;
}

[dir="rtl"] .toast {
  right: auto;
  left: var(--space-md);
  transform: translateX(-120%);
}

[dir="rtl"] .toast.show {
  transform: translateX(0);
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: white;
}

[dir="rtl"] .back-to-top {
  right: auto;
  left: 24px;
}
