/* ============================================================
   SuryaShakti Solar — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ---- Variables ---- */
:root {
  --sun:    #F7A01B;
  --sun-dk: #e8920a;
  --deep:   #1A1A2E;
  --sky:    #E8F4FD;
  --earth:  #2D4A22;
  --sand:   #FDF6EC;
  --white:  #FFFFFF;
  --text:   #1C1C1C;
  --muted:  #6B7280;
  --accent: #E05A1E;
  --border: #E5E7EB;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.18);

  --container: 1100px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Utilities ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 5rem 0; }

.label {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sun);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; line-height: 1.12; color: var(--deep);
  margin-bottom: .875rem;
}
.section-sub {
  color: var(--muted); font-size: 1rem; line-height: 1.75;
  max-width: 560px; margin-bottom: 3rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; border: none; transition: background .2s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sun); color: var(--deep); }
.btn-primary:hover { background: var(--sun-dk); box-shadow: 0 8px 24px rgba(247,160,27,.4); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--sun); background: rgba(247,160,27,.1); }
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: #0e0e1e; }

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
  background: rgba(26,26,46,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: .875rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 900; color: var(--sun);
}
.nav-logo img { width: 38px; height: 38px; border-radius: 50%; }
.nav-logo span { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.75); font-size: .875rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--sun); }
.nav-cta {
  background: var(--sun); color: var(--deep);
  padding: .5rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .875rem;
  transition: background .2s;
}
.nav-cta:hover { background: var(--sun-dk); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  background: var(--deep);
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-blend-mode: overlay;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 7rem 1.5rem 4rem;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.55) 60%, rgba(26,26,46,.3) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(247,160,27,.15);
  border: 1px solid rgba(247,160,27,.4);
  color: var(--sun); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 2px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 900; line-height: 1.06;
  color: var(--white); margin-bottom: 1.25rem;
}
.hero h1 .sun-text { color: var(--sun); }
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,.72);
  line-height: 1.75; max-width: 500px; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: .75rem; text-align: center;
  animation: bounce 2s infinite;
}
.hero-scroll span { display: block; width: 1px; height: 40px; background: rgba(255,255,255,.3); margin: .5rem auto 0; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--sun);
  padding: 1.5rem;
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 0;
}
.stat-item {
  text-align: center; padding: .5rem 2.5rem;
  border-right: 1px solid rgba(26,26,46,.2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 900; color: var(--deep);
  line-height: 1;
}
.stat-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(26,26,46,.65);
  margin-top: .3rem;
}

/* ---- ABOUT / INTRO STRIP ---- */
.about-strip { background: var(--white); padding: 4rem 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.badge {
  background: rgba(247,160,27,.12); color: var(--accent);
  border: 1px solid rgba(247,160,27,.3);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .3rem .75rem;
  border-radius: var(--radius-sm);
}

/* ---- SERVICES ---- */
.services { background: var(--sand); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-img { height: 190px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 1.5rem; }
.service-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(247,160,27,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 1rem;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700; color: var(--deep);
  margin-bottom: .6rem;
}
.service-body p { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.service-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--sun); font-size: .8rem; font-weight: 700;
  margin-top: 1rem; transition: gap .2s;
}
.service-link:hover { gap: .65rem; }

/* ---- HOW IT WORKS ---- */
.how { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.steps-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.steps-visual img { width: 100%; height: 420px; object-fit: cover; }
.steps-list { display: flex; flex-direction: column; gap: 0; position: relative; }
.steps-list::before {
  content: ''; position: absolute; left: 26px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--sun), var(--earth));
}
.step { display: flex; gap: 1.5rem; padding-bottom: 2rem; }
.step-num {
  width: 54px; height: 54px; flex-shrink: 0;
  background: var(--deep); color: var(--sun);
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 900;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--sun); position: relative; z-index: 1;
}
.step-body { padding-top: .65rem; }
.step-body h3 { font-size: 1rem; font-weight: 700; color: var(--deep); margin-bottom: .35rem; }
.step-body p { color: var(--muted); font-size: .875rem; line-height: 1.65; max-width: 340px; }

