/* ==========================================================================
   SPO — C04 — DEFENDER / PROPÓSITO E REPRESENTAÇÃO (EDITORIAL CINEMATIC SCENE)
   File: frontend/assets/css/c04-defender.css
   Concept: CONHECIMENTO → POSICIONAMENTO → AÇÃO PÚBLICA (V5 PNG TRANSPARENT)
   Asset Oficial: DSC01295_sem_fundo.png (Mariana em camiseta Anistia Já em PNG transparente)
   Baseline Protection: Isolated styles strictly scoped under .c04-stage-wrapper / .c04-*
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. STAGE CONTAINER & ATMOSPHERIC CONTINUITY (C03 NAVY → C04 ENERGY BRIDGE)
   -------------------------------------------------------------------------- */
.c04-stage-wrapper {
  position: relative;
  width: 100%;
  background-color: #FFFFFF;
  color: #1E293B;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 12;
}

/* Atmospheric Transition Bridge from C03 Deep Navy (Fades smoothly into section without hard white cutoff) */
.c04-atmosphere-transition {
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(180deg,
      #071930 0%,
      rgba(7, 25, 48, 0.70) 30%,
      rgba(7, 25, 48, 0.20) 65%,
      rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Right-side Dark Studio Atmospheric Extension (V5.6 Seamless Unified Atmosphere: Navy -> Light -> Neutral -> Lead -> Navy) */
.c04-studio-atmosphere {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(248, 250, 252, 0.15) 20%,
      rgba(226, 232, 240, 0.25) 40%,
      rgba(71, 85, 105, 0.22) 60%,
      rgba(30, 41, 59, 0.55) 80%,
      #141C25 92%,
      #111720 100%);
  pointer-events: none;
  z-index: 1;
}

/* Chromatic Ambient Energy Glow (Institutional Blue Atmosphere) */
.c04-ambient-glow-navy {
  position: absolute;
  bottom: 10%;
  left: -8%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle at center,
      rgba(46, 115, 205, 0.08) 0%,
      rgba(23, 58, 103, 0.03) 50%,
      transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   2. EDITORIAL TYPOGRAPHY & HEADLINE HIERARCHY
   -------------------------------------------------------------------------- */
.c04-eyebrow-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.1rem;
}

.c04-eyebrow-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.72rem, 0.2vw + 0.65rem, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #2E73CD;
}

.c04-eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #2E73CD 0%, #F4CB15 100%);
  border-radius: 1px;
}

