/* =====================================================
   EARFISH.ORG — Master Stylesheet
   Refined, elegant, inspired by Airbnb's design language
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --teal:        #006E6E;
  --teal-light:  #008F8F;
  --teal-pale:   #E8F5F5;
  --gold:        #C9952A;
  --gold-light:  #F0C15A;
  --gold-pale:   #FDF6E3;
  --ink:         #1A1A1A;
  --ink-mid:     #444444;
  --muted:       #767676;
  --border:      #E5E5E5;
  --surface:     #FAFAFA;
  --white:       #FFFFFF;

  --shadow-xs:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md:  0 8px 24px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.11), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.14);

  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --max-w: 1240px;
  --nav-h: 76px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-light); }
button { font-family: var(--font-body); cursor: pointer; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow .3s var(--ease), background .3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-wrap {
  width: 42px; height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.nav-brand-text { line-height: 1.2; }
.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -.3px;
  display: block;
}
.nav-brand-sub {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .2px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-mid);
  border-radius: var(--r-sm);
  transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--surface); color: var(--teal); }
.nav-links a.active { color: var(--teal); font-weight: 600; }

.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 9px 22px !important;
  font-weight: 600 !important;
  transition: background .2s, transform .18s, box-shadow .18s !important;
  box-shadow: 0 2px 8px rgba(0,110,110,.25) !important;
}
.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0,110,110,.3) !important;
}

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  font-size: .88rem; font-weight: 500;
  color: var(--ink-mid);
  background: none; border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.lang-toggle:hover { background: var(--surface); border-color: var(--teal); }
.lang-menu {
  display: none;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  overflow: hidden;
  z-index: 100;
  list-style: none;
}
.lang-menu.open { display: block; animation: fadeDown .2s var(--ease-out) both; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  font-size: .88rem; color: var(--ink-mid);
  transition: background .15s;
}
.lang-menu a:hover { background: var(--surface); color: var(--teal); }

/* Mobile hamburger */
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 8px; cursor: pointer;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,40,40,.78) 0%,
    rgba(0,80,70,.55) 55%,
    rgba(20,60,10,.45) 100%
  );
}
.hero-grain {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-body {
  position: relative; z-index: 2;
  width: 100%;
  padding: 80px 24px 100px;
  max-width: calc(var(--max-w) + 48px);
  margin: 0 auto;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-kicker::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.5px;
  margin-bottom: 22px;
  max-width: 700px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  line-height: 1.72;
  margin-bottom: 44px;
  font-weight: 400;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 72px;
}

/* ── STAT BAR ── */
.hero-stats {
  display: flex; flex-wrap: wrap;
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 620px;
  backdrop-filter: blur(12px);
}
.stat-item {
  flex: 1; min-width: 120px;
  padding: 22px 24px;
  text-align: center;
  color: #fff;
}
.stat-n {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 400;
  line-height: 1; margin-bottom: 5px;
}
.stat-l {
  font-size: .75rem; font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .6px;
}

/* WAVE */
.wave { display: block; width: 100%; overflow: hidden; line-height: 0; }
.wave svg { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .92rem; font-weight: 600;
  border: none; cursor: pointer;
  text-decoration: none; line-height: 1;
  transition: transform .2s var(--ease-spring), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-teal {
  background: var(--teal); color: #fff;
  box-shadow: 0 4px 16px rgba(0,110,110,.28);
}
.btn-teal:hover { background: var(--teal-light); box-shadow: 0 6px 24px rgba(0,110,110,.35); color: #fff; }
.btn-gold {
  background: var(--gold); color: #fff;
  box-shadow: 0 4px 16px rgba(201,149,42,.28);
}
.btn-gold:hover { background: var(--gold-light); color: var(--ink); box-shadow: 0 6px 24px rgba(201,149,42,.35); }
.btn-ghost-white {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.38);
  backdrop-filter: blur(6px);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-outline-teal {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.btn-surface {
  background: var(--surface); color: var(--ink-mid);
  border: 1px solid var(--border);
}
.btn-surface:hover { background: var(--border); color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface); }

/* ── SECTION HEADER ── */
.s-eyebrow {
  font-size: .73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--teal); margin-bottom: 12px;
}
.s-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400; color: var(--ink);
  line-height: 1.15; margin-bottom: 16px;
  letter-spacing: -.3px;
}
.s-desc {
  font-size: 1rem; color: var(--muted);
  max-width: 560px; line-height: 1.75;
}

/* ── CARD BASE ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }

/* ── FEATURE CARDS ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feat-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.feat-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feat-icon.teal  { background: var(--teal-pale); }
.feat-icon.gold  { background: var(--gold-pale); }
.feat-icon.slate { background: #EEF2FF; }
.feat-icon.green { background: #ECFDF5; }
.feat-t { font-weight: 700; font-size: .98rem; color: var(--ink); margin-bottom: 10px; }
.feat-d { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ── PROJECT CARDS ── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.proj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.proj-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.proj-img { position: relative; overflow: hidden; }
.proj-img img {
  width: 100%; height: 210px; object-fit: cover;
  transition: transform .5s var(--ease);
}
.proj-card:hover .proj-img img { transform: scale(1.06); }
.proj-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .74rem; font-weight: 700;
  color: var(--teal);
  letter-spacing: .3px;
}
.proj-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.proj-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--teal);
  background: var(--teal-pale);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.proj-title {
  font-weight: 700; font-size: 1.02rem;
  color: var(--ink); margin-bottom: 8px;
  line-height: 1.38;
}
.proj-desc {
  font-size: .88rem; color: var(--muted);
  line-height: 1.68; flex: 1; margin-bottom: 20px;
}
.proj-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted);
}

/* ── IMPACT STRIP ── */
.impact-strip {
  position: relative;
  background-size: cover; background-position: center;
  padding: 80px 0;
  overflow: hidden;
}
.impact-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(0,60,60,.9) 0%, rgba(0,100,80,.8) 100%);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.impact-cell {
  padding: 36px 28px;
  text-align: center;
  color: #fff;
  background: rgba(255,255,255,.05);
}
.impact-n {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 400;
  margin-bottom: 6px;
}
.impact-l {
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
  color: rgba(255,255,255,.72);
}

