/* ---------- About hero content ---------- */
.about {
  background: #ffffff;
  color: #111;
  padding: 100px 40px 80px;
}

.about-top {
  display: flex;
  gap: 56px;
  align-items: stretch;
}

.about-left {
  width: 260px;
  flex-shrink: 0;
  padding-left: 74px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,0.45);
  letter-spacing: 0.02em;
}

.about-headline-block {
  flex: 1;
  max-width: none;
  padding-left: 12px;
}

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111;
  width: 100%;
}

.about-headline .dim { color: rgba(0,0,0,0.35); }

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 18px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #111;
  text-decoration: none;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
  display: inline-block;
}

.about-left-copy {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0,0,0,0.6);
  max-width: none;
  margin-top: 20px;
}

.about-left-copy:first-of-type {
  margin-top: 36px;
}

.about-left-copy strong {
  color: #111;
  font-weight: 600;
}

/* ---------- Moving strip ---------- */
.marquee {
  background: #ffffff;
  overflow: hidden;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 28px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee-scroll 22s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 68px);
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.marquee-track span:nth-child(even) { color: rgba(0,0,0,0.25); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .we-deal-with,
  .logo-marquee-reveal,
  .reviews-heading,
  .reviews-subtext,
  .review-card,
  .review-stars {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
    text-shadow: none;
  }
}

/* ---------- We deal with heading ---------- */
.we-deal-with-wrap {
  text-align: center;
  background-color: #ffffff;
  padding: 32px 20px 24px;
}

.we-deal-with {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  color: #111;
  letter-spacing: 0.02em;
  transform: translateY(40px);
  transition: transform 0.7s ease;
}

.we-deal-with.in-view {
  transform: translateY(0);
}

/* ---------- Brand logo marquee ---------- */
.logo-marquee {
  background-color: #ffffff;
  overflow: hidden;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 32px 0;
}

.logo-marquee-reveal {
  transform: translateY(40px);
  transition: transform 0.7s ease;
  transition-delay: 0.2s;
}

.logo-marquee-reveal.in-view {
  transform: translateY(0);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 72px;
  animation: logo-marquee-scroll 30s linear infinite;
}

.logo-item {
  height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* ---------- Individual logo size overrides ----------
   Bump up any logo that looks small next to the others.
   Add/adjust as needed — target by the img's alt text. */
.logo-item[alt="Tata Solar"] { height: 48px; }
.logo-item[alt="Adani Solar"] { height: 42px; }
.logo-item[alt="Polycab"] { height: 92px; }
.logo-item[alt="Ksolar"] { height: 72px; }
.logo-item[alt="Premier Energies"] { height: 72px; }

@media (hover: hover) {
  .logo-item:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 0 10px rgba(79,111,216,0.6)) drop-shadow(0 0 20px rgba(79,111,216,0.35));
  }
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}

@media (max-width: 520px) {
  .logo-marquee { padding: 24px 0; }
  .logo-item { height: 26px; }
  .logo-item[alt="Tata Solar"] { height: 34px; }
  .logo-item[alt="Adani Solar"] { height: 30px; }
  .logo-item[alt="Polycab"] { height: 56px; }
  .logo-item[alt="Ksolar"] { height: 48px; }
  .logo-item[alt="Premier Energies"] { height: 48px; }
  .logo-marquee-track { gap: 48px; }
  .we-deal-with-wrap { padding: 24px 16px 16px; }
}

@media (max-width: 380px) {
  .logo-item { height: 22px; }
  .logo-item[alt="Tata Solar"] { height: 30px; }
  .logo-item[alt="Adani Solar"] { height: 26px; }
  .logo-item[alt="Polycab"] { height: 48px; }
  .logo-item[alt="Ksolar"] { height: 40px; }
  .logo-item[alt="Premier Energies"] { height: 40px; }
  .logo-marquee-track { gap: 36px; }
}

/* ---------- Quick stats strip ---------- */
.quickstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #eef1fb;
  padding: 44px 40px;
}

.quickstat {
  text-align: center;
  padding: 0 20px;
  border-left: 1px solid rgba(0,0,0,0.08);
}

.quickstat:first-child { border-left: none; }

.quickstat-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: #111111;
  line-height: 1;
}

.quickstat-suffix { color: rgba(0,0,0,0.35); }

.quickstat-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(0,0,0,0.55);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .quickstats { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .quickstat { border-left: none; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 20px; }
  .quickstat:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Stat cards ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 56px 40px 80px;
  background: #ffffff;
}

.stat-card {
  border-radius: 20px;
  padding: 28px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-ui);
  position: relative;
  overflow: hidden;
}

