/* =========================================================
   Natures Eco Tech Solar Installations
   Redesigned stylesheet
   ========================================================= */

:root {
  --ink: #10202d;
  --ink-soft: #52616d;
  --navy: #005a27;
  --green-2: #005a27;
  --sun: #FFA500;
  --sun-soft: #fff2c7;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --line: #e5e8e8;
  --green: #1f9d68;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 18px 50px rgba(9, 40, 61, .10);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

nav {
  position: fixed;
  inset: 0 0 auto;
  height: 76px;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16,32,45,.08);
  transition: box-shadow .25s ease, background .25s ease;
}

nav.scrolled {
  box-shadow: 0 8px 32px rgba(9,40,61,.10);
  background: rgba(255,255,255,.98);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

.nav-logo:hover .nav-logo-img {
  opacity: .85;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 46px;
  width: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  border-left: 1px solid rgba(16, 32, 45, .15);
  padding-left: 14px;
}

.nav-brand-text strong {
  color: #FFC15A;
  text-shadow:
    0 0 5px rgba(255, 192, 90, 0.432),
    0 0 12px rgba(255, 192, 90, 0.171);
  font-family: "Space Grotesk", sans-serif;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-brand-text strong span {
  color: #70D4FF;
  text-shadow:
    0 0 5px rgba(112, 212, 255, 0.247),
    0 0 12px rgba(112, 212, 255, 0.096);
  font-family: "Space Grotesk", sans-serif;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

.nav-brand-text span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: "Manrope", sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.logo-icon {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
  transition: color .2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--sun);
  transition: width .2s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--green-2);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(9,40,61,.16);
}

.nav-cta:hover {
  background: var(--green-2) !important;
}


/* ---------------- SHARED SECTIONS ---------------- */

section {
  padding: 105px 5%;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--green-2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--sun);
}

.section-title,
.why-title,
.cta-title {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}

.section-title {
  max-width: 720px;
  margin-bottom: 17px;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
}

.section-title .blue {
  color: var(--green-2);
}

.section-title .yel {
  color: #e4a500;
}

.section-desc {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.8;
}


/* ---------------- ENERGY CALCULATOR ---------------- */

.energy-calculator {
  background: var(--cream);
}


/* ---------------- PROGRESS ---------------- */

.calculator-progress {
  max-width: 1180px;
  margin: 45px auto 0;

  display: flex;
  align-items: center;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;

  flex-shrink: 0;

  color: var(--ink-soft);

  font-size: .72rem;
  font-weight: 700;

  transition: color .25s ease;
}

.progress-number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  border-radius: 50%;

  border: 1px solid var(--line);

  background: #fff;

  font-size: .68rem;

  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease;
}

.progress-step.active {
  color: var(--green-2);
}

.progress-step.active .progress-number {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #fff;
}

.progress-step.completed {
  color: var(--green-2);
}

.progress-step.completed .progress-number {
  background: var(--green-2);
  border-color: var(--green-2);
  color: #fff;
}

.progress-line {
  flex: 1;

  height: 1px;

  margin: 0 12px;

  background: var(--line);

  transition: background .25s ease;
}

.progress-line.completed {
  background: var(--green-2);
}


/* ---------------- STAGES ---------------- */

.calculator-stage {
  display: none;

  max-width: 1180px;

  margin: 35px auto 0;

  padding: 34px;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;
}

.calculator-stage.active {
  display: block;
}

.calculator-stage-header {
  margin-bottom: 30px;
}

.stage-tag {
  display: inline-block;

  margin-bottom: 8px;

  color: var(--green-2);

  font-size: .64rem;
  font-weight: 800;

  letter-spacing: .1em;
}

.calculator-stage-header h3 {
  margin: 0 0 7px;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;

  font-size: 1.5rem;
}

.calculator-stage-header p {
  max-width: 650px;

  margin: 0;

  color: var(--ink-soft);

  font-size: .82rem;
  line-height: 1.65;
}


/* ---------------- APPLIANCES ---------------- */

.appliance-grid {
  display: grid;

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

  gap: 14px;
}

.appliance-card {
  display: grid;

  grid-template-columns: 42px 1fr;

  gap: 14px;

  padding: 17px;

  border: 1px solid var(--line);

  border-radius: 13px;

  background: #fff;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.appliance-card:focus-within {
  border-color: var(--green-2);

  box-shadow:
    0 5px 20px rgba(0,0,0,.05);
}

.appliance-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 10px;

  background: var(--cream);

  font-size: 1.1rem;
}

