/* ==========================================================================
   JULIO KATONA | PROJETOS & ILUMINAÇÃO
   MASTER STYLESHEET (VANILLA CSS WITH PREMIUM DESIGN SYSTEM & RGB SPECTRUM)
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
  /* Color System */
  --bg-main: #fcfbf8;        /* Off-white warm studio slate */
  --bg-surface: #ffffff;     /* Pure white card surface */
  --bg-subtle: #f3f0e8;      /* Light champagne grey for subtle backgrounds */
  
  --text-primary: #0f172a;    /* Deep slate dark text */
  --text-secondary: #334155;  /* Soft slate secondary text */
  --text-muted: #64748b;      /* Muted captions */
  
  /* Brand Spectrum Accents (Official Logo Palette) */
  --rgb-red: #ef4444;        /* Crimson Red */
  --rgb-green: #10b981;      /* Emerald Green */
  --rgb-blue: #2563eb;       /* Royal Blue */
  --logo-gold: #d97706;      /* Warm Gold / Amber Accent */
  
  /* Spectrum Linear Gradient for Pristine Accents */
  --grad-rgb-spectrum: linear-gradient(90deg, #ef4444 0%, #10b981 50%, #2563eb 100%);
  
  /* WhatsApp Conversion Color */
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1EBE5B;
  
  /* Spacing & Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows & Glassmorphism */
  --shadow-subtle: 0 4px 20px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 40px rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden !important;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

/* Unified Section Header Component (Harmonizado para Todas as Seções) */
.section-header-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header-block .rgb-prism-bar {
  margin: 0 auto 0.75rem auto;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--logo-gold);
  display: block;
  margin-bottom: 0.35rem;
}

.section-header-block h2, 
.section-header-block h3 {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Spectrum Accent Indicator (Sempre como bloco para não 'voar' ao lado de textos) */
.rgb-prism-bar {
  display: block;
  width: 48px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--grad-rgb-spectrum);
  margin-bottom: 0.75rem;
}

/* Mini Spectrum Bar Embutido Dentro de Tags/Badges */
.rgb-mini-bar {
  display: inline-block;
  width: 20px;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--grad-rgb-spectrum);
  flex-shrink: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   HEADER & BRAND LOGO
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(252, 251, 248, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: padding var(--transition-normal), background var(--transition-normal);
  padding: 0.4rem 0;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-rgb-spectrum);
  opacity: 0.85;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Official Crisp Transparent Logo com Maior Destaque & Presença */
.official-brand-logo {
  height: 72px;
  width: auto;
  display: block;
  transition: transform var(--transition-normal), filter var(--transition-normal);
  filter: drop-shadow(0 2px 10px rgba(15, 23, 42, 0.12));
}

.official-brand-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 18px rgba(217, 119, 6, 0.25));
}

@media (max-width: 768px) {
  .official-brand-logo {
    height: 56px;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

@media (max-width: 991px) {
  .nav-desktop {
    display: none;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--rgb-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rgb-blue);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.btn-cta-nav:hover {
  background: var(--whatsapp-green);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transform: translateY(-1px);
}

/* Mobile Hamburger Menu */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}

.hamburger-line {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-normal);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(252, 251, 248, 0.98);
  backdrop-filter: blur(20px);
  z-index: 105;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .nav-link {
  font-size: 1.5rem;
}

/* ==========================================================================
   HERO SECTION (COM ILUMINAÇÃO DE MOVERS VIVOS E DINÂMICOS NAS LATERAIS)
   ========================================================================== */
.hero-section {
  min-height: 60vh;
  padding: 7.25rem 0 3.25rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(243, 240, 232, 0.6) 0%, var(--bg-main) 70%);
}

.hero-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Dynamic Mover Head Fixtures (Anchored directly to Site Header Line) */
.mover-fixture-wrap {
  position: absolute;
  top: 86px;
  z-index: 5;
  pointer-events: none;
  width: 120px;
  height: 140px;
}

.mover-left {
  left: 2%;
}

.mover-right {
  right: 2%;
}

@media (max-width: 991px) {
  .mover-fixture-wrap {
    top: 66px;
    width: 52px;
    height: 62px;
    opacity: 0.9;
  }

  .mover-left {
    left: 4px;
  }

  .mover-right {
    right: 4px;
  }
}

.mover-head-svg {
  width: 100%;
  height: 100%;
  overflow: visible !important;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}
  transition: opacity 0.3s ease;
}

.beam-volumetric-left {
  background: conic-gradient(from 150deg at 50% 0%, rgba(251, 191, 36, 0.65) 0deg, rgba(217, 119, 6, 0.35) 30deg, transparent 60deg);
}

