/* Solar Eigenheim - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Urbanist:wght@600;700;800&display=swap');

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --orange-light: #fff7ed;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

a { color: var(--blue); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--orange); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER / NAV ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }

.nav-links a {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--gray-800); margin: 5px 0; border-radius: 3px; transition: 0.3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,0.85), rgba(29,78,216,0.75)), url('../images/hero-bg.jpg') center/cover no-repeat;
  padding: 100px 0 80px;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 32px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-sub { font-size: 1rem !important; opacity: 0.85 !important; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
}

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

.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}

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

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

.btn-white:hover {
  background: var(--gray-100);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-50); }
.section-blue {
  background: linear-gradient(135deg, rgba(37,99,235,0.9), rgba(29,78,216,0.85)), url('../images/section-bg.jpg') center/cover no-repeat;
  color: var(--white);
}
.section-blue h2,
.section-blue h3,
.section-blue p { color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,0.15); }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 { margin-bottom: 12px; }

.section-title p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
}

.section-blue .section-title p { color: rgba(255,255,255,0.9); }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== CARDS ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-dark {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
}

.card-dark h3, .card-dark h4, .card-dark p { color: var(--white); }

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.card-dark .card-icon { background: rgba(255,255,255,0.15); }

/* ===== BLOG CARDS ===== */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.blog-card-body {
  padding: 24px;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.blog-card-body h3 a { color: var(--gray-900); }
.blog-card-body h3 a:hover { color: var(--blue); }

.blog-card-body p {
  font-size: 0.92rem;
  color: var(--gray-600);
  margin-bottom: 14px;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: var(--gray-600);
}

/* ===== BENEFITS ===== */
.benefit-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-family: 'Urbanist', sans-serif;
  margin-bottom: 14px;
}

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.testimonial p { font-style: italic; margin-bottom: 12px; font-size: 1.05rem; }

.testimonial-author {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-family: 'Urbanist', sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover { background: var(--gray-50); }

.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--blue); transition: transform 0.3s; }

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ===== STEPS ===== */
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: 'Urbanist', sans-serif;
}

/* ===== FACTS ===== */
.fact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
}

.fact-card h4 { color: var(--blue); margin-bottom: 8px; }

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  padding: 64px 0;
}

.cta-section h2 { margin-bottom: 16px; }

.cta-section p { margin-bottom: 28px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 24px;
}

.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.1rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--orange); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== BLOG ARTICLE ===== */
.article-header {
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,0.85), rgba(29,78,216,0.75));
  padding: 80px 0 60px;
  color: var(--white);
  text-align: center;
}

.article-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 12px;
}

.article-meta { opacity: 0.85; font-size: 0.95rem; }

.article-content {
  max-width: 800px;
  margin: -40px auto 60px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.article-content h2 { font-size: 1.6rem; margin: 36px 0 16px; color: var(--blue); }
.article-content h3 { font-size: 1.3rem; margin: 28px 0 12px; }

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li { margin-bottom: 6px; }

.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
  width: 100%;
}

.article-cta {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin: 36px 0;
}

.article-cta h3 { color: var(--blue); margin-bottom: 12px; }

/* ===== LEGAL ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.legal-content h1 { margin-bottom: 32px; color: var(--blue); }
.legal-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--gray-900); }
.legal-content h3 { font-size: 1.1rem; margin: 20px 0 8px; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-inner p { margin: 0; font-size: 0.9rem; flex: 1; }
.cookie-inner a { color: var(--orange); }

.cookie-buttons { display: flex; gap: 12px; }

.cookie-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Nunito', sans-serif;
}

.cookie-accept { background: var(--orange); color: var(--white); }
.cookie-accept:hover { background: var(--orange-dark); }
.cookie-decline { background: rgba(255,255,255,0.15); color: var(--white); }
.cookie-decline:hover { background: rgba(255,255,255,0.25); }

/* ===== PAGE HEADER (non-hero) ===== */
.page-header {
  background: linear-gradient(135deg, rgba(37,99,235,0.9), rgba(29,78,216,0.8)), url('../images/section-bg.jpg') center/cover no-repeat;
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .hero h1 { font-size: 2.4rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 50px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }

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

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

  .article-content { padding: 28px 20px; margin: -20px 12px 40px; }

  .cookie-inner { flex-direction: column; text-align: center; }
}
