/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand colors — extracted from typical solar/energy logo palette */
  --clr-primary: #1a7a4c;
  --clr-primary-dark: #145e3a;
  --clr-primary-light: #2ecc71;
  --clr-secondary: #f39c12;
  --clr-secondary-dark: #d68910;
  --clr-accent: #e67e22;

  --clr-bg: #ffffff;
  --clr-bg-alt: #f7f9fc;
  --clr-bg-card: #ffffff;
  --clr-surface: #eef2f7;
  --clr-text: #1a1a2e;
  --clr-text-muted: #5a6170;
  --clr-border: #dde1e7;
  --clr-hero-overlay: rgba(10, 35, 20, 0.65);
  --clr-shadow: rgba(0,0,0,0.08);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-h: 64px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --clr-bg: #0f1117;
  --clr-bg-alt: #161822;
  --clr-bg-card: #1c1f2e;
  --clr-surface: #232636;
  --clr-text: #e8e8ed;
  --clr-text-muted: #9a9cb0;
  --clr-border: #2a2d3e;
  --clr-hero-overlay: rgba(5, 10, 15, 0.75);
  --clr-shadow: rgba(0,0,0,0.3);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary-light); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== UTILITIES ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--clr-text);
}
.section-subtitle {
  text-align: center;
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,122,76,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}
.btn-secondary:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--clr-secondary);
  color: #fff;
}
.btn-accent:hover {
  background: var(--clr-secondary-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px var(--clr-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; }

.nav-list {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  transition: all var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--clr-primary);
  background: var(--clr-surface);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--clr-primary);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--clr-surface); color: var(--clr-primary); }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Burger */
.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
}
.nav-overlay.show { display: block; }

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; right: -300px;
    width: 280px; height: 100vh;
    background: var(--clr-bg);
    z-index: 999;
    padding: 80px 24px 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 20px var(--clr-shadow);
  }
  .main-nav.open { right: 0; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
    display: block;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-h);
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, #588571 100%);
  z-index: 0;
}
/* placeholder for a hero image — add background-image inline or via JS */
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--clr-hero-overlay);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: var(--clr-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.1);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 .highlight {
  color: var(--clr-secondary);
}
.hero p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  color: #fff;
}
.hero-stat .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-secondary);
}
.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ===== GENERIC CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--clr-shadow);
  border-color: var(--clr-primary);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--clr-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--clr-primary);
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p {
  color: var(--clr-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== WHO WE ARE / SIDE-BY-SIDE ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-surface);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  border: 2px dashed var(--clr-border);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.split-text p {
  color: var(--clr-text-muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.split-text .check-list {
  margin: 20px 0;
}
.split-text .check-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--clr-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.check-icon {
  width: 22px; height: 22px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ===== WHY CHOOSE US ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.why-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--clr-shadow);
}
.why-card .why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.why-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.why-card p { color: var(--clr-text-muted); font-size: 0.9rem; }

/* ===== JOIN US / CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  position: relative;
}
.cta-banner p {
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  position: relative;
}

/* ===== OUR WORK ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  transition: all var(--transition);
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--clr-shadow);
}
.work-card-img {
  aspect-ratio: 16/10;
  background: var(--clr-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--clr-border);
}
.work-card-img img { width: 100%; height: 100%; object-fit: cover; }
.work-card-body { padding: 20px; }
.work-card-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.work-card-body p { color: var(--clr-text-muted); font-size: 0.88rem; }
.work-tag {
  display: inline-block;
  background: var(--clr-surface);
  color: var(--clr-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ===== CONTACT STRIP (Home) ===== */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.contact-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.contact-strip-icon {
  width: 44px; height: 44px;
  background: var(--clr-surface);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}
.contact-strip-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.contact-strip-item p { color: var(--clr-text-muted); font-size: 0.85rem; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: linear-gradient(135deg, var(--clr-primary-dark), #0a2318);
  padding: 100px 20px 60px;
  text-align: center;
  color: #fff;
  margin-top: var(--header-h);
}
.about-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.about-hero p { opacity: 0.85; max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.vm-card {
  padding: 36px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.vm-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--clr-primary); }
.vm-card p { color: var(--clr-text-muted); font-size: 0.95rem; }

@media (max-width: 600px) {
  .vision-mission { grid-template-columns: 1fr; }
}

/* ===== ARTICLES PAGE ===== */
.page-header {
  background: linear-gradient(135deg, var(--clr-primary-dark), #0a2318);
  padding: 100px 20px 50px;
  text-align: center;
  color: #fff;
  margin-top: var(--header-h);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 10px; }
.page-header p { opacity: 0.85; max-width: 500px; margin: 0 auto; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--clr-shadow);
}
.article-card-thumb {
  aspect-ratio: 16/9;
  background: var(--clr-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  overflow: hidden;
}
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 20px; }
.article-date { font-size: 0.8rem; color: var(--clr-text-muted); margin-bottom: 8px; }
.article-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card-body p { font-size: 0.88rem; color: var(--clr-text-muted); }

/* Article detail view */
.article-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}
.article-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.article-detail-nav a {
  font-weight: 500;
  font-size: 0.9rem;
}
.article-viewer {
  width: 100%;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-surface);
  min-height: 70vh;
}
.article-viewer iframe {
  width: 100%;
  height: 80vh;
  border: none;
}

/* ===== REPORTS PAGE ===== */
.reports-page-header {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 8px;
  text-align: center;
}

.reports-page-header .reports-search {
  margin-top: 12px;
  width: min(380px, 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--clr-bg-card);
  color: var(--clr-text);
  outline: none;
}

.reports-page-header .reports-search:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(26, 122, 76, 0.15);
}

