/* ============================================================
   GREEN HOME UPGRADE - MAIN STYLESHEET
   Mobile-first, responsive, performance-optimised
   ============================================================ */



/* ---- CUSTOM PROPERTIES ---- */
:root {
  --green:        #84CC16;
  --green-dark:   #3f6212;
  --green-mid:    #65a30d;
  --green-light:  #f0fdf4;
  --green-pale:   #f7fef0;
  --dark:         #0f1a0a;
  --charcoal:     #1c2b12;
  --mid:          #4a5c3a;
  --muted:        #6b7c5a;
  --border:       #e4eed8;
  --light:        #f8faf5;
  --white:        #ffffff;
  --font:         'Outfit', system-ui, -apple-system, sans-serif;
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-pill:  100px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12);
  --transition:   0.2s ease;
  --max-width:    1100px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- UTILITY ---- */
.ghu-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.ghu-section {
  padding: 60px 0;
}

@media (min-width: 768px) {
  .ghu-section { padding: 80px 0; }
}

.ghu-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
  display: block;
}

.ghu-section-title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 12px;
}

.ghu-section-sub {
  font-size: 17px;
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* ---- BUTTONS ---- */
.ghu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.ghu-btn:hover { transform: translateY(-2px); text-decoration: none; }

.ghu-btn-primary {
  background: var(--green);
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(132,204,22,0.35);
}
.ghu-btn-primary:hover {
  background: #96d926;
  box-shadow: 0 6px 20px rgba(132,204,22,0.45);
  color: var(--dark);
}

.ghu-btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
}
.ghu-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.ghu-btn-dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.ghu-btn-dark:hover {
  background: var(--charcoal);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.ghu-btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--green);
}
.ghu-btn-outline:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

/* ---- NAVIGATION ---- */
.ghu-nav {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(63,98,18,0.25);
}

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

.ghu-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  padding: 0;
  margin: 0;
}
.ghu-logo:hover { text-decoration: none; color: var(--white); }
.ghu-logo-light { font-weight: 300; opacity: 0.85; }
.ghu-logo-bolt {
  width: 20px;
  height: 20px;
  fill: var(--white);
  flex-shrink: 0;
  display: block;
  position: relative;
  top: 0;
}

.ghu-nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
  margin-bottom: 0!important;
}

@media (min-width: 768px) {
  .ghu-nav-links { display: flex; }
}

.ghu-nav-links a {
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  opacity: 0.9;
  text-decoration: none;
  transition: opacity var(--transition);
}
.ghu-nav-links a:hover { opacity: 1; text-decoration: none; }

.ghu-nav-cta {
  background: var(--white) !important;
  color: var(--green-dark) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  opacity: 1 !important;
  white-space: nowrap;
}

/* Mobile hamburger */
.ghu-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
@media (min-width: 768px) { .ghu-hamburger { display: none; } }

.ghu-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* Mobile menu */
.ghu-mobile-menu {
  display: none;
  background: var(--green-dark);
  padding: 16px 20px 20px;
}
.ghu-mobile-menu.open { display: block; }
.ghu-mobile-menu a {
  display: block;
  color: var(--white);
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
}
.ghu-mobile-menu a:last-child { border-bottom: none; }

/* ---- HERO ---- */
.ghu-hero {
  background: var(--dark);
  padding: 60px 0 70px;
  overflow: hidden;
  position: relative;
}

.ghu-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.07;
  pointer-events: none;
}

.ghu-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .ghu-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
}

.ghu-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(132,204,22,0.12);
  border: 1px solid rgba(132,204,22,0.25);
  color: var(--green);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.ghu-hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: ghu-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes ghu-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.ghu-hero h1 {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 18px;
}

.ghu-hero h1 em {
  font-style: normal;
  color: var(--green);
}

.ghu-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
  max-width: 480px;
}

.ghu-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero stats grid */
.ghu-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ghu-stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: background var(--transition);
}
.ghu-stat-card:hover { background: rgba(255,255,255,0.08); }

.ghu-stat-num {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 6px;
}

.ghu-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  line-height: 1.4;
}

.ghu-stat-source {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin-top: 8px;
}

/* ---- GRANTS SECTION ---- */
.ghu-grants {
  background: var(--light);
}

.ghu-grants-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .ghu-grants-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .ghu-grants-grid { grid-template-columns: repeat(3, 1fr); }
}

.ghu-grant-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1.5px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.ghu-grant-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ghu-grant-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.ghu-grant-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  line-height: 1.1;
}

.ghu-grant-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.ghu-grant-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 14px;
}

.ghu-grant-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

