/**
 * Neurlyn Pages CSS - Unified styles for About & Support pages
 * Matches the index page theme exactly
 */

/* Import the same color variables as index page */
:root {
  --primary-gradient: linear-gradient(135deg, #7c9885 0%, #6a8a73 100%);
  --soft-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
  --hover-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --nordic-white: #fafafa;
  --nordic-gray: #e8e8e8;
  --nordic-charcoal: #2c2c2c;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Body Background - Match index page */
body {
  background:
    radial-gradient(ellipse at top left, rgba(124, 152, 133, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(124, 152, 133, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  color: var(--nordic-charcoal);
}

/* Hero Sections - Matching index page hero style */
.about-hero,
.support-hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(135deg, rgba(124, 152, 133, 0.05) 0%, rgba(124, 152, 133, 0.02) 100%);
  border-radius: 1rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.about-hero::before,
.support-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.about-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2c2c2c 0%, #4a6b56 50%, #6a8a73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.support-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2c2c2c 0%, #4a6b56 50%, #6a8a73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.about-hero p,
.support-hero p {
  font-size: 1.25rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* About Page Sections */
.about-section {
  padding: 3rem 0;
}

.about-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--nordic-charcoal);
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* About Cards - Matching index page card style */
.about-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(124, 152, 133, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  box-shadow:
    0 1px 3px rgba(124, 152, 133, 0.05),
    0 4px 12px rgba(124, 152, 133, 0.05);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 3px rgba(124, 152, 133, 0.08),
    0 4px 12px rgba(124, 152, 133, 0.1),
    0 8px 24px rgba(124, 152, 133, 0.08);
  border-color: rgba(124, 152, 133, 0.25);
}

.about-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #4a6b56;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #6b6b6b;
  line-height: 1.6;
  margin: 0;
}

.about-icon {
  width: 24px;
  height: 24px;
  fill: #7c9885;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Methodology Section */
.methodology-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 255, 254, 0.98) 100%);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 24px;
  margin: 2rem 0;
  border: 1px solid rgba(124, 152, 133, 0.12);
  box-shadow:
    0 1px 2px rgba(124, 152, 133, 0.05),
    0 4px 8px rgba(124, 152, 133, 0.05),
    0 8px 24px rgba(124, 152, 133, 0.08);
}

.methodology-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--nordic-charcoal);
  margin-bottom: 1rem;
}

.methodology-description {
  color: #666;
  margin: 1rem 0;
  line-height: 1.6;
}

.trait-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.trait-item {
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(124, 152, 133, 0.12);
  border-left: 3px solid #7c9885;
  transition: all 0.3s ease;
}

.trait-item:hover {
  background: rgba(124, 152, 133, 0.04);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(124, 152, 133, 0.1);
}

.trait-item strong {
  font-family: 'Space Grotesk', sans-serif;
  color: #4a6b56;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.trait-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #6b6b6b;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
}

.faq-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--nordic-charcoal);
  margin-bottom: 2rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(124, 152, 133, 0.12);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(124, 152, 133, 0.08);
  border-color: rgba(124, 152, 133, 0.2);
}

.faq-question {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: #4a6b56;
  margin-bottom: 0.5rem;
}

.faq-answer {
  color: #6b6b6b;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 255, 254, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid rgba(124, 152, 133, 0.12);
  box-shadow:
    0 1px 2px rgba(124, 152, 133, 0.05),
    0 4px 8px rgba(124, 152, 133, 0.05),
    0 8px 24px rgba(124, 152, 133, 0.08);
}

.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--nordic-charcoal);
  margin-bottom: 1rem;
}

