/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Bloqueia o scroll quando menu mobile está aberto */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* ===============================
   HEADER
================================ */

.hero-header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* Top bar - MOBILE */
.header-top {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.4s ease;
  z-index: 1000;
}

.header-top.compact {
  padding: 12px 24px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
}

/* Logo + menu */
.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  height: 44px;
  transition: height 0.4s ease;
}

.header-top.compact .logo {
  height: 28px;
}

/* Menu */
.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  opacity: 0.85;
}

.main-nav a:hover {
  opacity: 1;
  color: #dc512e;
}

/* CTA */
.header-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: #fff;
}

.header-cta:hover {
  background: #fff;
  color: #000;
}

/* ===============================
   WORKS SECTION - NOVA ESTRUTURA
   Cada projeto tem seu próprio título
================================ */

.works {
  width: 100%;
  padding: 80px 6vw;
  background: #000;
}

/* Eyebrow fixo no topo (MOBILE) */
.works-eyebrow-fixed {
  position: sticky;
  top: 80px;
  z-index: 10;
  background: #000;
  padding: 20px 0;
  margin-bottom: 40px;
}

.works-eyebrow {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Container dos projetos */
.works-media {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Cada item de projeto */
.media-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Informações do projeto (título + descrição) */
.project-info {
  max-width: 600px;
}

.project-info h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-info p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
}

/* Imagens e vídeos dos projetos */
.media-item img,
.media-item video {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  border-radius: 8px;
}

/* ===============================
   VIEW MORE PROJECTS
================================ */

.view-more-projects {
  margin-top: 40px;
}

.view-more-projects a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
  background: #1c1c1c;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.view-more-projects a:hover {
  background: #2a2a2a;
  transform: translateY(-4px);
}

/* ===============================
   HERO TEXT FADE
================================ */

.hero-corner-text {
  position: absolute;
  left: 24px;
  bottom: 48px;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.hero-corner-text.is-hidden {
  opacity: 0;
}

.hero-corner-text h2 {
  font-size: 18px;
  font-weight: 500;
}

.hero-corner-text p {
  font-size: 14px;
  opacity: 0.6;
}

/* ===============================
   HOME MANIFESTO
================================ */

.home-statement {
  min-height: 30vh;
  display: flex;
  align-items: center;
}

.home-statement p {
  max-width: 820px;
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ===============================
   NEWS
================================ */

.news-section {
  padding: 80px 0 100px;
  background: #000;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6vw;
  margin-bottom: 32px;
}

.news-header h2 {
  font-size: 24px;
  font-weight: 500;
}

.view-all {
  font-size: 14px;
  opacity: 0.6;
  text-decoration: none;
  color: #fff;
}

.news-scroll {
  display: flex;
  gap: 24px;
  padding-left: 6vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.news-scroll::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 min(520px, 80vw);
  scroll-snap-align: start;
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 16px;
}

.news-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
}

/* ===============================
   FOOTER – MOBILE
================================ */

.site-footer {
  position: relative;
  padding: 80px 6vw 60px;
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

.footer-title {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #fff;
  opacity: 0.6;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
  color: #dc512e;
}

.footer-cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
}

.footer-cta:hover {
  color: #dc512e;
  border-bottom-color: #dc512e;
}

.footer-loop {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
}

.loop-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: loopWords 30s linear infinite;
}

.loop-track span {
  font-size: 40px;
  font-weight: 500;
  opacity: 0.1;
}

@keyframes loopWords {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.footer-logo-watermark {
  position: absolute;
  right: 6vw;
  bottom: 40px;
  width: 180px;
  opacity: 0.5;
  pointer-events: none;
}

.clock {
  font-size: 14px;
  opacity: 0.65;
  margin-right: 24px;
  letter-spacing: 0.04em;
}

/* ===============================
   WORKS PAGE LAYOUT – MOBILE
================================ */

.page-works .header-top {
  background: #000;
  padding: 20px 24px;
}

.page-works .header-top.compact {
  padding: 12px 24px;
  background: rgba(0,0,0,0.95);
}

.page-works {
  background: #000;
}

/* Layout geral – MOBILE: 1 coluna */
.works-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 100px 6vw 100px;
  align-items: flex-start;
}

/* Texto esquerdo – MOBILE: não sticky */
.works-intro {
  position: relative;
  top: 0;
  max-width: 420px;
  height: fit-content;
  margin-bottom: 64px;
}

.works-intro h1 {
  font-size: 44px;
  font-weight: 500;
  margin-bottom: 20px;
}

.works-intro p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
}

/* Grid de projetos – MOBILE: 1 coluna, imagens maiores */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.work-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.work-item:hover {
  opacity: 0.85;
}

.work-item img,
.work-item video {
  width: 100%;
  height: 55vh;
  object-fit: cover;
  margin-bottom: 20px;
}

.work-item h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.work-item p {
  font-size: 14px;
  opacity: 0.6;
}

/* ===============================
   SKIP LINK (ACCESSIBILITY)
================================ */

.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: #dc512e;
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
}

.skip-link:focus {
  top: 0;
}

/* ===============================
   DESKTOP LAYOUT (>900px)
================================ */