.appliance-title {
  display: flex;

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

  gap: 10px;
}

.appliance-title h4 {
  margin: 2px 0 0;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;

  font-size: .9rem;
}

.appliance-title span {
  color: var(--green-2);

  font-size: .7rem;
  font-weight: 800;
}

.appliance-controls {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-top: 13px;
}

.appliance-controls label,
.form-field label {
  display: flex;

  flex-direction: column;

  gap: 6px;

  color: var(--ink-soft);

  font-size: .68rem;
  font-weight: 700;
}

.appliance-controls input,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;

  padding: 11px 12px;

  border: 1px solid var(--line);

  border-radius: 8px;

  background: #fff;

  color: var(--ink);

  font-family: inherit;

  font-size: .8rem;

  outline: none;

  transition: border-color .2s ease;
}

.appliance-controls input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--green-2);
}



/* ---------------- QUESTIONS ---------------- */

.question-block + .question-block {
  margin-top: 35px;
}

.question-block h4 {
  margin: 0 0 15px;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;

  font-size: .95rem;
}

.option-grid {
  display: grid;

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

  gap: 12px;
}

.profile-option {
  position: relative;

  display: flex;

  align-items: flex-start;

  gap: 13px;

  padding: 17px;

  border: 1px solid var(--line);

  border-radius: 12px;

  cursor: pointer;

  transition:
    border-color .2s ease,
    background .2s ease;
}

.profile-option input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.profile-option:has(input:checked) {
  border-color: var(--green-2);

  background: rgba(40,130,75,.045);
}

.option-dot {
  flex: 0 0 11px;

  width: 11px;
  height: 11px;

  margin-top: 5px;

  border-radius: 50%;
}

.option-dot.red {
  background: #e63946;
}

.option-dot.yellow {
  background: #e5b700;
}

.option-dot.orange {
  background: #f28c28;
}

.option-dot.green {
  background: #3a9d5d;
}

.profile-option strong {
  display: block;

  margin-bottom: 3px;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;

  font-size: .88rem;
}

.profile-option small {
  display: block;

  margin-bottom: 5px;

  color: var(--ink-soft);

  font-size: .7rem;
}

.profile-option em {
  display: block;

  color: var(--ink-soft);

  font-size: .72rem;

  line-height: 1.5;

  font-style: normal;
}

.goal-icon {
  font-size: 1.15rem;
}


/* ---------------- FORM ---------------- */

.form-grid {
  display: grid;

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

  gap: 18px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field textarea {
  resize: vertical;

  min-height: 110px;
}


/* ---------------- BUTTONS ---------------- */

.stage-actions {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  margin-top: 32px;

  padding-top: 25px;

  border-top: 1px solid var(--line);
}

.stage-actions .btn-primary,
.stage-actions .btn-secondary {
  border: 0;

  cursor: pointer;
}

.stage-actions .btn-secondary {
  text-decoration: none;
}


/* ---------------- AI ANALYSIS ---------------- */

.analysis-stage {
  min-height: 390px;

  display: none;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.analysis-stage.active {
  display: flex;
}

.analysis-content {
  width: 100%;

  max-width: 500px;
}

.analysis-loader {
  width: 58px;
  height: 58px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--green-2);
  font-size: 1.25rem;
  animation: calculatorSpin 1.5s linear infinite;
}

@keyframes calculatorSpin {

  to {
    transform: rotate(360deg);
  }

}

.analysis-content h3 {
  margin: 0 0 8px;

  color: var(--ink);

  font-family: "Space Grotesk", sans-serif;

  font-size: 1.5rem;
}

.analysis-content p {
  margin: 0;

  color: var(--ink-soft);

  font-size: .82rem;
}

.analysis-progress {
  width: 100%;
  height: 5px;

  margin-top: 28px;

  overflow: hidden;

  border-radius: 20px;

  background: var(--line);
}

.analysis-progress-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background: var(--green-2);

  transition: width .5s ease;
}


/* ---------------- REPORT ---------------- */

.report-stage {
  background: var(--green-2);

  border-color: var(--green-2);
}

.report-stage .calculator-stage-header h3 {
  color: #fff;
}

.report-stage .calculator-stage-header p {
  color: rgba(255,255,255,.7);
}

.report-stage .stage-tag {
  color: var(--sun);
}


/* RESULTS */

.results-summary {
  display: grid;

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

  overflow: hidden;

  border-radius: 14px;

  background: rgba(255,255,255,.08);
}

