/* ==========================================================================
   Green Clover — shared stylesheet
   ========================================================================== */

:root {
  --gc-green-900: #163d24;
  --gc-green-700: #1f6b3a;
  --gc-green-600: #2b8a4d;
  --gc-green-500: #3fa860;
  --gc-green-100: #e7f3ea;
  --gc-cream: #f7f6f2;
  --gc-ink: #16201a;
  --gc-ink-soft: #4a564d;
  --gc-white: #ffffff;
  --gc-gold: #c9a24b;
  --gc-border: #e1e3dd;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 61, 36, 0.08);
  --max-width: 1160px;
  --font-head: "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gc-ink);
  background: var(--gc-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--gc-green-900);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--gc-ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gc-green-600);
  margin-bottom: 10px;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--gc-green-700);
  color: var(--gc-white);
}
.btn-primary:hover { background: var(--gc-green-900); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--gc-green-700);
  color: var(--gc-green-700);
}
.btn-outline:hover { background: var(--gc-green-100); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gc-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gc-green-900);
}
.brand svg { flex-shrink: 0; }
.brand .tagline {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.01em;
  color: var(--gc-ink);
  text-transform: none;
}
.brand-logo-img {
  height: 46px;
  width: auto;
  display: block;
}
.brand-icon-img {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gc-ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gc-green-700);
  border-bottom-color: var(--gc-green-600);
}
/* The CTA button was inheriting the plain nav-link color/underline rules
   above (they're more specific than .btn-primary alone), which made its
   text nearly invisible against the green background. Force it back. */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta[aria-current="page"] {
  color: var(--gc-white);
  border-bottom: none;
  padding: 12px 24px;
}
.nav-cta {
  margin-left: 8px;
  box-shadow: 0 4px 14px rgba(31, 107, 58, 0.35);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gc-green-900);
  margin: 5px 0;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--gc-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--gc-border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--gc-border);
  }
  .nav-cta { margin: 16px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(63, 168, 96, 0.14), transparent 60%),
    var(--gc-cream);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 18px; }
.hero .lead {
  font-size: 1.15rem;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: 999px;
  padding: 8px 18px;
  margin-top: 24px;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}
.stat-pill strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gc-green-700);
}

.hero-card {
  background: var(--gc-white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gc-border);
  padding: 28px;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--gc-border);
  font-size: 0.95rem;
  color: var(--gc-ink-soft);
}
.hero-card li:last-child { border-bottom: none; }
.hero-card .check {
  color: var(--gc-green-600);
  font-weight: 700;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-alt { background: var(--gc-white); border-top: 1px solid var(--gc-border); border-bottom: 1px solid var(--gc-border); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.sector-card {
  border-top: 4px solid var(--gc-green-600);
}
.sector-card .eyebrow { margin-bottom: 6px; }
.sector-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gc-green-100);
  color: var(--gc-green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Sector showcase animation (desktop only) ----------
   On smaller screens the cards stack in one column and there's no room
   for the staggered reveal/hover choreography to read well, so this whole
   block is scoped to wider viewports. Below this width, cards are simply
   visible with no animation. */
@media (min-width: 901px) {
  #sector-showcase .sector-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }
  #sector-showcase .sector-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 61, 36, 0.16);
    border-top-color: var(--gc-green-500);
  }
  #sector-showcase .sector-card:hover .sector-icon {
    background: var(--gc-green-700);
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
  }
  #sector-showcase .sector-icon {
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
    animation: gc-icon-float 3.2s ease-in-out infinite;
  }
  #sector-showcase .sector-card:nth-child(2) .sector-icon { animation-delay: 0.3s; }
  #sector-showcase .sector-card:nth-child(3) .sector-icon { animation-delay: 0.6s; }
  #sector-showcase .sector-card:nth-child(4) .sector-icon { animation-delay: 0.9s; }

  /* Scroll-triggered reveal: JS adds .gc-reveal only on desktop (see
     script.js), then .gc-in-view once the section scrolls into view. */
  #sector-showcase .sector-card.gc-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  #sector-showcase .sector-card.gc-reveal.gc-in-view {
    opacity: 1;
    transform: translateY(0);
  }
  #sector-showcase .sector-card:nth-child(1).gc-reveal { transition-delay: 0s; }
  #sector-showcase .sector-card:nth-child(2).gc-reveal { transition-delay: 0.12s; }
  #sector-showcase .sector-card:nth-child(3).gc-reveal { transition-delay: 0.24s; }
  #sector-showcase .sector-card:nth-child(4).gc-reveal { transition-delay: 0.36s; }
}

