/* ═══════════════════════════════════════════════════════════════════
   DOUBBLE — CASE STUDY STYLES
   Mantém a mesma identidade da homepage (A24-style)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --black: #000000;
  --near-black: #0A0A0A;
  --dark-1: #141414;
  --dark-2: #1C1C1C;
  --gray-line: #2A2A2A;
  --gray-mute: #6B6B6B;
  --gray-soft: #A0A0A0;
  --white: #FFFFFF;
  --off-white: #F5F5F4;
  --bordeaux: #2A0718;
  --bordeaux-accent: #B8455C;

  --f-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1320px;
  --max-wide: 1480px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--white); color: var(--black); }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.italic {
  font-style: italic;
  font-weight: 400;
}

/* ─── NAV (replicada da homepage) ─── */
nav.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--gray-line);
}

.nav-logo {
  display: block;
  width: 92px;
  flex-shrink: 0;
}
.nav-logo svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--white);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray-soft);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--off-white); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 8px;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--near-black);
    border-bottom: 1px solid var(--gray-line);
    padding: 0;
  }
  .nav-links.open a {
    padding: 18px var(--gutter);
    border-bottom: 1px solid var(--gray-line);
    color: var(--off-white);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CASE HERO
═══════════════════════════════════════════════════════════════════ */
.case-hero {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--gray-line);
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--gray-mute);
  margin-bottom: 56px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: var(--gray-soft); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: var(--gray-mute); opacity: 0.5; }
.breadcrumb .current { color: var(--white); }

.case-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: end;
}
@media (max-width: 1000px) {
  .case-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.case-sector {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bordeaux-accent);
  margin-bottom: 24px;
}

.case-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 28px;
}

.case-pitch {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  color: var(--gray-soft);
  max-width: 38ch;
  margin-bottom: 48px;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-line);
}
@media (max-width: 500px) { .case-meta { grid-template-columns: 1fr; gap: 24px; } }

.meta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-mute);
  margin-bottom: 6px;
}
.meta-value {
  font-size: 14px;
  color: var(--white);
  line-height: 1.4;
}

.hero-metric {
  text-align: right;
}
@media (max-width: 1000px) { .hero-metric { text-align: left; } }

.hero-metric-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--white);
}
.hero-metric-value .sign {
  color: var(--bordeaux-accent);
  font-weight: 600;
  display: inline-block;
  margin-right: 0.04em;
}
.hero-metric-value .unit {
  font-size: 0.5em;
  color: var(--gray-soft);
  font-weight: 400;
}
.hero-metric-label {
  font-style: italic;
  font-size: 16px;
  color: var(--gray-soft);
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOCKS — modulares
═══════════════════════════════════════════════════════════════════ */
.block { padding: clamp(60px, 9vh, 100px) 0; }
.block + .block { padding-top: clamp(40px, 6vh, 70px); }

.block-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux-accent);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.block-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--bordeaux-accent);
  border-radius: 50%;
}
.block-label.centered {
  display: flex;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.block-caption {
  font-size: 13px;
  color: var(--gray-mute);
  margin-top: 16px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-style: italic;
}

/* ─── BLOCK: VIDEO (Vimeo iframe) ─── */
/* Variants: default (16:9) | .portrait (9:16) | .square (1:1) */

.block-video .video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--dark-1);
  border-radius: 4px;
  overflow: hidden;
}
.block-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* PORTRAIT — vertical video (Reels/TikTok/Shorts) */
/* Uses a cinematic letterbox: video centered with dark gradient frame around it */
.block-video.portrait .video-wrap {
  aspect-ratio: 21 / 9;
  background:
    radial-gradient(ellipse at center, rgba(42, 7, 24, 0.35) 0%, var(--black) 70%),
    linear-gradient(135deg, var(--dark-1) 0%, var(--black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-video.portrait .video-inner {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-height: 100%;
  background: var(--black);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.block-video.portrait iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 700px) {
  .block-video.portrait .video-wrap {
    aspect-ratio: auto;
    background: transparent;
    padding: 0;
  }
  .block-video.portrait .video-inner {
    height: auto;
    width: 100%;
    aspect-ratio: 9 / 16;
    box-shadow: none;
  }
}

/* SQUARE — 1:1 (Instagram feed) */
.block-video.square .video-wrap {
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at center, rgba(42, 7, 24, 0.3), var(--black) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.block-video.square .video-inner {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 1;
  max-height: 100%;
  background: var(--black);
  border-radius: 4px;
  overflow: hidden;
}
.block-video.square iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 700px) {
  .block-video.square .video-wrap {
    aspect-ratio: auto;
    background: transparent;
  }
  .block-video.square .video-inner {
    height: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
  }
}

/* ─── BLOCK: NARRATIVE ─── */
.narrative-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
@media (max-width: 800px) {
  .narrative-grid { grid-template-columns: 1fr; gap: 20px; }
}
.narrative-side .block-label { margin-bottom: 0; position: sticky; top: 100px; }

.narrative-body p {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--gray-soft);
  max-width: 64ch;
  margin-bottom: 20px;
}
.narrative-body p.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 24px;
}
.narrative-body strong {
  color: var(--white);
  font-weight: 600;
}
.narrative-body em {
  color: var(--bordeaux-accent);
  font-style: italic;
  font-weight: 400;
}

/* ─── BLOCK: PHOTO SINGLE ─── */
/* Variants: default (21:9 wide) | .portrait (4:5 tall) | .square (1:1) */

.block-photo-single figure {
  width: 100%;
}
.block-photo-single img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 4px;
  background: var(--dark-1);
}
.block-photo-single figcaption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray-mute);
  font-family: 'Inter', sans-serif;
  font-style: italic;
}

