/* ═══════════════════════════════════════════
   SolarDongle — Website Styles
   Colors: #1B5E20 (dark) #2E7D32 (primary) #66BB6A (accent) #E8F5E9 (light)
   ═══════════════════════════════════════════ */

:root {
  --primary: #2E7D32;
  --primary-dark: #1B5E20;
  --primary-light: #66BB6A;
  --accent: #FFA726;
  --bg: #FAFAFA;
  --bg-alt: #F1F8E9;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #666666;
  --text-light: #FFFFFF;
  --border: #E0E0E0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

/* ── Typography ── */

h1 { font-size: 3rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

/* ── Container ── */

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

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46,125,50,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #128C7E;
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.125rem; }

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.logo svg { width: 36px; height: 36px; }

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

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

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

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg { width: 28px; height: 28px; color: var(--text); }

/* Mobile nav */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.25rem; }
  .nav-actions { display: none; }
  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
  }
  .nav.open .nav-actions-mobile { display: flex; }
}

@media (min-width: 769px) {
  .nav-actions-mobile { display: none; }
}

/* ── Hero ── */

.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
  position: relative;
  overflow: hidden;
}

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

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(46,125,50,0.1);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; color: var(--primary-dark); }

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 500px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual .phone-mockup {
  width: 280px;
  height: 560px;
  background: var(--surface);
  border-radius: 36px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.phone-mockup .screen-top {
  width: 80px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

.phone-mockup .screen-content {
  flex: 1;
  width: 100%;
  background: linear-gradient(180deg, #E8F5E9, #fff);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
}

.phone-mockup .power-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.power-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.power-card .value { font-size: 1.25rem; font-weight: 700; }
.power-card .label { font-size: 0.7rem; color: var(--text-muted); }
.power-card.solar .value { color: #F57C00; }
.power-card.load .value { color: #1976D2; }
.power-card.grid .value { color: #7B1FA2; }
.power-card.battery .value { color: var(--primary); }

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .phone-mockup { width: 240px; height: 480px; }
}

/* ── Sections ── */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--primary-dark); color: var(--text-light); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.1rem;
}

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ── Features Grid ── */

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.feature-icon.green { background: #E8F5E9; color: var(--primary); }
.feature-icon.orange { background: #FFF3E0; color: #F57C00; }
.feature-icon.blue { background: #E3F2FD; color: #1976D2; }
.feature-icon.purple { background: #F3E5F5; color: #7B1FA2; }
.feature-icon.red { background: #FFEBEE; color: #D32F2F; }
.feature-icon.teal { background: #E0F2F1; color: #00796B; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

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

/* ── How It Works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

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

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

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

/* ── Stats ── */

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

.stat h2 { color: var(--primary-light); margin-bottom: 4px; }
.stat p { font-size: 0.95rem; opacity: 0.8; }

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

/* ── CTA ── */

.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--text-light);
  text-align: center;
}

.cta-section h2 { margin-bottom: 16px; }
.cta-section p { opacity: 0.85; margin-bottom: 32px; font-size: 1.1rem; }
.cta-section .btn-primary { background: #fff; color: var(--primary-dark); }
.cta-section .btn-primary:hover { background: #E8F5E9; }

/* ── Credibility ── */

.credibility-bar {
  padding: 32px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.credibility-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.credibility-bar p { color: var(--text-muted); font-size: 0.95rem; }
.credibility-bar a { font-weight: 600; }

/* ── Footer ── */

.footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}

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

.footer-brand p { margin-top: 12px; font-size: 0.9rem; opacity: 0.7; line-height: 1.7; }

.footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Page Header (inner pages) ── */

.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  text-align: center;
}

.page-header h1 { color: var(--primary-dark); margin-bottom: 12px; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ── Content Pages ── */

.content-section { padding: 60px 0; }

.content-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.content-card h2 { margin: 32px 0 12px; color: var(--primary-dark); }
.content-card h2:first-child { margin-top: 0; }
.content-card p { margin-bottom: 16px; color: var(--text-muted); }
.content-card ul { margin: 0 0 16px 24px; color: var(--text-muted); }
.content-card li { margin-bottom: 8px; }

@media (max-width: 768px) {
  .content-card { padding: 24px; }
}

/* ── Contact Page ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #E8F5E9;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-item h4 { margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: 0.9rem; }

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg);
}

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

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

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

/* ── About Page ── */

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

.about-grid.reverse { direction: rtl; }
.about-grid.reverse > * { direction: ltr; }

.about-visual {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 4rem;
}

.about-content h2 { margin-bottom: 16px; color: var(--primary-dark); }
.about-content p { color: var(--text-muted); margin-bottom: 12px; }

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

.team-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #66BB6A, #2E7D32);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
}

.team-card h4 { margin-bottom: 4px; }
.team-card p { color: var(--text-muted); font-size: 0.85rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid.reverse { direction: ltr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ── Map Embed ── */

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
}

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

/* ── WhatsApp Floating Button ── */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s;
  font-size: 1.75rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}