/* ── EVENTS ── */
.event-card {
  display: flex; gap: 20px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: box-shadow .3s var(--ease), transform .2s;
  align-items: flex-start;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-datebox {
  flex-shrink: 0;
  width: 64px; text-align: center;
  background: var(--teal-pale);
  border: 1px solid rgba(0,110,110,.15);
  border-radius: var(--r-md);
  padding: 10px 8px;
}
.event-month { font-size: .68rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .5px; }
.event-day { font-family: var(--font-display); font-size: 2rem; font-weight: 400; color: var(--ink); line-height: 1; }
.event-info { flex: 1; min-width: 0; }
.event-title { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.event-meta span { display: flex; align-items: center; gap: 5px; }

/* ── PAGE HEADER ── */
.page-header {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 72px;
  background-size: cover; background-position: center;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,40,40,.82) 0%,
    rgba(0,80,60,.6) 60%,
    rgba(30,60,20,.5) 100%
  );
}
.page-header-body { position: relative; z-index: 2; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 400; color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.page-header .lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  line-height: 1.72;
}

/* ── LEADERSHIP ── */
.leader-card {
  text-align: center;
  padding: 32px 20px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
  cursor: default;
}
.leader-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--teal-pale); }
.leader-avatar-wrap { position: relative; display: inline-block; margin-bottom: 16px; }
.leader-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: border-color .3s;
}
.leader-card:hover .leader-avatar { border-color: var(--teal); }
.leader-badge {
  position: absolute; bottom: 2px; right: 2px;
  background: var(--teal); color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  border: 2px solid #fff;
}
.leader-role { font-size: .73rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 5px; }
.leader-name { font-weight: 700; font-size: .97rem; color: var(--ink); margin-bottom: 4px; }
.leader-country { font-size: .82rem; color: var(--muted); }

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 44px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--gold));
  border-radius: 2px;
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-dot {
  position: absolute;
  left: -37px; top: 4px;
  width: 14px; height: 14px;
  background: var(--teal);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.tl-year { font-size: .72rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.tl-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: .97rem; }
.tl-text { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ── CONTACT FORM ── */
.contact-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: .85rem; font-weight: 600;
  color: var(--ink); margin-bottom: 7px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,110,110,.1);
}
.form-control::placeholder { color: #bbb; }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ── REPOSITORY ── */
.repo-search-wrap {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  max-width: 540px;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .2s;
}
.repo-search-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,110,110,.1);
}
.repo-search-wrap input {
  flex: 1; border: none; outline: none;
  font-size: .95rem; font-family: var(--font-body);
  color: var(--ink); background: transparent;
}
.repo-search-btn {
  background: var(--teal); border: none; color: #fff;
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 600; font-size: .88rem;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; gap: 6px;
}
.repo-search-btn:hover { background: var(--teal-light); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: .83rem; font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }

