/* ==========================================================================
   KATIA SASTRE - STYLESHEET OFICIAL DE CAMPANHA
   Design System Limpo (Opção Fundo Branco & Fundo Integrado Noturno):
   - Azul Institucional (#0A4494)
   - Azul Escuro (#0A2040)
   - Verde Brasil (#1FA33C)
   - Amarelo Ouro (#E6BF1B)
   - Branco Base (#FFFFFF)
   ========================================================================== */

:root {
  /* Cores da Paleta Oficial da Campanha (Brandbook Slide 15) */
  --brand-blue: #0A4494;
  --brand-navy: #0A2040;
  --brand-green: #1FA33C;
  --brand-gold: #E6BF1B;
  --brand-white: #FFFFFF;
  --brand-bg: #060B19;
  
  /* Textos Escuros (para Fundo Branco) */
  --text-dark: #0F172A;
  --text-dark-body: #334155;
  --text-dark-muted: #64748B;
  
  /* Textos Claros (para Fundo Noturno) */
  --text-white: #FFFFFF;
  --text-light: #E2E8F0;
  --text-muted: #94A3B8;
  
  /* Bordas Light */
  --border-light: #E2E8F0;
  --border-light-hover: #CBD5E1;
  
  /* Tipografia */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transições Otimizadas */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-accordion: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASE OTIMIZADO DE RENDERIZAÇÃO
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--brand-bg);
  color: var(--text-white);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

body.light-projects-body {
  background-color: #FFFFFF;
  color: var(--text-dark);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* Otimização GPU para Elementos Flutuantes e Animações */
.video-accordion-card,
.back-to-top-btn,
.floating-instagram-min-btn,
.media-left-content,
.bottom-nav-container,
.top-nav-dark,
.top-nav-light {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   PÁGINA INICIAL (INDEX.HTML) - FUNDO FULL PAGE & AJUSTE DE PROPORÇÕES
   -------------------------------------------------------------------------- */
.full-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('https://katia.desenvolve.site/referencias/img_principal_katia.png');
  background-image: url('/referencias/img_principal_katia.png');
  background-image: url('../referencias/img_principal_katia.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  pointer-events: none;
  transition: background-position 0.3s ease;
}

.bg-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 7, 17, 0.95) 0%, rgba(6, 11, 25, 0.82) 38%, rgba(6, 11, 25, 0.35) 70%, rgba(4, 7, 17, 0.05) 100%);
}

.hero-section {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 3.5rem 10.5rem 3.5rem;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(31, 163, 60, 0.12);
  border: 1px solid rgba(31, 163, 60, 0.35);
  color: var(--brand-green);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.text-gradient-gold, .text-gold-brand {
  background: linear-gradient(135deg, #FFF0B3 0%, #E6BF1B 50%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-light);
  font-weight: 400;
  opacity: 0.92;
}

/* --------------------------------------------------------------------------
   FUNDO EM TELA CHEIA PARA A PÁGINA DE MÍDIAS (KATIA_BG_CLEAN.JPG)
   -------------------------------------------------------------------------- */
.full-media-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('https://katia.desenvolve.site/referencias/katia_bg_clean.jpg');
  background-image: url('/referencias/katia_bg_clean.jpg');
  background-image: url('../referencias/katia_bg_clean.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.media-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(4, 7, 17, 0.35) 0%, rgba(4, 7, 17, 0.88) 100%);
}

/* --------------------------------------------------------------------------
   MENU INTERATIVO INFERIOR (PÁGINA INICIAL INDEX.HTML) & ANIMAÇÃO DE RESPIRO
   -------------------------------------------------------------------------- */
.bottom-nav-wrapper {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.bottom-nav-container {
  width: 100%;
  max-width: 624px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: rgba(6, 11, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 15px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  transition: var(--transition-normal);
}

.nav-main-buttons { display: flex; align-items: center; gap: 0.35rem; flex: 1; }
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  color: var(--text-white);
  text-align: left;
  transition: var(--transition-fast);
  background: transparent;
  flex: 1;
  border: 1px solid transparent;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* ANIMAÇÃO DE RESPIRO ELEGANTE (EXECUTADA APÓS O CARREGAMENTO DA PÁGINA) */
@keyframes menuBreathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(230, 191, 27, 0);
  }
  50% {
    transform: scale(1.035);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(230, 191, 27, 0.45);
    box-shadow: 0 8px 22px rgba(230, 191, 27, 0.28);
  }
}

.nav-btn.breathe-active {
  animation: menuBreathe 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.nav-main-buttons a:nth-child(3).breathe-active,
.nav-main-buttons a:nth-child(2).breathe-active {
  animation-delay: 1.75s;
}

.nav-btn-text { display: flex; flex-direction: column; }
.nav-btn-label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-gold); font-weight: 700; }
.nav-btn-title { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 700; color: var(--text-white); margin-top: 0.05rem; }
.nav-btn-arrow { color: var(--text-muted); opacity: 0.4; transition: var(--transition-fast); }
.nav-btn:hover .nav-btn-arrow { color: var(--brand-gold); opacity: 1; transform: translateX(2px); }
.nav-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.06); margin: 0 0.1rem; }

