/* ============================================
   AVNI SOMA CAMPAIGN - STYLES
   ============================================ */

/* -- CSS Variables -- */
:root {
  /* NDP Orange - but refined */
  --color-primary: #F26222;
  --color-primary-dark: #D94E10;
  --color-primary-light: #FF7A3D;
  
  /* Warm neutrals */
  --color-bg: #FDFBF7;
  --color-bg-alt: #F5F0E8;
  --color-surface: #FFFFFF;
  
  /* Text */
  --color-text: #1A1715;
  --color-text-muted: #6B635A;
  --color-text-light: #9C9387;
  
  /* Accents */
  --color-accent: #2D4A3E;
  --color-accent-light: #E8F0EC;
  
  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* -- Utilities -- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  color: var(--color-primary);
}

.section-header {
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 98, 34, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-nav {
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: white;
}

.btn-nav:hover {
  background: var(--color-primary-dark);
}

.btn-full {
  width: 100%;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  position: fixed;
  top: var(--space-sm);
  right: 180px; /* Clear the nav "Get Involved" button */
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  background: var(--color-primary);
  color: white;
}

.lang-divider {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .lang-switcher {
    top: auto;
    bottom: var(--space-sm);
    right: var(--space-sm); /* Reset for mobile */
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .lang-switcher {
    right: 200px; /* Extra room at awkward widths */
  }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--ease-out);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links .btn {
  color: white;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-bg);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    transition: right 0.4s var(--ease-out);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.25rem;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(242, 98, 34, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(45, 74, 62, 0.06) 0%, transparent 50%),
    linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-content {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  animation: fadeUp 1s var(--ease-out) 0.2s both;
}

.hero-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

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

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-style: italic;
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  line-height: 1.3;
}

.hero-tagline-en {
  display: block;
  font-size: 0.7em;
  color: var(--color-text-muted);
  margin-top: 0.25em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  animation: fadeUp 1s var(--ease-out) 0.6s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.about-image-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--color-bg-alt);
  border-radius: 8px;
  overflow: hidden;
}

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.about-text p {
  margin-bottom: var(--space-sm);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ============================================
   VISION
   ============================================ */
.vision {
  background: var(--color-text);
  color: var(--color-bg);
}

.vision .section-label {
  color: var(--color-primary-light);
}

.vision .section-title {
  color: var(--color-bg);
}

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

.vision-card {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.vision-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.vision-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.vision-card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.vision-card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(253, 251, 247, 0.7);
}

/* ============================================
   STATEMENT
   ============================================ */
.statement {
  background: var(--color-bg-alt);
  text-align: center;
}

.statement-quote {
  max-width: 900px;
  margin: 0 auto;
}

.statement-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.statement-quote cite {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
  background: var(--color-bg);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.timeline-item:last-child {
  border-bottom: none;
}

@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

.timeline-date {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding-top: 4px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================
   GET INVOLVED
   ============================================ */
.involved {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1E332A 100%);
  color: white;
}

.involved .section-label {
  color: rgba(255, 255, 255, 0.6);
}

.involved .section-title {
  color: white;
}

.involved .section-title em {
  color: var(--color-primary-light);
}

.involved-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .involved-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.involved-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.involved-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: var(--space-md);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.12);
}

.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.form .btn-primary {
  margin-top: var(--space-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.footer-links a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: white;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-xs);
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   SCHOOL FOOD
   ============================================ */
.school-food {
  background: var(--color-bg-alt);
}

.school-food-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 900px) {
  .school-food-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.school-food-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.school-food-text p {
  margin-bottom: var(--space-sm);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  background: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-bg-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   ABOUT LANGUAGES
   ============================================ */
.about-languages {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .vision-card,
  .timeline-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s var(--ease-out) forwards;
  }
  
  .vision-card:nth-child(1) { animation-delay: 0.1s; }
  .vision-card:nth-child(2) { animation-delay: 0.2s; }
  .vision-card:nth-child(3) { animation-delay: 0.3s; }
  .vision-card:nth-child(4) { animation-delay: 0.4s; }
  
  .timeline-item:nth-child(1) { animation-delay: 0.1s; }
  .timeline-item:nth-child(2) { animation-delay: 0.2s; }
  .timeline-item:nth-child(3) { animation-delay: 0.3s; }
  .timeline-item:nth-child(4) { animation-delay: 0.4s; }
  .timeline-item:nth-child(5) { animation-delay: 0.5s; }
  
  .gallery-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s var(--ease-out) forwards;
  }
  
  .gallery-item:nth-child(1) { animation-delay: 0.1s; }
  .gallery-item:nth-child(2) { animation-delay: 0.15s; }
  .gallery-item:nth-child(3) { animation-delay: 0.2s; }
  .gallery-item:nth-child(4) { animation-delay: 0.25s; }
  .gallery-item:nth-child(5) { animation-delay: 0.3s; }
  .gallery-item:nth-child(6) { animation-delay: 0.35s; }
}