@media (min-width: 900px) {

  .header-top {
    padding: 28px 5vw;
  }

  .logo {
    height: 40px;
  }

  .header-top.compact .logo {
    height: 32px;
  }

  /* WORKS */
  .works {
    padding: 120px 5vw;
  }

  .works-eyebrow-fixed {
    top: 120px;
    margin-bottom: 60px;
  }

  .works-eyebrow {
    font-size: 13px;
  }

  .works-media {
    gap: 120px;
  }

  .media-item {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 80px;
    align-items: center;
  }

  .project-info h2 {
    font-size: 52px;
  }

  .project-info p {
    font-size: 16px;
    margin-top: 24px;
  }

  .media-item img,
  .media-item video {
    width: 100%;
    height: 75vh;
  }

  .view-more-projects a {
    height: 220px;
    max-width: 800px;
    margin-left: auto;
  }

  /* WORKS PAGE */
  .works-page {
    grid-template-columns: 30% 1fr;
    gap: 80px;
    padding: 140px 5vw 120px;
  }

  .works-intro {
    position: sticky;
    top: 140px;
    margin-bottom: 0;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }

  .work-item img,
  .work-item video {
    height: 420px;
  }

  /* HERO */
  .hero-corner-text {
    left: 5vw;
    bottom: 80px;
  }

  .hero-corner-text h2 {
    font-size: 24px;
  }

  .hero-corner-text p {
    font-size: 15px;
  }

  /* HOME MANIFESTO */
  .home-statement {
    padding: 0 5vw;
    min-height: 50vh;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
  }
}

/* ===============================
   NEWSLETTER
================================ */

.newsletter-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: 60px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.newsletter-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.newsletter-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 500px;
  line-height: 1.6;
}

.newsletter-form {
  width: 100%;
  max-width: 520px;
}

.newsletter-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.newsletter-input-wrapper input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  font-family: 'Raleway', sans-serif;
  transition: all 0.3s ease;
}

.newsletter-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-input-wrapper input:focus {
  outline: none;
  border-color: #dc512e;
  background: rgba(255, 255, 255, 0.05);
}

.newsletter-btn {
  padding: 14px 32px;
  background: #dc512e;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #b23e22;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 81, 46, 0.3);
}

.newsletter-disclaimer {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .newsletter-section { padding: 40px 24px; }
  .newsletter-container { flex-direction: column; gap: 32px; }
  .newsletter-title { font-size: 24px; }
  .newsletter-input-wrapper { flex-direction: column; }
  .newsletter-btn { width: 100%; }
}

/* ===============================
   POSTS GRID (Latest Insights)
================================ */
.posts-container {
  padding: 100px 6vw;
  max-width: 1400px;
  margin: 0 auto;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.posts-header h2 {
  font-size: 32px;
  font-weight: 600;
}

.view-all-posts {
  color: #dc512e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.view-all-posts:hover {
  opacity: 0.7;
}

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

.post-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc512e, #ff6b4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.post-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.post-card:hover::before {
  transform: scaleX(1);
}

.post-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.post-category {
  color: #dc512e;
}

.post-date {
  position: relative;
  padding-left: 16px;
}

.post-date::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.post-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff;
}

.post-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #dc512e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.3s ease;
  text-decoration: none;
}

.post-card:hover .post-read-more {
  gap: 12px;
}

.post-read-more::after {
  content: '→';
  font-size: 16px;
}

@media (max-width: 768px) {
  .posts-container {
    padding: 60px 24px;
  }
  
  .posts-header h2 {
    font-size: 28px;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-card {
    padding: 24px;
  }
}

/* Estilização das Redes Sociais no Rodapé */
.footer-socials {
  display: flex;
  gap: 16px;
  margin: 15px 0 20px 0;
}

.footer-socials a {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-socials a:hover {
  color: #dc512e;
  transform: translateY(-3px);
}

.footer-socials svg {
  display: block;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Seletor de Idioma */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-size: 13px;
  font-weight: 600;
}

.lang-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.lang-link:hover {
  color: #dc512e;
}

.lang-link.lang-active {
  color: #fff;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .lang-switch {
    margin-right: 8px;
    font-size: 11px;
  }
}

/* ===============================
   HEADER REFINEMENTS (Desktop)
================================ */

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #fff;
}

.logo-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.3);
}

.logo-description {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  font-weight: 500;
}

.header-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

/* ===============================
   MOBILE MENU (Hambúrguer)
================================ */

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
  display: block;
}

/* Overlay escuro quando menu está aberto */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.is-active {
  display: block;
  opacity: 1;
}

@media (max-width: 1100px) {
  .mobile-toggle { display: flex; }

  .header-nav-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 10vw;
    transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    z-index: 1000;
    gap: 48px;
    overflow-y: auto;
  }

  .header-nav-wrapper.is-open {
    right: 0;
  }

  .main-nav {
    flex-direction: column;
    gap: 24px;
  }

  .main-nav a { font-size: 28px; }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
  }

  .header-cta { text-align: center; width: 100%; }

  .clock {
    display: block;
  }

  .lang-switch {
    margin-right: 0;
  }

  .mobile-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
  .mobile-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}