.nav-social-vertical { display: flex; flex-direction: column; gap: 0.15rem; padding-left: 0.65rem; border-left: 1px solid rgba(255, 255, 255, 0.06); min-width: 120px; }
.social-vertical-title { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-gold); font-weight: 700; }
.social-vertical-list { display: flex; flex-direction: column; gap: 0.1rem; }
.social-row { display: flex; align-items: center; gap: 0.35rem; font-size: 0.64rem; font-weight: 600; color: var(--text-light); padding: 0.08rem 0.25rem; border-radius: 4px; transition: var(--transition-fast); opacity: 0.85; }
.social-row:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); color: var(--text-white); transform: translateX(2px); }

/* --------------------------------------------------------------------------
   MENU FIXO NO TOPO (PROJETOS & MÍDIAS) - COMPACTO
   -------------------------------------------------------------------------- */
.top-nav-light {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: #FFFFFF; border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.top-nav-dark {
  position: sticky; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 11, 26, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.5rem 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.top-nav-container { max-width: 920px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.top-nav-left { display: flex; align-items: center; gap: 0.65rem; }

.btn-home-light { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--brand-blue); font-size: 0.76rem; font-weight: 700; background: #F1F5F9; border: 1px solid #CBD5E1; padding: 0.32rem 0.7rem; border-radius: 50px; transition: var(--transition-fast); }
.btn-home-light:hover { background: var(--brand-blue); color: #FFFFFF; border-color: var(--brand-blue); transform: translateX(-2px); }

.btn-home-dark { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--brand-gold); font-size: 0.76rem; font-weight: 700; background: rgba(230, 191, 27, 0.1); border: 1px solid rgba(230, 191, 27, 0.3); padding: 0.32rem 0.7rem; border-radius: 50px; transition: var(--transition-fast); }
.btn-home-dark:hover { background: rgba(230, 191, 27, 0.25); transform: translateX(-2px); }

.btn-midias-light { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-dark-body); font-size: 0.76rem; font-weight: 700; background: transparent; border: 1px solid transparent; padding: 0.32rem 0.7rem; border-radius: 50px; transition: var(--transition-fast); }
.btn-midias-light:hover { background: #F1F5F9; color: var(--brand-blue); border-color: #CBD5E1; }

.btn-midias-dark { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-light); font-size: 0.76rem; font-weight: 700; background: transparent; border: 1px solid transparent; padding: 0.32rem 0.7rem; border-radius: 50px; transition: var(--transition-fast); }
.btn-midias-dark:hover { background: rgba(255, 255, 255, 0.08); color: var(--text-white); }

.light-divider { width: 1px; height: 16px; background: var(--border-light); }
.dark-divider { width: 1px; height: 16px; background: rgba(255, 255, 255, 0.1); }

.light-text { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 800; color: var(--text-dark); }
.dark-text { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 800; color: var(--text-white); }

.top-nav-social { display: flex; align-items: center; gap: 0.55rem; }
.light-muted { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dark-muted); font-weight: 700; }
.dark-muted { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }

