/*
Theme Name: SOLEMO
Theme URI: https://solemo.org/
Author: SOIGNER LE MONDE
Author URI: https://solemo.org/
Description: Youth-led climate action theme for SOIGNER LE MONDE (SOLEMO), Kenya. Includes page templates, a blog, and a one-click starter setup on activation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solemo
*/
:root{--forest:#12392a;--leaf:#00b765;--moss:#2f6b4f;--cream:#f3f1e7;--ink:#17231d;--sun:#f2b632;--line:rgba(18,57,42,.15);
--head:"Bricolage Grotesque","Trebuchet MS",sans-serif;--body:"Source Serif 4",Georgia,serif}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{font:1.125rem/1.65 var(--body);color:var(--ink);background:var(--cream)}
img{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.wrap{width:min(1120px,92%);margin-inline:auto}
h1,h2,h3{font-family:var(--head);line-height:1.1;letter-spacing:-.02em}
h2{font-size:clamp(2rem,4.2vw,3rem);margin-bottom:1.2rem}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:var(--sun);padding:.5rem 1rem;z-index:20}
/* header */
header{position:sticky;top:0;z-index:10;background:var(--forest);color:#fff}
header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.7rem 0}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;font:800 1.5rem var(--head)}
.brand img{height:38px;width:auto}
nav ul{display:flex;gap:1.5rem;list-style:none;padding:0;font:500 1rem var(--head);align-items:center}
nav a{text-decoration:none;padding:.3rem 0;border-bottom:2px solid transparent}
nav a:hover,nav a[aria-current]{border-color:var(--sun)}
nav a.cta{background:var(--sun);color:var(--ink);padding:.5rem 1.1rem;border-radius:999px;font-weight:700;border:0}
nav a.cta:hover{background:#ffc94d}
.menu{display:none;background:none;border:2px solid #fff;color:#fff;border-radius:6px;padding:.4rem .8rem;font:600 .95rem var(--head);cursor:pointer}
/* buttons */
.btn{display:inline-block;background:var(--sun);color:var(--ink);font:700 1.05rem var(--head);padding:.9rem 1.6rem;border-radius:999px;text-decoration:none;border:0;cursor:pointer}
.btn:hover{background:#ffc94d}
.btn.alt{background:transparent;color:#fff;box-shadow:inset 0 0 0 2px #fff;margin-left:.6rem}
.btn.alt:hover{background:rgba(255,255,255,.15)}
.btn.dark{background:var(--forest);color:#fff}.btn.dark:hover{background:var(--moss)}
.btn.ghost{background:transparent;color:var(--forest);box-shadow:inset 0 0 0 2px var(--forest);margin-left:.6rem}
.btn.ghost:hover{background:var(--forest);color:#fff}
/* hero */
.hero{position:relative;min-height:88vh;display:grid;align-items:end;color:#fff;background:var(--forest) none center 40%/cover}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,30,22,.45),rgba(10,30,22,.1) 35%,rgba(10,30,22,.85))}
.hero .wrap{position:relative;padding:8rem 0 4rem}
.hero h1{font-size:clamp(2.6rem,7vw,5.6rem);font-weight:800;max-width:14ch}
.hero p{max-width:34rem;margin:1.2rem 0 2rem;font-size:1.25rem}
.pagehead{background:var(--forest);color:#fff;padding:4.5rem 0 3.5rem;position:relative;overflow:hidden}
.pagehead h1{font-size:clamp(2.3rem,5.5vw,4rem);font-weight:800;max-width:18ch}
.pagehead p{max-width:40rem;margin-top:1rem;font-size:1.2rem;opacity:.9}
.eyebrow{font:700 .85rem var(--head);letter-spacing:.14em;text-transform:uppercase;color:var(--leaf);margin-bottom:.8rem}
section{padding:5rem 0}
.alt-bg{background:#e8e5d6}
.dark-bg{background:var(--forest);color:var(--cream)}
.dark-bg .eyebrow{color:var(--sun)}
.split{display:grid;grid-template-columns:1.1fr 1fr;gap:4rem;align-items:start}
.split img{border-radius:6px;width:100%;height:auto;object-fit:contain;display:block}
.split p+p{margin-top:1rem}
.rev{direction:rtl}.rev>*{direction:ltr}
/* grids and cards */
.grid{display:grid;gap:1.5rem}
.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}.g4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border-radius:8px;padding:1.8rem;border:1px solid var(--line);display:flex;flex-direction:column;gap:.6rem}
.card h3{font-size:1.4rem}
.card .num{font:800 2.2rem var(--head);color:var(--leaf);line-height:1}
.dark-bg .card{background:rgba(255,255,255,.07);border-color:rgba(243,241,231,.2)}
.dark-bg .card h3{color:#fff}
.pcard{background:#fff;border-radius:8px;overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column}
.pcard img{height:220px;width:100%;object-fit:cover}
.pcard div{padding:1.5rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.pcard h3{font-size:1.45rem}
.tag{display:inline-block;align-self:flex-start;font:700 .75rem var(--head);letter-spacing:.08em;text-transform:uppercase;padding:.25rem .7rem;border-radius:999px;background:#d9efe3;color:var(--forest)}
.tag.plan{background:#fbe9bd;color:#6b4a00}
.more{font:700 1rem var(--head);color:var(--moss);margin-top:auto;text-decoration:none}
.more:hover{text-decoration:underline}
.row{display:grid;grid-template-columns:260px 1fr;gap:2rem;align-items:center;padding:1.6rem 0;border-top:1px solid rgba(243,241,231,.22)}
.row img{height:170px;width:100%;object-fit:cover;border-radius:4px}
.row h3{font-size:1.7rem;margin-bottom:.4rem;color:#fff}
.row p{max-width:46rem;opacity:.9}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:.6rem;padding:0}
.gallery img{width:100%;height:300px;object-fit:cover}
/* team */
.person{text-align:left}
.avatar{width:84px;height:84px;border-radius:50%;background:var(--forest);color:var(--sun);display:grid;place-items:center;font:800 1.7rem var(--head)}
.role{font:600 .95rem var(--head);color:var(--moss)}
/* blog */
.chips{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:2rem}
.chip{font:600 .95rem var(--head);padding:.45rem 1.1rem;border-radius:999px;border:2px solid var(--forest);background:transparent;color:var(--forest);cursor:pointer}
.chip[aria-pressed=true]{background:var(--forest);color:#fff}
.meta{font:500 .9rem var(--head);color:#5a6a60}
.post{max-width:44rem;margin-inline:auto}
.post p{margin-bottom:1.2rem}
.post h2{font-size:1.7rem;margin:2.2rem 0 .8rem}
.post ul{margin:0 0 1.2rem 1.3rem}
.post img.cover{border-radius:8px;width:100%;height:380px;object-fit:cover;margin-bottom:2rem}
.legal{max-width:46rem}
.legal h2{font-size:1.5rem;margin:2rem 0 .6rem}
.legal p,.legal li{margin-bottom:.9rem}
.legal ul{margin-left:1.3rem}
/* forms */
form{display:grid;gap:1rem}
label{font:700 .95rem var(--head);display:grid;gap:.35rem}
input,textarea,select{font:inherit;padding:.8rem 1rem;border:2px solid #b9c4b8;border-radius:6px;background:#fff;color:var(--ink)}
input:focus,textarea:focus,select:focus{border-color:var(--moss);outline:none;box-shadow:0 0 0 3px rgba(0,183,101,.3)}
form .btn{justify-self:start}
.note{font-size:.95rem;opacity:.8}
.ok{display:none;background:#d9efe3;border-left:5px solid var(--leaf);padding:1rem;border-radius:4px}
.cta-band{background:var(--leaf);color:var(--ink);text-align:center;padding:4rem 0}
.cta-band h2{margin-bottom:.8rem}
.cta-band .btn{background:var(--forest);color:#fff;margin-top:1rem}
.socials{display:flex;flex-wrap:wrap;gap:.6rem}
.socials a{font:600 .95rem var(--head);padding:.4rem 1rem;border-radius:999px;border:2px solid currentColor;text-decoration:none}
.socials a:hover{background:var(--sun);color:var(--ink);border-color:var(--sun)}
/* footer */
footer{background:var(--ink);color:#cfd8cf;padding:3.5rem 0 2rem;font-size:1rem}
footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2rem}
footer h3{color:#fff;font-size:1.05rem;margin-bottom:.8rem}
footer ul{list-style:none;padding:0;display:grid;gap:.4rem}
footer a{text-decoration:none}footer a:hover{color:var(--sun)}
footer .base{border-top:1px solid rgba(255,255,255,.15);margin-top:2.5rem;padding-top:1.2rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.8rem;font-size:.9rem}
.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s,transform .6s}
.reveal.in{opacity:1;transform:none}
@media(max-width:900px){
 .menu{display:block}
 nav{position:absolute;left:0;right:0;top:100%;background:var(--forest);display:none;padding:1rem 4%}
 nav.open{display:block}
 nav ul{flex-direction:column;align-items:flex-start;gap:1rem}
 .split{grid-template-columns:1fr;gap:2.5rem}.rev{direction:ltr}
 .g3,.g4{grid-template-columns:1fr 1fr}
 .row{grid-template-columns:1fr;gap:1rem}.row img{height:200px}
 .gallery{grid-template-columns:1fr 1fr}.gallery img{height:200px}
 footer .cols{grid-template-columns:1fr 1fr}
 section{padding:3.8rem 0}
 .btn.alt,.btn.ghost{margin:.6rem 0 0}
}
@media(max-width:600px){.g2,.g3,.g4{grid-template-columns:1fr}footer .cols{grid-template-columns:1fr}.brand{font-size:1.12rem;white-space:nowrap;gap:.35rem}.brand img{height:32px}header .wrap{gap:.5rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}}


/* events */
.events-empty{max-width:46rem;margin-inline:auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:3.5rem 2rem 3rem;position:relative;overflow:hidden}
.events-empty .sprout{width:84px;height:84px;margin:0 auto 1.4rem;color:var(--leaf)}
.events-empty h2{font-size:clamp(1.8rem,3.6vw,2.4rem);margin-bottom:1rem}
.events-empty p{max-width:36rem;margin-inline:auto}
.events-empty p+p{margin-top:1rem}
.interests{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin-top:1.8rem;list-style:none;padding:0}
.interests li{font:600 .95rem var(--head);padding:.4rem 1rem;border-radius:999px;background:#d9efe3;color:var(--forest)}
.stay{text-align:center}
.stay .socials{justify-content:center;margin-top:1.4rem}
.stay .socials a{color:var(--forest)}
.stay .btn{margin-top:1.6rem}
@media(max-width:600px){.events-empty{padding:2.5rem 1.3rem 2.2rem}}

/* single-file additions */
.page[hidden]{display:none}
.person .photo{width:100%;aspect-ratio:1/1;object-fit:cover;object-position:center 20%;border-radius:8px;background:#4caf50}
.row img.logo-img{object-fit:contain;background:#fff;padding:.5rem}


/* hero image */
.hero{background-image:url(assets/images/home.jpg)}

/* WordPress extras */
body.admin-bar header{top:32px}
@media(max-width:782px){body.admin-bar header{top:46px}}
.screen-reader-text{position:absolute;left:-9999px}
.post .wp-block-image,.post figure{margin:1.5rem 0}
.post img{height:auto}
.navigation.pagination{margin-top:2rem}
.navigation.pagination .nav-links{display:flex;gap:.5rem;flex-wrap:wrap}
.navigation.pagination .page-numbers{padding:.4rem .8rem;border:1px solid var(--line);border-radius:.4rem;text-decoration:none}
.navigation.pagination .current{background:var(--forest);color:#fff}


