/* ═══════════════════════════════════════════════════════════
   FarmAgent CRT Compliance Website — Shared Design System
   site.css
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --agave:      #3ecf8e;
  --agave-dim:  #1a8a5e;
  --agave-pale: rgba(62,207,142,0.10);
  --gold:       #f5c842;
  --ember:      #e94560;
  --ink:        #080c10;
  --ink-2:      #0d1117;
  --ink-3:      #151c24;
  --panel:      #1a222e;
  --panel-2:    #212c3a;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.12);
  --text:       #e2e8f0;
  --muted:      #64748b;
  --font:       'Inter', sans-serif;
  --serif:      'DM Serif Display', serif;
  --radius:     12px;
  --radius-sm:  8px;
}
html  { scroll-behavior: smooth; }
body  { font-family: var(--font); background: var(--ink); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a     { color: inherit; text-decoration: none; }
img   { display: block; max-width: 100%; }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 40px;
  background: rgba(8,12,16,0.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-left   { display: flex; align-items: center; gap: 10px; }
.nav-logo   { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: -0.3px; }
.nav-icon   { width: 28px; height: 28px; background: linear-gradient(135deg,var(--agave),var(--agave-dim)); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.nav-divider{ width: 1px; height: 20px; background: var(--border-2); margin: 0 4px; }
.nav-links  { display: flex; align-items: center; gap: 4px; }
.nav-link   { font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 12px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--agave); }
.nav-cta    { background: var(--agave); color: var(--ink); font-weight: 700; font-size: 13px; padding: 8px 18px; border-radius: 6px; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: #5de8a8; transform: translateY(-1px); }

/* ── Section shells ── */
.section      { padding: 96px 24px; }
.section-sm   { padding: 64px 24px; }
.section-inner{ max-width: 1100px; margin: 0 auto; }
.section-inner--narrow { max-width: 780px; margin: 0 auto; }
.section-inner--wide   { max-width: 1280px; margin: 0 auto; }

