/* =========================================================
   ENOFLIX FOUNDATION — PUBLIC DESIGN SYSTEM
   ---------------------------------------------------------
   Visual direction:
   - Independent Foundation identity
   - Warm, human, community-first
   - Premium EnoFlix relationship without cloning Corporate
   ========================================================= */

:root{
  --ef-bg:#f1f5ee;
  --ef-bg2:#e8efe7;
  --ef-ink:#10261c;
  --ef-muted:#64766d;
  --ef-green:#176a45;
  --ef-green2:#0f4f34;
  --ef-mint:#b8e0c7;
  --ef-gold:#e6a31d;
  --ef-white:#fff;
  --ef-line:rgba(16,38,28,.12);
  --ef-radius:28px;
  --ef-max:1360px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--ef-ink);
  background:var(--ef-bg);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a{
  color:inherit;
  text-decoration:none;
}

img,video{
  max-width:100%;
}

button,input,select{
  font:inherit;
}

.ef-container{
  width:min(var(--ef-max),calc(100% - 42px));
  margin:auto;
}

.ef-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(241,245,238,.88);
  border-bottom:1px solid var(--ef-line);
  backdrop-filter:blur(18px);
}

.ef-header__inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.ef-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:850;
  letter-spacing:-.02em;
}

.ef-brand__mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  color:#fff;
  background:var(--ef-green);
  border-radius:50%;
  font-size:13px;
  font-weight:900;
}

.ef-nav{
  display:flex;
  align-items:center;
  gap:4px;
}

.ef-nav a{
  padding:10px 11px;
  color:#445b50;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
}

.ef-nav a:hover,
.ef-nav a.is-active{
  color:var(--ef-green);
  background:rgba(23,106,69,.07);
}

.ef-menu-btn{
  display:none;
  min-width:42px;
  min-height:42px;
  border:1px solid var(--ef-line);
  border-radius:12px;
  background:#fff;
}

.ef-hero{
  position:relative;
  overflow:hidden;
  padding:115px 0 85px;
}

.ef-hero::before{
  content:"";
  position:absolute;
  width:560px;
  height:560px;
  top:-260px;
  right:-130px;
  border-radius:50%;
  background:radial-gradient(circle,var(--ef-mint),transparent 68%);
  opacity:.75;
}

.ef-hero__grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  align-items:center;
  gap:65px;
}

.ef-eyebrow{
  display:block;
  margin-bottom:14px;
  color:var(--ef-green);
  font-size:11px;
  font-weight:900;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.ef-hero h1{
  max-width:900px;
  margin:0;
  font-size:clamp(44px,6vw,88px);
  line-height:.98;
  letter-spacing:-.065em;
}

.ef-hero p{
  max-width:720px;
  margin:25px 0 0;
  color:var(--ef-muted);
  font-size:18px;
  line-height:1.75;
}

.ef-hero__visual{
  min-height:410px;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%,rgba(255,255,255,.45),transparent 25%),
    linear-gradient(145deg,var(--ef-green),#7bb98f);
  border-radius:44px 44px 140px 44px;
}

.ef-hero__visual::before,
.ef-hero__visual::after{
  content:"";
  position:absolute;
  border:1px solid rgba(255,255,255,.3);
  border-radius:50%;
}

.ef-hero__visual::before{
  width:320px;
  height:320px;
  right:-70px;
  top:-80px;
}

.ef-hero__visual::after{
  width:200px;
  height:200px;
  left:45px;
  bottom:35px;
}

.ef-section{
  padding:82px 0;
}

.ef-section--white{
  background:#fff;
}

.ef-section--dark{
  color:#fff;
  background:var(--ef-green2);
}

.ef-section-head{
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:flex-end;
  margin-bottom:34px;
}

.ef-section-head h2{
  max-width:760px;
  margin:0;
  font-size:clamp(32px,4vw,56px);
  letter-spacing:-.05em;
}

.ef-section-head p{
  max-width:520px;
  margin:0;
  color:var(--ef-muted);
  line-height:1.7;
}

.ef-section--dark .ef-section-head p{
  color:#b7d1c4;
}

.ef-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.ef-grid--4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.ef-card{
  position:relative;
  overflow:hidden;
  min-height:260px;
  padding:24px;
  background:#fff;
  border:1px solid var(--ef-line);
  border-radius:22px;
}

.ef-card__image{
  margin:-24px -24px 21px;
  aspect-ratio:16/9;
  background:#dfe9e1;
  overflow:hidden;
}

.ef-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ef-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
  color:var(--ef-green);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.ef-card h3{
  margin:0 0 10px;
  font-size:22px;
  letter-spacing:-.03em;
}

.ef-card p{
  margin:0;
  color:var(--ef-muted);
  line-height:1.65;
}

.ef-card__link{
  display:inline-flex;
  margin-top:18px;
  color:var(--ef-green);
  font-weight:800;
}

.ef-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}

