/* ============================================================
   Carbon Strategists — Custom Theme
   Palette: Black, Green (#428861), White, Brown (#8c7d5e)
   ============================================================ */

:root {
  --black: #0a0a0a;
  --black-2: #121212;
  --black-3: #1a1a1a;
  --green: #428861;
  --green-dark: #2f6348;
  --green-darker: #1f4230;
  --green-light: #d2eec1;
  --green-mid: #99c380;
  --brown: #8c7d5e;
  --brown-light: #c7b48f;
  --white: #ffffff;
  --gray-100: #f4f4f2;
  --gray-300: #e5e5e0;
  --gray-400: #d1d1d1;
  --gray-500: #9ca3af;
  --gray-700: #4b5563;
  --font-head: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--green-light); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--white); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
strong { color: var(--white); }
::selection { background: var(--green); color: var(--white); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline:hover { border-color: var(--green-light); color: var(--green-light); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 46px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu-item { position: relative; }
.menu-link {
  display: block; padding: 10px 16px; color: var(--white); font-family: var(--font-head);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; border-radius: 8px;
}
.menu-link:hover { color: var(--green-light); }
.caret { font-size: .7em; opacity: .7; margin-left: 2px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--black-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 8px 0 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block; padding: 11px 14px; color: var(--gray-400); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem;
}
.dropdown li a:hover { background: rgba(66,136,97,.18); color: var(--green-light); }
.dropdown-item { position: relative; }
.has-submenu > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sub-dropdown {
  position: absolute; top: 0; left: 100%; min-width: 240px;
  background: var(--black-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0 0 0 8px; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateX(-8px);
  transition: all .18s ease;
}
.has-submenu:hover .sub-dropdown, .has-submenu:focus-within .sub-dropdown {
  opacity: 1; visibility: visible; transform: translateX(0);
}
.nav-cta { padding: 10px 22px; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: all .25s ease; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh; display: flex; align-items: center;
  background-size: cover; background-position: center; background-color: var(--black-2);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.72) 45%, rgba(31,66,48,.55) 100%);
}
.hero-content { position: relative; padding-top: 80px; padding-bottom: 80px; max-width: 780px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green-light);
  background: rgba(66,136,97,.2); border: 1px solid rgba(153,195,128,.35);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 18px; }
.hero-sub { font-size: 1.2rem; color: var(--gray-400); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; background-size: cover; background-position: center;
  padding: 96px 0 72px; background-color: var(--black-2);
}
.page-hero .hero-overlay {
  background: linear-gradient(100deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.7) 55%, rgba(31,66,48,.5) 100%);
}
.page-hero-content { position: relative; max-width: 820px; }
.page-hero-plain {
  background: linear-gradient(135deg, var(--green-darker) 0%, var(--black-2) 70%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.page-hero h1 { margin-bottom: 10px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--black-2); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--gray-400); font-size: 1.08rem; margin: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 24px; margin-top: 8px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--black-3); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 30px 28px; color: var(--white);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.card:hover { transform: translateY(-5px); border-color: rgba(153,195,128,.45); box-shadow: var(--shadow); color: var(--white); }
.card.static { border-top: 3px solid var(--green); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(66,136,97,.18); color: var(--green-light);
}
.card-icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-400); font-size: .97rem; margin-bottom: 16px; flex: 1; }
.card-link { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--green-light); }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-darker) 100%); border-block: 1px solid rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.stat { text-align: center; padding: 8px; }
.stat-value { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--white); }
.stat-label { display: block; font-size: .92rem; color: var(--green-light); margin-top: 4px; }

/* ---------- Two column ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col-text { display: flex; flex-direction: column; gap: 14px; }
.tile {
  background: var(--black-3); border-left: 4px solid var(--green);
  padding: 16px 20px; border-radius: 8px; color: var(--gray-400); font-size: .98rem;
}
.tile strong { display: block; color: var(--white); margin-bottom: 2px; }

/* ---------- Pillars ---------- */
.pillar { margin-bottom: 56px; }
.pillar:last-child { margin-bottom: 0; }
.pillar-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.12rem; font-weight: 700; color: var(--green-light);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.pillar-title::before { content: ""; flex: 0 0 6px; width: 6px; height: 28px; background: var(--green); border-radius: 3px; }
.pillar-sub { color: var(--gray-400); max-width: 760px; margin-bottom: 26px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--black-3); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green); color: var(--white); font-family: var(--font-head); font-weight: 800;
  margin-bottom: 14px;
}
.step h4 { margin-bottom: 6px; }
.step p { color: var(--gray-400); font-size: .94rem; margin: 0; }
.center-note { text-align: center; color: var(--gray-400); margin-top: 28px; }

/* ---------- Prose (article body) ---------- */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose .card-grid, .prose .two-col, .prose .steps, .prose .stats-grid { margin: 28px 0; }
.prose .card p, .prose .tile, .prose .step p { color: var(--gray-400); }

.callout {
  background: rgba(66,136,97,.14); border: 1px solid rgba(153,195,128,.35);
  border-left: 4px solid var(--green); border-radius: 10px; padding: 22px 26px; margin: 28px 0;
}
.callout h4 { margin-bottom: 8px; color: var(--green-light); }
.callout p { margin: 0; color: var(--gray-300); }
.callout.brown { background: rgba(140,125,94,.14); border-color: rgba(199,180,143,.35); border-left-color: var(--brown); }
.callout.brown h4 { color: var(--brown-light); }

/* ---------- Tables ---------- */
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.prose th { background: var(--black-3); color: var(--green-light); font-family: var(--font-head); }
.prose tr:hover td { background: rgba(255,255,255,.03); }

/* ---------- Leader cards ---------- */
.leader-card { background: var(--black-3); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 18px; text-align: center; }
.leader-card img { border-radius: 10px; margin-bottom: 14px; width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.leader-card h3 { margin-bottom: 2px; }
.leader-card .role { color: var(--green-light); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin: 0; }
.leader { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 40px; align-items: start; }
.leader img { border-radius: var(--radius); width: 220px; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.leader .role { color: var(--green-light); font-family: var(--font-head); font-weight: 600; margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 8px; }
.cta-inner p { color: var(--green-light); margin: 0; }
.cta-band .btn-green { background: var(--white); color: var(--green-darker); }
.cta-band .btn-green:hover { background: var(--green-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black-2); border-top: 1px solid rgba(255,255,255,.08); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: var(--gray-500); font-size: .94rem; }
.footer-col h4 { color: var(--green-light); margin-bottom: 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--gray-400); font-size: .95rem; }
.footer-col ul a:hover { color: var(--green-light); }
.footer-contact p { color: var(--gray-400); font-size: .95rem; line-height: 1.9; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.footer-bottom p { margin: 0; color: var(--gray-500); font-size: .88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hamburger { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black-2); border-bottom: 1px solid rgba(255,255,255,.1);
    flex-direction: column; align-items: stretch; padding: 16px 24px 24px; gap: 0;
  }
  .main-nav.open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; width: 100%; }
  .menu-link { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0; padding: 0 0 4px 12px; min-width: 0;
  }
  .dropdown li a { padding: 9px 6px; }
  .dropdown-item { position: static; }
  .sub-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; margin: 0; padding: 0 0 4px 16px; min-width: 0;
  }
  .sub-dropdown li a { padding: 9px 6px; }
  .nav-cta { margin-top: 14px; }
  .hero { min-height: 70vh; }
  .leader { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .card-grid.four { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
