/* ============================================================
   Asociația Umanitară Tadeu — Modern Redesign
   Design language inspired by lifecall.ro
   ============================================================ */

/* ---------- Fonts (self-hosted Inter, SIL OFL 1.1 — see /fonts/OFL.txt) ---------- */
/* Same weights as the former Google Fonts request (400;500;600;700;800), latin + latin-ext */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design Tokens ---------- */
:root {
  --green-900: #039146;
  --green-700: #047a3b;
  --green-500: #56c477;
  --green-300: #c4f2d4;
  --green-100: #e8f9ee;
  --green-50:  #f4fcf6;

  --ink:       #1f2937;
  --ink-soft:  #4b5563;
  --ink-muted: #6b7280;
  --line:      #e5e7eb;
  --line-soft: #f2f2f2;
  --white:     #ffffff;

  --accent:    #039146;
  --accent-hover: #047a3b;

  --radius-sm: 5px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 4px 0 rgba(0,0,0,.05);
  --shadow:    0 4px 16px 0 rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px 0 rgba(0,0,0,.12);
  --shadow-green: 0 8px 24px 0 rgba(3,145,70,.25);

  --container: 1200px;
  --container-narrow: 880px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --transition: all .2s ease;
  --transition-slow: all .4s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
html { scroll-padding-top: 88px; }
[id] { scroll-margin-top: 88px; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: 80px 0; }
.section.tight { padding: 56px 0; }
.section.green { background: var(--green-50); }
.section.dark { background: var(--green-900); color: #fff; }
.section.gray { background: #fafafa; }
.center { text-align: center; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--ink-soft); line-height: 1.7; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-head .eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 10px; display: block; }
.section-head .eyebrow.eyebrow-lg { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; line-height: 1;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-green); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--green-100); color: var(--accent-hover); }
.btn-light { background: var(--green-100); color: var(--accent); }
.btn-light:hover { background: var(--green-300); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900); color: #fff; font-size: .85rem;
  padding: 8px 0; display: none;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; opacity: .9; }
.topbar a:hover { opacity: 1; }
.topbar .tb-links { display: flex; gap: 18px; align-items: center; }
.topbar .tb-phone { font-weight: 600; }
@media (min-width: 768px) { .topbar { display: block; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 900;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 1; min-width: 0; }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: var(--ink); font-size: 1.02rem; font-weight: 700; }
.brand-text span { color: var(--ink-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* nav */
.nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 500; font-size: .93rem;
  white-space: nowrap;
}
.nav > li > a:hover { color: var(--accent); background: var(--green-50); }
.nav .caret { font-size: .6rem; opacity: .6; }
.has-sub { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition); z-index: 100;
}
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .9rem; font-weight: 500; }
.submenu li a:hover { background: var(--green-50); color: var(--accent); }
.submenu .has-sub > a::after { content: '›'; margin-left: auto; }
.submenu .submenu { top: 0; left: 100%; transform: translateX(8px); }
.has-sub:hover > .submenu .submenu, .has-sub:focus-within > .submenu { }

/* header actions */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; position: relative; z-index: 2; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); font-size: .98rem; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (min-width: 992px) {
  .header-phone { display: flex; }
  .header .container { flex-wrap: nowrap; }
}
@media (min-width: 992px) and (max-width: 1180px) {
  .header .container { gap: 8px; }
  .nav { gap: 0; }
  .nav > li > a { padding: 8px 7px; font-size: .82rem; }
  .header-phone { font-size: .85rem; gap: 5px; }
  .header-phone svg { width: 16px; height: 16px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 11px 16px; font-size: .9rem; }
}

.nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--radius-sm); }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 992px) { .nav-toggle { display: none; } }

