/* ==========================================================================
   HOME v2 — Editorial Claro
   Obs.: o componente .ba-* é reutilizado em projetos.html — manter nomes.
   ========================================================================== */

/* ============ HERO EDITORIAL ============ */
.hero-editorial {
  padding: clamp(8rem, 16vh, 11rem) 0 0;
  background-color: var(--bg-color);
}

.hero-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}

.hero-title em {
  font-style: normal;
  color: var(--primary-color);
}

/* Palavras divididas pelo JS para o stagger */
.hero-title .hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .hw > span {
  display: inline-block;
  will-change: transform;
}

.hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin: 3rem 0 4.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
  line-height: 1.7;
  margin: 0;
}

.hero-materials {
  display: block;
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  opacity: 0.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  flex-shrink: 0;
}

.hero-media {
  height: min(74vh, 780px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 0;
  position: relative;
  background-color: var(--dark-surface);
}

.hero-media img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

/* Ambiente (foto retrato): corte cinematográfico landscape mantendo piso, figura e janelas */
.hero-media--ambiente {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 760px;
}

.hero-media--ambiente img {
  object-position: center 58%;
}

.hero-editorial .container-wide:last-child {
  padding-bottom: 6rem;
}

@media (max-width: 880px) {
  /* foto no formato natural (3:4), preenchendo 100% e centralizada */
  .hero-media--ambiente {
    aspect-ratio: 3 / 4;
    height: auto;
    max-height: none;
  }
  .hero-media--ambiente img {
    height: 100%;            /* remove o respiro do parallax que causava a barra preta */
    object-position: center;
    transform: none;
  }

  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    margin: 2.25rem 0 2.75rem;
  }

  /* ações alinhadas à esquerda, acompanhando o texto */
  .hero-actions {
    justify-content: flex-start;
    width: 100%;
  }

  /* só as outras hero-media usam altura fixa; a ambiente usa o aspect-ratio */
  .hero-media:not(.hero-media--ambiente) { height: 58vh; }
  .hero-editorial .container-wide:last-child { padding-bottom: 4rem; }
}

/* ============ MARQUEE DE MARCAS ============ */
.brands-marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.75rem 0;
  overflow: hidden;
  background-color: var(--bg-color);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
}

.marquee-list {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee-list li {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 2.5rem;
}

.marquee-list li[aria-hidden="true"],
.marquee-list:nth-child(2) li:nth-child(even) {
  font-size: 0.7rem;
  color: var(--primary-color);
  opacity: 0.5;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ MANIFESTO ============ */
.manifesto .container { max-width: 1000px; }

.manifesto-text {
  font-family: var(--font-headings);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin: 0 0 5rem;
}

.manifesto-text .mw { display: inline; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
}

.stat {
  padding: 2.5rem 1.5rem 0 0;
}

.stat + .stat {
  padding-left: 2.5rem;
  border-left: 1px solid var(--hairline);
}

.stat-num {
  display: block;
  font-family: var(--font-headings);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat { padding: 1.75rem 0 1.5rem; border-bottom: 1px solid var(--hairline); }
  .stat + .stat { padding-left: 0; border-left: none; }
  .stat:last-child { border-bottom: none; }
}

/* ============ BENTO GRID ============ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--dark-surface);
  isolation: isolate;
}

.b-1 { grid-column: span 7; height: clamp(22rem, 46vw, 32rem); }
.b-2 { grid-column: span 5; height: clamp(22rem, 46vw, 32rem); }
.b-3, .b-4, .b-5 { grid-column: span 4; height: clamp(17rem, 30vw, 21rem); }
.b-6 { grid-column: span 12; height: clamp(13rem, 22vw, 16rem); }

.bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.4s var(--ease-out);
  will-change: transform;
}

.bento-card:hover img { transform: scale(1.05); }

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 8, 0.78) 0%, rgba(15, 10, 8, 0.18) 45%, rgba(15, 10, 8, 0.05) 100%);
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.bento-chip {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.bento-info {
  position: absolute;
  left: 1.75rem;
  right: 4.5rem;
  bottom: 1.6rem;
  z-index: 2;
  color: var(--text-light);
}

.bento-info h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.bento-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  max-width: 42ch;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.bento-card:hover .bento-info p {
  opacity: 1;
  transform: translateY(0);
}

.bento-arrow {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.bento-arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--text-main);
}

.bento-card:hover .bento-arrow {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 992px) {
  .b-1, .b-2 { grid-column: span 12; height: 24rem; }
  .b-3, .b-4, .b-5 { grid-column: span 12; height: 20rem; }
  .b-6 { height: 16rem; }
  .bento-info p { opacity: 1; transform: none; }
  .bento-arrow { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .section-head-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ============ AMBIENTES (PINADO) ============ */
.amb-head { margin-bottom: 4rem; }
.amb-head .section-title { margin-left: 0; text-align: left; }

.ambientes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.amb-visual {
  position: sticky;
  top: 13vh;
  height: 74vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--dark-surface);
}

.amb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.7s var(--ease-out), transform 1.3s var(--ease-out);
}

