/* ============================================================
   ImperGold — landing page (layout baseado no export Figma Sites)
   Fonte: Manrope (subset latin, servido localmente)
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: #fff;
  --foreground: #03143a;
  --primary: #1e88e5;
  --primary-foreground: #fff;
  /* dourado da logo — usado em detalhes, sobre fundo escuro */
  --gold: #c6932f;
  /* dourado fechado para texto pequeno em fundo claro (contraste AA) */
  --gold-ink: #96701a;
  --secondary: #03143a;
  --secondary-foreground: #fff;
  --muted: #f6f6f6;
  --muted-foreground: #5e6c7b;
  --border: #e6e8eb;
  --accent: #4ad69b;
  --radius: 0.5rem;
  --max-width: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  padding-inline: 1.5rem;
}

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, padding 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--foreground);
  padding: 0.75rem 1.5rem;
}

.btn-outline:hover {
  background-color: var(--foreground);
  color: var(--background);
  opacity: 1;
}

/* ---------- navegação ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
  width: 100%;
  padding: 1rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 3.5rem;
  width: auto;
}

.footer .logo img {
  height: 3.75rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.is-active {
  color: var(--primary);
}

.nav-phone {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
  min-width: 0;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-lead {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.5556;
  margin-bottom: 2.5rem;
  max-width: 28rem;
}

.hero-tag {
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 700;
  color: var(--gold-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.link-secondary:hover {
  border-bottom-color: var(--foreground);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  color: var(--gold-ink);
}

.partners span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.partner-mark {
  display: inline-block;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  background-color: currentColor;
}

.partner-mark.square {
  border-radius: 0.25rem;
}

.partner-mark.circle {
  border-radius: 9999px;
}

.partner-mark.diamond {
  transform: rotate(45deg);
}

.partner-mark.arch {
  border-radius: 9999px 9999px 0 0;
}

.hero-media {
  position: relative;
  height: 400px;
  width: 100%;
  min-width: 0;
}

.hero-media-inner {
  position: absolute;
  inset: 0;
  background-color: var(--secondary);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%,
    0 70%,
    15% 70%,
    0 45%,
    15% 45%,
    0 20%
  );
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- seção: projetos ---------- */

.section {
  padding-block: 6rem;
}

