/* Trust Digital - Custom Styles */

/* CSS Variables for Theme Colors */
:root {
  /* Professional trust-focused color scheme for nonprofit services */
  --background: 210 20% 98%;
  --foreground: 215 25% 15%;
  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 25% 15%;
  /* Primary: Deep trustworthy blue */
  --primary: 210 85% 42%;
  --primary-foreground: 0 0% 100%;
  /* Secondary: Warm teal for support */
  --secondary: 180 45% 55%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 20% 94%;
  --muted-foreground: 215 15% 45%;
  /* Accent: Very light blue for highlights */
  --accent: 210 50% 96%;
  --accent-foreground: 215 25% 15%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 215 20% 88%;
  --input: 215 20% 88%;
  --ring: 210 85% 42%;
}

.dark {
  --background: 215 28% 12%;
  --foreground: 210 20% 95%;
  --card: 215 25% 16%;
  --card-foreground: 210 20% 95%;
  --popover: 215 25% 16%;
  --popover-foreground: 210 20% 95%;
  --primary: 210 85% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 180 40% 45%;
  --secondary-foreground: 0 0% 100%;
  --muted: 215 25% 20%;
  --muted-foreground: 215 15% 65%;
  --accent: 215 25% 20%;
  --accent-foreground: 210 20% 95%;
  --destructive: 0 62% 45%;
  --destructive-foreground: 0 0% 100%;
  --border: 215 25% 24%;
  --input: 215 25% 24%;
  --ring: 210 85% 55%;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(217.2 91.2% 69.8%));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Smooth Transitions */
a, button {
  transition: all 0.2s ease-in-out;
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary));
}

/* Animation for Toast */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-enter {
  animation: slideIn 0.3s ease-out;
}

.toast-exit {
  animation: slideOut 0.3s ease-in;
}

/* Form Input Styles */
input:focus,
textarea:focus {
  border-color: hsl(var(--primary));
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 0.6;
}

/* Button Hover Effects */
button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

/* Card Hover Effects */
.hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .hover\:shadow-lg:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Animation */
#mobile-menu {
  transition: max-height 0.3s ease-in-out;
  overflow: hidden;
}

#mobile-menu.show {
  display: block;
}

/* Loading Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  #contact {
    display: none;
  }
}
