/* =========================================
   INSTITUCIONAL - CSS Compartilhado
   Zait.ag - Pulverizando Tecnologia
   Páginas: Missão, Visão, Valores
   ========================================= */

/* Scroll suave para âncoras */
html {
  scroll-behavior: smooth;
}

/* Variáveis de cores - Paleta Oficial Zait.ag */
:root {
  /* Verdes */
  --zait-green-light: #B9CF38;
  --zait-green-medium: #727927;
  --zait-green-dark: #606721;
  --zait-green-accent: #BAD042;
  --zait-green-primary: #727927;
  
  /* Escuros */
  --zait-dark-light: #2C2C2C;
  --zait-dark-medium: #1A1A1A;
  --zait-dark-deep: #100F0F;
  --zait-bg-dark: #1A1A1A;
  --zait-bg-darker: #100F0F;
  
  /* Claros */
  --zait-light-primary: #DFDFDF;
  --zait-light-medium: #ABACAD;
  --zait-light-dark: #676767;
  --zait-bg-light: #DFDFDF;
  --zait-bg-white: #ffffff;
  
  /* Texto */
  --zait-text-light: #ffffff;
  --zait-text-muted: #ABACAD;
  --zait-text-dark: #1A1A1A;
  --zait-text-gray: #676767;
  
  /* Gradientes */
  --zait-gradient-green: linear-gradient(135deg, #B9CF38 0%, #727927 100%);
  --zait-gradient-dark: linear-gradient(180deg, #1A1A1A 0%, #100F0F 100%);
  --zait-gradient-light: linear-gradient(180deg, #ffffff 0%, #DFDFDF 100%);
  
  --zait-transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION
   ========================================= */
.inst-hero {
  position: relative;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--zait-bg-darker);
}

.inst-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--zait-gradient-dark);
  z-index: 2;
}

.inst-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 70px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.inst-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--zait-green-accent);
  text-transform: uppercase;
}

.inst-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--zait-text-light);
  line-height: 1.1;
  margin-bottom: 10px;
}

.inst-hero-title span {
  display: block;
  color: var(--zait-bg-light);
  text-transform: uppercase;
}

.inst-hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0px auto;
  max-width: 250px;
}

.inst-hero-divider span {
  height: 2px;
  flex: 1;
  background: var(--zait-green-accent);
}

.inst-hero-divider span:first-child {
  max-width: 40px;
}

.inst-hero-divider span:last-child {
  max-width: 150px;
}

/* =========================================
   SEÇÕES GERAIS
   ========================================= */
.inst-section {
  padding: 60px 0;
}

.inst-section-dark {
  background: var(--zait-bg-dark);
  color: var(--zait-text-light);
}

.inst-section-darker {
  background: var(--zait-bg-dark);
  color: var(--zait-text-light);
}

.inst-section-light {
  background: var(--zait-bg-light);
  color: var(--zait-text-dark);
}

.inst-section-white {
  background: var(--zait-bg-white);
  color: var(--zait-text-dark);
}

.inst-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.inst-section-label {
  display: inline-block;
  color: var(--zait-green-accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.inst-section-light .inst-section-label,
.inst-section-white .inst-section-label {
  color: var(--zait-green-medium);
}

.inst-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.inst-section-title span {
  color: var(--zait-green-accent);
}

.inst-section-light .inst-section-title span,
.inst-section-white .inst-section-title span {
  color: var(--zait-green-medium);
}

.inst-section-desc {
  font-size: 1.1rem;
  color: var(--zait-text-muted);
  line-height: 1.7;
}

.inst-section-light .inst-section-desc,
.inst-section-white .inst-section-desc {
  color: var(--zait-text-gray);
}

/* =========================================
   INTRO / PROPÓSITO SECTION
   ========================================= */
.inst-intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
  align-items: center;
}

.inst-intro-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--zait-text-dark);
}

.inst-intro-title span {
  display: block;
  color: var(--zait-dark-light);
}

.inst-intro-title svg {
  width: 100%;
  height: auto;
  max-width: 450px;
  display: block;
}

.inst-section-dark .inst-intro-title,
.inst-section-darker .inst-intro-title {
  color: var(--zait-text-light);
}

.inst-section-dark .inst-intro-title span,
.inst-section-darker .inst-intro-title span {
  color: var(--zait-green-accent);
}

