/* GREEN14 style.css
   Palette (brand doc): white #FFFFFF, light beige #FAF9F6, green #57C672,
   dark grey #303031, black #222222, dusty teal #95A9AA.
   Deep green #196B24 (from deck theme) for small text accents on light bg. */

:root {
  --white: #FFFFFF;
  --beige: #FAF9F6;
  --green: #57C672;
  --green-deep: #196B24;
  --grey-dark: #303031;
  --black: #222222;
  --teal: #95A9AA;
  --line: #E5E3DC;
  --radius: 4px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Rubik', Arial, sans-serif;
  font-weight: 400;
  color: var(--grey-dark);
  background: var(--beige);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }

a { color: inherit; text-decoration: none; }
p a, .text-link { color: var(--green-deep); }
p a:hover, .text-link:hover { text-decoration: underline; }

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

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--green); color: var(--black); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-outline { border-color: var(--grey-dark); color: var(--grey-dark); }
.btn-outline:hover { background: var(--grey-dark); color: var(--beige); }
.dark .btn-outline { border-color: var(--teal); color: var(--beige); }
.dark .btn-outline:hover { background: var(--beige); color: var(--black); border-color: var(--beige); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 0.92rem;
  color: var(--grey-dark);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.main-nav .btn { padding: 10px 18px; border-bottom: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--grey-dark); cursor: pointer; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--beige);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 24px;
    gap: 16px;
  }
  .main-nav.open { display: flex; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 60px 0; } }

.dark { background: var(--grey-dark); color: var(--beige); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .muted { color: var(--teal); }
.tinted { background: #F1EFE8; }
.white-section { background: var(--white); }
.muted { color: #6B6A66; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grey-dark);
  color: var(--beige);
  padding: 130px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lede { max-width: 540px; margin-top: 22px; font-size: 1.1rem; color: #D9D7D0; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero.compact { padding: 90px 0 70px; }

/* ---------- Trio strip ---------- */
.trio { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; background: var(--beige); }
.trio .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.trio-item { padding: 30px 28px; border-right: 1px solid var(--line); }
.trio-item:first-child { padding-left: 0; }
.trio-item:last-child { border-right: none; padding-right: 0; }
.trio-item .eyebrow { margin-bottom: 8px; color: var(--teal); }
.trio-item p { font-size: 1rem; }
@media (max-width: 760px) {
  .trio .container { grid-template-columns: 1fr; }
  .trio-item { border-right: none; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .trio-item:last-child { border-bottom: none; }
}

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
a.card:hover { border-color: var(--green); transform: translateY(-3px); }
.card-img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .cta-row { margin-top: auto; padding-top: 14px; color: var(--green-deep); font-size: 0.92rem; font-weight: 500; }
.card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: #E7F4EA;
  padding: 4px 10px;
  border-radius: 3px;
}
.card .tag.dev { color: #5F5E5A; background: #EFEDE6; }
.card p { font-size: 0.98rem; }

/* ---------- Process flow ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; gap: 14px; align-items: stretch; margin-top: 44px; }
.flow-step { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.flow-step.core { background: var(--grey-dark); color: var(--beige); border-color: var(--grey-dark); }
.flow-step.core h4 { color: var(--white); }
.flow-step.core p { color: var(--teal); }
.flow-step h4 { margin-bottom: 6px; }
.flow-step p { font-size: 0.95rem; }
.flow-arrow { align-self: center; color: var(--green-deep); font-size: 1.6rem; }
@media (max-width: 880px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* ---------- Numbered steps (technology) ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-deep);
  margin-bottom: 10px;
}
.step h4 { margin-bottom: 6px; }
.step p { font-size: 0.92rem; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.stat .num { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 500; color: var(--green-deep); line-height: 1; }
.dark .stat .num { color: var(--green); }
.stat p { margin-top: 10px; font-size: 0.98rem; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 0; }
.split.gap-top { margin-top: 44px; }
.split img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split .body p + p { margin-top: 16px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Spec blocks ---------- */
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.spec { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; padding: 20px 24px; }
.spec h4 { margin-bottom: 4px; }
.spec p { font-size: 0.95rem; }
@media (max-width: 640px) { .spec-list { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; margin-top: 44px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; font-size: 0.98rem; border-bottom: 1px solid var(--line); }
.compare th { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #6B6A66; background: #F1EFE8; }
.compare td:last-child { color: var(--green-deep); font-weight: 500; }
.compare tr:last-child td { border-bottom: none; }

/* ---------- Partner strip ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; margin-top: 30px; }
.partners span { font-weight: 500; font-size: 1.05rem; color: #6B6A66; letter-spacing: 0.02em; }

/* ---------- Section headers ---------- */
.section-head { max-width: 720px; }
.section-head p { margin-top: 16px; }
.section-head.center { margin: 0 auto; text-align: center; }

/* ---------- Status banner ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E7F4EA;
  color: var(--green-deep);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  margin-top: 18px;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- CTA section ---------- */
.cta-section { position: relative; overflow: hidden; }
.cta-section .hero-bg { opacity: 0.22; }
.cta-section .container { position: relative; text-align: center; }
.cta-section p { max-width: 560px; margin: 18px auto 0; }
.cta-section .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--teal); padding: 64px 0 36px; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.footer-logo img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-bottom { border-top: 1px solid #3A3A3B; margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Partner logos & credits ---------- */
.card-logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; object-position: left; margin-bottom: 12px; }
.credits { font-size: 0.75rem; color: #6E6D69; margin-bottom: 18px; }
.credits a { text-decoration: underline; }
.credits a:hover { color: var(--white); }

/* ---------- Video embed ---------- */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--black); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }

/* ---------- News ---------- */
.news-card .news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.news-card .news-meta time { font-size: 0.82rem; color: #6B6A66; }
.news-card h3 { font-size: 1.15rem; line-height: 1.3; }
.news-card .card-img { aspect-ratio: 16 / 10; background: #ECEAE2; }
.img-placeholder {
  background: linear-gradient(135deg, #303031 0%, #3c4a3f 100%);
  position: relative;
}
.img-placeholder::after {
  content: "GREEN14";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,249,246,0.32); font-weight: 500; letter-spacing: 0.18em; font-size: 0.9rem;
}
.card-img.img-missing { display: none; }