/* ---- INDIA COVERAGE MAP ---- */
.coverage { background: var(--sky); }
.coverage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.coverage-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.coverage-map img { width: 100%; }
.coverage-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.cov-item {
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem; color: var(--text);
}
.cov-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---- SUBSIDIES ---- */
.subsidies { background: var(--earth); }
.subsidies .section-title { color: var(--white); }
.subsidies .section-sub { color: rgba(255,255,255,.7); }
.subsidies .label { color: #FFD166; }
.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem; margin-top: 2.5rem;
}
.subsidy-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: background .2s;
}
.subsidy-card:hover { background: rgba(255,255,255,.11); }
.subsidy-amount {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 900; color: var(--sun);
  line-height: 1;
}
.subsidy-cap {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: .3rem;
}
.subsidy-desc { margin-top: .875rem; font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.65; }
.subsidy-note {
  margin-top: 2rem;
  background: rgba(247,160,27,.13);
  border-left: 3px solid var(--sun);
  padding: 1rem 1.25rem; border-radius: 4px;
  font-size: .875rem; color: rgba(255,255,255,.82); line-height: 1.7;
}
.subsidy-note strong { color: var(--sun); }

/* ---- TESTIMONIALS ---- */
.testimonials { background: var(--white); }
.tgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.tcard {
  background: var(--sand);
  border-radius: var(--radius-md); padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}
.tcard::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem; color: var(--sun); opacity: .18;
  position: absolute; top: -1rem; left: 1.25rem;
  line-height: 1;
}
.stars { color: var(--sun); font-size: .9rem; margin-bottom: .75rem; }
.tcard-text { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; position: relative; z-index: 1; }
.tcard-author { display: flex; align-items: center; gap: .75rem; }
.tcard-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--sun); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--deep); font-size: .95rem;
}
.tcard-name { font-weight: 700; font-size: .9rem; color: var(--deep); }
.tcard-loc { font-size: .75rem; color: var(--muted); margin-top: .1rem; }

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--sun);
  padding: 4rem 1.5rem; text-align: center;
}
.cta-band .section-title { color: var(--deep); }
.cta-band p { color: rgba(26,26,46,.75); max-width: 460px; margin: 0 auto 2rem; font-size: 1rem; line-height: 1.7; }

/* ---- CONTACT ---- */
.contact { background: var(--sand); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .8rem; font-weight: 700; color: var(--deep); margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem; color: var(--text);
  background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sun);
  box-shadow: 0 0 0 3px rgba(247,160,27,.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%; padding: 1rem;
  background: var(--sun); color: var(--deep);
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .18s;
}
.form-submit:hover { background: var(--sun-dk); transform: translateY(-1px); }

.contact-info-box { display: flex; flex-direction: column; gap: 1.5rem; }
.ci-item { display: flex; gap: .875rem; align-items: flex-start; }
.ci-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(247,160,27,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.ci-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ci-val { font-size: .95rem; color: var(--text); margin-top: .2rem; line-height: 1.5; }
.cert-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; margin-top: 1rem;
}
.cert-box h4 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .875rem; }
.cert-list { display: flex; flex-direction: column; gap: .5rem; }
.cert-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text); }
.cert-check { color: var(--earth); font-weight: 700; }

/* ---- FOOTER ---- */
.footer {
  background: var(--deep); padding: 3rem 1.5rem 2rem;
  color: rgba(255,255,255,.55);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul a { color: rgba(255,255,255,.55); font-size: .85rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--sun); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: .75rem;
}
.footer-bottom a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-bottom a:hover { color: var(--sun); }

/* ---- MOBILE ---- */
@media (max-width: 900px) {
  .about-grid,
  .steps-grid,
  .coverage-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .stat-item { padding: .5rem 1.5rem; border-right: none; border-bottom: 1px solid rgba(26,26,46,.15); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.5rem; }
}

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

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fade-up {
  opacity: 0;
  animation: fadeUp .6s ease forwards;
}
.anim-delay-1 { animation-delay: .1s; }
.anim-delay-2 { animation-delay: .2s; }
.anim-delay-3 { animation-delay: .3s; }
