/*
Theme Name: Climate Smart
Theme URI: https://climate-smart.ag
Author: ESA IF-CSA Team
Description: Climate Smart Agriculture WordPress Theme
Version: 1.0
License: GPL v2 or later
Text Domain: climate-smart
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --cream: #F7F4EE; --cream-mid: #EDE8DC; --cream-dark: #DDD5C4;
  --soil: #6B4F2A; --soil-light: #9B7245; --soil-pale: #F0E8D8;
  --green-deep: #2C5F2E; --green-mid: #3E7B40; --green-light: #5FAD62;
  --green-pale: #D4EBCF; --sky: #2563A8; --sky-pale: #E0ECFA;
  --wheat: #C8920A; --wheat-pale: #FDF0D0;
  --text-dark: #1A1A14; --text-mid: #3D3D30; --text-muted: #7A7A68;
  --border: #D8D2C4; --white: #FFFFFF;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--text-dark); line-height: 1.7; overflow-x: hidden; }
nav { position: sticky; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 66px; background: rgba(247,244,238,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-logo { display: flex; align-items: center; gap: 11px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-dark); text-decoration: none; letter-spacing: 0.01em; }
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-esa-tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-deep); background: var(--green-pale); padding: 2px 8px; border-radius: 4px; margin-left: 3px; }
.nav-menu { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.nav-menu li { margin: 0; padding: 0; }
.nav-menu a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: var(--green-deep); }
.lang-switch { display: flex; align-items: center; gap: 2px; background: var(--cream-mid); border: 1px solid var(--border); border-radius: 20px; padding: 3px; margin-left: 0.5rem; }
.lang-btn { border: none; background: transparent; cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); padding: 5px 12px; border-radius: 16px; transition: background 0.2s, color 0.2s; text-decoration: none; display: inline-block; }
.lang-btn.active { background: var(--green-deep); color: white; }
.nav-right { display: flex; align-items: center; gap: 0; }
.hero { min-height: 92vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: 80px 5% 60px; background: var(--cream); position: relative; overflow: hidden; }
.hero-stripe { position: absolute; bottom: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--green-deep) 0px, var(--green-deep) 60px, var(--wheat) 60px, var(--wheat) 80px, var(--green-mid) 80px, var(--green-mid) 140px, var(--cream-dark) 140px, var(--cream-dark) 160px); opacity: 0.5; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 1.5rem; }
.hero-eyebrow::before { content:''; display:inline-block; width:20px; height:2px; background:var(--green-mid); }
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.15; color: var(--text-dark); margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--green-deep); }
.hero p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { background: var(--green-deep); color: white; padding: 12px 26px; border-radius: 7px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: background 0.2s, transform 0.15s; display: inline-flex; align-items: center; gap: 7px; }
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--text-dark); padding: 12px 26px; border-radius: 7px; border: 1px solid var(--border); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: border-color 0.2s, background 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.btn-secondary:hover { border-color: var(--green-mid); background: var(--green-pale); }
.hero-illustration { display: flex; align-items: center; justify-content: center; position: relative; }
.field-frame { width: 100%; max-width: 520px; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--white); position: relative; }
.field-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.data-pill { position: absolute; background: white; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-family: 'Space Grotesk', sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; align-items: center; gap: 8px; }
.dp-top-left { top: 14px; left: 14px; font-size: 0.72rem; }
.dp-bottom { bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; white-space:nowrap; }
.dp-top-right { top: 14px; right: 14px; font-size: 0.72rem; }
.dp-dot { width: 8px; height: 8px; border-radius: 50%; }
.dp-val { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }
.dp-lbl { font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.partners { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 5%; display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.partners-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.partner-pill { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; border: 1px solid var(--border); border-radius: 20px; padding: 4px 14px; transition: color 0.2s, border-color 0.2s; }
.partner-pill:hover { color: var(--green-deep); border-color: var(--green-light); }
section { padding: 5.5rem 5%; }
.section-eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 0.75rem; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--text-dark); margin-bottom: 1rem; line-height: 1.25; }
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 580px; line-height: 1.8; }
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 3.5rem; }
.about-text p { color: var(--text-mid); line-height: 1.9; margin-bottom: 1.2rem; font-size: 0.97rem; }
.about-text p strong { color: var(--text-dark); }
.about-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.metric-card { background: var(--cream); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.metric-card .num { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; font-weight: 700; color: var(--green-deep); line-height: 1; margin-bottom: 0.35rem; }
.metric-card .desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.banner-section { position: relative; padding: 0; height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.banner-section img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,20,0.15) 0%, rgba(26,26,20,0.65) 100%); }
.banner-content { position: relative; z-index: 1; text-align: center; color: white; max-width: 640px; padding: 0 1.5rem; }
.banner-content .section-eyebrow { color: var(--green-pale); }
.banner-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 700; margin-bottom: 0.85rem; color: white; }
.banner-content p { color: rgba(255,255,255,0.85); font-size: 0.98rem; line-height: 1.8; }
.pillars { background: var(--cream); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.pillar-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; transition: box-shadow 0.2s, border-color 0.2s; }
.pillar-card:hover { border-color: var(--green-light); box-shadow: 0 4px 16px rgba(44,95,46,0.08); }
.pillar-accent { height: 3px; border-radius: 2px 2px 0 0; margin: -1.75rem -1.75rem 1.5rem; border-radius: 14px 14px 0 0; }
.pa-green { background: var(--green-deep); }
.pa-wheat { background: var(--wheat); }
.pa-sky { background: var(--sky); }
.pa-soil { background: var(--soil); }
.pa-teal { background: #1D8A6E; }
.pa-amber { background: #D97706; }
.pillar-icon { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.2rem; font-weight: 700; }
.pi-green { background: var(--green-pale); color: var(--green-deep); }
.pi-wheat { background: var(--wheat-pale); color: var(--wheat); }
.pi-sky { background: var(--sky-pale); color: var(--sky); }
.pi-soil { background: var(--soil-pale); color: var(--soil); }
.pi-teal { background: #D4F0E8; color: #1D8A6E; }
.pi-amber { background: #FEF3C7; color: #D97706; }
.pillar-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.65rem; }
.pillar-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.75; }
.workflow { background: var(--green-deep); color: white; }
.workflow .section-eyebrow { color: var(--green-pale); }
.workflow .section-title { color: white; }
.workflow .section-sub { color: rgba(255,255,255,0.65); }
.workflow-steps { display: flex; gap: 0; margin-top: 3.5rem; position: relative; counter-reset: step; }
.workflow-steps::before { content:''; position:absolute; top:27px; left:10%; right:10%; height:1px; background: rgba(255,255,255,0.2); z-index:0; }
.workflow-step { flex:1; display:flex; flex-direction:column; align-items:center; text-align:center; padding:0 0.75rem; position:relative; z-index:1; }
.step-num { width:54px; height:54px; border-radius:50%; border: 1.5px solid rgba(255,255,255,0.3); background: var(--green-deep); display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:1.1rem; color: rgba(255,255,255,0.9); margin-bottom:1.25rem; transition: background 0.2s, border-color 0.2s; }
.workflow-step:hover .step-num { background: var(--green-mid); border-color: var(--green-pale); }
.workflow-step h4 { font-family:'Space Grotesk',sans-serif; font-size:0.9rem; font-weight:600; color:white; margin-bottom:0.4rem; }
.workflow-step p { font-size:0.8rem; color:rgba(255,255,255,0.6); line-height:1.6; }
.usecases { background: var(--white); }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.uc-card { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.uc-card:hover { border-color: var(--green-light); box-shadow: 0 4px 16px rgba(44,95,46,0.08); }
.uc-stripe { height: 4px; }
.us-carbon { background: var(--green-deep); }
.us-eudr { background: var(--sky); }
.us-prec { background: var(--wheat); }
.us-risk { background: var(--soil); }
.uc-body { padding: 1.5rem; flex:1; }
.uc-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.uc-body h3 { font-family:'Space Grotesk',sans-serif; font-size:1rem; font-weight:600; color:var(--text-dark); margin-bottom:0.6rem; }
.uc-body p { font-size:0.86rem; color:var(--text-muted); line-height:1.7; }
.uc-foot { padding: 0 1.5rem 1.5rem; display:flex; gap:0.5rem; flex-wrap:wrap; }
.chip { background: var(--white); color: var(--text-muted); border: 1px solid var(--border); padding: 3px 10px; border-radius: 20px; font-size: 0.71rem; font-weight: 500; }
.news { background: var(--cream); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; display: flex; flex-direction: column; transition: box-shadow 0.2s, border-color 0.2s; }
.news-card:hover { border-color: var(--green-light); box-shadow: 0 4px 16px rgba(44,95,46,0.08); }
.news-cat { font-size:0.68rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--wheat); margin-bottom:0.75rem; }
.news-card h3 { font-family:'Space Grotesk',sans-serif; font-size:0.98rem; font-weight:600; color:var(--text-dark); margin-bottom:0.65rem; line-height:1.4; }
.news-card p { font-size:0.84rem; color:var(--text-muted); line-height:1.7; flex:1; }
.news-date { font-size:0.75rem; color:var(--text-muted); margin-top:1.25rem; }
.news-link { display:inline-flex; align-items:center; gap:5px; font-size:0.82rem; font-weight:600; color:var(--green-deep); text-decoration:none; margin-top:0.75rem; transition: gap 0.2s; }
.news-link:hover { gap: 9px; }
.cta-section { background: var(--soil-pale); border-top: 1px solid var(--cream-dark); padding: 6rem 5%; text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-inner h2 { font-family:'Space Grotesk',sans-serif; font-size:clamp(1.7rem,2.8vw,2.4rem); font-weight:700; color:var(--text-dark); margin-bottom:1rem; }
.cta-inner p { font-size:1rem; color:var(--text-muted); margin-bottom:2.5rem; }
.cta-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
footer { background: var(--green-deep); color: rgba(255,255,255,0.75); padding: 3.5rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .nav-logo { color: white; margin-bottom: 1rem; display: flex; }
.footer-brand p { font-size:0.86rem; color:rgba(255,255,255,0.55); line-height:1.75; max-width:280px; }
.footer-col h4 { font-size:0.72rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:rgba(255,255,255,0.45); margin-bottom:1rem; }
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:0.55rem; }
.footer-col ul a { font-size:0.86rem; color:rgba(255,255,255,0.6); text-decoration:none; transition:color 0.2s; }
.footer-col ul a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top:1.5rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.footer-bottom p { font-size:0.78rem; color:rgba(255,255,255,0.4); }
.esa-funded { display:inline-flex; align-items:center; gap:9px; background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); padding:6px 14px; border-radius:6px; font-size:0.72rem; color:rgba(255,255,255,0.6); }
.esa-funded strong { color: white; }
/* Sub-menu styles */
.nav-menu > li { position: relative; }
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 200;
  list-style: none;
  margin: 0;
}
.nav-menu li:hover > .sub-menu {
  display: block;
}
.nav-menu .sub-menu li {
  margin: 0;
  padding: 0;
}
.nav-menu .sub-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.nav-menu .sub-menu a:hover {
  background: var(--cream);
  color: var(--green-deep);
}
@media (max-width:1024px) { .hero { grid-template-columns:1fr; } .hero-illustration { display:none; } .about-grid { grid-template-columns:1fr; gap:3rem; } .pillars-grid { grid-template-columns:1fr 1fr; } .footer-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:768px) { .nav-menu { display:none; } .pillars-grid, .uc-grid, .news-grid { grid-template-columns:1fr; } .workflow-steps { flex-direction:column; align-items:flex-start; gap:1.5rem; } .workflow-steps::before { display:none; } .workflow-step { flex-direction:row; text-align:left; gap:1rem; align-items:flex-start; } .workflow-step p, .workflow-step h4 { text-align:left; } .step-num { flex-shrink:0; } .footer-grid { grid-template-columns:1fr; } .about-metrics { grid-template-columns:1fr 1fr; } }