.c04-title-display {
  font-family: 'Lora', Georgia, serif !important;
  font-size: clamp(2.1rem, 3.8vw + 0.8rem, 3.4rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 1.6rem !important;
}

.c04-title-lead {
  color: #0B1D34;
}

.c04-title-blue {
  color: #2E73CD;
  background: linear-gradient(90deg, #2E73CD 0%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.c04-title-gold {
  color: #B45309;
  background: linear-gradient(90deg, #D97706 0%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   3. EDITORIAL QUOTE & NARRATIVE TEXT
   -------------------------------------------------------------------------- */
.c04-quote-callout {
  border-left: 4px solid #F4CB15;
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.c04-quote-text {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.15rem, 1.2vw + 0.85rem, 1.45rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  color: #173A67;
  margin: 0;
}

.c04-body-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.98rem, 0.35vw + 0.88rem, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: #334155;
  margin: 0;
}

.c04-body-subtext {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(0.9rem, 0.25vw + 0.82rem, 0.98rem);
  font-weight: 300;
  line-height: 1.68;
  color: #64748B;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. ACTION BRIDGE CTA BUTTON
   -------------------------------------------------------------------------- */
.c04-action-bridge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.c04-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #F4CB15;
  color: #0B1D34;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  padding: 1.1rem 2.0rem;
  border-radius: 8px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(244, 203, 21, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.c04-cta-button:hover {
  background: #0B1D34;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11, 29, 52, 0.28);
}

.c04-cta-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.c04-cta-button:hover .c04-cta-icon {
  transform: translateX(5px);
}

.c04-cta-subtext {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  color: #64748B;
}

/* --------------------------------------------------------------------------
   5. MARIANA AS DOMINANT VISUAL PRESENCE (V5.2 REAL GEOMETRIC ARCHITECTURE)
   -------------------------------------------------------------------------- */
.c04-portrait-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c04-portrait-wrapper {
  position: relative;
  width: 100%;
}

/* Atmospheric Backglow behind portrait (V5.6 Ultra-Diffused Ambient Glow) */
.c04-portrait-backglow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at 50% 50%,
      rgba(30, 41, 59, 0.15) 0%,
      rgba(46, 115, 205, 0.04) 55%,
      transparent 80%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 1;
}

/* Clean Portrait Container (V5.2 — Unconfined Transparent PNG with absolute floor & edge overflow) */
.c04-portrait-container {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: visible;
}

.c04-portrait-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  display: block;
  filter: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   6. REVERSIBLE CINEMATIC SCROLL REVEAL STYLES
   -------------------------------------------------------------------------- */
.c04-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.c04-reveal.c04-revealed {
  opacity: 1;
  transform: translateY(0);
}

.c04-reveal-delay-1 {
  transition-delay: 0.08s;
}

.c04-reveal-delay-2 {
  transition-delay: 0.16s;
}

.c04-reveal-delay-3 {
  transition-delay: 0.24s;
}

.c04-reveal-delay-4 {
  transition-delay: 0.32s;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS & DESKTOP ANCHORING (V5.3 BOUNDARY & CLIPPING ARCHITECTURE)
   -------------------------------------------------------------------------- */
/* DESKTOP (1440x900+): Mariana absolute-anchored inside C04 (.c04-stage-wrapper), right edge overflow eliminates dark gap */
@media (min-width: 1024px) {
  .c04-portrait-stage {
    position: absolute !important;
    top: 50px !important;
    /* Head remains safely 50px below top edge of C04 section */
    bottom: -2vh !important;
    /* Lower body extends past section floor */
    right: 0 !important;
    /* Right body shifts to cover & overflow right viewport boundary */
    width: auto !important;
    max-width: 45vw !important;
    height: auto !important;
    z-index: 10 !important;
    /* Inside C04 section stacking context */
    pointer-events: none;
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .c04-portrait-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none !important;
    margin: 0 !important;
    pointer-events: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .c04-portrait-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
  }

  .c04-portrait-img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    display: block;
    filter: none;
    transform: none;
    transform-origin: bottom right;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .c04-portrait-wrapper:hover .c04-portrait-img {
    transform: scale(1.012);
  }

  /* Editorial Block Balance (V5.5): Expands width & shifts slightly right to bridge central space to Mariana's smartphone */
  .c04-editorial-content {
    max-width: 660px;
    transform: translateX(32px);
  }
}

/* TABLET (1023px and below): In-flow positioning */
@media (max-width: 1023px) {
  .c04-studio-atmosphere {
    width: 100%;
    height: 65%;
    top: auto;
    bottom: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(248, 250, 252, 0.12) 15%,
        rgba(148, 163, 184, 0.20) 35%,
        rgba(30, 41, 59, 0.60) 65%,
        #111720 100%);
  }

  .c04-portrait-stage {
    position: relative;
    width: 100%;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
  }

  .c04-portrait-wrapper {
    max-width: 580px;
    margin: 0 auto -3.5rem auto;
  }

  .c04-portrait-img {
    min-height: 520px;
    max-height: 680px;
    object-position: center bottom;
    transform: translate(0, 0) scale(1.0);
  }
}

/* MOBILE (640px and below) */
@media (max-width: 640px) {
  .c04-portrait-wrapper {
    max-width: 100%;
    margin: 0 auto -2.5rem auto;
  }

  .c04-portrait-img {
    min-height: 400px;
    max-height: 540px;
    object-position: center bottom;
    transform: translate(2%, 4%) scale(1.05);
  }

  .c04-quote-callout {
    padding-left: 1.0rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .c04-portrait-img,
  .c04-reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}