/* ═══════════════════════════════════════════════════════════
   services.css — Seção de Serviços por Tópico + Portfólio
   Usa SOMENTE variáveis definidas em css/base.css (:root)
   Mobile-first · breakpoints: 640 / 900 / 1024px
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   SECTION HEAD (herda .section-head de base.css; ajustes locais)
   ───────────────────────────────────────────────────────── */
.services .section-head {
  margin-bottom: clamp(56px, 8vw, 96px);
  max-width: 680px;
}

/* ─────────────────────────────────────────────────────────
   TÓPICO — bloco vertical alternado
   ───────────────────────────────────────────────────────── */
.service-topic {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 10vw, 120px);
  margin-bottom: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.service-topic:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Desktop: 2 colunas (conteúdo | vitrine) */
@media (min-width: 900px) {
  .service-topic {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(48px, 5vw, 80px);
  }

  /* Tópicos alternados: vitrine à esquerda nos reversos */
  .service-topic--reverse .service-topic__content {
    order: 2;
  }
  .service-topic--reverse .service-topic__showcase {
    order: 1;
  }
}

/* ─────────────────────────────────────────────────────────
   NÚMERO GIGANTE TRANSLÚCIDO
   ───────────────────────────────────────────────────────── */
.service-topic__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 0.85;
  color: rgba(247, 247, 245, 0.05);          /* --text com alpha baixíssimo */
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.2em;                      /* sobrepõe levemente o título */
  position: relative;
  z-index: 0;
}

.service-topic__body {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────────────
   CONTEÚDO DO TÓPICO
   ───────────────────────────────────────────────────────── */
.service-topic__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.service-topic__desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
}

/* Lista de entregáveis */
.service-topic__deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.service-topic__deliverables li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 14px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Mini-CTA texto */
.service-topic__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--duration) var(--ease-out),
              color var(--duration) var(--ease-out);
  min-height: 44px;
}

.service-topic__cta:hover,
.service-topic__cta:focus-visible {
  color: var(--accent-hover);
  gap: 10px;
}

.service-topic__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────
   VITRINE — container genérico
   ───────────────────────────────────────────────────────── */
.service-topic__showcase {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────
   PLACEHOLDER DE IMAGEM — gradiente elegante
   ───────────────────────────────────────────────────────── */
.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--bg) 100%);
  border-radius: inherit;
  overflow: hidden;
  position: relative;
}

.portfolio-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 40%,
    var(--accent-soft) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.portfolio-placeholder--alt::before {
  background: radial-gradient(
    ellipse 50% 40% at 30% 60%,
    rgba(243, 146, 0, 0.08) 0%,
    transparent 70%
  );
}

.portfolio-placeholder__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  color: rgba(247, 247, 245, 0.18);
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

/* ─────────────────────────────────────────────────────────
   TÓPICO 01 — Cards de portfólio (Branding)
   ───────────────────────────────────────────────────────── */
.service-topic__showcase:has(.portfolio-card) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(243, 146, 0, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.portfolio-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Imagem/placeholder no card — proporção 4:5 */
.portfolio-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cards de logo de marca: mostrar a logo inteira, sem cortar o wordmark */
.portfolio-card__img--logo {
  background: #0e0e12;
}

.portfolio-card__img--logo img {
  object-fit: contain;
  padding: 22px;
}

.portfolio-card__info {
  padding: 16px 20px 20px;
}

.portfolio-card__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.portfolio-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 4px;
}

.portfolio-card__sub {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Card grande vs pequeno */
.portfolio-card--large .portfolio-card__img {
  aspect-ratio: 3 / 2;
}

.portfolio-card--small .portfolio-card__img {
  aspect-ratio: 4 / 3;
}

/* Desktop: lado a lado */
@media (min-width: 640px) {
  .service-topic__showcase:has(.portfolio-card) {
    flex-direction: row;
    align-items: flex-start;
  }

  .portfolio-card--large {
    flex: 1.4;
  }

  .portfolio-card--small {
    flex: 1;
  }

  .portfolio-card--large .portfolio-card__img {
    aspect-ratio: 4 / 5;
  }

  .portfolio-card--small .portfolio-card__img {
    aspect-ratio: 4 / 5;
  }
}

/* ─────────────────────────────────────────────────────────
   TÓPICO 02 — Grade das 5 artes (Social Media)
   ───────────────────────────────────────────────────────── */
.service-topic__showcase--gallery {
  /* Ocupa a coluna inteira em telas grandes */
  align-self: stretch;
}

.social-grid {
  display: grid;
  gap: 10px;

  /* Mobile: 2 colunas */
  grid-template-columns: repeat(2, 1fr);
}

/* Tablet: 3 colunas */
@media (min-width: 640px) {
  .social-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop ≥1024px: 5 colunas numa linha */
@media (min-width: 1024px) {
  .social-grid {
    /* No contexto do layout de 2 colunas do tópico, a vitrine
       está em metade da tela; 5 col fica muito apertado.
       Usamos scroll horizontal com scroll-snap para 5 artes. */
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
  }

  .social-grid::-webkit-scrollbar {
    height: 4px;
  }

  .social-grid::-webkit-scrollbar-track {
    background: transparent;
  }

  .social-grid::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 999px;
  }
}

.social-art {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--duration) var(--ease-out);
}

