/* ===================================================
   InnoEcoFood — Global Design System
   =================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* ─── CSS Custom Properties ─────────────────────── */
:root {
  /* Brand Colors */
  --primary:        #1a7a4a;
  --primary-light:  #2da562;
  --primary-dark:   #115c35;
  --primary-glow:   rgba(26, 122, 74, 0.15);
  --secondary:      #0f5c8a;
  --secondary-light:#1a80c4;
  --accent:         #00a8cc;
  --accent-light:   #33c2e1;
  --accent-dark:    #007a99;

  /* Neutrals */
  --dark:           #0d1f2d;
  --dark-2:         #162a3a;
  --surface:        #f5f8f5;
  --surface-2:      #edf3ee;
  --neutral:        #e8efe9;
  --white: #ffffff;
  --text-primary:   #1a2e1e;
  --text-secondary: #4a6352;
  --text-muted:     #7a9482;
  --border:         #d0ddd2;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #1a7a4a 0%, #0f5c8a 100%);
  --grad-hero:      linear-gradient(135deg, #0d1f2d 0%, #115c35 50%, #0f5c8a 100%);
  --grad-accent:    linear-gradient(135deg, #00a8cc 0%, #2da562 100%);
  --grad-card:      linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(237,243,238,0.7) 100%);
  --grad-dark:      linear-gradient(180deg, #0d1f2d 0%, #162a3a 100%);

  /* Shadows */
  --shadow-sm:      0 2px 8px rgba(13,31,45,0.08);
  --shadow-md:      0 4px 20px rgba(13,31,45,0.12);
  --shadow-lg:      0 8px 40px rgba(13,31,45,0.16);
  --shadow-xl:      0 20px 60px rgba(13,31,45,0.2);
  --shadow-green:   0 8px 30px rgba(26,122,74,0.2);
  --shadow-accent:  0 8px 30px rgba(0,168,204,0.25);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* New Utility: Image Backgrounds for Cards */
  --overlay-dark: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
  --overlay-green: linear-gradient(135deg, rgba(26,122,74,0.8) 0%, rgba(15,92,138,0.8) 100%);

  /* Typography Scale */
  --font-heading: 'Poppins', sans-serif;
  --font-body:    'Quicksand', sans-serif;

  /* Navbar height */
  --nav-h: 72px;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  color: var(--white);
  transition: var(--transition-base);
  border: 1px solid var(--border);
}

.img-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.img-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
  z-index: 1;
}

.img-card-content {
  position: relative;
  z-index: 2;
}

.img-card:hover .img-card-bg img {
  transform: scale(1.1);
}

.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

/* ─── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.8; }

/* ─── Navigation ────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h, 72px);
  z-index: 1000;
  transition: var(--transition-base);
  padding: 0 var(--space-xl);
}

.navbar.transparent {
  background: transparent;
}

.navbar.scrolled {
  background: rgba(13, 31, 45, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
}

.nav-inner, .nav-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Real logo image — shown on dark navbar/hero backgrounds */
.nav-logo .logo-img, .nav-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.05) saturate(1.1);
  transition: var(--transition-base);
}

.nav-logo:hover .logo-img {
  filter: brightness(1.15) saturate(1.2);
  transform: scale(1.03);
}

/* Footer variant — logo on dark bg */
.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.05) saturate(1.1);
  margin-bottom: var(--space-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-links > a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links > a:hover,
.nav-links > a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-links > a.active {
  color: var(--accent-light);
}

.nav-cta-glass {
  background: rgba(255,255,255,0.1) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.82rem !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-cta-glass:hover {
  background: rgba(255,255,255,0.18) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.nav-cta-blue {
  background: var(--secondary-light) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.82rem !important;
  border: none !important;
}

.nav-cta-blue:hover {
  background: #1a96de !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,128,196,0.4);
}

.nav-search-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition-fast);
  margin: 0 4px;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-light);
  transform: scale(1.05);
}

