/* ==========================================================================
   SPO — C02 — CONHECER / PRESENÇA NOS TERRITÓRIOS (CINEMATIC ART DIRECTION)
   File: frontend/assets/css/c02-conhecer.css
   Baseline Protection: Isolated styles strictly scoped under .c02-stage-wrapper / .c02-*
   Zero collision with C00 / C01 / C03 / C04 baselines.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. STAGE CONTAINER & ATMOSPHERIC CONTINUITY (C01 → C02 CINEMATIC BRIDGE)
   -------------------------------------------------------------------------- */
.c02-stage-wrapper {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 40%, #FFFFFF 100%);
  color: #1E293B;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 14;
}

/* Atmospheric Seamless Bridge from C01 (Smooth, organic color shift) */
.c02-atmosphere-transition {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0) 0%,
    rgba(241, 245, 249, 0.5) 40%,
    rgba(241, 245, 249, 0.95) 75%,
    #F1F5F9 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Atmospheric Ambient Glows */
.c02-ambient-glow-top {
  position: absolute;
  top: 5%;
  left: 30%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(46, 115, 205, 0.08) 0%, rgba(244, 203, 21, 0.04) 45%, transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.c02-ambient-glow-right {
  position: absolute;
  top: 30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(46, 115, 205, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle Spatial Background Topographic Vector Accent */
.c02-topographic-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(23, 58, 103, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   2. SCALED DISPLAY TYPOGRAPHY & ASYMMETRIC HEADER
   -------------------------------------------------------------------------- */
.c02-eyebrow-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.0rem;
}

.c02-eyebrow-line {
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: #2E73CD;
  border-radius: 1px;
}

.c02-eyebrow-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.75rem, 0.2vw + 0.68rem, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2E73CD;
}

.c02-title-display {
  font-family: 'Lora', Georgia, serif !important;
  font-size: clamp(2.4rem, 4.5vw + 1.0rem, 4.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  color: #0B1D34 !important;
  margin: 0 !important;
}

.c02-title-highlight {
  color: #173A67 !important;
  position: relative;
  display: inline-block;
}

.c02-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(244, 203, 21, 0.45);
  z-index: -1;
  border-radius: 4px;
}

.c02-lead-card {
  border-left: 3.5px solid #F4CB15;
  padding-left: 1.25rem;
}

.c02-lead-quote {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.05rem, 1.1vw + 0.8rem, 1.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: #1E293B;
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. EDITORIAL NARRATIVE COLUMN
   -------------------------------------------------------------------------- */
.c02-narrative-card {
  position: relative;
  z-index: 10;
}

.c02-section-tag {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #2E73CD;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.c02-subtitle {
  font-family: 'Lora', Georgia, serif !important;
  font-size: clamp(1.35rem, 1.8vw + 0.75rem, 1.85rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0B1D34 !important;
  margin-bottom: 1.25rem !important;
}

.c02-body-paragraph {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.98rem, 0.3vw + 0.88rem, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: #475569;
  margin-bottom: 1.25rem;
}

/* Editorial Highlights (Non-card list) */
.c02-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 1.0rem;
}

.c02-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.c02-highlight-icon {
  color: #2E73CD;
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.c02-highlight-content {
  display: flex;
  flex-direction: column;
}

.c02-highlight-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0B1D34;
}

.c02-highlight-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   4. PHOTO ARCHITECTURE & ASYMMETRIC EXTRAPOLATION
   -------------------------------------------------------------------------- */
.c02-photo-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  min-height: 520px;
}

.c02-photo-backdrop-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 110%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(46, 115, 205, 0.18) 0%, rgba(244, 203, 21, 0.08) 50%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

.c02-photo-watermark {
  position: absolute;
  top: 0;
  right: -5%;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 900;
  color: rgba(23, 58, 103, 0.04);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  white-space: nowrap;
}

.c02-photo-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  /* Seamless studio background masking */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0,0,0,0.3) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0,0,0,0.3) 88%, transparent 100%);
}

.c02-candidate-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: drop-shadow(0 16px 36px rgba(11, 29, 52, 0.18));
  transform: scale(1.0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.c02-photo-stage:hover .c02-candidate-img {
  transform: scale(1.02);
}

/* Directional Gesture Floating Callout (Targeted by Pointing Finger) */
.c02-callout-floating {
  position: absolute;
  top: 16%;
  right: -20px;
  max-width: 220px;
  background: #0B1D34;
  border: 1.5px solid #F4CB15;
  border-radius: 14px;
  padding: 1.0rem 1.25rem;
  max-width: 250px;
  box-shadow: 0 16px 36px rgba(11, 29, 52, 0.25);
  z-index: 20;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: transform 0.4s ease;
}

.c02-photo-stage:hover .c02-callout-floating {
  transform: translateY(-4px) translateX(2px);
}

.c02-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(244, 203, 21, 0.15);
  color: #F4CB15;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c02-callout-text {
  display: flex;
  flex-direction: column;
}

