/* =========================================================
   USHAF HOMEPAGE — COMPLETE REDESIGN (v3, August 2026)
   Self-contained stylesheet for index.html only.
   Design language: international civic-organisation standard —
   dark editorial hero, evidence-led stats, mandate architecture,
   campaign-gold accents from the OJÚTÓLÉ VERIFIER identity.
========================================================= */

/* ---------- TOKENS ---------- */
:root {
  --ink: #101812;
  --body: #3d4a40;
  --muted: #68766b;
  --green: #1f7a4d;
  --deep: #12352f;
  --black-green: #0b0f0c;
  --gold: #f2c400;
  --gold-dark: #c9a227;
  --cream: #f7f8f3;
  --card: #ffffff;
  --line: #e4e8e0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 15, 12, 0.08);
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  line-height: 1.2;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER (shared partial) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header .logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.site-header .logo { height: 46px; width: auto; }
.site-header .logo-fullname {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--deep);
  max-width: 200px;
  line-height: 1.3;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover {
  color: var(--green);
  border-bottom-color: var(--gold);
}
.header-cta .btn-header {
  background: var(--gold);
  color: var(--black-green);
  padding: 11px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.header-cta .btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(242, 196, 0, 0.35);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--black-green);
  box-shadow: 0 8px 20px rgba(242, 196, 0, 0.3);
}
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-green {
  background: var(--green);
  color: #ffffff;
}
.btn-green:hover { background: #17603c; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(11,15,12,0.94) 30%, rgba(18,53,47,0.82) 65%, rgba(31,122,77,0.55)),
    url("../images/oj-situation-room-team.jpeg") center/cover no-repeat;
  background-color: var(--black-green);
  color: #ffffff;
  padding: 120px 0 0;
}
.hero-inner { padding-bottom: 90px; max-width: 780px; }
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero .kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 70px;
}
.hero-stats .stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 30px 0 34px;
}
.hero-stats .stat .n {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stats .stat .l {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  line-height: 1.45;
}

/* ---------- SECTION SCAFFOLD ---------- */
.section { padding: 96px 0; }
.section.cream { background: var(--cream); }
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }

/* ---------- MANDATES ---------- */
.mandate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.mandate {
  border-radius: var(--radius);
  padding: 42px 38px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mandate.m1 { background: linear-gradient(150deg, var(--deep), var(--black-green)); }
.mandate.m2 { background: linear-gradient(150deg, #1f7a4d, #0f4a2c); }
.mandate::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gold);
}
.mandate .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.mandate h3 {
  color: #ffffff;
  font-size: 1.55rem;
  margin-bottom: 14px;
}
.mandate p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }
.mandate ul {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}
.mandate li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  padding: 5px 0 5px 24px;
  position: relative;
}
.mandate li::before {
  content: "▸";
  color: var(--gold);
  position: absolute;
  left: 4px;
}

/* ---------- WHAT WE DO ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.areas-note {
  max-width: 820px;
  margin: 34px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: .98rem;
}
.areas-note a { color: var(--green); font-weight: 600; text-decoration: none; }
.areas-note a:hover { text-decoration: underline; }
.area {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.area:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.area .m-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.area .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.area h3 { font-size: 1.2rem; margin-bottom: 10px; }
.area p { font-size: 0.95rem; flex: 1; }
.area a.more {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--green);
}
.area a.more:hover { text-decoration: underline; }

/* ---------- OJÚTÓLÉ FEATURE ---------- */
.oj-feature {
  background: linear-gradient(135deg, var(--black-green), var(--deep) 75%, #1a4a38);
  color: #ffffff;
}
.oj-feature .split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.oj-feature .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.oj-feature h2 { color: #ffffff; font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.oj-feature p { color: rgba(255, 255, 255, 0.82); margin-bottom: 16px; }
.oj-feature .mini-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin: 26px 0 32px;
}
.oj-feature .mini-stats .n {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
}
.oj-feature .mini-stats .l { font-size: 0.82rem; color: rgba(255,255,255,0.68); }
.oj-feature .flyer-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.oj-feature .flyer-card img { width: 100%; height: auto; }

/* ---------- IMPACT STRIP ---------- */
.impact-strip { background: var(--cream); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.impact-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.impact-item .n {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
}
.impact-item .l { font-weight: 700; color: var(--ink); margin-top: 4px; }
.impact-item small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 6px;
  line-height: 1.5;
}

/* ---------- TEAM ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.team-card {
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  filter: saturate(0.92);
}
.team-card h3 { font-size: 0.98rem; margin-bottom: 2px; }
.team-card span { font-size: 0.8rem; color: var(--muted); }

/* ---------- PARTNERS ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  align-items: center;
}
.partners-grid img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter .2s, opacity .2s;
}
.partners-grid img:hover { filter: none; opacity: 1; }

/* ---------- UPDATES ---------- */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .updates-grid { grid-template-columns: 1fr 1fr; }
}
.update-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  background: #ffffff;
}
.update-card .u-meta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.update-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.update-card p { font-size: 0.95rem; margin-bottom: 18px; }
.update-card a { font-weight: 700; text-decoration: none; }
.update-card a:hover { text-decoration: underline; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--green), #0f4a2c);
  color: #ffffff;
  text-align: center;
}
.final-cta h2 { color: #ffffff; font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.final-cta p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.05rem;
}
.final-cta .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER (shared partial) ---------- */
footer {
  background: var(--black-green);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 24px 30px;
}
footer .footer-content { max-width: 1160px; margin: 0 auto; }
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}
footer .footer-grid h4 {
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 16px;
}
footer .footer-grid p,
footer .footer-grid a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.75;
}
footer .footer-grid a { display: block; text-decoration: none; margin-bottom: 7px; }
footer .footer-grid a:hover { color: var(--gold); }
footer .footer-grid a[style*="inline"] { display: inline; }
footer .social-links { margin-top: 12px; }
footer .social-links a {
  display: inline-block;
  margin: 0 12px 0 0;
  color: rgba(255, 255, 255, 0.75);
}
footer .social-links a:hover { color: var(--gold); }
footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .oj-feature .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .hero { padding: 80px 0 0; }
  .hero-inner { padding-bottom: 60px; }
  .hero-stats .stat-row { grid-template-columns: repeat(2, 1fr); }
  .mandate-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .updates-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-header .container { justify-content: center; }
  .main-nav ul { gap: 16px; justify-content: center; }
}
@media (max-width: 460px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: 1fr; }
}


