/* Brilliant Harvest — Main Stylesheet */
/* Light eco/sustainable theme */

/* =====================
   CSS Variables
   ===================== */
:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --text: #1a2e1a;
  --text-muted: #4a6050;
  --accent: #16a34a;
  --accent-dark: #15803d;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  margin: 0;
  padding: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

/* =====================
   Typography
   ===================== */
h1 { font-size: 3.6rem; font-weight: 700; line-height: 1.1; color: var(--text); margin-bottom: 0.5em; }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.3; color: var(--text); margin-bottom: 0.6em; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 0.5em; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: var(--text); margin-bottom: 0.4em; }
p, li { font-size: 1.1rem; line-height: 1.9; }
.label, .tag, .meta { font-size: 0.9rem; }

/* =====================
   Funding Bar
   ===================== */
#funding-bar { color: #fff !important; }

/* =====================
   Navigation
   ===================== */
#site-nav {
  position: fixed;
  top: var(--funding-bar-h, 0px);
  left: 0;
  right: 0;
  width: 100%;
  min-height: var(--nav-height);
  z-index: 9999;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 2.5em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.site-logo { flex-shrink: 0; display: flex; align-items: center; text-decoration: none; }
.site-logo svg { display: block; }

.nav-menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 0;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  padding: 0 1.2em;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-menu li a:hover,
.nav-menu li.current a {
  color: var(--accent);
}

.nav-menu li a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5em;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

#page-wrapper {
  padding-top: calc(var(--nav-height) + var(--funding-bar-h, 0px));
}

/* =====================
   Buttons
   ===================== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85em 2em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 0.85em 2em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* =====================
   Layout Utilities
   ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3em;
  align-items: center;
}

.section-pad {
  padding: 5em 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =====================
   Hero Section
   ===================== */
.hero-section {
  min-height: 620px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 5em 2em 5em;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 0;
  pointer-events: none;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5em;
  align-items: center;
}

.hero-label {
  color: var(--accent);
  font-size: 0.78em;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1em;
  font-weight: 600;
}

.hero-section h1 {
  color: #ffffff;
  font-size: 3.6rem;
  line-height: 1.1;
  margin-bottom: 0.8em;
}

.hero-section h1 span { color: var(--accent); }

.hero-tagline {
  color: rgba(0,0,0,0.60);
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2em;
}

.hero-cta {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.hero-right p {
  color: rgba(0,0,0,0.60);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 2em;
}

.hero-right .btn-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  align-items: flex-start;
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(22,163,74,0.15);
}

.hero-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* =====================
   Stats Bar
   ===================== */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5em 0;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3em;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* =====================
   Feature Cards
   ===================== */
.features-section {
  background: var(--bg);
  padding: 5em 0;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(22,163,74,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
  padding: 12px;
  box-sizing: border-box;
}
.card-icon img { width: 100%; height: 100%; object-fit: contain; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22,163,74,0.1);
}

/* =====================
   Product / Platform Page
   ===================== */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: center;
  padding: 4em 0;
  border-bottom: 1px solid var(--border);
}

.product-feature:last-child { border-bottom: none; }

.product-feature.reverse { direction: rtl; }
.product-feature.reverse > * { direction: ltr; }

.feature-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

.feature-img-wrap img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* =====================
   About Page
   ===================== */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.60);
  z-index: 0;
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 5em 2em 3em;
  background-image: url('../images/about-hero.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.page-hero h1 { font-size: 3rem; }

.spotlight-section {
  padding: 5em 0;
}

.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.story-img {
  flex-shrink: 0;
  width: 45%;
}

.story-img img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.story-text { flex: 1; }

/* =====================
   Investors Section
   ===================== */
#investors {
  background: var(--surface);
  padding: 5em 0;
}

