/* ===== Custom Properties ===== */
:root {
  --primary: #FF7A00;
  --primary-dark: #e06800;
  --secondary: #1F2A44;
  --secondary-light: #2a3a5c;
  --accent: #F5E6C8;
  --accent-dark: #e8d3a8;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
}

/* ===== Global ===== */
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,122,0,0.4); }
  50% { box-shadow: 0 0 24px rgba(255,122,0,0.7); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in-up { animation: fadeInUp 0.7s ease-out both; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-fade-in { animation: fadeIn 0.5s ease-out both; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Navbar ===== */
.navbar { transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.navbar.scrolled {
  background-color: rgba(31,42,68,0.97) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}

/* ===== Hero decorative mandala (CSS) ===== */
.hero-mandala {
  width: 400px; height: 400px;
  border: 3px solid rgba(255,122,0,0.15);
  border-radius: 50%;
  position: absolute; right: -50px; top: 50%; transform: translateY(-50%);
  opacity: 0.15;
}
.hero-mandala::before, .hero-mandala::after {
  content: ''; position: absolute; inset: 30px;
  border: 2px solid rgba(245,230,200,0.2);
  border-radius: 50%;
}
.hero-mandala::after { inset: 70px; border-color: rgba(255,122,0,0.1); }

/* ===== Cards ===== */
.service-card {
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--primary);
  transform: scaleX(0); transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.service-card:hover::after { transform: scaleX(1); }

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}

/* ===== Mobile bottom bar ===== */
.mobile-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 998; background: var(--secondary);
  padding: 8px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .mobile-bottom-bar { display: flex; }
  .whatsapp-float { bottom: 80px; }
  .hero-mandala { width: 250px; height: 250px; right: -80px; }
}

/* ===== FAQ ===== */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-answer.open { max-height: 300px; }
.faq-chevron { transition: transform 0.3s; }
.faq-chevron.rotate { transform: rotate(180deg); }

/* ===== Gradient text ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ===== Step connector ===== */
.step-connector { position: relative; }
@media (min-width: 768px) {
  .step-connector::after {
    content: '→'; position: absolute; right: -28px; top: 50%;
    transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); font-weight: bold;
  }
  .step-connector:last-child::after { display: none; }
}
