@import "tailwindcss" source(none);
@source "../src";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

@theme inline {
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary-dark: var(--primary-dark);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-surface: var(--surface);
  --shadow-card: 0 10px 30px -12px color-mix(in oklab, var(--primary) 25%, transparent);
  --shadow-soft: 0 4px 20px -4px oklch(0 0 0 / 0.08);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --gradient-hero: linear-gradient(180deg, oklch(0 0 0 / 0) 0%, oklch(0 0 0 / 0.7) 100%);
}

:root {
  --radius: 0.5rem;
  /* DSAG yellow + blue palette */
  --background: oklch(1 0 0);
  --foreground: oklch(0.22 0.06 255);
  --surface: oklch(0.975 0.015 95);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.22 0.06 255);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.22 0.06 255);
  --primary: oklch(0.45 0.18 255);           /* deep blue */
  --primary-dark: oklch(0.32 0.16 258);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.96 0.03 95);
  --secondary-foreground: oklch(0.28 0.08 255);
  --accent: oklch(0.88 0.18 95);             /* warm yellow */
  --accent-foreground: oklch(0.22 0.08 255);
  --muted: oklch(0.96 0.01 250);
  --muted-foreground: oklch(0.5 0.03 255);
  --destructive: oklch(0.58 0.22 27);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.92 0.01 250);
  --input: oklch(0.92 0.01 250);
  --ring: oklch(0.45 0.18 255);
}

.dark {
  --background: oklch(0.16 0.04 258);
  --foreground: oklch(0.98 0.005 250);
  --surface: oklch(0.21 0.05 258);
  --card: oklch(0.21 0.05 258);
  --card-foreground: oklch(0.98 0.005 250);
  --popover: oklch(0.21 0.05 258);
  --popover-foreground: oklch(0.98 0.005 250);
  --primary: oklch(0.7 0.16 252);
  --primary-dark: oklch(0.55 0.18 258);
  --primary-foreground: oklch(0.14 0.04 258);
  --secondary: oklch(0.27 0.05 258);
  --secondary-foreground: oklch(0.98 0 0);
  --accent: oklch(0.85 0.17 90);
  --accent-foreground: oklch(0.18 0.04 258);
  --muted: oklch(0.27 0.05 258);
  --muted-foreground: oklch(0.7 0.02 256);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.7 0.16 252);
}

@layer base {
  * { border-color: var(--color-border); }
  html { scroll-behavior: smooth; }
  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Photo enhancement — gentle pop to make community photos feel sharp & vivid */
.img-enhance {
  filter: contrast(1.06) saturate(1.12) brightness(1.02);
  image-rendering: -webkit-optimize-contrast;
}
.img-enhance-strong {
  filter: contrast(1.1) saturate(1.18) brightness(1.04);
  image-rendering: -webkit-optimize-contrast;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Apply subtle enhancement to all content photos for a polished, NGO-ready look */
main img, main video {
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
  image-rendering: -webkit-optimize-contrast;
}
/* Skip filter for logos and partner marks */
main img.no-enhance, main .partner-logo img, main [data-no-enhance] img {
  filter: none;
}

/* Crisper testimonial portraits */
.testimonial-sharp {
  filter: contrast(1.1) saturate(1.15) brightness(1.03);
  image-rendering: -webkit-optimize-contrast;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}
