/* ============================================
   Draco Games — Site institucional
   Direitos reservados 2026
   Tema mercúrio líquido + UI gamer
   ============================================ */

@import url('game-theme.css');

:root {
  --bg-deep: #06080c;
  --bg-dark: #0a1018;
  --bg-card: #111820;
  --bg-section: #0c1219;
  /* Mercúrio líquido — prata, cyan e reflexos frios */
  --accent-deep: #2a3a42;
  --accent-mid: #6f8a93;
  --accent-bright: #9fbcc6;
  --accent-shine: #dee9ed;
  /* Aliases herdados pelo restante do arquivo */
  --accent-gold: var(--accent-bright);
  --accent-gold-light: var(--accent-shine);
  --accent-muted: #657680;
  --text-primary: #eef2f4;
  --text-secondary: #9aaab2;
  --overlay-hero: rgba(8, 12, 18, 0.86);
  --overlay-section: rgba(6, 10, 14, 0.78);
  --radius: 12px;
  --font-sans: 'Outfit', sans-serif;
  --font-display: 'Playfair Display', serif;
  --header-height: 72px;
  --color-accent: var(--accent-bright);
}

html {
  cursor: inherit;
}

html.has-dragao-cursor,
html.has-dragao-cursor a,
html.has-dragao-cursor button:not(:disabled),
html.has-dragao-cursor input,
html.has-dragao-cursor textarea,
html.has-dragao-cursor iframe {
  cursor: none !important;
}

html:not(.has-dragao-cursor) .custom-cursor {
  display: none !important;
}

/* ----- Loading inicial (tema do site + dragão) ----- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.page-loader-dragon {
  width: 56px;
  height: 56px;
  color: var(--accent-bright);
}

.page-loader-dragon svg {
  width: 100%;
  height: 100%;
  animation: loader-dragon-pulse 1.2s ease-in-out infinite;
}

.page-loader-dragon-path {
  transition: opacity 0.2s;
}

.page-loader-logo {
  max-width: 200px;
  height: auto;
  opacity: 0.95;
}

.page-loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(158, 198, 210, 0.25);
  border-top-color: var(--accent-bright);
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

.page-loader-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-shine);
  letter-spacing: 0.05em;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loader-dragon-pulse {
  0%, 100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(120, 180, 195, 0.08), transparent 52%),
    linear-gradient(180deg, var(--bg-deep), var(--bg-dark) 40%, var(--bg-deep));
}

main,
.header,
.footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-gold-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.section-intro {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 0 2rem 0;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img {
  height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f3f4f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/contain no-repeat;
  border: none;
  cursor: pointer;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent-gold-light);
  text-decoration: none;
}

/* Submenu (ex.: Serviços) */
.nav-has-sub {
  position: relative;
}
.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.nav-has-sub:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub li {
  margin: 0;
}
.nav-sub a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.nav-sub a:hover {
  color: var(--accent-gold-light);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-has-sub .nav-sub {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0.25rem 0 0 1rem;
    border: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    transform: none;
    transition: max-height 0.25s, opacity 0.2s, visibility 0.2s;
  }
  .nav-has-sub.is-open .nav-sub {
    opacity: 1;
    visibility: visible;
    max-height: 220px;
    padding: 0.5rem 0;
  }
}

/* ----- Hero (imagem de APRESENTAÇÃO: 001_4k) ----- */
.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 2rem) 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../imgs/menores/Ricarten.png") center/cover no-repeat;
}

/* YouTube em loop atrás do overlay; mesma área da imagem (header fixo continua por cima do <main>) */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  max-width: none;
  border: 0;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-wrap {
    display: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--overlay-hero);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-logo {
  margin: 0 auto 1rem;
  /* Dimensões alinhadas ao index: logo ~560×320 (proporção 1.75) */
  width: auto;
  max-width: min(560px, 92vw);
  height: auto;
  aspect-ratio: 560 / 320;
  object-fit: contain;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-mid), var(--accent-bright));
  color: var(--bg-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(120, 180, 200, 0.35);
  text-decoration: none;
}