/* desktop nav visibility */
@media (max-width: 991px) {
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; width: 100%; max-width: 100%;
    height: calc(100dvh - 76px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 14px 20px 30px; overflow-y: auto; overflow-x: hidden;
    transform: translateX(100%); transition: transform .3s ease;
    border-top: 1px solid var(--line);
    flex-shrink: 1;
    pointer-events: none;
    visibility: hidden;
  }
  .nav.open { transform: translateX(0); pointer-events: auto; visibility: visible; }
  .nav > li { width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav > li > a { padding: 14px 8px; justify-content: space-between; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; }
  .has-sub.open > .submenu { display: block; }
  .submenu { display: none; }
  .has-sub > a .caret { transition: transform .2s; }
  .has-sub.open > a .caret { transform: rotate(180deg); }
  /* Keep Donează visible on mobile; compact so it fits with hamburger */
  .header-actions .btn { padding: 10px 14px; font-size: .88rem; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, rgba(3,145,70,.92), rgba(4,122,59,.86)),
              url('../images/wp/2020/09/Activitati-Asoc-Tadeu-4-1024x682.jpg') center/cover no-repeat;
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 60%); }
.hero .container { position: relative; z-index: 2; padding: 96px 20px 104px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.hero-inner { max-width: 620px; min-width: 0; }
.hero-photo {
  justify-self: end;
  width: 100%;
  min-width: 0;
  max-width: min(520px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,.4);
  background: var(--green-700);
  transition: var(--transition);
}
a.hero-photo { color: inherit; }
a.hero-photo:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.hero-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: var(--green-700);
}
@media (max-width: 800px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-photo { justify-self: center; max-width: min(420px, 100%); }
  .hero .container { padding: 64px 20px 72px; }
}
.hero .eyebrow { color: var(--green-300); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin-bottom: 14px; display: block; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.92); margin-bottom: 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
.hero .btn-primary { background: #fff; color: var(--accent); }
.hero .btn-primary:hover { background: var(--green-100); }
.hero .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* donation banner */
.donate-banner {
  background: var(--green-300); color: var(--green-900);
  text-align: center; padding: 16px 20px; font-size: .96rem; font-weight: 500;
}
.donate-banner strong { font-weight: 700; letter-spacing: .02em; }
.donate-banner .btn { margin-left: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 36px 20px 32px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: var(--transition); }
.stat:hover { box-shadow: var(--shadow); border-color: var(--green-300); border-top-color: var(--accent); }
.stat .num { font-size: clamp(2.6rem, 5.2vw, 3.9rem); font-weight: 800; color: var(--green-700); line-height: 1; margin-bottom: 14px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .label { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink); font-weight: 600; line-height: 1.4; }
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .stat { padding: 26px 12px 22px; }
  .stat .num { font-size: clamp(2.1rem, 9vw, 2.8rem); margin-bottom: 10px; }
  .stat .label { font-size: .98rem; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--green-300); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--line-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-media img.img-top { object-position: top center; }
.card-media img.img-contain { object-fit: contain; background: var(--green-50); }
a.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card-date { color: var(--ink-muted); font-size: .8rem; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.card-link { margin-top: 14px; font-weight: 600; color: var(--accent); font-size: .92rem; display: inline-flex; align-items: center; gap: 5px; }
.card-link .arrow { transition: transform .2s; }
.card-link:hover .arrow { transform: translateX(3px); }

/* icon card */
.icon-card { text-align: center; padding: 32px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: var(--transition); }
.icon-card:hover { box-shadow: var(--shadow); border-color: var(--green-300); }
.icon-card .ico { width: 60px; height: 60px; margin: 0 auto 18px; background: var(--green-100); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.icon-card .ico svg { width: 28px; height: 28px; }
.icon-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.icon-card p { color: var(--ink-soft); font-size: .92rem; }

/* feature image card (project) */
.feature-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-card:hover img { transform: scale(1.06); }
.feature-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.78)); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; }
.feature-card .overlay h3 { color: #fff; margin-bottom: 6px; }
.feature-card .overlay p { color: rgba(255,255,255,.9); font-size: .9rem; margin: 0; }
.feature-card .overlay .more { margin-top: 10px; font-weight: 600; font-size: .85rem; color: var(--green-300); }

/* ---------- Split section (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-img { order: 2; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img.split-contain { background: var(--green-50); }
.split-img.split-contain img { object-fit: contain; }
.event-poster {
  margin: 0 auto;
  max-width: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.event-poster img { width: 100%; height: auto; display: block; }
/* article hero image: always shown in full (no crop) */
.article-figure { margin: 0 0 28px; }
.article-figure img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: var(--green-50); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-muted); text-align: center; }
/* article photo gallery (ported stories) */
.article-gallery { gap: 16px; }
.article-gallery a { display: block; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-50); }
.article-gallery img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* clickable photo link (e.g. Adoptă visul → tinerii susținuți) */
.photo-link { display: block; max-width: 280px; margin: 28px auto; text-align: center; color: var(--accent); font-weight: 600; }
.photo-link img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--green-50); margin-bottom: 10px; transition: var(--transition); }
.photo-link:hover img { box-shadow: var(--shadow-lg); }
.split-text h2 { margin-bottom: 18px; }
.split-text p { color: var(--ink-soft); margin-bottom: 16px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse .split-img { order: 0; } }

