/* =============================================
   GREENBRAIN TECHNOLOGIES — INDUSTRIES
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gb-green-deep:    #0b5c2e;
  --gb-green-mid:     #0d9744;
  --gb-green-bright:  #22c55e;
  --gb-green-mint:    #4ade80;
  --gb-green-tint:    #f0fdf4;
  --gb-dark:          #0d1117;
  --gb-dark-2:        #111827;
  --gb-dark-3:        #1f2937;
  --gb-text:          #111827;
  --gb-text-muted:    #6b7280;
  --gb-border:        #e5e7eb;
  --gb-white:         #ffffff;
  --gb-light:         #f8fafc;
  --gb-font-head:     'Montserrat', sans-serif;
  --gb-font-body:     'Montserrat', sans-serif;
  --gb-radius:        8px;
  --gb-radius-lg:     16px;
  --gb-shadow:        0 4px 24px rgba(0,0,0,.08);
  --gb-shadow-lg:     0 12px 48px rgba(0,0,0,.15);
  --gb-max:           1200px;
  --gb-transition:    .25s ease;
}

html { scroll-behavior: smooth; background: var(--gb-dark); }
body { font-family: var(--gb-font-body); color: var(--gb-text); background: var(--gb-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }

.gb-container    { max-width: var(--gb-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }
.gb-section-label { font-family: var(--gb-font-body); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gb-green-mid); margin-bottom: 1rem; display: block; }
.gb-tag          { display: inline-block; background: rgba(13,151,68,.12); color: var(--gb-green-mid); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 100px; }
.gb-tag--light   { background: rgba(255,255,255,.15); color: rgba(255,255,255,.85); }

/* ── Buttons ──────────────────────────────────── */
.gb-btn           { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.8rem; border-radius: var(--gb-radius); font-family: var(--gb-font-body); font-size: .9rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; border: 2px solid transparent; transition: all var(--gb-transition); white-space: nowrap; }
.gb-btn--primary  { background: var(--gb-green-mid); color: var(--gb-white); border-color: var(--gb-green-mid); }
.gb-btn--primary:hover { background: var(--gb-green-deep); border-color: var(--gb-green-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,151,68,.35); }
.gb-btn--outline  { background: transparent; color: var(--gb-white); border-color: rgba(255,255,255,.4); }
.gb-btn--outline:hover { border-color: var(--gb-white); background: rgba(255,255,255,.08); transform: translateY(-1px); }
.gb-btn-group     { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Navigation ───────────────────────────────── */
.gb-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.25rem 0; background: var(--gb-white); box-shadow: 0 2px 16px rgba(0,0,0,.08); transition: all .3s ease; }
.gb-nav.scrolled { background: var(--gb-white); box-shadow: 0 2px 20px rgba(0,0,0,.12); padding: .9rem 0; }
.gb-nav__inner   { display: flex; align-items: center; gap: 2rem; }
.gb-nav__logo    { flex-shrink: 0; }
.gb-nav__logo img { height: 36px; width: auto; }
.gb-nav__menu    { display: flex; align-items: center; gap: .25rem; margin-left: auto; list-style: none; }
.gb-nav__menu > li { position: relative; }
.gb-nav__menu > li > a { font-size: .875rem; font-weight: 500; color: var(--gb-text); padding: .5rem .85rem; border-radius: 6px; transition: all var(--gb-transition); display: block; }
.gb-nav__menu > li > a:hover,
.gb-nav__menu > li > a[aria-current="page"] { color: var(--gb-green-mid); background: rgba(13,151,68,.07); }
.gb-nav__dropdown { position: relative; }
.gb-nav__dropdown-trigger { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.gb-nav__dropdown-menu { position: absolute; top: calc(100% + .5rem); left: 0; background: var(--gb-white); border: 1px solid var(--gb-border); border-radius: var(--gb-radius); padding: .5rem; min-width: 180px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s ease; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.gb-nav__dropdown:hover .gb-nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.gb-nav__dropdown-menu a { display: block; padding: .6rem 1rem; font-size: .85rem; color: var(--gb-text); border-radius: 6px; transition: all var(--gb-transition); }
.gb-nav__dropdown-menu a:hover { background: rgba(13,151,68,.08); color: var(--gb-green-mid); }
.gb-nav__ctas    { display: flex; gap: .75rem; align-items: center; flex-shrink: 0; }
.gb-nav__ctas .gb-btn { padding: .6rem 1.2rem; font-size: .83rem; }
.gb-nav .gb-btn--outline { color: var(--gb-green-deep); border-color: var(--gb-green-deep); }
.gb-nav .gb-btn--outline:hover { background: var(--gb-green-deep); color: var(--gb-white); }
.gb-nav__toggle  { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.gb-nav__toggle span { display: block; width: 24px; height: 2px; background: var(--gb-text); transition: all .3s; border-radius: 2px; }

/* ── Section headings ─────────────────────────── */
.gb-section-head          { margin-bottom: 3.5rem; }
.gb-section-head--center  { text-align: center; }
.gb-section-head--center .gb-section-label { justify-content: center; display: flex; }
.gb-section-head h2       { font-family: var(--gb-font-head); font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--gb-text); margin-bottom: 1rem; }
.gb-section-head--dark h2 { color: var(--gb-white); }
.gb-section-head p        { font-size: 1.05rem; color: var(--gb-text-muted); max-width: 560px; line-height: 1.7; }
.gb-section-head--center p { margin-left: auto; margin-right: auto; }
.gb-section-head--dark p  { color: rgba(255,255,255,.55); }

/* ── CTA Banner ───────────────────────────────── */
.gb-cta { padding: 6rem 0; background: linear-gradient(135deg, var(--gb-green-deep) 0%, #0d4a25 100%); position: relative; overflow: hidden; border-radius: 2.5rem; margin-top: -2.5rem; z-index: 8; box-shadow: 0 32px 80px rgba(0,0,0,.45); }
.gb-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(74,222,128,.12) 0%, transparent 60%); pointer-events: none; }
.gb-cta__inner  { text-align: center; position: relative; max-width: 680px; margin: 0 auto; }
.gb-cta__inner .gb-section-label { color: rgba(255,255,255,.6); justify-content: center; display: flex; }
.gb-cta h2      { font-family: var(--gb-font-head); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; color: var(--gb-white); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 1.25rem; }
.gb-cta p       { font-size: 1.05rem; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 2.5rem; }
.gb-cta .gb-btn--primary { background: var(--gb-white); color: var(--gb-green-deep); border-color: var(--gb-white); }
.gb-cta .gb-btn--primary:hover { background: var(--gb-green-mint); border-color: var(--gb-green-mint); color: var(--gb-green-deep); }
.gb-cta .gb-btn--outline { border-color: rgba(255,255,255,.5); color: var(--gb-white); }
.gb-cta .gb-btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--gb-white); }

