/* ==========================================================================
   VORAXUS — SISTEMA PARA CONDOMÍNIOS
   Tema claro por padrão + dark mode alternável
========================================================================== */

/* =========================
   DESIGN TOKENS
========================= */

/* ===== TEMA CLARO (PADRÃO) ===== */
:root{
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --fg: #1e1f25;
  --muted: #6b7280;

  --brand: #7c3aed;
  --brand-strong: #6d28d9;
  --accent: #ff6a00;

  --line: rgba(0,0,0,.08);
  --card: #ffffff;

  --radius: 16px;
  --shadow-1: 0 4px 18px rgba(0,0,0,.06);
  --shadow-2: 0 10px 35px rgba(0,0,0,.10);
}

/* ===== DARK MODE ===== */
body.dark{
  --bg: #0b0f19;
  --bg-soft: #111827;
  --fg: #e5e7eb;
  --muted: #9ca3af;

  --line: rgba(255,255,255,.08);
  --card: #161b26;

  --shadow-1: 0 6px 24px rgba(0,0,0,.35);
  --shadow-2: 0 14px 45px rgba(0,0,0,.45);
}

body.dark .vrs-nav{
  background: color-mix(in srgb, #0b0f19 75%, transparent);
}

/* =========================
   BASE
========================= */

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body.vrs-body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto;
  background: var(--bg);
  color: var(--fg);
  transition: background .3s ease, color .3s ease;
}

/* =========================
   CONTAINER
========================= */

.vrs-container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 1.2rem;
}

/* =========================
   NAVBAR
========================= */

.vrs-nav{
  position:fixed;
  width:100%;
  top:0;
  z-index:1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg-soft) 75%, transparent);
  border-bottom:1px solid var(--line);
}

.vrs-nav__in{
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.vrs-brand{
  display:flex;
  align-items:center;
  gap:.6rem;
}

.vrs-logo-main{
  width:36px;
  height:36px;
  border-radius:8px;
  animation: spin 18s linear infinite;
}

/* rotação infinita */
@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .vrs-logo-main{ animation:none; }
}

.vrs-brand__name{
  font-weight:600;
  font-size:1rem;
}

.vrs-badge{
  font-size:.75rem;
  padding:.3rem .6rem;
  border-radius:20px;
  background: var(--brand);
  color:#fff;
}

/* =========================
   LINKS DO MENU (DESKTOP + MOBILE)
========================= */

/* Estilo base (serve pros dois menus) */
.vrs-links{
  gap: 1rem;
}

.vrs-links button,
.vrs-links a{
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--muted);
  transition: .2s;
  text-decoration: none;
  padding: .45rem .55rem;
  border-radius: 10px;
  white-space: nowrap;
}