.investor-card {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.5em;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

/* =====================
   Team Cards
   ===================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.2em;
  border: 3px solid rgba(22,163,74,0.2);
}

.team-card .title {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.7em;
}

/* =====================
   Blog / Article Listing
   ===================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .card-thumb img {
  transform: scale(1.05);
}

.card-body { padding: 1.5em; }

time { font-size: 0.82em; color: var(--text-muted); display: block; margin-bottom: 0.5em; }

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6em;
  color: var(--text);
  line-height: 1.4;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1em;
}

.read-more {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
}

/* =====================
   Article Pages
   ===================== */
.article-hero {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0faf0 100%);
  padding: 4em 2em 3em;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.article-meta {
  display: flex;
  gap: 1.5em;
  align-items: center;
  margin-top: 1em;
  flex-wrap: wrap;
}

.article-meta time { font-size: 0.9rem; color: var(--text-muted); }
.article-meta .author { font-size: 0.9rem; color: var(--text-muted); }

#article-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3em 2em 5em;
}

#article-main img {
  width: 100%;
  border-radius: var(--radius);
  margin: 2em 0;
}

#article-main h2 {
  font-size: 1.8rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

#article-main p { margin-bottom: 1.2em; }

#article-main ul, #article-main ol {
  margin: 1em 0 1.5em 1.5em;
}

#article-main li { margin-bottom: 0.5em; }

.article-nav {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--border);
}

.article-nav a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* =====================
   Contact Page
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5em;
  margin-top: 1.5em;
}

.contact-info h3:first-child { margin-top: 0; }
.contact-info p { margin-bottom: 0; }

.contact-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5em;
}

/* =====================
   Legal Pages
   ===================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4em 2em 5em;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.legal-content p, .legal-content li { font-size: 1rem; }

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2em;
}

/* =====================
   Footer
   ===================== */
#footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1em;
}

#footer h4 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2em;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li { margin-bottom: 0.6em; }

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.82em;
  color: var(--text-muted);
  margin-top: 0.5em;
}

/* =====================
   Cookie Banner
   ===================== */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}

.cookie-text { flex: 1; }

.cookie-text strong { font-size: 1rem; color: var(--text); }

.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.4em 0 0;
  line-height: 1.6;
}

.cookie-text a { color: var(--accent); }

.cookie-buttons {
  display: flex;
  gap: 0.8em;
  flex-shrink: 0;
}

#cookie-decline {
  padding: 0.6em 1.4em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
}

#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}

/* =====================
   Mission/Values Block
   ===================== */
.values-section {
  background: var(--surface);
  padding: 5em 0;
}

.value-item {
  padding: 1.5em;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.5em;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 980px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1em 0;
    z-index: 9998;
  }

  .nav-menu.open li a {
    height: auto;
    padding: 0.8em 2em;
    width: 100%;
  }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }

  .hero-inner { grid-template-columns: 1fr; gap: 2em; }
  .hero-right { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  #footer .inner { grid-template-columns: 1fr; padding: 2em; }

  .product-feature { grid-template-columns: 1fr; }
  .product-feature.reverse { direction: ltr; }

  .contact-grid { grid-template-columns: 1fr; }

  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }

  .article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .hero-section { padding: 4em 1em 3em; }
}


.hero-section h1, .hero-section h2 {
  color: #ffffff !important;
}
.hero-section p, .hero-section .hero-tagline {
  color: rgba(0,0,0,0.60) !important;
}
.hero-section .hero-label {
  color: var(--accent) !important;
}
/* Hero right column */
.hero-right p {
  color: rgba(0,0,0,0.60) !important;
}

/* Hero text -- white on dark overlay (all pages) */
.hero-section h1, .hero-section h2, .hero-section h3,
.hero-section p, .hero-section span, .hero-section a:not(.btn),
.hero-section .hero-label, .hero-section .hero-tagline,
.hero-right p, .hero-right h1, .hero-right h2,
.page-hero h1, .page-hero h2, .page-hero h3,
.page-hero p, .page-hero span, .page-hero .page-title, .page-hero .page-subtitle,
#hero h1, #hero h2, #hero p,
#banner h1, #banner h2, #banner p {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.hero-section .hero-label { color: #ffffff !important; opacity: 0.9; }
