/* Home page — index.html */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(6, 78, 90, 0.9) 0%, rgba(6, 78, 90, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--section-gap) 2rem 4rem;
  max-width: 40rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--green);
  color: #003c01;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
  word-spacing: 0.2em;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
}

.hero-scroll .material-symbols-outlined {
  font-size: 2.5rem;
}

/* Stats strip */
.stats-strip-wrap {
  position: relative;
  z-index: 30;
  margin-top: -4rem;
  margin-bottom: 0;
}

.stats-strip {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  padding: 2rem;
}

@media (min-width: 768px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid var(--surface);
}

.stat-item:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) {
    border-right: 1px solid var(--surface);
  }
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* PM Surya Ghar */
.pm-section {
  background: var(--background);
}

.pm-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(to right, var(--blue), #0a6b7a);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .pm-card {
    flex-direction: row;
    align-items: stretch;
  }
}

.pm-content {
  flex: 1;
  padding: 2rem;
  color: var(--white);
}

@media (min-width: 768px) {
  .pm-content {
    padding: 4rem;
  }
}

.pm-content h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.pm-content h2 .accent {
  color: var(--orange);
}

.pm-content p {
  opacity: 0.9;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.pm-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pm-list .material-symbols-outlined {
  color: var(--green);
}

.pm-cta {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  transition: background 0.2s;
}

.pm-cta:hover {
  background: #ffdbca;
}

.pm-image {
  flex: 1;
  min-height: 280px;
  position: relative;
}

@media (min-width: 768px) {
  .pm-image {
    min-height: 400px;
  }
}

.pm-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 90, 0.2);
}

/* Services grid (home preview) */
.services-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
}

@media (min-width: 768px) {
  .services-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card-icon {
  width: 4rem;
  height: 4rem;
  background: #ffdbca;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9d4300;
  margin-bottom: 1.5rem;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-card-icon {
  background: var(--orange);
  color: var(--white);
}

.service-card-icon .material-symbols-outlined {
  font-size: 2.25rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9d4300;
  font-weight: 700;
  transition: gap 0.2s;
}

.service-card-link:hover {
  gap: 1rem;
}

/* How it works */
.how-it-works {
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
}

.how-it-works h2,
.how-it-works .section-header p {
  color: var(--white);
}

.how-it-works .section-header p {
  opacity: 0.8;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .steps-timeline {
    position: absolute;
    top: 2.5rem;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 0;
  }
}

.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 5rem;
  height: 5rem;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--blue);
  transition: transform 0.3s;
}

.step-item:hover .step-icon {
  transform: scale(1.1);
}

.step-icon .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--white);
}

.step-item h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.875rem;
  opacity: 0.7;
  padding: 0 1rem;
}

/* Testimonials carousel */
.testimonials {
  background: var(--background);
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid var(--surface);
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  color: var(--orange);
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.testimonial-author {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #d9dadb;
  transition: background 0.3s;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--blue);
}

/* ── ROI Calculator ───────────────────────────────────────── */

.roi-subtitle {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-top: 0.5rem;
}

.roi-card {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 8px 40px rgba(6, 78, 90, 0.1);
  overflow: hidden;
  max-width: 56rem;
  margin-inline: auto;
}

/* ── Inputs panel ─────────────────────────────────────────── */
.roi-inputs {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  border-bottom: 1px solid #f0ede9;
}

@media (min-width: 768px) {
  .roi-inputs {
    padding: 3rem;
  }
}

.roi-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.roi-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue);
}

.roi-label .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--orange);
}

.roi-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.roi-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0c0b1;
  border-radius: 0.625rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -moz-appearance: textfield;
}

.roi-input::-webkit-inner-spin-button,
.roi-input::-webkit-outer-spin-button { opacity: 0; }

.roi-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.roi-input--prefixed {
  padding-left: 2.25rem;
}

.roi-input-prefix {
  position: absolute;
  left: 0.875rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.roi-input-unit {
  position: absolute;
  right: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.roi-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Calculate button */
.roi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 0.625rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}

.roi-btn:hover {
  background: var(--darkorange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249,115,22,0.35);
}

.roi-btn:active { transform: translateY(0); }

.roi-btn .material-symbols-outlined { font-size: 1.25rem; }

/* ── Error ────────────────────────────────────────────────── */
.roi-error {
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0 2.5rem 1rem;
  min-height: 1.5rem;
}

/* ── Results panel (hidden by default) ───────────────────── */
.roi-results {
  display: none;
  flex-direction: column;
  gap: 1.75rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff7ed 100%);
  animation: roi-fade-up 0.5s ease-out;
}

.roi-results.is-visible {
  display: flex;
}

@media (min-width: 768px) {
  .roi-results { padding: 3rem; }
}

@keyframes roi-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Results header */
.roi-results-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.roi-results-icon {
  font-size: 2rem;
  color: var(--orange);
  font-variation-settings: 'FILL' 1;
}

.roi-results-header h3 {
  font-size: 1.375rem;
  color: var(--blue);
}

/* Results grid */
.roi-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .roi-results-grid { grid-template-columns: repeat(4, 1fr); }
}

.roi-result-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.roi-result-card .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--blue);
  opacity: 0.6;
}

.roi-result-card--highlight {
  border: 2px solid var(--green);
}

.roi-result-card--highlight .material-symbols-outlined {
  color: var(--green);
  opacity: 1;
}

.roi-result-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

.roi-result-card--highlight .roi-result-value {
  color: #15803d;
}

.roi-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Summary message */
.roi-summary {
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.roi-summary strong { color: var(--blue); }

/* PM subsidy nudge */
.roi-subsidy-nudge {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: #065f46;
  line-height: 1.6;
}

.roi-subsidy-nudge.is-visible { display: flex; }

.roi-subsidy-nudge .material-symbols-outlined {
  color: var(--green);
  font-size: 1.375rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-variation-settings: 'FILL' 1;
}

.roi-nudge-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  margin-left: 0.25rem;
}

.roi-nudge-link:hover { color: var(--orange); }

/* CTA button inside results */
.roi-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.roi-cta-btn:hover {
  background: #043642;
  transform: translateY(-2px);
}

.roi-cta-btn .material-symbols-outlined { font-size: 1.125rem; }