/* ================================================
   ANCOP.ORG — Modern Redesign
   Mobile-first, bottom app nav, Galaxy Fold 3 ready
   ================================================ */

/* --- RESET & VARIABLES --- */
:root {
  --green-900: #0f3b2d;
  --green-800: #164d3a;
  --green-700: #1e5e45;
  --green-600: #2a7a5a;
  --green-500: #3d9b70;
  --green-400: #5bb88a;
  --green-100: #e8f5ef;
  --green-50: #f2faf6;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --white: #ffffff;
  --ink: #0a0f0d;
  --ink-soft: #4a524e;
  --ink-muted: #8a928e;
  --line: rgba(16, 19, 18, .08);
  --surface: #f7faf8;
  --card-bg: rgba(255, 255, 255, .92);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --nav-h: 60px;
  --header-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm);
  font: 600 .875rem/1 "Inter", sans-serif; border: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--green-700), var(--green-500)); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-accent { background: var(--accent); color: #1a1a1a; font-weight: 700; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--white); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.2); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-sm { padding: 8px 14px; font-size: .8rem; }
.w-full { width: 100%; }

/* --- BADGE --- */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--green-100); color: var(--green-700);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-light { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }

/* --- TOP HEADER (desktop) --- */
.top-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 248, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-img { width: 32px; height: 32px; border-radius: 8px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: .85rem; letter-spacing: .03em; }
.logo-text small { font-size: .65rem; color: var(--ink-muted); }

.desktop-nav { display: flex; gap: 4px; }
.desktop-nav a {
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.desktop-nav a:hover { background: var(--green-100); color: var(--green-700); }

.header-end { display: flex; align-items: center; gap: 8px; }

/* Language select (desktop) */
.header-end { position: relative; }
.lang-select { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer;
  font: 600 .75rem/1 "Inter", sans-serif; color: var(--ink);
  transition: background .15s, box-shadow .15s;
}
.lang-current:hover { background: var(--green-50); box-shadow: var(--shadow-sm); }
.lang-flag.fi { font-size: .9rem; line-height: 1; width: 1.2em; border-radius: 2px; }
.lang-dd-item .fi { font-size: .9rem; width: 1.2em; border-radius: 2px; flex-shrink: 0; }
.menu-lang-grid .fi { font-size: .8rem; width: 1.1em; border-radius: 2px; }
.lang-code { text-transform: uppercase; letter-spacing: .03em; }
.lang-caret { transition: transform .2s; flex-shrink: 0; }
.lang-select.is-open .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 4px;
  display: none; max-height: 400px; overflow-y: auto;
  min-width: 190px;
  scrollbar-width: thin;
}
.lang-select.is-open .lang-dropdown { display: block; }
.lang-dd-item {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 8px 10px; border: none; background: none;
  font: 500 .8rem/1.3 "Inter", sans-serif; color: var(--ink); text-align: left;
  border-radius: var(--radius-sm); cursor: pointer; transition: background .15s;
}
.lang-dd-item:hover { background: var(--green-50); }
.lang-dd-item.is-active { background: var(--green-100); color: var(--green-700); font-weight: 700; }

/* Mobile language buttons (used in menu overlay) */
.lang-btn {
  padding: 4px 8px; border: 0; border-radius: var(--radius-sm); background: transparent;
  font: 600 .7rem/1 "Inter", sans-serif; color: var(--ink-muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn.is-active { background: var(--green-900); color: var(--white); }

/* --- MAIN --- */
.main { max-width: 1200px; margin: 0 auto; padding: 0 16px 100px; }

/* --- HERO --- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px 0; min-height: 320px;
}
.hero-content {
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  padding: 24px; background: var(--card-bg); border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--green-900), var(--green-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead { color: var(--ink-soft); font-size: .9rem; line-height: 1.6; max-width: 40ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 8px; }

.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--green-900);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; max-height: 360px; }
.hero-caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  color: var(--white); font-size: .75rem;
}
.hero-caption strong { display: block; font-size: .85rem; margin-bottom: 2px; }

/* --- IMPACT STRIP --- */
.impact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 16px 0;
}
.stat {
  padding: 14px; border-radius: var(--radius); text-align: center;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-size: 1.4rem; font-weight: 900; color: var(--green-700); }
.stat-num small { font-size: .7em; }
.stat-txt { display: block; font-size: .7rem; color: var(--ink-soft); margin-top: 2px; font-weight: 600; }

/* --- SECTIONS --- */
.section { padding: 32px 0 12px; }
.section-hd { max-width: 640px; margin-bottom: 16px; }
.section-hd.compact { max-width: 520px; }
.section-hd.light, .section-hd.light h2, .section-hd.light p { color: var(--white); }
.section-hd.light p { color: rgba(255,255,255,.75); }
.section-hd h2 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; line-height: 1.15; margin: 8px 0 6px; letter-spacing: -.01em; }
.section-hd p { color: var(--ink-soft); font-size: .88rem; line-height: 1.65; }

