/* ==========================================================================
   Shared Styles for Division Pages
   ========================================================================== */

/* Division Hero */
.division-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
  overflow: hidden;
}

.division-hero-content {
  max-width: 800px;
  text-align: center;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out;
}

.division-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 24px;
  color: var(--color-blue-light);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

.division-badge svg {
  width: 20px;
  height: 20px;
}

.division-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.division-hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: var(--color-gray-300);
  margin-bottom: var(--space-xl);
}

.division-hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Division Sections */
.division-section {
  padding: var(--space-3xl) var(--space-lg);
}

.section-alt {
  background: rgba(26, 41, 66, 0.5);
}

.section-header {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-gray-300);
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(26, 41, 66, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-blue-electric);
}

.service-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.service-description {
  color: var(--color-gray-300);
  line-height: 1.6;
}

/* Process Flow */
.process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .process-flow::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(
      90deg,
      rgba(37, 99, 235, 0.1) 0%,
      rgba(37, 99, 235, 0.5) 50%,
      rgba(37, 99, 235, 0.1) 100%
    );
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-blue-electric) 0%, var(--color-blue-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-lg);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.process-title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.process-description {
  color: var(--color-gray-300);
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(26, 41, 66, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-gold-warm);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.feature-description {
  color: var(--color-gray-300);
  line-height: 1.6;
}

/* CTA Section */
.division-cta {
  padding: var(--space-4xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(10, 22, 40, 0.1) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
}

.cta-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-gray-300);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

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

/* Nav Enhancements */
.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 var(--space-sm);
}

.nav-icon {
  width: 18px;
  height: 18px;
  margin-right: var(--space-xs);
}

.nav-link--portal,
.nav-link--admin {
  display: flex;
  align-items: center;
  font-weight: var(--font-weight-semibold);
}

.nav-link--portal {
  color: var(--color-blue-light);
}

.nav-link--admin {
  color: var(--color-gold-warm);
}

.nav-link--active {
  color: var(--color-blue-electric);
  position: relative;
}

.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-blue-electric);
}

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

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .division-hero {
    min-height: 60vh;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
  }

  .division-hero-cta {
    flex-direction: column;
  }

  .services-grid,
  .features-grid,
  .process-flow {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .nav-divider {
    display: none;
  }
}
