/* Base */
* { box-sizing: border-box; }
:root {
  --blue: #2563eb;
  --green: #16a34a;
  --text: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --light: #f1f5f9;
  --border: #e2e8f0;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Layout helpers */
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 50; }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 700; }
.logo-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; }
.logo-text { font-size: 18px; }

.nav { display: flex; gap: 16px; }
.nav-link { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.nav-link.active, .nav-link:hover { color: var(--blue); background: #eef2ff; }

.desktop-nav { display: none; }
.mobile-menu-btn { background: none; border: none; cursor: pointer; width: 36px; height: 36px; position: relative; }
.hamburger, .hamburger::before, .hamburger::after {
  position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); content: ""; transition: .2s;
}
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-menu { display: none; border-top: 1px solid var(--border); padding: 12px 0; }
.mobile-menu.active { display: block; }
.mobile-nav { display: grid; gap: 6px; }
.mobile-cta { display: flex; gap: 8px; margin-top: 10px; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-outline-green, .btn-whatsapp, .btn-outline-white {
  border: 0; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-secondary { background: #111827; color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); }
.btn-outline-green { background: transparent; border: 1px solid var(--green); color: var(--green); }
.btn-outline-white { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; }
.icon { margin-left: 6px; }

/* Hero */
.hero { padding: 48px 0; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.hero-content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.badge { display: inline-block; background: #ecfeff; color: #0369a1; padding: 6px 10px; border-radius: 999px; font-weight: 600; }
.hero-title { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15; margin: 12px 0; }
.text-blue { color: var(--blue); }
.hero-subtitle { color: var(--muted); margin-bottom: 18px; }
.hero-buttons { display: flex; gap: 10px; margin-bottom: 18px; }
.hero-stats { display: flex; gap: 20px; }
.stat { background: #f8fafc; border: 1px solid var(--border); padding: 12px; border-radius: 12px; min-width: 120px; text-align: center; }
.stat-number { font-weight: 800; font-size: 22px; }
.stat-label { color: var(--muted); font-size: 12px; }

.hero-image { position: relative; }
.hero-img { width: 100%; border-radius: 16px; display: block; }
.hero-bg-circle-1, .hero-bg-circle-2 {
  position: absolute; border-radius: 999px; filter: blur(40px); opacity: .35;
}
.hero-bg-circle-1 { width: 180px; height: 180px; background: #93c5fd; top: -20px; right: -20px; }
.hero-bg-circle-2 { width: 140px; height: 140px; background: #86efac; bottom: -20px; left: -20px; }

/* Sections */
.section-header { text-align: center; margin-bottom: 20px; }
.section-title { font-size: 28px; margin: 0 0 6px; }
.section-subtitle { color: var(--muted); margin: 0; }

/* Grids */
.services-grid, .features-grid, .testimonials-grid {
  display: grid; gap: 16px;
}
.services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.service-card, .feature-card, .testimonial-card {
  border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 16px;
}
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 8px; font-size: 20px; }
.service-icon.red { background: #fee2e2; }
.service-icon.blue { background: #e0e7ff; }
.service-icon.green { background: #dcfce7; }
.service-icon.purple { background: #ede9fe; }

.feature-icon { font-size: 22px; }
.testimonial-text { color: var(--muted); }
.stars { margin-bottom: 8px; }
.service-badge { background: #eef2ff; color: var(--blue); padding: 4px 8px; border-radius: 999px; font-size: 12px; }

/* CTA */
.cta-section { background: #0f172a; color: #fff; padding: 40px 0; }
.cta-content { text-align: center; }
.cta-title { margin: 0 0 8px; font-size: 26px; }
.cta-subtitle { margin: 0 0 16px; color: #cbd5e1; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; }

/* Footer */
.footer { background: #0b1220; color: #cbd5e1; padding: 32px 0 12px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer .logo-icon { background: #1f2937; }
.footer-desc { color: #94a3b8; }
.footer-title { color: #fff; margin: 0 0 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-link { text-decoration: none; font-size: 20px; }
.footer-bottom { text-align: center; border-top: 1px solid #1f2937; margin-top: 16px; padding-top: 12px; color: #94a3b8; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; }
.whatsapp-btn { width: 56px; height: 56px; border-radius: 999px; border: 0; cursor: pointer; font-size: 22px; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.35); }
.whatsapp-menu { display: none; position: absolute; right: 0; bottom: 70px; background: #fff; border: 1px solid var(--border); border-radius: 12px; width: 240px; overflow: hidden; }
.whatsapp-menu.show { display: block; }
.menu-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.menu-options { display: grid; }
.menu-options button { border: 0; background: #fff; padding: 10px 12px; text-align: left; cursor: pointer; }
.menu-options button:hover { background: #f1f5f9; }
.close-menu { background: transparent; border: 0; font-size: 18px; cursor: pointer; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(2,6,23,.6); z-index: 70; padding: 16px; }
.modal.show { display: grid; }
.modal-content { width: 100%; max-width: 640px; background: #fff; border-radius: 16px; overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.close-modal { background: none; border: none; font-size: 22px; cursor: pointer; }
.contact-form { padding: 16px; display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: grid; gap: 6px; }
input, select, textarea { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.full-width { width: 100%; }

/* Responsive */
@media (min-width: 900px) {
  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }
}
@media (max-width: 899px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero-stats { justify-content: center; }
}


/* ===================== Animations ===================== */
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Page fade-in */
html { opacity: 1; }
body { opacity: 0; animation: pageFadeIn .6s ease-out forwards; }
@keyframes pageFadeIn { to { opacity: 1; } }

/* Reveal base */
.reveal { opacity: 0; transform: translateY(22px); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in.delay-1 { transition-delay: .05s; }
.reveal.in.delay-2 { transition-delay: .1s; }
.reveal.in.delay-3 { transition-delay: .15s; }
.reveal.in.delay-4 { transition-delay: .2s; }
.reveal.in.delay-5 { transition-delay: .25s; }

/* Subtle float for hero image blobs */
@keyframes floaty {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}
.hero-bg-circle-1 { animation: floaty 6s ease-in-out infinite; }
.hero-bg-circle-2 { animation: floaty 7s ease-in-out infinite; }

/* Button micro-interactions */
.btn-primary, .btn-secondary, .btn-outline, .btn-outline-green, .btn-whatsapp, .btn-outline-white {
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary:hover, .btn-secondary:hover, .btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .12);
}

/* Card hover lift */
.service-card, .feature-card, .testimonial-card {
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover, .feature-card:hover, .testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, .08);
  border-color: #dbeafe;
}

/* WhatsApp pulse */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-btn { animation: pulse 2.4s ease-in-out infinite; }

/* Modal scale-in */
.modal.show .modal-content {
  animation: popIn .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes popIn {
  0% { transform: translateY(8px) scale(.98); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