/* ---------- MOBILE NAV TOGGLE ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line, #e4e8e0);
  border-radius: 8px;
  font-size: 1.3rem;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink, #101812);
}
@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: block; order: 2; }
  .site-header .logo-container { order: 1; }
  .header-cta { order: 3; margin-left: auto; }
  .main-nav { display: none; order: 4; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav.open ul {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 6px;
  }
  .main-nav.open a {
    display: block;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line, #e4e8e0);
  }
}


/* ---------- v3.1: extended stats & capacity ---------- */
.hero-stats .stat-row { padding: 26px 0 30px; }
.hero-stats .stat-row .stat .n { font-size: 2rem; }
@media (max-width: 1100px) {
  .hero-stats .stat-row { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
}
@media (max-width: 760px) {
  .hero-stats .stat-row { grid-template-columns: repeat(2, 1fr); }
}

.capacity-note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.capacity-note strong { color: var(--ink); }

/* ---------- PHOTO SLIDER (v3.3) ---------- */
.gallery-section { padding-bottom: 70px; }
.gslider {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(11, 15, 12, 0.18);
  background: var(--black-green);
}
.gslide { display: none; position: relative; }
.gslide.active { display: block; animation: gfade .5s ease; }
@keyframes gfade { from { opacity: .35; } to { opacity: 1; } }
.gslide img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
}
.gcap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 28px 18px;
  background: linear-gradient(transparent, rgba(11, 15, 12, 0.88));
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.5;
}
.gbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 15, 12, 0.55);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .18s;
  z-index: 3;
}
.gbtn:hover { background: var(--green); }
.gbtn.prev { left: 16px; }
.gbtn.next { right: 16px; }
.gdots {
  position: absolute;
  bottom: 14px; right: 20px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.gdot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}
.gdot.active { background: var(--gold); }
@media (max-width: 760px) {
  .gslide img { height: 320px; }
  .gcap { font-size: 0.82rem; padding: 32px 18px 14px; }
}

/* ---------- NEWS & UPDATES (v3.4) ---------- */
.news-hero {
  background:
    linear-gradient(100deg, rgba(11,15,12,0.92) 25%, rgba(18,53,47,0.8) 65%, rgba(31,122,77,0.5)),
    url("../images/oj-team-briefing.jpeg") center/cover no-repeat;
  background-color: var(--black-green);
  color: #fff;
  padding: 110px 0 80px;
}
.news-hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.news-hero h1 { font-size: 3rem; margin-bottom: 16px; color: #ffffff; }
.news-hero .lead { max-width: 640px; color: #d9e2da; font-size: 1.08rem; line-height: 1.7; }

.featured-update {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11,15,12,0.08);
}
.featured-update .fu-body { padding: 44px 40px; }
.featured-update h2 { font-size: 1.75rem; margin: 12px 0 14px; }
.featured-update p { color: var(--body); line-height: 1.75; margin-bottom: 22px; }
.featured-update .fu-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.news-card h3 { font-size: 1.2rem; margin: 10px 0 10px; }
.news-card p { color: var(--body); font-size: 0.96rem; line-height: 1.7; flex: 1; }
.n-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.n-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-field { background: rgba(31,122,77,0.12); color: var(--green); }
.tag-announcement { background: rgba(242,196,0,0.18); color: #8a6d00; }
.tag-programme { background: rgba(18,53,47,0.1); color: var(--deep); }
.n-date { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.n-more { color: var(--green); font-weight: 600; text-decoration: none; margin-top: 14px; }
.n-more:hover { text-decoration: underline; }

.newsletter-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(120deg, var(--deep), var(--black-green));
  border-radius: var(--radius);
  padding: 50px 46px;
  color: #fff;
}
.newsletter-band h2 { margin: 8px 0 14px; color: #ffffff; }
.newsletter-band p { color: #cfd8cf; line-height: 1.75; }
.nl-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.nl-row { display: flex; gap: 10px; }
.nl-row input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}
.nl-row input::placeholder { color: #9fb0a2; }
.nl-form small { display: block; margin-top: 10px; color: #9fb0a2; }

@media (max-width: 900px) {
  .featured-update, .newsletter-band { grid-template-columns: 1fr; }
  .featured-update .fu-photo { order: -1; }
  .featured-update .fu-photo img { height: 240px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-hero h1 { font-size: 2.2rem; }
  .newsletter-band { padding: 36px 26px; }
}