/* PORTRAIT — vertical photo (4:5) — centered, max readable height */
.block-photo-single.portrait figure {
  max-width: 720px;
  margin: 0 auto;
}
.block-photo-single.portrait img {
  aspect-ratio: 4 / 5;
}

/* SQUARE — 1:1 — centered */
.block-photo-single.square figure {
  max-width: 900px;
  margin: 0 auto;
}
.block-photo-single.square img {
  aspect-ratio: 1 / 1;
}

/* ─── BLOCK: PHOTO PAIR ─── */
/* Variants: default (square pair) | .portrait (tall pair) | .horizontal (wide pair) */

.photo-pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) { .photo-pair-grid { grid-template-columns: 1fr; } }

.photo-pair-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--dark-1);
}
.photo-pair-grid figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-mute);
  font-family: 'Inter', sans-serif;
  font-style: italic;
}

/* PORTRAIT — both photos vertical 4:5 */
.block-photo-pair.portrait .photo-pair-grid img { aspect-ratio: 4 / 5; }

/* HORIZONTAL — both photos wide 4:3 */
.block-photo-pair.horizontal .photo-pair-grid img { aspect-ratio: 4 / 3; }

/* ─── BLOCK: STATS GRID ─── */
.block-stats { text-align: center; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--near-black);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.4s, background 0.4s;
}
.stat-card:hover { border-color: var(--bordeaux-accent); background: var(--dark-1); }

.stat-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 14px;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-soft);
  line-height: 1.5;
}

/* ─── BLOCK: QUOTE ─── */
.block-quote {
  background: var(--near-black);
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
  margin: 0;
  padding: clamp(80px, 12vh, 120px) 0;
}
.block-quote blockquote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.block-quote blockquote p {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
  position: relative;
}
.block-quote blockquote p::before {
  content: '"';
  position: absolute;
  top: -0.4em;
  left: -0.4em;
  font-size: 3em;
  line-height: 1;
  color: var(--bordeaux-accent);
  opacity: 0.4;
  font-family: serif;
}
.block-quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-soft);
}

/* ─── BLOCK: BTS COMBO (video + 2 photos editorial layout) ─── */
/* Default: vídeo portrait 9:16 à esquerda + 2 fotos empilhadas à direita */
/* O grid usa height fixo baseado no vídeo para alinhar fotos. */

.bts-grid {
  display: grid;
  /* Vídeo vertical estreito + 2 fotos com mais largura */
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}
@media (max-width: 800px) { .bts-grid { grid-template-columns: 1fr; } }

.bts-video {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--dark-1);
  aspect-ratio: 9 / 16;
  width: 100%;
}
.bts-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.bts-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.bts-photos figure {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.bts-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  background: var(--dark-1);
  min-height: 0;
  flex: 1;
}
.bts-photos figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-mute);
  font-family: 'Inter', sans-serif;
  font-style: italic;
  flex-shrink: 0;
}

