/* ============================================================
   AGRILLION PAGES BUNDLE — Full Design System
   Self-contained dark corporate theme
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --c-bg:       #0a0f0d;
  --c-card:     #111a14;
  --c-card2:    #0d1610;
  --c-primary:  #22c55e;
  --c-primary-d:#16a34a;
  --c-accent:   #d4af37;
  --c-text:     #f1f5f9;
  --c-muted:    #94a3b8;
  --c-border:   rgba(255,255,255,0.08);
  --c-border2:  rgba(255,255,255,0.04);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
  --font-b:     'Inter','Segoe UI',system-ui,sans-serif;
  --font-d:     'Playfair Display',Georgia,serif;
  --ease:       0.25s ease;
}

/* ── RESET ─────────────────────────────────────────────── */
.apb-page *, .apb-page *::before, .apb-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.apb-page { font-family: var(--font-b); background: var(--c-bg); color: var(--c-text); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
.apb-page a { color: var(--c-primary); text-decoration: none; transition: color var(--ease); }
.apb-page a:hover { color: var(--c-accent); }
.apb-page img { max-width: 100%; height: auto; display: block; }
.apb-page h1,.apb-page h2,.apb-page h3,.apb-page h4 { font-family: var(--font-d); line-height: 1.15; color: var(--c-text); }
.apb-page ul { list-style: none; padding: 0; }

/* ── LAYOUT ────────────────────────────────────────────── */
.apb-container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.apb-section      { padding: 80px 0; }
.apb-section-dark { background: var(--c-card); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.apb-text-center  { text-align: center; }
.apb-grid-2       { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.apb-gap-lg       { gap: 64px; }
.apb-reverse      { direction: rtl; }
.apb-reverse > *  { direction: ltr; }

/* ── TYPOGRAPHY ────────────────────────────────────────── */
.apb-section-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 10px; }
.apb-section-title { font-size: clamp(26px,3.5vw,44px); font-weight: 700; margin-bottom: 14px; }
.apb-section-desc  { color: var(--c-muted); font-size: 17px; max-width: 600px; margin: 0 auto 44px; line-height: 1.7; }
.apb-body-text     { color: #cbd5e1; font-size: 16px; line-height: 1.8; }
.apb-tagline       { font-size: 16px; font-style: italic; }
.apb-gold          { color: var(--c-accent) !important; }

/* ── BADGES ────────────────────────────────────────────── */
.apb-badge        { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; border: 1px solid currentColor; }
.apb-badge-primary { color: var(--c-primary); background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); }
.apb-badge-accent  { color: var(--c-accent); background: rgba(212,175,55,.08); border-color: rgba(212,175,55,.25); }

/* ── BUTTONS ───────────────────────────────────────────── */
.apb-btn       { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; border: 2px solid transparent; transition: all var(--ease); white-space: nowrap; text-decoration: none; font-family: var(--font-b); }
.apb-btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.apb-btn-primary:hover { background: var(--c-primary-d); color: #fff; border-color: var(--c-primary-d); transform: translateY(-1px); }
.apb-btn-accent  { background: var(--c-accent); color: #0a0f0d; border-color: var(--c-accent); }
.apb-btn-accent:hover { opacity: .88; color: #0a0f0d; transform: translateY(-1px); }
.apb-btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.apb-btn-outline:hover { border-color: rgba(255,255,255,.3); color: var(--c-text); }
.apb-btn-ghost   { background: rgba(255,255,255,.06); color: var(--c-text); border-color: transparent; }
.apb-btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--c-text); }
.apb-btn-sm  { padding: 7px 16px; font-size: 12px; }
.apb-btn-lg  { padding: 15px 34px; font-size: 16px; }
.apb-btn-full { width: 100%; }

/* ── NAVBAR ────────────────────────────────────────────── */
.apb-navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,15,13,.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border);
}
.apb-navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.apb-logo-link   { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.apb-logo-img    { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; flex-shrink: 0; }
.apb-logo-link span { font-family: var(--font-d); font-weight: 700; font-size: 19px; }
.apb-nav-a  { color: var(--c-primary); }
.apb-nav-g  { color: var(--c-accent); margin-left: 4px; }
.apb-nav-links   { display: flex; align-items: center; gap: 34px; }
.apb-nav-link    { font-size: 13px; font-weight: 500; color: #cbd5e1; transition: color var(--ease); }
.apb-nav-link:hover, .apb-nav-link.active { color: var(--c-accent); }
.apb-nav-actions { display: flex; align-items: center; gap: 10px; }
.apb-hamburger   { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.apb-hamburger span { display: block; width: 22px; height: 2px; background: var(--c-text); border-radius: 2px; transition: all var(--ease); }

/* ── HERO ──────────────────────────────────────────────── */
.apb-hero {
  position: relative; overflow: hidden; min-height: 88vh;
  display: flex; align-items: center; padding: 80px 0;
}
.apb-hero-bg { position: absolute; inset: 0; }
.apb-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.apb-hero-bg::after { content:''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(10,15,13,.88) 40%,rgba(34,197,94,.06) 100%); }
.apb-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.apb-hero h1 { font-size: clamp(34px,5.5vw,68px); line-height: 1.07; margin-bottom: 22px; }
.apb-hero-sub { font-size: 18px; color: #cbd5e1; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.apb-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── PAGE HERO (inner pages) ───────────────────────────── */
.apb-page-hero { padding: 100px 0 72px; }
.apb-page-hero h1 { font-size: clamp(28px,4vw,52px); margin-bottom: 18px; }
.apb-page-hero-sm { padding: 72px 0 56px; }

/* ── STATS BAR ─────────────────────────────────────────── */
.apb-stats-bar   { background: var(--c-card); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); padding: 32px 0; }
.apb-stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.apb-stat-item   { text-align: center; padding: 16px; }
.apb-stat-item strong { font-family: var(--font-d); font-size: 36px; font-weight: 700; color: var(--c-primary); display: block; }
.apb-stat-item span   { font-size: 12px; color: var(--c-muted); display: block; margin-top: 4px; }

/* ── CARDS ─────────────────────────────────────────────── */
.apb-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--ease); }
.apb-card:hover { border-color: rgba(255,255,255,.16); transform: translateY(-4px); box-shadow: var(--shadow); }
.apb-card-body { padding: 28px; }
.apb-card h3 { font-size: 19px; margin-bottom: 10px; }
.apb-card p  { color: var(--c-muted); font-size: 14px; line-height: 1.7; }

/* ── SERVICE CARDS ─────────────────────────────────────── */
.apb-services-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; }
.apb-svc-card      { background: linear-gradient(135deg,rgba(var(--svc-color-rgb),.06) 0%,var(--c-card) 100%); background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 28px; transition: all var(--ease); border-top: 3px solid var(--svc-color,var(--c-primary)); }
.apb-svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.apb-svc-icon      { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.apb-svc-card h3   { font-size: 18px; margin-bottom: 8px; }
.apb-svc-card p    { color: var(--c-muted); font-size: 14px; line-height: 1.65; }
.apb-svc-link      { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); font-size: 13px; font-weight: 600; margin-top: 16px; }
.apb-svc-link:hover { color: var(--c-accent); }