/* ---------- Scroll-reveal animation ---------- */
.stat-card .stat-icon,
.stat-card .sun-icon,
.stat-card .stat-icon-dark,
.stat-card h3,
.stat-card .stat-label,
.stat-card .stat-caption,
.stat-card .stat-image-text,
.stat-label-list li,
.stat-caption-list li,
.stat-image-list li {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.in-view .stat-icon,
.stat-card.in-view .sun-icon,
.stat-card.in-view .stat-icon-dark {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

.stat-card.in-view h3 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.stat-card.in-view .stat-label,
.stat-card.in-view .stat-caption,
.stat-card.in-view .stat-image-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.45s;
}

.stat-card.in-view .stat-label + .stat-label,
.stat-card.in-view .stat-caption + .stat-caption {
  transition-delay: 0.6s;
}

.stat-card.in-view .stat-image-content {
  opacity: 1;
  transform: translateY(0);
}

.stat-card.in-view .stat-label-list li,
.stat-card.in-view .stat-caption-list li,
.stat-card.in-view .stat-image-list li {
  opacity: 1;
  transform: translateY(0);
}

.stat-card.in-view .stat-label-list li:nth-child(1),
.stat-card.in-view .stat-caption-list li:nth-child(1),
.stat-card.in-view .stat-image-list li:nth-child(1) { transition-delay: 0.6s; }

.stat-card.in-view .stat-label-list li:nth-child(2),
.stat-card.in-view .stat-caption-list li:nth-child(2),
.stat-card.in-view .stat-image-list li:nth-child(2) { transition-delay: 0.7s; }

.stat-card.in-view .stat-label-list li:nth-child(3),
.stat-card.in-view .stat-caption-list li:nth-child(3),
.stat-card.in-view .stat-image-list li:nth-child(3) { transition-delay: 0.8s; }

.stat-card.in-view .stat-label-list li:nth-child(4),
.stat-card.in-view .stat-caption-list li:nth-child(4),
.stat-card.in-view .stat-image-list li:nth-child(4) { transition-delay: 0.9s; }

@media (prefers-reduced-motion: reduce) {
  .stat-card .stat-icon,
  .stat-card .sun-icon,
  .stat-card .stat-icon-dark,
  .stat-card h3,
  .stat-card .stat-label,
  .stat-card .stat-caption,
  .stat-card .stat-image-text,
  .stat-label-list li,
  .stat-caption-list li,
  .stat-image-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 2;
}

.stat-blue {
  background: #4f6fd8 url('vision-bg.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.stat-blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,70,0.75) 0%, rgba(15,25,70,0.9) 50%, rgba(10,18,55,0.97) 100%);
  z-index: 0;
}

.stat-blue .stat-card-top,
.stat-blue .stat-label {
  position: relative;
  z-index: 1;
}

.stat-blue .stat-card-top {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.stat-blue h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.stat-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-dark { background: rgba(255,255,255,0.7); }

.stat-label {
  margin-top: auto;
  font-size: 12.5px;
  line-height: 1.55;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.stat-label + .stat-label {
  margin-top: 12px;
}

.stat-label-list {
  margin-top: 10px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-label-list li {
  font-size: 11.5px;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.stat-image-content {
  position: relative;
  z-index: 2;
  padding: 0 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.stat-image-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #fff;
}

.stat-image-list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-image-list li {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}

.stat-image {
  padding: 0;
  color: #fff;
}

.stat-photo,
.stat-photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
}

.stat-photo-placeholder {
  background: linear-gradient(180deg, #cfe0ee 0%, #e6eef5 100%);
  border: 1px dashed rgba(0,0,0,0.2);
}

.stat-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(79,111,216,0.55) 0%, rgba(79,111,216,0.75) 60%, rgba(79,111,216,0.9) 100%);
  z-index: 1;
  border-radius: inherit;
}

.stat-image .stat-card-top {
  position: relative;
  z-index: 2;
  padding: 28px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.stat-image .stat-card-top h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  color: #ffffff;
}

.sun-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge, .badge-outline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
}

.badge {
  background: rgba(255,255,255,0.85);
  color: #223;
}

.stat-date {
  font-size: 12px;
  color: #fff;
}

.stat-light {
  background: #4f6fd8 url('commitment-bg.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.stat-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,25,70,0.75) 0%, rgba(15,25,70,0.9) 50%, rgba(10,18,55,0.97) 100%);
  z-index: 0;
}

.stat-light .stat-card-top,
.stat-light .stat-light-title,
.stat-light .stat-caption {
  position: relative;
  z-index: 1;
}

.stat-icon-dark {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.85);
}

.stat-light-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  margin-top: 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.stat-caption {
  font-size: 12.5px;
  line-height: 1.55;
  color: #ffffff;
  margin-top: auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.stat-caption + .stat-caption {
  margin-top: 12px;
}

.stat-caption-list {
  margin-top: 10px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-caption-list li {
  font-size: 11.5px;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.stat-wave {
  display: none;
}

/* ---------- Customer reviews ---------- */
.reviews {
  background: #f8f9fc;
  padding: 72px 40px 80px;
  text-align: center;
  overflow: hidden;
}

.reviews-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 600;
  color: #111;
  transform: translateY(40px);
  transition: transform 0.7s ease;
}

.reviews-heading.in-view {
  transform: translateY(0);
}

.reviews-subtext {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  max-width: 520px;
  margin: 12px auto 0;
  line-height: 1.5;
  transform: translateY(40px);
  transition: transform 0.7s ease;
  transition-delay: 0.15s;
}

.reviews-subtext.in-view {
  transform: translateY(0);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}

.review-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.review-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reviews-grid .review-card:nth-child(1) { transition-delay: 0s; }
.reviews-grid .review-card:nth-child(2) { transition-delay: 0.6s; }
.reviews-grid .review-card:nth-child(3) { transition-delay: 0.9s; }
.reviews-grid .review-card:nth-child(4) { transition-delay: 1.2s; }

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-info {
  display: flex;
  flex-direction: column;
}

.review-name {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  color: #111;
}

.review-location {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}

.review-stars {
  margin-top: 14px;
  color: #f5a623;
  font-size: 14px;
  letter-spacing: 2px;
  display: inline-block;
  transform: scale(0.6);
  transform-origin: left center;
  text-shadow: none;
}

.review-card.in-view .review-stars {
  animation: starPop 0.5s ease-out forwards;
}

.reviews-grid .review-card:nth-child(1) .review-stars { animation-delay: 1.8s; }
.reviews-grid .review-card:nth-child(2) .review-stars { animation-delay: 2.1s; }
.reviews-grid .review-card:nth-child(3) .review-stars { animation-delay: 2.4s; }
.reviews-grid .review-card:nth-child(4) .review-stars { animation-delay: 2.7s; }

@keyframes starPop {
  0% {
    transform: scale(0.6);
    text-shadow: none;
  }
  55% {
    transform: scale(1.45);
    text-shadow: 0 0 10px rgba(245,166,35,0.9), 0 0 22px rgba(245,166,35,0.6);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 6px rgba(245,166,35,0.35);
  }
}

.review-text {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(0,0,0,0.65);
}

@media (max-width: 520px) {
  .reviews { padding: 48px 20px 56px; }
  .reviews-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .reviews-grid .review-card:nth-child(n) { transition-delay: 0s; }
  .reviews-grid .review-card:nth-child(n) .review-stars { animation-delay: 0.3s; }
  .review-card { padding: 20px; }
  .reviews-heading { font-size: 24px; }
  .reviews-subtext { font-size: 13px; padding: 0 8px; }
}

@media (max-width: 380px) {
  .reviews { padding: 40px 16px 48px; }
  .review-card { padding: 18px; }
  .review-avatar { width: 38px; height: 38px; font-size: 12px; }
  .review-name { font-size: 13.5px; }
  .review-text { font-size: 12.5px; }
}

/* ---------- About page responsive ---------- */
@media (max-width: 900px) {
  .about-top { flex-direction: column; gap: 20px; }
  .about-left {
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    padding-left: 0;
  }
  .about-headline-block { padding-left: 0; }
  .stats-grid { grid-template-columns: 1fr; padding: 40px 20px; }
  .stat-card { min-height: auto; }
}

@media (max-width: 640px) {
  .about-headline { line-height: 1.35; }
  .about-left-copy { margin-top: 16px; }
  .about-left-copy:first-of-type { margin-top: 24px; }
  .quickstat-value { font-size: 34px; }
  .stat-blue h3,
  .stat-light-title,
  .stat-image .stat-card-top h3 { font-size: 26px; }
}

html { scroll-behavior: smooth; }

@media (max-width: 520px) {
  .about { padding: 40px 20px 56px; }
  .about-pill {
    white-space: normal;
    text-align: center;
    width: fit-content;
  }
  .about-headline { font-size: 22px; }
  .stats-grid { padding: 32px 20px; gap: 16px; }
  .stat-card { padding: 20px; }
  .stat-image-content { padding: 0 20px 16px; }
  .stat-image .stat-card-top { padding: 20px; }
}

@media (max-width: 380px) {
  .about-headline { font-size: 19px; }
  .about-eyebrow { font-size: 12px; }
  .quickstat-value { font-size: 28px; }
  .quickstats { padding: 32px 16px; }
}