.inst-intro-content {
  padding: 40px;
  background: var(--zait-bg-white);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.inst-section-dark .inst-intro-content,
.inst-section-darker .inst-intro-content {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

.inst-intro-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--zait-text-gray);
  margin-bottom: 20px;
}

.inst-section-dark .inst-intro-content p,
.inst-section-darker .inst-intro-content p {
  color: var(--zait-text-muted);
}

.inst-intro-content p:last-child {
  margin-bottom: 0;
}

/* =========================================
   VIDEO BLOCK
   ========================================= */
.inst-video-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.inst-video-block.reverse {
  direction: rtl;
}

.inst-video-block.reverse > * {
  direction: ltr;
}

.inst-video-container {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  background: var(--zait-bg-darker);
}

.inst-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inst-video-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--zait-bg-dark);
}

.inst-video-block.light .inst-video-content {
  background: var(--zait-bg-white);
}

.inst-video-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--zait-green-accent);
  margin-bottom: 25px;
  text-transform: uppercase;
}

.inst-video-block.light .inst-video-content h3 {
  color: var(--zait-green-medium);
}

.inst-video-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--zait-text-muted);
  margin-bottom: 15px;
}

.inst-video-block.light .inst-video-content p {
  color: var(--zait-text-gray);
}

.inst-video-content p:last-child {
  margin-bottom: 0;
}

/* =========================================
   HIGHLIGHT TEXT (Cultivando Futuro Inteligente)
   ========================================= */
.inst-highlight-text {
  padding: 80px 20px;
  text-align: center;
  background: var(--zait-bg-darker);
}

.inst-highlight-text h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

.inst-highlight-text .highlight-green-light {
  color: var(--zait-light-primary);
}

.inst-highlight-text .highlight-gray {
  color: #ced6a3;
}

.inst-highlight-text .highlight-green-medium {
  color: var(--zait-green-light);
}

/* =========================================
   PILARES / CONTENT BLOCKS
   ========================================= */
.inst-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.inst-pillar-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.inst-pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.inst-pillar-content {
  border-left: 3px solid var(--zait-green-accent);
}

.inst-pillar-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--zait-text-muted);
  padding-left: 20px;
}

.inst-section-light .inst-pillar-content p,
.inst-section-white .inst-pillar-content p {
  color: var(--zait-text-gray);
  border-left-color: var(--zait-green-medium);
}

.inst-pillar-content p:last-child {
  margin-bottom: 0;
}

/* =========================================
   VALORES GRID
   ========================================= */
.inst-valores-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.inst-valores-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.inst-valores-image img {
  width: 100%;
  height: auto;
  display: block;
}

.inst-valores-content {
  padding: 20px 0;
}

.inst-valores-content p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--zait-text-gray);
  margin-bottom: 25px;
  padding-left: 20px;
  border-left: 3px solid var(--zait-green-accent);
}

.inst-section-dark .inst-valores-content p,
.inst-section-darker .inst-valores-content p {
  color: var(--zait-text-muted);
}

.inst-valores-content p:last-child {
  margin-bottom: 0;
}

/* =========================================
   INOVAÇÃO SECTION
   ========================================= */
.inst-inovacao-header {
  margin-bottom: 40px;
}

.inst-inovacao-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
}

.inst-inovacao-header .text-green-light {
  color: var(--zait-light-primary);
}

.inst-inovacao-header .text-white {
  color: #ced6a3;
}

.inst-inovacao-header .text-green-medium {
  color: var(--zait-green-light);
}

.inst-inovacao-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--zait-text-muted);
  margin-bottom: 15px;
}

.inst-section-light .inst-inovacao-content p,
.inst-section-white .inst-inovacao-content p {
  color: var(--zait-text-gray);
}

/* =========================================
   PARCEIROS / INNOVATION CARDS
   ========================================= */
.inst-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.inst-partner-card {
  background: var(--zait-bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transition: var(--zait-transition);
  display: flex;
  flex-direction: column;
}

.inst-partner-card:hover {
  transform: translateY(-8px);
}

.inst-partner-image {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #f5f5f5;
}

.inst-partner-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--zait-gradient-green);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inst-partner-card:hover .inst-partner-image::after {
  opacity: 1;
}

.inst-partner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.inst-partner-content {
  padding: 35px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.inst-partner-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--zait-text-gray);
  flex-grow: 1;
  margin-bottom: 25px;
}

.inst-partner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--zait-gradient-green);
  color: var(--zait-text-light);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--zait-transition);
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(185, 207, 56, 0.2);
}

