/* ============================================
   CABRAL DISTRIBUIDORA - Design System
   Cores: #1A1A1A (fundo) + #E8A020 (âmbar)
   ============================================ */

:root {
  --primary: #E8A020;
  --primary-dark: #C4850A;
  --primary-light: #F5B830;
  --bg: #111111;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --border: #2a2a2a;
  --border-accent: rgba(232, 160, 32, 0.3);
  --text: #F5F0E8;
  --text-muted: #888888;
  --text-dim: #555555;
  --whatsapp: #25D366;
  --sidebar-width: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--primary);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 160, 32, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(232, 160, 32, 0.1);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--whatsapp);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-large {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

/* ===== TEXT ===== */
.text-accent {
  color: var(--primary);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: #111111;
}

.section-black {
  background: #0a0a0a;
}

.section-contact {
  background: #111111;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(232, 160, 32, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(232, 160, 32, 0.6);
  }
}

.animate-fade-up {
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.25s;
}

.delay-3 {
  animation-delay: 0.4s;
}

.delay-4 {
  animation-delay: 0.55s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9998;
  padding: 0.65rem 1.5rem;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 160, 32, 0.35);
  color: var(--primary);
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: #0a0a0a;
  border-color: var(--primary);
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 12px 36px rgba(232, 160, 32, 0.4);
}

.back-to-top-icon {
  font-size: 1.2rem;
}

.back-to-top-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
  animation: glowPulse 2s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55);
}

/* ===== SCROLLBAR (Copo de Chop 🍺) ===== */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
  border-left: 1px solid rgba(232, 160, 32, 0.15);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb {
  background:
    linear-gradient(to bottom,
      #fff8e8 0%,
      #f5e6c8 8%,
      #F5B830 12%,
      #E8A020 50%,
      #C4850A 100%);
  border-radius: 10px;
  border: 2px solid #0d0d0d;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(to bottom,
      #ffffff 0%,
      #fff5d6 8%,
      #FFD060 12%,
      #F5B830 50%,
      #E8A020 100%);
  border: 2px solid #0d0d0d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }
}