/* ---------- Progress / donation widget ---------- */
.donate-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.donate-widget h3 { margin-bottom: 6px; }
.progress { margin: 18px 0 10px; }
.progress-track { height: 10px; background: var(--line-soft); border-radius: var(--radius-pill); overflow: hidden; box-shadow: inset 0 1px 4px rgba(0,0,0,.08); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-900)); border-radius: var(--radius-pill); transition: width 1.2s ease; }
.progress-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: .85rem; color: var(--ink-muted); }
.progress-meta strong { color: var(--ink); font-size: 1.05rem; display: block; }

/* ---------- Values (TADEU) ---------- */
.values-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.value-chip {
  background: #fff; border: 2px solid var(--green-300); border-radius: var(--radius);
  padding: 26px 22px; min-width: 170px; text-align: center; transition: var(--transition);
}
.value-chip:hover { border-color: var(--accent); box-shadow: var(--shadow-green); }
.value-chip .letter { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.value-chip .word { font-weight: 700; margin-top: 6px; color: var(--ink); text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; }

/* ---------- List styled ---------- */
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; color: var(--ink-soft); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--green-300); color: var(--green-900); border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.bullet-list li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-soft); }
.bullet-list li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; background: var(--green-500); border-radius: 50%; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 2px solid var(--line); }
.tab-btn { padding: 12px 20px; font-weight: 600; color: var(--ink-muted); border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); font-size: .92rem; }
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-color: var(--accent); }
.tab-panel { display: none; animation: fadeIn .4s ease; }
.tab-panel.active { display: block; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: #fff; transition: var(--transition);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--green-100); outline: none; }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contact info blocks ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico { width: 46px; height: 46px; flex: 0 0 auto; background: var(--green-100); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item h3, .contact-item h4 { margin-bottom: 2px; font-size: .95rem; }
.contact-item p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* ---------- Donation account box ---------- */
.account-box {
  background: var(--green-50); border: 1px solid var(--green-300); border-radius: var(--radius);
  padding: 26px; margin: 24px 0;
}
.account-box h2, .account-box h3, .account-box h4 { color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.account-box .iban { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 1.05rem; font-weight: 700; color: var(--ink); background: #fff; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px dashed var(--green-500); word-break: break-all; margin: 8px 0; }
.donate-widget .account-box .iban { font-size: 1.25rem; }
.account-box .row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.account-box .row span { font-size: .9rem; color: var(--ink-soft); }
.account-box .row strong { color: var(--ink); }

/* ---------- Partners grid ---------- */
/* Logo wall: one white surface, no per-logo boxes, uniform logo height, full colour */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 36px 32px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 40px 36px; }
.partner-logo { height: 110px; display: flex; align-items: center; justify-content: center; background: #fff; }
.partner-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 110px; object-fit: contain; filter: none; opacity: 1; }
@media (max-width: 600px) {
  .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding: 28px 18px; }
  .partner-logo { height: 96px; }
  .partner-logo img { max-height: 96px; }
}
.partner-name { font-size: .82rem; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* ---------- Media list ---------- */
/* Apariții media: dated archive cards (reuse .card / .card-media / .card-date / .card-link) */
.media-card .card-media img { object-position: top center; }
.media-card .card-date { margin-bottom: 4px; flex: 0 0 auto; }
.media-card .media-pub { font-size: .85rem; font-weight: 700; color: var(--accent); margin: 0 0 10px; flex: 0 0 auto; }
.media-card .card-body h3 { font-size: 1.08rem; line-height: 1.35; }
.media-card .card-body p:not(.card-date):not(.media-pub) { font-style: italic; }
.media-card .card-link { align-self: flex-start; }
.media-ph { display: grid; place-items: center; background: var(--green-100); padding: 20px; text-align: center; }
.media-ph span { font-size: 1.35rem; font-weight: 800; color: var(--green-700); letter-spacing: .02em; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; border-radius: var(--radius-lg); padding: 48px; text-align: center; }
.newsletter h2 { color: #fff; margin-bottom: 12px; }
.newsletter p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 24px; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter form .nl-msg { flex: 1 0 100%; text-align: center; margin: 4px 0 0; }
.newsletter input { flex: 1; padding: 14px 16px; border: none; border-radius: var(--radius-sm); font-family: inherit; font-size: .96rem; }
.newsletter input:focus { outline: 3px solid var(--green-300); }
@media (max-width: 500px) { .newsletter form { flex-direction: column; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; border-radius: var(--radius-lg); padding: 52px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #111827; color: #cbd5e1; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-col h2, .footer-col h4 { color: #fff; margin-bottom: 18px; font-size: .98rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #cbd5e1; font-size: .92rem; }
.footer-col ul a:hover { color: var(--green-500); }
.footer-about p { font-size: .9rem; line-height: 1.7; margin: 14px 0; }
.footer-about .brand img { height: 48px; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; background: rgba(255,255,255,.08); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: var(--transition); }
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: linear-gradient(120deg, var(--green-900), var(--green-700)); color: #fff; padding: 64px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto; }
.page-hero .hero-actions { justify-content: center; margin-top: 22px; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: .82rem; margin-top: 16px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: var(--green-300); }
.breadcrumb span { opacity: .5; }

/* ---------- Sidebar nav (home care) ---------- */
.sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 96px; }
.sidebar h2, .sidebar h4 { padding: 8px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); }
.sidebar a { display: block; padding: 11px 12px; border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 500; font-size: .92rem; transition: var(--transition); }
.sidebar a:hover, .sidebar a.active { background: var(--green-50); color: var(--accent); }
.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.layout-sidebar > * { min-width: 0; }
.btn-block { white-space: normal; line-height: 1.3; text-align: center; }
@media (max-width: 800px) { .layout-sidebar { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 26px 0 12px; }
.prose p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 16px; }
.prose strong { color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 22px 0; box-shadow: var(--shadow); }
.prose ul.bullet-list { margin: 14px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; color: var(--ink-soft); padding: 0 12px; font-size: .9rem; transition: var(--transition); }
.pagination a:hover, .pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeInUp .7s ease forwards; }
.reveal-left.in { animation: fadeInLeft .7s ease forwards; }
.reveal-right.in { animation: fadeInRight .7s ease forwards; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; animation: none !important; } * { scroll-behavior: auto !important; } }

/* ---------- Back to top ---------- */
.back-top { position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; background: var(--accent); color: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-green); opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 800; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent-hover); }
.back-top svg { width: 22px; height: 22px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.text-accent { color: var(--accent); }
.hide-mobile { } .show-mobile { display: none; }
@media (max-width: 600px) { .hide-mobile { display: none; } .show-mobile { display: block; } }
@media (max-width: 600px) { .article-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Lightbox ---------- */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 20, 15, .92); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-img { display: block; max-width: 90vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); background: #111; }
.lb-caption { margin-top: 12px; color: rgba(255,255,255,.85); font-size: .9rem; text-align: center; max-width: 90vw; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: var(--transition); }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--accent); outline: none; }
.lb-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
a[data-lightbox] { cursor: zoom-in; }
@media (max-width: 600px) {
  .lightbox { padding: 56px 8px 24px; }
  .lb-img { max-width: 96vw; max-height: 75vh; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; }
  .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); }
  .lb-caption { margin-bottom: 52px; }
}

