/* ========================================
   FLOWCAP FUNDING - MAIN STYLESHEET
   Premium UI/UX Enhancement
   ======================================== */

/* ===== GLOBAL RESET & BASE STYLES ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14.4px; /* 90% of 16px = 14.4px */
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-base);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--h1-size);
  letter-spacing: var(--letter-spacing-tight);
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

h5 {
  font-size: var(--h5-size);
}

h6 {
  font-size: var(--h6-size);
}

p {
  margin-bottom: var(--space-sm);
}

.text-large {
  font-size: var(--font-lg);
}

.text-muted {
  color: var(--text-muted);
}

/* ===== CONTAINER & LAYOUT ===== */

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-lg {
  padding: var(--space-5xl) 0;
}

/* ===== HEADER & NAVIGATION ===== */

/* Navbar Container with seamless gradient match */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--flowcap-navy) 0%, #001a3d 100%);
  box-shadow: 0 4px 16px rgba(0, 19, 49, 0.2);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
  /* CRITICAL: Isolate navbar from page-specific styles */
  contain: layout style;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(1, 192, 211, 0.3), transparent);
}

/* Perfect flexbox alignment for nav container */
.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px; /* LOCKED: NEVER change this value - must be 80px on ALL pages */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  /* Force height to be respected */
  min-height: 80px;
  max-height: 80px;
}

/* Logo Container with subtle hover effect */
.navbar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.navbar-logo:hover {
  transform: scale(1.02);
}

/* Logo Image - Responsive with smooth loading */
.logo-image {
  height: 55px; /* LOCKED: NEVER change this value - must be 55px on ALL pages */
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  /* Force height to be respected */
  min-height: 55px;
  max-height: 55px;
}

/* Navigation Links with refined spacing */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;
  height: 100%;
}

.nav-links li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Enhanced nav link styling with smooth transitions */
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  position: relative;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Underline hover effect for nav links (exclude .nav-cta and .nav-phone) */
.nav-links a:not(.nav-cta):not(.nav-phone)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--flowcap-cyan);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-links a:not(.nav-cta):not(.nav-phone):hover {
  color: var(--flowcap-cyan);
  transform: translateY(-1px);
}

.nav-links a:not(.nav-cta):not(.nav-phone):hover::after {
  width: 80%;
}

/* Active state for current page (exclude .nav-cta and .nav-phone) */
.nav-links a:not(.nav-cta):not(.nav-phone).active,
.nav-links a:not(.nav-cta):not(.nav-phone)[style*="color: var(--flowcap-teal)"] {
  color: var(--flowcap-teal);
  font-weight: 600;
}

.nav-links a:not(.nav-cta):not(.nav-phone).active::after,
.nav-links a:not(.nav-cta):not(.nav-phone)[style*="color: var(--flowcap-teal)"]::after {
  width: 80%;
  background: var(--flowcap-teal);
}

/* Phone Number Item Container */
.nav-phone-item {
  display: flex;
  align-items: center;
  height: 100%;
}

/* Premium Phone Button with white border */
.nav-phone {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border: 2px solid #ffffff !important;
  border-radius: 8px !important;
  background: transparent !important;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1) !important;
  position: relative;
  overflow: hidden;
  white-space: nowrap !important;
  /* LOCKED: Force consistent sizing across all pages */
  min-height: 42px !important;
  box-sizing: border-box !important;
}

/* Subtle shimmer effect on phone button */
.nav-phone::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
  z-index: 0;
}

.nav-phone:hover::before {
  transform: translateX(100%);
}

/* Explicitly prevent underline on phone button */
.nav-phone::after {
  content: none !important;
}

.nav-phone:hover {
  background: #ffffff !important;
  color: var(--flowcap-navy) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.nav-phone span,
.nav-phone i {
  position: relative;
  z-index: 1;
}

.nav-phone i {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  flex-shrink: 0;
  display: inline-block;
}

.nav-phone:hover i {
  transform: rotate(10deg) scale(1.1);
}

/* Premium Teal CTA Button */
.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--flowcap-teal) !important;
  color: #ffffff !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1) !important;
  box-shadow: 0 4px 12px rgba(1, 185, 167, 0.3) !important;
  position: relative;
  overflow: hidden;
  white-space: nowrap !important;
  text-decoration: none !important;
  /* LOCKED: Force consistent sizing across all pages */
  min-height: 50px !important;
  box-sizing: border-box !important;
}

/* Explicitly prevent underline on CTA button */
.nav-cta::after {
  display: none !important;
}

/* Animated gradient background on hover */
.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--flowcap-cyan), var(--flowcap-teal));
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.nav-cta:hover::before {
  opacity: 1;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 192, 211, 0.4);
}

.nav-cta span {
  position: relative;
  z-index: 1;
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  z-index: 1001;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--flowcap-teal);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Hamburger animation when active */
.mobile-menu-toggle.active {
  background: rgba(1, 185, 167, 0.2);
  border-color: var(--flowcap-teal);
}

