/* ============================================
   SOLAR POWER SOLUTIONS — Design System
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --forest: #1B4D3E;
  --forest-deep: #133629;
  --forest-soft: #2A6A55;
  --gold: #F4A923;
  --gold-soft: #FCD982;
  --coral: #E27D3F;
  --coral-deep: #C45D24;
  --cream: #FAFAF5;
  --cream-warm: #F4EFE2;
  --ink: #1A1F1B;
  --ink-soft: #4A524C;
  --ink-mute: #7A847D;
  --line: #E0DDD0;
  --line-soft: #ECEAE0;
  --white: #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--forest);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-variation-settings: "opsz" 48; }
h4 { font-size: 1.2rem; font-variation-settings: "opsz" 24; }
.h-italic { font-style: italic; font-weight: 400; }

p { color: var(--ink-soft); }
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Container ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }

/* ---------- Section spacing ---------- */
section { padding: var(--s-9) 0; }
@media (max-width: 768px) { section { padding: var(--s-8) 0; } }

.section-header { text-align: center; max-width: 720px; margin: 0 auto var(--s-8); }
.section-header .eyebrow { margin-bottom: var(--s-4); }
.section-header p { margin-top: var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(226, 125, 63, 0.5); }

.btn-dark {
  background: var(--forest);
  color: var(--white);
}
.btn-dark:hover { background: var(--forest-deep); transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(27, 77, 62, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover { background: var(--white); color: var(--forest); border-color: var(--white); }

.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-4) 0;
  background: rgba(250, 250, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); padding: var(--s-3) 0; }
.nav .container { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 36px; height: 36px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-mark .rays { animation: spin 24s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; align-items: center; gap: var(--s-6); list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-cta .btn { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
.nav-toggle span {
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: var(--s-6) var(--s-5);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
    align-items: flex-start;
    gap: var(--s-5);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-cta .btn:not(.btn-primary) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 var(--s-9);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.hero h1 { margin: var(--s-5) 0 var(--s-5); }
.hero h1 .accent { color: var(--forest); font-style: italic; font-weight: 400; }
.hero .lead { margin-bottom: var(--s-6); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero-trust {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.hero-trust small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.trust-badges { display: flex; gap: var(--s-5); flex-wrap: wrap; }
.trust-badges span { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 540px;
  margin-left: auto;
}
.hero-disc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-disc svg { width: 100%; height: 100%; }
.hero-orbit {
  position: absolute;
  border: 1px dashed rgba(27, 77, 62, 0.2);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}
.hero-orbit.o1 { inset: 8%; }
.hero-orbit.o2 { inset: 18%; animation-direction: reverse; animation-duration: 90s; }

/* ---------- Stats Strip ---------- */
.stats {
  background: var(--forest);
  color: var(--white);
  padding: var(--s-8) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gold);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .unit { font-size: 0.6em; color: var(--white); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: var(--s-3);
}

/* ---------- Services Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(244, 169, 35, 0.06));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.service-card:hover { border-color: var(--forest); transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(27, 77, 62, 0.2); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  background: var(--cream-warm);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  color: var(--forest);
}
.service-card h3 { margin-bottom: var(--s-3); font-size: 1.35rem; }
.service-card p { font-size: 0.95rem; }
.service-link {
  margin-top: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.01em;
}
.service-link .arrow { transition: transform 0.3s var(--ease); }
.service-card:hover .service-link .arrow { transform: translateX(4px); }

/* ---------- Why Choose Us ---------- */
.why-section { background: var(--cream-warm); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: start;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: var(--s-7); } }

.why-list { display: grid; gap: var(--s-2); }
.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.why-item:last-child { border-bottom: none; }
.why-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--coral);
  padding-top: 4px;
}
.why-item h4 { margin-bottom: var(--s-2); }
.why-item p { font-size: 0.93rem; }

/* ---------- Process Timeline ---------- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  position: relative;
}
.process-timeline::before {
  content: "";
  position: absolute;
  top: 28px; left: 5%; right: 5%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
@media (max-width: 768px) {
  .process-timeline { grid-template-columns: 1fr; gap: var(--s-5); }
  .process-timeline::before { display: none; }
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-dot {
  width: 56px; height: 56px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--forest);
  margin: 0 auto var(--s-4);
  position: relative;
}
.process-step:hover .process-dot { background: var(--forest); color: var(--gold); border-color: var(--forest); }
.process-step h4 { font-size: 1.1rem; margin-bottom: var(--s-2); }
.process-step p { font-size: 0.88rem; }

/* ---------- Testimonials ---------- */
.testimonial-section { background: var(--forest); color: var(--white); }
.testimonial-section h2 { color: var(--white); }
.testimonial-section .eyebrow { color: var(--gold); }
.testimonial-section .eyebrow::before { background: var(--gold); }

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  backdrop-filter: blur(10px);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: var(--s-5);
  font-style: italic;
  font-weight: 400;
}
/* .testimonial-quote::before { content: "" "; color: var(--gold); margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: var(--s-3); } */
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--forest-deep);
  font-weight: 600;
}
.testimonial-name { font-weight: 500; color: var(--white); }
.testimonial-meta { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ---------- Forms ---------- */
.form-section {
  background: var(--cream-warm);
  position: relative;
  overflow: hidden;
}
.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line);
  position: relative;
}
.form-card h2 { margin-bottom: var(--s-3); }
.form-card .lead { margin-bottom: var(--s-6); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.form-field.full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-2);
  font-weight: 500;
}
.form-field label .req { color: var(--coral); }

