/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f8f9fa;
  --color-white: #ffffff;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-primary: #2d8659;
  --color-primary-dark: #1e6b45;
  --color-accent: #f0c040;
  --color-g: #d32f2f;
  --color-f: #e64a19;
  --color-e: #f9a825;
  --color-d: #fdd835;
  --color-c: #c0ca33;
  --color-b: #7cb342;
  --color-a: #2e7d32;
  --color-aplus: #1b5e20;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1100px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

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

/* === Navigation === */
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--color-primary);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Hamburger menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-md);
  }

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

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.hero-cta {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.hero-cta:hover {
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Hero with background image */
.hero--img {
  background-size: cover;
  background-position: center;
  padding: 6rem 1.5rem;
}

/* Page-specific hero variants */
.hero--consumer {
  background: linear-gradient(135deg, rgba(25,118,210,0.88) 0%, rgba(13,71,161,0.92) 100%),
    url('images/turbine-closeup.jpg') center/cover no-repeat;
}

.hero--business {
  background: linear-gradient(135deg, rgba(55,71,79,0.88) 0%, rgba(38,50,56,0.92) 100%),
    url('images/office-workspace.jpg') center/cover no-repeat;
}

.hero--airline {
  background: linear-gradient(135deg, rgba(0,137,123,0.88) 0%, rgba(0,77,64,0.92) 100%),
    url('images/aviation-aerial.jpg') center/cover no-repeat;
}

.hero--howto {
  background: linear-gradient(135deg, rgba(45,134,89,0.88) 0%, rgba(30,107,69,0.92) 100%),
    url('images/turbine-closeup.jpg') center/cover no-repeat;
}

.hero--about {
  background: linear-gradient(135deg, rgba(69,90,100,0.88) 0%, rgba(38,50,56,0.92) 100%),
    url('images/green-landscape.jpg') center/cover no-repeat;
}

/* === Photo Section === */
.photo-banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.section-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--radius);
  overflow: hidden;
}

.img-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Card with image */
.card--img {
  padding: 0;
  overflow: hidden;
}

.card--img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card--img .card-body {
  padding: 1.5rem 2rem 2rem;
}

/* Inline image in two-col */
.two-col-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* === Energy Label Graphic === */
.label-graphic {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 340px;
  margin: 0 auto;
}

.label-bar {
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

.label-bar--g { background: var(--color-g); width: 100%; }
.label-bar--f { background: var(--color-f); width: 88%; }
.label-bar--e { background: var(--color-e); width: 76%; color: #333; }
.label-bar--d { background: var(--color-d); width: 64%; color: #333; }
.label-bar--c { background: var(--color-c); width: 52%; color: #333; }
.label-bar--b { background: var(--color-b); width: 40%; }
.label-bar--a { background: var(--color-a); width: 30%; }
.label-bar--aplus { background: var(--color-aplus); width: 22%; font-size: 0.8rem; }

.label-bar span {
  margin-left: auto;
}

/* Highlighted label */
.label-bar.highlighted {
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
  transform: scale(1.04);
}

/* === Sections === */
.section {
  padding: 4rem 1.5rem;
}

.section--alt {
  background: var(--color-white);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section p {
  color: var(--color-text-light);
  max-width: 720px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--color-text) !important;
}

/* === Grid Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section--alt .card {
  background: var(--color-bg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: #e8f5e9;
  color: var(--color-primary);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* === Two-Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* === Stats Row === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.stat {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.section--alt .stat {
  background: var(--color-bg);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
  counter-increment: step;
}

.section--alt .step {
  background: var(--color-bg);
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* === Benefit List === */
.benefit-list {
  list-style: none;
  margin-top: 1.5rem;
}

.benefit-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-text-light);
  border-bottom: 1px solid #eee;
}

.benefit-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* === CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-banner .btn {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-primary);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: box-shadow var(--transition), transform var(--transition);
}

.cta-banner .btn:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  color: var(--color-primary);
}

/* === Comparison Table === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section--alt .comparison-table {
  background: var(--color-bg);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.badge--a { background: var(--color-a); }
.badge--b { background: var(--color-b); }
.badge--c { background: var(--color-c); color: #333; }
.badge--d { background: var(--color-d); color: #333; }
.badge--e { background: var(--color-e); color: #333; }
.badge--f { background: var(--color-f); }
.badge--g { background: var(--color-g); }

/* === FAQ / Accordion === */
.faq-list {
  margin-top: 2rem;
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 2rem 1.25rem 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-primary);
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  content: "\2212";
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* === Footer === */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.5rem;
  max-width: 300px;
}

.site-footer h4 {
  color: #ddd;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #999;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
}

/* === Utility === */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}
