html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

.step-card {
  overflow: hidden;
  cursor: pointer;
}

.step-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Fix number alignment and font across all pages:
   Only the number value font is changed to sans-serif (Manrope) with lining numerals so numbers match text level line */
*, ::before, ::after {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.step-number,
.number-val,
.num-val,
[data-number] {
  font-family: var(--font-sans), "Manrope", ui-sans-serif, system-ui, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: "lnum" 1, "tnum" 1 !important;
  vertical-align: baseline !important;
  display: inline-block !important;
  margin-right: 0.15rem;
  line-height: inherit;
  font-weight: 800 !important;
}

.font-display .step-number,
.font-display .number-val,
h1 .number-val,
h2 .number-val,
h3 .number-val,
h1 .step-number,
h2 .step-number,
h3 .step-number {
  font-family: var(--font-sans), "Manrope", ui-sans-serif, system-ui, sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums !important;
  font-feature-settings: "lnum" 1, "tnum" 1 !important;
  vertical-align: baseline !important;
  font-weight: 800 !important;
}

.step-card h3,
.theme-card h3,
.theme-card-shadow h3 {
  line-height: 1.4;
  display: flex;
  align-items: baseline;
}

.step-card .step-description {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, margin 0.25s ease;
  margin-top: 0 !important;
}

.step-card.active .step-description {
  max-height: 180px !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  margin-top: 0.5rem !important;
}

.hero-bg {
  --hero-bg-image: url("/bg_landing.jpeg");
  position: relative;
  isolation: isolate;
  min-height: 500px;
  background-image:
    linear-gradient(
      90deg,
      rgba(248, 248, 252, 0.98) 0%,
      rgba(248, 250, 252, 0.94) 24%,
      rgba(248, 250, 252, 0.80) 44%,
      rgba(248, 250, 252, 0.42) 68%,
      rgba(248, 250, 252, 0.06) 88%,
      rgba(248, 250, 252, 0) 100%
    ),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  transition: background-image 0.7s ease-in-out;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.hero-accent {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
}

.hero-accent-blue {
  width: 320px;
  height: 320px;
  left: -80px;
  top: -40px;
  background: oklch(0.70 0.15 240 / 0.2);
}

.hero-accent-sky {
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: 40px;
  background: oklch(0.55 0.20 255 / 0.15);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fade-in 0.9s ease-out both;
}

.hero-stat {
  border: 1px solid oklch(0.90 0.02 250);
  background: oklch(0.99 0.005 250 / 0.8);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 0.8rem;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  background-color: #0B255A !important;
  background-image: none !important;
  color: #ffffff !important;
  border-color: #0B255A !important;
}

.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #ffffff !important;
  color: #0B255A !important;
  border-color: #0B255A !important;
}

.bg-primary .cta-action-button,
.bg-primary .cta-action-button:hover,
.bg-primary .cta-action-button:focus {
  background-color: #ffffff !important;
  color: #0B255A !important;
  border-color: #0B255A !important;
}

.bg-primary .cta-action-label {
  color: #0B255A !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.bg-primary .cta-whatsapp-button,
.bg-primary .cta-whatsapp-button:hover,
.bg-primary .cta-whatsapp-button:focus {
  background-color: #FFD23F !important;
  border-color: #FFD23F !important;
  color: #0B255A !important;
}

.service-call-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #FFD23F;
  background-color: #FFD23F;
  color: #0B255A !important;
  text-decoration: none;
}

.service-call-now:hover,
.service-call-now:focus {
  background-color: #FFA500;
  border-color: #FFA500;
  color: #0B255A !important;
}

.section-cta .service-call-now {
  background-color: #FFD23F !important;
  border-color: #FFD23F !important;
  color: #0B255A !important;
}

h1,
h2,
h3,
.font-display,
.hero-headline-gradient {
  color: #0B255A !important;
}

.hero-headline-gradient {
  background: none !important;
  -webkit-text-fill-color: #0B255A !important;
}

.bg-primary,
section.bg-primary,
section.relative.overflow-hidden.bg-primary,
.customer-feedback-section,
.section-cta,
.theme-card-shadow.section-cta,
footer.bg-foreground,
footer.bg-foreground footer,
footer {
  background-color: #0B255A !important;
}

.bg-primary,
.bg-primary *,
section.bg-primary *,
section.relative.overflow-hidden.bg-primary *,
.customer-feedback-section *,
.section-cta *,
footer,
footer * {
  color: #ffffff !important;
}

footer .label-micro,
footer .story-link,
footer .text-white,
footer p,
footer h3,
footer h4,
footer a,
footer span {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .hero-bg {
    min-height: 0;
    background-position: 62% center;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
  }

  .hero-accent-blue,
  .hero-accent-sky {
    width: 180px;
    height: 180px;
    filter: blur(40px);
  }

  .hero-content {
    max-width: none;
    padding: 1.5rem;
  }

  .quality-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .quality-item {
    min-height: auto;
    padding: 12px;
    align-items: flex-start;
  }

  .quality-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .quality-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .quality-subtitle {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .feedback-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feedback-card {
    min-height: auto;
    padding: 20px;
  }

  .feedback-divider {
    margin: 18px auto 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 90px !important;
  }
}

.customer-feedback-section {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 77, 150, 0.38), transparent 20%),
    radial-gradient(circle at 88% 80%, rgba(80, 142, 255, 0.22), transparent 20%),
    linear-gradient(135deg, #081b2c 0%, #111a37 46%, #0a2449 100%);
  color: #ffffff;
}

.customer-feedback-section::before,
.customer-feedback-section::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.customer-feedback-section::before {
  left: -150px;
  top: -140px;
  background: rgba(100, 196, 255, 0.25);
}

.customer-feedback-section::after {
  right: -110px;
  bottom: -160px;
  background: rgba(41, 109, 184, 0.36);
}

.customer-feedback-wrap {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 44px;
  text-align: center;
}

.feedback-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 28px;
  border-radius: 999px;
  border: 1px solid #b48c31;
  background: linear-gradient(180deg, #12213e, #101932);
  color: #f8d969;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}

.feedback-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1c4d6d;
  color: #ffffff;
  font-size: 12px;
}

.feedback-title {
  margin: 28px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff !important;
}

.feedback-title span {
  color: #f4c75a;
}

.feedback-divider {
  width: 90px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3bd45, #f0d27d);
}

.feedback-subtitle {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: clamp(0.875rem, 1.4vw, 1.1rem);
  line-height: 1.5;
  color: #d2edff;
}

.feedback-subtitle span {
  color: #ffffff;
  font-weight: 900;
}

.feedback-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 55px;
}

