/* =========================================================
   FITIWEBS SOLAR CALCULATOR
   RESPONSIVE CSS
   ========================================================= */


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family:
    Arial,
    Helvetica,
    sans-serif;

  line-height: 1.6;
  color: #17221b;
  background: #ffffff;
}


a {
  text-decoration: none;
}


.container {
  width: min(1150px, 92%);
  margin: auto;
}


.section {
  padding: 80px 0;
}


.light {
  background: #f5f8f6;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  width: min(1150px, 92%);
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 22px 0;
}


.logo {
  font-size: 28px;
  font-weight: 900;
  color: white;
}


.logo span {
  color: #8cffb0;
}


.nav-button {
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 30px;
  color: white;
  font-weight: bold;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 650px;

  background:
    linear-gradient(
      rgba(3, 42, 22, .84),
      rgba(2, 62, 31, .88)
    );

  color: white;

  display: flex;
  flex-direction: column;
}


.hero-content {
  width: min(900px, 92%);
  margin: auto;
  text-align: center;
  padding: 70px 0;
}


.badge,
.section-label {
  display: inline-block;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;

  color: #08783f;

  margin-bottom: 15px;
}


.hero .badge {
  color: #aaffc4;
}


.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  margin-bottom: 25px;
}


.hero p {
  max-width: 750px;
  margin: auto;

  font-size: 19px;
  opacity: .95;
}


.hero-buttons {
  margin-top: 35px;

  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}


.btn {
  display: inline-block;

  padding: 14px 24px;

  border-radius: 8px;

  font-weight: 800;

  transition: .2s ease;
}


.btn:hover {
  transform: translateY(-2px);
}


.primary {
  background: #0a9b50;
  color: white;
}


.secondary {
  background: white;
  color: #075c32;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}


.section-heading h2,
.intro h2,
.content h2 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin-bottom: 18px;
}


.section-heading p {
  color: #66736b;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
  max-width: 850px;
  margin: auto;
  text-align: center;
}


.intro p {
  margin-bottom: 15px;
  color: #59665e;
}


/* =========================================================
   STEPS
   ========================================================= */

.steps {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 25px;
}


.step {
  background: white;

  padding: 30px;

  border-radius: 15px;

  border: 1px solid #e2e9e4;

  box-shadow:
    0 10px 35px rgba(0,0,0,.05);
}


.step-number {
  font-size: 30px;
  font-weight: 900;
  color: #0a9b50;

  margin-bottom: 10px;
}


.step h3 {
  margin-bottom: 10px;
}


.step p {
  color: #68746d;
}


/* =========================================================
   CALCULATOR
   ========================================================= */

.calculator-card {
  max-width: 1050px;
  margin: auto;

  background: white;

  padding: 35px;

  border-radius: 20px;

  box-shadow:
    0 15px 60px rgba(0,0,0,.08);

  border: 1px solid #e1e8e3;
}


.form-group {
  margin-bottom: 25px;
}


label {
  display: block;

  font-weight: 800;

  margin-bottom: 8px;
}


input,
select {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid #ccd7cf;

  border-radius: 8px;

  font-size: 16px;

  background: white;
}


input:focus,
select:focus {
  outline: 2px solid #8eeeb3;
  border-color: #0a9b50;
}


.calculator-title {
  margin: 30px 0 15px;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}


.appliance-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}


.appliance-table th,
.appliance-table td {
  padding: 13px;

  border-bottom: 1px solid #e3e9e5;

  text-align: left;
}


.appliance-table th {
  background: #f0f5f2;
  font-size: 14px;
}


.remove-btn {
  border: 0;

  background: #ffe9e9;

  color: #c62828;

  padding: 7px 10px;

  border-radius: 6px;

  cursor: pointer;
}


/* =========================================================
   ADD APPLIANCE
   ========================================================= */

.add-appliance {
  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 10px;

  margin-bottom: 25px;
}


