/* ── Variables & Base ─────────────────────── */
:root {
  --green-900: #0f2d1a; --green-700: #085041; --green-500: #085041;
  --green-400: #5cd97a; --green-200: #b7f5c7; --green-50: #f0fff4;
  --text: #374151; --muted: #6B7280; --white: #FFFFFF; --bg-alt: #F8FAFC;
  --border: #E5E7EB; --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08); --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}
body { color: var(--text); }
.svc-section, .svc-section * { font-family: 'Open Sans', sans-serif; }
.svc-section          { padding: 72px 0; }
.svc-section--light   { background: var(--white); }
/* .svc-section--dark-alt{ background: var(--bg-alt); } */

/* ── Shared Typography ── */
.svc-header { text-align: center; margin-bottom: 40px; }
.svc-badge {
  display: inline-block; background: var(--green-50); color: #085041;
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 16px;
  border-radius: 100px; border: 1px solid var(--green-200); margin-bottom: 14px;
}
.svc-title {
  font-family: 'Jost', sans-serif; font-size: 2.2rem; font-weight: 700;
  color: var(--green-900); margin-bottom: 16px; line-height: 1.25;
}
.svc-lead {
  font-size: 1.05rem; color: var(--muted); max-width: 700px;
  margin: 0 auto 32px; line-height: 1.75;
}
.sub-heading {
  font-family: 'Jost', sans-serif; font-size: 1.55rem; font-weight: 700;
  color: #28a745; margin-bottom: 28px; text-align: center;
}

/* ── Stat Cards ── */
.gi-intro { padding-bottom: 24px !important; }
.gi-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.gi-stat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.gi-stat-card:hover { transform: translateY(-4px); border-color: var(--green-400); }
.gi-stat-num {
  font-family: 'Jost', sans-serif; font-size: 1.7rem; font-weight: 800;
  color: var(--green-700); line-height: 1;
}
.gi-stat-lbl {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); margin-top: 6px; line-height: 1.4;
}

/* ── Expanding Cards — Types of Green Investment ── */
.gi-types-section { padding-bottom: 0 !important; }
.gi-types-lead {
  font-size: .88rem; color: var(--muted); margin-bottom: 28px; font-style: italic;
}

.gi-exp-cards {
  display: flex;
  height: 480px;
  gap: 4px;
  overflow: hidden;
}

.gi-exp-card {
  position: relative;
  flex: 1;
  background-color: #042a20;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(.4,0,.2,1);
}
.gi-exp-card.is-active { flex: 4; }

/* overlay darkens on inactive, lightens on active */
.gi-exp-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,30,15,0.95) 0%,
    rgba(10,30,15,0.60) 40%,
    rgba(10,30,15,0.35) 100%
  );
  transition: background 0.5s;
}
.gi-exp-card:not(.is-active) .gi-exp-overlay {
  background: rgba(10,30,15,0.72);
}

/* number badge top-left */
.gi-exp-num {
  position: absolute; top: 20px; left: 20px;
  font-family: 'Jost', sans-serif; font-weight: 800; font-size: .7rem;
  letter-spacing: .12em; color: rgba(255,255,255,0.55);
  transition: color 0.4s;
}
.gi-exp-card.is-active .gi-exp-num { color: var(--green-400); }

/* icon circle — hidden */
.gi-exp-icon-wrap { display: none; }

/* text content — slides up from bottom */
.gi-exp-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 28px 32px;
  transform: translateY(0);
}

.gi-exp-title {
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: .95rem;
  color: #fff; margin: 0 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: white-space 0.3s, font-size 0.4s;
}
.gi-exp-card.is-active .gi-exp-title {
  font-size: 1.25rem;
  white-space: normal;
  margin-bottom: 12px;
}

.gi-exp-desc {
  font-size: .85rem; color: rgba(255,255,255,0.85); line-height: 1.65;
  margin: 0;
  visibility: hidden;
  pointer-events: none;
}
.gi-exp-card.is-active .gi-exp-desc {
  visibility: visible;
  pointer-events: auto;
}

/* green accent line under title */
.gi-exp-line {
  display: block; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--green-400), var(--green-700));
  border-radius: 2px; margin-top: 16px;
  transition: width 0.5s ease 0.2s;
}
.gi-exp-card.is-active .gi-exp-line { width: 48px; }

/* vertical title for collapsed cards */
.gi-exp-card:not(.is-active) .gi-exp-content {
  bottom: 50%;
  transform: translateY(50%);
  padding: 0 0 0;
  display: flex; align-items: center; justify-content: center;
}
.gi-exp-card:not(.is-active) .gi-exp-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: .78rem;
  white-space: nowrap;
  letter-spacing: .05em;
  opacity: 0.80;
}
.gi-exp-card:not(.is-active) .gi-exp-desc,
.gi-exp-card:not(.is-active) .gi-exp-line { display: none; }

