@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  --primary: #2A2CA7;
  --primary-light: #4A4FD6;
  --accent: #1F2287;
  --accent2: #7278FF;
  --white: #ffffff;
  --off-white: #d8d8d8;
  --text-dark: #0F0A1E;
  --text-mid: #3D3558;
  --text-light: #666AA3;
  --border: #D9DCFF;
  --card-bg: #EEF0FF;
  --shadow: 0 4px 32px rgba(42,44,167,0.08);
  --shadow-md: 0 8px 48px rgba(42,44,167,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(150deg, #f4f4f4 0%, #d8d8d8 60%, #cdcdcd 100%), url('../images/hero-bg.jpg') center top / cover no-repeat;
  background-attachment: fixed;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.45s ease, background-position 0.8s ease;
}

body.is-ready {
  opacity: 1;
}

body.is-leaving {
  opacity: 0;
  pointer-events: none;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: var(--shadow); }

.nav-logo { text-decoration: none; display: flex; flex-direction: column; }
.nav-logo .brand { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.nav-logo .tagline { font-size: 0.62rem; font-weight: 600; color: var(--text-light); letter-spacing: 2px; text-transform: uppercase; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-weight: 600; font-size: 0.9rem; transition: color 0.2s; position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--primary); border-radius:2px; transition:width 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.btn-quote {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(42,44,167,0.3);
}
.nav-links a.btn-quote,
.nav-links a.btn-quote:hover,
.nav-links a.btn-quote.active {
  color: #fff;
}
.btn-quote:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,44,167,0.35); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all 0.3s; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: #fff;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 24px rgba(42,44,167,0.3);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(42,44,167,0.35); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--primary);
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 2px solid var(--primary); cursor: pointer;
  transition: all 0.25s;
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ── SECTION BASE ── */
section { padding: 6rem 5%; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--primary); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 50px; margin-bottom: 1.2rem;
}
.section-tag::before { content:''; width:8px; height:8px; background:var(--primary); border-radius:50%; }

h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.highlight { color: var(--primary-light); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--card-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat .num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat .label { font-size: 0.82rem; color: var(--text-light); font-weight: 600; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0 5%; }

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 5% 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
footer .brand { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.5rem; font-weight: 800; color: #fff; }
footer .tagline-footer { font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
footer p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
footer h5 { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.95rem; margin-bottom: 1rem; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.6rem; }
footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
footer ul a:hover { color: var(--accent2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { margin: 0; font-size: 0.82rem; }

/* ── SOCIAL LINKS ── */
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--primary-light); color: #fff; }

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  text-decoration: none; color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: pulse 2.5s infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); }
@keyframes pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.7); }
}

/* ── PAGE HERO ── */
.page-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, #ececec 0%, var(--off-white) 55%, #d2d2d2 100%);
  padding: 5rem 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(42,44,167,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--text-light); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── ANIMATIONS ── */
.fade-up,
.reveal-left,
.reveal-right,
.zoom-in {
  opacity: 0;
  filter: blur(10px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.fade-up { transform: translateY(36px); }
.reveal-left { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.zoom-in { transform: scale(0.92); }

.fade-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.zoom-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translate(0, 0) scale(1);
}

.stagger-group > * {
  --reveal-delay: 0ms;
}

.counter {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body,
  .fade-up,
  .reveal-left,
  .reveal-right,
  .zoom-in,
  .btn-primary,
  .btn-outline,
  .btn-quote,
  .card,
  .whatsapp-fab {
    animation: none !important;
    transition: none !important;
  }

  body {
    opacity: 1;
  }

  .fade-up,
  .reveal-left,
  .reveal-right,
  .zoom-in {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 2rem; gap: 1.5rem; box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .btn-quote.desktop-only { display: none; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 5%; }
  body { background-attachment: scroll; }
  .nav-links { padding: 1.25rem 5%; }
  .nav-links a.btn-quote { width: 100%; text-align: center; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .page-hero { padding: 4rem 5% 3rem; }
}