.vrs-links button:hover,
.vrs-links a:hover{
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* ===== Desktop (mostra o menu no header) ===== */
.vrs-links--desktop{
  display: flex;
  align-items: center;
}

/* ===== Mobile (por padrão escondido) ===== */
.vrs-nav__mobilebar{
  display: none;
}

.vrs-links--mobile{
  display: none;
}

/* ===== Mobile: esconde desktop e mostra barra extra ===== */
@media (max-width: 860px){
  .vrs-links--desktop{
    display: none;
  }

  .vrs-nav__mobilebar{
    display: block;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .vrs-links--mobile{
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 1.2rem;
  }
}

/* =========================
   BOTÃO
========================= */

.vrs-btn{
  background: var(--brand);
  color:#fff;
  padding:.7rem 1.15rem;
  border-radius: var(--radius);
  text-decoration:none;
  font-weight:600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-1);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  border: 0;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.vrs-btn:hover{
  background: var(--brand-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* =========================
   HERO
========================= */

.vrs-hero{
  padding-top:120px;
  padding-bottom:100px;
}

.vrs-hero h1{
  font-size: clamp(2rem,4vw,3rem);
  margin-bottom:1rem;
}

.vrs-hero__lead{
  font-size:1.1rem;
  color: var(--muted);
  max-width:600px;
}

.vrs-hero__actions{
  margin-top:1.5rem;
}

/* =========================
   SEÇÕES
========================= */

.vrs-section{
  padding:90px 0;
}

.vrs-section-alt{
  background: var(--bg-soft);
}

.vrs-section h2{
  font-size:2rem;
  margin-bottom:2rem;
}

/* =========================
   GRID
========================= */

.vrs-grid{
  display:grid;
  gap:1.5rem;
}

@media(min-width:768px){
  .vrs-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

/* =========================
   CARDS
========================= */

.vrs-card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:1.5rem;
  box-shadow: var(--shadow-1);
  transition:.3s;
}

.vrs-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.vrs-card h3{
  margin-top:0;
}

.vrs-card--panel{
  text-align:center;
}

article.vrs-card {
  margin-bottom: 15px;
}

/* =========================
   LISTA
========================= */

.vrs-list{
  list-style:none;
  padding:0;
  display:grid;
  gap:1rem;
}

.vrs-list li{
  padding:1rem;
  background: var(--card);
  border-radius: var(--radius);
  border:1px solid var(--line);
}

/* =========================
   FOOTER
========================= */

.vrs-footer{
  border-top:1px solid var(--line);
  padding:30px 0;
  text-align:center;
  font-size:.9rem;
  color: var(--muted);
}

/* =========================
   DARK MODE TOGGLE
========================= */

/* =========================
   DARK MODE TOGGLE
========================= */

.theme-toggle{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  border: 1px solid var(--line);
  color: var(--fg);

  box-shadow: var(--shadow-1);
  transition: all .25s ease;
  position: relative;
}

.theme-toggle:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.theme-toggle .icon{
  width:20px;
  height:20px;
  position:absolute;
  transition: opacity .25s ease, transform .25s ease;
}

/* Estado padrão (light) */
.icon-sun{ 
  opacity:0; 
  transform: scale(.8); 
}

.icon-moon{ 
  opacity:1; 
  transform: scale(1); 
}

/* Quando estiver dark */
body.dark .icon-sun{
  opacity:1;
  transform: scale(1);
}

body.dark .icon-moon{
  opacity:0;
  transform: scale(.8);
}

/* =========================
   RESPONSIVIDADE EXTRA
========================= */

@media(max-width:540px){

  .vrs-hero{
    text-align:center;
  }

  .vrs-hero__lead{
    margin:0 auto;
  }

  .vrs-hero__actions{
    display:flex;
    justify-content:center;
  }

  .vrs-grid{
    grid-template-columns:1fr;
  }

}


/* =========================
   IMAGENS DOS CARDS
========================= */

.vrs-card__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover elegante desktop */
@media (hover: hover) {
  .vrs-card:hover .vrs-card__image {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Ajuste para tablets */
@media (max-width: 1024px) {
  .vrs-card__image {
    border-radius: 14px;
    aspect-ratio: 4 / 3;
  }
}

/* Ajuste para mobile */
@media (max-width: 768px) {
  .vrs-card__image {
    border-radius: 12px;
    aspect-ratio: 1 / 1;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .vrs-card__image {
    border-radius: 10px;
  }
}


/* =========================
   THEME TOGGLE (SVG)
========================= */

.vrs-theme-toggle{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  border: 1px solid var(--line);
  color: var(--fg);

  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  position: relative;

  padding: 0;
}

.vrs-theme-toggle:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

/* garante que o SVG herde cor e apareça */
.vrs-theme-toggle svg{
  display:block;
  width: 20px;
  height: 20px;
  color: currentColor;
}

/* sobreposição dos ícones */
.vrs-theme-toggle .icon{
  position:absolute;
  inset: 0;
  margin: auto;
  transition: opacity .25s ease, transform .25s ease;
}

/* padrão (light): mostra lua */
.vrs-theme-toggle .icon-sun{ opacity:0; transform: scale(.85); }
.vrs-theme-toggle .icon-moon{ opacity:1; transform: scale(1); }

/* dark: mostra sol */
body.dark .vrs-theme-toggle .icon-sun{ opacity:1; transform: scale(1); }
body.dark .vrs-theme-toggle .icon-moon{ opacity:0; transform: scale(.85); }

.vrs-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}




/* =========================
   LISTA DE SEGURANÇA
========================= */

.vrs-list--security {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.5rem;
}

.vrs-list--security li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.vrs-list--security img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Texto */

.vrs-list--security strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.vrs-list--security span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* Texto introdutório */

.vrs-section-lead {
  max-width: 750px;
  margin-top: 1rem;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* Mais Premium */
.vrs-list--security li {
  background: rgba(124, 58, 237, 0.05);
  padding: 1rem;
  border-radius: 12px;
  transition: 0.2s ease;
}

.vrs-list--security li:hover {
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}


/* MOBILEBAR: some ao rolar (mobile) */
.vrs-nav__mobilebar{
  transition: transform .22s ease, opacity .22s ease, max-height .22s ease, padding .22s ease, border-width .22s ease;
  will-change: transform, opacity, max-height, padding;
}

@media (max-width: 860px){
  /* estado normal: tem altura */
  .vrs-nav__mobilebar{
    max-height: 80px; /* pode ajustar */
    overflow: hidden;
  }

  /* escondido: não deixa "fundo" sobrando */
  .vrs-nav__mobilebar.is-hidden{
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;

    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
  }
}