/* ─── Dropdown nav ─────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-dropdown-trigger.active {
  color: var(--accent-light);
  background: rgba(255,255,255,0.08);
}

.nav-dropdown-trigger svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: rgba(10, 25, 38, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 1100;
  pointer-events: none;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(10,25,38,0.97);
  border-left: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-dropdown-menu a {
  font-family: var(--font-heading);
  font-size: 0.81rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
  display: block;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-dropdown-menu a.active {
  color: var(--accent-light);
  background: rgba(0,168,204,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-base);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile menu ──────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,25,38,0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-md) var(--space-lg);
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu > a {
  font-family: var(--font-heading);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  font-size: 0.93rem;
}

.mobile-menu > a:hover { background: rgba(255,255,255,0.08); color: var(--white); }

/* ─── Mobile accordion ─────────────────────────── */
.mobile-accordion {
  display: flex;
  flex-direction: column;
}

.mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-heading);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.93rem;
  transition: var(--transition-fast);
  text-align: left;
}

.mobile-accordion-trigger:hover,
.mobile-accordion.open .mobile-accordion-trigger {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

.mobile-accordion-trigger svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.6;
}

.mobile-accordion.open .mobile-accordion-trigger svg {
  transform: rotate(180deg);
}

.mobile-accordion-body {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px var(--space-md);
  border-left: 2px solid rgba(0,168,204,0.25);
  margin-left: var(--space-md);
}

.mobile-accordion.open .mobile-accordion-body {
  display: flex;
}

.mobile-accordion-body a {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  padding: 8px var(--space-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mobile-accordion-body a:hover,
.mobile-accordion-body a.active {
  background: rgba(255,255,255,0.07);
  color: var(--white);
}

.mobile-accordion-body a.active {
  color: var(--accent-light);
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,122,74,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--dark);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240,165,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 8px 18px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 16px 36px;
}

.btn-icon {
  width: 42px; height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ─── Badges ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.badge-primary { background: var(--primary-glow); color: var(--primary-dark); }
.badge-accent  { background: rgba(240,165,0,0.15); color: var(--accent-dark); }
.badge-news    { background: rgba(15,92,138,0.12); color: var(--secondary); }
.badge-articles{ background: rgba(26,122,74,0.12); color: var(--primary-dark); }
.badge-white   { background: rgba(255,255,255,0.15); color: var(--white); }

/* ─── Cards ─────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.card-glass {
  background: var(--grad-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
}

.card-dark {
  background: var(--dark-2);
  border-color: rgba(255,255,255,0.08);
  color: var(--white);
}

.card-primary {
  background: var(--grad-primary);
  color: var(--white);
  border: none;
}

.card-primary p, .card-primary h1, .card-primary h2,
.card-primary h3, .card-primary h4 { color: var(--white); }
.card-primary p { color: rgba(255,255,255,0.85); }

.card-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: var(--primary-glow);
}

.card-icon.accent { background: rgba(240,165,0,0.15); }
.card-icon.blue   { background: rgba(15,92,138,0.12); }

/* ─── Section Layout ────────────────────────────── */
.section {
  padding: var(--space-4xl) var(--space-xl);
}

.section-sm {
  padding: var(--space-3xl) var(--space-xl);
}

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

.section-dark h1, .section-dark h2,
.section-dark h3, .section-dark h4,
.section-dark h5, .section-dark h6 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-tint {
  background: var(--surface-2);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Section Header ────────────────────────────── */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header.centered { text-align: center; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-header.centered .section-subtitle { margin: 0 auto; }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent { color: var(--accent); }
.text-white  { color: var(--white); }

/* ─── Grids ─────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* ─── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(13, 31, 45, 0.94) 0%, rgba(13, 31, 45, 0.82) 45%, rgba(13, 31, 45, 0.55) 75%, rgba(13, 31, 45, 0.35) 100%),
    linear-gradient(180deg, rgba(13, 31, 45, 0.75) 0%, rgba(13, 31, 45, 0.35) 40%, rgba(13, 31, 45, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding-top: calc(var(--nav-h) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(240,165,0,0.18);
  border: 1px solid rgba(240,165,0,0.4);
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Funding Badges (EU & UKRI) */
.hero-funding-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-funding-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 31, 45, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 18px 6px 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.hero-funding-badge:hover {
  background: rgba(13, 31, 45, 0.9);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 168, 204, 0.3);
}

.hero-funding-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-funding-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-funding-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-funding-org {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-funding-grant {
  font-size: 0.7rem;
  color: var(--accent-light);
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent-light);
  text-shadow: 0 4px 22px rgba(0, 168, 204, 0.6), 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hero-desc {
  font-size: 1.18rem;
  color: #f8fafc;
  max-width: 650px;
  margin-bottom: var(--space-2xl);
  font-weight: 500;
  line-height: 1.75;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  padding: var(--space-md) var(--space-xl);
  background: rgba(13, 31, 45, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: fit-content;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ─── Page Hero (inner pages) ───────────────────── */
.page-hero {
  position: relative;
  min-height: 340px;
  background: var(--grad-hero);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + var(--space-4xl)) var(--space-xl) var(--space-4xl);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5; /* Increased opacity for more presence, but keep text readable */
  mix-blend-mode: overlay; /* Allows some of the gradient to bleed through */
}

/* Optional: Fallback for older browsers */
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 { color: var(--white); }
.page-hero .page-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin-top: var(--space-md);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-md);
}

.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }

/* ─── Accordion ─────────────────────────────────── */
.accordion { border-radius: var(--radius-md); overflow: hidden; }

.accordion-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.accordion-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.accordion-item:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); border-bottom: none; }

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.accordion-header:hover { background: var(--surface-2); }