.doc-row {
  display: flex; gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  align-items: center;
  transition: box-shadow .25s var(--ease), transform .2s;
}
.doc-row:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.doc-icon-box {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.doc-icon-box.pdf  { background: #FFF1F0; }
.doc-icon-box.doc  { background: #EEF2FF; }
.doc-icon-box.xls  { background: #ECFDF5; }
.doc-icon-box.ppt  { background: #FFF8E1; }
.doc-icon-box.other{ background: var(--surface); }
.doc-info { flex: 1; min-width: 0; }
.doc-name { font-weight: 700; font-size: .96rem; color: var(--ink); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-desc { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.doc-meta-row { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--muted); }
.doc-meta-row span { display: flex; align-items: center; gap: 4px; }
.doc-actions { flex-shrink: 0; display: flex; gap: 8px; }

/* ── UPLOAD ZONE ── */
.upload-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--r-xl);
  padding: 52px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--surface);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--teal);
  background: var(--teal-pale);
}
.upload-zone-ico { font-size: 2.5rem; color: var(--muted); margin-bottom: 14px; }
.upload-zone-t { font-weight: 700; font-size: .98rem; color: var(--ink); margin-bottom: 5px; }
.upload-zone-d { font-size: .84rem; color: var(--muted); }

/* ── ADMIN ── */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side {
  width: 260px; flex-shrink: 0;
  background: var(--ink);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin-logo-bar {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
}
.admin-logo-ico {
  width: 38px; height: 38px;
  background: var(--teal);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: #fff; font-size: 1rem;
}
.admin-logo-t .admin-name { color: #fff; font-weight: 700; font-size: .95rem; display: block; }
.admin-logo-t .admin-sub  { color: rgba(255,255,255,.45); font-size: .72rem; display: block; }
.admin-nav-list { padding: 14px 10px; flex: 1; list-style: none; }
.admin-nav-list li a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  color: rgba(255,255,255,.62);
  font-size: .9rem; font-weight: 500;
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background .18s, color .18s;
  margin-bottom: 2px;
}
.admin-nav-list li a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav-list li a.active { background: var(--teal); color: #fff; }
.admin-nav-list li a i { font-size: .95rem; }
.admin-body { flex: 1; background: #F5F5F5; overflow-y: auto; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 68px;
  display: flex; align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.admin-topbar-title { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.admin-main { padding: 28px 32px; }
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
}
.admin-stat-n { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--ink); line-height: 1; margin-bottom: 6px; }
.admin-stat-l { font-size: .85rem; color: var(--muted); font-weight: 500; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 12px 16px; text-align: left;
  font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.admin-table td {
  padding: 15px 16px;
  font-size: .9rem; color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,110,110,.025); }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700;
}
.badge-teal  { background: var(--teal-pale); color: var(--teal); }
.badge-gold  { background: var(--gold-pale); color: var(--gold); }
.badge-slate { background: #EEF2FF; color: #4338CA; }
.badge-red   { background: #FFF1F0; color: #D92525; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(120deg, var(--teal) 0%, #004D4D 100%);
  padding: 72px 0;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,3vw,2.8rem);
  font-weight: 400; color: #fff; margin-bottom: 14px;
}
.cta-band p { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }

/* ── FOOTER ── */
.footer {
  background: #111;
  color: rgba(255,255,255,.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3,1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem; color: #fff;
  display: block; margin-bottom: 12px;
}
.footer-brand-p { font-size: .88rem; line-height: 1.72; margin-bottom: 20px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: .95rem;
  transition: background .2s, color .2s, border-color .2s;
}
.footer-socials a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.footer-col-t { font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .82rem; }

/* ── ANIMATIONS ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].visible { opacity: 1; transform: none; }
[data-reveal-delay="100"] { transition-delay: .1s; }
[data-reveal-delay="200"] { transition-delay: .2s; }
[data-reveal-delay="300"] { transition-delay: .3s; }
[data-reveal-delay="400"] { transition-delay: .4s; }

/* ── UTILITIES ── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-teal { color: var(--teal); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-auto { margin-top: auto; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { 
    display: none; flex-direction: column; gap: 4px;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 16px; z-index: 850;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; animation: fadeDown .25s var(--ease-out) both; }
  .nav-links a { padding: 11px 16px; border-radius: var(--r-md); }
  .nav-burger { display: flex; }
  .lang-dropdown { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { max-width: 100%; }
  .stat-item { min-width: 140px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 64px 0; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { padding: 28px 20px; }
  .event-card { flex-direction: column; }
  .doc-row { flex-direction: column; align-items: flex-start; }
  .admin-wrap { flex-direction: column; }
  .admin-side { width: 100%; height: auto; position: relative; }
  .admin-main { padding: 20px 16px; }
}
@media (max-width: 480px) {
  :root { --nav-h: 68px; }
  .hero h1 { font-size: 2rem; }
  .hero-lead { font-size: 1rem; }
  .btn { padding: 11px 22px; }
  .features-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE GRID OVERRIDES ── */
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr !important; }
  section > .container > div[style*="grid-template-columns:1fr 1fr"],
  section > .container > div[style*="grid-template-columns:1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
  }
}
