/* Renewable Fitting Company - E.ON Next Inspired Design */

/* CSS Variables - E.ON Next Style */
:root {
  /* Primary Colors - E.ON Pink/Magenta */
  --primary-50: #fdf2f8;
  --primary-100: #fce7f3;
  --primary-200: #fbcfe8;
  --primary-300: #f9a8d4;
  --primary-400: #f472b6;
  --primary-500: #ec4899;
  --primary-600: #db2777;
  --primary-700: #be185d;
  --primary-800: #9d174d;
  
  /* Secondary Colors - Teal/Cyan */
  --secondary-50: #ecfeff;
  --secondary-100: #cffafe;
  --secondary-500: #06b6d4;
  --secondary-600: #0891b2;
  --secondary-700: #0e7490;
  
  /* Accent - Purple */
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;
  
  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: #ffffff;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation - E.ON Style */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-600);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width 0.3s;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white !important;
  padding: 0.65rem 1.5rem;
  border-radius: 2rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
}

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

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
}

/* Hero Section - E.ON Style */
.hero {
  background: linear-gradient(135deg, #fdf2f8 0%, #f0f9ff 100%);
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: 0 0 0 100%;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Trust Badges - Modern Style */
.trust-badges {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.trust-badge {
  background-color: white;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  text-align: center;
  min-width: 160px;
  transition: all 0.3s;
}

.trust-badge:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

.trust-badge .icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
}

.trust-badge h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.trust-badge p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin: 0;
}

/* Buttons - E.ON Style */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
}

.btn-outline {
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
  background-color: white;
  box-shadow: none;
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  border-color: transparent;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

/* Sections */
section {
  padding: 5rem 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.section-title .highlight {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.bg-white {
  background-color: white;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  color: white;
}

.bg-gradient {
  background: linear-gradient(135deg, #fdf2f8 0%, #f0f9ff 100%);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

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

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

/* Cards - Modern E.ON Style */
.card {
  background-color: white;
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}

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

.card .icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  display: block;
}

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.card p {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Feature Cards */
.feature-card {
  background: linear-gradient(135deg, #fdf2f8, #f0f9ff);
  padding: 2rem;
  border-radius: 1.25rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

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

/* Service Cards */
.service-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-card.solar {
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.service-card.battery {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.service-card.ev {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* Process Steps */
.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: start;
}

.step-number {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
  font-size: 1.2rem;
}

.step-content p {
  color: var(--gray-600);
  line-height: 1.7;
}

/* Forms - Modern Style */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.form-hint {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
}

.form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Quote Results - Enhanced */
.quote-results {
  background-color: white;
  border: 2px solid var(--primary-200);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.quote-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-600));
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.result-item {
  background: linear-gradient(135deg, #fdf2f8, #f0f9ff);
  padding: 2rem;
  border-radius: 1.25rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

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

.result-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.result-value {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.75rem;
  line-height: 1;
}

.result-unit {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Info Boxes */
.info-box {
  padding: 2rem;
  border-radius: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}

.info-box.success {
  background-color: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.info-box.info {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.info-box.warning {
  background-color: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.info-box h3 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
}

.info-box li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.6;
}

.info-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-600);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Footer - Modern Style */
footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: white;
  padding: 4rem 1.5rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-700);
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

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

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 1rem;
    border-top: 1px solid var(--gray-200);
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .card {
    padding: 1.75rem;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pulse Animation for CTAs */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
  }
}

.btn-primary:hover {
  animation: pulse 2s infinite;
}
