/* ==========================================================================
   OPIVAMP BRAND DESIGN SYSTEM
   Strategic Funding & Grant Consulting Platform
   ========================================================================== */

:root {
  /* Color Palette - Premium Boutique Consulting */
  --color-navy-950: #070e1b;
  --color-navy-900: #0a192f;
  --color-navy-800: #0f274a;
  --color-navy-700: #173863;
  --color-navy-600: #1e4b85;
  
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --color-blue-700: #1d4ed8;
  --color-blue-50: #eff6ff;
  --color-blue-100: #dbeafe;

  --color-gold-600: #d97706;
  --color-gold-500: #f59e0b;
  --color-gold-700: #b45309;
  --color-gold-50: #fffbeb;
  --color-gold-100: #fef3c7;

  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;

  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-error: #ef4444;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout & Container */
  --container-max: 1240px;
  --container-narrow: 860px;
  --container-wide: 1380px;
  --header-height: 80px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-soft-card: 0 12px 32px -8px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-slate-700);
  background-color: var(--color-white);
  overflow-x: hidden;
}

/* Focus state for accessibility */
:focus-visible {
  outline: 2px solid var(--color-blue-600);
  outline-offset: 2px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy-950);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
  line-height: 1.3;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-blue-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-blue-700);
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

/* Section Spacing */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
}

.section-sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.section-lg {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.bg-light {
  background-color: var(--color-slate-50);
}

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

.bg-navy {
  background-color: var(--color-navy-950);
  color: var(--color-slate-300);
}

.bg-navy h1, 
.bg-navy h2, 
.bg-navy h3, 
.bg-navy h4 {
  color: var(--color-white);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-16);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-blue-600);
  background-color: var(--color-blue-50);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.bg-navy .section-eyebrow {
  color: #93c5fd;
  background-color: rgba(37, 99, 235, 0.2);
  border-color: rgba(147, 197, 253, 0.25);
}

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

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-slate-600);
  line-height: 1.6;
}

.bg-navy .section-subtitle {
  color: var(--color-slate-300);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Luminous Glint / Shimmer Wave Effect on Hover */
.btn::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
  transition: none;
  z-index: 2;
}

.btn:hover::after {
  left: 145%;
  opacity: 1;
  transition: left 0.75s ease-in-out, opacity 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
}

/* Primary Button (Electric Blue Glow) */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: var(--color-white);
  box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.55), 0 0 20px rgba(59, 130, 246, 0.4);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Secondary Button (Refined Card Lift & Radiant Blue Border) */
.btn-secondary {
  background-color: var(--color-white);
  color: var(--color-navy-950);
  border-color: var(--color-slate-300);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-blue-600);
  border-color: var(--color-blue-600);
  box-shadow: 0 10px 25px -3px rgba(37, 99, 235, 0.22), 0 0 14px rgba(37, 99, 235, 0.15);
}

/* Outline White Button (Frosted Glass with Luminous Inversion) */
.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-navy-950);
  border-color: var(--color-white);
  box-shadow: 0 10px 25px -3px rgba(255, 255, 255, 0.45), 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Gold Button (Warm Prestige Amber Glow) */
.btn-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: var(--color-white);
  box-shadow: 0 10px 25px -3px rgba(217, 119, 6, 0.6), 0 0 20px rgba(245, 158, 11, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: var(--text-xs);
}

.btn-icon {
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn-icon,
.btn:hover svg {
  transform: translateX(4px) scale(1.12);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-blue {
  background-color: var(--color-blue-50);
  color: var(--color-blue-700);
  border: 1px solid var(--color-blue-100);
}

.badge-gold {
  background-color: var(--color-gold-50);
  color: var(--color-gold-700);
  border: 1px solid var(--color-gold-100);
}

.badge-slate {
  background-color: var(--color-slate-100);
  color: var(--color-slate-700);
  border: 1px solid var(--color-slate-200);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* Subtle Card */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-slate-300);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--color-gold-600); }
.text-blue { color: var(--color-blue-600); }
.text-muted { color: var(--color-slate-500); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--color-navy-950);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}
