/* ========================================
   KUBU ANALYTICS — Main Styles
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
  --red-primary: #D42B2B;
  --red-dark: #A51C1C;
  --red-darker: #7A1414;
  --red-light: #FDEAEA;
  --red-glow: rgba(212, 43, 43, 0.15);

  --dark: #1A1A2E;
  --dark-soft: #2D2D3F;
  --text-body: #5A5A6E;
  --text-muted: #9A9AB0;
  --border: #E2E4E8;
  --bg-light: #F7F8FA;
  --bg-white: #FFFFFF;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --shadow-red: 0 8px 24px rgba(212,43,43,.20);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: .3s cubic-bezier(.4,0,.2,1);
  --container: 1200px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--dark-soft);
  line-height: 1.7;
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--text-body); }

/* ---------- Section ---------- */
.section {
  padding: 100px 0;
}

.section--gray {
  background: var(--bg-light);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--red-light);
  color: var(--red-primary);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: .03em;
}

.section__title {
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red-primary);
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212,43,43,.30);
}

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

.btn--white {
  background: #fff;
  color: var(--red-primary);
}
.btn--white:hover {
  background: var(--red-light);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 22px;
  font-size: .85rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-red { color: var(--red-primary); }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-3 { margin-bottom: 24px; }

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 4px 12px rgba(0, 0, 0, .12);
  z-index: 999;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .55), 0 6px 16px rgba(0, 0, 0, .15);
  animation: none;
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .5);
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 4px 12px rgba(0, 0, 0, .12), 0 0 0 0 rgba(37, 211, 102, .5); }
  50%      { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 4px 12px rgba(0, 0, 0, .12), 0 0 0 14px rgba(37, 211, 102, 0); }
}

@media (max-width: 580px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