.accordion-header.active { background: var(--primary-glow); }

.accordion-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
  flex-shrink: 0;
}

.accordion-header.active .accordion-icon {
  background: var(--primary);
  color: var(--white);
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.open { max-height: 1000px; }

.accordion-content {
  padding: var(--space-md) var(--space-xl) var(--space-xl);
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ─── Tabs ──────────────────────────────────────── */
.tabs-header {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 18px;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover   { color: var(--primary); }
.tab-btn.active  { color: var(--primary); border-bottom-color: var(--primary); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Progress Ring ─────────────────────────────── */
.progress-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.progress-ring-svg { transform: rotate(-90deg); }

.progress-ring-bg  { fill: none; stroke: var(--neutral); stroke-width: 6; }
.progress-ring-bar { fill: none; stroke-width: 6; stroke-linecap: round;
                     stroke: var(--primary); transition: stroke-dashoffset 1.2s ease; }

.progress-ring-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  fill: var(--text-primary);
}

/* ─── Progress Bar ──────────────────────────────── */
.progress-bar {
  height: 8px;
  background: var(--neutral);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

/* ─── Counter / Stats ───────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-base);
}

.stat-card:hover {
  box-shadow: var(--shadow-green);
  border-color: var(--primary-light);
  transform: translateY(-4px);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Stats Ribbon ──────────────────────────────── */
.stats-ribbon {
  background: var(--dark);
  padding: var(--space-2xl) var(--space-xl);
}

.stats-ribbon .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xl);
}

.ribbon-stat {
  text-align: center;
}

.ribbon-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-light);
  display: block;
  line-height: 1;
}

.ribbon-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-xs);
}

/* ─── Tags / List Items ─────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.feature-item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── News Article Cards ────────────────────────── */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.article-card-img {
  height: 180px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.article-card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-card h4 {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-card h4 a:hover { color: var(--primary); }

.article-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
}

.article-card .read-more:hover { color: var(--primary-dark); }

/* ─── Partner Card ──────────────────────────────── */
.partner-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.partner-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.partner-avatar {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.partner-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.partner-country {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.partner-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.partner-tags { margin-top: var(--space-sm); }

/* ─── Quote Section ─────────────────────────────── */
.quote-section {
  background: var(--grad-primary);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto var(--space-md);
  line-height: 1.4;
}

.quote-text::before { content: '"'; color: var(--accent-light); }
.quote-text::after  { content: '"'; color: var(--accent-light); }

.quote-attr {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

/* ─── Funding Badge ─────────────────────────────── */
.funding-bar {
  background: var(--dark);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}

.funding-bar p {
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

.funding-bar strong { color: rgba(255,255,255,0.85); }

/* ─── Footer ─────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
  color: var(--white);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.7;
}

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1280px;
  margin: var(--space-xl) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

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

.eu-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

.eu-badge .flag { font-size: 1.2rem; }

.funding-block {
  margin-top: var(--space-lg);
  max-width: 380px;
}

.funding-logos {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.funding-logos img {
  height: 44px;
  width: auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.footer-brand .funding-statement {
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-md);
  max-width: none;
}

/* ─── Scroll Reveal ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Particles / Hero animation ───────────────── */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-30px) rotate(120deg); }
  66%       { transform: translateY(15px) rotate(240deg); }
}

.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 80px;
  overflow: hidden;
}

.hero-wave svg { width: 100%; height: 100%; }

/* ─── Timeline ──────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px; top: 0; bottom: 0;
  width: 2px;
  background: var(--neutral);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 8px);
  top: 4px;
  width: 18px; height: 18px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.timeline-dot.done {
  background: var(--primary);
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ─── Map / Hub Grid ────────────────────────────── */
.hub-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition-base);
  cursor: pointer;
}