.top-social-links { display: flex; align-items: center; gap: 0.3rem; }
.light-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #F8FAFC; border: 1px solid var(--border-light); color: var(--text-dark-body); transition: var(--transition-fast); }
.light-btn:hover { transform: translateY(-2px); }

.dark-btn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-light); transition: var(--transition-fast); }
.dark-btn:hover { transform: translateY(-2px); color: #fff; }

.light-btn.instagram:hover, .dark-btn.instagram:hover { background: #e1306c; color: #fff; border-color: transparent; }
.light-btn.facebook:hover, .dark-btn.facebook:hover { background: #1877f2; color: #fff; border-color: transparent; }
.light-btn.twitter:hover, .dark-btn.twitter:hover { background: #000000; color: #fff; border-color: transparent; }
.light-btn.youtube:hover, .dark-btn.youtube:hover { background: #ff0000; color: #fff; border-color: transparent; }
.light-btn.tiktok:hover, .dark-btn.tiktok:hover { background: #000000; color: #fff; border-color: transparent; }

/* --------------------------------------------------------------------------
   BOTÃO FLUTUANTE VOLTAR AO TOPO (APARECE MEDIANTE ROLAGEM)
   -------------------------------------------------------------------------- */
.back-to-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.25rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 25px rgba(10, 68, 148, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) translateZ(0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) translateZ(0);
}

.back-to-top-btn:hover {
  background: var(--brand-navy);
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 14px 30px rgba(10, 68, 148, 0.5);
}

/* --------------------------------------------------------------------------
   PÁGINA DE MÍDIAS (MIDIAS.HTML) - CONTAINER BOX & BOTÃO DE PLAY CENTRADO LIMPO
   -------------------------------------------------------------------------- */
.media-page-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 3rem 2rem 5rem 2rem;
  display: flex;
  align-items: center;
}

.media-layout-container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

/* Container Lado Esquerdo */
.media-left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

/* BOX GLASS DE TEXTO COM BACKGROUND KATIA_BG_CLEAN INTEGRADO */
.media-text-box-glass {
  position: relative;
  background: rgba(8, 15, 34, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 2.5rem 2.5rem 3.5rem 2.5rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  width: 100%;
  max-width: 500px;
}

/* BOTÃO DE FECHAR CARD DE TEXTO (VISÍVEL APENAS NO MOBILE) */
.close-glass-card-btn {
  display: none;
}

/* OVERLAY DE BACKDROP DESABILITADO PARA NÃO BORRAR A TELA */
.mobile-modal-overlay {
  display: none !important;
}

/* BOTÃO FLUTUANTE DE INSTAGRAM MINIMIZADO NO CANTO (DESKTOP HIDDEN) */
.floating-instagram-min-btn {
  display: none;
}

.dark-pill {
  display: inline-block;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.media-hero-title-dark {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.media-lead-text-dark {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--text-light);
  line-height: 1.6;
  opacity: 0.9;
}

/* BOTÃO CTA EM SOBREPOSIÇÃO FLUTUANTE */
.cta-instagram-overlapping {
  position: absolute;
  bottom: -24px;
  left: 2rem;
  right: 2rem;
  z-index: 10;
}

.btn-cta-instagram-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 22, 48, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.45rem 0.55rem 0.45rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-normal);
}

.btn-cta-instagram-glass span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-white);
}

.cta-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.35);
  transition: var(--transition-fast);
}

.btn-cta-instagram-glass:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold);
  background: rgba(14, 28, 60, 0.96);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.6);
}

.btn-cta-instagram-glass:hover .cta-icon-box { transform: scale(1.08); }

/* LADO DIREITO: SANFONA DINÂMICA (ACCORDION GALLERY) & CARROSSEL */
.media-right-gallery { width: 100%; }
.accordion-gallery { display: flex; align-items: center; gap: 1.2rem; width: 100%; height: 480px; }