.ef-metric{
  padding:25px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
}

.ef-metric strong{
  display:block;
  font-size:34px;
  letter-spacing:-.04em;
}

.ef-metric span{
  display:block;
  margin-top:7px;
  color:#bad4c7;
}

.ef-body{
  max-width:880px;
  font-size:17px;
  line-height:1.8;
}

.ef-body h2,
.ef-body h3{
  letter-spacing:-.04em;
}

.ef-detail-hero{
  padding:80px 0 45px;
}

.ef-detail-hero h1{
  max-width:950px;
  margin:0;
  font-size:clamp(40px,6vw,76px);
  line-height:1;
  letter-spacing:-.06em;
}

.ef-detail-media{
  margin:30px 0;
  overflow:hidden;
  border-radius:30px;
}

.ef-detail-media img{
  width:100%;
  max-height:720px;
  object-fit:cover;
}

.ef-filter{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:28px;
}

.ef-filter button{
  min-height:38px;
  padding:0 14px;
  color:var(--ef-muted);
  background:#fff;
  border:1px solid var(--ef-line);
  border-radius:999px;
  cursor:pointer;
}

.ef-filter button.is-active{
  color:#fff;
  background:var(--ef-green);
  border-color:var(--ef-green);
}

.ef-empty{
  grid-column:1/-1;
  padding:45px;
  color:var(--ef-muted);
  text-align:center;
  background:rgba(255,255,255,.6);
  border:1px dashed var(--ef-line);
  border-radius:20px;
}

.ef-report{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:20px 0;
  border-bottom:1px solid var(--ef-line);
}

.ef-report h3{
  margin:0 0 6px;
}

.ef-report p{
  margin:0;
  color:var(--ef-muted);
}

.ef-report a{
  align-self:center;
  flex:0 0 auto;
  color:var(--ef-green);
  font-weight:800;
}

.ef-give-card{
  padding:28px;
  background:#fff;
  border:1px solid var(--ef-line);
  border-radius:22px;
}

.ef-give-card a{
  display:inline-flex;
  margin-top:18px;
  padding:12px 17px;
  color:#fff;
  background:var(--ef-green);
  border-radius:10px;
  font-weight:800;
}

.ef-footer{
  padding:55px 0;
  color:#c5d8cf;
  background:#082719;
}

.ef-footer__grid{
  display:grid;
  grid-template-columns:1.4fr repeat(3,1fr);
  gap:40px;
}

.ef-footer h3{
  margin-top:0;
  color:#fff;
}

.ef-footer a{
  display:block;
  margin:9px 0;
  color:#b9d0c4;
}

.ef-footer__bottom{
  margin-top:40px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:12px;
}

@media(max-width:1050px){
  .ef-nav{
    display:none;
    position:absolute;
    left:20px;
    right:20px;
    top:70px;
    padding:12px;
    flex-direction:column;
    align-items:stretch;
    background:#fff;
    border:1px solid var(--ef-line);
    border-radius:16px;
    box-shadow:0 20px 50px rgba(0,0,0,.12);
  }

  .ef-nav.is-open{
    display:flex;
  }

  .ef-menu-btn{
    display:block;
  }

  .ef-hero__grid{
    grid-template-columns:1fr;
  }

  .ef-hero__visual{
    min-height:300px;
  }

  .ef-grid,
  .ef-grid--4,
  .ef-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:680px){
  .ef-container{
    width:min(100% - 24px,var(--ef-max));
  }

  .ef-hero{
    padding:75px 0 55px;
  }

  .ef-section{
    padding:58px 0;
  }

  .ef-section-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .ef-grid,
  .ef-grid--4,
  .ef-metrics,
  .ef-footer__grid{
    grid-template-columns:1fr;
  }

  .ef-report{
    flex-direction:column;
  }
}