.reports-page-header .view-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 10;
}
.view-toolbar .btn {
  min-width: auto;
  border: 1px solid transparent;
  color: var(--clr-text-muted);
  background: transparent;
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 8px;
}
.view-toolbar .btn:hover {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
}
.view-toolbar .btn.active {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
  border-color: var(--clr-border);
}

.reports-container {
  margin-top: 10px;
}
.reports-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.report-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  border-color: var(--clr-primary);
}
.report-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.report-card-body p {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 12px;
}
.report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: all var(--transition);
  flex-wrap: wrap;
  gap: 12px;
}
.report-item:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 4px 16px var(--clr-shadow);
}
.report-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.report-info p { font-size: 0.85rem; color: var(--clr-text-muted); }
.report-dl {
  padding: 10px 20px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.report-dl:hover {
  background: var(--clr-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.report-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px;
}

.pdf-dark-mode canvas {
  filter: invert(0.95) hue-rotate(180deg) contrast(0.85) brightness(1.05);
  background: #111;
}

.pdf-dark-mode {
  background: #0f1117;
  color: #e8e8ed;
}
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition);
}
.report-card:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 12px 26px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.report-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.report-card-body p {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

/* ===== GALLERY PAGE ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--clr-surface);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px var(--clr-shadow);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  color: #fff; font-size: 2rem;
  cursor: pointer; background: none; border: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== CONTACT PAGE ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}
.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
}
.contact-info-card .ci-icon {
  width: 44px; height: 44px;
  background: var(--clr-surface);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}
.contact-info-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-info-card p { font-size: 0.88rem; color: var(--clr-text-muted); }

.contact-form {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-form h3 { font-size: 1.3rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--clr-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(26,122,76,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}
.form-status.success { display: block; background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-status.error { display: block; background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.form-status.info { display: block; background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ===== LOADING / EMPTY STATES ===== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--clr-text-muted);
  gap: 10px;
}
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--clr-text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 1rem; }

/* ===== FOOTER ===== */
.site-footer {
  margin-top: auto;
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
}
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: var(--clr-text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--clr-surface);
  color: var(--clr-text-muted);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--clr-primary); color: #fff; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--clr-text);
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: var(--clr-text-muted);
}
.footer-col a:hover { color: var(--clr-primary); }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--clr-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}
.footer-address {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
}

/* ===== PAGE TRANSITION ===== */
#mainContent {
  opacity: 1;
  transition: opacity 0.2s ease;
}
#mainContent.fade-out { opacity: 0; }

/* ===== MISC ===== */
.text-primary { color: var(--clr-primary); }
.text-secondary { color: var(--clr-secondary); }
.text-muted { color: var(--clr-text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-left {
  transform: translateX(-40px) translateY(0);
}
.reveal.reveal-left.active {
  transform: translateX(0) translateY(0);
}
.reveal.reveal-right {
  transform: translateX(40px) translateY(0);
}
.reveal.reveal-right.active {
  transform: translateX(0) translateY(0);
}
.reveal.reveal-scale {
  transform: scale(0.92);
}
.reveal.reveal-scale.active {
  transform: scale(1);
}

/* Stagger children inside a .reveal-group */
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.5s; }

/* Hero entrance animation */
.hero-content {
  animation: heroFadeIn 1s ease forwards;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-stats .hero-stat {
  opacity: 0;
  animation: statPop 0.5s ease forwards;
}
.hero-stats .hero-stat:nth-child(1) { animation-delay: 0.6s; }
.hero-stats .hero-stat:nth-child(2) { animation-delay: 0.75s; }
.hero-stats .hero-stat:nth-child(3) { animation-delay: 0.9s; }
.hero-stats .hero-stat:nth-child(4) { animation-delay: 1.05s; }
@keyframes statPop {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtle floating effect for hero badge */
.hero-badge {
  animation: badgeFloat 3s ease-in-out infinite alternate;
}
@keyframes badgeFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

/* Card hover lift already exists, add subtle icon pulse on hover */
.card:hover .card-icon,
.why-card:hover .why-icon {
  animation: iconPulse 0.4s ease;
}
@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; }
  .hero-stats .hero-stat { opacity: 1; animation: none; }
  .hero-badge { animation: none; }
}
