/* ==========================================================================
   BUGANI — Design system
   Preto / Dourado / Cinza-claro — identidade já definida no briefing.
   ========================================================================== */

:root {
  --black: #000000;
  --gold: #F2CB05;
  --gold-dark: #D6B300;
  --bg-light: #EAEAEA;
  --bg-lighter: #F4F4F4;
  --bg-mid: #D6D6D6;
  --white: #FFFFFF;
  --ink: #101010;
  --ink-soft: #3A3A3A;
  --border: #CFCFCF;

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 72px;
  --container: 1180px;
  --radius: 14px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; line-height: 1.6; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 900px; }
@media (max-width: 420px) { .container { padding: 0 20px; } }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--black); padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  height: var(--nav-h);
  display: flex; align-items: center;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--white); }
.nav-logo__img { height: 30px; width: auto; display: block; }
.nav-logo .word { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.nav-logo .tag { font-size: 11px; line-height: 1.15; color: #C9C9C9; font-weight: 400; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #B9B9B9; font-size: 13px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; background: var(--black);
    flex-direction: column; gap: 0; padding: 8px 32px 32px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid #222; }
  .nav-links a { display: block; padding: 16px 0; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 12px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--white); }
}

/* ---------- Video block (hero / banner) ---------- */
.video-block { position: relative; background: var(--bg-mid); overflow: hidden; }
/* O JS cria o <iframe> já com a classe video-block__media diretamente nele
   (não dentro de uma div wrapper) — por isso o seletor é direto. Isso
   garante que pointer-events:none e o tamanho calculado sejam aplicados
   no elemento certo (evita hover mostrando controles do YouTube). */
.video-block__media {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;       /* 16:9 a partir da largura da tela */
  min-width: 177.78vh; min-height: 100vh; /* 16:9 a partir da altura da tela */
}
@supports (width: 100cqw) {
  .video-block { container-type: size; }
  .video-block__media {
    width: 100cqw; height: 56.25cqw;
    min-width: 177.78cqh; min-height: 100cqh;
  }
}
.video-block__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.video-block__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #8b8b8b; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 24px;
}

/* Home: stacked hero sections */
.hero-section {
  /* Cresce com a largura da tela (até um teto) pra telas grandes mostrarem
     mais do enquadramento original do vídeo, sem cortar tanto em cima/baixo. */
  min-height: clamp(420px, 42vw, 640px);
  display: flex; align-items: center;
}
.hero-section .container { position: relative; z-index: 2; width: 100%; }
.hero-section__copy { max-width: 640px; }
.hero-section__title {
  display: inline; font-size: clamp(22px, 3.4vw, 34px); color: var(--white);
  background: var(--black); padding: 6px 14px; box-decoration-break: clone; -webkit-box-decoration-break: clone;
  line-height: 1.5;
}
.hero-section__cta {
  margin-top: 18px; display: inline-block; background: var(--gold); color: var(--black);
  font-weight: 800; font-size: 14px; padding: 10px 20px; letter-spacing: .02em;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-section__cta:hover { background: var(--gold-dark); transform: translateY(-1px); }

.hero-dots {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 3;
}
.hero-dots a {
  width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); border: 0; display: block;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.hero-dots a[aria-current="true"], .hero-dots a:hover { background: var(--black); transform: scale(1.15); }
@media (max-width: 640px) { .hero-dots { display: none; } }

/* Inner page banner */
.page-banner { position: relative; overflow: hidden; background: var(--bg-mid); min-height: clamp(260px, 28vw, 420px); display: flex; align-items: flex-end; padding-bottom: 40px; }
/* Banner liso das páginas de case: a capa da arte já é o 1º slide do carrossel */
.page-banner--plain { background: var(--black); min-height: clamp(96px, 8vw, 120px); align-items: center; padding: 22px 0; }
.page-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner .container { position: relative; z-index: 2; text-align: center; }
.page-banner__label {
  display: inline-block; background: var(--gold); color: var(--black);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 40px); padding: 6px 18px;
}

