/*
 * Kyra Cuts — ajustes próprios sobre o tema Silicon.
 * A cor primária (#8c52ff) vem do theme.min.css recompilado (assets/scss/kyra.scss).
 */

:root {
  --kyra-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --kyra-header-h: 3.875rem; /* altura da navbar; descontada do hero */
}
@media (min-width: 992px) {
  :root {
    --kyra-header-h: 4.375rem;
  }
}

html {
  scroll-padding-top: 5rem; /* âncoras sem JS não ficam sob a navbar fixa */
}

.header.navbar {
  height: var(--kyra-header-h);
}

/* Marca */
.brand-logo {
  gap: .3em;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.02em;
}

.navbar-logo {
  display: block;
  width: auto;
  height: 2.25rem;
}
@media (min-width: 992px) {
  .navbar-logo {
    height: 2.5rem;
  }
}

.footer-logo {
  display: block;
  width: auto;
  height: 2.5rem;
}

.brand-tagline,
.hero-subtitle {
  font-family: var(--kyra-mono);
  letter-spacing: .08em;
  text-transform: lowercase;
}

/* Títulos de seção */
.section-title {
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3.5rem;
  height: .25rem;
  margin-left: -1.75rem;
  border-radius: 1rem;
  background-color: var(--si-primary);
}

.section-subtitle {
  font-family: var(--kyra-mono);
  font-weight: 500;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
}

/* Hero */
.hero {
  /* a tela inteira menos a navbar: o hero cabe exatamente na primeira dobra */
  min-height: calc(100vh - var(--kyra-header-h));
  min-height: calc(100svh - var(--kyra-header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-logo img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .hero-logo img {
    max-width: 28rem;
    margin: 0;
  }
}
.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
}
.hero-media {
  position: relative;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-media picture {
  display: contents; /* a <img> ocupa direto o .hero-media */
}
.hero-photo-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 920;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, .6);
}
@media (min-width: 992px) {
  .hero-media {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: none;
    padding: 0;
  }
  .hero-photo-img {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
    /* funde a borda esquerda da foto com o fundo da seção */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%);
  }
}
.hero-deco-stroke {
  position: absolute;
  left: -4rem;
  bottom: 3rem;
  width: 22rem;
  opacity: .08;
  pointer-events: none;
}

/* Sobre */
@media (min-width: 992px) {
  .about-text {
    text-align: justify;
    hyphens: auto;
  }
}

/* Edições (miniaturas de vídeo) */
.edit-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.edit-card-horizontal {
  aspect-ratio: 16 / 11;
}
.edit-card-vertical {
  aspect-ratio: 9 / 16;
}
.edit-card picture {
  display: block;
  height: 100%;
}
.edit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0) 50%, rgba(11, 15, 25, .55) 100%);
  transition: opacity .3s ease;
}
.edit-card-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
  pointer-events: none;
}
.edit-card-icon .bx {
  font-size: 1.75rem;
}
.edit-card:hover img,
.edit-card:focus-visible img {
  transform: scale(1.05);
}
.edit-card:hover .edit-card-icon,
.edit-card:focus-visible .edit-card-icon {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Criativos */
.creative-card {
  position: relative;
}
.creative-card img {
  transition: transform .4s ease;
}
.creative-card-zoom {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--si-primary);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 .5rem 1.125rem -.5rem rgba(var(--si-primary-rgb), .9);
}
.creative-card:hover img,
.creative-card:focus-visible img {
  transform: scale(1.03);
}

/* Marcas parceiras: logos pensados para fundo claro */
.brands-card,
.dark-mode .brands-card {
  background-color: #fff;
}

/* Contato */
.contact-card .card-body {
  padding: 1.25rem;
}
.contact-card:hover .text-dark {
  color: var(--si-primary) !important;
}
.contact-grid {
  max-width: 56rem;
}
.contact-card-value {
  overflow-wrap: anywhere; /* só quebra o e-mail em telas muito estreitas */
}
.min-w-0 {
  min-width: 0;
}

/* Foco visível consistente */
.edit-card:focus-visible,
.creative-card:focus-visible,
.contact-card:focus-visible {
  outline: 3px solid var(--si-primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .edit-card img,
  .creative-card img,
  .edit-card-icon {
    transition: none;
  }
}