/* ----- Sobre ----- */
.sobre {
  background: var(--bg-section);
}

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

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .sobre-img-wrap {
    order: -1;
  }
}

.sobre-destaques {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.sobre-destaques li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.sobre-destaques li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-shine);
}

.sobre-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  /* Área 480/720 escalada −40% → largura máx. 288px, altura pela proporção */
  width: 100%;
  max-width: 288px;
  aspect-ratio: 480 / 720;
  margin-inline: auto;
}

.sobre-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Imagens clicáveis para lightbox */
img.lightbox-img {
  cursor: pointer;
}

/* ----- Serviços ----- */
.servicos {
  background: var(--bg-dark);
}

.servicos-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.servico-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, transform 0.2s;
}

.servico-card:hover {
  border-color: rgba(158, 200, 215, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(120, 180, 200, 0.12);
}

.servico-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.servico-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.servico-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ----- Cursos ----- */
.cursos {
  background: var(--bg-section);
}

/* Aba Cursos — largura total do painel, blocos legíveis */
.cursos-layout {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.85rem);
}

.cursos-topband {
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2.15rem);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(120, 175, 195, 0.14), rgba(15, 18, 24, 0.65) 55%, var(--bg-card));
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.cursos-aviso {
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--accent-shine);
  margin: 0 0 0.85rem 0;
  max-width: 52ch;
}

.cursos-lembrete {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.03rem);
  line-height: 1.62;
  max-width: 62ch;
}

.cursos-trilhas-section {
  width: 100%;
}

.cursos-oferta-titulo {
  margin: 0 0 clamp(1rem, 2vw, 1.35rem);
  padding-bottom: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cursos-trilhas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.cursos-trilha-card {
  margin: 0;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
  min-height: 100%;
}

.cursos-trilha-card-title {
  margin: 0 0 0.65rem 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 600;
  color: var(--accent-shine);
  line-height: 1.35;
}

.cursos-trilha-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.cursos-particular {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: var(--radius);
  border: 1px solid rgba(200, 170, 100, 0.22);
  border-left-width: 4px;
  border-left-color: var(--accent-gold-light);
  background: linear-gradient(90deg, rgba(200, 170, 100, 0.08), transparent 72%);
}

.cursos-particular p {
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1rem);
  line-height: 1.62;
  color: var(--text-secondary);
}

.cursos-contato {
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 211, 102, 0.28);
  background: rgba(37, 211, 102, 0.06);
}

.cursos-contato-label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  flex: 1 1 220px;
}

.cursos-whatsapp-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(180deg, #25d366, #128c7e);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.cursos-whatsapp-row:hover {
  color: #fff;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
}

.cursos-wa-phone {
  white-space: nowrap;
}

.cursos-layout .whatsapp-icon-inline {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .cursos-contato {
    flex-direction: column;
    align-items: stretch;
  }

  .cursos-whatsapp-row {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

/* ----- PristonTale (background 4k + portfólio) ----- */
.pristontale {
  position: relative;
  background: var(--bg-section);
}

.pristontale-bg {
  position: absolute;
  inset: 0;
  background: url("../imgs/4k/002_4k.png") center/cover no-repeat;
}

.pristontale-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-section);
}

.pristontale .container {
  position: relative;
  z-index: 1;
}

.pristontale-layout {
  align-items: start;
}

