/* =======================
   THEME VARIABLES
======================= */
:root {
  --bg: #F8FAF8;
  --bg-2: #FFFFFF;
  --fg: #1F2A1F;
  --fg-muted: #5A6C5A;

  --acc1: #6B8F71; /* primary sage */
  --acc2: #A3B18A; /* soft sage */
  --b: #E4EDE4;
  --ring: rgba(107, 143, 113, 0.22);

  --border-radius: 12px;

  /* Motion Tokens */
  --motion-fast: 140ms;
  --motion-med: 220ms;
  --motion-slow: 600ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring-lite: cubic-bezier(0.4, 0, 0.2, 1);

  /* Elevations */
  --elev-1: 0 2px 8px rgba(16, 24, 16, 0.06);
  --elev-2: 0 8px 24px rgba(16, 24, 16, 0.12);
}

/* =======================
   RESET & BASE
======================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =======================
   UTILITIES
======================= */
.maxw { max-width: 600px; margin: 0 auto; }

.muted { color: var(--fg-muted); text-align: center; margin-bottom: 48px; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  border-color: var(--acc1);
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: var(--border-radius);
}

/* =======================
   LAYOUT
======================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }

.grid2,
.grid3 { display: grid; gap: 24px; }

.grid2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.grid3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* =======================
   HEADER & NAV
======================= */

/* =======================
   HERO SECTION
======================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  overflow: hidden;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 143, 113, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 143, 113, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  z-index: 1;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 16px 0 24px;
}

.grad {
  background: linear-gradient(135deg, var(--acc1), var(--acc2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  background: rgba(107, 143, 113, 0.10);
  color: var(--acc1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(107, 143, 113, 0.25);
}

.hero-copy p { font-size: 18px; color: var(--fg-muted); margin-bottom: 32px; }

.cta { display: flex; gap: 16px; margin-bottom: 32px; }

.hero-highlights { display: flex; gap: 24px; }

.hero-highlights span { font-size: 14px; color: var(--fg-muted); }

.hero-highlights span::before {
  content: '✓';
  color: var(--acc2);
  margin-right: 8px;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

@media (max-width: 640px) {
  .cta { flex-direction: column; align-items: center; }
  .hero-highlights { justify-content: center; }
}

/* =======================
   CARD COMPONENTS
======================= */
.card {
  background: var(--bg-2);
  border: 1px solid var(--b);
  border-radius: var(--border-radius);
  padding: 24px;
  transition: border-color var(--motion-med) var(--ease-decel), box-shadow var(--motion-med) var(--ease-decel), transform var(--motion-med) var(--ease-decel);
}

.card:hover {
  border-color: var(--acc1);
  box-shadow: var(--elev-1);
  transform: translateY(-2px);
}

.card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

/* =======================
   BUTTONS
======================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), filter var(--motion-fast);
}

.btn-primary { background: var(--acc1); color: white; }

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: var(--elev-2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--b);
}

.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--acc1);
  transform: translateY(-2px);
}

/* =======================
   ANIMATIONS
======================= */
[data-animate] {
  transition: opacity var(--motion-slow) var(--ease-decel), transform var(--motion-slow) var(--ease-spring-lite);
  transform: translateY(8px);
  opacity: 0;
}

.animate-in { transform: translateY(0); opacity: 1; }

/* =======================
   SOLUTIONS GRID
======================= */
.solution-card {
  background: var(--bg-2);
  border: 1px solid var(--b);
  border-radius: var(--border-radius);
  padding: 20px;
  overflow: hidden;
  max-height: 280px;
  cursor: pointer;
  transition: border-color var(--motion-med), box-shadow var(--motion-med), transform var(--motion-med), max-height var(--motion-slow), padding var(--motion-slow);
}

.solution-card:hover { border-color: var(--acc1); box-shadow: var(--elev-1); transform: translateY(-2px); }

.solution-card.expanded { max-height: 1000px; padding: 24px; }

.expand-button .expand-icon { display: inline-block; transition: transform var(--motion-fast); }

.solution-card.expanded .expand-icon { transform: rotate(180deg); }

/* =======================
   FOOTER
======================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--b);
  padding: 20px 0;
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand { font-weight: 600; color: var(--fg); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--motion-fast) var(--ease-standard);
}

.footer-links a:hover { color: var(--acc1); }

.footer-copy { font-size: 0.85rem; color: var(--fg-muted); }

/* Keep footer at bottom if page content is short */
html, body { height: 100%; }
body { display: flex; flex-direction: column; }
.footer { margin-top: auto; }
