/**
 * Bru Bikes Bauru - Core Design System & Global Styles
 * Otimizado para Alta Conversão (Google Ads) e Velocidade 100/100
 */

:root {
  /* Paleta Oficial Bru Bikes */
  --color-primary: #0B4F9C;
  --color-primary-dark: #073B75;
  --color-primary-light: #EBF3FE;
  --color-primary-hover: #1263BF;
  
  --color-accent: #FFCC00;
  --color-accent-hover: #E6B800;
  --color-accent-light: #FFF9E6;
  
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;
  --color-whatsapp-light: #DCF8C6;

  /* Escala de Cinzas & Superfícies */
  --color-dark: #0B1329;
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
  --color-white: #FFFFFF;

  /* Tipografia */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Sombras & Profundidade Refinadas (Clean / Menos IA) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-glow-yellow: 0 4px 14px rgba(255, 204, 0, 0.25);
  --shadow-glow-whatsapp: 0 4px 14px rgba(37, 211, 102, 0.28);

  /* Transições e Bordas */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s ease;
}

/* Reset Básico */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-slate-800);
  background-color: var(--color-slate-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

body {
  line-height: 1.6;
  max-width: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 600; }

p {
  color: var(--color-slate-600);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

/* Layout Container Padrão e Consistente */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    box-sizing: border-box;
  }
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-slate-100);
}

.section-dark h2, .section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: var(--color-slate-400);
}

.section-alt {
  background-color: var(--color-slate-100);
}

/* Títulos de Seção com Badges */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-badge.badge-yellow {
  background-color: var(--color-accent-light);
  color: #8C6A00;
  border: 1px solid rgba(255, 204, 0, 0.4);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-slate-600);
}

/* Botões de Ação de Alta Conversão */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(11, 79, 156, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 79, 156, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-glow-whatsapp);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2fe672 0%, #1fa854 100%);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-dark);
  box-shadow: var(--shadow-glow-yellow);
}

.btn-accent:hover {
  background: #FFE033;
  color: var(--color-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.15rem 2.3rem;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Pulsação de Alta Conversão */
.pulse-glow {
  animation: pulseButton 2.2s infinite;
}

@keyframes pulseButton {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Status Pill (Aberto / Fechado em Bauru) */
.store-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.store-status-pill.status-open {
  background-color: rgba(37, 211, 102, 0.15);
  color: #0F823B;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.store-status-pill.status-open .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.4);
  animation: blinkStatus 1.8s infinite;
}

.store-status-pill.status-closed {
  background-color: rgba(234, 88, 12, 0.12);
  color: #C2410C;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.store-status-pill.status-closed .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #F97316;
}

@keyframes blinkStatus {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}