.section-dark {
  margin: 24px -16px; padding: 32px 16px;
  background: linear-gradient(160deg, #0b1c15 0%, #122b1f 50%, #0f3b2d 100%);
  border-radius: 0;
}
.section-alt { background: var(--white); margin: 0 -16px; padding: 32px 16px; }
.section-newsletter {
  margin: 0 -16px; padding: 32px 16px;
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
}
.section-cta {
  margin: 0 -16px; padding: 40px 16px;
  background: linear-gradient(160deg, #0b1c15, #1e5e45);
}

/* --- GRIDS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* --- CARDS --- */
.card {
  padding: 18px; border-radius: var(--radius); background: var(--card-bg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: .95rem; font-weight: 700; margin: 6px 0 4px; }
.card p { font-size: .82rem; color: var(--ink-soft); line-height: 1.55; }

/* Program cards */
.card-program { display: flex; flex-direction: column; gap: 4px; }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
}

/* Story cards (horizontal scroll) */
.story-scroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-scroll::-webkit-scrollbar { display: none; }
.card-story {
  min-width: 220px; max-width: 260px; flex-shrink: 0; scroll-snap-align: start;
}
.card-img {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 6px; background: var(--surface);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

/* Scholar cards */
.card-scholar { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scholar-photo {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--green-100);
}
.scholar-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Contact cards */
.card-contact h3 { font-size: .85rem; color: var(--green-700); margin-bottom: 6px; }
.social-links { display: flex; flex-direction: column; gap: 6px; }
.social-links a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  transition: background .15s;
}
.social-links a:hover { background: var(--green-100); color: var(--green-700); }

/* --- AGW SECTION --- */
.agw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agw-info { display: flex; flex-direction: column; gap: 16px; }
.agw-detail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.agw-detail {
  padding: 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); color: var(--white);
}
.agw-label { display: block; font-size: .65rem; color: rgba(255,255,255,.5); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-bottom: 4px; }
.agw-detail strong { font-size: .85rem; }
.agw-features { display: grid; gap: 8px; }
.agw-feat {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.85);
  font-size: .82rem;
}
.agw-feat svg { flex-shrink: 0; color: var(--green-400); }
.agw-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* AGW Form */
.agw-form-wrap {
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink);
}
.agw-form-wrap h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.compact-form { display: grid; gap: 10px; }
.compact-form label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.compact-form input,
.compact-form select {
  width: 100%; height: 40px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: .85rem;
}
.compact-form input:focus,
.compact-form select:focus { outline: 2px solid var(--green-500); outline-offset: -1px; border-color: var(--green-500); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --- VIDEO --- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.video-card { border-radius: var(--radius); overflow: hidden; background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.video-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; cursor: pointer;
  background: #000;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.video-thumb:hover img { opacity: .8; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: none; border: none; cursor: pointer; transition: transform .2s;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.video-card h4 { padding: 10px 14px; font-size: .8rem; font-weight: 600; }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: none; display: block; }

/* --- GALLERY --- */
.gallery-scroll {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-item {
  min-width: 220px; flex-shrink: 0; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- SPONSORS --- */
.sponsor-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 12px; padding: 16px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
}
.sponsor-logos img {
  height: 32px; width: auto; object-fit: contain;
  filter: grayscale(.4); opacity: .7; transition: filter .2s, opacity .2s;
}
.sponsor-logos img:hover { filter: grayscale(0); opacity: 1; }
.sponsor-cta { text-align: center; margin-top: 16px; }
.sponsor-cta p { font-size: .85rem; color: var(--ink-soft); margin-bottom: 8px; }

/* --- NEWSLETTER --- */
.newsletter-inner { max-width: 560px; }
.newsletter-inner h2, .newsletter-inner p { color: var(--white); }
.newsletter-inner p { color: rgba(255,255,255,.7); }
.nl-form { margin-top: 14px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input {
  flex: 1; height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.12);
  color: var(--white); font: inherit; font-size: .88rem;
}
.nl-row input::placeholder { color: rgba(255,255,255,.5); }
.nl-row input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* --- CTA / DONATE --- */
.cta-inner { max-width: 600px; text-align: center; margin: 0 auto; }
.cta-inner h2, .cta-inner p, .cta-inner .badge { color: var(--white); }
.cta-inner p { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.bank-info { text-align: center; }
.bank-info > p { color: rgba(255,255,255,.5); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.bank-cards { display: flex; justify-content: center; gap: 10px; }
.bank-card {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); color: var(--white); text-align: left;
  min-width: 160px;
}
.bank-card strong { display: block; font-size: .75rem; color: var(--accent); margin-bottom: 2px; }
.bank-card span { display: block; font-size: 1rem; font-weight: 700; letter-spacing: .05em; }
.bank-card small { color: rgba(255,255,255,.5); font-size: .7rem; }

/* --- FOOTER --- */
.site-footer {
  padding: 24px 0; border-top: 1px solid var(--line);
  background: var(--green-900); color: var(--white);
  margin: 0 -16px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-brand strong { font-size: .85rem; }
.footer-brand small { display: block; font-size: .65rem; color: rgba(255,255,255,.5); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 12px; }
.footer-links a { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.6); transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-copy small { font-size: .7rem; color: rgba(255,255,255,.35); }

/* --- MAP & PRESENCE --- */
#ancop-map {
  height: 340px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  z-index: 1;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line);
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.flags-section { margin-top: 16px; }
.flags-section h3 { font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.flags-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.flag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: .72rem; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap; transition: background .15s;
}
.flag-chip:hover { background: var(--green-50); }
.flag-chip .fi { font-size: .8rem; width: 1.1em; border-radius: 2px; flex-shrink: 0; }

/* --- STAT ICON --- */
.stat-icon { font-size: 1.2rem; display: block; margin-bottom: 2px; }

/* --- FAQ --- */
.faq-list { display: grid; gap: 8px; max-width: 720px; }
.faq-item {
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  font-size: .88rem; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  color: var(--ink); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.1rem; font-weight: 700; color: var(--green-600);
  flex-shrink: 0; margin-left: 12px; transition: transform .2s;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin-top: 10px; font-size: .82rem; color: var(--ink-soft);
  line-height: 1.65; padding-right: 24px;
}

/* --- NEWS GRID --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.news-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--surface); }
.news-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.news-card-source { font-size: .65rem; font-weight: 700; color: var(--green-600); text-transform: uppercase; letter-spacing: .04em; }
.news-card-title { font-size: .88rem; font-weight: 700; line-height: 1.3; margin: 4px 0 6px; }
.news-card-summary { font-size: .78rem; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.news-card-date { font-size: .68rem; color: var(--ink-muted); margin-top: 8px; }
.news-loading { color: var(--ink-muted); font-size: .85rem; }
@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .news-card-body { padding: 10px; } }

/* --- FORM STATUS --- */
.form-status { min-height: 1.2em; font-size: .8rem; font-weight: 600; }
.form-status[data-state="loading"] { color: var(--green-500); }
.form-status[data-state="success"] { color: var(--green-700); }
.form-status[data-state="error"] { color: #dc2626; }

/* ================================================
   BOTTOM NAV (mobile only)
   ================================================ */
.bottom-nav {
  display: none; /* shown via media query */
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.06);
  align-items: center; justify-content: space-around;
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; background: none; border: none; cursor: pointer;
  color: var(--ink-muted); font-size: .6rem; font-weight: 600;
  transition: color .15s; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}
.bnav-item.is-active { color: var(--green-700); }
.bnav-item:active { transform: scale(0.92); }
.bnav-item svg { width: 20px; height: 20px; }

/* Hamburger → X animation */
#menu-toggle svg line { transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
#menu-toggle.is-open svg line:nth-child(1) { transform: rotate(45deg) translate(2px, 2px); }
#menu-toggle.is-open svg line:nth-child(2) { opacity: 0; }
#menu-toggle.is-open svg line:nth-child(3) { transform: rotate(-45deg) translate(2px, -2px); }

.bnav-center { position: relative; }
.bnav-fab {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: var(--white); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(61,155,112,.3);
  margin-top: -16px;
}

/* --- MENU OVERLAY --- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.4); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }

.menu-sheet {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--white); border-radius: 20px 20px 0 0;
  padding: 8px 20px calc(20px + var(--safe-bottom));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,.24,1);
  max-height: 70vh; overflow-y: auto;
}
.menu-overlay.is-open .menu-sheet { transform: translateY(0); }

.menu-handle {
  width: 36px; height: 4px; border-radius: 4px;
  background: var(--line); margin: 4px auto 16px;
}
.menu-nav { display: flex; flex-direction: column; gap: 2px; }
.menu-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink);
  transition: background .15s, transform .1s;
}
.menu-nav a svg { flex-shrink: 0; color: var(--green-600); }
.menu-nav a:hover, .menu-nav a:active { background: var(--green-50); }
.menu-nav a:active { transform: scale(0.98); }

.menu-lang-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.menu-lang-grid .lang-btn {
  padding: 8px 6px; border-radius: var(--radius-sm);
  font-size: .72rem; text-align: center; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface);
}
.menu-lang-grid .lang-btn:hover { background: var(--green-50); }
.menu-lang-grid .lang-btn.is-active {
  background: var(--green-900); color: var(--white); border-color: var(--green-900);
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet & below: show bottom nav, hide desktop nav */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .header-end .btn { display: none; }
  .bottom-nav { display: flex; }
  .main { padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); }
  .site-footer { padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px); }

  .hero { grid-template-columns: 1fr; }
  .hero-media img { min-height: 160px; max-height: 240px; }
  #ancop-map { height: 260px; }
  .impact-strip { grid-template-columns: repeat(3, 1fr); }
  .impact-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .agw-grid { grid-template-columns: 1fr; }
  .agw-detail-row { grid-template-columns: 1fr 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .bank-cards { flex-direction: column; align-items: center; }
}

/* Small phones */
@media (max-width: 480px) {
  :root { --header-h: 48px; }
  .main { padding: 0 12px 100px; }
  .section { padding: 28px 0 12px; }
  .section-dark, .section-alt, .section-newsletter, .section-cta, .site-footer { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }

  .hero-content { padding: 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-lead { font-size: .82rem; }

  .stat { padding: 10px 6px; }
  .stat-num { font-size: 1.1rem; }
  .stat-txt { font-size: .6rem; }
  .stat-icon { font-size: 1rem; }
  .impact-strip { grid-template-columns: repeat(3, 1fr); }

  #ancop-map { height: 220px; }
  .flag-chip { font-size: .65rem; padding: 3px 7px; }
  .map-legend { gap: 6px; padding: 8px 10px; }
  .legend-item { font-size: .65rem; }

  .card { padding: 14px; }
  .section-hd h2 { font-size: 1.15rem; }

  .agw-detail-row { grid-template-columns: 1fr; }
  .agw-form-wrap { padding: 16px; }
  .form-row-2 { grid-template-columns: 1fr; }

  .card-story { min-width: 220px; }
  .gallery-item { min-width: 220px; }

  .sponsor-logos img { height: 32px; }
  .nl-row { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: stretch; }
}

/* Galaxy Fold 3 inner screen (280px) */
@media (max-width: 300px) {
  :root { --nav-h: 52px; }
  .main { padding: 0 8px 90px; }
  .section { padding: 20px 0 8px; }
  .section-dark, .section-alt, .section-newsletter, .section-cta, .site-footer { margin: 0 -8px; padding-left: 8px; padding-right: 8px; }

  .top-header-inner { padding: 0 8px; }
  .logo-text small { display: none; }
  .logo-text strong { font-size: .75rem; }
  .lang-toggle { padding: 2px; }
  .lang-btn { padding: 3px 6px; font-size: .6rem; }

  .hero { gap: 8px; }
  .hero-content { padding: 12px; gap: 8px; border-radius: var(--radius); }
  .hero h1 { font-size: 1.2rem; }
  .hero-lead { font-size: .75rem; }
  .btn { padding: 8px 12px; font-size: .75rem; }
  .hero-media { border-radius: var(--radius); }
  .hero-caption { padding: 6px 8px; font-size: .65rem; bottom: 6px; left: 6px; right: 6px; }
  .hero-caption strong { font-size: .75rem; }

  .impact-strip { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .stat { padding: 6px 3px; border-radius: var(--radius-sm); }
  .stat-num { font-size: .8rem; }
  .stat-txt { font-size: .5rem; }
  .stat-icon { font-size: .85rem; }
  #ancop-map { height: 180px; }
  .flags-grid { gap: 4px; }
  .flag-chip { font-size: .6rem; padding: 2px 6px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 8px; }
  .section-hd h2 { font-size: 1rem; }
  .section-hd p { font-size: .78rem; }
  .badge { font-size: .6rem; padding: 3px 8px; }

  .card { padding: 10px; border-radius: var(--radius-sm); }
  .card h3 { font-size: .82rem; }
  .card p { font-size: .72rem; }
  .card-icon { width: 32px; height: 32px; border-radius: 8px; }
  .card-icon svg { width: 18px; height: 18px; }

  .agw-detail { padding: 8px; }
  .agw-label { font-size: .55rem; }
  .agw-detail strong { font-size: .75rem; }
  .agw-feat { padding: 6px 8px; font-size: .72rem; }
  .agw-form-wrap { padding: 10px; border-radius: var(--radius); }
  .agw-form-wrap h3 { font-size: .85rem; }
  .compact-form label { font-size: .7rem; }
  .compact-form input, .compact-form select { height: 36px; font-size: .78rem; padding: 0 8px; }

  .card-story { min-width: 180px; }
  .gallery-item { min-width: 180px; }
  .card-img { border-radius: 8px; }

  .video-card h4 { padding: 8px 10px; font-size: .72rem; }
  .scholar-photo { width: 60px; height: 60px; }

  .sponsor-logos { gap: 8px; padding: 10px; }
  .sponsor-logos img { height: 24px; }

  .bank-card { padding: 8px 10px; min-width: auto; }
  .bank-card span { font-size: .85rem; }

  .bnav-item { font-size: .5rem; }
  .bnav-item svg { width: 18px; height: 18px; }
  .bnav-fab { width: 38px; height: 38px; margin-top: -12px; }
  .bnav-fab svg { width: 18px; height: 18px; }

  .menu-sheet { padding: 8px 12px calc(12px + var(--safe-bottom)); }
  .menu-nav a { padding: 10px 10px; font-size: .82rem; }
  .menu-lang .lang-btn { font-size: .78rem; padding: 8px; }

  .footer-brand strong { font-size: .75rem; }
  .footer-links a { font-size: .7rem; }
  .footer-copy small { font-size: .6rem; }
}

/* RTL support for Arabic */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .hero-btns, [dir="rtl"] .agw-btns, [dir="rtl"] .cta-btns { justify-content: flex-end; }
[dir="rtl"] .social-links a { flex-direction: row-reverse; }
[dir="rtl"] .faq-item summary { flex-direction: row-reverse; }
[dir="rtl"] .faq-item summary::after { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .faq-item p { padding-right: 0; padding-left: 24px; }
[dir="rtl"] .agw-feat { flex-direction: row-reverse; }
[dir="rtl"] .legend-item { flex-direction: row-reverse; }

/* Large screens */
@media (min-width: 769px) {
  .bottom-nav { display: none; }
  .menu-overlay { display: none; }
}