.cta-description {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Button styles matching index page exactly */
.cta-button {
  padding: 0.8rem 2.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-primary {
  background: linear-gradient(135deg, #7c9885 0%, #6a8a73 100%);
  color: white;
  border: 1px solid transparent;
  box-shadow:
    0 2px 4px rgba(124, 152, 133, 0.2),
    0 4px 12px rgba(124, 152, 133, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-primary:hover {
  background: linear-gradient(135deg, #8ca595 0%, #7c9885 100%);
  box-shadow:
    0 4px 8px rgba(124, 152, 133, 0.25),
    0 8px 20px rgba(124, 152, 133, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.cta-secondary {
  background: white;
  color: #7c9885;
  border: 1px solid rgba(124, 152, 133, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cta-secondary:hover {
  background: rgba(124, 152, 133, 0.05);
  border-color: rgba(124, 152, 133, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 152, 133, 0.15);
}

/* Disclaimer Box */
.disclaimer-box {
  background: #fef8e8;
  border: 1px solid #f5d565;
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem 0;
}

.disclaimer-text {
  margin: 0;
  color: #8b6914;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Support Page Sections */
.resources-section {
  margin-top: 3rem;
}

.resources-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--nordic-charcoal);
  margin-bottom: 2rem;
}

/* Crisis Section */
.crisis-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 255, 254, 0.98) 100%);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 24px;
  margin: 4rem 0 3rem;
  border: 1px solid rgba(124, 152, 133, 0.12);
  box-shadow:
    0 1px 2px rgba(124, 152, 133, 0.05),
    0 4px 8px rgba(124, 152, 133, 0.05),
    0 8px 24px rgba(124, 152, 133, 0.08);
}

.crisis-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--nordic-charcoal);
  margin-bottom: 1rem;
}

.crisis-description {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Crisis and Resource Grids */
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

/* Crisis and Resource Cards - Matching index page card style */
.crisis-card,
.resource-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(124, 152, 133, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow:
    0 1px 3px rgba(124, 152, 133, 0.05),
    0 4px 12px rgba(124, 152, 133, 0.05);
}

.crisis-card:hover,
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 3px rgba(124, 152, 133, 0.08),
    0 4px 12px rgba(124, 152, 133, 0.1),
    0 8px 24px rgba(124, 152, 133, 0.08);
  border-color: rgba(124, 152, 133, 0.25);
}

.resource-card {
  border-left: 3px solid #7c9885;
}

.crisis-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: #4a6b56;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.resource-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: #4a6b56;
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.crisis-icon {
  width: 20px;
  height: 20px;
  fill: #7c9885;
  opacity: 0.9;
}

/* Links */
.crisis-links,
.resource-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.crisis-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: rgba(124, 152, 133, 0.04);
  border: 1px solid rgba(124, 152, 133, 0.12);
  border-radius: 8px;
  text-decoration: none;
  color: var(--nordic-charcoal);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.crisis-link:hover {
  background: rgba(124, 152, 133, 0.08);
  border-color: rgba(124, 152, 133, 0.25);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(124, 152, 133, 0.1);
}

.resource-link {
  color: #7c9885;
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(124, 152, 133, 0.08);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.resource-link:hover {
  color: #6a8a73;
  padding-left: 0.5rem;
  border-bottom-color: rgba(124, 152, 133, 0.2);
}

/* Back Button - Matching index page button style */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7c9885 0%, #6a8a73 100%);
  color: white;
  padding: 0.8rem 2.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 2rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 2px 4px rgba(124, 152, 133, 0.2),
    0 4px 12px rgba(124, 152, 133, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.back-button:hover {
  background: linear-gradient(135deg, #8ca595 0%, #7c9885 100%);
  box-shadow:
    0 4px 8px rgba(124, 152, 133, 0.25),
    0 8px 20px rgba(124, 152, 133, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.back-button svg {
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

/* Footer - Consistent styling */
.footer {
  background: linear-gradient(135deg, rgba(124, 152, 133, 0.02) 0%, rgba(124, 152, 133, 0.01) 100%);
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(124, 152, 133, 0.08);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #666;
  font-size: 0.875rem;
}

.footer-content a {
  color: #7c9885;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #6a8a73;
  text-decoration: underline;
}

.footer-separator {
  color: #d0d0d0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .about-hero h1,
  .support-hero h1 {
    font-size: 2rem;
  }

  .about-hero p,
  .support-hero p {
    font-size: 1rem;
  }

  .crisis-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .trait-list {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .crisis-card,
  .resource-card,
  .about-card {
    padding: 1.25rem;
  }

  .methodology-section,
  .crisis-section,
  .cta-section {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
}

/* Animations matching index page */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Apply animations */
.about-card,
.resource-card,
.crisis-card {
  animation: fadeInScale 0.6s ease-out both;
}

.about-card:nth-child(1) {
  animation-delay: 0.1s;
}
.about-card:nth-child(2) {
  animation-delay: 0.2s;
}
.about-card:nth-child(3) {
  animation-delay: 0.3s;
}

.resource-card:nth-child(1) {
  animation-delay: 0.1s;
}
.resource-card:nth-child(2) {
  animation-delay: 0.15s;
}
.resource-card:nth-child(3) {
  animation-delay: 0.2s;
}
.resource-card:nth-child(4) {
  animation-delay: 0.25s;
}
.resource-card:nth-child(5) {
  animation-delay: 0.3s;
}
.resource-card:nth-child(6) {
  animation-delay: 0.35s;
}

.trait-item {
  animation: slideInUp 0.5s ease-out both;
}

.trait-item:nth-child(1) {
  animation-delay: 0.1s;
}
.trait-item:nth-child(2) {
  animation-delay: 0.15s;
}
.trait-item:nth-child(3) {
  animation-delay: 0.2s;
}
.trait-item:nth-child(4) {
  animation-delay: 0.25s;
}
.trait-item:nth-child(5) {
  animation-delay: 0.3s;
}
.trait-item:nth-child(6) {
  animation-delay: 0.35s;
}
