@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --primary-color: #ff7100;
  --bg-color: #e7efc7;
  --dark-color: #000000;
  --white-color: #fff;
  --box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  --fs-base: clamp(16px, 1.5vw, 20px); /* Body text */
  --fs-h6: clamp(20px, 1.88vw, 25px);
  --fs-h5: clamp(25px, 2.35vw, 31.25px);
  --fs-h4: clamp(20px, 21px, 39.06px);
  --fs-h3: clamp(23px, 24px, 48.83px);
  --fs-h2: clamp(1.6rem, 2.5rem, 1.6rem);
  --fs-h1: clamp(1.6rem, 2.5rem, 1.6rem);
  /* --fs-h1: clamp(34px, 35px, 76.29px); */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  outline: none;
  border: none;
}

body {
  font-family: "Montserrat", serif;
  font-size: var(--fs-base);
  line-height: 1.6;
}

h6 {
  font-size: var(--fs-h6);
}

h5 {
  font-size: var(--fs-h5);
}

h4 {
  font-size: var(--fs-h4);
}

h3 {
  font-size: var(--fs-h3);
}

h2 {
  font-size: var(--fs-h2);
}

h1 {
  font-size: var(--fs-h1);
}

@media screen and (min-width: 768px) {
  body {
    --fs-base: 1.3rem;
  }

  h1,
  h2 {
    font-size: 3rem;
  }
}

@media screen and (min-width: 888px) {
  body {
    --fs-base: 1rem;
  }

  h1,
  h2 {
    font-size: 2.5rem;
  }
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 90%;
  margin: 0 auto;
}

.container-fluid {
  max-width: 100%;
  padding: 0 5%;
}

nav {
  position: fixed;
  background-color: var(--dark-color);
  left: 0;
  top: 10px;
  width: 100%;
  height: 8vh;
  padding: 10px 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
  z-index: 999;
}

.nav-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo a img {
  width: 300px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  transition: all 0.3s;
}

.nav-link {
  color: var(--white-color);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.nav-link:hover {
  border-bottom: 2px solid var(--primary-color);
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content.show {
  display: block;
}

.menu-toggle {
  display: none;
}

.nav-links.show {
  display: flex;
}

@media screen and (max-width: 915px) {
  nav {
    height: 13vh;
  }
  .nav-items {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  nav {
    padding: 10px;
  }

  .nav-items {
    flex-direction: row;
  }

  .logo a img {
    width: 220px;
  }

  .nav-links {
    display: none;
    position: absolute;
    flex-direction: column;
    top: 12vh;
    background-color: var(--dark-color);
    left: 0;
    width: 100%;
    align-items: flex-end;
    padding: 50px 20px;
  }

  .nav-link {
    border-bottom: 2px solid var(--primary-color);
  }

  .dropdown-content {
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    max-width: 90vw;
  }

  .menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    font-size: var(--fs-h3);
    border-radius: 10px;
    cursor: pointer;
    background-color: var(--white-color);
    color: var(--primary-color);
  }
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  color: var(--white-color);
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  width: 100%;
}

.overlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 3rem 0;
  max-width: 600px;
}

.btn {
  width: fit-content;
  padding: 10px 2rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid transparent;
  transition: all 0.3s;
}

.btn-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.3s;
}

.btn-primary:hover {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid transparent;
}

.what-we-do {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--bg-color);
}

.what-we-do div {
  max-width: 600px;
  margin: 0 auto;
}

.stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
}

.stat-item {
  font-weight: 600;
  font-size: 1.2rem;
}

@media screen and (min-width: 768px) {
  .stats {
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    border-right: 2px solid var(--primary-color);
    padding: 0 10px;
  }
}

.title {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.title p {
  text-align: center;
}

@media screen and (min-width: 768px) {
  .title p {
    width: 50ch;
  }
}

.services,
.products {
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.service-items,
.product-items {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

@media screen and (min-width: 768px) {
  .service-items,
  .product-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 888px) {
  .service-items,
  .product-items {
    grid-template-columns: repeat(3, 1fr);
  }
}

.products {
  background-color: var(--bg-color);
  padding-top: 3rem;
}

.product-card {
  background-color: var(--white-color);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-img img {
  width: 100%;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price {
  font-weight: 600;
  font-size: 1.3rem;
}

.community {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--primary-color);
  margin-top: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow);
  border-radius: 10px;
  padding: 2rem 0;
  color: var(--white-color);
}

.community .btn-secondary {
  border: 2px solid var(--white-color);
  color: var(--white-color);
}

.community .btn-secondary:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.page-header {
  margin-top: 13vh;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  padding: 1rem 0;
  color: var(--white-color);
  text-align: center;
}

.page-header p {
  padding: 0 10px;
}

@media screen and (min-width: 768px) {
  .page-header p {
    width: 50ch;
  }
}

@media screen and (min-width: 915px) {
  .page-header {
    margin-top: 8vh;
  }
}

footer {
  padding: 3rem 0;
}

.footer-items {
  display: grid;
  gap: 2rem;
}

.footer-header img {
  width: 100%;
}

.footer-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-items {
  display: flex;
  gap: 0.5rem;
}

.social-items a {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transition: all 0.3s;
}

.social-items a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.footer-header {
  font-weight: 800;
}

.contact-items,
.quick-link-items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-items p span {
  margin-right: 10px;
  font-size: 1.2rem;
}

.quick-link-items a {
  color: var(--dark-color);
  transition: all 0.3s;
}

.quick-link-items a:hover {
  transform: translateX(10px);
}

.credits {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  .footer-items {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "head head"
      "contact quick";
  }

  .footer-title {
    grid-area: head;
  }

  .footer-contact {
    grid-area: contact;
  }

  .quick-links {
    grid-area: quick;
  }
}

@media screen and (min-width: 915px) {
  .footer-items {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "head contact quick";
    gap: 3rem;
  }
}

.solars {
  margin-top: 13vh;
}

@media screen and (min-width: 888px) {
  .solars {
    margin-top: 8vh;
  }
}

/* Product Detail Page */
.product-details {
  display: grid;
  gap: 2rem;
}

.product-summary,
.product-contents {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-img img {
  border-radius: 10px;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
}

.product-content p {
  font-weight: 500;
}

.product-content p::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: black;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

@media screen and (min-width: 888px) {
  .product-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Join Community Page */
.general-group {
  font-weight: 800;
}

.join-community {
  display: grid;
  gap: 2rem;
  grid-template-areas: 
  "form"
  "img";
  background-color: var(--bg-color);
  box-shadow: var(--box-shadow);

}

.group-img img {
  width: 100%;
  grid-area: img;
}

.community-form {
  grid-area: form;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 10px;
}

.form-groups {
  display: flex;
  flex-direction: column;
  /* gap: 2rem; */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem 0;
  /* background-color: var(--primary-color); */
}

.form-group label {
  font-weight: 800;
}

.required {
  color: red;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  font-size: 1.3rem;
}

.form-group textarea {
  resize: none;
  height: 150px;
}

.form-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: .7rem;
}

@media screen and (min-width: 888px) {
  .join-community {
    grid-template-areas: 
  "img form";
  padding: 0 5% 0 0;
  }

}

.page-header .btn-primary {
  background-color: var(--primary-color);
  border: 2px solid var(--white-color);
  margin-top: 10px;
  transition: all .3s;
}

.page-header .btn-primary:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}