/* BusinessFund Pro - Main Stylesheet */
/* Mobile-first responsive design with accessibility focus */

:root {
  /* Brand Colors */
  --primary-color: #1e40af;
  --primary-hover: #1d4ed8;
  --secondary-color: #059669;
  --accent-color: #dc2626;
  
  /* Neutral Colors */
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-white: #ffffff;
  --background-light: #f9fafb;
  --background-white: #ffffff;
  --border-color: #e5e7eb;
  --border-focus: #3b82f6;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-headings: Georgia, "Times New Roman", serif;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 3rem 1rem;
  --card-padding: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover, a:focus {
  color: var(--primary-hover);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Layout Components */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: var(--section-padding);
}

.section--primary {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.section--light {
  background-color: var(--background-light);
}

/* Header and Navigation */
.header {
  background: var(--background-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  flex-wrap: wrap;
}

.nav__brand {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav__brand:hover, .nav__brand:focus {
  text-decoration: none;
  color: var(--primary-hover);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: 0.5rem;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.nav__link:hover, .nav__link:focus {
  text-decoration: none;
  border-bottom-color: var(--primary-color);
}

.nav__link--active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.nav__cta {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  border-bottom: none !important;
}

.nav__cta:hover, .nav__cta:focus {
  background: var(--primary-hover);
  color: var(--text-white);
  text-decoration: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }
  
  .nav__menu {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--background-white);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }
  
  .nav__menu--open {
    display: flex;
  }
  
  .nav__link {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
  
  .nav {
    position: relative;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--text-white);
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/assets/img/placeholder-hero-bg.jpg') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.hero__stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  line-height: 1.2;
  min-height: 44px;
}

.btn--primary {
  background: var(--primary-color);
  color: var(--text-white);
}

.btn--primary:hover, .btn--primary:focus {
  background: var(--primary-hover);
  color: var(--text-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn--secondary:hover, .btn--secondary:focus {
  background: var(--text-white);
  color: var(--primary-color);
  text-decoration: none;
}

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
  display: block;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--background-white);
  border-radius: 8px;
  padding: var(--card-padding);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-white);
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card__text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin: 3rem 0;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 2;
}

.process-step__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.process-step__text {
  color: var(--text-light);
}

/* FAQ Accordion */
.faq {
  max-width: 800px;
  margin: 3rem auto;
}

.faq__item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  background: var(--background-light);
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
  color: var(--text-dark);
}

.faq__question:hover, .faq__question:focus {
  background: var(--border-color);
}

.faq__question[aria-expanded="true"] {
  background: var(--primary-color);
  color: var(--text-white);
}

.faq__icon {
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq__answer--open {
  padding: 1.5rem;
  max-height: 500px;
}

.faq__answer p {
  color: var(--text-light);
}

/* Testimonials */
.testimonials-slider {
  position: relative;
  max-width: 900px;
  margin: 3rem auto;
  overflow: hidden;
  border-radius: 12px;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial {
  min-width: 100%;
  background: var(--background-white);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.testimonial__quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__info h4 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.testimonial__info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonials-btn {
  background: var(--border-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

.testimonials-btn:hover, .testimonials-btn:focus {
  background: var(--primary-color);
  color: var(--text-white);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonials-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonials-dot--active {
  background: var(--primary-color);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--background-white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--accent-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-help {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--text-white);
  padding: 3rem 1rem 1rem;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__section h3 {
  color: var(--text-white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-fast);
}

.footer__links a:hover, .footer__links a:focus {
  color: var(--text-white);
}

.footer__contact p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer__disclaimer {
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.5;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
  .section {
    padding: 4rem 1rem;
  }
  
  .hero {
    padding: 6rem 1rem;
  }
  
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 1rem;
  }
  
  .hero {
    padding: 8rem 1rem;
  }
}

/* Print Styles */
@media print {
  .nav, .footer, .btn, .testimonials-nav {
    display: none;
  }
  
  .hero {
    background: none;
    color: var(--text-dark);
  }
  
  .section {
    padding: 1rem 0;
  }
}