/* ── Expanding card animations ── */

/* Subtle green glow pulse on the active card */
@keyframes gi-glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); }
  50%       { box-shadow: 0 0 28px 6px rgba(40,167,69,0.22); }
}
.gi-exp-card.is-active {
  animation: gi-glow-pulse 3s ease-in-out infinite;
}

/* Shimmer sweep across the accent line */
@keyframes gi-line-shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
.gi-exp-card.is-active .gi-exp-line {
  background: linear-gradient(90deg,
    var(--green-700) 0%,
    var(--green-400) 40%,
    #b7f5c7 55%,
    var(--green-400) 70%,
    var(--green-700) 100%);
  background-size: 200% 100%;
  animation: gi-line-shimmer 2.4s linear infinite;
}

/* Icon circle breathe on collapsed cards */
@keyframes gi-icon-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  50%       { transform: translate(-50%, -50%) scale(1.1); opacity: 0.75; }
}
.gi-exp-card:not(.is-active) .gi-exp-icon-wrap {
  animation: gi-icon-breathe 2.8s ease-in-out infinite;
}

/* Stagger breathe so all 4 inactive icons don't pulse in sync */
.gi-exp-card[data-idx="1"]:not(.is-active) .gi-exp-icon-wrap { animation-delay: 0.5s; }
.gi-exp-card[data-idx="2"]:not(.is-active) .gi-exp-icon-wrap { animation-delay: 1.0s; }
.gi-exp-card[data-idx="3"]:not(.is-active) .gi-exp-icon-wrap { animation-delay: 1.5s; }
.gi-exp-card[data-idx="4"]:not(.is-active) .gi-exp-icon-wrap { animation-delay: 2.0s; }

/* Stop breathe when active (icon fades away anyway) */
.gi-exp-card.is-active .gi-exp-icon-wrap { animation: none; }

/* Slide-up entrance for description text */
@keyframes gi-desc-in {
  from { transform: translateY(22px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.gi-exp-card.is-active .gi-exp-desc {
  animation: gi-desc-in 0.55s cubic-bezier(.22,1,.36,1) 0.3s both;
}

/* responsive */
@media (max-width: 767px) {
  .gi-exp-cards {
    flex-direction: column;
    height: auto;
  }
  .gi-exp-card { flex: none; height: 70px; }
  .gi-exp-card.is-active { height: 300px; flex: none; }
  .gi-exp-card:not(.is-active) .gi-exp-title {
    writing-mode: horizontal-tb; font-size: .82rem;
    white-space: nowrap; text-align: center;
  }
  .gi-exp-card:not(.is-active) .gi-exp-content {
    bottom: auto; top: 50%; transform: translateY(-50%);
    padding: 0 16px;
  }
  .gi-exp-card:not(.is-active) .gi-exp-icon-wrap { display: none; }
  .gi-exp-card.is-active .gi-exp-content {
    padding: 0 20px 24px;
  }
}

/* ── Intro Label (matches renewable.html style) ── */
.svc-intro-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Jost', sans-serif; font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: #28a745;
  margin-bottom: 16px;
}
.svc-accent-line {
  display: inline-block; width: 26px; height: 2px;
  background: var(--green-400); border-radius: 2px; flex-shrink: 0;
}
.svc-left-content { display: flex; flex-direction: column; justify-content: flex-start; }

/* ── Numbered List ── */
.numbered-list { display: flex; flex-direction: column; gap: 12px; }
.nl-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
  transition: border-color var(--transition);
}
.nl-item:hover { border-color: var(--green-400); }
.nl-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white); font-family: 'Jost', sans-serif;
  font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nl-item strong { display: block; font-size: .95rem; color: var(--green-900); margin-bottom: 4px; }