.video-accordion-card {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  flex: 1;
  transition: flex 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease, filter 0.4s ease;
}

.video-accordion-card.active,
.video-accordion-card:hover {
  flex: 3.5;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.video-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.7s ease; }
.bg-video-1 {
  background-image: linear-gradient(180deg, rgba(10, 32, 64, 0.25) 0%, rgba(6, 11, 25, 0.94) 100%), url('../referencias/katia_bg_clean.jpg');
}

.bg-video-2 {
  background-image: linear-gradient(180deg, rgba(10, 68, 148, 0.25) 0%, rgba(6, 11, 25, 0.94) 100%), url('../referencias/katia_bg_clean.jpg');
}

.bg-video-3 {
  background-image: linear-gradient(180deg, rgba(31, 163, 60, 0.25) 0%, rgba(6, 11, 25, 0.94) 100%), url('../referencias/katia_bg_clean.jpg');
}

.video-accordion-card.active .video-card-bg, .video-accordion-card:hover .video-card-bg { transform: scale(1.05); }

.video-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 7, 17, 0.1) 0%, rgba(4, 7, 17, 0.92) 100%);
}

/* BOTÃO DE PLAY LIMPO NO MEIO DO VÍDEO */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.video-accordion-card.active .video-play-btn {
  top: 1.5rem;
  left: auto;
  right: 1.5rem;
  transform: none;
  background: var(--brand-blue);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(10, 68, 148, 0.4);
}

.video-accordion-card.active:hover .video-play-btn {
  background: var(--brand-gold);
  color: #000000;
  transform: scale(1.08);
}

.video-card-info {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

.video-accordion-card.active .video-card-info {
  display: flex;
  animation: fadeIn 0.35s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.accordion-desc {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.45;
  opacity: 0.9;
}

.video-duration { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.video-card-stats { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; }
.stat-badge { font-size: 0.7rem; font-weight: 700; background: rgba(255, 255, 255, 0.12); color: var(--text-light); padding: 0.2rem 0.55rem; border-radius: 4px; }

.carousel-controls-mobile { display: none; }

/* --------------------------------------------------------------------------
   LAYOUT BRANCO CLEAN DE PROJETOS & TIMELINE (PROJETOS.HTML) - OTIMIZAÇÕES DE RENDERING
   -------------------------------------------------------------------------- */
.light-projects-wrapper { position: relative; z-index: 10; flex: 1; padding: 3rem 2rem 6rem 2rem; }
.light-container { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.light-hero-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.85rem; }
.light-pill { display: inline-block; background: var(--brand-blue); color: #FFFFFF; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.3rem 0.8rem; border-radius: 4px; text-transform: uppercase; }
.light-main-title { font-family: var(--font-heading); font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; color: var(--text-dark); text-align: center; width: 100%; }
.light-lead-text { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--text-dark-body); line-height: 1.65; max-width: 820px; margin: 0 auto; text-align: center; }

/* DIVISOR ESTRUTURAL ENTRE APRESENTAÇÃO E PRINCÍPIOS */
.section-light-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #CBD5E1 30%, #CBD5E1 70%, transparent 100%);
  margin: 0.5rem 0 0.5rem 0;
}

/* SEÇÃO DESTACADA DE PRINCÍPIOS COM CONTAINER EXCLUSIVO */
.light-values-section-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 3rem 2.2rem 2.8rem 2.2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

/* TÍTULO PRINCÍPIOS CENTRALIZADO COM TEXTURA DA BANDEIRA DE KATIA_BG_CLEAN */
.principles-header-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.principles-title-flag {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  background-image: url('../referencias/katia_bg_clean.jpg');
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(10, 68, 148, 0.3));
}

.values-clean-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.value-clean-card { background: #FFFFFF; border: 1px solid var(--border-light); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); border-radius: 12px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; transition: var(--transition-normal); }
.value-clean-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); }
.value-clean-card.border-gold { border-top: 4px solid var(--brand-gold); }
.value-clean-card.border-blue { border-top: 4px solid var(--brand-blue); }
.value-clean-card.border-green { border-top: 4px solid var(--brand-green); }