.beam-volumetric-right {
  background: conic-gradient(from 150deg at 50% 0%, rgba(59, 130, 246, 0.65) 0deg, rgba(29, 78, 216, 0.35) 30deg, transparent 60deg);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--logo-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.hero-title {
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.hero-title span.text-highlight {
  background: var(--grad-rgb-spectrum);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  max-width: 620px;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-secondary, .btn-whatsapp {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  background: var(--rgb-blue);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  border-color: var(--rgb-green);
  color: var(--rgb-green);
  box-shadow: var(--shadow-subtle);
}

/* Specific Professional WhatsApp Button */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius-full);
  background: var(--whatsapp-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transition: var(--transition-normal);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.55);
}

@media (max-width: 576px) {
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

/* --- Section: Profile --- */
.profile-section {
  background: var(--bg-surface);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .profile-grid { grid-template-columns: 380px 1fr; gap: 4rem; }
}

.profile-img-wrap {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-hover);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.profile-img-wrap:hover img {
  transform: scale(1.03);
}

.profile-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 0.85rem 1.1rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.8rem;
}

.profile-badge strong {
  color: #fbbf24;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 480px) {
  .profile-stats-row {
    gap: 0.5rem;
  }
}

.stat-number {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
  display: block;
}

/* --- Section: Services / Pillars --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pillar-card {
  padding: 2.2rem 1.8rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-normal);
}

.pillar-red:hover::before { background: var(--rgb-red); }
.pillar-amber:hover::before { background: var(--logo-gold); }
.pillar-green:hover::before { background: var(--rgb-green); }
.pillar-blue:hover::before { background: var(--rgb-blue); }

.pillar-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--logo-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.pillar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.pillar-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Section: Manifesto --- */
.manifesto-section {
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 6.5rem 0;
}

.manifesto-quote {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 2rem;
}

.manifesto-quote span {
  color: #fbbf24;
  font-weight: 600;
  font-style: italic;
}

.manifesto-body {
  color: #94a3b8;
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
}

/* --- Section: Portfolio / Works (Obras) --- */
.category-tab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 1.25rem;
}

.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: rgba(15, 23, 42, 0.2);
}

.tab-btn.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 10;
  transition: background var(--transition-normal);
}

.project-card:hover::before {
  background: var(--grad-rgb-spectrum);
}

.project-card:hover {
  border-color: var(--rgb-blue);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-img-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--bg-subtle);
  overflow: hidden;
}

.project-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.project-card:hover .project-real-img {
  transform: scale(1.05);
  filter: brightness(1.04);
}

.project-category-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.75rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-red-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rgb-red); }
.tag-green-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rgb-green); }
.tag-blue-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rgb-blue); }
.tag-amber-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--logo-gold); }

.project-details {
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.project-poetic {
  font-weight: 600;
  color: var(--logo-gold);
  font-size: 0.925rem;
  margin-bottom: 1rem;
}

.project-meta {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.meta-bullet {
  color: var(--logo-gold);
  font-weight: bold;
}

/* --- Section: Trajetória & Level B Institutional Mapping --- */
.timeline-wrapper {
  max-width: 760px;
  margin: 2.75rem auto 0;
  position: relative;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--grad-rgb-spectrum);
}

.timeline-row {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.75rem;
}

@media (max-width: 576px) {
  .timeline-row { padding-left: 1.5rem; padding-bottom: 2.25rem; }
}

.timeline-row::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rgb-blue);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--logo-gold);
  margin-bottom: 0.3rem;
  display: block;
}

.timeline-row h3 {
  color: var(--text-primary);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

/* Level B: Institutional Pillars Component (Limpo & Elegante) */
.institution-mapping-container {
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.inst-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.inst-pillar-card {
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.inst-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--rgb-blue);
  box-shadow: var(--shadow-hover);
}

.inst-pillar-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inst-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}

.inst-tag {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.inst-tag:hover {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
}

/* Institutional Logo Strip */
.logos-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 2.75rem;
  margin-top: 3rem;
  width: 100%;
}

@media (max-width: 576px) {
  .logos-strip { gap: 1.25rem 1.75rem; margin-top: 2rem; }
}

.logo-text-item {
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.logo-text-item:hover {
  opacity: 1;
  color: var(--rgb-blue);
}

/* --- Section: Contact & Footer --- */
.cta-section {
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.cta-box {
  max-width: 640px;
  margin: 0 auto;
}

.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--bg-main);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-rgb-spectrum);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer-logo-img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.1));
  transition: transform var(--transition-fast);
}

.footer-logo-img:hover {
  transform: scale(1.04);
}

/* --- Modal View --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  max-width: 640px;
  width: 100%;
  padding: 2.25rem 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 576px) {
  .modal-box { padding: 1.75rem 1.25rem; }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-subtle);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating WhatsApp Button (Canto Inferior Direito Discreto) */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 95;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
  .floating-whatsapp-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 46px;
    height: 46px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  }
}