/* ---------- Section blocks ---------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--muted { background: var(--bg-lighter); }
.section-heading {
  display: inline-block; background: var(--black); color: var(--white);
  font-size: 20px; padding: 8px 16px; margin-bottom: 20px;
}

/* ---------- Títulos leves de conteúdo (sem a caixa preta pesada) ---------- */
.section-kicker {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 8px;
}
.content-heading {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink); margin: 0 0 14px; letter-spacing: -0.01em;
}
.section-intro { max-width: 660px; margin: 0 auto; text-align: center; }
.section-intro p:first-child { font-size: 17px; color: var(--ink); }
.section-intro p { font-size: 15.5px; color: var(--ink-soft); }
.section-intro p + p { margin-top: 14px; }
.mission-block { text-align: center; }
.mission-block .content-heading, .mission-block .section-kicker { display: block; }

/* ---------- Equipe: foto + nome (sem vídeo) ---------- */
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bg-mid);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { margin-top: 14px; font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); }
.team-card__role { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Atuação: cards com ícone (mais leves que os blocos coloridos) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 26px 22px; border-radius: 14px; background: var(--white); border: 1px solid var(--border);
  min-height: 150px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.service-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.service-card__icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--black);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.service-card__icon svg { width: 20px; height: 20px; stroke: var(--gold); color: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card__text { font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); }

/* ---------- Clientes: slots de logo (imagem estática) ---------- */
.client-logo-slot {
  aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
/* Os logos já vêm padronizados em quadro 3:2 com margem interna e peso visual igual */
.client-logo-slot img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- Portfólio: capa estática (sem vídeo no grid) ---------- */
.project-cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; display: block; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project-cover:hover img { transform: scale(1.05); }
.project-cover__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .01em; text-align: center;
}

/* ---------- Card grids (equipe / clientes / portfólio) ---------- */
.card-grid { display: grid; gap: 20px; margin-top: 32px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .card-grid--4, .card-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .card-grid--4, .card-grid--5, .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; } }

.media-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5;
  background: var(--white); border: 1px solid var(--border);
  cursor: pointer; container-type: size;
}
.media-card--wide { aspect-ratio: 16/10; }
.media-card--logo { aspect-ratio: 3/2; background: var(--white); }
.media-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.media-card__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg-mid); }
.media-card--logo .media-card__thumb { object-fit: contain; padding: 22%; }
.media-card__frame {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .25s var(--ease);
  width: 100%; height: 100%;
}
@supports (width: 100cqw) {
  .media-card__frame { width: 100cqw; height: 56.25cqw; min-width: 177.78cqh; min-height: 100cqh; }
}
.media-card__frame.is-active { opacity: 1; pointer-events: auto; }
.media-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
.media-card:hover .media-card__play, .media-card:focus-visible .media-card__play { background: var(--gold); }
.media-card:hover .media-card__play svg path, .media-card:focus-visible .media-card__play svg path { fill: var(--black); }
.media-card.is-playing .media-card__play { opacity: 0; }
.media-card__play svg { width: 15px; height: 15px; margin-left: 2px; }
.media-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .01em;
}

