/* ==========================================================================
   Rodeo FX Inspired Template - Layout & Structure (CSS Modular)
   ========================================================================== */

/* Reset Básico */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

img, video {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Utilitários & Placeholders
   ========================================================================== */
.container {
  width: 100%;
  padding-left: var(--space-container-x);
  padding-right: var(--space-container-x);
  margin: 0 auto;
}

.placeholder-media {
  background: var(--color-bg-alt);
  border: 1px dashed var(--verde-tucano);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde-tucano);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* ==========================================================================
   Header (Navegação)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem var(--space-container-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 100;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: padding var(--transition-fast);
}

.site-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.8;
}

.logo-bossa {
  font-family: var(--font-script);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--laranja-tucano);
  font-weight: normal;
  margin-bottom: 0;
  line-height: 1;
}

.logo-bureau {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: #3b2a1a;
  text-transform: uppercase;
  margin-top: -0.5rem;
}

/* Navegação */
.site-nav {
  display: flex;
  gap: 2vw;
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.site-nav a {
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--verde-tucano);
}

.site-nav a:hover {
  color: var(--laranja-tucano);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.section-hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-media-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-media-wrapper .placeholder-media {
  min-height: 100vh;
}

.hero-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.hero-flag {
  width: 32px;
  height: auto;
  margin-bottom: 1.5rem;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  font-weight: 800;
  text-transform: uppercase;
  max-width: 1000px;
  margin: 0 auto;
}

.editorial-accent {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: var(--laranja-tucano);
  font-weight: normal;
  font-style: italic;
  text-transform: none;
  display: block;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Manifesto / Princípios
   ========================================================================== */
.section-manifesto {
  padding: 8rem var(--space-container-x);
  background: var(--fundo-areia);
}

.manifesto-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--preto-texto);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2rem;
  line-height: 1.1;
  text-align: center;
}

.manifesto-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 5rem;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--preto-texto);
  line-height: 1.6;
  opacity: 0.85;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.manifesto-card {
  background: var(--verde-tucano);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.5s;
}

.manifesto-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 0 40px rgba(255, 223, 0, 0.3),
              inset 0 0 20px rgba(255, 223, 0, 0.1);
  border-color: var(--amarelo-tucano);
}

.manifesto-icon {
  margin-bottom: 1.5rem;
  color: var(--amarelo-tucano);
  display: flex;
  transition: color 0.4s;
}

.manifesto-icon svg {
  width: 3.5rem;
  height: 3.5rem;
  stroke-width: 1.5px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.manifesto-card:hover .manifesto-icon {
  color: #fff;
}

.manifesto-card:hover .manifesto-icon svg {
  transform: scale(1.15);
  animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
  0% { transform: translateY(0) scale(1.15); }
  100% { transform: translateY(-8px) scale(1.15); }
}

.manifesto-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--amarelo-tucano);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
}

.manifesto-text {
  font-family: var(--font-accent);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: #fff;
  font-weight: 400;
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   Showcase / Grid de Projetos (Neomorfismo)
   ========================================================================== */
.section-showcase {
  padding: var(--space-section-y) 0;
  background: var(--fundo-areia);
}

.showcase-header {
  margin-bottom: 4rem;
  padding: 0 var(--space-container-x);
}

.showcase-title {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
  color: var(--laranja-tucano);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 0 var(--space-container-x);
}

.project-card {
  position: relative;
  background: var(--fundo-areia);
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 12px 12px 24px rgba(160, 150, 130, 0.3),
             -12px -12px 24px rgba(255, 255, 255, 0.8);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.project-card .placeholder-media {
  min-height: 100%;
  border: none;
  border-radius: 20px;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 16px 16px 32px rgba(160, 150, 130, 0.4),
             -16px -16px 32px rgba(255, 255, 255, 0.9);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 2rem;
  width: 100%;
  background: linear-gradient(to top, rgba(244, 241, 234, 0.95), transparent);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-fast);
}

.project-card:hover .project-info {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  font-size: var(--text-h3);
  margin-bottom: 0.5rem;
  color: var(--preto-texto);
}

.project-meta {
  font-size: var(--text-small);
  color: var(--laranja-tucano);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

/* ==========================================================================
   Showcase / Featured Work
   ========================================================================== */
.section-showcase {
  padding: var(--space-section-y) var(--space-container-x);
  background: var(--fundo-areia);
}

.showcase-header {
  text-align: center;
  margin-bottom: 4rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 8px 24px rgba(0, 0, 0, 0.1);
  background: var(--preto-texto);
}

.showcase-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   News / Culture Section
   ========================================================================== */
.section-news {
  padding: var(--space-section-y) var(--space-container-x);
  background: var(--amarelo-tucano);
}

.news-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 5rem;
}

.news-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--preto-texto);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--verde-tucano);
  line-height: 1.1;
}

.news-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 4rem;
}

.news-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  width: 100%;
  padding: 1rem 0 2rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.news-grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1200px) {
  .news-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .news-grid {
    gap: 1rem;
  }
}