.result-item {
  padding: 21px;

  border-right:
    1px solid rgba(255,255,255,.1);

  border-bottom:
    1px solid rgba(255,255,255,.1);
}

.result-item span {
  display: block;

  margin-bottom: 7px;

  color: rgba(255,255,255,.62);

  font-size: .65rem;

  text-transform: uppercase;

  letter-spacing: .07em;
}

.result-item strong {
  display: block;

  color: #fff;

  font-family: "Space Grotesk", sans-serif;

  font-size: 1.2rem;
}

.result-item.price strong {
  color: var(--sun);
}


/* EQUIPMENT */

.equipment-section {
  margin-top: 42px;
}

.equipment-heading {
  margin-bottom: 20px;
}

.equipment-heading .section-label {
  color: var(--sun);
}

.equipment-heading h3 {
  margin: 0;

  color: #fff;

  font-family: "Space Grotesk", sans-serif;

  font-size: 1.4rem;
}

.equipment-heading h3 span {
  font-weight: 400;

  opacity: .7;
}

.equipment-grid {
  display: grid;

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

  gap: 14px;
}

.equipment-card {
  padding: 21px;

  border-radius: 13px;

  background: #fff;

  color: var(--ink);
}

.equipment-category {
  display: block;

  margin-bottom: 12px;

  color: var(--green-2);

  font-size: .63rem;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .08em;
}

.equipment-card h4 {
  margin: 0 0 7px;

  font-family: "Space Grotesk", sans-serif;

  font-size: .98rem;
}

.equipment-card p {
  margin: 0 0 15px;

  color: var(--ink-soft);

  font-size: .73rem;

  line-height: 1.5;
}

.equipment-warranty {
  padding-top: 12px;

  border-top: 1px solid var(--line);
}

.equipment-warranty strong {
  display: block;

  font-size: .76rem;
}

.equipment-warranty span {
  display: block;

  margin-top: 3px;

  color: var(--green-2);

  font-size: .67rem;

  font-weight: 700;
}


/* NOTE */

.results-note {
  margin-top: 20px;

  color: rgba(255,255,255,.62);

  font-size: .7rem;

  line-height: 1.6;
}

.results-note strong {
  color: #fff;
}


/* REPORT ACTIONS */

.report-actions {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 25px;
}

.report-actions .btn-primary {
  background: var(--sun);

  color: var(--ink);

  text-decoration: none;
}

.report-actions .btn-secondary {
  border: 1px solid rgba(255,255,255,.3);

  background: transparent;

  color: #fff;

  cursor: pointer;
}


/* ---------------- MOBILE ---------------- */

@media (max-width: 900px) {

  .calculator-progress {
    overflow-x: auto;

    padding-bottom: 8px;

    scrollbar-width: none;
  }

  .calculator-progress::-webkit-scrollbar {
    display: none;
  }

  .progress-label {
    white-space: nowrap;
  }

  .calculator-stage {
    padding: 25px;
  }

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

}


@media (max-width: 700px) {

  .appliance-grid,
  .option-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .results-summary {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 600px) {

  .calculator-progress {
    margin-top: 30px;
  }

  .progress-step {
    font-size: .62rem;
  }

  .progress-number {
    width: 27px;
    height: 27px;
  }

  .progress-line {
    min-width: 18px;

    margin: 0 7px;
  }

  .calculator-stage {
    margin-top: 25px;

    padding: 20px;

    border-radius: 14px;
  }

  .stage-actions {
    flex-direction: column-reverse;

    align-items: stretch;
  }

  .stage-actions button {
    width: 100%;
  }

  .results-summary {
    grid-template-columns: 1fr;
  }

  .report-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .report-actions > * {
    width: 100%;

    justify-content: center;

    text-align: center;
  }

}


/* ---------------- Buttons ---------------- */
.btn-primary,
.btn-secondary,
.btn-white,
.btn-yellow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: var(--sun);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(255,191,36,.18);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-white:hover,
.btn-yellow:hover {
  transform: translateY(-3px);
}

.btn-primary:hover {
  background: #ffd15a;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,.14);
}


/* ---------------- CTA ---------------- */

.cta-section {
  padding: 60px 5%;
  background: var(--navy);
  text-align: center;
}

.cta-title {
  margin: 0 0 12px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
}

.cta-title span {
  color: var(--sun);
}

.cta-desc {
  max-width: 500px;
  margin: 0 auto 24px;
  color: rgba(255,255,255,.62);
  font-size: .88rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}

.btn-yellow {
  background: orange;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--navy);
}

