/* ============================================================
   RS Informática – Soluções em Tecnologia
   Arquivo: style.css
   Descrição: Estilos globais, componentes e responsividade
   ============================================================ */

/* ── RESET & VARIÁVEIS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --neon:  #00c8ff;
  --neon2: #0077cc;
  --dark:  #050d1a;
  --dark2: #0a1628;
  --text:  #e0f4ff;
  --muted: #7ba8c4;
  --card:  #0d1f35;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Exo 2', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ============================================================
   NAVEGAÇÃO
   ============================================================ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(5,13,26,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,200,255,0.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 64px;
}

.nav-logo img { height: 42px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.87rem;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

/* Ícones de redes sociais */
.nav-socials { display: flex; align-items: center; gap: 0.55rem; }
.nav-social {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(0,200,255,0.25); background: rgba(0,200,255,0.06);
  color: var(--muted); text-decoration: none; transition: all 0.22s;
}
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }
.nav-social:hover { transform: translateY(-2px); }
.nav-social.wa:hover { border-color: #25d366; color: #25d366; background: rgba(37,211,102,0.10); box-shadow: 0 0 10px rgba(37,211,102,0.2); }
.nav-social.ig:hover { border-color: #e1306c; color: #e1306c; background: rgba(225,48,108,0.10); box-shadow: 0 0 10px rgba(225,48,108,0.2); }
.nav-social.fb:hover { border-color: #1877f2; color: #1877f2; background: rgba(24,119,242,0.10); box-shadow: 0 0 10px rgba(24,119,242,0.2); }

/* Hamburguer */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px; z-index: 200;
}
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  background: var(--neon); border-radius: 2px; transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile overlay */
.nav-mobile-overlay {
  display: none; position: fixed; inset: 64px 0 0 0; z-index: 90;
  background: rgba(5,13,26,0.98); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.2rem; border-top: 1px solid rgba(0,200,255,0.15);
}
.nav-mobile-overlay.open { display: flex; animation: fadeUp 0.3s ease both; }
.nav-mobile-overlay a {
  color: var(--text); text-decoration: none; font-size: 1.25rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; transition: color 0.2s;
}
.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active { color: #fff; }
.nav-mobile-overlay .nav-cta-mobile {
  margin-top: 0.5rem; background: transparent; border: 1px solid var(--neon);
  color: var(--neon); padding: 0.7rem 2.2rem; border-radius: 4px;
  font-size: 1rem; letter-spacing: 0.06em;
}
.nav-mobile-overlay .nav-cta-mobile:hover { background: var(--neon); color: var(--dark); }

/* Redes sociais no menu mobile */
.nav-mobile-socials { display: flex; gap: 1.2rem; margin-top: 0.5rem; }
.nav-mobile-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(0,200,255,0.25); background: rgba(0,200,255,0.06);
  color: var(--muted); transition: all 0.22s;
  font-size: 0 !important; letter-spacing: 0 !important; text-transform: none !important;
}
.nav-mobile-socials a svg { width: 22px; height: 22px; fill: currentColor; }
.nav-mobile-socials a.wa:hover { border-color: #25d366; color: #25d366; background: rgba(37,211,102,0.12); }
.nav-mobile-socials a.ig:hover { border-color: #e1306c; color: #e1306c; background: rgba(225,48,108,0.12); }
.nav-mobile-socials a.fb:hover { border-color: #1877f2; color: #1877f2; background: rgba(24,119,242,0.12); }

/* ============================================================
   BANNER / SLIDER
   ============================================================ */
.banner { position: relative; width: 100%; overflow: hidden; margin-top: 64px; }

.slides-wrapper { display: flex; transition: transform 0.75s cubic-bezier(0.77,0,0.18,1); }

.slide {
  min-width: 100%; height: 640px; position: relative;
  display: flex; align-items: center; overflow: hidden;
}

.slide-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform 8s ease;
}
.slide.active .slide-bg-img { transform: scale(1.05); }

/* Gradiente escuro sobre a imagem */
.slide-bg-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(3,8,20,0.92) 0%, rgba(3,8,20,0.65) 55%, rgba(3,8,20,0.30) 100%);
}

/* Linhas de varredura */
.slide-bg-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,200,255,0.03) 3px, rgba(0,200,255,0.03) 4px);
  pointer-events: none;
}

/* Conteúdo do slide */
.slide-content { position: relative; z-index: 2; max-width: 620px; padding: 0 6%; }

/* Animações de entrada do slide ativo */
.slide.active .slide-content .slide-tag   { animation: fadeUp 0.5s 0.1s ease both; }
.slide.active .slide-content .slide-title { animation: fadeUp 0.6s 0.2s ease both; }
.slide.active .slide-content .slide-desc  { animation: fadeUp 0.6s 0.3s ease both; }
.slide.active .slide-content .slide-btns  { animation: fadeUp 0.6s 0.4s ease both; }

.slide-tag {
  display: inline-block; background: rgba(0,200,255,0.12);
  border: 1px solid rgba(0,200,255,0.45); color: var(--neon);
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.28rem 0.9rem; border-radius: 3px; margin-bottom: 1rem;
  opacity: 0;
}
.slide-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 900; color: #fff; line-height: 1.25;
  margin-bottom: 1rem; letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.7);
  opacity: 0;
}
.slide-title span { color: var(--neon); }

