/* Sparsh Info Solution — brand palette
   Navy #033859 | Green #498C37 | Slate #536384 | Sage #A9BEA9 | Off-white #F2F2F2
   Sun accents from logo: #F7941D / #FFD200
*/

:root {
  --navy: #033859;
  --navy-deep: #022438;
  --green: #498c37;
  --green-dark: #3a702c;
  --slate: #536384;
  --sage: #a9bea9;
  --offwhite: #f2f2f2;
  --white: #ffffff;
  --sun: #f7941d;
  --sun-yellow: #ffd200;
  --text: #1a2a36;
  --text-muted: #536384;
  --shadow: 0 10px 30px rgba(3, 56, 89, 0.1);
  --shadow-lg: 0 18px 50px rgba(3, 56, 89, 0.16);
  --radius: 16px;
  --header-h: 76px;
  --max: 1140px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--green);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 800;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--green);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-head__lead {
  color: var(--text-muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow--light {
  color: var(--sun-yellow);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 1.6rem;
  height: 1.6rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--call {
  background: var(--navy);
  color: var(--white);
  padding-inline: 1rem;
  min-height: 44px;
  font-size: 0.9rem;
}

.btn--call:hover {
  background: var(--green);
  color: var(--white);
}

.btn--sun {
  background: var(--sun);
  color: var(--navy-deep);
}

.btn--sun:hover {
  background: var(--sun-yellow);
  color: var(--navy-deep);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid rgba(3, 56, 89, 0.08);
  overflow: visible;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(3, 56, 89, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--navy);
}

.brand:hover {
  color: var(--navy);
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--sage);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__tag {
  font-size: 0.68rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 399px) {
  .brand__tag {
    display: none;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__list {
  display: none;
  gap: 0.15rem;
}

.nav__link {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 8px;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--green);
  background: rgba(73, 140, 55, 0.08);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav .btn--call {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.btn--call-compact {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

.btn--call-compact span {
  display: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 36, 56, 0.55);
  z-index: 90;
}

.nav-backdrop[hidden] {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  background: var(--navy-deep);
}

.hero-swiper,
.hero-slide {
  min-height: min(88vh, 720px);
}

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(2, 36, 56, 0.9) 0%,
    rgba(3, 56, 89, 0.68) 46%,
    rgba(3, 56, 89, 0.32) 100%
  );
}

.hero-slide--1 {
  background-image: url("../images/solar1.png");
}

.hero-slide--2 {
  background-image: url("../images/solar2.png");
}

.hero-slide--3 {
  background-image: url("../images/solar3.png");
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  padding-block: 4.5rem;
  max-width: 760px;
  color: var(--white);
}

.hero-slide h1,
.hero-slide h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hero-slide .eyebrow {
  color: var(--sun-yellow);
}

.hero-slide__lead {
  font-size: 1.05rem;
  color: rgba(242, 242, 242, 0.92);
  max-width: 36rem;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero .swiper-pagination-bullet {
  background: var(--white);
  opacity: 0.45;
  width: 10px;
  height: 10px;
}

.hero .swiper-pagination-bullet-active {
  background: var(--sun);
  opacity: 1;
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
  color: var(--white);
  width: 42px;
  height: 42px;
  background: rgba(3, 56, 89, 0.45);
  border-radius: 50%;
  border: 0;
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 800;
}

.hero .swiper-button-prev:hover,
.hero .swiper-button-next:hover {
  background: var(--green);
}

.hero .swiper-pagination {
  bottom: 22px !important;
}

/* About */

.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.about__visual {
  position: relative;
}

.about__logo-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about__logo-card img {
  margin-inline: auto;
  max-height: 320px;
  object-fit: contain;
}

.about__badge-float {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.about__copy p {
  color: var(--text-muted);
}

.about__copy strong {
  color: var(--navy);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-row li {
  background: var(--offwhite);
  border-radius: 12px;
  padding: 0.85rem 0.7rem;
  text-align: center;
  border-top: 3px solid var(--green);
}

.stat-row__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.stat-row__label {
  display: block;
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 600;
}

.trust-grid {
  display: grid;
  gap: 1rem;
}

.trust-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(169, 190, 169, 0.5);
}

.trust-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--sun-yellow);
  margin-bottom: 0.75rem;
}

.trust-card h3 {
  margin-bottom: 0.35rem;
}

.trust-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Services */

.services {
  background: var(--offwhite);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.service-card {
  --reveal-delay: 0s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.3rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(3, 56, 89, 0.08);
  box-shadow: 0 8px 24px rgba(3, 56, 89, 0.05);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--sun));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.95rem;
  border-radius: 14px;
  background: rgba(73, 140, 55, 0.12);
  color: var(--green);
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card__icon .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.service-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.service-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.05rem;
  margin-bottom: 0.42rem;
}

.service-card__list li:last-child {
  margin-bottom: 0;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.service-card:nth-child(1) { --reveal-delay: 0.02s; }
.service-card:nth-child(2) { --reveal-delay: 0.08s; }
.service-card:nth-child(3) { --reveal-delay: 0.14s; }
.service-card:nth-child(4) { --reveal-delay: 0.04s; }
.service-card:nth-child(5) { --reveal-delay: 0.1s; }
.service-card:nth-child(6) { --reveal-delay: 0.16s; }
.service-card:nth-child(7) { --reveal-delay: 0.06s; }
.service-card:nth-child(8) { --reveal-delay: 0.12s; }
.service-card:nth-child(9) { --reveal-delay: 0.18s; }
.service-card:nth-child(10) { --reveal-delay: 0.1s; }

@media (hover: hover) and (pointer: fine) {
  .service-card.is-visible:hover {
    transform: translateY(-8px);
    border-color: var(--sage);
    box-shadow: 0 18px 40px rgba(3, 56, 89, 0.14);
  }

  .service-card:hover::before {
    transform: scaleX(1);
  }

  .service-card:hover .service-card__icon {
    background: var(--navy);
    color: var(--sun-yellow);
    transform: scale(1.06);
  }
}

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

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

/* Franchise — single contained banner */

.franchise {
  position: relative;
  padding: 4.25rem 0;
  background:
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 58%, #1a5a38 140%);
  color: var(--white);
  overflow: hidden;
}

.franchise::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 8px;
  height: 100%;
  background: var(--green);
}

.franchise h2,
.franchise p {
  color: var(--white);
}

.franchise p {
  color: rgba(242, 242, 242, 0.9);
}

.franchise__inner {
  display: grid;
  gap: 2rem;
  position: relative;
}

.franchise__benefits {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.franchise__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}

.franchise__benefits .icon {
  flex-shrink: 0;
  color: var(--sun-yellow);
  margin-top: 0.15rem;
}

.franchise__aside {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(169, 190, 169, 0.35);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1rem;
}

.franchise__mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--navy);
}

.franchise__megaphone {
  width: 48px;
  height: 48px;
}

.franchise__aside-text {
  margin: 0;
  font-weight: 600;
  color: var(--offwhite) !important;
}

/* Contact */

.contact {
  background: var(--white);
}

.contact__grid {
  display: grid;
  gap: 1.75rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-info__card {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  background: var(--offwhite);
  border-radius: var(--radius);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
}

.contact-info__card h3 {
  margin-bottom: 0.2rem;
}

.contact-info__card p {
  margin: 0;
  color: var(--text-muted);
}

.contact-info__card a {
  font-weight: 700;
  color: var(--navy);
}

.contact-form {
  height: 100%;
  background: var(--offwhite);
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(169, 190, 169, 0.45);
}


.form-row {
  margin-bottom: 0.95rem;
}

.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.req {
  color: #b42318;
}

.optional {
  font-weight: 500;
  color: var(--slate);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d5ddd5;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #b42318;
  background: #fff8f7;
}

.field-error {
  min-height: 1.1em;
  margin: 0.3rem 0 0;
  color: #b42318;
  font-size: 0.8rem;
}

.form-status {
  margin: 0.85rem 0 0;
  font-weight: 600;
  color: var(--green);
}

.form-status.is-error {
  color: #b42318;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(242, 242, 242, 0.88);
}

.site-footer a {
  color: var(--offwhite);
}

.site-footer a:hover {
  color: var(--sun-yellow);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  padding: 2.5rem 0;
}

.footer-brand {
  background: transparent;
  padding: 0;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.footer-brand img {
  width: 72px;
  max-width: 72px;
  height: auto;
  margin: 0;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(242, 242, 242, 0.88);
  max-width: 32ch;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(169, 190, 169, 0.2);
  padding: 1rem 0;
  font-size: 0.85rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

/* Tablet */

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand__name {
    font-size: 1.05rem;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 84px;
  }

  .section {
    padding: 5.5rem 0;
  }

  .about__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

  .franchise__inner {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
  }

  .contact__grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1fr;
  }

  .hero .swiper-button-prev,
  .hero .swiper-button-next {
    display: flex;
  }
}

/* Desktop nav */

@media (min-width: 960px) {
  .menu-toggle,
  .btn--call-compact,
  .nav-backdrop,
  .header-actions {
    display: none;
  }

  .nav {
    margin-left: auto;
  }

  .nav__list {
    display: flex;
  }

  .nav .btn--call {
    display: inline-flex;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile overlay nav */

@media (max-width: 959px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: auto;
    width: min(86vw, 360px);
    height: auto;
    margin: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem 1.15rem 1.5rem;
    gap: 1.15rem;
    box-shadow: -16px 0 40px rgba(2, 36, 56, 0.18);
    transform: translateX(110%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 101;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0;
    padding: 0.25rem 0;
  }

  .nav__link {
    padding: 0.9rem 0.85rem;
    font-size: 1.05rem;
    border-radius: 10px;
    background: transparent;
  }

  .nav__link:hover,
  .nav__link.is-active {
    color: var(--green);
    background: rgba(73, 140, 55, 0.12);
  }

  .nav .btn--call {
    display: inline-flex;
    width: 100%;
    margin-top: auto;
  }

  .hero .swiper-button-prev,
  .hero .swiper-button-next {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .service-card {
    opacity: 1;
    transform: none;
  }
}

#about,
#services,
#franchise,
#contact {
  scroll-margin-top: calc(var(--header-h) + 12px);
}
