/* ---------- Design tokens ---------- */
:root {
  --color-green: #6db981;
  --color-navy: #1c244b;
  --color-text: #3e3e3e;
  --color-black: #111111;
  --color-white: #ffffff;
  --color-footer-bg: #c38b55;
  --color-hero-overlay: rgba(84, 89, 95, 0.6);
  --color-input-border: #69727d;
  --color-input-text: #7a7a7a;

  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-ui: "Roboto", sans-serif;
  --font-base: "Manrope", sans-serif;

  --container-max: 1790px;
  --container-pad: 3%;
}

@media (max-width: 1024px) {
  :root {
    --container-pad: 5%;
  }
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: var(--color-black);
  background: var(--color-white);
}

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

ul {
  margin: 0;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (max-width: 767px) {
  .container {
    max-width: min(100%, 767px);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: -0.1px;
  color: var(--color-white);
  background-color: var(--color-green);
  padding: 12px 24px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 1080px;
  display: flex;
  align-items: center;
  padding-block: 60px;
  background-image: url("/assets/images/hero-bg.jpeg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-hero-overlay);
}

@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

@media (max-width: 1024px) {
  .hero__inner {
    flex-wrap: wrap;
  }
}

.hero__content {
  flex: 1 1 55%;
  max-width: 772px;
}

.hero__logo {
  width: 463px;
  max-width: 100%;
  margin-bottom: 30px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: 42px;
  }
}

@media (max-width: 767px) {
  .hero__title {
    font-size: 28px;
    line-height: 1.1;
  }
}

.hero__text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  max-width: 656px;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .hero__text {
    font-size: 14px;
    line-height: 1.5;
  }
}

.hero__media {
  flex: 1 1 40%;
  max-width: 514px;
}

.hero__media img {
  border-radius: 20px;
}

@media (max-width: 1024px) {
  .hero__media {
    max-width: none;
    flex-basis: 100%;
  }
}

/* ---------- Section heading ---------- */
.section-heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .section-heading {
    font-size: 45px;
  }
}

@media (max-width: 767px) {
  .section-heading {
    font-size: 28px;
  }
}

/* ---------- Why choose ---------- */
.why-choose {
  margin-top: 12%;
  padding-block: 40px;
}

@media (max-width: 1024px) {
  .why-choose {
    margin-top: 20%;
  }
}

@media (max-width: 767px) {
  .why-choose {
    margin-top: 25%;
  }
}

.icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 10px;
}

@media (max-width: 767px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }
}

.icon-box {
  text-align: center;
  padding: 0 20px;
}

.icon-box__icon {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  color: var(--color-green);
}

.icon-box__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.icon-box__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.125;
  letter-spacing: -0.1px;
  color: var(--color-green);
  margin: 32px 0;
}

.icon-box__desc {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.1px;
  color: var(--color-text);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 1023px) {
  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-strip__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  cursor: zoom-in;
}

.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* ---------- Solar supply ---------- */
.solar-supply {
  margin-top: 12%;
  padding-block: 40px;
}

@media (max-width: 1024px) {
  .solar-supply {
    margin-top: 15%;
  }
}

@media (max-width: 767px) {
  .solar-supply {
    margin-top: 25%;
  }
}

.solar-supply__inner {
  display: flex;
  gap: 80px;
}

@media (max-width: 1024px) {
  .solar-supply__inner {
    flex-direction: column-reverse;
    flex-wrap: wrap;
    gap: 40px;
  }
}

.solar-supply__text,
.solar-supply__form-col {
  flex: 1 1 50%;
}

.solar-supply__heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-green);
  margin-bottom: 25px;
}

@media (max-width: 1024px) {
  .solar-supply__heading {
    font-size: 45px;
  }
}

@media (max-width: 767px) {
  .solar-supply__heading {
    font-size: 28px;
  }
}

.solar-supply__sub-heading {
  font-family: var(--font-heading);
  font-size: clamp(18px, 16.9px + 0.36vw, 22px);
  font-weight: 400;
  line-height: 1.125;
  color: var(--color-text);
  margin: 22px 0;
}

.solar-supply__list {
  list-style: disc;
  padding-left: 40px;
  margin: 16px 0;
}

.solar-supply__list li {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.solar-supply__body {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text);
  margin: 16px 0;
}

.solar-supply__image {
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
}

.solar-supply__form-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-green);
  text-align: center;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  .solar-supply__form-heading {
    font-size: 45px;
  }
}

@media (max-width: 767px) {
  .solar-supply__form-heading {
    font-size: 28px;
  }
}

.solar-supply__form-intro {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 300;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 25px;
}

/* ---------- Form ---------- */
.form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form__field {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
}

@media (max-width: 767px) {
  .form__field {
    flex-basis: 100%;
  }
}

.form__field--full {
  flex-basis: 100%;
}

.form__input,
.form__textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--color-input-text);
  background: var(--color-white);
  border: 1px solid var(--color-input-border);
  border-radius: 20px;
  padding: 10px 14px;
}

.form__textarea {
  border-radius: 10px;
  resize: vertical;
  min-height: 96px;
}

.form__submit {
  flex-basis: 100%;
  width: 100%;
  border-radius: 20px;
  padding-block: 12px;
}

/* ---------- About ---------- */
.about {
  background-color: #ebebeb;
  padding-block: 54px;
  margin-top: 8%;
}

@media (max-width: 1024px) {
  .about {
    padding-block: 0;
    margin-top: 15%;
  }
}

@media (max-width: 767px) {
  .about {
    margin-top: 25%;
  }
}

.about__inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

@media (max-width: 767px) {
  .about__inner {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.about__media {
  flex: 0 0 38%;
}

@media (max-width: 767px) {
  .about__media {
    flex-basis: 88%;
    width: 88%;
    margin-top: 40px;
  }
}

.about__media img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 6px solid var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about__content {
  flex: 1 1 auto;
}

.about__heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-black);
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .about__heading {
    font-size: 45px;
  }
}

@media (max-width: 767px) {
  .about__heading {
    font-size: 28px;
  }
}

.about__content p {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text);
  margin: 16px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  padding-block: 40px;
}

@media (max-width: 1024px) {
  .site-footer {
    margin-top: 15%;
  }
}

@media (max-width: 767px) {
  .site-footer {
    margin-top: 0;
  }
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.site-footer__brand .hero__logo {
  width: 315px;
  margin-bottom: 15px;
}

.site-footer p {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 8px;
}

@media (max-width: 1024px) {
  .site-footer p {
    font-size: 14px;
  }
}

.site-footer__col-title {
  margin-bottom: 8px;
}

.site-footer__legal {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-heading);
  font-size: 14px;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Legal page ---------- */
.legal-page {
  max-width: 800px;
  margin-inline: auto;
  padding-block: 80px;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.legal-page__updated {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 40px 0 12px;
}

.legal-page p,
.legal-page li {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
}

.legal-page a {
  color: var(--color-green);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}
