/* ===========================================================
   VISHNU PALE DMA — GLOBAL STYLES
   Design tokens live here. Change colors/fonts in one place
   and the whole site updates.
=========================================================== */

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

:root {
  /* Colors */
  --navy-900: #0D1230;
  --navy-800: #10163A;
  --navy-700: #171F52;
  --bg: #F5F6FB;
  --white: #FFFFFF;
  --teal: #14C9B7;
  --teal-dark: #0EA79A;
  --coral: #FF6B4A;
  --coral-dark: #E9532F;
  --whatsapp: #25D366;
  --text-main: #171B36;
  --text-muted: #6B7183;
  --border: #E4E6F0;
  --success: #1FAE6E;
  --danger: #E4483A;

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(16, 22, 58, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 22, 58, 0.10);
  --shadow-lg: 0 20px 60px rgba(16, 22, 58, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy-800);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; border: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(20, 201, 183, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 100px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.35);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--navy-800); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1FB959; transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo span {
  background: var(--navy-800);
  color: var(--teal);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 16px 8px 8px; border-radius: 100px; font-weight: 600; font-size: 14px;
}
.nav-user-pill .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-display);
}
.nav-toggle {
  display: none;
  background: none;
  font-size: 24px;
  color: var(--navy-800);
  transition: transform 0.25s ease;
}
.nav-toggle.active { transform: rotate(90deg); color: var(--teal-dark); }

/* Footer */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-brand { color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-bottom: 12px; }
.footer p, .footer a { font-size: 14px; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--teal); color: var(--navy-900); }

/* Small legal links row - used in every page footer */
.footer-legal-row {
  display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
}
.footer-legal-row a { color: rgba(255,255,255,0.55); }
.footer-legal-row a:hover { color: var(--teal); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Badges */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-teal { background: rgba(20,201,183,0.12); color: var(--teal-dark); }
.badge-coral { background: rgba(255,107,74,0.12); color: var(--coral-dark); }
.badge-whatsapp { background: rgba(37,211,102,0.12); color: #1a9950; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--navy-800);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}
.form-msg { font-size: 14px; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(228,72,58,0.1); color: var(--danger); }
.form-msg.success { background: rgba(31,174,110,0.1); color: var(--success); }

/* Loader */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ===========================================================
   ANIMATION UTILITIES (used across the whole site)
=========================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,201,183,0.35); }
  50% { box-shadow: 0 0 0 10px rgba(20,201,183,0); }
}
.anim-fade-up { animation: fadeInUp 0.7s ease both; }
.anim-fade { animation: fadeIn 0.8s ease both; }
.anim-float { animation: floatY 3.5s ease-in-out infinite; }
.anim-pulse-badge { animation: softPulse 2.2s infinite; }
.card, .service-detail-body .btn, .plan-card { will-change: transform; }
.plan-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ===========================================================
   MOBILE NAVIGATION — animated slide-down dropdown
=========================================================== */
@media (max-width: 900px) {
  .navbar .container { flex-wrap: wrap; height: auto; min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
  }
  .nav-links.mobile-open {
    max-height: 400px;
    opacity: 1;
    padding: 14px 0 6px;
    animation: fadeInUp 0.35s ease both;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav-toggle { display: block; order: 2; }
  .nav-actions { order: 1; margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .container { padding: 0 18px; }
  .hero { padding: 40px 0 70px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .btn { font-size: 14px; padding: 13px 20px; }
  .section-head h2 { font-size: 24px; }
  .nav-logo { font-size: 16px; }
  .nav-actions .btn-sm { padding: 8px 12px; font-size: 12px; }
  .chat-float { bottom: -10px; }
}