.inst-partner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(185, 207, 56, 0.4);
}

.inst-partner-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.inst-partner-btn:hover svg {
  transform: translateX(4px);
}

/* =========================================
   FEATURE BOXES
   ========================================= */
.inst-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.inst-feature-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: var(--zait-transition);
}

.inst-feature-box:hover {
  background: rgba(185, 207, 56, 0.08);
  border-color: rgba(185, 207, 56, 0.3);
  transform: translateY(-5px);
}

.inst-feature-box p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--zait-text-muted);
  margin: 0;
}

.inst-section-light .inst-feature-box,
.inst-section-white .inst-feature-box {
  background: var(--zait-bg-white);
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.inst-section-light .inst-feature-box p,
.inst-section-white .inst-feature-box p {
  color: var(--zait-text-gray);
}

/* =========================================
   CTA SECTION
   ========================================= */
.inst-cta-section {
  padding: 60px 20px;
  background: var(--zait-bg-dark);
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(185, 207, 56, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(114, 121, 39, 0.06) 0%, transparent 50%);
  text-align: center;
}

.inst-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.inst-cta-icon {
  margin-bottom: 30px;
}

.inst-cta-icon svg {
  width: 100px;
  height: auto;
  opacity: 0.9;
}

.inst-cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--zait-text-light);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.inst-cta-desc {
  font-size: 1.1rem;
  color: var(--zait-text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}

.inst-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: var(--zait-gradient-green);
  color: var(--zait-text-light);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--zait-transition);
  text-transform: uppercase;
}

.inst-cta-btn:hover {
  transform: translateY(-3px);
}

.inst-cta-btn svg {
  width: 22px;
  height: 22px;
}

/* =========================================
   VIDEO FULL WIDTH
   ========================================= */
.inst-video-full {
  width: 100%;
  overflow: hidden;
}

.inst-video-full video {
  width: 100%;
  display: block;
}

/* =========================================
   DIVIDER LINE
   ========================================= */
.inst-divider {
  height: 3px;
  background: var(--zait-gradient-green);
  margin: 0;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .inst-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .inst-intro-title svg {
    max-width: 35%;
    justify-self: center;
  }
  
  .inst-video-content h3 {
    margin-bottom: 20px;
  }

  .inst-inovacao-header {
    margin: 0 20px;
    text-align: center;
  }

  .inst-inovacao-content {
    margin: 10px 20px 0;
    text-align: center;
  }

  .inst-partner-card {
    margin: 0 20px;
  }
  
  .inst-pillar-image {
    margin: 0 20px;
  }
  
  .inst-intro-title {
    text-align: center;
  }
  
  .inst-video-block {
    grid-template-columns: 1fr;
  }
  
  .inst-video-block.reverse {
    direction: ltr;
  }
  
  .inst-video-container {
    min-height: 350px;
  }
  
  .inst-pillars {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .inst-valores-intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .inst-partners-grid {
    grid-template-columns: 1fr;
  }
  
  .inst-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .inst-section {
    padding: 60px 0;
  }

  .inst-inovacao-header h2 {
    margin-bottom: 20px;
  }

  .inst-intro-title svg {
    max-width: 70%;
  }

  .inst-hero-content {
    padding: 50px 20px;
  }
  
  .inst-intro-content {
    padding: 30px;
    margin: 0px 20px 20px;
  }
  
  .inst-pillar-content {
    border-left: none;
  }
  
  .inst-video-content {
    padding: 40px 30px;
  }
  
  .inst-cta-section {
    padding: 60px 20px;
  }
  
  .inst-feature-box {
    padding: 30px;
  }
  
  .inst-partner-content {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .inst-hero-label {
    font-size: 11px;
    letter-spacing: 2px;
  }
  
  .inst-intro-content {
    padding: 25px;
    text-align: center;
  }
  
  .inst-video-content {
    padding: 30px 20px;
  }
  
  .inst-pillar-content p {
    padding-left: 15px;
    font-size: 1rem;
  }
  
  .inst-valores-content p {
    padding-left: 15px;
  }
  
  .inst-partner-image {
    height: 200px;
  }

  .inst-partner-content {
    padding: 25px;
  }

  .inst-partner-btn {
    font-size: 0.9rem;
    padding: 12px 28px;
  }
}

/* =========================================
   ANIMATIONS
   ========================================= */
.inst-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.inst-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