/* ── Footer ───────────────────────────────────── */
.gb-footer { background: var(--gb-dark); padding: 4rem 0 2rem; border-radius: 2.5rem 2.5rem 0 0; margin-top: 3rem; position: relative; z-index: 9; }
.gb-footer__top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.gb-footer__brand img { height: 36px; margin-bottom: 1.25rem; }
.gb-footer__brand-name { font-family: var(--gb-font-head); font-size: 1rem; font-weight: 700; color: var(--gb-white); margin-bottom: .75rem; }
.gb-footer__brand p  { font-size: .875rem; color: rgba(255,255,255,.45); line-height: 1.7; max-width: 280px; }
.gb-footer__col h5   { font-family: var(--gb-font-head); font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem; }
.gb-footer__col ul   { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.gb-footer__col ul li a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--gb-transition); }
.gb-footer__col ul li a:hover { color: var(--gb-green-mint); }
.gb-footer__bottom   { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gb-footer__bottom p { font-size: .82rem; color: rgba(255,255,255,.3); }
.gb-footer__social   { display: flex; gap: .75rem; }
.gb-footer__social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: all var(--gb-transition); color: rgba(255,255,255,.5); }
.gb-footer__social a:hover { background: rgba(13,151,68,.2); border-color: rgba(13,151,68,.4); color: var(--gb-green-mint); }
.gb-footer__social svg { width: 15px; height: 15px; fill: currentColor; }

/* ============================================
   PAGE HERO
   ============================================ */