/* Fondul pentru Educație: in-page jump link to #copii-tineri-sustinuti (smooth scroll via html { scroll-behavior }) */
.jump-link { margin: 4px 0 22px; }
.jump-link a { color: var(--accent); font-weight: 800; font-size: 1.12rem; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.jump-link a:hover { color: var(--accent-hover); }
.jump-link a:hover .arrow { transform: translateX(3px); }
.jump-link .arrow { transition: transform .2s; }

/* Ghiozdanele bucuriei 2026: Facebook post sections + portrait photo gallery */
.article-gallery.gallery-portrait { margin: 0 0 8px; }
.article-gallery.gallery-portrait a { aspect-ratio: 3 / 4; }
.prose .article-gallery.gallery-portrait img { margin: 0; border-radius: 0; box-shadow: none; }
.fb-post { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.fb-post .card-date { margin-bottom: 4px; }
.prose .fb-post h2 { margin: 0 0 16px; }
.fb-caption { border-left: 4px solid var(--accent); background: var(--green-50); padding: 18px 22px; border-radius: var(--radius-sm); margin: 0 0 22px; }
.prose .fb-caption p { color: var(--ink); margin: 0 0 10px; line-height: 1.7; }
.prose .fb-caption p:last-child { margin-bottom: 0; }
.prose .fb-source { font-size: .9rem; margin: 14px 0 0; }
.fb-source a { font-weight: 600; }
/* Strong in-text link (brand green, bold) — e.g. „ghiozdane noi” */
a.link-strong, .prose a.link-strong { color: var(--accent); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.link-strong:hover { color: var(--accent-hover); }

/* v1.10 SEO: account-box headings moved from h4 to h2/h3 keep the h4 size and spacing */
.account-box h2, .account-box h3 { font-size: 1.125rem; margin: 0 0 10px; }

/* ===== v1.12: Concert „Adoptă visul unui bursier” 2026 (homepage promo + page) ===== */
@font-face { font-family: 'Playfair'; src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype'); font-weight: 400 900; font-style: italic; font-display: swap; }
.concert-promo {
  --cp-gold: #e9b45a; --cp-gold2: #f6d79a; --cp-warm: #FCEFC9; --cp-mint: #c4f2d4; --cp-deep: #06331f;
  position: relative; display: block; text-align: center; color: var(--cp-warm);
  background: radial-gradient(120% 70% at 50% 0%, #0d5a34 0%, var(--cp-deep) 55%, #03200f 100%);
  padding: 30px 26px 24px; font-family: var(--font);
  border-color: rgba(233,180,90,.55);
}
.concert-promo::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(233,180,90,.5); border-radius: 10px; pointer-events: none; }
.concert-promo .cp-kicker { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cp-gold2); margin: 0; }
.concert-promo .cp-kicker::before, .concert-promo .cp-kicker::after { content: ''; width: 34px; height: 1px; background: var(--cp-gold); }
.cp-title { font-family: 'Playfair', Georgia, serif; font-weight: 700; color: var(--cp-warm); line-height: .95; margin: 8px 0 0; font-size: 2.1rem; }
.cp-title span, .cp-title em { display: block; }
.cp-title em { font-style: italic; font-weight: 600; font-size: 1.45em; color: var(--cp-gold); padding-bottom: 2px; }
.concert-promo .cp-when { margin: 14px 0 0; font-family: 'Playfair', Georgia, serif; font-weight: 700; font-size: 1.45rem; color: var(--cp-warm); line-height: 1.1; }
.concert-promo .cp-when .cp-dot { color: var(--cp-gold); margin: 0 6px; }
.concert-promo .cp-place { margin: 6px 0 0; font-weight: 700; font-size: 1rem; color: var(--cp-warm); line-height: 1.3; }
.concert-promo .cp-place span { color: var(--cp-mint); font-weight: 600; }
.cp-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 0; }
.cp-act { margin: 0; }
.cp-arch { height: 112px; border-radius: 80px 80px 4px 4px; overflow: hidden; border: 2px solid var(--cp-gold); background: #0a4428; }
.cp-arch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-arch .cp-mel { object-position: 50% 70%; }
.cp-arch .cp-cor { object-position: 50% 0%; }
.cp-act figcaption { margin-top: 6px; font-family: 'Playfair', Georgia, serif; font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--cp-warm); }
.cp-act figcaption small { display: block; font-family: var(--font); font-weight: 600; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cp-gold); margin-bottom: 3px; }
.concert-promo .cp-tagline { margin: 14px 0 0; font-family: 'Playfair', Georgia, serif; font-style: italic; font-size: 1rem; line-height: 1.35; color: var(--cp-gold2); }
.concert-promo .cp-tickets { margin: 10px 0 0; font-size: .86rem; line-height: 1.4; color: var(--cp-warm); }
.concert-promo .cp-tickets strong { color: var(--cp-gold2); }
.cp-cta { display: inline-block; margin-top: 14px; padding: 9px 20px; border-radius: 999px; background: var(--cp-gold); color: var(--cp-deep); font-weight: 700; font-size: .9rem; transition: var(--transition); }
a.concert-promo:hover .cp-cta { background: var(--cp-gold2); }
.hero .concert-promo p { max-width: none; margin-bottom: 0; }
@media (max-width: 520px) {
  .concert-promo { padding: 24px 16px 20px; }
  .cp-title { font-size: 1.75rem; }
  .concert-promo .cp-when { font-size: 1.2rem; }
  .cp-arch { height: 92px; }
  .cp-act figcaption { font-size: 1.15rem; }
}
.concert-poster { max-width: 720px; margin: 0 auto; }
.concert-poster img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.concert-facts { list-style: none; padding: 0; margin: 0 0 18px; }
.concert-facts li { padding: 7px 0; border-bottom: 1px solid var(--line, #e5e7eb); }
.concert-tickets { background: var(--green-50); border-left: 4px solid var(--green-700); padding: 16px 20px; border-radius: var(--radius); margin: 18px 0; }
.concert-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-gold { background: #e9b45a; color: #06331f; border-color: #e9b45a; }
.btn-gold:hover { background: #d99d3c; border-color: #d99d3c; color: #06331f; transform: translateY(-1px); }
@media (max-width: 520px) { .concert-actions .btn { flex: 1 1 100%; justify-content: center; } }

/* v1.19: Despre noi – Istoricul (text + video + gallery) */
.istoric-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.istoric-text h2 { margin-top: 0; }
.istoric-video { position: sticky; top: 100px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.istoric-gallery { margin-top: 40px; }
.istoric-photo { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; }
.istoric-photo img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.istoric-photo:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .istoric-layout { grid-template-columns: 1fr; gap: 28px; } .istoric-video { position: static; } }
