/* Sweet Funds - Custom Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing */
  --section-padding: 5rem 0;
  --container-padding: 0 1rem;
  
  /* Borders */
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-color: var(--gray-200);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
}

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

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.display-4 {
  font-weight: 700;
  line-height: 1.1;
}

.lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--gray-600);
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  background: rgba(37, 99, 235, 0.95) !important;
  backdrop-filter: blur(20px);
}

.navbar-brand {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: white !important;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: white !important;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-xl);
  margin-bottom: 2rem;
}

.hero-buttons .btn {
  margin: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Sections */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

/* About Section */
#about {
  background-color: var(--light-color);
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services Section */
.service-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.service-card h3 {
  color: var(--gray-900);
  margin-bottom: 1rem;
  font-size: var(--font-size-xl);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
  text-align: left;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Testimonials Section */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-rating {
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  font-size: var(--font-size-lg);
}

.testimonial-author strong {
  color: var(--gray-900);
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-author small {
  color: var(--gray-500);
}

/* Newsletter Section */
#newsletter {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

#newsletter h2 {
  color: white;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form .form-control {
  border: none;
  padding: 1rem;
  font-size: var(--font-size-lg);
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

.newsletter-form .btn {
  border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
  padding: 1rem 2rem;
  font-weight: 600;
  border: none;
  background-color: white;
  color: var(--primary-color);
}

.newsletter-form .btn:hover {
  background-color: var(--gray-100);
  color: var(--primary-dark);
}

/* Contact Section */
.contact-info {
  text-align: center;
  padding: 2rem 1rem;
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-2xl);
}

.contact-info h4 {
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 0;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--gray-900) !important;
  color: white;
  padding: 3rem 0 2rem;
}

.footer-brand h5 {
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.footer h6 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-sm);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--gray-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--gray-900);
  color: white;
  padding: 1rem 0;
  z-index: 1050;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.cookie-buttons .btn {
  font-size: var(--font-size-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  white-space: nowrap;
}

/* Legal Pages */
.legal-page {
  padding: 8rem 0 4rem;
  background-color: var(--light-color);
}

.legal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-content h2 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  color: var(--gray-800);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-box {
  background-color: var(--gray-100);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
}

.contact-box p {
  margin-bottom: 0;
}

/* Success Page */
.success-page {
  padding: 8rem 0 4rem;
  background-color: var(--light-color);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.success-icon {
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.success-info {
  margin: 2rem 0;
}

.success-info ul {
  margin: 0;
}

.success-actions {
  margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }
  
  .hero {
    padding: 5rem 0 3rem;
  }
  
  .hero h1 {
    font-size: var(--font-size-3xl);
  }
  
  .hero .lead {
    font-size: var(--font-size-lg);
  }
  
  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .stat-number {
    font-size: var(--font-size-3xl);
  }
  
  .service-card {
    margin-bottom: 2rem;
  }
  
  .testimonial-card {
    margin-bottom: 2rem;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .cookie-buttons {
    justify-content: stretch;
  }
  
  .cookie-buttons .btn {
    flex: 1;
    min-width: auto;
  }
  
  .legal-content {
    padding: 2rem 1rem;
  }
  
  .newsletter-form .input-group {
    flex-direction: column;
  }
  
  .newsletter-form .form-control {
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
  }
  
  .newsletter-form .btn {
    border-radius: var(--border-radius-lg);
    width: 100%;
  }
  
  .footer .row > div {
    margin-bottom: 2rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: var(--font-size-2xl);
  }
  
  .legal-content {
    padding: 1.5rem;
  }
  
  .success-page {
    padding: 6rem 0 2rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .cookie-banner,
  .newsletter-section {
    display: none !important;
  }
  
  .legal-page,
  .success-page {
    padding: 2rem 0;
  }
  
  .legal-content {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0033cc;
    --border-color: #333333;
  }
  
  .service-card,
  .testimonial-card,
  .legal-content {
    border: 2px solid var(--gray-900);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .success-icon {
    animation: none;
  }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-600);
}