.hub-card:hover {
  box-shadow: var(--shadow-green);
  transform: translateY(-5px);
  border-color: var(--primary-light);
}

.hub-card-top {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  position: relative;
}

.hub-country-flag {
  font-size: 2.2rem;
  margin-bottom: var(--space-sm);
}

.hub-card h3 { font-size: 1.1rem; margin-bottom: 4px; }

.hub-card-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-md);
}

.hub-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
}

.hub-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hub-info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hub-info-value {
  font-size: 0.82rem;
  color: var(--text-primary);
  font-weight: 600;
}

.hub-card-actions {
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Forms ─────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea { resize: vertical; min-height: 130px; }

/* ─── Divider ───────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-2xl) 0;
}

.divider-accent {
  height: 3px;
  border-radius: 3px;
  background: var(--grad-accent);
  width: 60px;
  margin-bottom: var(--space-md);
}

/* ─── Utilities ─────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { display: flex; flex-direction: column; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-sm        { gap: var(--space-sm); }
.gap-md        { gap: var(--space-md); }
.gap-lg        { gap: var(--space-lg); }
.gap-xl        { gap: var(--space-xl); }
.text-center   { text-align: center; }
.mt-sm         { margin-top: var(--space-sm); }
.mt-md         { margin-top: var(--space-md); }
.mt-lg         { margin-top: var(--space-lg); }
.mt-xl         { margin-top: var(--space-xl); }
.mb-sm         { margin-bottom: var(--space-sm); }
.mb-md         { margin-bottom: var(--space-md); }
.mb-lg         { margin-bottom: var(--space-lg); }
.mb-xl         { margin-bottom: var(--space-xl); }
.w-full        { width: 100%; }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: var(--space-3xl) var(--space-md); }
  .hero-content { padding: calc(var(--nav-h) + var(--space-3xl)) var(--space-md) var(--space-3xl); }
  .page-hero { padding: calc(var(--nav-h) + var(--space-3xl)) var(--space-md) var(--space-3xl); }
  .hub-info-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; gap: var(--space-sm); }
  .hero-ctas .btn { justify-content: center; }
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .stats-ribbon .container { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   CVH Lead Capture Overlay
   ═══════════════════════════════════════════════════ */

#cvh-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 31, 45, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

#cvh-lead-modal.open { opacity: 1; }

.cvh-modal {
  display: flex;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(13,31,45,0.55), 0 0 0 1px rgba(255,255,255,0.07);
  transform: scale(0.88) translateY(30px);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
}

#cvh-lead-modal.open .cvh-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ─── Left Photo Panel ──────────────────────────── */
.cvh-modal-photo {
  flex: 0 0 48%;
  position: relative;
  overflow: hidden;
}

.cvh-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient scrim so badge is readable */
.cvh-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,31,45,0.18) 0%,
    rgba(13,31,45,0.05) 40%,
    rgba(13,31,45,0.55) 100%
  );
}

/* Bottom-left watermark badge */
.cvh-photo-badge {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(13,31,45,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cvh-photo-badge i { color: var(--accent-light); }

/* ─── Right CTA Panel ───────────────────────────── */
.cvh-modal-cta {
  flex: 1;
  background: var(--dark);
  background-image: radial-gradient(circle at 90% 10%, rgba(0,168,204,0.12) 0%, transparent 50%),
                    radial-gradient(circle at 10% 90%, rgba(26,122,74,0.14) 0%, transparent 50%);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* Close button */
.cvh-modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 34px; height: 34px;
  border: none;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.cvh-modal-close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  transform: rotate(90deg);
}

/* Eyebrow */
.cvh-cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}

.cvh-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  animation: cvh-pulse 2s ease-in-out infinite;
}

@keyframes cvh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Heading */
.cvh-cta-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

/* Body copy */
.cvh-cta-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 320px;
}

/* Stats strip */
.cvh-cta-stats {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cvh-cta-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cvh-cta-stat strong {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.cvh-cta-stat span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.38);
}

