/* ==========================================================================
   ABOUT US PAGE STYLES - CONSISTENT WITH SITE DESIGN SYSTEM
   Uses canonical CSS variables and classes from globals.css
   ========================================================================== */

/* ==========================================================================
   HERO SECTION - CONSISTENT WITH LANDING PAGE
   ========================================================================== */

.about-hero {
  background: var(--surface-50);
  padding: 100px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 15%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: var(--brand-primary);
  opacity: 0.06;
  border-radius: 50%;
  animation: gentle-float 8s ease-in-out infinite;
}

.about-hero::after {
  content: '';
  position: absolute;
  bottom: 25%;
  left: 8%;
  width: 80px;
  height: 80px;
  background: var(--brand-secondary);
  opacity: 0.06;
  border-radius: 50%;
  animation: gentle-float 10s ease-in-out infinite reverse;
  animation-delay: 2s;
}

.about-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-hero-content .section-badge {
  margin-bottom: 32px;
}

/* ==========================================================================
   OUR STORY SECTION - CONSISTENT WITH TEAM PAGE
   ========================================================================== */

.about-story {
  padding: 100px 0;
  background: var(--surface-0);
  position: relative;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-visual {
  position: relative;
}

.story-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px var(--shadow-20);
}

.story-image-frame:hover {
  transform: rotate(0deg);
}

.story-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
}

.story-overlay .section-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transform: rotate(2deg);
}

.story-content {
  padding: 0 20px;
}

.story-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.story-stat {
  text-align: center;
}

.story-stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.story-stat-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CREATIVE COMPANY TIMELINE - CONSISTENT WITH TEAM PAGE STYLING
   ========================================================================== */

.about-timeline-horizontal {
  padding: 100px 0;
  background: var(--surface-50);
  position: relative;
  overflow: hidden;
}

.about-timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 15%;
  right: 8%;
  width: 100px;
  height: 100px;
  background: var(--brand-secondary);
  opacity: 0.04;
  border-radius: 50%;
  animation: gentle-float 10s ease-in-out infinite;
}

.about-timeline-horizontal::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: var(--brand-primary);
  opacity: 0.04;
  border-radius: 50%;
  animation: gentle-float 12s ease-in-out infinite reverse;
  animation-delay: 3s;
}

.timeline-horizontal-header {
  text-align: center;
  margin-bottom: 80px;
}

.timeline-horizontal-header .section-badge {
  margin-bottom: 32px;
}

/* Horizontal Timeline Container */
.timeline-horizontal-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Horizontal Timeline Line - Simple grey */
.timeline-horizontal-line {
  position: absolute;
  top: 80px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: var(--surface-300);
  border-radius: 2px;
  z-index: 1;
}

/* Horizontal Steps Container */
.timeline-horizontal-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
  z-index: 2;
}

/* Individual Timeline Step */
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Timeline Step Markers - Using consistent styling */
.timeline-step-marker {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 3;
  box-shadow: 0 8px 25px var(--shadow-20);
  transition: all 0.3s ease;
  margin-bottom: 24px;
  position: relative;
  border: 4px solid var(--surface-0);
}

.timeline-step-marker:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Marker Colors - Consistent with brand system */
.timeline-step .teal-marker {
  background: var(--brand-primary);
  color: var(--surface-0);
}

.timeline-step .orange-marker {
  background: var(--brand-secondary);
  color: var(--surface-0);
}

.timeline-step .yellow-marker {
  background: var(--brand-yellow);
  color: var(--surface-0);
}

/* Timeline Step Content - Consistent with feature cards */
.timeline-step-content {
  max-width: 180px;
  padding: 20px 16px;
  background: var(--surface-0);
  border: 2px solid transparent;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow-10);
  transition: all 0.3s ease;
  transform: rotate(-1deg);
}

.timeline-step:nth-child(even) .timeline-step-content {
  transform: rotate(1deg);
}

.timeline-step-content:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-20);
}

