/* GreenMargins Marketing - Custom Styles */
/* Works with Tailwind CDN - no build step required */

/* ============================================ */
/* CSS VARIABLES */
/* ============================================ */
:root {
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-200: #a7f3d0;
  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-800: #065f46;
  --color-emerald-900: #064e3b;
  
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
}

/* ============================================ */
/* BASE STYLES */
/* ============================================ */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection highlight */
::selection {
  background-color: var(--color-emerald-200);
  color: var(--color-emerald-900);
}

/* ============================================ */
/* ANIMATIONS - GPU Composited for better performance */
/* ============================================ */
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

/* pulse-glow uses opacity for GPU compositing instead of box-shadow */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
  will-change: opacity;
  /* Static shadow instead of animated */
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Staggered delays */
.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }

/* ============================================ */
/* BUTTONS */
/* ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  background-color: var(--color-emerald-500);
  border-radius: 9999px;
  box-shadow: 0 10px 25px -3px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-emerald-600);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -3px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-slate-700);
  background-color: white;
  border: 2px solid var(--color-slate-200);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--color-emerald-300);
  background-color: var(--color-emerald-50);
}

/* ============================================ */
/* CARDS */
/* ============================================ */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* ============================================ */
/* GRADIENT TEXT */
/* ============================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-emerald-500), #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================ */
/* FOCUS STATES (Accessibility) */
/* ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-emerald-500);
  outline-offset: 2px;
}

/* ============================================ */
/* 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;
  }
}

/* ============================================ */
/* PRINT STYLES */
/* ============================================ */
@media print {
  .no-print,
  header,
  footer,
  .sticky {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ============================================ */
/* CUSTOM SCROLLBAR */
/* ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-slate-300);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-400);
}

/* ============================================ */
/* LOADING SKELETON */
/* ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-slate-200) 25%, var(--color-slate-100) 50%, var(--color-slate-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
