/* =====================================================
   TECHNO SOLAR LIFE — DESIGN TOKENS
   ===================================================== */
:root{
  --navy:        #16304F;
  --navy-deep:   #0F2138;
  --blue:        #1E9FD6;
  --blue-deep:   #14789F;
  --green:       #2FAE6B;
  --green-deep:  #23935A;
  --bg:          #F6FAFC;
  --white:       #FFFFFF;
  --ink:         #16304F;
  --ink-soft:    #55697E;
  --border:      #E1E9EF;

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 14px rgba(22,48,79,0.07);
  --shadow-md: 0 14px 34px rgba(22,48,79,0.12);

  --container: 1180px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 16px;
}

p{ margin: 0 0 16px; color: var(--ink-soft); }

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

a{ color: inherit; text-decoration: none; }

ul{ list-style:none; margin:0; padding:0; }

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

.eyebrow{
  display:inline-block;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(47,174,107,0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight:600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(47,174,107,0.3);
}
.btn-primary:hover{ box-shadow: 0 14px 28px rgba(47,174,107,0.4); }
.btn-outline{
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover{ background: rgba(255,255,255,0.12); }
.btn-light{
  background: var(--white);
  color: var(--navy);
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.brand-logo{ width: 48px; height:48px; object-fit:contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 17px;
  letter-spacing: .01em;
}
.brand-text small{
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--green-deep);
  font-weight:600;
}

.main-nav{
  display:flex;
  align-items:center;
  gap: 30px;
  flex:1;
  justify-content:center;
}
.nav-link{
  font-family: var(--font-display);
  font-weight:500;
  font-size: 15px;
  color: var(--ink-soft);
  position:relative;
  padding: 6px 2px;
  transition: color .15s ease;
}
.nav-link::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width:0%; height:2px;
  background: var(--green);
  transition: width .2s ease;
}
.nav-link:hover, .nav-link.active{ color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:16px; flex-shrink:0; }
.header-cta{ padding: 11px 20px; font-size:14px; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 40px; height:40px;
  border:none;
  background:transparent;
  cursor:pointer;
}
.nav-toggle span{
  height:2px; width:100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* =====================================================
   HERO
   ===================================================== */
.hero{
  position: relative;
  overflow:hidden;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 76px 0 100px;
  color: var(--white);
}

/* decorative solar panel grid, echoing the logo's roof */
.hero-panels{
  position:absolute;
  top: -40px; right: -60px;
  width: 480px;
  transform: rotate(-18deg);
  opacity: 0.9;
  pointer-events:none;
}
.panel-row{ display:flex; gap:8px; margin-bottom:8px; }
.panel-row span{
  width: 90px; height:55px;
  background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius:4px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.hero-bolt{
  position:absolute;
  width: 46px;
  top: 190px;
  left: 60px;
  fill: var(--green);
  filter: drop-shadow(0 0 12px rgba(47,174,107,0.7));
  animation: bolt-pulse 2.2s ease-in-out infinite;
}
@keyframes bolt-pulse{
  0%,100%{ opacity: .55; transform: translateY(0) scale(1); }
  50%{ opacity: 1; transform: translateY(4px) scale(1.06); }
}

.hero-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items:center;
}

.hero-copy h1{
  color: var(--white);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight:700;
  margin-bottom: 20px;
}
.hero-copy h1 span{ color: var(--green); }
.hero-sub{
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  max-width: 480px;
}
.hero .eyebrow{
  background: rgba(47,174,107,0.16);
  color: var(--green);
}
.hero-btns{ display:flex; gap:16px; flex-wrap:wrap; margin: 28px 0 36px; }

.hero-trust{ display:flex; gap: 34px; flex-wrap:wrap; }
.trust-item{ display:flex; flex-direction:column; }
.trust-item strong{
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blue);
}
.trust-item span{ font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---- Savings calculator card (signature interactive element) ---- */
.hero-calc{
  position:relative;
  z-index:2;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.calc-label{
  font-family: var(--font-display);
  font-weight:600;
  font-size:14px;
  color: var(--ink-soft);
  margin-bottom:6px;
}
.calc-amount{
  font-family: var(--font-display);
  font-weight:700;
  font-size: 40px;
  color: var(--navy);
  margin-bottom: 18px;
}
.calc-amount span:first-child{ color: var(--green-deep); margin-right:2px; }

input[type="range"]{
  width:100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  margin-bottom: 26px;
  outline:none;
}
input[type="range"]::-webkit-slider-thumb{
  appearance:none;
  width:22px; height:22px;
  border-radius:50%;
  background: var(--green);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(47,174,107,0.5);
  cursor:pointer;
}
input[type="range"]::-moz-range-thumb{
  width:22px; height:22px;
  border-radius:50%;
  background: var(--green);
  border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(47,174,107,0.5);
  cursor:pointer;
  border-style: solid;
}

.calc-results{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.calc-result{
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align:center;
}
.result-label{
  display:block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.result-value{
  display:block;
  font-family: var(--font-display);
  font-weight:700;
  font-size: 16px;
  color: var(--navy);
}
.calc-cta{ width:100%; }

/* =====================================================
   STATS BAR
   ===================================================== */
.stats-bar{ background: var(--white); border-bottom: 1px solid var(--border); }
.stats-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  padding: 34px 24px;
}
.stat{
  text-align:center;
  border-right: 1px solid var(--border);
}
.stat:last-child{ border-right:none; }
.stat strong{
  display:block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--blue-deep);
}
.stat span{ font-size: 13px; color: var(--ink-soft); }

/* =====================================================
   SECTION GENERIC
   ===================================================== */
.section{ padding: 88px 0; }
.section h2{
  font-size: clamp(26px, 3.2vw, 36px);
  max-width: 640px;
  margin-bottom: 44px;
}

/* ---- Services cards ---- */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.card-icon{
  width: 52px; height:52px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  font-size: 22px;
  margin-bottom: 18px;
}
.icon-blue{ background: rgba(30,159,214,0.12); }
.icon-green{ background: rgba(47,174,107,0.12); }
.icon-navy{ background: rgba(22,48,79,0.08); }
.card h3{ font-size: 19px; margin-bottom:10px; }
.card p{ font-size: 14.5px; margin-bottom:0; }

/* ---- Process (numbered — real sequence) ---- */
.process{ background: var(--white); }
.process-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  counter-reset: step;
}
.process-step{ position:relative; padding-left: 6px; border-left: 3px solid var(--green); padding-left:20px; }
.step-num{
  display:block;
  font-family: var(--font-display);
  font-weight:700;
  font-size: 30px;
  color: var(--blue);
  opacity:.85;
  margin-bottom: 10px;
}
.process-step h3{ font-size:17px; margin-bottom:8px; }
.process-step p{ font-size:14px; margin-bottom:0; }

/* ---- Why us ---- */
.why-us{ background: var(--bg); }
.why-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:center;
}
.why-list{ display:flex; flex-direction:column; gap:16px; margin-top: 22px; }
.why-list li{ display:flex; align-items:center; gap:12px; font-family: var(--font-display); font-weight:500; font-size:15px; color: var(--navy); }
.dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.dot-green{ background: var(--green); }
.dot-blue{ background: var(--blue); }
.dot-navy{ background: var(--navy); }

.house-graphic{ position:relative; display:flex; justify-content:center; }
.house-graphic svg{ width: 100%; max-width: 320px; }
.roof-line{ fill:none; stroke: var(--blue); stroke-width:10; stroke-linejoin:round; stroke-linecap:round; }
.house-body{ fill: var(--white); stroke: var(--navy); stroke-width:8; }
.house-door{ fill: var(--navy); }
.pulse-bolt{
  position:absolute;
  top: 78px; left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: var(--green);
  animation: bolt-pulse 2.2s ease-in-out infinite;
}

/* ---- Testimonial ---- */
.testimonial{ background: var(--navy); }
.testimonial-inner{ max-width: 720px; margin:0 auto; text-align:center; }
.quote{
  font-family: var(--font-display);
  font-size: clamp(19px,2.4vw,25px);
  color: var(--white);
  font-weight:500;
  line-height:1.5;
}
.quote-author{ color: var(--green); font-size:14px; font-weight:600; }

/* ---- CTA banner ---- */
.cta-banner{
  background: linear-gradient(120deg, var(--green) 0%, var(--blue) 100%);
  padding: 56px 0;
}
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  flex-wrap:wrap;
}
.cta-inner h2{ color:var(--white); margin-bottom:6px; font-size: 26px; }
.cta-inner p{ color: rgba(255,255,255,0.85); margin-bottom:0; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.7); padding-top: 64px; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo{ width:52px; margin-bottom:14px; }
.footer-brand p{ color: rgba(255,255,255,0.55); font-size:14px; max-width:280px; }
.footer-links h4, .footer-contact h4{
  font-family: var(--font-display);
  color: var(--white);
  font-size:15px;
  margin-bottom:16px;
}
.footer-links a{ display:block; font-size:14px; margin-bottom:10px; color: rgba(255,255,255,0.6); transition: color .15s ease; }
.footer-links a:hover{ color: var(--green); }
.footer-contact p{ font-size:14px; color: rgba(255,255,255,0.6); margin-bottom:10px; }
.footer-bottom{
  text-align:center;
  font-size: 13px;
  padding: 22px 24px;
  color: rgba(255,255,255,0.45);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards-grid{ grid-template-columns: repeat(2,1fr); }
  .process-grid{ grid-template-columns: repeat(2,1fr); }
  .why-grid{ grid-template-columns: 1fr; }
  .why-visual{ order:-1; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px){
  .main-nav{
    position:absolute;
    top: 100%; left:0; right:0;
    background: var(--white);
    flex-direction:column;
    align-items:flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display:none;
  }
  .main-nav.open{ display:flex; }
  .nav-link{ padding: 10px 0; width:100%; }
  .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); gap: 20px; }
  .stat{ border-right:none; border-bottom: 1px solid var(--border); padding-bottom:16px; }
}