.mobile-menu-toggle.active .hamburger-line {
  background-color: var(--flowcap-teal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */

.hero {
  background: linear-gradient(135deg, var(--flowcap-navy) 0%, #001a3d 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}

/* Subtle animated gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient);
  opacity: 0.05;
  z-index: 0;
  animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    opacity: 0.05;
    transform: scale(1) translateX(0);
  }
  50% {
    opacity: 0.08;
    transform: scale(1.1) translateX(20px);
  }
}

/* Decorative elements for depth */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--flowcap-cyan), var(--flowcap-teal), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-text h1 {
  color: var(--flowcap-white);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text .gradient-text {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% 200%;
}

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

.hero-text p {
  color: var(--flowcap-light);
  font-size: var(--font-lg);
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-relaxed);
  animation: fadeInUp 0.6s 0.15s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

.hero-image {
  position: relative;
  animation: fadeInRight 0.8s 0.2s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image img {
  width: 100%;
  border-radius: var(--border-radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-image:hover img {
  transform: scale(1.02) translateY(-8px);
  box-shadow: 0 30px 60px -12px rgba(1, 192, 211, 0.3);
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--border-radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Button ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--flowcap-action);
  color: var(--flowcap-white);
  border-color: var(--flowcap-action);
  box-shadow: 0 4px 12px rgba(1, 185, 167, 0.3);
}

.btn-primary:hover {
  background: var(--flowcap-action-hover);
  border-color: var(--flowcap-action-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 185, 167, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--flowcap-white);
  border-color: var(--flowcap-white);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.btn-secondary:hover {
  background: var(--flowcap-white);
  color: var(--flowcap-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--flowcap-blue);
  border-color: var(--flowcap-blue);
}

.btn-outline:hover {
  background: var(--flowcap-blue);
  color: var(--flowcap-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 144, 222, 0.3);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-lg);
}

.btn i {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.btn:hover i {
  transform: translateX(4px);
}

/* ===== CARDS ===== */

.card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  height: 100%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Premium hover effect with elevation and glow */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12),
              0 10px 10px -5px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(1, 192, 211, 0.1);
  border-color: rgba(1, 192, 211, 0.2);
}

/* Subtle gradient border on hover */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--border-radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--flowcap-cyan), var(--flowcap-teal));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.card:hover::before {
  opacity: 0.3;
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 12px rgba(1, 192, 211, 0.25);
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(1, 192, 211, 0.4);
}

.card-icon i {
  width: 28px;
  height: 28px;
  color: var(--flowcap-white);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.card:hover .card-icon i {
  transform: scale(1.15);
}

.card-title {
  font-size: var(--font-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  transition: color 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.card:hover .card-title {
  color: var(--flowcap-blue);
}

.card-text {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===== GRID LAYOUTS ===== */

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

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

/* ===== BENEFITS/FEATURES SECTION ===== */

.benefits-section {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

.section-title {
  font-size: var(--h2-size);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-lg);
  color: var(--text-secondary);
}

/* ===== STATISTICS SECTION ===== */

.stats-section {
  background: var(--flowcap-navy);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient);
  opacity: 0.08;
  animation: gradientShift 20s ease-in-out infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: var(--space-lg);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: var(--font-5xl);
  font-weight: var(--weight-bold);
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-sm);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

.stat-label {
  color: var(--flowcap-light);
  font-size: var(--font-lg);
  font-weight: var(--weight-medium);
}

/* ===== TESTIMONIALS SECTION ===== */

.testimonial-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 80px;
  font-weight: 700;
  color: var(--flowcap-cyan);
  opacity: 0.1;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(1, 192, 211, 0.1);
}

.testimonial-text {
  font-size: var(--font-lg);
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-loose);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  object-fit: cover;
  border: 3px solid var(--flowcap-cyan);
  box-shadow: 0 4px 12px rgba(1, 192, 211, 0.3);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.testimonial-card:hover .author-avatar {
  transform: scale(1.1);
  border-color: var(--flowcap-teal);
}

.author-info h4 {
  font-size: var(--font-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.author-info p {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== FAQ SECTION ===== */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(1, 192, 211, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--font-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq-question:hover {
  color: var(--flowcap-blue);
  background: rgba(1, 192, 211, 0.02);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--flowcap-cyan);
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--flowcap-teal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.faq-answer-content {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.faq-answer-content ul {
  margin: var(--space-sm) 0;
  padding-left: var(--space-lg);
}

.faq-answer-content li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

.faq-answer-content strong {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

/* ===== CTA SECTION ===== */

.cta-section {
  background: var(--flowcap-navy);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-gradient);
  opacity: 0.15;
  z-index: 0;
  animation: gradientShift 15s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--flowcap-white);
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

.cta-content p {
  color: var(--flowcap-light);
  font-size: var(--font-lg);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s 0.15s cubic-bezier(0.33, 1, 0.68, 1) backwards;
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--flowcap-dark-navy);
  color: var(--flowcap-light);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--flowcap-cyan), var(--flowcap-teal), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-section h3 {
  color: var(--flowcap-white);
  font-size: var(--font-xl);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--bg-gradient);
  border-radius: 2px;
}

.footer-section p {
  color: var(--flowcap-gray-light);
  line-height: var(--line-height-relaxed);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--flowcap-gray-light);
  transition: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--flowcap-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: var(--flowcap-gray-light);
  font-size: var(--font-sm);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  color: var(--flowcap-gray-light);
  font-size: var(--font-sm);
  transition: color 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.footer-bottom-links a:hover {
  color: var(--flowcap-cyan);
}

/* ===== UTILITY CLASSES ===== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden {
  display: none;
}

/* ===== ACCESSIBILITY ===== */

/* Focus visible states for keyboard navigation */
.btn:focus-visible,
.nav-links a:focus-visible,
.faq-question:focus-visible {
  outline: 3px solid var(--flowcap-cyan);
  outline-offset: 3px;
  border-radius: var(--border-radius-md);
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--flowcap-teal);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid currentColor;
  }

  .btn {
    border-width: 3px;
  }
}