@keyframes gc-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- Sectors page: per-sector detail sections ---------- */
.sector-detail {
  max-width: 72ch;
}
.sector-detail .sector-icon {
  margin-bottom: 16px;
}

@media (min-width: 901px) {
  .sector-detail.gc-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .sector-detail.gc-reveal.gc-in-view {
    opacity: 1;
    transform: translateY(0);
  }
  .sector-detail .sector-icon {
    animation: gc-icon-float 3.2s ease-in-out infinite;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-block {
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: 28px 16px;
}
.stat-block .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gc-green-700);
  display: block;
}
.stat-block .label {
  font-size: 0.88rem;
  color: var(--gc-ink-soft);
}

/* ---------- Proof stats animation ----------
   The count-up (0 -> 90%, etc.) runs on every screen size — it's cheap and
   doesn't depend on layout. The card lift/reveal choreography is desktop
   only, matching the sector cards/sections elsewhere on the site. */
@media (min-width: 901px) {
  #proof-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  #proof-stats .stat-block {
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }
  #proof-stats .stat-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(22, 61, 36, 0.14);
    border-color: var(--gc-green-500);
  }
  #proof-stats .stat-block.gc-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  #proof-stats .stat-block.gc-reveal.gc-in-view {
    opacity: 1;
    transform: translateY(0);
  }
  #proof-stats .stat-block:nth-child(1).gc-reveal { transition-delay: 0s; }
  #proof-stats .stat-block:nth-child(2).gc-reveal { transition-delay: 0.1s; }
  #proof-stats .stat-block:nth-child(3).gc-reveal { transition-delay: 0.2s; }
}

.testimonial {
  border-left: 3px solid var(--gc-green-600);
  padding-left: 18px;
  font-style: italic;
  color: var(--gc-ink);
  margin: 20px 0;
}
.testimonial cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gc-ink-soft);
}

.logo-strip {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.75;
}
.logo-placeholder {
  width: 130px;
  height: 52px;
  border: 1px dashed var(--gc-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--gc-ink-soft);
  text-align: center;
  padding: 6px;
  background: var(--gc-white);
}

.person-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--gc-green-100);
  border: 2px dashed var(--gc-green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gc-green-700);
  text-align: center;
  flex-shrink: 0;
}
.avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gc-green-100);
}
.person-card h3 { margin-bottom: 4px; }
.role-tag {
  font-size: 0.82rem;
  color: var(--gc-green-600);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gc-green-700);
  margin-top: 6px;
}

.cta-band {
  background: var(--gc-green-900);
  color: var(--gc-white);
  border-radius: 20px;
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: var(--gc-white); }
.cta-band p { color: rgba(255,255,255,0.8); }

.badge {
  display: inline-block;
  background: var(--gc-green-100);
  color: var(--gc-green-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gc-ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gc-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--gc-cream);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gc-green-500);
  outline-offset: 1px;
  background: var(--gc-white);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-two { grid-template-columns: 1fr; } }
.form-note { font-size: 0.8rem; color: var(--gc-ink-soft); margin-top: 10px; }

/* ---------- Contact channels ---------- */
.contact-channels {
  display: grid;
  gap: 16px;
}
.channel {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--gc-white);
  border: 1px solid var(--gc-border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.channel .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gc-green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.channel h3 { margin-bottom: 2px; font-size: 1rem; }
.channel p { margin-bottom: 8px; font-size: 0.9rem; }
.channel a.value {
  color: var(--gc-green-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.channel a.value:hover { color: var(--gc-green-900); }
.channel-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gc-green-900);
  color: rgba(255,255,255,0.82);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  color: var(--gc-white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gc-white); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.footer-brand .brand { color: var(--gc-white); }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,0.6);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gated {
  background: var(--gc-green-100);
  border: 1px dashed var(--gc-green-500);
  border-radius: var(--radius);
  padding: 24px;
}
.todo-flag {
  display: inline-block;
  background: #fff3cd;
  border: 1px solid #f0c76a;
  color: #7a5b00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
}