@media (max-width: 620px){
  .cards-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-inner{ flex-direction:column; text-align:center; }
  .hero-panels{ width: 320px; top:-20px; right:-80px; opacity:.6; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-bolt, .pulse-bolt{ animation:none; }
  .btn:hover{ transform:none; }
}

/* =====================================================
   FORMS (Contact / Survey pages)
   ===================================================== */
.contact-form, .survey-form{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-row{ margin-bottom: 18px; }
.form-row label{
  display:block;
  font-family: var(--font-display);
  font-weight:600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input, .form-row select, .form-row textarea{
  width:100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  border-color: var(--blue);
  background: var(--white);
}
.form-row textarea{ resize: vertical; }

.contact-info-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-info-card p{ margin-bottom: 18px; font-size:14px; }
.contact-info-card p:last-child{ margin-bottom:0; }
.contact-info-card a{ color: var(--blue-deep); font-weight:500; }
.contact-info-card a:hover{ text-decoration: underline; }

.survey-steps{ display:flex; gap:10px; margin-bottom: 26px; flex-wrap:wrap; }
.survey-step-pill{
  font-family: var(--font-display);
  font-weight:600;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(30,159,214,0.1);
  color: var(--blue-deep);
}

/* Blog + Site pages */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.blog-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease;
}
.blog-card:hover{ transform: translateY(-6px); }
.blog-thumb{
  height: 150px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  display:flex; align-items:center; justify-content:center;
  font-size: 34px;
}
.blog-card-body{ padding: 20px; }
.blog-tag{
  display:inline-block;
  font-size: 11.5px;
  font-weight:600;
  color: var(--green-deep);
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom: 10px;
}
.blog-card h3{ font-size: 17px; margin-bottom: 8px; }
.blog-card p{ font-size: 13.5px; margin-bottom:0; }

.projects-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.project-card{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow:hidden;
  box-shadow: var(--shadow-sm);
}
.project-thumb{
  height: 140px;
  background: repeating-linear-gradient(135deg, var(--blue) 0px, var(--blue) 26px, var(--blue-deep) 26px, var(--blue-deep) 52px);
}
.project-card-body{ padding: 18px 20px; }
.project-card h3{ font-size:16px; margin-bottom:6px; }
.project-meta{ display:flex; gap:14px; font-size:12.5px; color: var(--ink-soft); }

@media (max-width: 980px){
  .blog-grid, .projects-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .blog-grid, .projects-grid{ grid-template-columns: 1fr; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