.slide-desc {
  font-size: 0.98rem; color: rgba(210,235,255,0.85);
  line-height: 1.75; margin-bottom: 2rem; font-weight: 300;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6); max-width: 500px;
  opacity: 0;
}

.slide-btns { display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; }

.slide-btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--neon); color: var(--dark); font-weight: 700;
  padding: 0.75rem 1.8rem; border-radius: 4px; text-decoration: none;
  font-family: 'Exo 2', sans-serif; font-size: 0.93rem;
  transition: all 0.2s; letter-spacing: 0.04em;
}
.slide-btn-primary:hover { background: #fff; transform: translateY(-2px); }

.slide-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.35); color: #fff;
  padding: 0.75rem 1.8rem; border-radius: 4px; text-decoration: none;
  font-family: 'Exo 2', sans-serif; font-size: 0.93rem;
  transition: all 0.2s;
}
.slide-btn-ghost:hover { border-color: var(--neon); color: var(--neon); transform: translateY(-2px); }

/* Setas de navegação */
.banner-prev,
.banner-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.25);
  color: var(--neon); width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.4rem; transition: all 0.2s; user-select: none;
}
.banner-prev { left: 1.2rem; }
.banner-next { right: 1.2rem; }
.banner-prev:hover,
.banner-next:hover { background: rgba(0,200,255,0.22); }

/* Pontinhos de navegação */
.banner-dots {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 10;
}
.dot {
  width: 26px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.22); cursor: pointer;
  transition: all 0.35s; border: none;
}
.dot.active { background: var(--neon); width: 44px; box-shadow: 0 0 8px var(--neon); }

/* Barra de progresso */
.slide-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--neon); z-index: 10; width: 0%;
  box-shadow: 0 0 8px var(--neon);
}

/* Contador de slides */
.slide-counter {
  position: absolute; bottom: 1.3rem; right: 1.5rem; z-index: 10;
  font-family: 'Orbitron', sans-serif; font-size: 0.75rem;
  color: rgba(0,200,255,0.6); letter-spacing: 0.1em;
}

