html,
body,
body * {
  font-family: "Prompt", sans-serif !important;
}

code,
pre,
kbd,
samp,
code *,
pre *,
kbd *,
samp * {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace !important;
}

/* Hide the top navigation bar. */
body header {
  display: none !important;
}

/* Hero image supplied for the server version. */
body section:first-of-type > .absolute.inset-0 {
  background-image: url("/assets/hero-factory-solar.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Hero typography and composition. */
body section:first-of-type .hero-copy {
  gap: 2rem !important;
}

body section:first-of-type .hero-copy > div {
  gap: 1.75rem !important;
}

body section:first-of-type .hero-copy h1 {
  font-size: clamp(3rem, 5.6vw, 6.75rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.035em !important;
  max-width: 760px;
}

body section:first-of-type .hero-copy h1 .hero-kicker,
body section:first-of-type .hero-copy h1 .hero-closing {
  display: block;
  font-size: 0.58em;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body section:first-of-type .hero-copy h1 .hero-main {
  display: block;
  margin: 0.22em 0;
}

body section:first-of-type .hero-copy h1::after {
  content: "";
  display: block;
  width: min(310px, 48%);
  height: 5px;
  margin-top: 0.38em;
  background: #fff;
}

body section:first-of-type .hero-copy p {
  max-width: 720px !important;
  font-size: clamp(1.35rem, 2.15vw, 2.25rem) !important;
  line-height: 1.28 !important;
  font-weight: 500 !important;
}

body section:first-of-type .hero-copy > button {
  display: none !important;
}

@media (max-width: 767px) {
  body section:first-of-type .hero-copy h1 {
    font-size: clamp(3rem, 15vw, 5rem) !important;
  }

  body section:first-of-type .hero-copy p {
    font-size: 1.25rem !important;
  }
}

.quotation-honey {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.quotation-form-status {
  min-height: 1.5rem;
  margin: 0 !important;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.quotation-form-status.is-success {
  color: #047857;
}

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

#contact form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Note shown at the bottom of the preliminary calculator result. */
[data-loc$="Home.tsx:233"]::after {
  content: "ผลลัพธ์เป็นการประเมินเบื้องต้น กรุณาติดต่อทีมงานเพื่อออกแบบระบบที่เหมาะสมอีกครั้ง";
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(6, 102, 204, 0.25);
  color: #607080;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Customer review slider above the quotation section. */
.review-slider-section {
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) 1rem 1rem;
  background: #fff;
}

.review-slider-container {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.review-slider-section h2 {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
  color: #173b91;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
}

.review-slider-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
}

.review-slider-viewport {
  width: 100%;
  overflow: hidden;
}

.review-slider-track {
  display: flex;
  transition: transform 500ms ease;
  will-change: transform;
}

.review-slide {
  flex: 0 0 25%;
  margin: 0;
  padding: 0 clamp(0.4rem, 0.8vw, 0.75rem);
}

.review-slide img {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 560px);
  border-radius: 1.25rem;
  background: #f3f6fa;
  object-fit: contain;
}

.review-slider-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(2.5rem, 4vw, 3.25rem);
  height: clamp(2.5rem, 4vw, 3.25rem);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #173b91;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.review-slider-button:hover {
  transform: scale(1.06);
  background: #06c;
}

.review-slider-button:focus-visible,
.review-slider-dot:focus-visible {
  outline: 3px solid rgba(0, 166, 255, 0.5);
  outline-offset: 3px;
}

.review-slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.review-slider-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 180ms ease, border-radius 180ms ease, background-color 180ms ease;
}

.review-slider-dot.is-active {
  width: 1.75rem;
  border-radius: 999px;
  background: #173b91;
}

@media (max-width: 1023px) {
  .review-slide {
    flex-basis: 50%;
  }
}

@media (min-width: 1024px) {
  .review-slider-section h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 639px) {
  .review-slider-section {
    padding-inline: 0.5rem;
  }

  .review-slider-shell {
    gap: 0.25rem;
  }

  .review-slide {
    flex-basis: 100%;
    padding-inline: 0.35rem;
  }

  .review-slide img {
    height: min(128vw, 540px);
    border-radius: 1rem;
  }

  .review-slider-button {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-slider-track {
    transition: none;
  }
}

/* Supplied installation process cards. */
.original-installation-grid {
  display: none !important;
}

.installation-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: 100%;
}

.installation-image-grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1023px) {
  .installation-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .installation-image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Quotation section with the supplied solar-home background. */
#contact {
  width: calc(100% - 2.5rem);
  max-width: 1880px;
  margin: 5rem auto;
  padding-block: clamp(3rem, 5vw, 5.5rem) !important;
  overflow: hidden;
  border-radius: 1.5rem;
  background-image: url("/assets/quotation-background.png") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

#contact > .container > .grid {
  gap: clamp(2rem, 5vw, 5rem) !important;
}

#contact h2 {
  font-size: clamp(2.25rem, 4vw, 4rem) !important;
  line-height: 1.05 !important;
}

#contact [data-slot="card"] {
  background: rgba(255, 255, 255, 0.94) !important;
  border-radius: 1.5rem !important;
}

@media (max-width: 767px) {
  #contact {
    width: calc(100% - 1rem);
    margin: 3rem auto;
    padding-block: 3rem !important;
    border-radius: 1rem;
    background-position: 38% center !important;
  }
}

/* Contact buttons directly below the hero. */
.social-contact-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: min(100%, 760px);
  margin: -2.6rem auto 4.25rem;
  position: relative;
  z-index: 10;
}

.social-contact-bar img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .social-contact-bar {
    grid-template-columns: 1fr;
    width: min(100%, 420px);
    gap: 0.75rem;
    margin: -2.25rem auto 3rem;
  }
}

/* Supplied image cards for the Why Nexora section. */
.original-feature-grid {
  display: none !important;
}

.feature-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  width: 100%;
}

.feature-image-grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1023px) {
  .feature-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-image-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Inverter brand logos above the recommended packages. */
#services {
  display: none !important;
}

#packages {
  background: #fff !important;
}

.package-brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: min(100%, 980px);
  margin: -1.5rem auto 3.5rem;
}

.brand-logo-item {
  appearance: none;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-logo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-item:hover {
  transform: translateY(-2px);
}

.brand-logo-item.is-active {
  border-color: #173b91;
  box-shadow: 0 0 0 3px rgba(23, 59, 145, 0.12);
}

.brand-logo-item:focus-visible {
  outline: 3px solid rgba(0, 166, 255, 0.45);
  outline-offset: 3px;
}

.original-package-grid {
  display: none !important;
}

.package-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  width: 100%;
  transition: opacity 160ms ease, transform 160ms ease;
}

.package-image-grid.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

.package-image-grid img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .package-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -1.25rem auto 2.5rem;
  }

  .package-image-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
