/* ========================================
   SR Telecom - Glass Theme System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   CSS Variables - Light Theme
   ======================================== */
[data-theme="light"] {
  --bg-primary: rgba(255, 255, 255, 0.85);
  --bg-secondary: rgba(255, 255, 255, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.25);
  --bg-glass-strong: rgba(255, 255, 255, 0.4);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #6b7280;
  --accent: #ff8c00;
  --accent-hover: #e67e00;
  --accent-glow: rgba(255, 140, 0, 0.4);
  --border-glass: rgba(255, 255, 255, 0.5);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --backdrop-blur: blur(16px);
  --navbar-bg: rgba(255, 255, 255, 0.7);
  --overlay-bg: rgba(255, 255, 255, 0.3);
  --card-hover: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] {
  --bg-primary: rgba(15, 15, 35, 0.9);
  --bg-secondary: rgba(20, 20, 40, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-strong: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0ff;
  --text-secondary: #0c0c0c;
  --text-muted: #0c0c0c;
  --accent: #ff9500;
  --accent-hover: #ffb340;
  --accent-glow: rgba(255, 149, 0, 0.5);
  --border-glass: rgba(255, 255, 255, 0.15);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);
  --backdrop-blur: blur(20px);
  --navbar-bg: rgba(15, 15, 35, 0.8);
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --card-hover: rgba(255, 255, 255, 0.12);
}

/* ========================================
   Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   Background Image
   ======================================== */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/srtmag-rem.png');
  background-size: 500px;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .bg-image {
  opacity: 0.08;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  z-index: -1;
  transition: background 0.3s ease;
}

/* ========================================
   Glass Effect
   ======================================== */
.glass,
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.glass-card:hover,
.glass:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: var(--navbar-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.nav-menu a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-client-area {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
}

.btn-client-area:hover {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  z-index: 2000;
  padding: 2rem;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  right: 0;
}

.close-menu {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  align-self: flex-end;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-list {
  list-style: none;
  margin-top: 2rem;
}

.mobile-nav-list li {
  margin-bottom: 1.5rem;
}

.mobile-nav-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-list a:hover {
  color: var(--accent);
}

.theme-toggle-mobile {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.theme-toggle-mobile:hover {
  background: var(--accent);
  color: #fff;
}

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366 !important;
  color: #fff !important;
  font-size: 1.8rem;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  text-decoration: none;
}

.whatsapp-btn:hover,
.whatsapp-btn:active,
.whatsapp-btn:focus {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  background: #25d366 !important;
  color: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none;
}

/* ========================================
   Sections
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  padding: 6rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.swiper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.slide-content {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
  margin: 2rem;
  border-radius: 20px;
}

.slide-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content .subtitle {
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.slide-content .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.slide-content .price span {
  font-size: 1rem;
  font-weight: 400;
}

.slide-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.slide-content ul {
  list-style: none;
  margin-bottom: 2rem;
}

.slide-content ul li {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.3rem 0;
  font-size: 1.1rem;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: var(--accent) !important;
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff !important;
}

/* ========================================
   Plans
   ======================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.plan-card {
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.plan-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--accent);
}

.plan-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

/* ========================================
   Badge Base - Ribbon no canto superior direito
   ======================================== */
.badge {
  position: absolute;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  font-size: 0.72rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Badge 600 Mega - "Mais Escolhido" - LARANJA */
.badge-600mega {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  color: #fff;
  top: 29px;
  right: -50px;
  padding: 5px 40px;
  transform: rotate(45deg);
}

/* Badge 10 Giga - "Popular" - AZUL */
.badge-10giga {
  background: linear-gradient(135deg, #ff8c00, #ff6b00);
  color: #fff;
  top: 20px;
  right: -32px;
  padding: 5px 40px;
  transform: rotate(45deg);
}

.plan-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.plan-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.plan-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.plan-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.details ul {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.details ul li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass);
}

.details ul li i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.details-mobile {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ========================================
   Service Card
   ======================================== */
.service-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ========================================
   Content Card
   ======================================== */
.content-card {
  padding: 3rem;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.content-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* ========================================
   Differentials
   ======================================== */
.differentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.differential {
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
}

.differential i {
  color: var(--accent);
  margin-bottom: 1rem;
}

.differential h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.differential p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   Reviews
   ======================================== */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.google-reviews-header {
  max-width: 400px;
  margin: 0 auto 2rem;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
}

.google-logo {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.rating {
  color: var(--accent);
  font-size: 1.1rem;
  margin: 0.5rem 0 1.5rem;
}

.btn-google {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-google:hover {
  background: var(--accent);
  color: #fff;
}

.review-card {
  padding: 2rem;
  border-radius: 20px;
}

.stars {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.reviewer {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.review-text {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.review-source {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========================================
   FAQ
   ======================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container details {
  margin-bottom: 1rem;
  border-radius: 15px;
  overflow: hidden;
}

.faq-container summary {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-container summary::-webkit-details-marker {
  display: none;
}

.faq-container summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-container details[open] summary::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-container details div {
  padding: 0 1.5rem 1.5rem;
}

.faq-container details p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========================================
   Location
   ======================================== */
.location-card {
  padding: 2rem;
  border-radius: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.location-card p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  border-radius: 15px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 4rem 0;
}

.cta-final {
  padding: 4rem;
  border-radius: 25px;
  text-align: center;
}

.cta-final h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-final p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-col p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .theme-toggle {
    display: none;
  }

  .hero-section {
    padding: 8rem 0 3rem;
    min-height: auto;
  }

  .swiper-slide {
    min-height: 400px;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content .price {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .plan-card.featured {
    transform: none;
  }

  .plan-card.featured:hover {
    transform: translateY(-5px);
  }

  .cta-final h2 {
    font-size: 2rem;
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .slide-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .slide-content h1 {
    font-size: 1.8rem;
  }

  .plan-card {
    padding: 2rem;
  }

  .cta-final {
    padding: 2rem;
  }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-card,
.differential,
.review-card,
.glass-card {
  animation: fadeInUp 0.6s ease forwards;
}

.plan-card:nth-child(2) {
  animation-delay: 0.1s;
}

.plan-card:nth-child(3) {
  animation-delay: 0.2s;
}

.differential:nth-child(2) {
  animation-delay: 0.1s;
}

.differential:nth-child(3) {
  animation-delay: 0.2s;
}

.differential:nth-child(4) {
  animation-delay: 0.3s;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}