.social-art:hover {
  border-color: rgba(243, 146, 0, 0.35);
}

@media (min-width: 1024px) {
  .social-art {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }
}

/* Proporção 4:5 para as artes */
.social-art .portfolio-placeholder--art {
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.portfolio-placeholder--art {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px 16px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-placeholder--art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 20%,
    var(--accent-soft) 0%,
    transparent 65%
  );
}

.portfolio-placeholder__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: rgba(247, 247, 245, 0.06);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.portfolio-placeholder--art .portfolio-placeholder__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 247, 245, 0.35);
  position: relative;
  z-index: 1;
  padding: 0;
}

/* ─────────────────────────────────────────────────────────
   TÓPICO 03 — Mockup de browser CSS puro
   ───────────────────────────────────────────────────────── */
.browser-mockup {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.browser-mockup__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.browser-mockup__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dot {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.browser-dot--red    { background: #FF5F57; }
.browser-dot--yellow { background: #FFBD2E; }
.browser-dot--green  { background: #28CA42; }

.browser-mockup__url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-mockup__url svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.browser-mockup__screen {
  padding: 0;
  min-height: 260px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg) 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.browser-mockup__screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 50% 0%,
    var(--accent-soft) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.browser-screen__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

.browser-screen__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  color: rgba(247, 247, 245, 0.18);
}

.browser-screen__tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.browser-screen__cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
  border: 1px solid rgba(243, 146, 0, 0.3);
  border-radius: 999px;
  padding: 6px 18px;
  margin-top: 4px;
}

.browser-mockup__caption {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────
   TÓPICO 04 — Chips de Estratégia
   ───────────────────────────────────────────────────────── */
.strategy-chips {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.strategy-chip {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

.strategy-chip:hover {
  border-color: rgba(243, 146, 0, 0.35);
  transform: translateX(4px);
}

.strategy-chip__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent);
}

.strategy-chip__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.strategy-chip__desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────
   TÓPICO 05 — Card de Mentoria
   ───────────────────────────────────────────────────────── */
.mentoria-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.mentoria-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    ellipse 80% 60% at 100% 0%,
    var(--accent-soft) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.mentoria-card__label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.mentoria-card__bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.mentoria-card__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.mentoria-card__bullets li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.mentoria-card__bullets li strong {
  color: var(--text);
  font-weight: 600;
}

.mentoria-card__cta {
  position: relative;
  z-index: 1;
  min-height: 52px;
}

/* ─────────────────────────────────────────────────────────
   .tilt-card — base para o efeito JS (perspectiva)
   O JS de Agente 7 aplica rotateX/Y; aqui apenas transform-style
   ───────────────────────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Sem hover de tilt em telas touch */
@media (hover: none) {
  .tilt-card {
    transform: none !important;
  }
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVO — ajustes ≤900px (empilha as colunas)
   ───────────────────────────────────────────────────────── */
@media (max-width: 899px) {
  .service-topic {
    grid-template-columns: 1fr;
  }

  /* Remove alternância no mobile */
  .service-topic--reverse .service-topic__content {
    order: unset;
  }
  .service-topic--reverse .service-topic__showcase {
    order: unset;
  }

  .service-topic__number {
    font-size: clamp(5rem, 18vw, 8rem);
  }

  /* Cards de portfólio lado a lado em tablet */
  .service-topic__showcase:has(.portfolio-card) {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  /* Cards de portfólio empilhados no mobile pequeno */
  .service-topic__showcase:has(.portfolio-card) {
    flex-direction: column;
  }

  .browser-mockup__screen {
    min-height: 200px;
  }

  /* Grade social: 2 colunas no mobile (padrão já definido) */
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: unset;
    scroll-snap-type: unset;
  }

  .social-art {
    flex: unset;
  }
}

/* ─────────────────────────────────────────────────────────
   prefers-reduced-motion — sem transformações longas
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .portfolio-card,
  .strategy-chip,
  .service-topic__cta,
  .tilt-card {
    transition: none !important;
    transform: none !important;
  }
}

/* ─────────────────────────────────────────────────────────
   GALERIA EM LEQUE (Photo Fan) — Social Media
   Recriação vanilla do componente PhotoGallery (spring fan)
   ───────────────────────────────────────────────────────── */

/* O tópico da galeria vira coluna única para o leque respirar */
.service-topic:has(.photo-fan) {
  grid-template-columns: 1fr;
}

.service-topic:has(.photo-fan) .service-topic__content {
  max-width: 720px;
}

.photo-fan {
  position: relative;
  width: 100%;
  padding: 16px 0 8px;
}

/* Grade fina de fundo com máscara radial (como no componente original) */
.photo-fan__gridbg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3rem 3rem;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 45%, #000 55%, transparent 100%);
  pointer-events: none;
}

.photo-fan__stage {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-fan__item {
  position: absolute;
  width: 220px;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  cursor: grab;
  will-change: transform;
  touch-action: none;
  user-select: none;
}

.photo-fan__item:active {
  cursor: grabbing;
}

.photo-fan__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Fallback sem JS: leque vira grade fluida */
html:not(.js) .photo-fan__stage {
  height: auto;
  flex-wrap: wrap;
  gap: 12px;
}

html:not(.js) .photo-fan__item {
  position: static;
}

@media (max-width: 640px) {
  .photo-fan__stage {
    height: 280px;
  }

  .photo-fan__item {
    width: 150px;
    border-radius: 18px;
  }
}

/* ─────────────────────────────────────────────────────────
   BRAND TILES (estilo GA Agency) — hover na logo revela
   a imagem do projeto por trás
   ───────────────────────────────────────────────────────── */
.brand-tile {
  position: relative;
  display: block;
  flex: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0e0e12;
  text-decoration: none;
  isolation: isolate;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.brand-tile:hover,
.brand-tile:focus-visible,
.brand-tile.is-hover {
  border-color: rgba(243, 146, 0, 0.35);
  transform: translateY(-4px);
}

/* CAMADA 1 (fundo) — mockup: some por padrão, entra ampliado no hover */
.brand-tile__reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.65s var(--ease-out), transform 0.9s var(--ease-out);
  z-index: 0;
}

.brand-tile:hover .brand-tile__reveal,
.brand-tile:focus-visible .brand-tile__reveal,
.brand-tile.is-hover .brand-tile__reveal {
  opacity: 1;
  transform: scale(1);
}

/* CAMADA 2 (meio) — tint laranja leve por cima do mockup */
.brand-tile__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(243, 146, 0, 0.34) 0%,
    rgba(243, 146, 0, 0.22) 45%,
    rgba(14, 10, 4, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

.brand-tile:hover .brand-tile__tint,
.brand-tile:focus-visible .brand-tile__tint,
.brand-tile.is-hover .brand-tile__tint {
  opacity: 1;
}

/* CAMADA 3 (topo) — logo transparente SEMPRE centralizada e visível */
.brand-tile__logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 2;
}

.brand-tile__logo img {
  width: auto;
  max-width: 74%;
  max-height: 56%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.85))
          drop-shadow(0 0 26px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--ease-out);
}

/* Leve zoom da logo no hover para dar vida (sem sumir) */
.brand-tile:hover .brand-tile__logo img,
.brand-tile:focus-visible .brand-tile__logo img,
.brand-tile.is-hover .brand-tile__logo img {
  transform: scale(1.04);
}

/* Faixa de informação na base, sempre legível */
.brand-tile__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 44px 20px 18px;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.9) 30%, transparent);
}

.brand-tile__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.brand-tile__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 2px;
}

.brand-tile__sub {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.brand-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Container dos tiles: empilhados no mobile, lado a lado no desktop */
.service-topic__showcase:has(.brand-tile) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .service-topic__showcase:has(.brand-tile) {
    flex-direction: row;
    align-items: stretch;
  }
}

/* Touch: sem hover — mostra o mockup + tint por padrão, logo por cima */
@media (pointer: coarse) {
  .brand-tile__reveal {
    opacity: 1;
    transform: scale(1);
  }

  .brand-tile__tint {
    opacity: 1;
  }
}
