/* ===== SUBPAGES STYLES ===== */

/* Navbar on subpages - solid dark background */
#navbar {
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

/* Ensure nav links are readable */
.nav-links a {
  position: relative;
  z-index: 10;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
}

.page-header-content {
  max-width: 700px;
  margin: 0 auto;
}

.page-header .tag {
  margin-bottom: var(--space-md);
}

.page-header h1 {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: var(--space-3xl) 0 var(--space-4xl);
}

.content-section {
  margin-bottom: var(--space-3xl);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.content-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-base);
}

.content-section a:hover {
  color: var(--brand-blue);
}

.content-section em {
  font-style: italic;
  color: var(--accent);
}

/* ===== LEGAL CONTENT (Privacy, Terms) ===== */
.legal-content .content-section h2 {
  font-size: 1.25rem;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

.legal-content li strong {
  color: var(--text-primary);
}

.legal-content ul ul,
.legal-content ol ul {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

/* Contact info box */
.contact-info-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-lg);
}

.contact-info-box p {
  margin-bottom: var(--space-xs);
}

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

/* ===== VALUES GRID (About page) ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  border-color: var(--brand-blue);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card:hover .value-icon {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--glow-blue);
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  margin-top: var(--space-3xl);
}

.cta-section h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.cta-section p {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

/* ===== CASE STUDY CARD ===== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--glow-cyan);
  border-color: var(--brand-blue);
}

.case-study-image {
  width: 100%;
  height: 200px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-image--cyan    { background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%); }
.case-study-image--purple  { background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%); }
.case-study-image--warm    { background: linear-gradient(135deg, #f97316 0%, #eab308 100%); }
.case-study-image--emerald { background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%); }
.case-study-image--indigo  { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }

.case-study-image svg {
  width: 64px;
  height: 64px;
  color: white;
  opacity: 0.8;
}

.case-study-content {
  padding: var(--space-xl);
}

.case-study-content .tag {
  margin-bottom: var(--space-md);
}

.case-study-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.case-study-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.case-study-stats {
  display: flex;
  gap: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.case-study-stat {
  text-align: center;
}

.case-study-stat .value {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.case-study-stat .label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== FAQ SECTION ===== */
.faq-list {
  margin-top: var(--space-xl);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: var(--bg-card);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--transition-base);
}

.faq-question:hover {
  background: var(--bg-soft);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

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

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs svg {
  width: 16px;
  height: 16px;
}

.breadcrumbs span {
  color: var(--text-primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-header {
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

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

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .page-content {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .content-section {
    margin-bottom: var(--space-2xl);
  }

  .content-section h2 {
    font-size: 1.25rem;
  }

  .legal-content ul,
  .legal-content ol {
    padding-left: var(--space-md);
  }
}