/* ─────────────────────────────────────────
   CASE STUDY PAGE STYLES (projeto.html)
───────────────────────────────────────── */

/* HERO SECTION PARALLAX */
.case-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.case-hero-parallax {
  position: absolute;
  inset: -10%; /* Fundo ligeiramente maior para o parallax */
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

.case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, var(--black) 100%);
  z-index: 1;
}

/* Grid container dentro do hero — herda o grid de 12 colunas do .container */
.case-hero-grid {
  position: relative;
  z-index: 2;
  align-items: center; /* Centraliza verticalmente dentro do grid */
  align-content: center;
}

/* Conteúdo de texto do hero: ocupa a metade esquerda (col 1 a 8),
   alinhando a margem esquerda com o logo na navbar */
.case-hero-content {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 750px;
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.case-back-link {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s;
}
.case-back-link:hover { color: var(--white); }

.case-cat-label {
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
}

.case-title-huge {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 100px);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--white);
}

.case-hero-desc {
  font-size: 20px;
  color: var(--gray);
  line-height: 1.6;
  max-width: 600px;
}

/* SCROLL INDICATOR — posicionado no centro inferior do hero, fora do fluxo do texto */
.scroll-down-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;                   /* Centro horizontal da tela */
  transform: translateX(-50%);
  z-index: 10;                 /* Acima de todos os elementos do hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  pointer-events: none;        /* Não bloqueia cliques no conteúdo */
}
.scroll-down-indicator span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
}
.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 12px;
  position: relative;
}
.wheel {
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite ease-in-out;
}
@keyframes scrollWheel {
  0%   { top: 6px;  opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* CASE MAIN CONTENT */
.case-main { background: var(--black); }

.case-section {
  padding: 120px 0;
}
.bg-dark { background: var(--dark-grey); }
.bg-black { background: var(--black); }

.case-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  align-items: start;
}
.case-grid.reverse .case-text { grid-column: 7 / 13; grid-row: 1; }
.case-grid.reverse .case-media { grid-column: 1 / 6; grid-row: 1; }

.case-sidebar { grid-column: 2 / 5; }
.case-text { grid-column: 6 / 12; }
.case-media { grid-column: 6 / 12; }

.case-section-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--white);
}

.case-details {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--gray);
}
.case-details li { margin-bottom: 12px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 12px; }
.case-details strong { color: var(--white); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }

.lead-text {
  font-size: 24px;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 30px;
}
.case-text p {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.case-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* CLIENT QUOTE */
.client-quote {
  margin-top: 50px;
  padding-left: 30px;
  border-left: 2px solid var(--orange);
  position: relative;
}
.quote-icon { margin-bottom: 20px; opacity: 0.5; }
.client-quote blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  line-height: 1.4;
  margin: 0 0 20px 0;
}
.client-quote cite {
  font-style: normal;
  color: var(--gray);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SHOWCASE GALLERY */
.case-showcase {
  padding: 80px 0;
  background: var(--black);
}
.showcase-header { grid-column: 1 / -1; margin-bottom: 60px; }
.text-center { text-align: center; }

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.showcase-item {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* LIGHTBOX (POPUP) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
  transition: color 0.3s;
}
.lightbox-close:hover { color: var(--orange); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 24px;
  padding: 20px 15px;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 4px;
  backdrop-filter: blur(5px);
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--orange); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

/* BOTTOM NAVIGATION */
.case-navigation-bottom {
  padding: 80px 0 100px;
  background: var(--dark-grey);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.nav-bottom-flex {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 60px;
}
.nav-bottom-link {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-bottom-link:hover { color: var(--orange); }
.next-case { text-align: right; }
.next-case span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.nav-bottom-contact {
  grid-column: 1 / -1;
  text-align: center;
}
.nav-bottom-contact p {
  color: var(--gray);
  font-size: 18px;
  margin-bottom: 24px;
}

/* RESPONSIVE UPDATES FOR CASE STUDY */
@media (max-width: 1024px) {
  .case-hero-content { grid-column: 1 / -1; max-width: 100%; }
  .case-sidebar { grid-column: 2 / 12; margin-bottom: 40px; }
  .case-text, .case-media { grid-column: 2 / 12; }
  .case-grid.reverse .case-text { grid-column: 2 / 12; grid-row: 2; }
  .case-grid.reverse .case-media { grid-column: 2 / 12; grid-row: 1; margin-bottom: 40px; }
  .case-details { display: flex; gap: 20px; }
  .case-details li { border: none; padding: 0; }
}

@media (max-width: 768px) {
  .case-hero-content { grid-column: 1 / -1; margin-top: 0; }
  .case-details { flex-direction: column; gap: 10px; }
  .nav-bottom-flex { flex-direction: column; gap: 40px; text-align: center; }
  .next-case { text-align: center; }
  
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -50px; right: 10px; }
}