.value-clean-card h3 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 800; color: var(--text-dark); }
.value-clean-card p { font-size: 0.85rem; color: var(--text-dark-body); line-height: 1.5; }

.light-timeline-section {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
.section-light-header { display: flex; flex-direction: column; gap: 0.4rem; }
.section-light-header h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--text-dark); }
.light-line-accent { width: 45px; height: 3px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-green)); border-radius: 2px; }
.light-timeline { position: relative; display: flex; flex-direction: column; gap: 2rem; padding-left: 2.5rem; }
.light-timeline::before { content: ''; position: absolute; left: 14px; top: 15px; bottom: 15px; width: 3px; background: linear-gradient(180deg, var(--brand-blue) 0%, #d97706 40%, var(--brand-green) 80%, rgba(31, 163, 60, 0.3) 100%); border-radius: 2px; }
.light-timeline-step { position: relative; display: flex; align-items: flex-start; }
.step-marker-light { position: absolute; left: -2.5rem; top: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800; color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); z-index: 2; }
.step-marker-light.marker-blue { background: var(--brand-blue); border: 2px solid #fff; }
.step-marker-light.marker-gold { background: #d97706; border: 2px solid #fff; }
.step-marker-light.marker-green { background: var(--brand-green); border: 2px solid #fff; }
.step-card-light { background: #FFFFFF; border: 1px solid var(--border-light); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); border-radius: 14px; padding: 1.5rem; width: 100%; display: flex; flex-direction: column; gap: 0.6rem; transition: var(--transition-normal); }
.step-card-light:hover { border-color: #CBD5E1; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.step-card-light.highlight-gold { border-left: 4px solid #d97706; }
.step-card-light.highlight-green { border-left: 4px solid var(--brand-green); }
.step-category-light { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.step-category-light.blue { color: var(--brand-blue); }
.step-category-light.gold { color: #d97706; }
.step-category-light.green { color: var(--brand-green); }
.step-card-light h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--text-dark); }
.step-card-light p { font-size: 0.88rem; color: var(--text-dark-body); line-height: 1.55; }
.step-badges-light { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.3rem; }
.badge-light-tag { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px; }
.badge-light-tag.blue { background: #EFF6FF; border: 1px solid #BFDBFE; color: var(--brand-blue); }
.badge-light-tag.gold { background: #FEF3C7; border: 1px solid #FDE68A; color: #b45309; }
.badge-light-tag.green { background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--brand-green); }

.light-projects-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}
.light-projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.project-light-card { background: #FFFFFF; border: 1px solid var(--border-light); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; transition: var(--transition-normal); }
.project-light-card:hover { border-color: #CBD5E1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.card-light-top { display: flex; align-items: center; justify-content: space-between; }
.pl-light-code { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 800; color: var(--brand-blue); }
.status-light-badge { font-size: 0.68rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 4px; }
.status-light-badge.priority { background: #FEF3C7; color: #b45309; }
.status-light-badge.approved { background: #F0FDF4; color: var(--brand-green); }
.status-light-badge.analysis { background: #F1F5F9; color: var(--text-dark-muted); }
.project-light-card h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: var(--text-dark); line-height: 1.35; }
.project-light-card p { font-size: 0.84rem; color: var(--text-dark-body); line-height: 1.5; }
.card-light-bottom { font-size: 0.75rem; color: var(--text-dark-muted); border-top: 1px solid var(--border-light); padding-top: 0.6rem; margin-top: 0.2rem; }

/* --------------------------------------------------------------------------
   RESPONSIVIDADE & AUDITORIA COMPLETA DE TELAS PEQUENAS E DISPOSITIVOS MÓVEIS
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  /* No PC/Desktop o card de texto permanece totalmente visivel desde o carregamento */
  .media-left-content {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
  }
}

@media (max-width: 1024px) {
  .media-layout-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .media-right-gallery {
    width: 100%;
  }

  /* CARD NO MOBILE: CENTRALIZADO NO MEIO DA TELA SEM NENHUM DESFOCAMENTO OU OVERLAY BLOQUEANTE DA PÁGINA */
  .media-left-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.92) translateZ(0);
    z-index: 995;
    width: 90%;
    max-width: 390px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* ATIVADO MEDIANTE INTERAÇÃO NO CARROSSEL: SURGE ELEGANTEMENTE NO MEIO DA TELA */
  .media-left-content.modal-centered-active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) scale(1) translateZ(0) !important;
  }

  .media-left-content.minimized-mobile {
    display: none !important;
  }

  /* O CARD EM SI POSSUI O SEU PRÓPRIO BACKGROUND EGLASS COM NITIDEZ PERFEITA */
  .media-text-box-glass {
    position: relative;
    max-width: 100%;
    align-items: center;
    text-align: center;
    padding: 2.2rem 1.6rem 3.2rem 1.6rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    background: rgba(8, 15, 34, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  /* BOTÃO DE FECHAR O CARD NO MOBILE */
  .close-glass-card-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 25;
  }

  .close-glass-card-btn:hover, .close-glass-card-btn:active {
    background: rgba(220, 38, 38, 0.85);
    color: #FFFFFF;
    border-color: transparent;
    transform: scale(1.1);
  }

  /* BOTÃO FLUTUANTE DE INSTAGRAM MINIMIZADO NO CANTO DA TELA (MOBILE) */
  .floating-instagram-min-btn {
    display: flex;
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 999;
    align-items: center;
    gap: 0.55rem;
    background: rgba(12, 22, 48, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.85rem 0.4rem 0.4rem;
    border-radius: 50px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) translateZ(0);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .floating-instagram-min-btn.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) translateZ(0) !important;
  }

  .floating-instagram-min-btn:hover {
    transform: translateY(-3px) translateZ(0) !important;
    background: rgba(14, 28, 60, 0.98);
    border-color: var(--brand-gold);
  }

  .insta-min-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
  }

  .insta-min-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 800;
    color: #FFFFFF;
  }

  .media-hero-title-dark, .media-lead-text-dark {
    text-align: center;
  }

  /* CARROSSEL RESPONSIVO DE MÍDIAS CENTRALIZADO */
  .accordion-gallery {
    display: flex;
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 1.5rem 0;
    gap: 1.25rem;
    scrollbar-width: none;
    width: 100%;
  }

  .accordion-gallery::-webkit-scrollbar {
    display: none;
  }

  .video-accordion-card {
    flex: 0 0 85% !important;
    max-width: 380px;
    height: 440px !important;
    scroll-snap-align: center;
    margin: 0 auto;
  }

  .video-card-info {
    display: flex !important;
  }

  .carousel-controls-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
    width: 100%;
  }

  .carousel-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 68, 148, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    cursor: pointer;
  }

  .carousel-nav-btn:hover, .carousel-nav-btn:active {
    background: var(--brand-blue);
    border-color: var(--brand-gold);
    transform: scale(1.05);
  }

  .carousel-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .carousel-dot.active {
    width: 24px;
    border-radius: 12px;
    background: var(--brand-gold);
  }
}

/* --------------------------------------------------------------------------
   AJUSTES RESPONSIVOS NO MOBILE: ELEVAÇÃO 20% DO CONTEÚDO E MENU AMPLIADO
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* CENTRALIZAÇÃO E ELEVAÇÃO DA IMAGEM DA KATIA E DO CONTEÚDO HERO NO MOBILE */
  .full-page-bg {
    background-position: 72% 15%;
    background-size: cover;
  }

  .bg-gradient-overlay {
    background: linear-gradient(180deg, rgba(4, 7, 17, 0.75) 0%, rgba(6, 11, 25, 0.45) 45%, rgba(4, 7, 17, 0.88) 100%);
  }

  /* NO MODO MOBILE: ALINHAR TODO O CONTEÚDO HERO (TAG, TÍTULO E SUBTÍTULO) À ESQUERDA COM ELEVAÇÃO DE 20% */
  .hero-section {
    padding: 2.5rem 1.25rem 6.5rem 1.25rem;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    margin-top: -3.5rem; /* Elevação de 20% do bloco de texto */
    gap: 1rem;
  }

  .hero-title {
    display: block !important;
    text-align: left;
    font-size: clamp(2.1rem, 7vw, 2.7rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    display: block !important;
    text-align: left;
    font-size: clamp(0.9rem, 3.5vw, 1.02rem);
    line-height: 1.5;
  }

  .hero-tag {
    align-self: flex-start;
  }

  /* Menu Fixo Superior Compacto (Projetos & Mídias) */
  .top-nav-light, .top-nav-dark {
    padding: 0.35rem 0.6rem;
  }

  .top-nav-container {
    flex-direction: column;
    gap: 0.3rem;
    align-items: center;
  }

  .top-nav-left {
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-home-light, .btn-home-dark, .btn-midias-light, .btn-midias-dark {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }

  .light-text, .dark-text {
    font-size: 0.72rem;
  }

  .top-nav-social {
    gap: 0.3rem;
    align-items: center;
  }

  .light-muted, .dark-muted {
    display: none;
  }

  .light-btn, .dark-btn {
    width: 23px;
    height: 23px;
  }

  /* MENU FLUTUANTE INFERIOR AMPLIADO NO MODO MOBILE COM ESPAÇAMENTO CONFORTÁVEL */
  .bottom-nav-wrapper {
    bottom: 1.2rem;
    padding: 0 0.75rem;
  }

  .bottom-nav-container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 18px;
    width: 96%;
    max-width: 480px;
    background: rgba(6, 11, 26, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  }

  .nav-main-buttons {
    width: 100%;
    gap: 0.4rem;
  }

  .nav-btn {
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-btn-label {
    font-size: 0.58rem;
  }

  .nav-btn-title {
    font-size: 0.88rem;
  }

  .nav-social-vertical {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 0.4rem;
    min-width: 100%;
    width: 100%;
    align-items: center;
  }

  .social-vertical-title {
    display: block;
    font-size: 0.6rem;
    margin-bottom: 0.2rem;
  }

  .social-vertical-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
  }

  .social-row {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
  }

  /* Ajustes do Botão Voltar ao Topo no Celular */
  .back-to-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
  }

  /* Conteúdo e Grades em Celulares */
  .light-projects-wrapper, .media-page-wrapper { padding: 2rem 1.25rem 4rem 1.25rem; }
  .values-clean-grid, .light-projects-grid { grid-template-columns: 1fr; }
  .light-timeline { padding-left: 2rem; }
  .step-marker-light { left: -2rem; width: 28px; height: 28px; font-size: 0.78rem; }
  .hero-title { font-size: 2.5rem; }
  .media-hero-title-dark { font-size: 2.3rem; }
  .principles-title-flag { font-size: 2.3rem; }
  .light-values-section-box { padding: 2rem 1.25rem; }
  .nav-divider { display: none; }
  .cta-instagram-overlapping {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 0.75rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .full-page-bg {
    background-position: 68% 10%;
  }
  .hero-content { margin-top: 0; }
  .media-hero-title-dark { font-size: 2.0rem; }
  .principles-title-flag { font-size: 2.0rem; }
  .light-main-title { font-size: 2.0rem; }
  .hero-section { padding: 2rem 0.9rem 6.5rem 0.9rem; }
  .media-page-wrapper { padding: 1.5rem 0.85rem 3.5rem 0.85rem; }
  .light-projects-wrapper { padding: 1.5rem 0.85rem 4rem 0.85rem; }
  .media-text-box-glass { padding: 1.75rem 1.1rem 2.25rem 1.1rem; border-radius: 20px; }
  .video-accordion-card { flex: 0 0 90% !important; max-width: 320px; height: 400px !important; }
  .btn-cta-instagram-glass span { font-size: 0.85rem; }
  .cta-icon-box { width: 38px; height: 38px; }
}