.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-size: 0.95rem;
  transition: all 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field.error input,
.form-field.error select,
.form-field.error textarea { border-color: var(--coral); }
.form-error {
  font-size: 0.78rem;
  color: var(--coral);
  margin-top: 4px;
  display: none;
}
.form-field.error .form-error { display: block; }

.form-submit {
  margin-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.form-disclaimer {
  font-size: 0.78rem;
  color: var(--ink-mute);
  max-width: 360px;
}

.form-success {
  display: none;
  padding: var(--s-5);
  background: rgba(27, 77, 62, 0.08);
  border-radius: var(--radius);
  border-left: 3px solid var(--forest);
  margin-bottom: var(--s-5);
  color: var(--forest-deep);
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-9) 0 var(--s-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer .logo { color: var(--cream); }
.footer-about { font-size: 0.92rem; color: rgba(255,255,255,0.65); margin: var(--s-4) 0 var(--s-5); max-width: 320px; }
.footer-social { display: flex; gap: var(--s-2); }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-5);
  font-weight: 500;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-links a { font-size: 0.92rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- Floating actions ---------- */
.float-actions {
  position: fixed;
  bottom: var(--s-5);
  right: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  z-index: 90;
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 25px -5px rgba(0,0,0,0.2);
  transition: all 0.3s var(--ease);
  position: relative;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.whatsapp { background: #25D366; }
.float-btn.call { background: var(--forest); animation: pulseRing 2s infinite; }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 8px 25px -5px rgba(0,0,0,0.2), 0 0 0 0 rgba(27, 77, 62, 0.5); }
  50% { box-shadow: 0 8px 25px -5px rgba(0,0,0,0.2), 0 0 0 12px rgba(27, 77, 62, 0); }
}

/* ---------- Page Header ---------- */
.page-header {
  padding: 140px 0 var(--s-8);
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-header h1 { margin-top: var(--s-4); margin-bottom: var(--s-4); }
.page-header .lead { max-width: 640px; }
.page-header-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-7);
  align-items: end;
}
@media (max-width: 768px) { .page-header-grid { grid-template-columns: 1fr; } }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.breadcrumb a { color: var(--ink-mute); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb .sep { opacity: 0.4; }

/* ---------- About sections ---------- */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 900px) { .about-intro-grid { grid-template-columns: 1fr; } }
.about-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--forest), var(--forest-soft));
  position: relative;
  overflow: hidden;
}
.about-image-overlay {
  position: absolute;
  bottom: var(--s-5);
  left: var(--s-5);
  right: var(--s-5);
  padding: var(--s-4);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  color: var(--ink);
}
.about-image-overlay strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 700px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--white);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}
.value-card h3 { color: var(--forest); margin-bottom: var(--s-3); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
}
.team-card {
  text-align: center;
}
.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream-warm), var(--gold-soft));
  border-radius: var(--radius-lg);
  margin-bottom: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--forest);
}
.team-card h4 { margin-bottom: 4px; }
.team-role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }

.certifications-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
}
.cert-badge {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  text-align: center;
}
.cert-badge .cert-icon { color: var(--forest); margin-bottom: var(--s-3); }
.cert-badge h4 { font-size: 1rem; margin-bottom: 4px; }
.cert-badge p { font-size: 0.82rem; }

/* ---------- Services detailed ---------- */
.service-detailed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-detailed:last-child { border-bottom: none; }
.service-detailed.reverse { direction: rtl; }
.service-detailed.reverse > * { direction: ltr; }
@media (max-width: 900px) { .service-detailed, .service-detailed.reverse { grid-template-columns: 1fr; direction: ltr; } }