/* Primary CTA button */
.cvh-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 16px 24px;
  background: var(--grad-accent);
  color: var(--white);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.cvh-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 55%);
}

.cvh-cta-btn:hover {
  box-shadow: var(--shadow-accent), 0 0 0 2px rgba(0,168,204,0.4);
  transform: translateY(-2px);
  color: var(--white);
}

.cvh-cta-btn:active { transform: translateY(0); }

.cvh-cta-btn i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.cvh-cta-btn:hover i { transform: translateX(5px); }

/* Dismiss link */
.cvh-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.28);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  margin-top: var(--space-md);
  padding: 0;
  display: block;
  width: 100%;
  text-align: center;
  transition: color 0.2s ease;
}

.cvh-dismiss:hover { color: rgba(255,255,255,0.55); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  #cvh-lead-modal { padding: 0; align-items: flex-end; }

  .cvh-modal {
    flex-direction: column;
    max-height: 96vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .cvh-modal-photo {
    flex: 0 0 200px;
    width: 100%;
  }

  .cvh-modal-cta {
    padding: var(--space-xl) var(--space-lg);
    overflow-y: auto;
  }

  .cvh-cta-heading { font-size: 1.5rem; }
  .cvh-cta-body { max-width: 100%; }
}

/* ─── FLOATING BACK TO TOP BUTTON ─────────────── */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 25px rgba(0, 168, 255, 0.6);
}

/* ─── SEARCH MODAL OVERLAY ─────────────────────── */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 30, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-modal-box {
  background: #0d1f2d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 680px;
  padding: var(--space-xl);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  position: relative;
}
.search-input-wrapper {
  position: relative;
  margin-bottom: var(--space-lg);
}
.search-input-wrapper input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--accent-light);
  padding: 14px 20px 14px 50px;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.1rem;
  outline: none;
}
.search-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-light);
  font-size: 1.2rem;
}
.search-results-list {
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.search-result-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: white;
  transition: background 0.2s;
}
.search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
}
.search-result-title {
  font-weight: 700;
  color: var(--accent-light);
  display: block;
}
.search-result-snippet {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.search-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
}
.search-modal-close:hover { color: white; }

/* ─── ECOHUB MOBILE MAP POPUP OVERLAP FIX (UI-001) ─── */

/* ═══ AUTHENTIC COOKIE CONSENT PREFERENCES (CookieYes) ═══ */
.cky-btn-revisit-wrapper {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cky-btn-revisit {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.cky-btn-revisit:hover {
  transform: scale(1.1);
  background: #0369a1;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.cky-consent-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1140px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
  z-index: 9999;
  display: block;
  animation: ckySlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ckySlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cky-consent-bar {
  position: relative;
}
.cky-banner-btn-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cky-banner-btn-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.cky-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.cky-notice-des p {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.cky-notice-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.cky-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
}
.cky-btn-customize {
  background: transparent;
  color: #0284c7;
  border-color: #0284c7;
}
.cky-btn-customize:hover {
  background: #e0f2fe;
}
.cky-btn-reject {
  background: transparent;
  color: #ef4444;
  border-color: #ef4444;
}
.cky-btn-reject:hover {
  background: #fef2f2;
}
.cky-btn-accept {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}
.cky-btn-accept:hover {
  background: #15803d;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
}

/* Modal Dialog for Customize Preferences */
.cky-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cky-modal.active {
  opacity: 1;
  visibility: visible;
}
.cky-preference-center {
  background: #ffffff;
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cky-modal.active .cky-preference-center {
  transform: scale(1);
}

.cky-preference-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cky-preference-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
.cky-btn-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.cky-btn-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.cky-preference-body-wrapper {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  flex-grow: 1;
}
.cky-preference-content-wrapper p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.cky-accordion-wrapper {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cky-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #f8fafc;
}
.cky-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.cky-accordion-btn {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  background: none;
  border: none;
  padding: 0;
}
.cky-always-active {
  font-size: 0.78rem;
  font-weight: 800;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cky-accordion-header-des p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Switch Toggle Component */
.cky-switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cky-switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cky-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}
.cky-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}
.cky-switch-toggle input:checked + .cky-slider {
  background-color: #0284c7;
}
.cky-switch-toggle input:checked + .cky-slider:before {
  transform: translateX(20px);
}

.cky-footer-wrapper {
  padding: 1.25rem 2rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}