.btn-yellow:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .cta-section {
    padding: 50px 5%;
  }

  .cta-actions {
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-actions a {
    width: 100%;
  }
}

/* ---------------- FOOTER ---------------- */

footer {
  padding: 55px 5% 22px;
  background:  #0b1f15;
  color: rgba(255,255,255,.6);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
  padding-bottom: 45px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo-img {
  display: block;
  width: auto;
  height: 42px;
  margin-bottom: 17px;
}

.footer-desc {
  max-width: 300px;
  margin: 0;
  font-size: .78rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .82rem;
  transition: .2s ease;
}

.footer-social a:hover {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--navy);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-column h3 {
  margin: 3px 0 17px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 700;
}

.footer-column a,
.footer-column span {
  margin-bottom: 10px;
  color: rgba(255,255,255,.5);
  font-size: .74rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-column a:hover {
  color: var(--sun);
}

.footer-column span {
  margin-bottom: 0;
}


/* Bottom bar */

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.35);
  font-size: .68rem;
}

/* footer credit */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer-credit a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-credit a:hover {
  color: var(--sun);
}

/* Mobile */

@media (max-width: 800px) {

  footer {
    padding: 45px 5% 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 35px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-nav {
    gap: 25px;
  }

}

@media (max-width: 550px) {

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 35px 20px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

}


@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes fadeRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- MOBILE MENU ---------------- */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: all .3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------------- TABLET ---------------- */

@media (max-width: 1024px) {
  .nav-links { gap: 21px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 105px;
    gap: 45px;
  }
  .hero-content { order: 2; }
  .hero-visual {
    order: 1;
    width: 100%;
    max-width: 620px;
    height: 430px;
    margin: 0 auto;
  }
  .about,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .about-images {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .why-image {
    max-width: 650px;
  }
  .why-image img { height: 430px; }
  .services-header { grid-template-columns: 1fr; gap: 15px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-card,
  .proj-card.large { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 768px) {
  nav {
    height: 66px;
    padding: 0 5%;
  }

  .nav-logo-img { height: 40px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 66px 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(9,40,61,.12);
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 6%;
    border-bottom: 1px solid var(--line);
    font-size: .93rem;
  }

  .nav-links a:not(.nav-cta)::after { display: none; }

  .nav-links li:last-child a {
    margin: 12px 6% 0;
    padding: 12px;
    border: 0;
    border-radius: 11px;
    text-align: center;
  }

  .hamburger { display: flex; }

  section,
  .why-section {
    padding: 70px 5%;
  }

  .hero {
    min-height: auto;
    padding: 92px 5% 64px;
    gap: 30px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(2.25rem, 9vw, 3.3rem);
  }

  .hero-desc {
    max-width: 100%;
    font-size: .9rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 22px;
  }

  .stat + .stat {
    padding-left: 22px;
  }

  .hero-visual {
    height: 300px;
    max-width: 480px;
  }

  .hero-img-main {
    width: 78%;
    height: 88%;
    border-radius: 22px 22px 22px 65px;
  }

  .hero-img-sub {
    width: 52%;
    height: 50%;
    border-width: 5px;
  }

  .hero-tag {
    top: auto;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 8px 12px;
    font-size: .68rem;
  }

  .about-images {
    height: 340px;
  }

  .about-features,
  .why-cards {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .service-card-img {
    height: 210px;
  }

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

  .proj-card,
  .proj-card.large {
    grid-column: span 1;
    min-height: 240px;
  }

  .proj-card img {
    min-height: 240px;
  }

  .proj-overlay {
    opacity: 1;
    transform: none;
    inset: auto 10px 10px;
  }

  .why-image img {
    height: 310px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ---------------- SMALL MOBILE ---------------- */

@media (max-width: 480px) {

  
  nav { height: 60px; }
  .nav-logo-img { height: 36px; }
  .nav-links { inset: 60px 0 auto; }
  

  section,
  .why-section {
    padding: 58px 4.5%;
  }

  .hero {
    padding: 82px 4.5% 52px;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-white,
  .btn-yellow {
    width: 100%;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat + .stat {
    padding-left: 14px;
  }

  .stat-num { font-size: 1.45rem; }
  .stat-label { font-size: .67rem; }

  .hero-visual {
    height: 245px;
  }

  .about {
    padding: 58px 4.5%;
    gap: 34px;
  }

  .about-images {
    height: 285px;
  }

  .about-features,
  .why-cards {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .why-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .feature-icon,
  .why-card-icon {
    margin: 0;
    flex-shrink: 0;
    font-size: 1.3rem;
  }

  .service-card-img {
    height: 185px;
  }

  .proj-card,
  .proj-card.large {
    min-height: 205px;
  }

  .proj-card img {
    min-height: 205px;
  }

  .why-image img {
    height: 230px;
  }

  .cta-section {
    padding: 58px 4.5%;
  }

  footer {
    padding: 50px 4.5% 28px;
  }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.8rem; }
  .hero-visual { height: 215px; }
  .about-images { height: 250px; }
  .why-image img { height: 195px; }
}

/* =========================================================
   APPLIANCE SELECT FIELDS
   ========================================================= */

.appliance-field {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Quantity + Daytime + Nighttime selects */

.appliance-qty,
.appliance-hours-day,
.appliance-hours-night {
  display: block;

  width: 100%;
  min-width: 0;
  min-height: 44px;

  padding: 0 38px 0 12px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: #fff;
  color: var(--ink);

  font-family: inherit;
  font-size: .78rem;
  font-weight: 600;

  outline: none;
  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

/* Hover */

.appliance-qty:hover,
.appliance-hours-day:hover,
.appliance-hours-night:hover {
  border-color: var(--green-2);
}

/* Focus */

.appliance-qty:focus,
.appliance-hours-day:focus,
.appliance-hours-night:focus {
  border-color: var(--green-2);

  box-shadow:
    0 0 0 3px rgba(0, 90, 39, .08);
}

/* Dropdown arrow */

.appliance-dropdown-icon {
  position: absolute;

  top: 50%;
  right: 12px;

  transform:
    translateY(-50%)
    rotate(0deg);

  color: var(--green-2);

  font-size: .65rem;

  pointer-events: none;

  transition:
    transform .25s ease;
}

/* Open / focused dropdown */

.appliance-field.open
.appliance-dropdown-icon {
  transform:
    translateY(-50%)
    rotate(180deg);
}


/* =========================================================
   DAYTIME / NIGHTTIME
   ========================================================= */

.appliance-usage-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 10px;

  width: 100%;

  margin-top: 13px;
}

.usage-field {
  display: flex;

  flex-direction: column;

  min-width: 0;

  gap: 6px;
}

.usage-field label {
  display: block;

  color: var(--ink-soft);

  font-size: .66rem;
  font-weight: 700;

  line-height: 1;
}


/* =========================================================
   MOBILE APPLIANCE USAGE
   ========================================================= */

@media (max-width: 600px) {

  .appliance-usage-row {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 8px;
  }

  .usage-field {
    min-width: 0;
  }

  .usage-field label {
    font-size: .62rem;
  }

  .appliance-qty,
  .appliance-hours-day,
  .appliance-hours-night {
    min-height: 42px;

    padding-left: 10px;
    padding-right: 30px;

    font-size: .72rem;
  }

  .appliance-dropdown-icon {
    right: 9px;

    font-size: .58rem;
  }

}

/* =========================================================
   CALCULATOR STAGE ACTIONS
   ========================================================= */

.stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.stage-actions .btn-secondary,
.stage-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  visibility: visible;
  opacity: 1;
}

.stage-actions .btn-secondary {
  min-height: 46px;
  padding: 0 18px;

  background: #fff;
  color: var(--green-2);
  border: 1px solid var(--green-2);
  border-radius: 8px;

  cursor: pointer;
}

.stage-actions .btn-secondary:hover {
  background: var(--green-2);
  color: #fff;
}

@media (max-width: 600px) {

  .stage-actions {
    width: 100%;
    gap: 10px;
  }

  .stage-actions .btn-secondary,
  .stage-actions .btn-primary {
    min-height: 44px;
  }

}

/* Caculator errors */
.analysis-error-icon {
  display: block;
  margin-bottom: 10px;

  font-size: 1.4rem;
  color: #c0392b;
}

.analysis-retry {
  margin-top: 20px;
}

/* to stop the custom analysis icon from moving */
.analysis-error-icon {
    animation: none !important;
    transform: none !important;
}

.analysis-error-icon i {
    animation: none !important;
    transform: none !important;
}

.calculator-validation-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #e0a0a0;
    border-radius: 8px;
    background: #fff5f5;
    color: #b42318;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.5;
}

.calculator-validation-error i {
    margin-top: 2px;
    flex-shrink: 0;
}

.appliance-validation-error {
    border-color: #d92d20 !important;
    box-shadow: 0 0 0 2px rgba(217, 45, 32, .08);
}