:root {
  --ink: #17201d;
  --muted: #64706b;
  --paper: #f6f3ea;
  --white: #ffffff;
  --gold: #f2b936;
  --green: #12634f;
  --deep: #0f322b;
  --line: #ded8ca;
  --soft: #fff9e8;
  --shadow: 0 22px 70px rgba(21, 35, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 248, 224, 0.92), rgba(239, 247, 239, 0.9)),
    var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.nav-open {
  overflow: hidden;
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 252, 242, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 32, 29, 0.1);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
}

.brand-logo {
  height: 50px;
  object-fit: contain;
  width: 120px;
}

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

.site-nav a {
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-cta {
  background: var(--deep);
  border-radius: 999px;
  color: var(--white);
  padding: 12px 18px;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 40px;
  position: relative;
  width: 40px;
}

.nav-toggle span {
  background: var(--ink);
  border-radius: 999px;
  height: 2px;
  left: 8px;
  position: absolute;
  right: 8px;
  transition: 180ms ease;
}

.nav-toggle span:first-child {
  top: 14px;
}

.nav-toggle span:last-child {
  top: 24px;
}

.nav-open .nav-toggle span:first-child {
  top: 19px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  top: 19px;
  transform: rotate(-45deg);
}

.hero {
  min-height: 88vh;
  overflow: hidden;
  position: relative;
  background-image: url('assets/lucknow-happy-solar-installers.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero img {
  display: none;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(13, 39, 34, 0.9) 0%, rgba(13, 39, 34, 0.62) 48%, rgba(13, 39, 34, 0.08) 100%),
    radial-gradient(circle at 15% 16%, rgba(242, 185, 54, 0.22), transparent 34%);
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  padding: 134px clamp(20px, 6vw, 88px) 64px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffe49d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.9rem, 6.8vw, 6.2rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.hindi-line {
  color: #ffe49d;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.42;
  max-width: 720px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
}

.button.whatsapp {
  background: #1f9d63;
  color: var(--white);
}

.quick-contact {
  background: var(--deep);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-contact div {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px clamp(20px, 4vw, 44px);
}

.quick-contact div:last-child {
  border-right: 0;
}

.quick-contact span {
  color: rgba(255, 255, 255, 0.62);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.quick-contact strong {
  display: block;
  line-height: 1.45;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 88px);
}

.section-intro {
  max-width: 820px;
}

.section-intro p,
.quote-copy p,
.process-grid p,
.note {
  color: var(--muted);
  line-height: 1.7;
}

.subsidy-section {
  background:
    linear-gradient(180deg, rgba(255, 249, 231, 0.9), rgba(246, 243, 234, 0.95)),
    var(--paper);
  display: grid;
  gap: clamp(32px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
}

.subsidy-card {
  background: var(--white);
  border: 1px solid rgba(23, 32, 29, 0.09);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.subsidy-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 24px;
}

.subsidy-row span {
  color: var(--muted);
  font-weight: 800;
}

.subsidy-row strong {
  font-size: 1.35rem;
  white-space: nowrap;
}

.subsidy-row.benefit strong {
  color: var(--green);
}

.subsidy-row.total {
  background: var(--soft);
}

.subsidy-row.total strong {
  color: var(--ink);
  font-size: 1.8rem;
}

.note {
  margin: 0;
  padding: 22px 24px 26px;
}

.process-section {
  background: var(--white);
}

.process-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 36px;
}

.process-grid article {
  background: #f8faf5;
  border: 1px solid rgba(23, 32, 29, 0.08);
  border-radius: 8px;
  padding: 24px;
}

.process-grid span {
  align-items: center;
  background: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 34px;
  width: 42px;
}

.quote-section {
  background:
    linear-gradient(135deg, rgba(255, 248, 224, 0.88), rgba(236, 248, 241, 0.9));
  display: grid;
  gap: clamp(32px, 6vw, 76px);
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1fr);
}

.contact-card {
  background: var(--deep);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 24px;
}

.contact-card span,
.contact-card small {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card a {
  color: #ffe49d;
  font-weight: 800;
}

.quote-form {
  background: var(--white);
  border: 1px solid rgba(23, 32, 29, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(22px, 4vw, 34px);
}

.quote-form label {
  color: var(--ink);
  display: grid;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 8px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  background: #fbfaf5;
  border: 1px solid #d8d1c4;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 50px;
  padding: 13px 14px;
  width: 100%;
}

.quote-form textarea {
  resize: vertical;
}

.address-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.address-input-wrapper input {
  flex: 1;
}

.location-btn {
  background: var(--green);
  border: none;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
  min-width: 50px;
  padding: 0;
  transition: background 200ms ease, transform 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-btn:hover {
  background: var(--deep);
  transform: scale(1.05);
}

.location-btn:active {
  transform: scale(0.95);
}

.location-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.full {
  grid-column: 1 / -1;
}

.form-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-form .button {
  border: 0;
  width: 100%;
}

.form-status {
  color: var(--green);
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 0;
  min-height: 22px;
}

.site-footer {
  align-items: end;
  background: var(--deep);
  color: var(--white);
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: 42px clamp(20px, 6vw, 88px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: rgba(246, 243, 234, 0.98);
    border-top: 1px solid rgba(23, 32, 29, 0.1);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 78px 22px 32px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 67px;
    transform: translateY(-10px);
    transition: 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-bottom: 1px solid rgba(23, 32, 29, 0.09);
    font-size: 1.2rem;
    padding: 18px 0;
  }

  .nav-cta {
    border-radius: 8px;
    margin-top: 18px;
    text-align: center;
  }

  .subsidy-section,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .brand-logo {
    flex: 0 0 auto;
    height: 40px;
    width: 86px;
  }

  .hero {
    min-height: 70vh;
    background-attachment: scroll;
    background-size: cover;
    background-position: center top;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(13, 39, 34, 0.82), rgba(13, 39, 34, 0.74));
  }

  .hero-content {
    padding: 112px 20px 56px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .hero-actions,
  .quick-contact,
  .process-grid,
  .quote-form,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .quick-contact div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
  }

  .subsidy-row {
    align-items: flex-start;
    display: grid;
  }

  .subsidy-row strong {
    white-space: normal;
  }

  .process-grid span {
    margin-bottom: 22px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }

  .footer-links {
    display: grid;
    justify-content: start;
  }
}