.nl-item div    { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── Highlight List ── */
.highlight-list { display: flex; flex-direction: column; gap: 12px; }
.hl-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; background: var(--green-50);
  border-radius: 10px; border: 1px solid var(--green-200);
  transition: transform var(--transition);
}
.hl-item:hover { transform: translateX(5px); }
.hl-item > i   { color: var(--green-500); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.hl-item strong { display: block; color: var(--green-900); margin-bottom: 3px; font-size: .95rem; }
.hl-item div   { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── Benefits + Support Two-Col Section ── */
.gi-benefits-section { background: var(--white) !important; }

.gi-two-col-wrap {
  display: flex; gap: 0; align-items: stretch; width: 100%; overflow: hidden;
}
.gi-col { flex: 1; min-width: 0; padding: 8px 24px; }
.gi-col--left  { background: transparent; padding-left: 0; }
.gi-col--right { background: transparent; padding-right: 0; }

/* Centre divider */
.gi-col-divider {
  display: flex; align-items: stretch; justify-content: center;
  padding: 0; flex-shrink: 0; width: 24px;
}
.gi-divider-line {
  width: 1px; background: linear-gradient(to bottom, transparent, var(--green-200) 15%, var(--green-400) 50%, var(--green-200) 85%, transparent);
  margin: 0 auto;
}

/* Benefit list */
.gi-benefit-list { display: flex; flex-direction: column; gap: 0; margin-top: 12px; }

.gi-benefit-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left var(--transition);
}
.gi-benefit-item:last-child { border-bottom: none; }
.gi-benefit-item:hover { padding-left: 6px; }

/* Number badges — 5 green shades */
.gi-num {
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: .78rem;
  min-width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: .04em; color: #fff; margin-top: 1px;
}
.gi-num--1 { background: #042a20; }
.gi-num--2 { background: #085041; }
.gi-num--3 { background: #0b6b53; }
.gi-num--4 { background: #0d806a; color: #fff; }
.gi-num--5 { background: #149e80; color: #fff; }

.gi-benefit-body { display: flex; flex-direction: column; gap: 3px; }
.gi-benefit-body strong { font-size: .93rem; font-weight: 700; display: block; }
.gi-benefit-body span   { font-size: .83rem; color: var(--muted); line-height: 1.6; }

/* Title colour follows the same dark-to-light gradient as the number badges */
.gi-benefit-list .gi-benefit-item:nth-child(1) .gi-benefit-body strong { color: #0e6b4f; }
.gi-benefit-list .gi-benefit-item:nth-child(2) .gi-benefit-body strong { color: #148a63; }
.gi-benefit-list .gi-benefit-item:nth-child(3) .gi-benefit-body strong { color: #1aa87e; }
.gi-benefit-list .gi-benefit-item:nth-child(4) .gi-benefit-body strong { color: #2ac693; }
.gi-benefit-list .gi-benefit-item:nth-child(5) .gi-benefit-body strong { color: #3fddab; }

@media (max-width: 991px) {
  .gi-two-col-wrap  { flex-direction: column; }
  .gi-col-divider   { width: 100%; height: 40px; }
  .gi-divider-line  { width: 80%; height: 1px; margin: auto; background: linear-gradient(to right, transparent, var(--green-400), transparent); }
  .gi-col           { padding: 20px 8px; }
}

/* ── Detail Tabs ── */
.detail-tabs {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.detail-tab-nav { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.dtab {
  flex: 1; padding: 14px 10px;
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: .9rem;
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.dtab:hover { color: #085041; }
.dtab.active { color: #085041; background: var(--white); border-bottom-color: var(--green-500); }
.detail-tab-panels { padding: 32px; }
.dtab-panel { display: none; }
.dtab-panel.active { display: block; }

/* ── Checklist Grid with Numbers ── */
.checklist-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  counter-reset: check-counter;
}
.check-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: .95rem; line-height: 1.65; color: var(--text);
  padding: 6px 0; counter-increment: check-counter;
}
.check-item i { display: none; }
.check-item::before {
  content: counter(check-counter);
  min-width: 28px; height: 28px;
  background: var(--green-700); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}

/* ── Let's Talk CTA ── */
.gi-letstalk { padding: 32px 0 !important; background: #fff; border-top: 1px solid #e5ede8; }
.svc-cta-link {
  display: inline-flex; align-items: center; gap: 16px;
  text-decoration: none; cursor: pointer;
  border-bottom: 1.5px solid transparent;
  padding: 8px 0;
  transition: border-color .3s;
}
.svc-cta-link:hover { border-bottom-color: #28a745; }
.svc-cta-sub {
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #28a745; display: block; margin-bottom: 4px;
}
.svc-cta-main {
  font-family: 'Jost', sans-serif; font-size: 1.15rem; font-weight: 700;
  color: #0f2d1a; display: block; letter-spacing: .01em;
}
.svc-cta-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #28a745; color: #28a745; font-size: 1.25rem; line-height: 1;
  flex-shrink: 0;
  transition: background .3s ease, color .3s ease, transform .35s cubic-bezier(0.34,1.56,0.64,1), border-color .3s ease;
}
.svc-cta-link:hover .svc-cta-icon {
  background: #28a745; color: #fff; border-color: #28a745;
  transform: translateX(6px);
}
.svc-cta-icon span { display: block; animation: svc-arrow-bounce 1.6s ease-in-out infinite; }
.svc-cta-link:hover .svc-cta-icon span { animation: none; }
@keyframes svc-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .svc-section { padding: 56px 0; }
  .svc-title   { font-size: 1.8rem; }
  .sub-heading { font-size: 1.35rem; }
  .gi-stats    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .svc-section       { padding: 40px 0; }
  .svc-title         { font-size: 1.55rem; }
  .svc-header        { margin-bottom: 28px; }
  .checklist-grid    { grid-template-columns: 1fr; }
  .detail-tab-panels { padding: 20px; }
  .gi-stats          { grid-template-columns: 1fr 1fr; }
}