.gb-page-hero {
  background: var(--gb-dark);
  padding: 8.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.gb-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 30%, rgba(13,151,68,.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(11,92,46,.15) 0%, transparent 55%);
  pointer-events: none;
}
.gb-page-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(13,151,68,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,151,68,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.gb-page-hero .gb-container { width: 100%; max-width: 100%; }
@media (min-width: 769px) {
  .gb-page-hero .gb-container { max-width: var(--gb-max); margin-left: 0; }
}
.gb-page-hero__content {
  position: relative; z-index: 1;
  max-width: 780px;
}
.gb-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1.75rem;
  font-size: .8rem; font-weight: 500;
  color: rgba(255,255,255,.4);
}
.gb-breadcrumb a { color: rgba(255,255,255,.4); transition: color var(--gb-transition); }
.gb-breadcrumb a:hover { color: var(--gb-green-mint); }
.gb-breadcrumb svg { flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gb-breadcrumb span[aria-current] { color: rgba(255,255,255,.75); }
.gb-page-hero .gb-section-label { color: var(--gb-green-mint); }
.gb-page-hero h1 {
  font-family: var(--gb-font-head);
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.025em;
  color: var(--gb-white);
  margin-bottom: 1.5rem;
}
.gb-page-hero__sub {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  font-weight: 400; line-height: 1.75;
  color: rgba(255,255,255,.6);
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.gb-page-hero__pills {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.gb-page-hero__pill {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 100px;
  padding: .45rem 1rem;
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .03em;
}
.gb-page-hero__pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gb-green-bright);
}

/* ============================================
   INDUSTRIES GRID SECTION
   ============================================ */
.gb-industries {
  padding: 6rem 0; background: var(--gb-white);
  border-radius: 2.5rem; margin-top: -2.5rem;
  position: relative; z-index: 2;
}

.gb-industries__intro {
  max-width: 640px; margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.05rem; color: var(--gb-text-muted); line-height: 1.75;
}

.gb-industries__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}

.gb-industry-card {
  background: var(--gb-light);
  border: 1px solid var(--gb-border);
  border-bottom: 3px solid transparent;
  border-radius: var(--gb-radius-lg);
  padding: 2.25rem 1.75rem;
  transition: all .3s ease;
  position: relative; overflow: hidden;
  cursor: default;
}
.gb-industry-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,151,68,.05) 0%, transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.gb-industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gb-shadow-lg);
  border-color: rgba(13,151,68,.25);
  border-bottom-color: var(--gb-green-mid);
  background: var(--gb-white);
}
.gb-industry-card:hover::before { opacity: 1; }

.gb-industry-card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  background: rgba(13,151,68,.1);
  transition: background .3s ease;
  flex-shrink: 0;
}
.gb-industry-card:hover .gb-industry-card__icon {
  background: rgba(13,151,68,.18);
}
.gb-industry-card__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--gb-green-mid);
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.gb-industry-card h4 {
  font-family: var(--gb-font-head);
  font-size: .95rem; font-weight: 700;
  color: var(--gb-text); margin-bottom: .65rem;
  letter-spacing: -.01em; line-height: 1.3;
}

.gb-industry-card p {
  font-size: .84rem; color: var(--gb-text-muted); line-height: 1.65;
}

/* ============================================
   IMPACT STATS SECTION
   ============================================ */
.gb-ind-stats {
  padding: 5rem 0; background: var(--gb-dark-2);
  border-radius: 2.5rem; margin-top: -2.5rem;
  position: relative; z-index: 3; overflow: hidden;
}
.gb-ind-stats::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(13,151,68,.08) 0%, transparent 65%);
  pointer-events: none;
}
.gb-ind-stats__head {
  text-align: center; margin-bottom: 3.5rem; position: relative;
}
.gb-ind-stats__head .gb-section-label { color: rgba(255,255,255,.4); justify-content: center; display: flex; }
.gb-ind-stats__head h2 {
  font-family: var(--gb-font-head);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700; color: var(--gb-white);
  letter-spacing: -.02em; line-height: 1.2;
}