/* Step Content Colors */
.timeline-step:nth-child(1) .timeline-step-content {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.timeline-step:nth-child(2) .timeline-step-content {
  border-color: var(--brand-secondary);
  background: var(--brand-secondary-soft);
}

.timeline-step:nth-child(3) .timeline-step-content {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.timeline-step:nth-child(4) .timeline-step-content {
  border-color: var(--brand-yellow);
  background: var(--brand-yellow-soft);
}

.timeline-step:nth-child(5) .timeline-step-content {
  border-color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.timeline-step:nth-child(6) .timeline-step-content {
  border-color: var(--brand-secondary);
  background: var(--brand-secondary-soft);
}

.timeline-step-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.timeline-step:nth-child(1) .timeline-step-year { color: var(--brand-primary); }
.timeline-step:nth-child(2) .timeline-step-year { color: var(--brand-secondary); }
.timeline-step:nth-child(3) .timeline-step-year { color: var(--brand-primary); }
.timeline-step:nth-child(4) .timeline-step-year { color: var(--brand-yellow); }
.timeline-step:nth-child(5) .timeline-step-year { color: var(--brand-primary); }
.timeline-step:nth-child(6) .timeline-step-year { color: var(--brand-secondary); }

.timeline-step-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.timeline-step-description {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   STATS SECTION - CONSISTENT WITH BENEFITS SECTION
   ========================================================================== */

.about-stats {
  padding: 80px 0;
  background: var(--brand-primary);
  position: relative;
  overflow: hidden;
}

.about-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-2) 100%);
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 2;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  transform: rotate(-1deg);
}

.stat-card:nth-child(even) {
  transform: rotate(1deg);
}

.stat-card:hover {
  transform: rotate(0deg) translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--surface-0);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* ==========================================================================
   SISTER COMPANY SECTION - CONSISTENT WITH FEATURES SECTION
   ========================================================================== */

.sister-company-section {
  padding: 100px 0;
  background: var(--surface-50);
  position: relative;
}

.sister-company-header {
  text-align: center;
  margin-bottom: 80px;
}

.sister-company-header .section-badge {
  margin-bottom: 32px;
}

.sister-company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sister-company-card {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 25px var(--shadow-10);
  transform: rotate(-1deg);
  transition: all 0.3s ease;
}

.sister-company-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 12px 35px var(--shadow-20);
}

.sister-company-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.sister-company-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface-0);
  font-size: 28px;
  box-shadow: 0 4px 15px var(--shadow-20);
}

.sister-company-features {
  display: grid;
  gap: 16px;
}

.sister-company-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sister-company-feature:hover {
  background: var(--brand-primary);
  color: var(--surface-0);
}

.sister-company-feature-icon {
  font-size: 16px;
  color: var(--brand-primary);
}

.sister-company-feature:hover .sister-company-feature-icon {
  color: var(--surface-0);
}

.sister-company-feature-text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

.sister-company-feature:hover .sister-company-feature-text {
  color: var(--surface-0);
}

.sister-company-benefits {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sister-company-benefit {
  background: var(--surface-0);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 15px var(--shadow-10);
  transform: rotate(1deg);
  transition: all 0.3s ease;
}

.sister-company-benefit:nth-child(even) {
  transform: rotate(-1deg);
}

.sister-company-benefit:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 8px 25px var(--shadow-20);
}

.sister-company-benefit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.sister-company-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid;
}

.sister-company-benefit-icon.orange {
  background: var(--brand-secondary-soft);
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}

.sister-company-benefit-icon.teal {
  background: var(--brand-primary-soft);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.sister-company-benefit-icon.yellow {
  background: var(--brand-yellow-soft);
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

.sister-company-benefit-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.sister-company-benefit-description {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   FINAL CTA SECTION - CONSISTENT WITH FEATURES CTA
   ========================================================================== */

.about-cta {
  padding: 120px 0;
  background: var(--surface-0);
  position: relative;
  text-align: center;
}

.about-cta::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 100px;
  height: 100px;
  background: var(--brand-secondary);
  opacity: 0.04;
  border-radius: 50%;
  animation: gentle-float 12s ease-in-out infinite;
}

.about-cta::after {
  content: '';
  position: absolute;
  bottom: 25%;
  left: 10%;
  width: 80px;
  height: 80px;
  background: var(--brand-primary);
  opacity: 0.04;
  border-radius: 50%;
  animation: gentle-float 10s ease-in-out infinite reverse;
  animation-delay: 4s;
}

.about-cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-cta-content .section-badge {
  margin-bottom: 32px;
}

.about-cta-buttons {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .timeline-horizontal-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .timeline-horizontal-line {
    display: none;
  }
  
  .story-layout,
  .sister-company-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .timeline-horizontal-steps {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 400px;
    margin: 0 auto;
  }

  .timeline-step-content {
    max-width: none;
    padding: 24px;
  }

  .timeline-step-marker {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }
  
  .story-stats {
    justify-content: center;
    gap: 30px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .about-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}