/* ============================================================
   SEÇÕES GERAIS
   ============================================================ */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 700;
  color: #fff; text-align: center; margin-bottom: 0.5rem; letter-spacing: 0.05em;
}
.section-line {
  width: 60px; height: 2px; background: var(--neon);
  margin: 0 auto 3rem; border-radius: 2px;
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.services { background: var(--dark2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card); border: 1px solid rgba(0,200,255,0.12);
  border-radius: 8px; padding: 2rem 1.5rem; text-align: center;
  transition: all 0.3s; cursor: default;
}
.service-card:hover { border-color: var(--neon); transform: translateY(-4px); background: #112035; }

.service-icon {
  width: 52px; height: 52px; margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.2);
  border-radius: 12px; color: var(--neon); transition: all 0.3s;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card:hover .service-icon {
  background: rgba(0,200,255,0.15); border-color: var(--neon);
  box-shadow: 0 0 18px rgba(0,200,255,0.2);
}
.service-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.6rem; color: #fff; }
.service-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   POR QUE NOS ESCOLHER
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.why-item { text-align: center; padding: 1.5rem 1rem; }
.why-num {
  font-family: 'Orbitron', sans-serif; font-size: 2.5rem; font-weight: 900;
  color: var(--neon); margin-bottom: 0.4rem;
}
.why-item h4 { font-size: 0.95rem; color: #fff; margin-bottom: 0.3rem; }
.why-item p  { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   CONTATO
   ============================================================ */
.contact { background: var(--dark2); }

.contact-box {
  background: var(--card); border: 1px solid rgba(0,200,255,0.15);
  border-radius: 12px; padding: 3rem 2rem; max-width: 680px; margin: 0 auto;
  text-align: center;
}
.contact-box > p { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }

.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.contact-item {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(0,200,255,0.05); border: 1px solid rgba(0,200,255,0.1);
  border-radius: 6px; padding: 0.9rem 1.2rem;
  text-decoration: none; color: inherit;
  transition: all 0.25s; cursor: pointer;
}
.contact-item:hover {
  background: rgba(0,200,255,0.1); border-color: rgba(0,200,255,0.35);
  transform: translateX(4px);
}
.contact-item:hover .contact-item-icon {
  background: rgba(0,200,255,0.15); border-color: var(--neon);
  box-shadow: 0 0 12px rgba(0,200,255,0.2);
}

.contact-item-arrow {
  margin-left: auto; font-size: 1rem; color: var(--neon);
  opacity: 0; transform: translateX(-4px); transition: all 0.25s;
}
.contact-item:hover .contact-item-arrow { opacity: 1; transform: translateX(0); }

.contact-item-text { text-align: left; }

.contact-item-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.08); border: 1px solid rgba(0,200,255,0.2);
  border-radius: 10px; color: var(--neon); transition: all 0.2s;
}
.contact-item-icon svg { width: 18px; height: 18px; }

.contact-item-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item-value { font-size: 1rem; color: #fff; font-weight: 600; }

.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: #25d366; color: #fff; text-decoration: none;
  padding: 1rem 2.5rem; border-radius: 6px; font-weight: 700;
  font-size: 1.1rem; transition: all 0.2s; font-family: 'Exo 2', sans-serif;
}
.whatsapp-btn:hover { background: #1ebe57; transform: translateY(-2px); }

/* ============================================================
   RODAPÉ
   ============================================================ */
footer {
  background: #030a14; border-top: 1px solid rgba(0,200,255,0.1);
  text-align: center; padding: 2rem; color: var(--muted); font-size: 0.85rem;
}
footer p { transition: color 0.2s; }
footer p:hover { color: #fff; cursor: default; }
footer a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
footer img {
  height: 28px; margin-bottom: 0.7rem; display: block;
  margin-left: auto; margin-right: auto; opacity: 0.7; transition: opacity 0.2s;
}
footer img:hover { opacity: 1; }

/* ============================================================
   BOTÃO VOLTAR AO TOPO (canto inferior esquerdo)
   ============================================================ */
.back-top {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 200;
  background: rgba(5,13,26,0.85); border: 1px solid rgba(0,200,255,0.35);
  color: var(--neon); width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.3rem; transition: all 0.25s;
  backdrop-filter: blur(8px); text-decoration: none;
  box-shadow: 0 0 16px rgba(0,200,255,0.15);
  opacity: 0; pointer-events: none;
}
.back-top.visible { opacity: 1; pointer-events: all; }
.back-top:hover { background: rgba(0,200,255,0.18); transform: translateY(-3px); box-shadow: 0 0 24px rgba(0,200,255,0.3); }

/* ============================================================
   BOTÃO FLUTUANTE WHATSAPP (canto inferior direito)
   ============================================================ */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  background: #25d366; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4); text-decoration: none;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVIDADE – TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-cta, .nav-socials { display: none; }
  .nav-hamburger { display: flex; }
  .slide { height: 520px; }
  .slide-content { padding: 0 5%; max-width: 100%; }
  .slide-desc { font-size: 0.92rem; }
  .banner-prev, .banner-next { width: 38px; height: 38px; font-size: 1.1rem; }
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-box { padding: 2.5rem 1.5rem; }
}

/* ============================================================
   RESPONSIVIDADE – MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  nav { padding: 0 1.2rem; }
  .nav-logo img { height: 32px; }

  .slide { height: 620px; align-items: flex-end; padding-bottom: 3.5rem; }
  .slide-content { padding: 0 1.2rem; text-align: left; }
  .slide-bg-img::after {
    background: linear-gradient(180deg, rgba(3,8,20,0.25) 0%, rgba(3,8,20,0.88) 55%, rgba(3,8,20,0.97) 100%);
  }
  .slide-tag   { font-size: 0.65rem; }
  .slide-title { font-size: clamp(1.2rem, 5.5vw, 1.65rem); }
  .slide-desc  { font-size: 0.87rem; margin-bottom: 1.3rem; max-width: 100%; }
  .slide-btns  { flex-direction: column; gap: 0.7rem; }
  .slide-btn-primary,
  .slide-btn-ghost { width: 100%; justify-content: center; padding: 0.8rem 1rem; font-size: 0.9rem; }
  .banner-prev { left: 0.5rem; }
  .banner-next { right: 0.5rem; }
  .banner-prev,
  .banner-next { width: 34px; height: 34px; font-size: 1rem; }
  .slide-counter { display: none; }

  section { padding: 3rem 1.2rem; }
  .section-title { font-size: 1.15rem; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .service-card { padding: 1.3rem 0.9rem; }
  .service-icon { width: 42px; height: 42px; border-radius: 10px; margin-bottom: 0.8rem; }
  .service-icon svg { width: 20px; height: 20px; }
  .service-card h3 { font-size: 0.85rem; }
  .service-card p  { font-size: 0.78rem; }

  .why-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .why-num   { font-size: 1.9rem; }
  .why-item h4 { font-size: 0.88rem; }
  .why-item p  { font-size: 0.8rem; }

  .contact-box { padding: 1.8rem 1rem; border-radius: 8px; }
  .contact-item { padding: 0.7rem 0.9rem; }
  .contact-item-value { font-size: 0.88rem; }
  .whatsapp-btn { padding: 0.85rem 1.2rem; font-size: 0.95rem; width: 100%; justify-content: center; }

  footer { padding: 1.5rem 1rem; font-size: 0.76rem; }
  footer img { height: 22px; }

  .back-top { width: 40px; height: 40px; font-size: 1.1rem; bottom: 1.2rem; left: 1.2rem; }
  .wa-float  { width: 50px; height: 50px; bottom: 1.2rem; right: 1.2rem; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* ============================================================
   RESPONSIVIDADE – TELAS MUITO PEQUENAS (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  .services-grid { grid-template-columns: 1fr; }
  .slide-title { font-size: 1.1rem; }
  .slide-desc  { font-size: 0.82rem; }
}
