/* 
 * Design System - Samuray Tecnologia 
 * Estética: Premium, Dark Mode, Minimalista, Preciso.
 */

:root {
  /* Default Colors (Dark + Yellow) */
  --primary: #d4af37; /* Gold */
  --primary-rgb: 212, 175, 55;
  --primary-hover: #b8962e;
  --accent: #8b0000; /* Crimson */
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;
  --white: #ffffff;
  --glass-bg: rgba(20, 20, 20, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Spacing */
  --section-padding: 1.5rem 0;
}

/* Light Theme Overrides */
body.theme-light {
  --bg-dark: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --white: #000000;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
}

body.theme-light .bg-darker { background-color: #f1f5f9; }
body.theme-light .site-header.scrolled { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
body.theme-light .form-control { background: #f1f5f9; color: #0f172a; }
body.theme-light .card:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05); }
body.theme-light .site-footer { background: #f1f5f9; }

/* Color Schemes */
body.scheme-red {
  --primary: #ff4d4d;
  --primary-rgb: 255, 77, 77;
  --primary-hover: #e60000;
}
body.scheme-red .hero-badge {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}

body.scheme-green {
  --primary: #2ecc71;
  --primary-rgb: 46, 204, 113;
  --primary-hover: #27ae60;
}
body.scheme-green .hero-badge {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: rgba(var(--primary-rgb), 0.2);
}

body.scheme-yellow {
  --primary: #d4af37;
  --primary-rgb: 212, 175, 55;
  --primary-hover: #b8962e;
}


/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

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

/* Typography */
h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 6.2vw, 3.8rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.75rem; }

/* Staggered Hero Title */
.hero-title-staggered {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.title-part-1 {
  align-self: flex-start;
  text-align: left;
}

.title-part-2 {
  align-self: flex-end;
  text-align: right;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: var(--section-padding); }

.section-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

.text-center { text-align: center; }
.bg-darker { background-color: #050505; }
.text-primary { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-main);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
}

.btn-secondary {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* Neon Buttons - High Specificity */
.hero-actions .btn-neon-blue {
  background: rgba(0, 210, 255, 0.05) !important;
  color: #00d2ff !important;
  border: 2px solid #00d2ff !important;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2), inset 0 0 10px rgba(0, 210, 255, 0.1) !important;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.6) !important;
  transition: all 0.4s ease !important;
}

.hero-actions .btn-neon-blue:hover {
  background: #00d2ff !important;
  color: #050505 !important;
  box-shadow: 0 0 40px rgba(0, 210, 255, 0.8) !important;
  transform: translateY(-5px) !important;
}

.hero-actions .btn-neon-red {
  background: rgba(255, 49, 49, 0.05) !important;
  color: #ff3131 !important;
  border: 2px solid #ff3131 !important;
  box-shadow: 0 0 15px rgba(255, 49, 49, 0.2), inset 0 0 10px rgba(255, 49, 49, 0.1) !important;
  text-shadow: 0 0 8px rgba(255, 49, 49, 0.6) !important;
  transition: all 0.4s ease !important;
}

.hero-actions .btn-neon-red:hover {
  background: #ff3131 !important;
  color: #050505 !important;
  box-shadow: 0 0 40px rgba(255, 49, 49, 0.8) !important;
  transform: translateY(-5px) !important;
}

.hero-content h1 .text-gold-glow {
  color: #d4af37 !important; /* Fixed Gold */
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5) !important;
  display: inline-block;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.site-header.scrolled {
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 69px;
  width: auto;
  transition: var(--transition);
}

.site-header.scrolled .logo img { height: 52px; }

.desktop-menu {
  display: flex;
  gap: 2.5rem;
}

.desktop-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
}

.desktop-menu a:hover,
.desktop-menu a.active {
  color: var(--primary);
}

.desktop-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: var(--transition);
}

.desktop-menu a:hover::after,
.desktop-menu a.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: radial-gradient(circle at 70% 30%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%),
              radial-gradient(circle at 20% 70%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 850px;
  margin: 0 auto 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Cards & Grid */
.card {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: translateX(-100%);
  transition: 0.6s;
}

.card:hover::before { transform: translateX(100%); }

.card-icon {
  margin-bottom: 2rem;
  color: var(--primary);
}

/* News & Products */
.news-card, .product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.news-card:hover, .product-card:hover {
  border-color: var(--primary);
}

.news-img, .product-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.news-card:hover .news-img, .product-card:hover .product-img {
  transform: scale(1.05);
}

.news-content, .product-info { padding: 2rem; }

.news-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: #050505;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #0a0a0a;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1rem;
  background: #050505;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 1rem;
}

.footer-widget h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-muted);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: var(--transition);
}

.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); }

/* Mobile Navigation */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.menu-toggle-icon { position: relative; display: block; }
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ''; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -8px; }
.menu-toggle-icon::after { top: 8px; }

.menu-toggle.is-active .menu-toggle-icon { background: transparent; }
.menu-toggle.is-active .menu-toggle-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-active .menu-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 100%; height: 100vh;
  background: var(--bg-dark);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu.is-open { right: 0; }
.mobile-menu ul { text-align: center; }
.mobile-menu li { margin-bottom: 2rem; }
.mobile-menu a { font-size: 2rem; font-weight: 700; text-transform: uppercase; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .desktop-menu { display: none; }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions { flex-direction: column; }
  .section { padding: 1rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

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

.footer-bottom p { margin-bottom: 0; }


.footer-bottom .developer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* Google Reviews Section */
.review-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.google-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    margin-bottom: 1.5rem;
}

.google-rating span {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

/* Ultra-Premium Reviews Carousel */
.reviews-container {
    position: relative;
    padding: 1rem 0;
}

.reviews-slider {
    overflow: visible; /* To allow card shadows/glow */
    position: relative;
    width: 100%;
}

.reviews-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.review-card-wrapper {
    flex: 0 0 calc(33.333% - 1.333rem);
    min-width: 0;
}

@media (max-width: 1024px) {
    .review-card-wrapper { flex: 0 0 calc(50% - 1rem); }
}

@media (max-width: 768px) {
    .review-card-wrapper { flex: 0 0 100%; }
}

.review-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.review-card:hover::before { opacity: 1; }

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.author-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.5rem;
    color: #FFB800;
    position: relative;
    z-index: 2;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* Nav Arrows */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: scale(1.1);
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-stars {
    color: #ffb800;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 2px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-style: italic;
    flex-grow: 1;
}

.reviews-empty {
    text-align: center;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px dashed var(--glass-border);
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 2.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  visibility: hidden;
  opacity: 0;
}

.cookie-consent.show {
  bottom: 30px;
  visibility: visible;
  opacity: 1;
}

.cookie-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 0;
}

.cookie-text strong {
  color: var(--white);
}

.cookie-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.cookie-text a:hover {
  border-bottom-color: var(--primary);
}

.cookie-btn {
  padding: 0.8rem 2rem;
  font-size: 0.85rem;
  background: var(--primary);
  color: var(--bg-dark);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    bottom: -300px;
  }
  
  .cookie-consent.show {
    bottom: 20px;
  }
  
  .cookie-btn {
    width: 100%;
  }
}