.gb-ind-stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.gb-ind-stat {
  text-align: center; padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.gb-ind-stat:last-child { border-right: none; }

.gb-ind-stat__number {
  font-family: var(--gb-font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; color: var(--gb-green-bright);
  line-height: 1; margin-bottom: .6rem;
  letter-spacing: -.03em;
}
.gb-ind-stat__number span { color: var(--gb-green-bright); }

.gb-ind-stat__label {
  font-size: .82rem; font-weight: 600;
  color: rgba(255,255,255,.4); letter-spacing: .08em;
  text-transform: uppercase; line-height: 1.4;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gb-pulse  { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes gb-reveal-up    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gb-reveal-scale { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@supports (animation-timeline: view()) {

  .gb-page-hero__content {
    animation: gb-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 20%;
  }

  .gb-section-head {
    animation: gb-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }

  .gb-industries__intro {
    animation: gb-reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }

  .gb-industries__grid { view-timeline-name: --ind-vt; }
  .gb-industry-card {
    animation: gb-reveal-up linear both;
    animation-timeline: --ind-vt;
    animation-range: entry 0% entry 52%;
  }
  .gb-industry-card:nth-child(2) { animation-range: entry  9% entry 61%; }
  .gb-industry-card:nth-child(3) { animation-range: entry 18% entry 70%; }
  .gb-industry-card:nth-child(4) { animation-range: entry 27% entry 79%; }
  .gb-industry-card:nth-child(5) { animation-range: entry 36% entry 88%; }
  .gb-industry-card:nth-child(6) { animation-range: entry 45% entry 97%; }
  .gb-industry-card:nth-child(7) { animation-range: entry 54% entry 106%; }
  .gb-industry-card:nth-child(8) { animation-range: entry 63% entry 115%; }

  .gb-ind-stats__grid { view-timeline-name: --stats-vt; }
  .gb-ind-stat {
    animation: gb-reveal-up linear both;
    animation-timeline: --stats-vt;
    animation-range: entry 0% entry 60%;
  }
  .gb-ind-stat:nth-child(2) { animation-range: entry 10% entry 70%; }
  .gb-ind-stat:nth-child(3) { animation-range: entry 20% entry 80%; }
  .gb-ind-stat:nth-child(4) { animation-range: entry 30% entry 90%; }

  .gb-cta__inner {
    animation: gb-reveal-scale linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }

  .gb-footer__top { view-timeline-name: --footer-vt; }
  .gb-footer__brand {
    animation: gb-reveal-up linear both;
    animation-timeline: --footer-vt;
    animation-range: entry 0% entry 55%;
  }
  .gb-footer__col:nth-child(2) { animation: gb-reveal-up linear both; animation-timeline: --footer-vt; animation-range: entry  9% entry 64%; }
  .gb-footer__col:nth-child(3) { animation: gb-reveal-up linear both; animation-timeline: --footer-vt; animation-range: entry 18% entry 73%; }
  .gb-footer__col:nth-child(4) { animation: gb-reveal-up linear both; animation-timeline: --footer-vt; animation-range: entry 27% entry 82%; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .gb-industries__grid { grid-template-columns: repeat(2, 1fr); }
  .gb-ind-stats__grid  { grid-template-columns: repeat(2, 1fr); }
  .gb-ind-stat         { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .gb-ind-stat:nth-child(3),
  .gb-ind-stat:nth-child(4) { border-bottom: none; }
  .gb-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .gb-industries,
  .gb-ind-stats,
  .gb-cta { border-radius: 1.25rem; margin-top: -1.25rem; }
  .gb-footer { border-radius: 1.25rem 1.25rem 0 0; margin-top: 2rem; }

  .gb-nav__menu, .gb-nav__ctas { display: none; }
  .gb-nav__toggle { display: flex; margin-left: auto; }

  .gb-nav.is-open .gb-nav__inner  { flex-wrap: wrap; }
  .gb-nav.is-open .gb-nav__menu  {
    display: flex !important; flex-direction: column; width: 100%;
    order: 10; margin-left: 0; gap: .1rem;
    padding: .75rem 0 .5rem;
    border-top: 1px solid var(--gb-border); margin-top: .75rem;
  }
  .gb-nav.is-open .gb-nav__menu > li > a { font-size: .95rem; padding: .7rem .5rem; color: var(--gb-text); }
  .gb-nav.is-open .gb-nav__ctas  {
    display: flex !important; flex-direction: column;
    width: 100%; order: 11; gap: .65rem; padding-bottom: 1rem;
  }
  .gb-nav.is-open .gb-nav__ctas .gb-btn { width: 100%; justify-content: center; }
  .gb-nav.is-open .gb-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gb-nav.is-open .gb-nav__toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .gb-nav.is-open .gb-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .gb-page-hero { padding: 7rem 0 4rem; }
  .gb-footer__top  { grid-template-columns: 1fr; gap: 2rem; }
  .gb-footer__bottom { flex-direction: column; text-align: center; }
  .gb-ind-stat:nth-child(2) { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .gb-ind-stat:nth-child(3) { border-bottom: 1px solid rgba(255,255,255,.06); }
}

@media (max-width: 480px) {
  .gb-industries__grid { grid-template-columns: 1fr; }
  .gb-ind-stats__grid  { grid-template-columns: repeat(2, 1fr); }
  .gb-btn-group   { flex-direction: column; }
  .gb-btn-group .gb-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
