/* ============================================================
   DIEGO BARZI | AGÊNCIA DE MARKETING LOCAL
   Custom CSS — complementa Tailwind
   ============================================================ */

/* --- Variáveis -------------------------------------------- */
:root {
  --brand:        #8B1C1C;
  --brand-dark:   #6B1515;
  --brand-light:  rgba(139,28,28,0.12);
  --silver:       #C0C0C0;
  --dark:         #0A0A0A;
  --dark-alt:     #111111;
  --light:        #F8F8F8;
  --white:        #FFFFFF;
  --text:         #111827;
  --inv:          #F5F5F5;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --border-dark:  #2A2A2A;
  --radius:       15px;
  --shadow:       0 0 60px rgba(0,0,0,0.10);
  --shadow-brand: 0 8px 32px rgba(139,28,28,0.18);
}

/* --- Base ------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

/* --- Top Bar ---------------------------------------------- */
#top-bar { background: #050505; }

/* --- Navbar ----------------------------------------------- */
#navbar {
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--white); }

/* --- Botões ----------------------------------------------- */
.btn-primary {
  background: var(--brand);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 15px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--inv);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 32px;
  font-size: 15px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 10px 22px;
  font-size: 13px;
}

/* --- Seção label (badge acima do H2) ---------------------- */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-block;
  margin-bottom: 12px;
}
.section-label-inv { color: var(--silver); }
.section-divider {
  width: 56px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 16px 0 28px;
}

/* --- Hero ------------------------------------------------- */
#hero {
  background: var(--dark);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,192,192,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,192,192,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,28,28,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,28,28,0.15);
  border: 1px solid rgba(139,28,28,0.4);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
}
.hero-image-wrap {
  position: relative;
}
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  left: 0;
  background: linear-gradient(to right, var(--dark) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* --- Credibilidade ---------------------------------------- */
#credibilidade { background: var(--dark-alt); }
.cred-item { border-right: 1px solid var(--border-dark); }
.cred-item:last-child { border-right: none; }

/* --- Sobre ------------------------------------------------ */
#sobre { background: var(--light); }
.pill-tag {
  display: inline-block;
  background: rgba(139,28,28,0.08);
  border: 1px solid rgba(139,28,28,0.2);
  color: var(--brand);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  margin: 4px 4px 4px 0;
}

/* --- Cards de Serviço ------------------------------------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-brand);
  border-color: var(--brand);
}
.service-icon-wrap {
  width: 56px; height: 56px;
  background: var(--brand-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.service-icon-wrap svg {
  width: 28px; height: 28px;
  color: var(--brand);
  stroke: var(--brand);
}
.service-cta {
  margin-top: auto;
  padding-top: 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: gap 0.2s;
}
.service-cta:hover { gap: 10px; }

/* --- Benefícios ------------------------------------------- */
#beneficios { background: var(--dark-alt); }
.benefit-item {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s, border-color 0.3s;
}
.benefit-item:hover {
  background: rgba(139,28,28,0.1);
  border-color: rgba(139,28,28,0.3);
}
.benefit-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  color: var(--brand);
}

/* --- Como Funciona ---------------------------------------- */
#como-funciona { background: var(--light); }
.steps-wrapper { position: relative; }
.steps-wrapper::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed var(--border);
  z-index: 0;
}
@media (max-width: 768px) {
  .steps-wrapper::before { display: none; }
}
.step-circle {
  width: 64px; height: 64px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  position: relative;
  z-index: 1;
  margin: 0 auto 16px;
  box-shadow: 0 4px 20px rgba(139,28,28,0.35);
}

/* --- Depoimentos ------------------------------------------ */
#depoimentos { background: var(--white); }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 100px;
  color: var(--border);
  font-family: 'Outfit', sans-serif;
  line-height: 1;
  pointer-events: none;
}
.stars { color: var(--brand); font-size: 18px; letter-spacing: 2px; }
.avatar-placeholder {
  width: 48px; height: 48px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

/* --- Área de Atuação -------------------------------------- */
#area-atuacao { background: var(--light); }
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: none;
}
.map-wrap iframe {
  border-radius: var(--radius);
  display: block;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info-item svg {
  width: 20px; height: 20px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- FAQ -------------------------------------------------- */
#faq { background: var(--white); }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--brand); }
.faq-question.open { color: var(--brand); }
.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--brand);
  transition: transform 0.3s ease;
}
.faq-icon.open { transform: rotate(45deg); }
.faq-answer {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  padding-bottom: 22px;
}

/* --- CTA Contato ------------------------------------------ */
#contato { background: var(--dark); }

/* --- Footer ----------------------------------------------- */
footer { background: #0D0D0D; border-top: 1px solid var(--border-dark); }
.footer-link {
  color: #888;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 10px;
}
.footer-link:hover { color: var(--silver); }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-icon:hover { background: var(--brand); color: var(--white); }

/* --- WhatsApp Float --------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 32px rgba(37,211,102,0.55);
}
.whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* --- Scroll Animations ------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Responsivo ------------------------------------------- */
@media (max-width: 768px) {
  .cred-item { border-right: none; border-bottom: 1px solid var(--border-dark); }
  .cred-item:last-child { border-bottom: none; }
  .step-circle { width: 52px; height: 52px; font-size: 18px; }
}
