/*
Theme Name: IACO Editable
Theme URI: https://www.iaco-sy.org/
Author: IACO
Description: Editable block theme preserving IACO's agriculture, resilience and rural development website. Edit all text, images and videos in the WordPress Site Editor.
Version: 2.0.0
Requires at least: 6.7
Tested up to: 6.9
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: iaco
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, editor-style
*/
:root { --background: #ffffff; --foreground:#17221e; --primary:#166534; --primary-foreground:#ffffff; --secondary:#f7f5ec; --muted-foreground:#66756f; --accent:#84cc16; --accent-foreground:#132514; --border:#dce5df; }
* {box-sizing:border-box} body{margin:0;font-family:Arial,Helvetica,sans-serif;line-height:1.65;color:var(--foreground);background:var(--background)} a{text-decoration:none;color:inherit} img{max-width:100%;height:auto} h1,h2,h3,p{margin-top:0} .wp-site-blocks> *{margin-block-start:0}
:root {
  --forest: oklch(0.27 0.04 168);
  --forest-soft: oklch(0.88 0.025 155);
  --footer: oklch(0.22 0.03 168);
  --icon-surface: oklch(0.956 0.025 140);
  --hero-shade: oklch(0.23 0.038 167 / 65%);
  --brand-gradient: linear-gradient(145deg, var(--primary), var(--accent));
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
a { text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.iaco-container { width: min(1160px, 90%); margin-inline: auto; }
.site-header { background: var(--background); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); }
.site-nav { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--forest); font-weight: 800; flex-shrink: 0; line-height: 1.35; }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-gradient); color: var(--primary-foreground); display: grid; place-items: center; font-size: 20px; }
.brand-name { font-size: 20px; }
.brand small { display: block; font-size: 9px; color: var(--muted-foreground); margin-top: 4px; }
.site-menu { display: flex; gap: 23px; align-items: center; font-size: 13px; font-weight: 700; }
.site-menu a:not(.iaco-button):hover { color: var(--primary); }
.iaco-button { height: auto; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.65; box-shadow: none; }
.iaco-hero { min-height: 605px; position: relative; display: flex; align-items: center; overflow: hidden; color: var(--primary-foreground); }
.hero-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: var(--hero-shade); }
.hero-copy { position: relative; padding: 74px 0 78px; max-width: 780px; margin-left: 0; }
.eyebrow { text-transform: uppercase; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 1.8px; margin: 0 0 15px; }
.hero-copy h1 { font-size: 58px; line-height: 1.08; letter-spacing: 0; font-weight: 800; margin: 0 0 24px; max-width: 780px; color: var(--primary-foreground); }
.hero-copy > p:not(.eyebrow) { max-width: 650px; font-size: 17px; line-height: 1.85; color: var(--primary-foreground); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-outline { color: var(--primary-foreground); border: 1px solid var(--primary-foreground); background: transparent; }
.hero-outline:hover { background: var(--primary-foreground); color: var(--forest); }
.ticker { background: var(--forest); color: var(--forest-soft); font-size: 11px; padding: 13px 0; }
.ticker-inner { display: flex; gap: 34px; flex-wrap: wrap; }
.ticker span::before { content: '•'; margin-right: 7px; color: var(--accent); }
.iaco-section { padding: 76px 0; scroll-margin-top: 85px; }
.iaco-section h2 { color: var(--forest); font-size: 39px; line-height: 1.2; letter-spacing: 0; margin: 8px 0 0; font-weight: 750; }
.section-heading { display: flex; gap: 60px; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section-heading > div { flex: 1; }
.section-heading .lead { flex: 1; max-width: 530px; }
.lead { color: var(--muted-foreground); font-size: 15px; line-height: 1.9; }
.section-heading .eyebrow { margin-bottom: 12px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { border: 1px solid var(--border); border-radius: 8px; padding: 27px; background: var(--background); }
.icon-tile { width: 44px; height: 44px; background: var(--icon-surface); color: var(--primary); border-radius: 8px; display: grid; place-items: center; margin-bottom: 18px; font-size: 17px; font-weight: 700; }
.pillar h3 { color: var(--forest); font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.pillar p { color: var(--muted-foreground); font-size: 13px; margin: 0; line-height: 1.8; }
.section-alt { background: var(--secondary); }
.feature-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; background: var(--forest); color: var(--primary-foreground); overflow: hidden; border-radius: 8px; }
.feature-photo { width: 100%; height: 390px; object-fit: cover; }
.feature-copy { padding: 40px; }
.feature-copy h2 { color: var(--primary-foreground); font-size: 32px; }
.feature-copy .lead { color: var(--forest-soft); margin-block: 20px 26px; }
.metrics-section { background: var(--primary); color: var(--primary-foreground); }
.metrics-section h2 { color: var(--primary-foreground); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 38px; }
.metric { padding: 0 24px; border-left: 1px solid color-mix(in oklch, var(--primary-foreground) 25%, transparent); }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric strong { font-size: 40px; font-weight: 750; display: block; line-height: 1.2; margin-bottom: 14px; }
.metric span { font-size: 13px; color: var(--forest-soft); }
.text-link { color: var(--primary); font-size: 13px; font-weight: 700; display: inline-flex; gap: 9px; align-items: center; }
.text-link:hover { text-decoration: underline; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.project-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.project-card > img { width: 100%; height: 220px; object-fit: cover; }
.project-body { padding: 24px; }
.project-body h3 { font-size: 19px; font-weight: 700; color: var(--forest); margin: 0 0 12px; }
.project-body p { font-size: 13px; color: var(--muted-foreground); margin: 0 0 20px; }
.stories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.story-card { border: 1px solid var(--border); background: var(--background); border-radius: 8px; padding: 28px; }
.story-card time { font-size: 11px; color: var(--muted-foreground); }
.story-card h3 { font-size: 21px; color: var(--forest); font-weight: 700; margin: 12px 0; }
.story-card p { font-size: 13px; color: var(--muted-foreground); margin-bottom: 22px; }
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 25px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; }
.video-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.video-tile { position: relative; min-height: 210px; overflow: hidden; border-radius: 8px; background: var(--forest); }
.video-tile img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.video-label { position: absolute; top: 18px; left: 18px; color: var(--primary-foreground); font-size: 11px; background: var(--hero-shade); padding: 5px 10px; border-radius: 99px; }
.play-button { position: absolute; bottom: 20px; left: 20px; border-radius: 50%; background: var(--background); color: var(--primary); width: 44px; height: 44px; }
.partner-section { background: var(--forest); color: var(--primary-foreground); }
.partner-section h2 { color: var(--primary-foreground); max-width: 710px; }
.partner-section .lead { color: var(--forest-soft); max-width: 670px; margin: 22px 0 28px; }
.site-footer { background: var(--footer); color: var(--forest-soft); padding: 55px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 70px; }
.footer-grid h3 { color: var(--primary-foreground); font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { font-size: 12px; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid color-mix(in oklch,var(--background) 15%,transparent); margin-top: 38px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }
.article-page { padding: 65px 0 85px; min-height: 60vh; }
.article-page h1 { color: var(--forest); font-size: 44px; line-height: 1.2; margin: 22px 0 35px; font-weight: 750; }
.article-content { max-width: 820px; }
.article-content h1, .article-content h2 { font-size: 28px; }
.article-content p { margin-block: 22px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; }
.article-content video { max-width: 100%; max-height: 650px; }
.article-content ul { list-style: disc; padding-left: 25px; }
.article-content a { color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }
.article-content blockquote { border-left: 3px solid var(--accent); padding-left: 24px; }
.video-modal { width: min(850px,92vw); position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 60; background: var(--background); padding: 22px; border-radius: 8px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: var(--hero-shade); }
.video-modal video { width: 100%; max-height: 70vh; margin-top: 14px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; }
.mobile-toggle { display: none; }
@media (max-width: 1050px) {
  .brand small { max-width: 175px; }
  .site-menu { gap: 16px; }
  .hero-copy h1 { font-size: 52px; }
}
@media (max-width: 800px) {
  .site-nav { min-height: 76px; }
  .mobile-toggle { display: inline-flex; }
  .site-menu { display: none; position: absolute; top: 76px; inset-inline: 0; padding: 24px 5%; background: var(--background); border-bottom: 1px solid var(--border); }
  .site-menu.is-open { display: flex; flex-direction: column; align-items: start; }
  .brand small { max-width: none; }
  .hero-copy h1 { font-size: 46px; }
  .iaco-hero { min-height: 590px; }
  .pillars, .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .section-heading { gap: 25px; }
  .iaco-section h2 { font-size: 32px; }
  .feature-layout { grid-template-columns: 1fr; }
  .feature-photo { height: 320px; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .video-row { grid-template-columns: repeat(2,1fr); }
  .metrics-grid { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { gap: 25px; }
}
@media (max-width: 520px) {
  .brand small { max-width: 200px; font-size: 8px; }
  .brand-name { font-size: 18px; }
  .hero-copy { padding: 60px 0; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .ticker-inner { gap: 8px 22px; font-size: 10px; }
  .iaco-section { padding: 56px 0; }
  .section-heading { display: block; }
  .section-heading .lead { margin-top: 22px; }
  .section-heading .text-link { margin-top: 20px; }
  .pillars, .portfolio-grid, .stories-grid, .video-row, .footer-grid { grid-template-columns: 1fr; }
  .gallery img { height: 155px; }
  .metric { padding-left: 18px; padding-right: 0; }
  .metric strong { font-size: 31px; }
  .feature-copy { padding: 30px 25px; }
  .article-page h1 { font-size: 33px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wp-block-group{margin-block-start:0}.wp-block-navigation{margin:0}.wp-block-navigation__container{gap:22px}.wp-block-navigation-item__content{color:var(--foreground)}.brand p{margin:0}.brand-subtitle{font-size:9px;color:var(--muted-foreground);margin-top:4px!important}.brand-name a{color:var(--forest)}.brand-mark{margin:0!important}.hero-copy h1{color:var(--primary-foreground)}.wp-block-cover.iaco-hero{padding:0;min-height:605px}.wp-block-cover .wp-block-cover__inner-container{width:100%}.wp-block-cover__background.has-forest-background-color{background:var(--forest)}.wp-block-cover__image-background{margin:0}.wp-block-buttons{gap:12px}.is-style-outline .wp-block-button__link{color:var(--primary-foreground);border:1px solid var(--primary-foreground);background:transparent}.wp-block-button__link{font-size:13px;padding:13px 20px}.feature-photo{margin:0}.feature-photo img{width:100%;height:390px;object-fit:cover}.gallery figure{margin:0}.video-row figure{margin:0}.video-row video{max-height:300px;width:100%;background:var(--forest)}.video-row>div>figure img{height:210px;width:100%;object-fit:cover;border-radius:8px}.wp-block-post-template{list-style:none;padding:0}.wp-block-post-template>li{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--background);margin:0}.wp-block-post-featured-image{margin:0}.wp-block-post-featured-image img{width:100%;height:220px;object-fit:cover}.wp-block-post-title{font-size:21px;line-height:1.35}.wp-block-post-date{font-size:11px;color:var(--muted-foreground);margin-top:14px}.wp-block-post-excerpt{font-size:13px;color:var(--muted-foreground)}.wp-block-post-excerpt__more-link{color:var(--primary);font-weight:700}.article-page .wp-block-post-title{font-size:44px;margin-bottom:35px}.metric p{margin:0}.metric strong{display:block}.footer-grid p{margin-bottom:8px}.section-heading .wp-block-group{flex:1}.wp-block-navigation__responsive-container.is-menu-open{padding:25px;background:var(--background)}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:flex-start}.wp-block-navigation__responsive-container-open{color:var(--forest)}
@media(max-width:800px){.site-menu.wp-block-navigation{display:flex;position:static;padding:0;border:0}.wp-block-navigation__responsive-container:not(.is-menu-open){display:none}.wp-block-navigation__responsive-container-open:not(.always-shown){display:flex}.feature-photo img{height:320px}}
@media(max-width:520px){.brand-subtitle{max-width:200px;font-size:8px}.wp-block-cover.iaco-hero{min-height:590px}.hero-copy h1{font-size:39px}.article-page .wp-block-post-title{font-size:33px}}
