/* ============================================
   PERÍCIAS MB — Custom Styles
   ============================================ */

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

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ---- WhatsApp Floating Button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  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.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Pulse animation for WhatsApp */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

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

/* ---- Mobile Menu ---- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Header ---- */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ---- Nav Active State ---- */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link.active {
  color: #111827;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4ce346;
  border-radius: 1px;
}

/* ---- Subtle Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in-up-delay-1 {
  animation: fadeInUp 0.7s 0.15s ease forwards;
  opacity: 0;
}

.fade-in-up-delay-2 {
  animation: fadeInUp 0.7s 0.3s ease forwards;
  opacity: 0;
}

/* ---- Hero Pattern Background ---- */
.hero-pattern {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 32px 32px;
}

/* ---- Service Card Hover ---- */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #4ce346;
}

/* ---- Step connector line ---- */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% + 8px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(to right, #4ce346, #d1d5db);
}

@media (max-width: 768px) {
  .step-connector::after {
    display: none;
  }
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ---- Green accent line ---- */
.accent-line {
  width: 48px;
  height: 3px;
  background: #4ce346;
  border-radius: 2px;
}

/* ---- Stat counter ---- */
.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: #e5e7eb;
}

.stat-item:last-child::after {
  display: none;
}

/* ---- Page hero for inner pages ---- */
.page-hero {
  background: linear-gradient(135deg, #f8faf8 0%, #ffffff 50%, #f0fdf0 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76, 227, 70, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---- Profile Image ---- */
.profile-frame {
  position: relative;
}

.profile-frame::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 80px;
  height: 80px;
  border-top: 3px solid #4ce346;
  border-left: 3px solid #4ce346;
}

.profile-frame::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 80px;
  height: 80px;
  border-bottom: 3px solid #4ce346;
  border-right: 3px solid #4ce346;
}

/* ---- Selection color ---- */
::selection {
  background: #4ce346;
  color: #000;
}