/* Carousel controls (clientes / portfólio) */
.carousel-controls { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.carousel-controls button {
  width: 40px; height: 40px; background: var(--gold); border: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; transition: background .2s var(--ease);
}
.carousel-controls button:hover { background: var(--gold-dark); }
.carousel-controls button:disabled { background: var(--border); cursor: not-allowed; }
.carousel-controls svg { width: 16px; height: 16px; }
.carousel-track { overflow: visible; }

/* ---------- Sobre / equipe text blocks ---------- */
.mission-block { margin: 48px auto 0; max-width: 720px; }

/* ---------- Contato ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start;
}
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.contact__title {
  font-size: clamp(28px, 4vw, 40px); color: var(--white); background: var(--black);
  padding: 4px 14px; display: inline; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.4;
}
.contact__cta {
  margin-top: 16px; display: inline-block; background: var(--gold); color: var(--black);
  font-weight: 800; font-size: 14px; padding: 8px 18px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  font-family: var(--font-body); font-size: 14px; background: var(--white); color: var(--ink);
  transition: border-color .2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--black); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  align-self: flex-start; background: var(--black); color: var(--white); font-weight: 700;
  padding: 12px 28px; border-radius: 10px; border: 0; transition: background .2s var(--ease);
}
.contact-form button:hover { background: #222; }
.form-note { font-size: 12px; color: var(--ink-soft); margin-top: -2px; }
.form-status { font-size: 13px; margin-top: 4px; min-height: 18px; }
.form-status[data-state="ok"] { color: #1a7a34; }
.form-status[data-state="error"] { color: #b3261e; }

/* ---------- Footer ---------- */
.footer { background: var(--gold); padding: 32px 0; }
.footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-address { font-size: 13px; color: rgba(0,0,0,.75); text-align: center; flex: 1 1 auto; margin: 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; background: var(--black); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; transition: transform .2s var(--ease);
}
.footer-social a:hover { transform: translateY(-2px); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease), gap .2s var(--ease);
}
.text-link:hover { color: var(--gold-dark); border-color: var(--gold-dark); gap: 10px; }
.footer-social svg path { fill: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .word { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.footer-logo .tag { font-size: 11px; line-height: 1.15; }

/* ---------- Portfolio detail ---------- */
.project-client { text-align: center; font-family: var(--font-body); font-weight: 700; color: var(--gold-dark); font-size: 15px; margin: -8px 0 0; }
.project-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; justify-content: center; }
.project-meta span {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--bg-mid); padding: 6px 12px; border-radius: 20px;
}

/* Visualizador do case: carrossel grande, slides do PDF passando na página */
.container--wide { max-width: 1280px; }
.section--case { padding-top: 32px; }
.case-viewer { margin-top: 0; }
.case-info { margin-top: 48px; }
.case-viewer[hidden] { display: none; }
.case-viewer__stage { position: relative; background: var(--black); border-radius: var(--radius); overflow: hidden; }
.case-viewer__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab;
}
.case-viewer__track::-webkit-scrollbar { display: none; }
.case-viewer__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.case-viewer__track:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.case-viewer__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; background: var(--black); }
.case-viewer__slide img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }

/* Slide com vídeo: botão invisível sobre o ícone de play da arte; o iframe cobre o slide ao tocar */
.case-viewer__slide { position: relative; }
.case-viewer__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.case-viewer__slide.has-video .case-viewer__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%) scale(1);
  border-radius: 50%; box-shadow: 0 0 0 0 rgba(255,255,255,.55); transition: transform .2s var(--ease);
}
.case-viewer__play:hover::after { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 14px rgba(255,255,255,.18); }
.case-viewer__play:focus-visible::after { box-shadow: 0 0 0 4px var(--gold); }
.case-viewer__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--black); z-index: 2; }
.case-viewer__slide.is-playing .case-viewer__play { display: none; }

.case-viewer__nav, .case-viewer__fs {
  position: absolute; z-index: 5; background: var(--gold); color: var(--black); border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), transform .2s var(--ease), opacity .2s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.case-viewer__nav { top: 50%; width: 56px; height: 56px; transform: translateY(-50%); }
.case-viewer__nav svg { width: 24px; height: 24px; }
.case-viewer__nav--prev { left: 18px; }
.case-viewer__nav--next { right: 18px; }
.case-viewer__nav:hover:not(:disabled) { background: var(--gold-dark); transform: translateY(-50%) scale(1.06); }
.case-viewer__nav:disabled { opacity: 0; pointer-events: none; }
.case-viewer__fs { top: 16px; right: 16px; width: 40px; height: 40px; opacity: .92; }
.case-viewer__fs svg { width: 18px; height: 18px; }
.case-viewer__fs:hover { background: var(--gold-dark); }

