/*
Theme Name: TEWA Uganda
Theme URI: https://www.tewauganda.org
Author: TEWA Uganda
Description: A block theme for Twerwaneho Empowered Women Association (TEWA), a women-led community organization in Uganda. On activation it creates the site's pages and sets the home page.
Version: 1.0.0
Requires at least: 6.4
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: tewa
*/
:root{--navy:#0C2D48;--sky:#0A9FE0;--deep:#0A6FA3;--orange:#F39A1F;--pale:#EAF5FB;--line:#cfe0ea;--shoot:#8FD14F;--hd:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif}
html{scroll-behavior:smooth}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:3px}
img{max-width:100%;height:auto}
.tewa-main{margin:0}.tewa-main>*{margin-block:0}
.wp-site-blocks>*{margin-block-start:0}

/* header */
header.wp-block-template-part{position:sticky;top:0;z-index:30;background:#fff}
.admin-bar header.wp-block-template-part{top:var(--wp-admin--admin-bar--height,0)}
.tewa-header{padding:.6rem max(1.25rem,calc((100% - 72rem)/2));border-bottom:1px solid var(--line);gap:1rem}
.tewa-brand{display:flex;align-items:center;gap:.7rem;font:800 1.3rem var(--hd);color:var(--navy);text-decoration:none}
.tewa-brand img{border-radius:50%;display:block}
.tewa-header .wp-block-navigation{font-weight:500;gap:1.5rem}
.tewa-header .wp-block-navigation a{color:var(--navy);text-decoration:none}
.tewa-header .wp-block-navigation a:hover{text-decoration:underline;text-underline-offset:5px}
.tewa-header .tewa-nav-cta>a{background:var(--orange);padding:.55rem 1rem;border-radius:.5rem;font-weight:700}
.tewa-header .tewa-nav-cta>a:hover{text-decoration:none;background:#ffb13f}

/* bands */
.tewa-band{padding:clamp(3rem,7vw,5.5rem) 1.25rem}
.tewa-band-navy{background:var(--navy);color:#fff}
.tewa-band-navy :is(h1,h2,h3){color:#fff}
.tewa-band-navy a:not(.wp-element-button){color:#bfe6fb}
.tewa-band-pale{background:var(--pale)}
.tewa-band-orange{background:var(--orange);color:var(--navy)}
.tewa-band-orange :is(h2,h3){color:var(--navy)}
.tewa-pagehead{padding:clamp(2.2rem,5vw,3.6rem) 1.25rem}
.tewa-pagehead :is(h1,.wp-block-post-title){font-size:clamp(2.2rem,5vw,3.4rem)}
.is-layout-constrained>:is(p,ul,ol){max-width:64ch;margin-left:max(0px,calc((100% - 72rem)/2))!important;margin-right:auto!important}
.is-layout-constrained>:is(h1,h2){margin-bottom:.25rem}
.tewa-lead{font:500 clamp(1.15rem,2.2vw,1.4rem)/1.5 var(--hd)}
.tewa-band h2{margin-bottom:1.5rem}
.tewa-band h2:not(:first-child){margin-top:2.5rem}
.tewa-band ul.wp-block-list{padding-left:1.2rem}
.tewa-band ul.wp-block-list li{margin-bottom:.5rem}

/* buttons */
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;border:2px solid var(--navy);color:var(--navy)}
.tewa-band-navy .is-style-outline .wp-block-button__link{border-color:#fff;color:#fff}
.tewa-band-navy .is-style-outline .wp-block-button__link:hover{background:rgba(255,255,255,.12)}
.wp-element-button:hover{filter:brightness(1.07)}
.tewa-btn-navy .wp-block-button__link{background:var(--navy);color:#fff}

/* hero and splits */
.tewa-split{align-items:center;gap:2rem 3.5rem!important}
.tewa-split>.wp-block-column:first-child{flex-grow:1.3!important}
.tewa-hero{padding-bottom:clamp(3rem,6vw,5rem)}
.tewa-h1{font-size:clamp(2.5rem,6.5vw,4.6rem)!important;max-width:14ch;margin-bottom:1.25rem}
.tewa-hero .tewa-lead{font-weight:400;color:#d6e6f1;margin-bottom:1.75rem}
.tewa-hero-img img,.tewa-wide-img img,.tewa-photos img,.tewa-row-img img{border-radius:.9rem;width:100%;object-fit:cover}
.tewa-hero-img img{aspect-ratio:4/3}
.tewa-wide-img{margin-top:2rem}
.tewa-photos img{aspect-ratio:4/3}
.tewa-photos{gap:1rem!important}

/* cards, rows, stats */
.tewa-cards{gap:1.25rem!important;margin-bottom:1.25rem}
.tewa-card{background:#fff;border:1px solid var(--line);border-radius:.8rem;padding:1.5rem;height:100%}
.tewa-card h3{margin-bottom:.5rem;color:var(--navy)}
.tewa-card p{margin:0 0 .9rem!important;max-width:none}
.tewa-row{border-top:2px solid var(--line);padding:1.75rem 0;gap:.75rem 3rem!important;margin:0!important;align-items:flex-start}
.tewa-row:last-child{border-bottom:2px solid var(--line)}
.tewa-row>.wp-block-column:first-child{flex-grow:1}.tewa-row>.wp-block-column:last-child{flex-grow:2}
.tewa-row h3{color:var(--navy)}
.tewa-row-img img{aspect-ratio:3/2}
.tewa-logo-panel{aspect-ratio:3/2;border-radius:.9rem;background:var(--pale);display:grid;place-items:center}
.tewa-logo-panel img{width:34%;height:auto}
.tewa-stat h3{font-size:3rem;color:var(--deep)}

/* FMNR steps */
.tewa-steps{list-style:none;padding:0!important;counter-reset:s;margin-top:1.5rem}
.tewa-steps li{counter-increment:s;border-left:4px solid var(--orange);padding-left:1.1rem;margin-bottom:1.1rem}
.tewa-steps li::before{content:counter(s);display:block;font:800 2rem/1 var(--hd);color:var(--orange)}
.tewa-stump svg{width:100%;height:auto;max-height:26rem;display:block}
.shoot{stroke:var(--shoot);stroke-width:7;fill:none;stroke-linecap:round;stroke-dasharray:260;stroke-dashoffset:260;animation:grow 2.6s cubic-bezier(.3,.7,.2,1) .3s forwards}
.shoot.s2{animation-delay:.7s}.shoot.s3{animation-delay:1.1s}.shoot.s4{animation-delay:1.5s}
.leaf{fill:var(--shoot);transform-box:fill-box;transform-origin:center;transform:scale(0);animation:pop .8s ease-out forwards}
@keyframes grow{to{stroke-dashoffset:0}}@keyframes pop{to{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.shoot{animation:none;stroke-dashoffset:0}.leaf{animation:none;transform:none}html{scroll-behavior:auto}}

/* about page */
.tewa-chips{gap:.6rem!important}
.tewa-chips p{margin:0!important;padding:.45rem 1.1rem;border-radius:999px;background:var(--pale);border:1px solid var(--line);font-weight:600;max-width:none}
.tewa-org,.tewa-org ul{list-style:none;padding-left:0!important}
.tewa-org ul{margin:.5rem 0 0 1.2rem!important;padding-left:1rem!important;border-left:3px solid var(--sky)}
.tewa-org li{margin-bottom:.5rem;font-weight:600}

/* gallery, posts */
.tewa-gallery img{aspect-ratio:4/3;object-fit:cover;border-radius:.6rem}
.wp-block-post-template .wp-block-post-title a{color:var(--navy);text-decoration:none}
.wp-block-post-template .wp-block-post-title a:hover{text-decoration:underline}
.wp-block-post-featured-image img{border-radius:.7rem}

/* contact form */
.tewa-form p{margin:0 0 1rem;max-width:none}
.tewa-form label{display:block;font-weight:600;margin-bottom:.25rem}
.tewa-form :is(input,textarea){width:100%;font:inherit;padding:.75rem 1rem;border:2px solid #b4ccda;border-radius:.5rem;background:#fff;color:inherit}
.tewa-hp{position:absolute!important;left:-9999px}
.tewa-notice{padding:.8rem 1rem;border-radius:.5rem;font-weight:600;margin-bottom:1rem}
.tewa-ok{background:#e3f4e7;color:#14532d}.tewa-err{background:#fde8e6;color:#7a1a12}

/* footer */
.tewa-footer{background:var(--navy);color:#d6e6f1;padding:3rem 1.25rem 2rem}
.tewa-footer :is(h3,.tewa-brand){color:#fff}
.tewa-footer a{color:#fff}
.tewa-footer p{margin:0 0 .4rem!important}
.tewa-footer-cols{gap:2rem!important}
.tewa-footer-cols .wp-block-column:first-child{flex-grow:1.6}
.tewa-fine{border-top:1px solid rgba(255,255,255,.25);padding-top:1rem;margin-top:2rem!important;font-size:.9rem;max-width:none!important}
