/*
Theme Name: Voluntariat.ro
Theme URI: https://voluntariat.ro
Description: Temă proprie, ușoară, pentru centrul de resurse online voluntariat.ro (Coaliția pentru Voluntariat). Fără constructor vizual și fără dependențe externe.
Author: Pro Vobis
Version: 1.0.0
Requires PHP: 8.0
Text Domain: voluntariat
*/

/* ---------- Fonturi (auto-găzduite, fără apeluri către terți) ---------- */
@font-face{font-family:"MuseoModerno";font-weight:700;font-display:swap;src:url(assets/fonts/museomoderno-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"MuseoModerno";font-weight:700;font-display:swap;src:url(assets/fonts/museomoderno-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"MuseoModerno";font-weight:800;font-display:swap;src:url(assets/fonts/museomoderno-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"MuseoModerno";font-weight:800;font-display:swap;src:url(assets/fonts/museomoderno-latin-ext-800-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Open Sans";font-weight:400;font-display:swap;src:url(assets/fonts/open-sans-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Open Sans";font-weight:400;font-display:swap;src:url(assets/fonts/open-sans-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Open Sans";font-weight:600;font-display:swap;src:url(assets/fonts/open-sans-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Open Sans";font-weight:600;font-display:swap;src:url(assets/fonts/open-sans-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- Variabile (culorile site-ului vechi) ---------- */
:root{
  --yellow:#FDCA37; --red:#E2233B; --navy:#0C2437; --blue:#0A4C95; --green:#369767;
  --gray:#FAFAFA; --mgray:#F0EFEF; --dgray:#A0A2A4; --text:#1b1b1b;
  --accent:var(--red);
  --head:"MuseoModerno",system-ui,sans-serif;
  --body:"Open Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --side:340px;
}
.sec-coordinators{--accent:var(--yellow)}
.sec-volunteers{--accent:var(--red)}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--body);font-size:14px;line-height:1.6;color:var(--text);background:#fff}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:8px 16px;z-index:100}
.skip:focus{left:8px;top:8px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Schelet cu meniu lateral ---------- */
.site{display:flex;min-height:100vh}
.side{position:sticky;top:0;align-self:flex-start;height:100vh;width:var(--side);flex:none;background:var(--gray);overflow-y:auto;padding:64px 48px 48px;z-index:20}
.side__back{display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:24px}
.side__back svg{width:22px;height:22px}
.side__eyebrow{text-transform:uppercase;letter-spacing:.12em;font-weight:600;font-size:12px;margin:0 0 8px 8px}
.side__title{position:relative;display:inline-block;padding-left:8px;margin-bottom:8px}
.side__title h1{position:relative;z-index:2;font-family:var(--head);font-weight:800;font-size:32px;line-height:1.6}
.side__title::after{content:"";position:absolute;z-index:1;left:0;right:0;bottom:6px;height:28px;background:var(--accent)}
.side__list{padding-top:16px}
.side__list li{padding-bottom:16px}
.side__list a{position:relative;display:inline-block;font-size:12px;line-height:1.6;color:var(--dgray);padding-right:16px}
.side__list a::after{content:"";position:absolute;left:0;bottom:-8px;width:80px;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:0 100%;transition:transform .3s ease}
.side__list a:hover,.side__list a[aria-current="page"]{color:var(--text)}
.side__list a:hover::after,.side__list a[aria-current="page"]::after{transform:scaleX(1)}
.side__logo{margin-top:40px;width:150px}
.burger{display:none;position:fixed;top:0;left:0;z-index:40;width:100%;padding:16px 24px;background:rgba(255,255,255,.92);border:0;text-align:left;cursor:pointer}
.burger span,.burger span::before,.burger span::after{display:block;width:26px;height:3px;background:var(--navy);border-radius:2px;position:relative}
.burger span::before,.burger span::after{content:"";position:absolute;left:0}
.burger span::before{top:-8px}.burger span::after{top:8px}

.main{flex:1;min-width:0;display:flex;flex-direction:column}
.main__head{padding:64px 80px 0}
.main__head h3{font-family:var(--head);font-weight:700;font-size:24px;line-height:1.6;padding-bottom:16px}
.main__head hr,.rule{border:0;height:2px;background:var(--gray);margin:0}
.main__body{flex:1;padding:32px 80px 24px}
.eyebrow{text-transform:uppercase;letter-spacing:.06em;font-size:14px;font-weight:600;padding-bottom:32px}

/* ---------- Carduri ---------- */
.cards{display:flex;flex-direction:column;justify-content:space-between;gap:24px 4%}
.cards__col{display:flex;flex-direction:column;gap:24px;width:100%}
.card{display:flex;border:1px solid var(--mgray);border-radius:8px;overflow:hidden;background:#fff;color:inherit;transition:box-shadow .2s,border-color .2s}
.card:hover{box-shadow:0 6px 20px rgba(12,36,55,.1);border-color:var(--dgray)}
.card__img{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--mgray),#fff 60%);flex:none}
.card__img img{width:100%;height:100%;object-fit:cover}
.card__img--ph::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,var(--accent) 0 18%,transparent 19%),radial-gradient(circle at 75% 70%,var(--blue) 0 12%,transparent 13%),var(--mgray);opacity:.55}
.card__txt{display:flex;flex-direction:column;justify-content:space-between;gap:8px;padding:16px;font-size:12px;line-height:1.6;color:#6b6e71;min-width:0}
.card__title{font-size:14px;font-weight:600;color:#000;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card__meta{display:flex;flex-wrap:wrap;gap:0 8px;padding:4px 0 8px}
.card__meta b{color:var(--blue);font-weight:600}
.card__sum{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.card--lg{flex-direction:column;min-height:360px}
.card--lg .card__img{height:180px}
.card--lg .card__sum{-webkit-line-clamp:4}
.card--sm{flex-direction:row;min-height:160px}
.card--sm .card__img{width:33%}
.card--sm .card__sum{-webkit-line-clamp:2}
.more{display:flex;flex-direction:column;align-items:flex-end;margin:0 0 0 auto;width:max-content;font-size:12px;padding-left:16px}
.more::after{content:"";margin-top:2px;width:64px;height:2px;background:var(--accent);transition:width .2s}
.more:hover::after{width:100%}
.block{padding-bottom:0}
.block + .rule{margin:32px 0}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.grid .card{min-height:360px}

/* ---------- Articol ---------- */
.article{max-width:780px;margin:0 auto;padding-bottom:32px}
.article__crumb{font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:600;margin-bottom:16px}
.article__crumb a:hover{text-decoration:underline}
.article h1.article__title{font-family:var(--head);font-weight:800;font-size:34px;line-height:1.3;margin-bottom:12px}
.article__meta{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px;color:#6b6e71;margin-bottom:24px}
.article__meta b{color:var(--blue);font-weight:600}
.article__cover{border-radius:8px;overflow:hidden;margin-bottom:32px}
.article__cover--ill img{display:block;width:100%;height:220px;object-fit:cover}
.prose{font-size:17px;line-height:1.75}
.prose > * + *{margin-top:1.1em}
.prose h2,.prose h3,.prose h4{font-family:var(--head);font-weight:700;line-height:1.35;margin-top:1.8em}
.prose h2{font-size:26px}.prose h3{font-size:21px}.prose h4{font-size:18px}
.prose a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.prose ul,.prose ol{padding-left:1.4em}
.prose ul{list-style:disc}.prose ol{list-style:decimal}
.prose li + li{margin-top:.4em}
.prose blockquote{margin-left:0;padding:4px 0 4px 20px;border-left:4px solid var(--accent);color:#444}
.prose table{display:block;overflow-x:auto;border-collapse:collapse;width:100%;font-size:15px}
.prose th,.prose td{border:1px solid var(--mgray);padding:10px 12px;vertical-align:top;text-align:left}
.prose th{background:var(--gray)}
.prose img{border-radius:6px}
.prose iframe,.prose video{max-width:100%}
.article__back{margin-top:40px}

.wordmark{display:inline-block;font-family:var(--head);font-weight:800;font-size:26px;line-height:1.2;color:var(--blue);letter-spacing:.02em}
.wordmark span{color:var(--red)}
.side__logo-link{display:inline-block;margin-bottom:24px}
.side__logo{width:150px}

/* ---------- Instrumente utile ---------- */
.docs{display:grid;gap:16px}
.doc{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:center;border:1px solid var(--mgray);border-radius:8px;padding:16px 20px}
.doc h2{font-size:15px;font-weight:600}
.doc p{font-size:12px;color:#6b6e71}
.btn{display:inline-block;background:var(--navy);color:#fff;font-weight:600;font-size:13px;padding:8px 18px;border-radius:6px}
.btn:hover{background:var(--blue)}
.btn--off{background:var(--mgray);color:#6b6e71;pointer-events:none}

/* ---------- Subsol comun ---------- */
.partners{margin:0 10%;padding:32px 0 0;font-size:12px;font-weight:600}
.partners__label{text-transform:uppercase;letter-spacing:.12em;margin-bottom:24px}
.partners__row{display:flex;justify-content:space-around;align-items:center;flex-wrap:wrap;gap:16px 0}
.partners__row > span{display:flex;align-items:center;justify-content:center;min-height:56px;padding:0 16px;flex:1 1 140px;border-left:2px solid var(--mgray);font-family:var(--head);font-size:15px;color:var(--navy);text-align:center}
.partners__row > span:first-child{border-left:0}
.partners__row img{max-height:48px;width:auto;margin:0 auto}
.foot{display:flex;flex-wrap:wrap;gap:32px 0;padding:48px 0 32px}
.foot__brand{width:40%;min-width:260px}
.foot__brand img{width:185px;height:auto}
.foot__brand p{margin:16px 0;font-weight:400}
.foot__cols{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;width:60%;min-width:280px;font-weight:400}
.foot h4{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:400;margin-bottom:16px}
.foot ul{list-style:disc;padding-left:20px}
.foot a:hover{text-decoration:underline}
.redline{height:2px;background:var(--red)}

/* ---------- Pagina de start ---------- */
.home-top{display:flex;justify-content:space-between;align-items:center;padding:24px 32px;height:110px;background:#fff}
.home-top .acf{font-size:12px;line-height:1.35;color:#555;max-width:260px}
.home-top .acf img{height:64px;width:auto}
.hero{position:relative;display:flex;min-height:calc(100vh - 110px);overflow:hidden;background:var(--navy)}
.hero__half{position:absolute;inset:0;display:flex;align-items:flex-end;padding:0 0 128px 56px;color:#fff;background-size:cover;background-position:50%;opacity:.55;transition:opacity .2s}
.hero__half:hover,.hero__half:focus-visible{opacity:1;z-index:2}
.hero__half--l{align-items:flex-start;padding:20vh 0 0 56px;clip-path:polygon(0 0,100% 0,100% 45%,0 68%);background-image:linear-gradient(135deg,#3a4a57,#9a8a63)}
.hero__half--r{clip-path:polygon(0 68%,100% 45%,100% 100%,0 100%);background-image:linear-gradient(135deg,#3f6b4b,#142d3b);justify-content:flex-end;padding:0 56px 128px 0}
.hero__label{position:relative;z-index:1;max-width:46%}
.hero__label small{display:block;text-transform:uppercase;letter-spacing:.2em;font-size:13px;font-weight:600;margin-bottom:6px}
.hero__title{display:block;position:relative;z-index:2;font-family:var(--head);font-weight:800;font-size:48px;line-height:1.2;padding:0 8px}
.hero__label::after{content:"";position:absolute;left:-16px;bottom:2px;height:26px;opacity:.6;z-index:1;transition:background-color .2s,opacity .2s}
.hero__half--l small,.hero__half--l .hero__label::after{color:var(--yellow);background:var(--yellow)}
.hero__half--l small{background:none}
.hero__half--l .hero__label::after{width:300px}
.hero__half--r small{color:var(--red);background:none}
.hero__half--r .hero__label::after{background:var(--red);width:230px}
.hero__half:hover .hero__label::after,.hero__half:focus-visible .hero__label::after{background:var(--navy);opacity:1}
.hero__half--l:hover .hero__title{color:var(--yellow)}.hero__half--r:hover .hero__title{color:var(--red)}
.hero__half--l:hover small,.hero__half--r:hover small{color:#fff}
.coalition{background:var(--mgray) url(assets/img/coalition-background.svg) center/cover no-repeat;padding:48px 0 32px}
.coalition__in{max-width:1610px;margin:0 auto;padding:0 10%}
.coalition__banner{margin:0 auto 24px;max-width:1200px;width:100%}
.coalition p{max-width:1610px;margin-bottom:20px}
.coalition strong{font-weight:600}

/* ---------- Adaptare ---------- */
@media (min-width:1280px){
  .cards{flex-direction:row}
  .cards > .card--lg{width:48%}
  .cards__col{width:48%;justify-content:space-between}
}
@media (max-width:1023px){
  :root{--side:100vw}
  .burger{display:block}
  .side{position:fixed;inset:0;height:100vh;width:100vw;padding:72px 24px 32px;clip-path:circle(0 at 28px 28px);z-index:-1;transition:clip-path 1s,z-index .1s 1s}
  .menu-open .side{clip-path:circle(200vh at 28px 28px);z-index:30;transition:clip-path 1s .1s,z-index .1s}
  .menu-open .burger{background:transparent;z-index:50}
  .main__head{padding:72px 24px 0}
  .main__body{padding:24px}
  .grid{grid-template-columns:1fr}
  .article h1.article__title{font-size:28px}
  .hero__half{padding:0 0 96px 24px}
  .hero__half--l{padding:14vh 0 0 24px}
  .hero__half--r{padding:0 24px 96px 0}
  .hero__label{max-width:60%}
  .hero__title{font-size:32px}
  .partners{margin:0 24px}
  .foot__brand,.foot__cols{width:100%}
}
@media (max-width:640px){
  .card--sm{flex-direction:column}
  .card--sm .card__img{width:100%;height:140px}
  .hero__title{font-size:26px}
  .hero__label::after{width:150px!important}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{.side,.burger,.partners,.foot{display:none}}

/* embed-uri (Canva etc.) și imagini în articole */
.prose img{max-width:100%;height:auto}
.prose .embed{position:relative;width:100%;aspect-ratio:16/9;margin:1.5rem 0}
.prose .embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:6px}
