/* =================================================================
   VOSD BANGLADESH - MAIN STYLESHEET
   ================================================================= */

/* 1. TOKENS & VARIABLES */
:root {
  /* Brand Colors */
  --primary: #0E743E;
  --primary-hover: #0a5c30;
  --secondary: #4F0287;
  --secondary-hover: #3d0269;
  --secondary-soft: #f4eaff;

  /* Neutrals */
  --ink: #14171C;
  --text: #2B3038;
  --text-muted: #5B6470;
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --border: #E4E7EB;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-pill: 50px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow-md: 0 4px 15px rgba(14, 116, 62, 0.2);
  --shadow-lg: 0 8px 24px -12px rgba(16,24,40,.18);
  --shadow-footer: 0 -4px 20px rgba(0, 0, 0, 0.15); /* New shadow for footer separation */
  
  /* Animations */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
}

/* 2. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

a:hover {
  color: var(--secondary);
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font: inherit;
}

/* 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
  margin-bottom: 1.2em;
}

/* 4. LAYOUT */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background-color: var(--surface);
}

/* 5. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 2, 135, 0.3);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background-color: var(--primary);
  color: #fff;
}

/* 6. SITE HEADER */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  max-height: 90px;
  width: auto;
}

/* Desktop Menu */
@media (min-width: 922px) {
  .main-nav {
    display: flex;
    align-items: center;
    background-color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-item {
    position: relative;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 14px 16px;
    position: relative;
    transition: transform var(--dur-fast) var(--ease);
  }

  .nav-link:hover {
    color: #e0f2e9;
    transform: scale(1.05);
  }

  .nav-plus {
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.85;
    transition: transform var(--dur-fast) var(--ease);
  }

  .nav-item:hover .nav-plus {
    transform: rotate(45deg);
  }

  .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px;
    background-color: #ffffff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--dur-base) var(--ease);
    z-index: 1001;
  }

  .nav-item:hover .sub-menu,
  .nav-item:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .sub-menu li:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  .sub-menu a {
    display: block;
    padding: 10px 22px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.25s ease;
  }

  .sub-menu a:hover {
    background-color: var(--primary);
    color: #ffffff;
    padding-left: 30px;
  }

  .nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
  }

  .mobile-toggle {
    display: none;
  }
}

/* 7. MOBILE HEADER & MENU */
@media (max-width: 921px) {
  .site-header {
    position: relative;
    padding: 15px 0;
    background: var(--bg);
    box-shadow: var(--shadow-sm);
  }

  .logo img {
    max-height: 60px;
  }

  .mobile-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
  }

  .mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin-bottom: 5px;
    transition: all var(--dur-base);
  }

  .mobile-toggle span:last-child {
    margin-bottom: 0;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary);
    padding: 80px 20px 40px;
    transition: left var(--dur-base) var(--ease);
    overflow-y: auto;
    z-index: 1000;
  }

  .main-nav.is-open {
    left: 0;
  }

  .mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #fff;
  }
  .mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #fff;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-link {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 0;
  }

  .nav-plus {
    display: none;
  }

  .sub-menu {
    display: none;
    background-color: rgba(0,0,0,0.1);
    padding: 10px 0 10px 20px;
  }

  .sub-menu.is-open {
    display: block;
  }

  .sub-menu a {
    display: block;
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* =================================================================
   8. FOOTER
   ================================================================= */

/* Main Footer - Simple Shadow Separation */
.site-footer {
  position: relative;
  background-color: #0A5C30;
  color: #E2E8F0;
  box-shadow: var(--shadow-footer); /* Clean top shadow to separate from content */
}

.footer-content {
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #A8C9B7;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: all var(--dur-fast);
}

.footer-col ul li a::before {
  content: '→';
  color: #A8C9B7;
  margin-right: 8px;
  font-weight: bold;
  transition: transform var(--dur-fast), color var(--dur-fast);
}

.footer-col ul li a:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

.footer-col ul li a:hover::before {
  transform: translateX(2px);
  color: var(--secondary-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand img {
  max-height: 70px;
  width: auto;
  background-color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.footer-brand .org-name {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.footer-brand .org-email {
  color: #A8C9B7;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-brand .org-email:hover {
  color: #FFFFFF;
}

.footer-bottom {
  background-color: #084A26;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: #A8C9B7;
}

.legal-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.legal-links a {
  color: #A8C9B7;
}

.legal-links a:hover {
  color: #FFFFFF;
}

/* 9. UTILITIES */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* 10. RESPONSIVE */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section { padding: 48px 0; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .legal-links {
    justify-content: center;
  }
}

/* 11. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}