/*
Theme Name: YADI Theme
Theme URI: https://example.org
Author: Youth Alliance for a Democratic Iran
Description: Custom multilingual WordPress theme for Youth Alliance for a Democratic Iran.
Version: 1.0.0
Text Domain: yadi
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
*/

:root {
  --navy: #0B1F3A;
  --red: #D62828;
  --white: #FFFFFF;
  --light: #F5F7FA;
  --gold: #D4A017;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(11,31,58,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
body.rtl { direction: rtl; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left:16px; top:16px; width:auto; height:auto; background:#fff; padding:8px 12px; z-index:9999; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:76px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; color:var(--navy); }
.logo-mark { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; background:linear-gradient(135deg,var(--navy),#17406e); color:#fff; box-shadow:var(--shadow); }
.logo-mark svg { width:28px; height:28px; }
.brand-text small { display:block; color:var(--muted); font-size:12px; font-weight:600; margin-top:-3px; }
.nav-wrap { display:flex; align-items:center; gap:18px; }
.primary-menu { display:flex; align-items:center; gap:8px; list-style:none; margin:0; padding:0; }
.primary-menu a { padding:10px 12px; border-radius:999px; color:var(--navy); font-weight:650; font-size:15px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background:var(--light); color:var(--red); }
.header-actions { display:flex; align-items:center; gap:10px; }
.lang-switcher { display:flex; gap:6px; align-items:center; font-size:13px; }
.lang-switcher a { padding:6px 8px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:#fff; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; border-radius:999px; padding:12px 18px; font-weight:800; cursor:pointer; transition:.2s ease; }
.btn-primary { background:var(--red); color:#fff; box-shadow:0 10px 25px rgba(214,40,40,.24); }
.btn-primary:hover { transform:translateY(-1px); background:#b91f1f; }
.btn-secondary { background:#fff; color:var(--navy); border:1px solid var(--border); }
.btn-secondary:hover { border-color:var(--navy); }
.btn-dark { background:var(--navy); color:#fff; }
.menu-toggle { display:none; width:42px; height:42px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.menu-toggle span { display:block; width:20px; height:2px; background:var(--navy); margin:4px auto; }

.hero { position:relative; overflow:hidden; background:radial-gradient(circle at top left, rgba(214,40,40,.25), transparent 28%), linear-gradient(135deg,#071729 0%, #0B1F3A 52%, #123e69 100%); color:#fff; padding:92px 0 76px; }
.hero::after { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at center, black, transparent 78%); }
.hero-inner { position:relative; z-index:1; display:grid; grid-template-columns:1.1fr .9fr; gap:42px; align-items:center; }
.kicker { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,.2); background:rgba(255,255,255,.08); padding:8px 12px; border-radius:999px; color:#f8fafc; font-weight:700; margin-bottom:22px; }
.kicker::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--gold); }
.hero h1 { margin:0; font-size:clamp(36px, 4.2vw, 60px); line-height:1.1; letter-spacing:-.03em; white-space:nowrap; }
.hero p { font-size:clamp(17px, 2vw, 21px); color:#dbeafe; max-width:680px; margin:22px 0 30px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }
.hero-card { background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); border-radius:28px; padding:28px; backdrop-filter: blur(12px); box-shadow:0 20px 70px rgba(0,0,0,.2); }
.hero-card h3 { margin-top:0; font-size:24px; }
.hero-card-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.stat-box { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.16); border-radius:18px; padding:18px; }
.stat-box strong { display:block; font-size:28px; color:#fff; }
.stat-box span { color:#cbd5e1; font-size:14px; }

.section { padding:78px 0; }
.section-light { background:var(--light); }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:32px; }
.section-title { margin:0; font-size:clamp(28px,3vw,42px); color:var(--navy); letter-spacing:-.02em; }
.section-subtitle { color:var(--muted); max-width:720px; margin:12px 0 0; }
.grid { display:grid; gap:22px; }
.grid-3 { grid-template-columns:repeat(3,1fr); }
.grid-4 { grid-template-columns:repeat(4,1fr); }
.card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:26px; box-shadow:0 8px 30px rgba(15,23,42,.04); }
.card:hover { box-shadow:var(--shadow); transform:translateY(-2px); transition:.2s ease; }
.card-icon { width:46px; height:46px; border-radius:14px; background:rgba(214,40,40,.1); color:var(--red); display:grid; place-items:center; font-weight:900; margin-bottom:16px; }
.card h3 { margin:0 0 10px; color:var(--navy); }
.card p { margin:0; color:var(--muted); }
.country-card { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.country-card span { color:var(--muted); font-size:14px; }
.activity-card { overflow:hidden; padding:0; }
.activity-media { aspect-ratio: 16/10; background:linear-gradient(135deg,#dbeafe,#fee2e2); display:grid; place-items:center; color:var(--navy); font-weight:800; }
.activity-body { padding:22px; }
.meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.badge { display:inline-flex; align-items:center; border-radius:999px; padding:5px 10px; background:var(--light); color:var(--muted); font-size:12px; font-weight:800; }
.badge-red { background:rgba(214,40,40,.1); color:var(--red); }
.cta-band { background:linear-gradient(135deg,var(--navy),#123e69); color:#fff; border-radius:28px; padding:42px; display:grid; grid-template-columns:1.2fr .8fr; gap:24px; align-items:center; box-shadow:var(--shadow); }
.cta-band h2 { margin:0 0 12px; font-size:34px; }
.cta-band p { margin:0; color:#dbeafe; }
.contact-methods { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.contact-method { display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--border); border-radius:18px; padding:18px; }
.contact-method strong { color:var(--navy); display:block; }
.contact-method span { color:var(--muted); font-size:14px; }

.form-card { background:#fff; border:1px solid var(--border); border-radius:24px; padding:28px; box-shadow:var(--shadow); }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.form-row { display:flex; flex-direction:column; gap:7px; }
.form-row.full { grid-column:1/-1; }
label { font-weight:800; color:var(--navy); font-size:14px; }
input, select, textarea { width:100%; border:1px solid var(--border); border-radius:14px; padding:13px 14px; font:inherit; background:#fff; color:var(--text); }
textarea { min-height:130px; resize:vertical; }
input:focus, select:focus, textarea:focus { outline:3px solid rgba(214,40,40,.14); border-color:var(--red); }
.notice { border-radius:14px; padding:14px 16px; margin:0 0 18px; font-weight:700; }
.notice-success { background:#ecfdf5; color:#065f46; }
.notice-error { background:#fef2f2; color:#991b1b; }
.notice-info { background:#eff6ff; color:#1e3a8a; }

.page-hero { background:linear-gradient(135deg,var(--navy),#123e69); color:#fff; padding:70px 0; }
.page-hero h1 { margin:0; font-size:clamp(32px,4vw,54px); }
.page-hero p { color:#dbeafe; max-width:780px; font-size:19px; }
.content-area { padding:70px 0; }
.prose { max-width:860px; margin:0 auto; }
.prose h2 { color:var(--navy); margin-top:36px; }
.prose p { color:#374151; }

.site-footer { background:#071729; color:#cbd5e1; padding:56px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:30px; }
.footer-grid h4 { color:#fff; margin:0 0 14px; }
.footer-grid ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:38px; padding-top:22px; color:#94a3b8; font-size:14px; display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }

.activity-filters { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:28px; }
.activity-filters select { max-width:220px; }

@media (max-width: 920px) {
  .menu-toggle { display:block; }
  .nav-wrap { position:absolute; top:76px; left:0; right:0; background:#fff; border-bottom:1px solid var(--border); padding:16px; display:none; flex-direction:column; align-items:stretch; }
  .nav-wrap.is-open { display:flex; }
  .primary-menu { flex-direction:column; align-items:stretch; }
  .primary-menu a { display:block; }
  .header-actions { flex-wrap:wrap; }
  .hero-inner, .cta-band { grid-template-columns:1fr; }
  .grid-3, .grid-4, .contact-methods, .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width:min(100% - 22px, 1180px); }
  .hero { padding:62px 0; }
  .grid-3, .grid-4, .contact-methods, .footer-grid, .form-grid { grid-template-columns:1fr; }
  .section { padding:54px 0; }
  .cta-band { padding:26px; }
  .hero-card-grid { grid-template-columns:1fr; }
  .brand-text small { display:none; }
}
