:root {
  --navy: #0D2340;
  --navy-mid: #16355C;
  --navy-deep: #08192F;
  --blue: #1A5276;
  --teal: #0E7490;
  --gold: #C9922A;
  --gold-light: #E8B84B;
  --ivory: #F5F3EE;
  --mist: #EFF4F8;
  --border: #D6DDE6;
  --text: #1A2332;
  --muted: #5A6A7E;
  --white: #FFFFFF;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ivory);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.top-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
}

.top-bar .links {
  display: flex;
  gap: 20px;
}

.top-bar a {
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.top-bar a:hover {
  color: #fff;
}

.header-main {
  padding: 0 60px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 130px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}

.nav-active .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-active .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-active .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.nav-active {
  overflow: hidden;
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 4px;
}

nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

nav a.active {
  color: var(--gold-light);
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-gold {
  font-size: 11px;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 22px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(201, 146, 42, 0.25);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  margin-top: 99px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/generation_sans_tabac_hero.png') center right/cover no-repeat;
  opacity: 0.5;
  mask-image: linear-gradient(to right, transparent 10%, black 80%);
  -webkit-mask-image: linear-gradient(to right, transparent 10%, black 80%);
}

.hero-pattern {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(135deg, transparent 10%, rgba(201, 146, 42, 0.12) 100%);
  z-index: 1;
}

.hero-lines {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}

.hero-lines::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 60px;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 12px;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
  padding: 11px 24px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-secondary {
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 11px 24px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Stats bar */
.stats-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 3px solid var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 60px;
}

.stat-item {
  padding: 18px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 32px;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

/* ── SECTIONS ── */
.section {
  padding: 40px 60px;
}

.section-alt {
  background: var(--mist);
}

.section-white {
  background: var(--white);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--teal);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.section-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── NEWS ── */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

.news-featured {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: all 0.25s;
}

.news-featured:hover {
  box-shadow: 0 8px 32px rgba(13, 35, 64, 0.1);
  transform: translateY(-2px);
}

.news-featured-img {
  height: 200px;
  overflow: hidden;
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-featured-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.news-tag.policy { background: var(--blue); }
.news-tag.education { background: #6B4E9B; }
.news-tag.research { background: #2E7D6E; }
.news-tag.agriculture { background: #5A7D32; }

.news-featured h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-featured p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.news-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

.news-small {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.news-small:hover {
  box-shadow: 0 6px 20px rgba(13, 35, 64, 0.08);
  transform: translateY(-2px);
}

.news-small-img {
  height: 110px;
  overflow: hidden;
}

.news-small-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-small-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-small h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 6px;
}

.news-read {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── PUBLICATIONS ── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
}

.doc-card:hover::before {
  background: var(--gold);
}

.doc-icon {
  width: 40px;
  height: 40px;
  background: var(--mist);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--blue);
}

.doc-type {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.doc-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 8px;
}

.doc-date {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 14px;
}

.doc-download {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  gap: 5px;
  display: flex;
  align-items: center;
}

/* ── PILLARS ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pillar-item {
  background: var(--white);
  padding: 28px 26px;
  transition: background 0.25s;
}

.pillar-item:hover {
  background: var(--mist);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.pillar-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar-item p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── MEMBER BAND ── */
.member-band {
  background: var(--teal);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  border-top: 3px solid var(--gold);
}

.footer-main {
  padding: 48px 60px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  margin-top: 16px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col ul a:hover {
  color: var(--gold-light);
}

.footer-col address a {
  color: var(--gold-light);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col address a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icon {
  color: rgba(255, 255, 255, 0.4);
}

/* ── RESPONSIVITY ── */

@media (max-width: 1024px) {
  .top-bar, .header-main, .hero-content, .stats-grid, .section, .member-band, .footer-main, .footer-bottom {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  header {
    position: fixed;
    border-bottom: 2px solid var(--gold);
  }

  .menu-toggle {
    display: flex;
  }
  
  .top-bar {
    display: none;
  }
  
  .hero {
    margin-top: 0;
    min-height: auto;
    padding: 60px 0;
  }
  
  .hero-bg {
    mask-image: none;
    -webkit-mask-image: none;
    opacity: 0.15;
    background-position: center;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-eyebrow {
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    margin: 0 auto 24px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
  
  .stat-item {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 20px;
    text-align: center;
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-child(3), 
  .stat-item:nth-child(4) {
    border-bottom: none;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .news-featured {
    grid-column: span 1;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .member-band {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .header-main nav {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 65px);
    background: var(--navy-mid);
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    z-index: 1000;
  }

  .nav-active .header-main nav {
    right: 0;
  }

  .header-main nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .header-main nav a.active::after {
    bottom: 0;
    left: 0;
    transform: none;
    width: 30px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .docs-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 26px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
