/* SIGMAtools Custom Styles */

/* Mountain hero background */
.hero-mountain {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #333333 0%, #4a4a4a 60%, #C41E3A 100%);
  min-height: 60vh;
}

/* SVG waveform animation */
.waveform-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawWave 3s ease-in-out forwards;
}

.waveform-line:nth-child(2) {
  animation-delay: 0.5s;
}

.waveform-line:nth-child(3) {
  animation-delay: 1s;
}

@keyframes drawWave {
  to {
    stroke-dashoffset: 0;
  }
}

/* Subtle floating animation for waveform */
.wave-float {
  animation: waveFloat 6s ease-in-out infinite;
}

.wave-float-delayed {
  animation: waveFloat 6s ease-in-out 2s infinite;
}

@keyframes waveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Mountain SVG pulse on peaks */
.mountain-glow {
  filter: drop-shadow(0 0 8px rgba(196, 30, 58, 0.3));
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #C41E3A;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}

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

/* Sticky header shadow on scroll */
.header-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* Service card hover effect */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Client logo grid item */
.client-logo-item {
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.client-logo-item:hover {
  opacity: 1;
}

/* FAQ accordion styling */
details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 50%;
  background: #C41E3A;
  color: white;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

details[open] summary::before {
  content: '−';
  transform: rotate(0deg);
}

details[open] summary {
  margin-bottom: 8px;
}

/* Benefit card icon circle */
.benefit-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Process step connector line */
.process-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 2rem;
  height: 2px;
  background: #C41E3A;
}

.process-step:last-child::after {
  display: none;
}

/* Funding highlight box */
.funding-highlight {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border-left: 4px solid #C41E3A;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-mountain {
    min-height: auto;
  }

  .process-step::after {
    display: none;
  }
}

/* Cookie consent banner */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #333333;
  color: #ffffff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.cookie-consent-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  min-width: 200px;
}

.cookie-consent-link {
  color: #E8425A;
  text-decoration: underline;
}

.cookie-consent-link:hover {
  color: #ffffff;
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cookie-btn:hover {
  opacity: 0.85;
}

.cookie-btn-accept {
  background: #C41E3A;
  color: #ffffff;
}

.cookie-btn-decline {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Print styles */
@media print {
  .hero-mountain {
    min-height: auto;
    background: white;
    color: black;
  }

  nav, .language-switcher {
    display: none;
  }
}