.custom-box {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-bottom: 25px;
}


.hidden {
  display: none !important;
}


/* =========================================================
   SETTINGS
   ========================================================= */

.settings-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 20px;
}


/* =========================================================
   CALCULATE BUTTON
   ========================================================= */

.calculate-button {
  width: 100%;

  border: 0;

  padding: 17px;

  border-radius: 10px;

  background: #087d40;

  color: white;

  font-size: 17px;

  font-weight: 900;

  cursor: pointer;

  margin-top: 10px;
}


.calculate-button:hover {
  background: #056633;
}


/* =========================================================
   RESULTS
   ========================================================= */

.results {
  margin-top: 35px;

  padding: 30px;

  border-radius: 15px;

  background: #f1f8f3;

  border: 1px solid #cfe5d6;
}


.results h3 {
  font-size: 25px;
  margin-bottom: 15px;
}


.result-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 15px;

  margin: 25px 0;
}


.result-box {
  background: white;

  padding: 18px;

  border-radius: 10px;

  border: 1px solid #dce8df;
}


.result-box small {
  display: block;

  color: #68746d;

  margin-bottom: 5px;
}


.result-box strong {
  font-size: 23px;
  color: #087d40;
}


.warning {
  padding: 15px;

  background: #fff8df;

  border: 1px solid #f1df8a;

  border-radius: 8px;

  margin-top: 15px;
}


.whatsapp-result {
  display: inline-block;

  margin-top: 20px;

  background: #16a05d;

  color: white;

  padding: 13px 20px;

  border-radius: 8px;

  font-weight: 800;
}


/* =========================================================
   SEO CONTENT
   ========================================================= */

.content {
  max-width: 900px;
}


.content h2 {
  margin-top: 35px;
}


.content p {
  color: #59665e;
  margin-bottom: 15px;
}


.formula {
  background: #f2f7f4;

  border-left: 5px solid #0a9b50;

  padding: 18px;

  font-weight: 800;

  margin: 20px 0;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq {
  max-width: 850px;
  margin: auto;
}


details {
  background: white;

  border: 1px solid #dce5df;

  border-radius: 10px;

  padding: 18px 20px;

  margin-bottom: 12px;
}


summary {
  cursor: pointer;

  font-weight: 800;
}


details p {
  color: #657168;

  margin-top: 12px;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-section {
  padding: 80px 0;

  text-align: center;

  background: #063f23;

  color: white;
}


.cta-section h2 {
  font-size: clamp(28px, 5vw, 45px);

  margin-bottom: 15px;
}


.cta-section p {
  max-width: 650px;

  margin: 0 auto 25px;

  opacity: .9;
}


.whatsapp {
  background: #19b866;
  color: white;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #071b11;

  color: white;

  padding: 45px 0;

  text-align: center;
}


.footer-brand h2 {
  font-size: 30px;
}


footer p {
  margin: 8px 0;
  opacity: .8;
}


footer a {
  color: #75efa6;
}


.copyright {
  margin-top: 25px !important;
  font-size: 13px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

  .section {
    padding: 55px 0;
  }


  .steps {
    grid-template-columns: 1fr;
  }


  .settings-grid {
    grid-template-columns: 1fr;
  }


  .add-appliance {
    grid-template-columns: 1fr;
  }


  .custom-box {
    grid-template-columns: 1fr;
  }


  .result-grid {
    grid-template-columns: 1fr;
  }


  .calculator-card {
    padding: 20px;
  }


  .hero {
    min-height: 580px;
  }


  .hero h1 {
    font-size: 42px;
  }


  .hero p {
    font-size: 16px;
  }


  .nav-button {
    display: none;
  }

}


@media (max-width: 450px) {

  .hero h1 {
    font-size: 35px;
  }


  .btn {
    width: 100%;
    text-align: center;
  }


  .appliance-table {
    min-width: 650px;
  }

}