.feedback-more-row {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.feedback-more-btn {
  border: 1px solid #f4c75a;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4c75a, #bd8d2d);
  color: #071b34;
  font-weight: 900;
  font-size: 0.84rem;
  padding: 10px 30px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.feedback-more-btn:hover,
.feedback-more-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 199, 90, 0.24);
}

.feedback-more-btn:disabled {
  cursor: default;
  opacity: 0.88;
}

.feedback-card {
  min-height: 230px;
  padding: 28px 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(118, 179, 235, 0.5);
  background: linear-gradient(180deg, rgba(38, 89, 141, 0.86), rgba(24, 50, 101, 0.94));
  box-shadow: inset 0 0 12px rgba(255,255,255,0.2), 0 12px 35px rgba(0,0,0,0.2);
  text-align: left;
}

.feedback-card:nth-child(1),
.feedback-card:nth-child(3) {
  border-color: rgba(49, 153, 229, 0.62);
}

.feedback-card:nth-child(2) {
  border-color: rgba(78, 185, 247, 0.88);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.2), 0 16px 45px rgba(55, 176, 244, 0.12);
}

.feedback-quote {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  font-weight: 900;
  color: #f4c75a;
}

.feedback-text {
  margin: 10px 0 34px;
  min-height: 86px;
  font-size: 1.12rem;
  line-height: 1.45;
  color: #eefaff;
}

.feedback-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.feedback-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(#fff, #b0d3f1);
  color: #0d4170;
  font-size: 26px;
  border: 2px solid #ffffff;
}

.feedback-author {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
}

.feedback-location {
  margin-top: 2px;
  font-size: 0.82rem;
  color: #c2edff;
}

.star-row {
  margin-left: auto;
  color: #f2bd3b;
  letter-spacing: 2px;
  font-size: 0.96rem;
}

.quality-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.quality-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 86px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.16);
  color: #ffffff;
  text-align: left;
}

.quality-item > div {
  flex: 1;
  min-width: 0;
}

.quality-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f2bd3b;
  color: #f2bd3b;
  font-weight: 900;
  font-size: 1rem;
  background: rgba(10, 43, 73, 0.55);
  flex-shrink: 0;
}

.quality-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.quality-subtitle {
  margin-top: 4px;
  color: #b9ddec;
  font-size: 0.78rem;
  line-height: 1.3;
}

.project-card img,
.group-card-image {
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.glass {
  background: oklch(0.99 0.005 250 / 0.9);
  backdrop-filter: blur(6px);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Solar Calculator Dynamic Results & Modal Enhancements */
#savingsChartCanvas {
  width: 100% !important;
  height: 100% !important;
}

#leadModal {
  transition: opacity 0.25s ease;
}

/* Keep customer reviews accessible on small touch screens. */
.feedback-swipe-hint {
  display: none;
}

@media (max-width: 768px) {
  .customer-feedback-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .customer-feedback-wrap > :not(.feedback-cards) {
    margin-left: 24px;
    margin-right: 24px;
  }

  .feedback-cards {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    padding: 0 24px 12px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }

  .feedback-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  .feedback-swipe-hint {
    display: block;
    margin-top: 14px !important;
    color: #d2edff !important;
    font-size: 0.8rem;
    font-weight: 700;
  }

  .quality-strip {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }
}