/* ── PRODUCT CARDS ─────────────────────────────────────── */
.apb-product-grid  { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; }
.apb-product-card  { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--ease); }
.apb-product-card:hover { transform: translateY(-4px); border-color: rgba(34,197,94,.3); box-shadow: 0 0 0 1px rgba(34,197,94,.12),var(--shadow); }
.apb-product-card img { width: 100%; height: 210px; object-fit: cover; }
.apb-product-body  { padding: 18px; }
.apb-product-body h4 { font-size: 17px; margin-bottom: 6px; }
.apb-product-meta  { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; gap: 6px; }
.apb-product-price  { font-size: 18px; font-weight: 700; color: var(--c-primary); }
.apb-product-origin { font-size: 11px; color: var(--c-muted); background: rgba(255,255,255,.04); padding: 3px 10px; border-radius: 99px; border: 1px solid var(--c-border); }

/* ── BLOG CARDS ────────────────────────────────────────── */
.apb-blog-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 28px; }
.apb-blog-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--ease); }
.apb-blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(255,255,255,.16); }
.apb-blog-img  { display: block; }
.apb-blog-img img { width: 100%; height: 200px; object-fit: cover; }
.apb-blog-body { padding: 20px; }
.apb-blog-body h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.apb-blog-body h3 a { color: var(--c-text); transition: color var(--ease); }
.apb-blog-body h3 a:hover { color: var(--c-accent); }
.apb-blog-body p  { color: var(--c-muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.apb-read-more    { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-primary); }
.apb-read-more:hover { color: var(--c-accent); }

/* ── STEP CARDS ────────────────────────────────────────── */
.apb-step-card  { text-align: center; padding: 28px 20px; background: var(--c-card2); border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.apb-step-num   { font-family: var(--font-d); font-size: 40px; font-weight: 700; color: var(--c-primary); margin-bottom: 12px; opacity: .6; }
.apb-step-card h4 { font-size: 16px; margin-bottom: 8px; }
.apb-step-card p  { color: var(--c-muted); font-size: 13px; line-height: 1.65; }

/* ── IMPACT SECTION ────────────────────────────────────── */
.apb-impact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 20px; }
.apb-impact-card { text-align: center; padding: 30px 16px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.apb-impact-num  { font-family: var(--font-d); font-size: 40px; font-weight: 700; color: var(--c-primary); }
.apb-impact-lbl  { font-size: 12px; color: var(--c-muted); margin-top: 6px; }

/* ── CTA BOX ───────────────────────────────────────────── */
.apb-cta-box   { background: linear-gradient(135deg,#0d4e1e 0%,var(--c-bg) 70%); border-radius: var(--radius-lg); padding: 72px 60px; text-align: center; border: 1px solid rgba(34,197,94,.15); position: relative; overflow: hidden; }
.apb-cta-box::before { content:''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%,rgba(34,197,94,.06) 0%,transparent 60%); }
.apb-cta-box h2 { font-size: clamp(24px,3.5vw,42px); margin-bottom: 16px; position: relative; }
.apb-cta-box p  { color: #a7f3d0; font-size: 17px; max-width: 500px; margin: 0 auto 36px; position: relative; }
.apb-cta-btns   { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── IMAGE WRAP ────────────────────────────────────────── */
.apb-img-wrap   { position: relative; }
.apb-img-wrap img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--c-border); }
.apb-img-badge  { position: absolute; bottom: -20px; left: -20px; background: var(--c-card); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px 22px; box-shadow: var(--shadow); }
.apb-img-badge strong { font-family: var(--font-d); font-size: 28px; color: var(--c-primary); display: block; }
.apb-img-badge p { font-size: 11px; color: var(--c-muted); margin-top: 2px; }

/* ── CHECK LIST ────────────────────────────────────────── */
.apb-check-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: #cbd5e1; font-size: 14px; }
.apb-check-list li svg { flex-shrink: 0; margin-top: 1px; }

/* ── FORMS ─────────────────────────────────────────────── */
.apb-form { display: flex; flex-direction: column; gap: 0; }
.apb-form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apb-form-group { margin-bottom: 18px; }
.apb-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #cbd5e1; }
.apb-input { width: 100%; padding: 11px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--c-border); border-radius: var(--radius); color: var(--c-text); font-size: 14px; font-family: var(--font-b); transition: border-color var(--ease); }
.apb-input:focus { outline: none; border-color: var(--c-primary); background: rgba(255,255,255,.06); }
.apb-input::placeholder { color: #475569; }
.apb-textarea { resize: vertical; min-height: 110px; }

/* ── ALERTS ────────────────────────────────────────────── */
.apb-alert         { padding: 13px 17px; border-radius: var(--radius); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.apb-alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); color: #86efac; }
.apb-alert-error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: #fca5a5; }
.apb-alert-warning { background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.2); color: #fde68a; }

/* ── PROSE (legal pages) ───────────────────────────────── */
.apb-prose { max-width: 820px; margin: 0 auto; }
.apb-prose h2 { font-size: 22px; margin: 40px 0 14px; color: var(--c-text); }
.apb-prose p  { color: #cbd5e1; font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.apb-prose ul { list-style: disc; padding-left: 24px; color: #cbd5e1; font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.apb-prose a  { color: var(--c-primary); text-decoration: underline; }
.apb-prose em { color: var(--c-muted); }

/* ── FOOTER ────────────────────────────────────────────── */
.apb-footer      { background: var(--c-card); border-top: 1px solid var(--c-border); padding: 60px 0 0; }
.apb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.apb-footer-brand p { color: var(--c-muted); font-size: 14px; max-width: 300px; margin-top: 14px; line-height: 1.7; }
.apb-footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e2e8f0; margin-bottom: 16px; }
.apb-footer-col ul { list-style: none; }
.apb-footer-col ul li { margin-bottom: 9px; }
.apb-footer-col ul li a { color: var(--c-muted); font-size: 13px; transition: color var(--ease); }
.apb-footer-col ul li a:hover { color: var(--c-accent); }
.apb-footer-contact li { color: var(--c-muted); font-size: 13px; margin-bottom: 8px; }
.apb-footer-contact a  { color: var(--c-muted); }
.apb-footer-bottom { border-top: 1px solid var(--c-border); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--c-muted); flex-wrap: wrap; gap: 12px; }
.apb-footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.apb-footer-legal a { color: var(--c-muted); transition: color var(--ease); }
.apb-footer-legal a:hover { color: var(--c-accent); }

/* ── MARKET FILTER ACTIVE ───────────────────────────────── */
.apb-market-filter.active { background: rgba(34,197,94,.12); color: var(--c-primary); border-color: rgba(34,197,94,.3); }

/* ── PAGINATION ────────────────────────────────────────── */
.apb-page .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--c-border); color: var(--c-muted); font-size: 13px; transition: all var(--ease); margin: 0 3px; }
.apb-page .page-numbers:hover, .apb-page .page-numbers.current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.apb-page .page-numbers.dots { background: none; border: none; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .apb-footer-grid { grid-template-columns: 1fr 1fr; }
  .apb-stats-grid  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .apb-nav-links, .apb-nav-actions .apb-btn-ghost { display: none; }
  .apb-hamburger  { display: flex; }
  .apb-mobile-menu-open .apb-nav-links { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--c-card); padding: 20px 24px; border-bottom: 1px solid var(--c-border); gap: 16px; z-index: 999; }
  .apb-grid-2  { grid-template-columns: 1fr; }
  .apb-reverse { direction: ltr; }
  .apb-img-wrap{ order: -1; }
  .apb-img-badge { display: none; }
  .apb-form-row { grid-template-columns: 1fr; }
  .apb-cta-box  { padding: 48px 24px; }
  .apb-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .apb-hero-sub { font-size: 16px; }
  .apb-section  { padding: 56px 0; }
  .apb-services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .apb-stats-grid   { grid-template-columns: repeat(2,1fr); }
  .apb-product-grid { grid-template-columns: 1fr; }
}