.case-viewer__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.case-viewer__caption { margin: 0; font-weight: 700; font-size: 16px; color: var(--ink); }
.case-viewer__count { font-weight: 700; font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.case-viewer__thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.case-viewer__thumb {
  flex: 0 0 auto; width: 132px; aspect-ratio: 16/9; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; background: var(--bg-mid); opacity: .55; transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.case-viewer__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-viewer__thumb:hover { opacity: .9; }
.case-viewer__thumb.is-active { opacity: 1; border-color: var(--gold); }
.case-viewer__thumb:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 640px) {
  .container--wide { padding: 0 16px; }
  .case-viewer__bar { align-items: center; gap: 10px; }
  .case-viewer__bar .case-viewer__nav { position: static; transform: none; flex: 0 0 44px; width: 44px; height: 44px; box-shadow: none; }
  .case-viewer__bar .case-viewer__nav svg { width: 20px; height: 20px; }
  .case-viewer__bar .case-viewer__nav:hover:not(:disabled) { transform: none; }
  .case-viewer__bar .case-viewer__nav:disabled { opacity: .3; pointer-events: none; }
  .case-viewer__bar .case-viewer__nav--prev { order: 1; }
  .case-viewer__caption { order: 2; flex: 1; text-align: center; font-size: 14px; }
  .case-viewer__count { order: 3; position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 12px; }
  .case-viewer__bar .case-viewer__nav--next { order: 4; }
  .case-viewer__bar { position: relative; padding-bottom: 22px; }
  .case-viewer__fs { width: 38px; height: 38px; top: 10px; right: 10px; }
  .case-viewer__thumb { width: 92px; }
}

/* Tela cheia */
html.case-fs-lock, html.case-fs-lock body { overflow: hidden; }
.case-viewer.is-fullscreen { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100vh; height: 100dvh; background: var(--black); margin: 0; padding: 20px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.case-viewer.is-fullscreen .case-viewer__stage { border-radius: 8px; }
.case-viewer.is-fullscreen .case-viewer__count { color: var(--white); }
.case-viewer.is-fullscreen .case-viewer__thumbs { display: none; }
.case-viewer.is-fullscreen .case-viewer__fs { background: var(--white); }
.case-viewer.is-fullscreen .case-viewer__caption, .case-viewer.is-fullscreen .case-viewer__count { color: var(--white); }
.case-viewer.is-fullscreen .case-viewer__slide { aspect-ratio: auto; height: calc(100vh - 150px); height: calc(100dvh - 150px); }
@media (max-width: 640px) { .case-viewer.is-fullscreen { padding: 12px; } .case-viewer.is-fullscreen .case-viewer__slide { height: calc(100dvh - 130px); } }
.case-viewer.is-fullscreen .case-viewer__thumb { border-radius: 6px; }

/* PDF do case, incorporado direto na página */
.case-pdf { width: 100%; height: 82vh; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-lighter); }
.case-pdf iframe { width: 100%; height: 100%; border: 0; }
.case-pdf-link { text-align: center; margin-top: 22px; }

/* Utility */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Páginas de serviço ---------- */
.footer-links { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; margin-bottom: 4px; }
.footer-links a { font-size: 13px; font-weight: 600; color: rgba(0,0,0,.8); border-bottom: 1px solid transparent; }
.footer-links a:hover { border-color: var(--black); }
.svc-lead { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; line-height: 1.45; text-align: center; max-width: 760px; margin: 0 auto 28px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-list li { position: relative; padding: 14px 16px 14px 46px; background: var(--white); border-radius: 12px; font-size: 15px; color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.svc-list li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); }
.svc-list li::after { content: ""; position: absolute; left: 22px; top: 21px; width: 5px; height: 9px; border: solid var(--black); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.svc-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .svc-steps { grid-template-columns: 1fr; } }
.svc-steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; gap: 4px; }
.svc-steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--black); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.svc-steps strong { font-size: 15px; }
.svc-steps span { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.svc-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .svc-cases { grid-template-columns: 1fr; } }
.svc-case { display: block; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: transform .2s var(--ease); }
.svc-case:hover { transform: translateY(-3px); }
.svc-case img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.svc-case__t { display: flex; flex-direction: column; padding: 12px 14px; gap: 2px; }
.svc-case__t small { color: var(--ink-soft); font-size: 13px; }
.svc-faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.svc-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold-dark); }
.svc-faq details[open] summary::after { content: "–"; }
.svc-faq p { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.svc-cta { background: var(--black); color: var(--white); text-align: center; }
.svc-cta__t { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; color: var(--white); }
.svc-cta p { color: rgba(255,255,255,.8); margin: 0; }
.svc-cta__btns { margin-top: 24px !important; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.svc-cta .contact__cta { margin-top: 0; padding: 12px 24px; font-size: 15px; }
.svc-cta__alt { color: var(--white); font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.svc-others { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-others a { display: inline-block; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .2s var(--ease); }
.svc-others a:hover { background: var(--gold); border-color: var(--gold); }
.svc-more { margin-top: 48px; text-align: center; }
.svc-more .svc-others { justify-content: center; }


/* ---------- Vídeo sem recorte (enquadramento inteiro, 16:9) ----------
   Usado no vídeo de clientes (Home e página Clientes). O vídeo aparece por
   inteiro; se a janela for mais baixa que 16:9, entram barras pretas nas
   laterais em vez de cortar a imagem. */
.video-block--contain { background: #000; min-height: 0; height: min(56.25vw, calc(100svh - var(--nav-h))); }
.video-block--contain .video-block__media {
  width: 100%; height: 100%; min-width: 0; min-height: 0;
}
@supports (width: 100cqw) {
  .video-block--contain .video-block__media {
    width: min(100cqw, 177.78cqh); height: min(56.25cqw, 100cqh); min-width: 0; min-height: 0;
  }
}
/* Texto da Home no canto inferior esquerdo, para não cobrir o centro do vídeo */
.video-block--contain.hero-section { align-items: flex-end; padding-bottom: 0; }
.video-block--contain.hero-section .container { padding-bottom: clamp(20px, 3vw, 40px); }
.video-block--contain .video-block__scrim { background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
@media (max-width: 700px) {
  /* No celular: vídeo inteiro em cima e o texto embaixo, sem sobrepor */
  .video-block--contain { container-type: normal; height: auto; display: block; padding-top: 56.25vw; }
  .video-block--contain .video-block__media { top: 0; left: 0; transform: none; width: 100%; height: 56.25vw; }
  .video-block--contain .video-block__scrim { display: none; }
  .video-block--contain.hero-section .container { padding-block: 22px 30px; }
}
/* Página Clientes: vídeo inteiro cabe na tela junto com o título */
.page-banner--plain + .video-block--contain { height: min(56.25vw, calc(100svh - var(--nav-h) - 120px)); }
@media (max-width: 700px) { .page-banner--plain + .video-block--contain { height: auto; } }


/* ==========================================================================
   Botão "Conheça a BUGANI IN TIME" no menu
   ========================================================================== */
.nav-links .nav-cta a {
  display: inline-block; background: var(--gold); color: var(--black);
  padding: 10px 18px; border-radius: 999px; border-bottom: 0;
  font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(242,203,5,.55);
  animation: nav-cta-pulse 2.6s ease-out infinite;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-links .nav-cta a:hover, .nav-links .nav-cta a:focus-visible { background: #fff; color: var(--black); transform: translateY(-1px); }
.nav-links .nav-cta a[aria-current="page"] { background: var(--gold); color: var(--black); border-bottom: 0; }
@keyframes nav-cta-pulse {
  0% { box-shadow: 0 0 0 0 rgba(242,203,5,.55); }
  70% { box-shadow: 0 0 0 12px rgba(242,203,5,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,203,5,0); }
}
@media (min-width: 1061px) and (max-width: 1240px) {
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 12px; }
  .nav-links .nav-cta a { padding: 9px 14px; }
}
@media (max-width: 1060px) {
  .nav-links li.nav-cta { border-bottom: 0; padding-top: 18px; }
  .nav-links .nav-cta a { display: block; text-align: center; padding: 15px 18px; font-size: 14px; }
}

/* ==========================================================================
   Página Bugani In Time
   ========================================================================== */
.it { background: #0b0b0b; color: #fff; }
.it h1, .it h2, .it h3 { color: #fff; }
.it-hl { color: var(--gold); font-weight: 600; }
.it-sec { position: relative; isolation: isolate; background-color: #0b0b0b; background-repeat: no-repeat; background-size: cover; background-position: right center; }
.it-sec::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,11,11,.55) 0%, rgba(11,11,11,0) 55%); }
.it-sec .container { position: relative; }

/* marca "In time" */
.it-logo { font-size: clamp(64px, 11vw, 132px); font-weight: 700; letter-spacing: -.03em; line-height: .95; }
.it-logo span:last-child { font-weight: 300; letter-spacing: -.02em; }
.it-tag { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: clamp(11px, 1.3vw, 14px); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.it-tag::before { content: ""; flex: 0 0 auto; width: .8em; height: .8em; border-radius: 50%; background: var(--gold); }
.it-tag em { font-style: normal; font-weight: 400; }
.it-mini { display: block; margin-bottom: 28px; }
.it-mini .it-logo { font-size: clamp(40px, 5vw, 56px); }
.it-mini .it-tag { font-size: 10px; margin-top: 8px; }

/* hero */
.it-hero { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; background-image: url("../assets/in-time/hero.webp"); background-position: 70% center; padding: 60px 0; }
.it-hero__copy { max-width: 560px; }
.it-hero__lead { margin-top: 28px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.6; color: #E6E6E6; max-width: 460px; }
.it-btn { display: inline-block; margin-top: 30px; background: var(--gold); color: var(--black); font-weight: 700; font-size: 15px; padding: 15px 28px; border-radius: 999px; transition: background .2s var(--ease), transform .2s var(--ease); }
.it-btn:hover, .it-btn:focus-visible { background: #fff; transform: translateY(-2px); }

/* blocos de texto */
.it-block { padding: clamp(64px, 9vw, 110px) 0; background-position: right center; }
.it-block__copy { max-width: 600px; }
.it-block__copy p { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.75; color: #E2E2E2; }
.it-block__copy p + p { margin-top: 22px; }
.it-block__copy p:first-of-type { font-size: clamp(17px, 1.8vw, 20px); }
.it-intro { background-image: url("../assets/in-time/intro.webp"); }

/* diferenciais */
.it-features { background-image: url("../assets/in-time/features.webp"); background-position: 80% center; }
.it-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.it-feat li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; }
.it-feat__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.it-feat__icon svg { width: 32px; height: 32px; fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.it-feat h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 400; color: var(--gold); }
.it-feat h3 strong { font-weight: 700; }
.it-feat p { margin-top: 4px; font-size: 15px; color: #DADADA; line-height: 1.55; }
.it-closing { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.it-closing p { font-size: 15px; color: #E5E5E5; }
.it-closing p + p { margin-top: 4px; font-weight: 700; color: var(--gold); }

/* skills */
.it-skills { background-image: url("../assets/in-time/skills.webp"); background-position: left center; background-color: #1b1b1b; padding: clamp(64px, 9vw, 110px) 0; min-height: clamp(440px, 47vw, 680px); display: flex; align-items: center; }
.it-skills .container { width: 100%; }
.it-skills::before { display: none; }
.it-skills__grid { display: grid; grid-template-columns: minmax(240px, 5fr) 6fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.it-skills__lion { min-height: 1px; }
.it-skills h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 300; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 28px; text-align: right; }
.it-skills h2 strong { color: var(--gold); font-weight: 700; }
.it-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.it-bar { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 16px; align-items: center; }
.it-bar__label { text-align: right; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.it-bar__track { position: relative; height: 22px; border-radius: 999px; background: #151515; box-shadow: inset 0 2px 6px rgba(0,0,0,.8), 0 0 0 1px #262626; padding: 4px; }
.it-bar__fill { display: block; height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(180deg, #FFD83A, #FF9A00 55%, #F57C00); box-shadow: 0 0 12px rgba(255,150,0,.65); transition: width 1.4s var(--ease); transform-origin: left; }
.it-bar__pct { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 700; color: #fff; mix-blend-mode: normal; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.it-skills.is-pending .it-bar__fill { width: 0; }
.it-bars li:nth-child(2) .it-bar__fill { transition-delay: .1s; }
.it-bars li:nth-child(3) .it-bar__fill { transition-delay: .2s; }
.it-bars li:nth-child(4) .it-bar__fill { transition-delay: .3s; }
.it-bars li:nth-child(5) .it-bar__fill { transition-delay: .4s; }

/* como funciona */
.it-steps { background-image: url("../assets/in-time/steps.webp"); background-position: 78% center; }
.it-steps h2 { font-size: clamp(20px, 2.6vw, 28px); font-weight: 300; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 32px; }
.it-steps h2 strong { color: var(--gold); font-weight: 700; }
.it-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 560px; }
.it-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; }
.it-steps li svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.it-steps h3 { font-size: 17px; font-weight: 400; color: var(--gold); }
.it-steps h3 strong { font-weight: 700; }
.it-steps p { font-size: 15px; color: #DADADA; margin-top: 2px; }

@media (max-width: 760px) {
  /* no celular: o leão vira fundo e o texto ganha uma camada escura para leitura */
  .it-sec::before { background: linear-gradient(0deg, rgba(11,11,11,.86) 0%, rgba(11,11,11,.55) 100%); }
  .it-hero { background-position: 62% center; }
  .it-hero::before { background: linear-gradient(0deg, rgba(11,11,11,.88) 0%, rgba(11,11,11,.35) 70%); }
  .it-intro, .it-features, .it-steps { background-position: 80% center; }
  .it-skills__grid { grid-template-columns: 1fr; }
  .it-skills { background-size: 100% auto; background-position: top center; padding-top: calc(56.25vw + 24px); display: block; min-height: 0; }
  .it-skills__lion { display: none; }
  .it-skills h2 { text-align: left; }
  .it-bar { grid-template-columns: 1fr; gap: 6px; }
  .it-bar__label { text-align: left; }
  .it-feat li { grid-template-columns: 52px 1fr; gap: 16px; }
  .it-feat__icon { width: 52px; height: 52px; }
  .it-feat__icon svg { width: 26px; height: 26px; }
}

/* ajustes finos — menu e página In Time */
.nav-links { align-items: center; }
.it-hero .container { width: 100%; }
@media (max-width: 1060px) { .nav-links { align-items: stretch; } }
@media (max-width: 760px) {
  .it-skills { background-size: auto 330px; background-position: 8% 0; background-color: #0f0f0f; padding-top: 340px; }
  .it-tag { letter-spacing: .07em; }
  .it-mini .it-tag { font-size: 9px; }
}

/* Capas do portfólio já trazem o título dentro da arte: a legenda fica só para leitores de tela */
.project-cover__caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; background: none; border: 0; }

/* vídeo só aparece quando estiver tocando; antes disso, a miniatura de reserva */
.video-block__media { transition: opacity .6s ease; }
