/* ═══════════════════════════════════════════════════════════
   RSG GROUP — componentes das páginas internas
   (complementa style.css)
   ═══════════════════════════════════════════════════════════ */

/* ── Hero interno ────────────────────────────── */

.page-hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
}

.page-hero__inner {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-block: 10px 26px;
}
.page-hero__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.page-hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.page-hero__visual > img {
  width: min(100%, 480px);
  filter: drop-shadow(0 30px 60px rgba(35, 35, 255, 0.4));
  animation: float 6s ease-in-out infinite;
}

/* colagem de mockups (página design) */
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 500px;
}
.collage img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
}
.collage img:nth-child(2) { transform: translateY(26px); }
.collage img:nth-child(3) { transform: translateY(-10px); }
.collage img:nth-child(4) { transform: translateY(16px); }

/* ── Seções genéricas ────────────────────────── */

.section { padding-block: 90px; }
.section--tight { padding-block: 60px; }

/* dupla de cards (Novos Negócios / Crescimento) */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.duo__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.duo__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(240px 160px at 85% 0%, rgba(0, 229, 255, 0.12), transparent 70%);
}
.duo__card:hover { transform: translateY(-6px); border-color: rgba(77, 90, 255, 0.5); }
.duo__card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 14px;
  position: relative;
}
.duo__card p { color: var(--muted); position: relative; }
.duo__card p strong { color: var(--cyan); font-weight: 600; }

/* ── Estudos / estatísticas (página site) ────── */

.studies__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.study {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 42px 38px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.study:hover { transform: translateY(-6px); border-color: rgba(77, 90, 255, 0.5); }
.study__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 10px;
}
.study h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  margin-bottom: 14px;
}
.study p { color: var(--muted); font-size: 15px; }
.study__src {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 18px;
}
.study__src::before { content: "◆ "; color: var(--blue-bright); }

/* ── Plataformas ─────────────────────────────── */

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.platforms .cert-card { padding: 16px 24px; }
.platforms .cert-card img { max-height: 42px; }

/* ── Marcas criadas (página design) ──────────── */

.brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.brand-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
  display: grid;
  place-items: center;
  min-height: 130px;
  transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
}
.brand-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77, 90, 255, 0.5);
  background: var(--surface-2);
}
.brand-card img { max-height: 90px; width: 100%; object-fit: contain; }

/* ── Checklist (pilares de tráfego) ──────────── */

.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15.5px;
}
.checklist li strong { color: var(--text); font-weight: 600; }
/* anula o estilo de chip herdado de .pillar__body li */
.pillar__body .checklist { flex-direction: column; flex-wrap: nowrap; }
.pillar__body .checklist li {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--muted);
}
.checklist li::before {
  content: "✓";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--grad-btn);
  border-radius: 50%;
}

/* ── Slots de portfólio (aguardando imagens) ─── */

.shots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.shot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.shot-card:hover { transform: translateY(-6px); border-color: rgba(77, 90, 255, 0.5); }
.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top;
}
.shot-card figcaption {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shot-card figcaption em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* slot vazio aguardando screenshot */
.shot-card--slot {
  aspect-ratio: 16 / 13;
  border-style: dashed;
  border-color: var(--line-strong);
  display: grid;
  place-content: center;
  gap: 12px;
  justify-items: center;
  text-align: center;
}
.shot-card--slot svg { color: var(--muted-2); opacity: 0.7; }
.shot-card--slot span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) { .shots__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .shots__grid { grid-template-columns: 1fr; } }

/* ── Vídeos (YouTube) ────────────────────────── */

.videos__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.video-card:hover { transform: translateY(-5px); border-color: rgba(77, 90, 255, 0.55); }
.video-card img, .video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video-card .play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: transform 0.35s var(--ease), background 0.35s;
  pointer-events: none;
}
.video-card:hover .play { transform: scale(1.12); background: var(--blue); }
.video-card .play svg { margin-left: 4px; }
/* slot vazio aguardando link do YouTube */
.video-card--slot {
  border-style: dashed;
  border-color: var(--line-strong);
  display: grid;
  place-content: center;
  gap: 12px;
  justify-items: center;
  cursor: default;
}
.video-card--slot:hover { transform: none; border-color: var(--line-strong); }
.video-card--slot svg { color: var(--muted-2); opacity: 0.7; }
.video-card--slot span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

/* ── Fotos + lightbox ────────────────────────── */

.photos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.photo-card {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  padding: 0;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.photo-card:hover { transform: translateY(-4px); border-color: rgba(77, 90, 255, 0.55); }
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.photo-card:hover img { transform: scale(1.06); }
/* slot vazio aguardando foto */
.photo-card--slot {
  display: grid;
  place-content: center;
  gap: 10px;
  justify-items: center;
  border-style: dashed;
  border-color: var(--line-strong);
  cursor: default;
}
.photo-card--slot:hover { transform: none; border-color: var(--line-strong); }
.photo-card--slot svg { color: var(--muted-2); opacity: 0.7; }
.photo-card--slot span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(2, 2, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 40px 120px -20px rgba(35, 35, 255, 0.35);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 18px;
}
.lightbox__close:hover { background: var(--blue); border-color: var(--blue); }

@media (max-width: 1024px) { .photos__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .videos__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .photos__grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Nav: página atual ───────────────────────── */

.nav__links > a.is-current { color: var(--text); }
.nav__links > a.is-current::after { transform: scaleX(1); }

/* link secundário nos pilares da home */
.pillar__links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.link-more {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.link-more:hover { border-color: var(--cyan); }

/* ═══════════ RESPONSIVO ═══════════ */

@media (max-width: 1024px) {
  .brands__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .page-hero { min-height: auto; padding-top: 110px; }
  .page-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .page-hero__visual { order: -1; }
  .page-hero__visual > img { width: min(70%, 340px); }
  .duo, .studies__grid { grid-template-columns: 1fr; }
  .collage { max-width: 420px; margin-inline: auto; }
}

@media (max-width: 560px) {
  .brands__grid { grid-template-columns: repeat(2, 1fr); }
  .study { padding: 32px 26px; }
}