.pristontale-videos {
  margin-top: 1rem;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-legend {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0 0;
}

.galeria-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.galeria-grid img {
  width: 100%;
  aspect-ratio: 200 / 120;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(158, 200, 215, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.galeria-grid img.lightbox-img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ----- Quadro societário ----- */
.quem-somos {
  background: var(--bg-dark);
}

.quadro-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .quadro-card {
    grid-template-columns: 1fr;
  }
}

.quadro-foto {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 400 / 500;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(158, 200, 215, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.quadro-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem 0;
  color: var(--accent-bright);
}

.quadro-info p {
  margin: 0 0 0.85rem 0;
  line-height: 1.62;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.quadro-info p:last-child {
  margin-bottom: 0;
}

/* Seção Fundador — âncoras respeitam header fixo */
#fundador {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

#quem-somos {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

#servicos {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

/* ----- Contato ----- */
.contato {
  background: var(--bg-section);
}

.contato-box {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 560px;
}

.contato-box p {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
}

.contato-box p:last-child:not(.contato-video-label) {
  margin-bottom: 0;
}

/* ----- Footer ----- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.footer-inner,
.footer-columns {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
}

.footer-brand-block {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footer-brand-block .footer-logo {
  margin-bottom: 0;
}

.footer-details {
  min-width: 0;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.footer-lines {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-lines:last-child {
  margin-bottom: 0;
}

.footer-youtube-line a {
  white-space: nowrap;
}

.footer-logo {
  /* 360×180 — 2× da altura anterior (48px) no rodapé */
  height: 96px;
  width: auto;
  max-width: min(440px, 90vw);
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  object-fit: contain;
}

.footer-copy {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: center;
  }

  .footer-brand-block {
    justify-self: center;
    order: -1;
  }

  .footer-details {
    text-align: left;
    width: 100%;
    max-width: 100%;
  }
}

/* ----- Botão flutuante WhatsApp ----- */
.contato-whatsapp:hover {
  text-decoration: none;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-float-idle 3.5s ease-in-out infinite;
}

@keyframes wa-float-idle {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }

  50% {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.65);
  }
}

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
  color: #fff;
  text-decoration: none;
}

.whatsapp-float-icon {
  width: 30px;
  height: 30px;
}

/* ----- Lightbox (imagem ampliada) ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open[hidden] {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-full {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ----- Abas Sobre / Serviços (antes no index inline) ----- */
.servicos-tabs,
.sobre-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  opacity: 0.65;
}

.tab-btn:hover {
  background: rgba(158, 198, 215, 0.08);
  opacity: 1;
}

.tab-btn.active {
  border-bottom-color: var(--accent-bright);
  opacity: 1;
  color: var(--accent-shine);
  text-shadow: 0 0 12px rgba(180, 220, 228, 0.35);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Sistemas */
.sistemas-box {
  padding: 1rem 0;
}

.sistemas-intro {
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.sistemas-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sistema-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(158, 198, 215, 0.12);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  animation: sistema-pop 0.55s ease-out backwards;
}

.sistema-item:nth-child(2) {
  animation-delay: 0.08s;
}

@keyframes sistema-pop {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

.sistema-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.sistema-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.sistema-item p {
  margin: 0 0 1rem;
  opacity: 0.82;
  font-size: 0.95rem;
}

.sistema-btn {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
}

/* Nav Arquivos */
.nav-arquivos {
  border: 1px solid var(--accent-bright);
  border-radius: 6px;
  padding: 0.3rem 0.85rem !important;
  color: var(--accent-shine) !important;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.nav-arquivos:hover {
  background: linear-gradient(135deg, var(--accent-mid), var(--accent-bright));
  color: var(--bg-deep) !important;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(160, 200, 215, 0.35);
}

.games-subtitle {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--accent-shine);
}

/* Contato + Discord: duas colunas equivalentes (grid + mesmo “card”) */
.contato-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.contato-layout .contato-box {
  max-width: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contato-video-label {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.65rem;
  opacity: 0.92;
}

.contato-layout .contato-video-label,
.contato-layout .discord-label {
  text-align: center;
  margin: 0 0 0.75rem;
  flex-shrink: 0;
}

.contato-box .contato-video-embed.video-embed {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  width: 100%;
}

.contato-discord {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-label {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  opacity: 0.92;
}

.contato-discord iframe {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  width: min(350px, 100%);
  max-width: 100%;
  height: min(500px, 70vh);
  margin: 0 auto;
  display: block;
}

@media (max-width: 900px) {
  .contato-layout {
    grid-template-columns: 1fr;
  }

  .contato-discord iframe {
    height: min(480px, 65vh);
  }
}

.hero-tagline {
  margin-bottom: 1.35rem !important;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-logo {
    max-width: min(320px, 88vw);
  }
}