.amb-img.active {
  opacity: 1;
  transform: scale(1);
}

.amb-item {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--hairline);
  padding: 3rem 0;
}

.amb-item:first-child { border-top: none; }

.amb-index {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.amb-item h3 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.amb-item p {
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

.amb-inline-img { display: none; }

@media (max-width: 880px) {
  .ambientes-grid { grid-template-columns: 1fr; }
  .amb-visual { display: none; }

  .amb-item {
    min-height: 0;
    padding: 2.5rem 0;
  }

  .amb-inline-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }
}

/* ============ ANTES & DEPOIS (reutilizado em projetos.html) ============ */
.ba-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--dark-surface);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.ba-img-after {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-label {
  position: absolute;
  top: 1.25rem;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-light);
  background: rgba(15, 10, 8, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  pointer-events: none;
}

.ba-label-before { right: 1.25rem; }
.ba-label-after { left: 1.25rem; }

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 4;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 10, 8, 0.25);
  transition: transform var(--transition-fast);
}

.ba-slider-wrapper.dragging .ba-handle-button,
.ba-handle:hover .ba-handle-button {
  transform: translate(-50%, -50%) scale(1.08);
}

.ba-handle-button svg {
  width: 22px;
  height: 22px;
  fill: var(--text-main);
}

.ba-footer {
  text-align: center;
  margin-top: 3.5rem;
}

/* ============ DEPOIMENTOS EDITORIAIS ============ */
.quotes-section .container { max-width: 1000px; }

.quote-viewport {
  position: relative;
  min-height: clamp(16rem, 30vw, 19rem);
  margin-top: 2.5rem;
}

.quote-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0.6s;
  margin: 0;
}

.quote-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.quote-slide blockquote {
  font-family: var(--font-headings);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.quote-slide figcaption {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

/* Card enxuto (avaliação só com estrelas, sem texto) */
.quote-bigstars {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.1em;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 2rem;
}

.quote-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.quote-source {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.quote-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.quote-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(23, 18, 15, 0.2);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quote-arrow svg {
  width: 18px;
  height: 18px;
  fill: var(--text-main);
}

.quote-arrow:hover {
  background: var(--text-main);
  border-color: var(--text-main);
}

.quote-arrow:hover svg { fill: var(--bg-color); }

.quote-count {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ============ CTA FINAL ============ */
.cta-final {
  background-color: var(--primary-deep);
  background-image: radial-gradient(ellipse 80% 60% at 50% 110%, rgba(255, 255, 255, 0.06), transparent);
  color: var(--text-light);
  text-align: center;
  padding: clamp(7rem, 16vh, 11rem) 0;
}

.cta-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 48ch;
  margin: 0 auto 3rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.cta-link {
  color: rgba(255, 255, 255, 0.85);
}

.cta-link:hover { color: var(--text-light); }
