/*
Theme Name: FESO Rebuild
Theme URI: https://feso.org
Author: FESO
Description: Rebuild-ready WordPress theme for Femmes Solidaires, based on the recovered FESO website.
Version: 1.0.0
Text Domain: feso-rebuild
*/

:root {
  --green: #087a52;
  --green-dark: #07543c;
  --green-light: #dff7eb;
  --ink: #17211d;
  --muted: #5d6a64;
  --cream: #f8faf8;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7, 84, 60, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e6eee9;
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand img { display: block; width: 172px; max-height: 58px; object-fit: contain; }
.main-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.main-nav a { color: #24342d; font-weight: 700; font-size: .94rem; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--green); }
.menu-toggle { display: none; border: 0; background: var(--green); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 800; }

.hero {
  min-height: 610px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(90deg, rgba(4,66,45,.9), rgba(4,66,45,.55)), var(--hero-image) center/cover no-repeat;
}
.hero-inner { max-width: 790px; padding: 100px 0; }
.eyebrow { display: inline-block; color: #b9f3d8; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; font-size: .78rem; }
.hero h1 { margin: 12px 0 20px; font-size: clamp(3.4rem, 8vw, 6.6rem); line-height: .95; letter-spacing: -.055em; }
.hero p { max-width: 760px; font-size: clamp(1.08rem, 2vw, 1.32rem); color: #e7fff3; }
.button-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.button { display: inline-block; padding: 13px 22px; border-radius: 9px; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #34b778; color: white; }
.button-light { background: white; color: var(--green-dark); }
.button-outline { border: 2px solid white; color: white; }

.section { padding: 88px 0; }
.section-soft { background: var(--cream); }
.section-green { background: var(--green-dark); color: white; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.centered { text-align: center; margin-inline: auto; }
.section h2, .page-content h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.section h3 { margin-top: 0; font-size: 1.35rem; line-height: 1.25; }
.section p { color: var(--muted); }
.section-green p { color: #d9f5e8; }
.two-col { display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 64px; }
.split-image { width: 100%; min-height: 440px; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: white; padding: 28px; border: 1px solid #e2ece6; border-radius: 16px; box-shadow: 0 10px 30px rgba(7,84,60,.06); }
.card .icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: var(--green-light); color: var(--green); font-size: 1.35rem; font-weight: 900; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat strong { display: block; font-size: clamp(2.4rem, 5vw, 4rem); color: #54d79a; line-height: 1; }
.stat span { color: #d9f5e8; }
.cta { text-align: center; padding: 76px 20px; background: linear-gradient(135deg, #087a52, #06432f); color: white; }
.cta p { max-width: 760px; margin: 0 auto; color: #ddf8eb; }
.cta .button-row { justify-content: center; }

.page-hero { padding: 86px 0; background: linear-gradient(135deg, var(--green-dark), var(--green)); color: white; }
.page-hero h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 4.6rem); letter-spacing: -.04em; }
.page-content { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.page-content h2 { margin-top: 48px; color: var(--green-dark); }
.page-content h3 { margin-top: 34px; }
.page-content li { margin-bottom: 9px; }
.page-content .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { padding: 25px; background: var(--cream); border-left: 5px solid var(--green); border-radius: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }

.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post-card { border: 1px solid #e2ece6; border-radius: 15px; overflow: hidden; background: white; }
.post-card-body { padding: 22px; }
.post-card h2 { font-size: 1.35rem; }
.post-card a { text-decoration: none; }
.post-meta { color: var(--muted); font-size: .88rem; }

.site-footer { background: #063f2d; color: #dff8eb; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-logo { width: 170px; filter: brightness(0) invert(1); opacity: .98; }
.site-footer h3 { color: white; margin-top: 0; }
.site-footer a { color: #dff8eb; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 8px 0; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; padding: 20px; background: white; border-bottom: 1px solid #e6eee9; }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 13px; }
  .two-col { grid-template-columns: 1fr; gap: 35px; }
  .cards, .posts-grid { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 42px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1140px); }
  .brand img { width: 140px; }
  .hero { min-height: 550px; }
  .hero-inner { padding: 76px 0; }
  .section { padding: 64px 0; }
  .cards, .posts-grid, .footer-grid, .gallery-grid, .page-content .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 26px; }
}