/* ── Typography ── */
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--agave); margin-bottom: 14px; }
.eyebrow--gold  { color: var(--gold); }
.eyebrow--ember { color: var(--ember); }
h1.display, .h1 { font-family: var(--serif); font-size: clamp(44px,7vw,84px); line-height: 1.06; letter-spacing: -2.5px; color: #fff; }
h2.display, .h2 { font-family: var(--serif); font-size: clamp(32px,5vw,56px); line-height: 1.1;  letter-spacing: -1.5px; color: #fff; }
h3.display, .h3 { font-family: var(--serif); font-size: clamp(24px,3vw,36px); line-height: 1.2;  letter-spacing: -1px;   color: #fff; }
.lead  { font-size: 18px; color: rgba(226,232,240,0.72); line-height: 1.7; }
.body  { font-size: 15px; color: rgba(226,232,240,0.7);  line-height: 1.75; }
em.accent { font-style: italic; color: var(--agave); }
em.gold   { font-style: italic; color: var(--gold); }
em.ember  { font-style: italic; color: var(--ember); }

/* ── Buttons ── */
.btn        { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-weight: 600; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; border: none; font-size: 14px; padding: 11px 24px; }
.btn-lg     { font-size: 16px; padding: 14px 32px; }
.btn-primary{ background: var(--agave); color: var(--ink); }
.btn-primary:hover{ background: #5de8a8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,207,142,0.3); }
.btn-outline { background: transparent; color: #fff; border: 1px solid var(--border-2); }
.btn-outline:hover{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.btn-gold   { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #fad75e; transform: translateY(-2px); }
.btn-ember  { background: var(--ember); color: #fff; }
.btn-ember:hover { background: #f06070; transform: translateY(-2px); }
.btn-ghost  { background: transparent; color: var(--agave); border: 1px solid rgba(62,207,142,0.3); }
.btn-ghost:hover { background: var(--agave-pale); }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.badge-mandate{ background: rgba(233,69,96,0.12); color: var(--ember); border: 1px solid rgba(233,69,96,0.25); }
.badge-crt    { background: rgba(245,200,66,0.12); color: var(--gold);  border: 1px solid rgba(245,200,66,0.25); }
.badge-auto   { background: rgba(62,207,142,0.12); color: var(--agave); border: 1px solid rgba(62,207,142,0.25); }

/* ── Cards ── */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: border-color 0.25s, transform 0.2s; }
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card--agave:hover { border-color: rgba(62,207,142,0.3); }
.card--gold:hover  { border-color: rgba(245,200,66,0.3); }
.card--ember:hover { border-color: rgba(233,69,96,0.3); }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ── Feature list ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.feature-list li { font-size: 14px; color: rgba(226,232,240,0.82); padding-left: 22px; position: relative; line-height: 1.55; }
.feature-list li::before { content: '→'; position: absolute; left: 0; font-weight: 700; color: var(--agave); }
.feature-list--gold li::before  { color: var(--gold); }
.feature-list--ember li::before { color: var(--ember); }

/* ── Quote callout ── */
.callout { border-radius: var(--radius-sm); padding: 18px 20px; font-size: 14px; font-style: italic; line-height: 1.65; margin-top: 24px; }
.callout--agave { background: rgba(62,207,142,0.06); border: 1px solid rgba(62,207,142,0.18); color: var(--agave); }
.callout--gold  { background: rgba(245,200,66,0.06); border: 1px solid rgba(245,200,66,0.18); color: var(--gold); }
.callout--ember { background: rgba(233,69,96,0.06); border: 1px solid rgba(233,69,96,0.18); color: #f08090; }

/* ── Horizontal divider ── */
.hdivider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Pill stat ── */
.stat-pill { display: inline-flex; flex-direction: column; align-items: center; }
.stat-pill-num   { font-family: var(--serif); font-size: 40px; color: var(--agave); line-height: 1; }
.stat-pill-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; line-height: 1.4; text-align: center; margin-top: 4px; }

/* ── Section photo banner ── */
.photo-banner { position: relative; overflow: hidden; border-radius: var(--radius); }
.photo-banner img { width: 100%; height: 360px; object-fit: cover; display: block; border-radius: var(--radius); }
.photo-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,12,16,0.85) 0%, rgba(8,12,16,0.3) 60%, transparent 100%); border-radius: var(--radius); }
.photo-banner-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; }

/* ── Sub-page hero ── */
.subhero { padding: 160px 24px 80px; position: relative; overflow: hidden; }
.subhero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.25) saturate(1.2); }
.subhero-glow { position: absolute; inset: 0; pointer-events: none; }
.subhero-content { position: relative; z-index: 2; max-width: 820px; }
.subhero-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 24px; }
.subhero-breadcrumb a { color: var(--muted); transition: color 0.15s; }
.subhero-breadcrumb a:hover { color: #fff; }
.subhero-breadcrumb span { color: var(--border-2); }

/* ── Two-col feature section ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* ── Stage accordion card ── */
.stage { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.stage-header { display: flex; align-items: center; gap: 16px; padding: 24px 28px; }
.stage-num { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.stage-num--agave { background: rgba(62,207,142,0.15); color: var(--agave); }
.stage-num--gold  { background: rgba(245,200,66,0.15); color: var(--gold); }
.stage-num--ember { background: rgba(233,69,96,0.15); color: var(--ember); }
.stage-title { font-size: 17px; font-weight: 700; color: #fff; }
.stage-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stage-body  { padding: 0 28px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.stage-col h5 { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ── Image frame ── */
.img-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.img-frame img { width: 100%; height: auto; display: block; }
.img-caption { font-size: 11px; color: var(--muted); padding: 10px 14px; background: var(--panel); text-align: center; font-style: italic; }

/* ── Footer ── */
.site-footer { padding: 40px; background: var(--ink-2); border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.footer-logo { font-weight: 700; font-size: 14px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 20px; justify-content: center; }
.footer-link  { font-size: 12px; color: var(--muted); transition: color 0.15s; }
.footer-link:hover { color: #fff; }
.footer-contact { text-align: right; font-size: 12px; color: var(--muted); }

/* ── Animations ── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
.anim-fadeup { animation: fadeUp 0.7s ease both; }
.anim-d1 { animation-delay: 0.1s; } .anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.3s; } .anim-d4 { animation-delay: 0.4s; }
.anim-d5 { animation-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .two-col  { grid-template-columns: 1fr; gap: 40px; }
  .two-col--reverse { direction: ltr; }
  .stage-body { grid-template-columns: 1fr; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-contact { text-align: center; }
}