.service-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cream-warm), var(--gold-soft));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual svg { width: 60%; height: 60%; color: var(--forest); }
.service-visual.dark { background: linear-gradient(135deg, var(--forest), var(--forest-soft)); }
.service-visual.dark svg { color: var(--gold); }

.benefits-list { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.benefits-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-3);
  align-items: start;
  font-size: 0.95rem;
}
.benefits-list li::before {
  content: "→";
  color: var(--coral);
  font-weight: 600;
  margin-top: 1px;
}

/* ---------- Projects ---------- */
.filter-tabs {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.filter-tab {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all 0.2s;
}
.filter-tab:hover { color: var(--ink); border-color: var(--ink-soft); }
.filter-tab.active { background: var(--forest); color: var(--white); border-color: var(--forest); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-5);
}
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 25px 40px -25px rgba(27,77,62,0.25); }
.project-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--forest), var(--forest-soft));
  position: relative;
  overflow: hidden;
}
.project-tag {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  padding: 4px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.project-body { padding: var(--s-5); }
.project-body h3 { font-size: 1.2rem; margin-bottom: var(--s-2); }
.project-meta {
  display: flex;
  gap: var(--s-5);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
}
.project-meta-item .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: block;
}
.project-meta-item .val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  font-weight: 500;
}

/* ---------- Subsidy / Info blocks ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}
.info-block {
  background: var(--white);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.info-block .info-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: var(--s-3);
}
.info-block h4 { margin-bottom: var(--s-2); }
.info-block p { font-size: 0.93rem; }

.subsidy-callout {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 768px) { .subsidy-callout { grid-template-columns: 1fr; } }
.subsidy-callout h2 { color: var(--white); }
.subsidy-callout p { color: rgba(255,255,255,0.8); }
.subsidy-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.subsidy-amount small { font-size: 0.3em; color: var(--white); display: block; font-family: var(--font-mono); letter-spacing: 0.15em; text-transform: uppercase; margin-top: var(--s-3); }

/* ---------- Calculator ---------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-inputs {
  background: var(--white);
  padding: var(--s-7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.calc-inputs h3 { margin-bottom: var(--s-5); }
.calc-field { margin-bottom: var(--s-5); }
.calc-field label { display: flex; justify-content: space-between; margin-bottom: var(--s-2); font-size: 0.9rem; font-weight: 500; }
.calc-field label .value { color: var(--forest); font-family: var(--font-mono); }
.calc-field input[type="range"] {
  width: 100%;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--coral);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(226, 125, 63, 0.4);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--coral);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--white);
}
.calc-field select { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }

.calc-results {
  background: var(--forest);
  color: var(--white);
  padding: var(--s-7);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.calc-results h3 { color: var(--white); margin-bottom: var(--s-5); }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-4) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.result-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.result-value.big { font-size: 2.4rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  gap: var(--s-4);
}
.faq-icon {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  color: var(--forest);
}
.faq-item.open .faq-icon { background: var(--forest); color: var(--gold); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner { padding-top: var(--s-4); }
.faq-answer p { font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 500px; }

/* ---------- Blog ---------- */
.blog-search {
  max-width: 540px;
  margin: 0 auto var(--s-7);
  position: relative;
}
.blog-search input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  font-size: 0.95rem;
}
.blog-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: var(--forest);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-categories {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.blog-cat {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.2s;
}
.blog-cat:hover, .blog-cat.active { background: var(--forest); color: var(--white); border-color: var(--forest); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-5);
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 25px 40px -25px rgba(27,77,62,0.25); }
.blog-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gold-soft), var(--cream-warm));
  position: relative;
}
.blog-image .blog-tag {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  padding: 4px 12px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
}
.blog-body { padding: var(--s-5); }
.blog-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}
.blog-body h3 { font-size: 1.2rem; margin-bottom: var(--s-3); }
.blog-body p { font-size: 0.92rem; }
.blog-read {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--forest);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-7);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white);
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  gap: var(--s-4);
  align-items: start;
  margin-bottom: var(--s-3);
}
.contact-card .ci {
  width: 44px; height: 44px;
  background: var(--cream-warm);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}
.contact-card .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.contact-card .val { font-size: 1rem; color: var(--ink); font-weight: 500; }

.map-embed {
  margin-top: var(--s-7);
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--cream-warm), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  position: relative;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Solar grid texture (signature divider) ---------- */
.solar-grid-divider {
  height: 80px;
  background-image:
    linear-gradient(rgba(27, 77, 62, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 77, 62, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  position: relative;
}
.solar-grid-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cream) 0%, transparent 30%, transparent 70%, var(--cream) 100%);
}
