/* =========================
   Basic Reset & Body
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  color: #091833;
  background-color: #091833;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   Navbar
========================= */
.navbar {
  background: #091833;
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar.hide {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #d47728;
}

.nav-links a.active {
  border-bottom: 2px solid #d47728;
  padding-bottom: 0.3rem;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================
   Hero Section
========================= */
.hero-section h1 span {
  color: #d47728;
}

.hero-section .btn {
  font-size: 1rem;
  padding: 0.9rem 2.5rem;
}


.hero:before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  background-color: #091833;
  color: #fff;
  padding: 6rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* =========================
   Buttons
========================= */
.btn {
  padding: 0.75rem 2rem;
  background: #091833;
  color: white;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn:hover {
  background: #d47728;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 0.75rem 2.5rem 0.75rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-whatsapp::after {
  content: "\2192";
  position: absolute;
  right: 1rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  padding-right: 3rem;
}

.btn-whatsapp:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   Content Sections
========================= */
.content-section {
  padding: 4rem 0;
}

/* =========================
   Grid-3 Cards
========================= */
.grid-3cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

/* =========================
   Cards
========================= */
.card {
  padding: 3rem 2rem;
  background-color: #d47728;
  border-radius: 22px;
  text-align: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.card-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  display: block;
  margin:0 auto 1.5rem;
  object-fit: contain;
  padding: 0 5vw;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.card .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #d47728;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}

.card .btn:hover {
  background-color: #f1f1f1;
  color: #c0611f;
}

/* Counter Section */
.counter-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 1rem;
  text-align: center;
}

.counter-box {
  flex: 1 1 200px;
  color: white;
}

.counter-box .count {
  font-size: 3rem;
  font-weight: bold;
  color: #ffffff;
}

.counter-box .medium {
  font-size: 3rem;
  color: #d47728;
  margin-left: 0.2rem;
}

.counter-box .label {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #cccccc;
}

/* Detail List Style */
.detail-list {
  margin-top: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: #eee;
  line-height: 1.8;
}

.detail-list li {
  margin-bottom: 0.5rem;
}

/* Intro Text */
.intro {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1.2rem;
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   Footer
========================= */
.footer {
  background-color: #000;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* =========================
   Chatbot
========================= */
.chat-container {
  width: 400px;
  max-height: 90vh;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  overflow: hidden;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

.chat-container.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #091833;
  color: white;
  padding: 0.75rem 1rem;
  font-weight: bold;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  border-bottom: 1px solid #ccc;
  font-size: 0.95rem;
}

#chat-form {
  display: flex;
  border-top: 1px solid #ccc;
}

#user-input {
  flex: 1;
  padding: 1rem;
  border: none;
  font-size: 1rem;
}

button[type="submit"] {
  padding: 1rem;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
}

.chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #d47728;
  color: white;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease;
}

.chat-toggle:hover {
  background: #c0611f;
}

/* =========================
   Solar Savings Calculator
========================= */
#savings-calculator .container {
  background-color: #0b223d;
  border-radius: 20px;
  padding: 3rem 2rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  max-width: 600px;
  margin: auto;
  color: #fff;
  transition: transform 0.3s ease;
}

#savings-calculator h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

#savings-calculator p {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
}

#solar-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#solar-form label {
  font-weight: bold;
  color: #ffffff;
  font-size: 1rem;
}

#solar-form input[type="number"] {
  padding: 0.75rem;
  border-radius: 10px;
  border: none;
  background-color: #ffffff;
  color: #091833;
  font-size: 1rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.1);
}

#solar-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #d47728;
}

#solar-form button.btn {
  background-color: #d47728;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

#solar-form button.btn:hover {
  background-color: #c0611f;
  transform: translateY(-2px);
}

/* Result Box */
#calc-result {
  margin-top: 2rem;
  background-color: #ffffff;
  color: #091833;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  text-align: center;
  font-size: 1.2rem;
  min-height: 50px;
}



/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #d47728;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 1rem;
    width: 200px;
    border-radius: 0 0 0 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 500px) {
  .chat-container {
    width: 84%;
    bottom: 10px;
    right: 2.5%;
  }
}