.news-card {
  flex: 0 0 calc(33.333% - 1.5rem);
  scroll-snap-align: start;
  background: var(--fundo-areia);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 8px 16px rgba(0,0,0,0.05);
  position: relative;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 16px 24px rgba(0,0,0,0.1);
}

/* Efeito 'Cartas na Mesa' para telas grandes */
@media (min-width: 1201px) {
  .news-card:nth-child(1) { transform: rotate(-3deg) translateY(10px); z-index: 1; }
  .news-card:nth-child(2) { transform: rotate(4deg) translateY(-5px); z-index: 2; }
  .news-card:nth-child(3) { transform: rotate(-2deg) translateY(15px); z-index: 3; }
  .news-card:nth-child(4) { transform: rotate(5deg) translateY(-10px); z-index: 4; }

  .news-card:hover {
    transform: rotate(0deg) translateY(-20px) scale(1.05);
    z-index: 10;
    box-shadow: 16px 24px 48px rgba(0,0,0,0.25);
  }
}

.news-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-card-thumb img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.news-card-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--laranja-tucano);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.news-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--onyx);
  line-height: 1.3;
}

/* CORREÇÃO DAS SETAS (SIMÉTRICAS E VISÍVEIS) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.carousel-arrow:hover {
  background: var(--laranja-tucano);
  border-color: var(--laranja-tucano);
  color: #ffffff;
}

.carousel-arrow.left {
  left: 0;
}

.carousel-arrow.right {
  right: 0;
}

@media (max-width: 1200px) {
  .news-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .news-card {
    flex: 0 0 100%;
  }
}

/* ==========================================================================
   Call To Action (Híbrido)
   ========================================================================== */
.section-cta {
  padding: 2.5rem var(--space-container-x) 1.5rem;
  background: var(--verde-tucano);
  color: #fff;
  text-align: center;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-connections {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  margin-bottom: 3rem;
}

.cta-connections a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.cta-connections a:hover {
  color: var(--amarelo-tucano);
}

.cta-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}

.cta-pill-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--amarelo-tucano);
  margin-bottom: 1.5rem;
}

.cta-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #fff;
  margin-bottom: 3rem;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--laranja-tucano);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}

.cta-button:hover {
  transform: translateY(-5px);
  background: var(--amarelo-tucano);
  color: var(--preto-texto);
}

/* ==========================================================================
   WhatsApp Float
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

/* ==========================================================================
   Footer Completo (Centralizado e Compacto)
   ========================================================================== */
.site-footer {
  padding: 4rem 0 2rem;
  background: var(--preto-texto);
  color: #fff;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand .site-logo {
  justify-content: center;
  margin-bottom: 0.5rem;
}

.footer-brand .logo-bossa {
  font-size: 3.5rem;
  color: var(--laranja-tucano);
  line-height: 1;
}

.footer-brand .logo-bureau {
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 4px;
  margin-top: 0;
}

.footer-slogan {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--amarelo-tucano);
  max-width: 500px;
  margin: 0 auto;
}

.footer-location {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.footer-social-icons-large {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.icon-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: all 0.3s;
}

.icon-social:hover {
  border-color: var(--laranja-tucano);
  background: var(--laranja-tucano);
  color: #fff;
  transform: translateY(-5px);
}

.icon-social svg {
  width: 20px;
  height: 20px;
}

.footer-contact-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-email, .footer-phone {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}

.footer-email:hover, .footer-phone:hover {
  color: var(--laranja-tucano);
}

.footer-base {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.footer-base p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Responsividade */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem var(--space-container-x);
  }
  .nav-left, .nav-right {
    justify-content: center;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .footer-brand .logo-bossa {
    font-size: 4rem;
  }
  .footer-brand .logo-bureau {
    font-size: 1.5rem;
  }
}

/* ================== MOBILE MENU & NÚCLEO DE CORREÇÃO (added) ================== */
.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 768px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
  }
  .nav-left, .nav-right { display: none; }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--verde-tucano);
    cursor: pointer;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: var(--fundo-areia);
    border-bottom: 2px solid var(--laranja-tucano);
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
  }
  .mobile-nav.active {
    max-height: 300px;
    padding: 2rem;
  }
  .mobile-nav a {
    font-size: var(--text-small);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--verde-tucano);
  }

  .hero-title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .manifesto-title { font-size: clamp(1.8rem, 9vw, 3rem); }
  .news-title { font-size: clamp(1.8rem, 9vw, 3rem); }
  .manifesto-grid, .showcase-grid { grid-template-columns: 1fr !important; }
  .news-card { flex: 0 0 100% !important; }

  /* CORREÇÃO DEFINITIVA (REGRA 3): Flexbox Nativo */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Impede estouro de largura */
  * {
    max-width: 100vw !important;
  }

  .news-carousel-wrapper {
    padding: 0 !important;
    width: 100% !important;
  }

  /* Usando o Flexbox natural do pai para centralizar de forma infalível */
  .section-hero {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  /* Removido o left: 50% que empurrava para a direita */
  .hero-content {
    position: relative !important;
    width: 100% !important;
    padding: 0 20px !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
  }
}