/*
Theme Name: eco jib
Theme URI: https://ecojib.com/
Author: Ecojib Limited
Author URI: https://ecojib.com/
Description: An Elementor-ready WordPress theme for eco jib (Ecojib Limited) — biodegradable & compostable plastic alternatives, eco air filters, circular-economy products and safe organic agro food. Ships the full eco jib design system (Fraunces + Hanken Grotesk + Space Mono, brand palette, buttons, cards, lifecycle band) so everything built in Elementor inherits the brand automatically. Includes a fallback brand header/footer, full-width & canvas templates, and importable Elementor page templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecojib
Tags: full-site-editing, elementor, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, eco, green, business
*/

/* =====================================================================
   eco jib — DESIGN TOKENS
   ===================================================================== */
:root{
  --canopy:#12281d;
  --forest:#26642f;        /* eco jib green */
  --forest-2:#2f7d3f;
  --leaf:#4e9d5b;
  --leaf-light:#7dc98a;
  --sprout:#bcd46a;
  --jute:#d6a24e;
  --jute-deep:#b5832f;
  --paper:#f0f2ea;
  --card:#ffffff;
  --ink:#16241c;
  --muted:#4f5f53;
  --line:#dbe0d0;
  --on-dark:#eaf0e3;
  --on-dark-muted:#bcd0c0;
  --maxw:1160px;
}

/* =====================================================================
   BASE
   ===================================================================== */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Hanken Grotesk",system-ui,sans-serif;
  font-size:18px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  letter-spacing:.001em;
}
h1,h2,h3{font-family:"Fraunces",Georgia,serif;font-weight:500;line-height:1.08;margin:0;letter-spacing:-0.01em;}
p{margin:0 0 1.05em;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;height:auto;}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 30px;}
.measure{max-width:62ch;}

.eyebrow{
  font-family:"Space Mono",monospace;
  font-size:12.5px;
  letter-spacing:0.2em;
  text-transform:uppercase;
  color:var(--forest-2);
  margin:0 0 18px;
  font-weight:700;
}

/* =====================================================================
   BUTTONS  (also map Elementor / Gutenberg buttons to brand)
   ===================================================================== */