/* ---- HOW IT WORKS ---- */
.ghu-how {
  background: var(--white);
}

.ghu-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

@media (min-width: 700px) {
  .ghu-steps {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
  }
  .ghu-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 18%;
    right: 18%;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--green) 0,
      var(--green) 8px,
      transparent 8px,
      transparent 16px
    );
  }
}

.ghu-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.ghu-step-num {
  width: 54px;
  height: 54px;
  background: var(--green);
  color: var(--dark);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 14px rgba(132,204,22,0.4);
}

.ghu-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.ghu-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  max-width: 240px;
  margin: 0 auto;
}

/* ---- CATEGORIES ---- */
.ghu-categories {
  background: var(--dark);
}

.ghu-categories .ghu-section-title { color: var(--white); }
.ghu-categories .ghu-section-sub { color: rgba(255,255,255,0.45); }
.ghu-categories .ghu-section-label { color: var(--green); }

.ghu-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

@media (min-width: 768px) {
  .ghu-cat-grid { grid-template-columns: repeat(4, 1fr); }
}

.ghu-cat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  display: block;
}

.ghu-cat-card:hover {
  background: rgba(132,204,22,0.08);
  border-color: rgba(132,204,22,0.25);
  transform: translateY(-3px);
  text-decoration: none;
}

.ghu-cat-emoji {
  font-size: 26px;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.ghu-cat-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.ghu-cat-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
  font-weight: 300;
}

/* ---- LATEST ARTICLES ---- */
.ghu-latest {
  background: var(--light);
}

.ghu-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 36px;
}

@media (min-width: 600px) {
  .ghu-articles-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .ghu-articles-grid { grid-template-columns: repeat(3, 1fr); }
}

.ghu-article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.ghu-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ghu-article-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--green);
  flex-shrink: 0;
}

.ghu-article-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ghu-article-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.ghu-article-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.ghu-article-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

.ghu-article-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 16px;
}
.ghu-article-link:hover { gap: 8px; text-decoration: none; }

/* ---- CTA BANNER ---- */
.ghu-cta-banner {
  background: var(--green);
  padding: 70px 20px;
  text-align: center;
}

.ghu-cta-banner h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.ghu-cta-banner p {
  font-size: 17px;
  color: var(--charcoal);
  margin-bottom: 30px;
  font-weight: 300;
  opacity: 0.8;
}

/* ---- BREADCRUMBS ---- */
.ghu-breadcrumbs {
  padding: 12px 20px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.ghu-breadcrumbs ol {
  max-width: var(--max-width);
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ghu-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.ghu-breadcrumbs li::after {
  content: '›';
  color: var(--border);
}

.ghu-breadcrumbs li:last-child::after { display: none; }
.ghu-breadcrumbs a { color: var(--green-dark); }

/* ---- READING TIME ---- */
.ghu-reading-time {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 400;
}

/* ---- ARTICLE CONTENT STYLES ---- */
.entry-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 40px 0 16px;
  color: var(--dark);
  line-height: 1.2;
}

.entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--dark);
}

.entry-content p {
  margin-bottom: 18px;
  line-height: 1.75;
  font-size: 16px;
  color: #2a3520;
}

.entry-content ul, .entry-content ol {
  margin: 0 0 18px 24px;
  line-height: 1.75;
}

.entry-content li { margin-bottom: 6px; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  overflow-x: auto;
  display: block;
}

.entry-content table th {
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.entry-content table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.entry-content table tr:nth-child(even) td {
  background: var(--green-pale);
}

/* Callout box */
.ghu-callout {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  color: var(--green-dark);
}

/* ---- FOOTER ---- */
.ghu-footer {
  background: var(--dark);
  padding: 48px 20px 28px;
}

.ghu-footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 768px) {
  .ghu-footer-top { grid-template-columns: 2fr 1fr 1fr; }
}

.ghu-footer-brand .ghu-logo {
  font-size: 20px;
  display: inline-flex;
  margin-bottom: 12px;
}

.ghu-footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  max-width: 280px;
  font-weight: 300;
}

.ghu-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.ghu-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ghu-footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-weight: 300;
  transition: color var(--transition);
}
.ghu-footer-col a:hover { color: var(--green); text-decoration: none; }

.ghu-footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.ghu-footer-disclaimer {
  max-width: var(--max-width);
  margin: 20px auto 0;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  line-height: 1.6;
  font-weight: 300;
}

/* ---- ACCESSIBILITY ---- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- PRINT ---- */
@media print {
  .ghu-nav, .ghu-hero, .ghu-cta-banner, .ghu-footer { display: none; }
  body { font-size: 12pt; color: #000; }
}
