/* ===== Residential EV Charging solution page ===== */

/* Hero */
.r-hero {
  position: relative;
  height: min(956px, calc(100vh - 80px));
  margin-top: 80px;
  overflow: hidden;
  color: #fff;
}

.r-hero__bg {
  position: absolute;
  inset: 0;
}

.r-hero__bg img {
  position: absolute;
  width: 100%;
  height: 105.15%;
  top: -2.57%;
  left: 0;
  max-width: none;
  object-fit: cover;
  animation: heroZoom 14s ease-out forwards;
}

.r-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 4, 4, 0.71) 0%,
    rgba(0, 0, 0, 0.41) 100%
  );
}

.r-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
}

.r-hero__content .p-breadcrumb {
  position: absolute;
  top: 91px;
  left: 20px;
  right: 20px;
  margin-bottom: 0;
}

.r-hero__content .p-breadcrumb a.is-current {
  color: #fff;
}

.r-hero__main {
  margin-top: auto;
  padding-bottom: 206px;
  max-width: 700px;
}

.r-hero__title {
  font-family: var(--font-inter);
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1.2px;
  margin-bottom: 33px;
}

.r-hero__desc {
  font-family: var(--font-inter);
  font-size: 20px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 672px;
  margin-bottom: 40px;
}

.r-hero__cta {
  align-self: flex-start;
  display: inline-flex;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.7px;
  line-height: 16px;
  border-radius: 2px;
  box-shadow: none;
  text-transform: uppercase;
}

.r-hero__cta:hover {
  box-shadow: 0 10px 18px -4px rgba(17, 168, 78, 0.35);
}

/* Intro */
.r-intro {
  padding: 104px 0 120px;
}

.r-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
}

.r-intro__title {
  font-family: var(--font-inter);
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: #111827;
  margin-bottom: 31px;
}

.r-intro__text {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.r-intro__text p {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 29.25px;
  color: #4b5563;
  margin: 0;
}

.r-intro__text a {
  color: #005581;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Image collage */
.r-intro__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 319.5px 276px;
  gap: 16px;
  height: 611.5px;
}

.r-intro__large {
  position: relative;
  grid-column: 1 / -1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.r-intro__small {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.r-intro__large img {
  position: absolute;
  left: 0;
  top: -16.32%;
  width: 100%;
  height: 132.64%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.r-intro__small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.r-intro__collage:hover .r-intro__large img,
.r-intro__collage:hover .r-intro__small img {
  transform: scale(1.04);
}

/* Related Products */
.r-related {
  padding: 0 0 100px;
}

.r-related__title {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  color: #333;
  text-align: center;
  margin-bottom: 63px;
}

.r-related__swiper {
  overflow: hidden;
  padding-bottom: 0;
}

.r-related__swiper .swiper-wrapper {
  align-items: stretch;
}

.r-related__swiper .swiper-slide {
  height: auto;
}

.r-card {
  background: #fff;
  border: 1px solid #bec9c1;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.r-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.15);
}

.r-card__media {
  display: block;
  height: 412px;
  overflow: hidden;
  background: #f3f4f6;
}

.r-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.r-card:hover .r-card__media img {
  transform: scale(1.04);
}

.r-card__body {
  margin-top: 42px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.r-card__tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--green);
  color: #fff;
  font-family: var(--font-hanken);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 15px;
  padding: 8px 8px 9px;
  margin-bottom: 16px;
}

.r-card__body h3 {
  font-family: var(--font-hanken);
  font-size: 24px;
  font-weight: 700;
  line-height: 33.6px;
  text-transform: uppercase;
  color: #1a1c1e;
  margin-bottom: 16px;
}

.r-card__body p {
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 26px;
  color: #3f4943;
  margin-bottom: 24px;
  flex: 1;
}

.r-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  border-top: 1px solid rgba(190, 201, 193, 0.3);
  padding-top: 17px;
  font-family: var(--font-hanken);
  font-size: 16px;
  line-height: 24px;
  color: var(--green);
  transition: gap 0.25s ease;
}

.r-card:hover .r-card__link {
  gap: 8px;
}

.r-card__link img {
  width: 9.333px;
  height: 9.333px;
}

.r-related__bar {
  position: relative;
  width: min(639px, 100%);
  height: 2px;
  margin: 80px auto 0;
  background: #bec9c1;
  overflow: hidden;
}

.r-related__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 37%;
  background: var(--green);
  box-shadow: 6px 0 10px rgba(17, 168, 78, 0.35);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

/* Quote form */
.r-quote {
  background: #f9f9fc;
  padding: 97px 0 80px;
  scroll-margin-top: 80px;
}

.r-quote__head {
  text-align: center;
  margin-bottom: 56px;
}

.r-quote__head h2 {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  color: #333;
  margin-bottom: 16px;
}

.r-quote__head p {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 24px;
  color: #4b5563;
  max-width: 768px;
  margin: 0 auto;
}

.r-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1300px;
}

.r-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.r-field input,
.r-field textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  background: #fff;
  padding: 16px 13px;
  font-family: var(--font-inter);
  font-size: 16px;
  color: #1a1c1e;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.r-field input {
  height: 53px;
}