.c02-callout-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #F4CB15;
  text-transform: uppercase;
}

.c02-callout-sub {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

/* Secondary Floating Badge (Left bottom) */
.c02-callout-badge {
  position: absolute;
  bottom: 10%;
  left: -20px;
  background: #FFFFFF;
  border: 1px solid rgba(46, 115, 205, 0.2);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.c02-badge-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #2E73CD;
  text-transform: uppercase;
}

.c02-badge-main {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0B1D34;
  line-height: 1.2;
}

.c02-badge-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   5. BOTTOM EDITORIAL METRICS & TIMELINE SPINE
   -------------------------------------------------------------------------- */
.c02-bottom-stage {
  position: relative;
  z-index: 10;
}

.c02-metrics-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c02-metrics-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #64748B;
  text-transform: uppercase;
}

.c02-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.c02-metric-unit {
  display: flex;
  flex-direction: column;
}

.c02-metric-number {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2.0rem, 3vw, 2.8rem);
  font-weight: 800;
  color: #2E73CD;
  line-height: 1.1;
}

.c02-metric-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
}

/* Horizontal Spine Timeline Steps */
.c02-spine-horizontal-wrapper {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(23, 58, 103, 0.1);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.c02-spine-header-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 1.0rem;
}

.c02-spine-steps-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.c02-spine-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c02-spine-step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.c02-spine-step-completed .c02-spine-step-node {
  background: #2E73CD;
  color: #FFFFFF;
}

.c02-spine-step-active .c02-spine-step-node {
  background: #0B1D34;
  color: #F4CB15;
  box-shadow: 0 0 12px rgba(11, 29, 52, 0.3);
  border: 2px solid #F4CB15;
}

.c02-spine-step-info {
  display: flex;
  flex-direction: column;
}

.c02-spine-step-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #94A3B8;
  text-transform: uppercase;
}

.c02-spine-step-active .c02-spine-step-tag {
  color: #2E73CD;
}

.c02-spine-step-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0B1D34;
}

.c02-spine-step-connector {
  flex-grow: 1;
  height: 2px;
  background: rgba(23, 58, 103, 0.12);
  min-width: 16px;
}

.c02-connector-active {
  background: linear-gradient(90deg, #2E73CD 0%, #0B1D34 100%);
}

/* --------------------------------------------------------------------------
   6. REVERSIBLE CINEMATIC SCROLL REVEAL STYLES (DOWN & UP SCROLLING)
   -------------------------------------------------------------------------- */
.c02-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.c02-reveal.c02-revealed {
  opacity: 1;
  transform: translateY(0);
}

.c02-reveal-delay-1 { transition-delay: 0.08s; }
.c02-reveal-delay-2 { transition-delay: 0.16s; }
.c02-reveal-delay-3 { transition-delay: 0.24s; }
.c02-reveal-delay-4 { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   -------------------------------------------------------------------------- */

/* TABLET (768px × 1024px) */
@media (max-width: 1024px) {
  .c02-callout-floating {
    position: absolute;
    top: 18%;
    right: -25px;
    max-width: 220px;
    padding: 0.85rem 1.0rem;
  }

  .c02-callout-badge {
    position: absolute;
    bottom: 5%;
    left: 10px;
  }

  .c02-photo-watermark {
    font-size: 5.0rem;
  }

  .c02-spine-step-info {
    display: none; /* Compact spine on tablet */
  }
}

/* MOBILE (390px × 844px) */
@media (max-width: 640px) {
  .c02-title-display {
    font-size: 2.2rem !important;
  }

  .c02-photo-stage {
    min-height: auto;
  }

  .c02-candidate-img {
    max-height: 400px;
  }

  .c02-callout-floating {
    position: relative;
    top: auto;
    right: auto;
    max-width: 100%;
    margin-top: -30px;
    z-index: 25;
  }

  .c02-callout-badge {
    display: none; /* Clean mobile hierarchy */
  }

  .c02-photo-watermark {
    display: none;
  }

  .c02-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.0rem;
  }

  .c02-spine-horizontal-wrapper {
    padding: 1.0rem;
  }
}

/* --------------------------------------------------------------------------
   8. PREFERS REDUCED MOTION (ACCESSIBILITY)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .c02-candidate-img,
  .c02-callout-floating,
  .c02-reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}