.btn,
.ecojib-content .elementor-button,
.wp-block-button__link{
  display:inline-block;
  font-weight:600;
  font-size:16px;
  padding:14px 26px;
  border-radius:100px;
  cursor:pointer;
  border:1.5px solid var(--forest);
  transition:transform .18s ease, background .18s ease, color .18s ease;
}
.btn-primary,
.ecojib-content .elementor-button,
.wp-block-button__link{background:var(--forest);color:#fff;}
.btn-primary:hover,
.ecojib-content .elementor-button:hover,
.wp-block-button__link:hover{background:var(--canopy);border-color:var(--canopy);color:#fff;transform:translateY(-2px);}
.btn-ghost{background:transparent;color:var(--forest);}
.btn-ghost:hover{background:var(--forest);color:#fff;transform:translateY(-2px);}

/* =====================================================================
   LOGO
   ===================================================================== */
.logo{display:flex;align-items:center;gap:13px;}
.logo .leaf-mark{flex:none;}
.logo .lf-body{fill:#1f5130;}
.logo .lf-vein{stroke:#9ed3a3;fill:none;stroke-width:2.4;stroke-linecap:round;}
.logo .wm{font-family:"Fraunces",serif;font-weight:600;font-size:26px;line-height:1;color:#1f5130;letter-spacing:-.01em;}
.logo .wm em{font-style:normal;color:var(--forest-2);}
.logo .lock{display:flex;flex-direction:column;gap:0;}
.logo .rule{height:1.5px;background:#cdd8c4;width:100%;margin:7px 0 6px;}
.logo .tagline{font-family:"Space Mono",monospace;font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:#4e9d5b;font-weight:700;}
.logo--dark .lf-body{fill:#4e9d5b;}
.logo--dark .lf-vein{stroke:#143524;}
.logo--dark .wm{color:#eef1e6;}
.logo--dark .wm em{color:#6cbf7b;}
.logo--dark .rule{background:#2c4636;}
.logo--dark .tagline{color:#86b394;}
.logo--full .wm{font-size:34px;}

/* =====================================================================
   NAV (fallback brand header)
   ===================================================================== */
header.nav{
  position:sticky;top:0;z-index:50;
  background:rgba(240,242,234,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;height:74px;}
.nav-inner .logo .wm{font-size:24px;}
.nav-inner img.custom-logo{max-height:46px;width:auto;}
nav.menu{display:flex;gap:2px;flex-wrap:wrap;}
nav.menu ul{list-style:none;display:flex;gap:2px;flex-wrap:wrap;margin:0;padding:0;}
nav.menu li{margin:0;}
nav.menu a,
nav.menu button{
  display:inline-block;
  font-family:inherit;font-size:14.5px;font-weight:500;
  background:none;border:none;cursor:pointer;color:var(--muted);
  padding:9px 12px;border-radius:100px;transition:color .15s, background .15s;white-space:nowrap;text-decoration:none;
}
nav.menu a:hover,
nav.menu button:hover{color:var(--canopy);}
nav.menu .current-menu-item > a,
nav.menu a[aria-current="page"],
nav.menu button[aria-current="true"]{color:var(--forest);background:#e3e9d8;font-weight:600;}
.menu-toggle{display:none;background:none;border:1.5px solid var(--line);border-radius:10px;padding:9px 11px;cursor:pointer;}
.menu-toggle span{display:block;width:20px;height:2px;background:var(--canopy);margin:4px 0;}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.ecojib-content section,
section.ecojib-section{padding:88px 0;}
.section-head{max-width:700px;margin-bottom:52px;}
.section-head h2{font-size:clamp(31px,4.4vw,47px);}
.section-head p{color:var(--muted);font-size:19px;margin-top:18px;}

/* ---------- HERO ---------- */
.hero{position:relative;overflow:hidden;padding:0;}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center;padding:82px 0 68px;}
.hero h1{font-size:clamp(42px,6.2vw,74px);color:var(--canopy);}
.hero h1 em{font-style:italic;color:var(--forest);}
.hero .lede{font-size:21px;color:var(--muted);max-width:31em;margin:26px 0 34px;}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;}
.hero-tag{font-family:"Space Mono",monospace;font-size:12.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--jute-deep);margin-bottom:22px;font-weight:700;}
.hero-art{position:relative;min-height:430px;display:flex;align-items:flex-end;justify-content:center;}
.soil{position:absolute;left:0;right:0;bottom:0;height:120px;border-radius:0 0 22px 22px;
  background:linear-gradient(180deg,#7c5a36 0%, #5e4327 60%, #3f2c18 100%);}
.soil::before{content:"";position:absolute;top:-9px;left:0;right:0;height:14px;background:var(--leaf);border-radius:60% 60% 0 0/100% 100% 0 0;opacity:.85;}
.pot{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;}

/* ---------- LIFECYCLE BAND ---------- */
.lifecycle{background:var(--canopy);color:var(--on-dark);border-radius:24px;padding:54px 40px;position:relative;overflow:hidden;}
.lifecycle h3{color:#fff;font-size:28px;margin-bottom:8px;}
.lifecycle .sub{color:var(--on-dark-muted);font-size:16.5px;margin-bottom:42px;max-width:48em;}
.lc-track{display:flex;align-items:flex-start;gap:0;position:relative;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;}
.lc-step{flex:1 1 0;min-width:140px;text-align:center;position:relative;padding:0 8px;}
.lc-step .dot{width:56px;height:56px;border-radius:50%;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;
  background:#1d3a2a;border:2px solid var(--leaf);position:relative;z-index:2;transition:transform .3s;}
.lc-step .dot svg{width:27px;height:27px;}
.lc-step:hover .dot{transform:scale(1.08);background:var(--forest);}
.lc-step .num{font-family:"Space Mono",monospace;font-size:11.5px;color:var(--sprout);letter-spacing:.1em;}
.lc-step .t{font-weight:600;font-size:16px;color:#fff;margin:4px 0 5px;}
.lc-step .d{font-size:14px;color:var(--on-dark-muted);line-height:1.45;}
.lc-line{position:absolute;top:28px;left:50%;width:100%;height:2px;background:repeating-linear-gradient(90deg,var(--leaf) 0 7px,transparent 7px 14px);opacity:.5;z-index:1;}
.lc-step:last-child .lc-line{display:none;}

/* ---------- STATS ---------- */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.stat{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:32px 28px;}
.stat .fig{font-family:"Fraunces";font-size:46px;color:var(--forest);line-height:1;}
.stat .lab{margin-top:13px;font-size:15.5px;color:var(--muted);}

/* ---------- PILLARS ---------- */
.pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.pillar{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:32px 28px;transition:transform .2s, box-shadow .2s;}
.pillar:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(18,40,29,.08);}
.pillar .ic{width:48px;height:48px;border-radius:12px;background:#e3e9d8;display:flex;align-items:center;justify-content:center;margin-bottom:18px;}
.pillar h3{font-size:22px;margin-bottom:9px;}
.pillar p{font-size:15.5px;color:var(--muted);margin:0;}

/* ---------- PRODUCTS ---------- */
.prod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.prod{background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s, box-shadow .2s;}
.prod:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(18,40,29,.09);}
.prod .top{height:132px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e2ead2,#cfe0bf);}
.prod .top svg{width:56px;height:56px;color:var(--forest);}
.prod .body{padding:26px;flex:1;display:flex;flex-direction:column;}
.prod h3{font-size:21px;margin-bottom:9px;}
.prod p{font-size:15.5px;color:var(--muted);}
.prod .meta{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap;}
.tag{font-family:"Space Mono",monospace;font-size:11px;letter-spacing:.05em;text-transform:uppercase;background:#e3e9d8;color:var(--forest);padding:5px 10px;border-radius:6px;}

/* ---------- STANDARDS ---------- */
.standards{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:46px 38px;}
.standards h2{font-size:31px;}
.standards .lead{color:var(--muted);max-width:50em;margin-top:14px;font-size:17px;}
.std-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-top:30px;}
.std{text-align:center;padding:20px 12px;border:1px solid var(--line);border-radius:14px;}
.std .code{font-family:"Space Mono",monospace;font-weight:700;color:var(--forest);font-size:15.5px;}
.std .desc{font-size:13px;color:var(--muted);margin-top:7px;line-height:1.4;}

/* ---------- FLOW STRIP ---------- */
.flow{display:flex;align-items:center;gap:0;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:30px 26px;margin-bottom:46px;}
.flow .node{flex:1 1 150px;text-align:center;min-width:140px;}
.flow .node .ic{width:54px;height:54px;border-radius:14px;background:#e3e9d8;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;}
.flow .node .ic svg{width:26px;height:26px;color:var(--forest);}
.flow .node h4{font-family:"Hanken Grotesk";font-size:15.5px;font-weight:700;margin:0 0 3px;color:var(--canopy);}
.flow .node p{font-size:13.5px;color:var(--muted);margin:0;}
.flow .arrow{flex:0 0 36px;display:flex;align-items:center;justify-content:center;color:var(--jute);font-size:24px;}

/* ---------- ARTICLES / FEATURE ---------- */
.feature{display:grid;grid-template-columns:1.1fr .9fr;gap:0;background:var(--canopy);border-radius:22px;overflow:hidden;margin-bottom:38px;}
.feature .txt{padding:50px 46px;color:var(--on-dark);}
.feature .txt .cat{font-family:"Space Mono",monospace;font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--sprout);font-weight:700;}
.feature .txt h3{color:#fff;font-size:31px;margin:15px 0 15px;}
.feature .txt p{color:var(--on-dark-muted);font-size:16.5px;margin:0;}
.feature .side{background:linear-gradient(135deg,#2f6b43,#1d4a2e);display:flex;align-items:center;justify-content:center;padding:30px;}
.feature .side svg{width:120px;height:120px;color:#bcd46a;opacity:.9;}
.art-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.art{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:30px;transition:transform .2s,box-shadow .2s;}
.art:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(18,40,29,.08);}
.art .cat{font-family:"Space Mono",monospace;font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--jute-deep);font-weight:700;}
.art h3{font-size:22px;margin:13px 0 11px;}
.art p{font-size:15.5px;color:var(--muted);margin:0;}
.art .read{margin-top:17px;font-weight:600;font-size:15px;color:var(--forest);}

/* ---------- AGRO ---------- */
.agro-banner{background:linear-gradient(135deg,#f3edd8,#e7efd6);border:1px solid var(--line);border-radius:22px;padding:44px 40px;display:flex;align-items:center;gap:30px;flex-wrap:wrap;margin-bottom:44px;}
.agro-banner .ic{width:76px;height:76px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none;}
.agro-banner h3{font-size:28px;color:var(--canopy);margin-bottom:9px;}
.agro-banner p{margin:0;color:var(--muted);max-width:46em;font-size:17px;}
.agro-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.agro{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:26px;transition:transform .2s;}
.agro:hover{transform:translateY(-4px);}
.agro .em{font-size:32px;}
.agro h3{font-size:19px;margin:14px 0 8px;}
.agro p{font-size:14.5px;color:var(--muted);margin:0;}

/* ---------- CIRCULAR (system) ---------- */
.loop{position:relative;max-width:560px;margin:0 auto;}
.loop svg{width:100%;height:auto;}
.loop-legend{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:42px;}
.ll{display:flex;gap:15px;align-items:flex-start;}
.ll .n{font-family:"Space Mono",monospace;font-weight:700;color:var(--jute-deep);font-size:14.5px;flex:none;width:26px;}
.ll h3{font-size:19px;margin-bottom:5px;}
.ll p{font-size:15px;color:var(--muted);margin:0;}

.crosslink{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#e3e9d8;border-radius:18px;padding:26px 30px;margin-top:46px;}
.crosslink p{margin:0;font-size:16.5px;color:var(--canopy);font-weight:500;}

/* ---------- CONTACT ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;}
.info-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:30px;margin-bottom:18px;}
.info-card .lab{font-family:"Space Mono",monospace;font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--jute-deep);margin-bottom:9px;font-weight:700;}
.info-card .val{font-size:18.5px;font-weight:600;color:var(--canopy);}
.info-card .val span{display:block;font-weight:400;font-size:15.5px;color:var(--muted);margin-top:3px;}
.ecojib-content form .field{margin-bottom:18px;}
.ecojib-content form label{display:block;font-size:15px;font-weight:600;margin-bottom:7px;}
.ecojib-content form input,
.ecojib-content form textarea{width:100%;padding:14px 16px;border:1.5px solid var(--line);border-radius:12px;background:var(--card);font-family:inherit;font-size:16px;color:var(--ink);}
.ecojib-content form input:focus,
.ecojib-content form textarea:focus{outline:none;border-color:var(--leaf);box-shadow:0 0 0 3px rgba(78,157,91,.18);}
.form-note{font-size:14px;color:var(--muted);margin-top:10px;}

/* =====================================================================
   FOOTER (fallback brand footer)
   ===================================================================== */
footer.site-footer{background:var(--canopy);color:var(--on-dark-muted);padding:58px 0 38px;}
.foot-top{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:38px;padding-bottom:38px;border-bottom:1px solid #28402f;}
footer.site-footer h4{color:#fff;font-family:inherit;font-size:14.5px;letter-spacing:.03em;margin:0 0 15px;font-weight:600;}
footer.site-footer ul{list-style:none;padding:0;margin:0;}
footer.site-footer li{margin-bottom:10px;}
footer.site-footer li a,
footer.site-footer li button{background:none;border:none;color:var(--on-dark-muted);cursor:pointer;font:inherit;font-size:15.5px;padding:0;text-align:left;text-decoration:none;}
footer.site-footer li a:hover,
footer.site-footer li button:hover{color:var(--sprout);}
footer.site-footer .blurb{max-width:30em;margin-top:18px;font-size:15.5px;}
.foot-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-top:28px;font-size:13.5px;}

/* =====================================================================
   REVEAL ANIMATION — gated behind .js so content is always visible
   in the Elementor editor, in no-JS contexts and for SEO.
   ===================================================================== */
.js .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease, transform .7s ease;}
.reveal.in,.js .reveal.in{opacity:1;transform:none;}

/* =====================================================================
   WORDPRESS CORE / ACCESSIBILITY HELPERS
   ===================================================================== */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important;}
.skip-link{position:absolute;left:-9999px;top:0;z-index:100000;background:#fff;color:var(--forest);padding:12px 20px;border-radius:0 0 10px 0;}
.skip-link:focus{left:0;}
.alignwide{max-width:1160px;margin-left:auto;margin-right:auto;}
.alignfull{max-width:100%;}
.aligncenter{margin-left:auto;margin-right:auto;}

/* Default content container so non-Elementor pages still look on-brand */
.ecojib-default{padding:72px 0;}
.ecojib-default .entry-title{font-size:clamp(31px,4.4vw,47px);color:var(--canopy);margin-bottom:22px;}
.ecojib-default .entry-content a{color:var(--forest);text-decoration:underline;}
.ecojib-default img{border-radius:16px;}
.post-meta{font-family:"Space Mono",monospace;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--jute-deep);margin-bottom:14px;}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media(max-width:980px){
  .hero-grid,.feature,.contact-grid{grid-template-columns:1fr;}
  .hero-art{min-height:300px;margin-top:10px;}
  .stats,.pillars,.prod-grid,.art-grid{grid-template-columns:1fr 1fr;}
  .std-grid{grid-template-columns:repeat(2,1fr);}
  .agro-grid{grid-template-columns:1fr 1fr;}
  .loop-legend{grid-template-columns:1fr;}
  nav.menu{display:none;position:absolute;top:74px;left:0;right:0;background:var(--paper);flex-direction:column;padding:12px 22px 22px;border-bottom:1px solid var(--line);}
  nav.menu.open{display:flex;}
  nav.menu ul{flex-direction:column;width:100%;}
  nav.menu a,nav.menu button{text-align:left;width:100%;font-size:16px;padding:11px 12px;}
  .menu-toggle{display:block;}
  .feature .side{padding:40px;}
}
@media(max-width:560px){
  body{font-size:17px;}
  .ecojib-content section,section.ecojib-section{padding:62px 0;}
  .stats,.pillars,.prod-grid,.art-grid,.agro-grid{grid-template-columns:1fr;}
  .foot-top{grid-template-columns:1fr;}
  .lifecycle{padding:38px 22px;}
  .feature .txt{padding:34px 26px;}
  .flow .arrow{transform:rotate(90deg);flex-basis:100%;height:30px;}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;scroll-behavior:auto;}
  .reveal,.js .reveal{opacity:1;transform:none;transition:none;}
}