.r-field input::placeholder,
.r-field textarea::placeholder {
  color: #6b7280;
}

.r-field textarea {
  min-height: 170px;
  resize: vertical;
  padding-top: 13px;
  line-height: 24px;
}

.r-field input:focus,
.r-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.12);
}

.r-field input.is-invalid,
.r-field textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.r-verify {
  padding-top: 16px;
  padding-bottom: 8px;
}

.r-verify__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-inter);
  font-size: 14px;
  line-height: 20px;
  color: #374151;
}

.r-verify__label strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: #0f2e50;
}

.r-verify__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.3s ease;
}

.r-verify__refresh:hover,
.r-verify__refresh.is-spinning {
  transform: rotate(90deg);
}

.r-verify__refresh.is-spinning {
  animation: rCaptchaSpin 0.4s ease;
}

@keyframes rCaptchaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.r-verify__refresh img {
  width: 13.333px;
  height: 13.333px;
  display: block;
}

.r-form__submit {
  width: 100%;
  height: 60px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.r-form__submit:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.r-form__submit:disabled,
.r-form__submit.is-sent {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

/* Interested cards — full bleed Swiper */
.r-interested {
  padding: 102px 0 0;
  background: #fff;
}

.r-interested__title {
  font-family: var(--font-inter);
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  color: #333;
  text-align: center;
  margin-bottom: 65px;
}

.r-interested__swiper {
  width: 100%;
  overflow: hidden;
}

.r-interested__swiper .swiper-slide {
  height: 476px;
  box-sizing: border-box;
}

.r-interest-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 476px;
  overflow: hidden;
  color: #fff;
}

.r-interest-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.r-interest-card:hover > img {
  transform: scale(1.05);
}

.r-interest-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.r-interest-card__overlay span {
  display: block;
  font-family: var(--font-noto);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #349972;
  line-height: 20px;
  margin-bottom: 8px;
}

.r-interest-card__overlay h3 {
  font-family: var(--font-noto);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #fff;
  margin: 0;
}

.r-interested__bar {
  position: relative;
  width: min(639px, 100%);
  height: 2px;
  margin: 62px auto 104px;
  background: #bec9c1;
  overflow: hidden;
}

.r-interested__bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 37%;
  background: var(--green);
  box-shadow: 6px 0 10px rgba(17, 168, 78, 0.35);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: width;
}

.mobile-nav--light .mobile-nav__link.is-active {
  color: #11a84e;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
  .r-hero {
    height: auto;
    min-height: 640px;
  }

  .r-hero__main {
    padding: 160px 0 80px;
  }

  .r-intro__grid {
    grid-template-columns: 1fr;
  }

  .r-intro__collage {
    height: auto;
    grid-template-rows: 240px 200px;
    max-width: 560px;
    margin: 0 auto;
  }

  .r-hero__title,
  .r-intro__title,
  .r-related__title,
  .r-quote__head h2,
  .r-interested__title {
    font-size: 32px;
    line-height: 40px;
  }

  .r-card__media {
    height: 320px;
  }

  .r-interest-card {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .r-hero__content .p-breadcrumb {
    position: static;
    margin-top: 24px;
  }

  .r-hero__main {
    padding: 40px 0 56px;
  }

  .r-hero__title {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 20px;
  }

  .r-hero__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .r-intro {
    padding: 64px 0;
  }

  .r-intro__grid {
    gap: 40px;
  }

  .r-intro__text p {
    font-size: 16px;
    line-height: 26px;
  }

  .r-form__row {
    grid-template-columns: 1fr;
  }

  .r-related {
    padding-bottom: 64px;
  }

  .r-related__title {
    margin-bottom: 40px;
  }

  .r-quote {
    padding: 64px 0;
  }

  .r-interested {
    padding-top: 64px;
  }

  .r-interested__title {
    margin-bottom: 40px;
  }

  .r-interested__bar {
    margin: 40px auto 64px;
  }
}