.section-muted {
  background-color: var(--muted);
}

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.section-head h2 {
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-head p {
  color: var(--gold-ink);
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project-card {
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-tag {
  font-size: 0.6875rem;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.project-card.is-primary .card-tag {
  color: rgba(255, 255, 255, 0.75);
}

.project-card.is-secondary .card-tag {
  color: rgba(255, 255, 255, 0.6);
}

.project-card h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.project-card .label {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.project-card .desc {
  font-size: 0.875rem;
  line-height: 1.4286;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.project-card.is-light {
  background-color: var(--background);
}

.project-card.is-light .btn {
  width: fit-content;
}

.project-card.is-light:hover .btn {
  padding-right: 1rem;
}

.project-card.is-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.project-card.is-primary .desc,
.project-card.is-primary p:last-child {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.project-card.is-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.project-card.is-secondary p:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

/* ---------- seção: impacto + números ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.split h2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.split p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 3rem;
}

.stat-value {
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stat-desc {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.625;
}

/* ---------- página "Como Funciona": os 4 passos ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.step-media {
  position: relative;
  height: 260px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--background);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-body .step-num {
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-body h3 {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 800;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.step-body p {
  color: var(--muted-foreground);
  max-width: 34rem;
}

/* ---------- faixa de marcas parceiras (carrossel infinito) ---------- */

.partners-strip {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

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

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

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

.marquee-group li {
  padding-inline: 2.5rem;
}

.marquee-group img {
  height: 3.75rem;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.marquee-group img:hover {
  opacity: 1;
  transform: scale(1.04);
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .marquee-group[aria-hidden="true"] {
    display: none;
  }
  .marquee-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* ---------- página "Sobre & Contato" ---------- */

.mv-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

.mv-card {
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mv-card h2 {
  font-size: 1.375rem;
  line-height: 1.4;
  font-weight: 800;
}

.mv-card.is-dark {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.mv-card.is-dark .card-tag {
  color: rgba(255, 255, 255, 0.6);
}

.mv-values {
  text-align: center;
}

.mv-values .values {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
}

.contact-ico {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-photo {
  height: 320px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--muted);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 0.75rem;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.map-link svg {
  color: var(--primary);
}

.map-link:hover {
  border-color: var(--foreground);
}

/* ---------- página "Produtos & Orçamento" ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 700;
  color: var(--muted-foreground);
}

.badge svg {
  color: var(--primary);
}

.hero-ctas + .badge {
  margin-top: -2.5rem;
}

.badge.is-dark {
  margin-left: 0.75rem;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.paths {
  display: grid;
  gap: 2rem;
}

.path {
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.path-media {
  height: 240px;
  overflow: hidden;
}

.path-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.path:hover .path-media img {
  transform: scale(1.05);
}

.path-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  padding: 2.5rem;
}

.path-body h3 {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 800;
  margin-bottom: 1rem;
}

.path-body p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.path-body .btn {
  margin-top: auto;
}

/* ---------- página "Serviços" ---------- */

.svc-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}

.svc-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.svc-media {
  height: 240px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--background);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-content h2 {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.svc-list {
  display: grid;
  gap: 0.75rem 2rem;
}

.svc-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 600;
}

.svc-ico {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: var(--primary);
}

/* ---------- página "Tour por uma Obra" ---------- */

.tour-label,
.step-body .tour-label {
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.tour-full-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.tour-full-head h3 {
  font-size: 1.5rem;
  line-height: 1.3333;
  font-weight: 800;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tour-full-head p {
  color: var(--muted-foreground);
}

.exec-grid {
  display: grid;
  gap: 1.5rem;
}

.exec-shot {
  height: 240px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--background);
}

.exec-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-pair {
  display: grid;
  gap: 1.5rem;
}

.ba-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: var(--background);
}

.ba-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.ba-item figcaption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.tour-video {
  width: 100%;
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--secondary);
}

/* ---------- página "Por que a ImperGold" ---------- */

.diffs {
  display: grid;
  gap: 2rem;
}

.diff {
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.diff-media {
  height: 220px;
  overflow: hidden;
}

.diff-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.diff:hover .diff-media img {
  transform: scale(1.05);
}

.diff-body {
  padding: 2rem;
}

.diff-body h3 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 1rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.diff-body p {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.values {
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 3rem;
}

.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--primary);
}

.value h3 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.brands {
  padding-block: 3.5rem;
  background-color: var(--muted);
  border-top: 1px solid var(--border);
}

.brands .eyebrow {
  text-align: center;
}

/* ---------- página "Como Funciona": fecho ---------- */

.closing {
  text-align: center;
  max-width: 46rem;
}

.closing h2 {
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.closing .btn {
  margin-top: 1rem;
}

.closing p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  line-height: 1.5556;
  margin-bottom: 2.5rem;
}

.footer-cols.is-top {
  border-top: 0;
  padding-top: 0;
}

/* ---------- seção escura: why us ---------- */

.section-dark {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.dark-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.dark-split h2 {
  color: var(--gold);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.dark-lead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.dark-media {
  position: relative;
  height: 300px;
  border-radius: 0.75rem;
  overflow: hidden;
}

.dark-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.why-title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 2rem;
}

.why-grid {
  display: grid;
  gap: 2rem;
}

.why-grid h4 {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  margin-bottom: 1rem;
}

.why-grid p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1rem;
}

.link-more {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.link-more:hover {
  text-decoration: underline;
}

/* ---------- case studies ---------- */

.cases-grid {
  display: grid;
  gap: 2rem;
}

.case {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case h3 {
  font-size: 1.125rem;
  line-height: 1.5556;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}

.case:hover h3 {
  text-decoration-color: var(--foreground);
}

.case p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.4286;
  margin-bottom: 1.5rem;
}

.case p strong {
  color: var(--foreground);
  font-weight: 700;
}

.case .card-tag {
  margin-bottom: 0.5rem;
}

.case-media {
  margin-top: auto;
  position: relative;
  height: 12rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: var(--muted);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case:hover .case-media img {
  transform: scale(1.05);
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-ink);
}

.case-meta svg {
  color: var(--gold-ink);
}

a.case-meta {
  cursor: pointer;
  transition: color 0.15s ease;
}

a.case-meta:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- rodapé ---------- */

.footer {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

.footer-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.footer-inner {
  position: relative;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.footer-cta {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 6rem;
}

.footer-cta h2 {
  font-size: 2.25rem;
  line-height: 1.1111;
  font-weight: 800;
  margin-bottom: 2.5rem;
}

.footer-sub {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 100%;
  white-space: normal;   /* em tela estreita o rótulo longo quebra em vez de vazar */
  text-align: center;
}

.cta-reinforce {
  font-size: 0.75rem;
  line-height: 1.3333;
  font-weight: 700;
  color: var(--gold);
  margin-top: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  grid-column: span 2;
}

.footer-brand .logo {
  margin-bottom: 1.25rem;
}

.footer-brand p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 200px;
}

.footer-brand p + p {
  margin-top: 1rem;
}

.footer-detail {
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.footer-detail:hover {
  color: var(--primary);
}

.footer-cols h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-cols ul a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-bottom p:last-child {
  max-width: 42rem;
}

/* ---------- popup de vídeo (abre a 50% da rolagem) ---------- */

.video-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background-color: rgba(3, 20, 58, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
}

/* navegadores sem backdrop-filter: escurece mais para manter o contraste */
@supports not (backdrop-filter: blur(1px)) {
  .video-popup {
    background-color: rgba(3, 20, 58, 0.9);
  }
}

.video-popup.is-open {
  display: flex;
  animation: popup-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-popup-open {
  overflow: hidden;
}

.video-popup-card {
  position: relative;
  width: min(360px, 92vw, calc((100vh - 11rem) * 0.5625));
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.video-popup-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background-color: #000;
}

.video-popup-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-popup-close {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(3, 20, 58, 0.65);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.video-popup-close:hover {
  background-color: var(--secondary);
}

.video-popup-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  text-align: center;
}

.video-popup-foot p {
  font-size: 0.875rem;
  line-height: 1.4286;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.video-popup-card.is-reel {
  width: min(400px, 94vw);
  background-color: #fff;
}

.video-popup-frame.is-reel {
  aspect-ratio: auto;
  height: min(74vh, 720px);
  background-color: #fff;
}

.video-popup.is-reel .video-popup-close {
  background-color: rgba(3, 20, 58, 0.85);
}

.video-popup.is-reel .video-popup-foot {
  padding: 0.875rem;
  background-color: var(--secondary);
}

.reel-popup-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
}

.reel-popup-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes popup-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .video-popup.is-open { animation: none; }
}

/* ============================================================
   Breakpoints
   ============================================================ */

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
    line-height: 1.05;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .container,
  .hero,
  .split,
  .footer-inner {
    padding-inline: 3rem;
  }

  .nav {
    padding-inline: 3rem;
  }

  .nav-phone {
    display: inline-flex;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero-media {
    height: 600px;
  }

  .section-head h2 {
    font-size: 3rem;
    line-height: 1;
  }

  .projects-grid,
  .cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .step {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
  }

  .step.is-reverse .step-media {
    order: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 85%);
  }

  .step-media {
    height: 320px;
  }

  .diffs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .svc-block {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3.5rem;
    padding-block: 4rem;
  }

  .svc-block.is-reverse .svc-media {
    order: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 85%);
  }

  .svc-media {
    height: 300px;
  }

  .svc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-media {
    height: 280px;
  }

  .exec-shot {
    height: 280px;
  }

  .ba-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .closing h2 {
    font-size: 3rem;
    line-height: 1;
  }

  .split h2,
  .dark-split h2 {
    font-size: 3rem;
  }

  .dark-media {
    height: 400px;
  }

  .case-media {
    height: 16rem;
  }

  .footer-cta h2 {
    font-size: 3rem;
    line-height: 1;
  }

  .footer-cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: span 1;
  }
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  /* headline longa: reduz um passo para equilibrar com a mídia ao lado */
  .hero.is-tight h1 {
    font-size: 3.75rem;
  }

  .split,
  .dark-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-cta h2 {
    font-size: 3.75rem;
    line-height: 1;
  }
}
