/*
Theme Name: ASNTIC Official Bilingual Website
Theme URI: https://www.asntic.org/
Author: ASNTIC
Description: The official bilingual French-English website for ASNTIC, focused on digital inclusion, women and girls in ICT, rural connectivity, and international engagement.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: asntic-official
*/

:root {
  --navy-950: #06152e;
  --navy-900: #0a2148;
  --navy-800: #123365;
  --blue-600: #1667d9;
  --blue-500: #2681f6;
  --teal-500: #15b7a7;
  --teal-100: #dcf8f4;
  --gold-400: #f4c95d;
  --ink: #15243b;
  --muted: #60708a;
  --line: #dce5f0;
  --surface: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(8, 34, 76, .12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
section { scroll-margin-top: 90px; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  background: var(--white);
  color: var(--navy-950);
  display: block;
  font-weight: 800;
  height: auto;
  left: 18px;
  padding: 14px 18px;
  top: 18px;
  width: auto;
  z-index: 10000;
}

.site-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-compact { padding: 74px 0; }
.section-soft { background: var(--surface); }
.section-dark { color: var(--white); background: var(--navy-950); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--blue-600);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 3px; background: var(--teal-500); }
.section-dark .eyebrow, .hero .eyebrow { color: #a8d3ff; }
.section-title {
  max-width: 820px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.section-dark .section-title { color: var(--white); }
.section-lede { max-width: 770px; margin: 24px 0 0; color: var(--muted); font-size: 1.12rem; }
.section-dark .section-lede { color: #c5d4ea; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 54px; }
.section-heading-row .section-lede { max-width: 430px; margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(6, 21, 46, .94);
  backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; min-width: 182px; }
.brand img { width: 50px; height: 50px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-size: 1.35rem; font-weight: 900; letter-spacing: .03em; }
.brand-tag { margin-top: 6px; color: #9db4d4; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { position: relative; color: #dce8f8; font-size: .88rem; font-weight: 720; text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--teal-500); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switcher { display: flex; padding: 4px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; }
.language-switcher button { border: 0; border-radius: 999px; padding: 7px 10px; color: #c8d7eb; background: transparent; cursor: pointer; font-size: .76rem; font-weight: 850; }
.language-switcher button[aria-pressed="true"] { color: var(--navy-950); background: var(--white); }
.menu-toggle { display: none; border: 0; color: var(--white); background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 82px);
  color: var(--white);
  background:
    radial-gradient(circle at 80% 15%, rgba(38,129,246,.28), transparent 32%),
    radial-gradient(circle at 18% 95%, rgba(21,183,167,.18), transparent 36%),
    var(--navy-950);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero-inner { position: relative; z-index: 1; min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; padding: 84px 0 96px; }
.hero-copy, .hero-art, .mission-grid > *, .spotlight > *, .contact-grid > * { min-width: 0; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3rem, 6.5vw, 6.25rem); line-height: .92; letter-spacing: -.065em; }
.hero h1 .accent { color: #67e1d5; }
.hero-lede { max-width: 680px; margin: 27px 0 0; color: #cbd9eb; font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border: 1px solid transparent; border-radius: 12px; color: var(--white); background: var(--blue-600); font-size: .92rem; font-weight: 820; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #0f57bd; }
.button-secondary { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.button-secondary:hover, .button-secondary:focus-visible { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); }
.button-light { color: var(--navy-950); background: var(--white); }
.button-light:hover, .button-light:focus-visible { background: #e9f3ff; }
.button svg { width: 18px; height: 18px; }
.hero-art { position: relative; }
.hero-art > img { width: 100%; filter: drop-shadow(0 34px 70px rgba(0,0,0,.25)); }
.hero-status {
  position: absolute;
  right: 0;
  bottom: 8%;
  width: min(320px, 76%);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(7, 31, 68, .86);
  box-shadow: 0 22px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
}
.status-kicker { display: block; color: #84dcd4; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.status-title { display: block; margin-top: 7px; color: var(--white); font-size: 1rem; font-weight: 850; line-height: 1.3; }
.status-meta { display: block; margin-top: 5px; color: #afc3df; font-size: .78rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.14); }
.hero-stat { padding: 18px; background: rgba(5,24,53,.88); }
.hero-stat strong { display: block; color: var(--white); font-size: 1.2rem; }
.hero-stat span { display: block; margin-top: 3px; color: #9eb3d0; font-size: .72rem; line-height: 1.35; }

.mission-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: start; }
.mission-quote { margin: 0; color: var(--navy-950); font-size: clamp(1.55rem, 3vw, 2.55rem); font-weight: 780; line-height: 1.25; letter-spacing: -.035em; }
.mission-copy { color: var(--muted); }
.mission-copy p:first-child { margin-top: 0; }
.values-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.value-card { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.value-card strong { display: block; margin-bottom: 7px; color: var(--navy-950); font-size: 1rem; }
.value-card span { color: var(--muted); font-size: .86rem; }
.value-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 19px; border-radius: 12px; color: var(--blue-600); background: #e8f1ff; }
.value-icon svg { width: 22px; height: 22px; }

.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.program-card { position: relative; overflow: hidden; min-height: 320px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program-card::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; background: rgba(38,129,246,.08); }
.program-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; color: var(--white); background: var(--navy-900); font-size: .77rem; font-weight: 900; }
.program-card:nth-child(2) .program-number { background: var(--teal-500); }
.program-card:nth-child(3) .program-number { background: var(--blue-600); }
.program-card:nth-child(4) .program-number { color: var(--navy-950); background: var(--gold-400); }
.program-card h3 { max-width: 440px; margin: 26px 0 13px; color: var(--navy-950); font-size: 1.55rem; line-height: 1.15; letter-spacing: -.025em; }
.program-card p { max-width: 500px; margin: 0; color: var(--muted); font-size: .96rem; }
.program-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.program-tags span { padding: 6px 10px; border-radius: 999px; color: var(--navy-800); background: var(--surface); font-size: .7rem; font-weight: 780; }

.verification-strip { position: relative; z-index: 2; margin-top: -40px; }
.verification-card { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 30px; border: 1px solid rgba(255,255,255,.45); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.verification-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; color: var(--white); background: var(--blue-600); }
.verification-mark svg { width: 30px; height: 30px; }
.verification-copy strong { display: block; color: var(--navy-950); font-size: 1.08rem; }
.verification-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600); font-size: .86rem; font-weight: 820; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.timeline { position: relative; display: grid; gap: 20px; max-width: 980px; margin-left: auto; }
.timeline::before { content: ""; position: absolute; left: 94px; top: 34px; bottom: 34px; width: 2px; background: linear-gradient(var(--teal-500), var(--blue-500)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 40px; }
.timeline-year { padding-top: 28px; color: #8bded5; font-weight: 900; text-align: right; }
.timeline-dot { position: absolute; left: 86px; top: 34px; width: 18px; height: 18px; border: 4px solid var(--navy-950); border-radius: 50%; background: var(--teal-500); box-shadow: 0 0 0 2px rgba(21,183,167,.55); }
.timeline-card { padding: 30px 34px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: rgba(255,255,255,.055); }
.timeline-card h3 { margin: 0 0 10px; color: var(--white); font-size: 1.27rem; line-height: 1.25; }
.timeline-card p { margin: 0; color: #bfd0e6; font-size: .93rem; }
.timeline-card .event-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: #8ea7c7; font-size: .73rem; font-weight: 750; }
.timeline-card .event-meta span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; }

.spotlight { display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--white); box-shadow: var(--shadow); }
.spotlight-visual { position: relative; min-height: 570px; padding: 46px; color: var(--white); background: linear-gradient(150deg, var(--blue-600), var(--navy-950)); }
.spotlight-visual::after { content: ""; position: absolute; inset: 0; opacity: .28; background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,.8) 1px, transparent 2px); background-size: 31px 31px; }
.spotlight-visual > * { position: relative; z-index: 1; }
.spotlight-date { display: inline-flex; padding: 8px 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #dbeaff; font-size: .76rem; font-weight: 800; }
.spotlight-visual h3 { margin: 130px 0 16px; font-size: clamp(2.3rem, 4.5vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
.spotlight-visual p { max-width: 430px; margin: 0; color: #c9dcf5; }
.spotlight-content { padding: 56px; }
.spotlight-content h4 { margin: 0 0 18px; color: var(--navy-950); font-size: 1.65rem; letter-spacing: -.025em; }
.spotlight-content > p { color: var(--muted); }
.outcome-list { display: grid; gap: 15px; margin: 30px 0 34px; padding: 0; list-style: none; }
.outcome-list li { position: relative; padding-left: 34px; color: var(--ink); font-size: .92rem; }
.outcome-list li::before { content: "✓"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: var(--white); background: var(--teal-500); font-size: .72rem; font-weight: 900; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card { display: flex; flex-direction: column; min-height: 260px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.resource-card:hover, .resource-card:focus-visible { transform: translateY(-4px); border-color: #94b9e8; box-shadow: 0 16px 38px rgba(8,34,76,.09); }
.resource-source { color: var(--blue-600); font-size: .69rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.resource-card h3 { margin: 18px 0 10px; color: var(--navy-950); font-size: 1.08rem; line-height: 1.32; }
.resource-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.resource-arrow { margin-top: auto; padding-top: 22px; color: var(--blue-600); font-weight: 900; }

.cta-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 62px; border-radius: 30px; color: var(--white); background: linear-gradient(120deg, var(--navy-900), var(--blue-600)); box-shadow: var(--shadow); }
.cta-panel h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.045em; }
.cta-panel p { max-width: 650px; margin: 22px 0 0; color: #d8e8fb; }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; }
.contact-details { display: grid; gap: 15px; margin-top: 36px; }
.contact-item { display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.contact-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--blue-600); background: #eaf3ff; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-item strong { display: block; color: var(--navy-950); font-size: .84rem; }
.contact-item span, .contact-item a { display: block; margin-top: 2px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.contact-item a:hover { color: var(--blue-600); text-decoration: underline; }
.contact-card { padding: 38px; border-radius: 24px; color: var(--white); background: var(--navy-950); }
.contact-card h3 { margin: 0 0 12px; font-size: 1.55rem; }
.contact-card p { color: #b9cbe4; font-size: .9rem; }
.contact-card .button { width: 100%; margin-top: 16px; }
.contact-card small { display: block; margin-top: 18px; color: #859cb9; font-size: .72rem; }

.site-footer { padding: 58px 0 26px; color: #b7c8df; background: #041126; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .85fr .75fr; gap: 60px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { max-width: 460px; color: #8fa6c4; font-size: .82rem; }
.footer-column h3 { margin: 0 0 18px; color: var(--white); font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #a9bdd8; font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #7890ad; font-size: .72rem; }

[data-copy="en"] { display: none !important; }
html[data-site-lang="fr"] [data-copy="en"] { display: none !important; }
html[data-site-lang="en"] [data-copy="fr"] { display: none !important; }
html[data-site-lang="en"] [data-copy="en"] { display: revert !important; }
html[data-site-lang="fr"] [data-copy="fr"] { display: revert !important; }

@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 82px 0 auto; display: none; align-items: stretch; gap: 0; max-height: calc(100vh - 82px); padding: 18px 20px 28px; overflow-y: auto; background: var(--navy-950); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 1rem; }
  .main-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 90px 0 120px; }
  .hero-copy { max-width: 800px; }
  .hero-art { max-width: 650px; margin: -30px auto 0; }
  .mission-grid, .spotlight, .contact-grid { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: repeat(2, 1fr); }
  .spotlight-visual { min-height: 440px; }
  .spotlight-visual h3 { margin-top: 90px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .header-inner { min-height: 72px; }
  .brand img { width: 43px; height: 43px; }
  .brand-name { font-size: 1.16rem; }
  .brand-tag { display: none; }
  .main-nav { inset: 72px 0 auto; max-height: calc(100vh - 72px); }
  .language-switcher button { padding: 6px 8px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 74px 0 104px; }
  .hero h1 { font-size: clamp(2.85rem, 15vw, 4.9rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-art { margin-top: -18px; }
  .hero-status { right: 2%; bottom: 2%; width: 84%; }
  .verification-card { grid-template-columns: auto 1fr; padding: 22px; }
  .verification-card .text-link { grid-column: 1 / -1; }
  .mission-grid { gap: 36px; }
  .values-row, .program-grid, .resource-grid { grid-template-columns: 1fr; }
  .section-heading-row { display: block; margin-bottom: 36px; }
  .section-heading-row .section-lede { margin-top: 18px; }
  .program-card { min-height: 0; padding: 28px; }
  .timeline { margin-left: 0; }
  .timeline::before { left: 9px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-left: 33px; }
  .timeline-year { padding: 0; text-align: left; }
  .timeline-dot { left: 1px; top: 6px; }
  .timeline-card { padding: 24px; }
  .spotlight-visual { min-height: 380px; padding: 31px; }
  .spotlight-visual h3 { margin-top: 78px; }
  .spotlight-content { padding: 32px; }
  .cta-panel { padding: 38px 26px; }
  .contact-grid { gap: 38px; }
  .contact-card { padding: 29px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .hero-actions, .cta-panel, .menu-toggle { display: none !important; }
  .hero { min-height: auto; color: #000; background: #fff; }
  .hero::before { display: none; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding: 30px 0; }
  .hero h1, .hero-lede, .hero-stat strong, .section-dark .section-title, .timeline-card h3 { color: #000; }
  .section-dark { color: #000; background: #fff; }
  .timeline-card { border-color: #ccc; background: #fff; }
}