/* SQUARE BTS variant — vídeo 1:1 */
.bts-grid.square .bts-video {
  aspect-ratio: 1 / 1;
  max-height: 600px;
}

/* HORIZONTAL BTS variant — vídeo 16:9 em cima, fotos lado-a-lado em baixo */
.bts-grid.horizontal {
  grid-template-columns: 1fr;
}
.bts-grid.horizontal .bts-video {
  aspect-ratio: 16 / 9;
  max-height: none;
}
.bts-grid.horizontal .bts-photos {
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr;
}
.bts-grid.horizontal .bts-photos img { aspect-ratio: 4 / 3; }

@media (max-width: 800px) {
  .bts-video {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
  }
  .bts-photos {
    height: auto;
    gap: 12px;
  }
  .bts-photos figure { flex: none; }
  .bts-photos img {
    height: auto;
    aspect-ratio: 16 / 10;
    flex: none;
  }
  .bts-grid.horizontal .bts-photos { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════════════════════════════════ */
.case-cta {
  padding: clamp(80px, 14vh, 140px) 0;
  text-align: center;
  background: var(--black);
  border-top: 1px solid var(--gray-line);
}

.case-cta h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 0 auto 24px;
  max-width: 18ch;
}
.case-cta h2 em.italic {
  color: var(--gray-soft);
  font-weight: 400;
  font-style: italic;
}

.case-cta p {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--gray-soft);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: none;
  color: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-primary:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(255,255,255,0.15); }

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }

.btn .arrow { font-size: 16px; line-height: 1; transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }



/* ═══════════════════════════════════════════════════════════════════
   NO-MEDIA SUPPORT
   For case studies with no photos/video — typography & layout carry the weight
═══════════════════════════════════════════════════════════════════ */

/* Pull-quote: editorial-style highlighted phrase inside narrative */
.pull-quote {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
  border-left: 2px solid var(--bordeaux-accent);
  padding: 4px 0 4px 24px;
  margin: 36px 0;
  max-width: 24ch;
}
.pull-quote em {
  font-style: italic;
  color: var(--bordeaux-accent);
}

/* Block: Pure stats hero — when no media, show big stats prominently */
.block-stats-hero {
  text-align: center;
  padding: clamp(80px, 12vh, 120px) 0;
}
.block-stats-hero .stats-grid {
  margin-top: 56px;
}

/* Block: Big quote (standalone, no media) — pulls more visual weight */
.block-quote.large blockquote p {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.2;
}

/* Narrative block, when used standalone (no media around), gets more presence */
.block-narrative.spotlight .narrative-body p.lead {
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
}
.block-narrative.spotlight .narrative-body p {
  max-width: 60ch;
}



/* ─── BLOCK: CLIENT SOCIAL LINKS ─── */
.block-socials {
  text-align: center;
  padding: clamp(70px, 10vh, 100px) 0;
  border-top: 1px solid var(--gray-line);
}
.block-socials .block-label {
  margin-bottom: 24px;
}
.block-socials h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 40px;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.block-socials h3 em {
  font-style: italic;
  color: var(--gray-soft);
  font-weight: 400;
}

.socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  color: var(--off-white);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  text-decoration: none;
}
.social-pill:hover {
  border-color: var(--bordeaux-accent);
  color: var(--white);
  transform: translateY(-2px);
  background: rgba(184, 69, 92, 0.06);
}
.social-pill .social-icon {
  font-size: 16px;
  line-height: 1;
}
.social-pill .arrow {
  font-size: 14px;
  margin-left: 2px;
  color: var(--gray-soft);
  transition: transform 0.3s, color 0.3s;
}
.social-pill:hover .arrow {
  transform: translateX(3px);
  color: var(--bordeaux-accent);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
footer {
  background: var(--near-black);
  padding: 32px 0;
  border-top: 1px solid var(--gray-line);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-mute);
}
.foot-bottom a { color: var(--gray-soft); transition: color 0.3s; }
.foot-bottom a:hover { color: var(--white); }

.foot-socials { display: flex; gap: 18px; }
.foot-socials a {
  font-size: 12px;
  color: var(--gray-soft);
  transition: color 0.3s;
}
.foot-socials a:hover { color: var(--white); }
