/* ==========================================================================
   VIJAY FACILITY SERVICES — DESIGN SYSTEM
   Palette: Deep Navy (primary) / White / Signal Green (CTA) / Mist Grey (bg)
   Display: 'Sora'  Body: 'Inter'  Data/Numerals: 'JetBrains Mono'
   ========================================================================== */

:root {
  /* Color tokens */
  --navy-900: #071A3D;
  --navy-800: #0A2A5E;
  --navy-700: #123870;
  --navy-100: #E8EEF7;
  --white: #FFFFFF;
  --green-500: #17B978;
  --green-600: #12A167;
  --green-700: #0E8455;
  --grey-50: #F4F6F9;
  --grey-100: #EDF1F6;
  --ink-900: #16213E;
  --ink-600: #48566E;
  --ink-400: #7C8BA3;
  --border: #E2E8F1;

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii / shadow */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 30px rgba(10, 42, 94, 0.08);
  --shadow-card: 0 4px 18px rgba(10, 42, 94, 0.06);
  --shadow-lift: 0 20px 45px rgba(10, 42, 94, 0.16);

  --header-h: 76px;
  --mobile-nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--grey-50);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-nav-h);
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { color: var(--ink-600); line-height: 1.7; }

a { text-decoration: none; color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--green-500);
  display: inline-block;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.72); }
.bg-tint { background: var(--navy-100); }

.container-app { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: 13px 26px; font-size: 0.95rem; border: none; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(0.97); }
.btn-cta { background: var(--green-500); color: var(--white); box-shadow: 0 10px 24px rgba(23,185,120,0.35); }
.btn-cta:hover { background: var(--green-600); color: var(--white); box-shadow: 0 14px 28px rgba(23,185,120,0.42); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--navy-800); background: var(--navy-100); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Sticky Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(226,232,241,0.7);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(10,42,94,0.08); }
.site-header .container-app { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--navy-900); font-size: 1.15rem; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--navy-800), var(--navy-900)); display: flex; align-items: center; justify-content: center; color: var(--green-500); font-weight: 800; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.65rem; color: var(--ink-400); letter-spacing: 0.04em; }

.main-nav { display: none; }
@media (min-width: 992px) {
  .main-nav { display: flex; align-items: center; gap: 28px; }
  .main-nav a { font-weight: 600; font-size: 0.92rem; color: var(--ink-900); position: relative; }
  .main-nav a:hover { color: var(--navy-800); }
  .header-actions { display: flex; align-items: center; gap: 10px; }
}
.header-actions { display: none; }
@media (min-width: 992px) { .header-actions { display: flex; } }

.nav-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-100); border: none; }
@media (min-width: 992px) { .nav-toggle { display: none; } }

/* Mega menu */
.mega-panel {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
  padding: 28px 0; display: none;
}
.mega-panel.is-open { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 24px; }
.mega-grid a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; color: var(--ink-900); }
.mega-grid a:hover { background: var(--navy-100); color: var(--navy-800); }
.mega-grid i { color: var(--green-600); font-size: 1.05rem; }

/* Mobile offcanvas */
.mobile-panel { position: fixed; inset: 0; z-index: 1100; background: var(--white); transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel .mp-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.mobile-panel a.mp-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--grey-100); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 40px) 0 60px; background: radial-gradient(120% 100% at 100% 0%, #0F3B7A 0%, var(--navy-900) 55%, var(--navy-900) 100%); position: relative; overflow: hidden; color: var(--white); }
.hero::after { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(23,185,120,0.25), transparent 70%); top: -180px; right: -140px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; color: var(--white); margin: 16px 0 18px; }
.hero p.lead { color: rgba(255,255,255,0.75); font-size: 1.08rem; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust .stat b { font-family: var(--font-mono); font-size: 1.5rem; color: var(--green-500); display: block; }
.hero-trust .stat span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* Floating glass card cluster (signature element) */
.hero-visual { position: relative; height: 420px; display: none; }
@media (min-width: 992px) { .hero-visual { display: block; } }
.glass-card { position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(16px); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-lift); }
.glass-card .gc-title { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-transform: uppercase; }
.glass-card .gc-value { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); font-weight: 700; }
.gc-1 { top: 0; left: 20px; width: 240px; animation: float1 6s ease-in-out infinite; }
.gc-2 { top: 170px; right: 0; width: 250px; animation: float2 7s ease-in-out infinite; }
.gc-3 { bottom: 10px; left: 60px; width: 220px; animation: float1 8s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-14px);} }
@keyframes float2 { 0%,100% { transform: translateY(0);} 50% { transform: translateY(12px);} }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); display: inline-block; position: relative; }
.pulse-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--green-500); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Cards ---------- */
.card-app { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 26px; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.card-app:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-100); display: flex; align-items: center; justify-content: center; color: var(--navy-800); font-size: 1.4rem; margin-bottom: 16px; }
.card-app:hover .card-icon { background: var(--green-500); color: var(--white); }

.service-card { display: block; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 24px; height: 100%; position: relative; overflow: hidden; }
.service-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.service-card .card-icon { color: var(--green-600); background: var(--navy-100); }
.service-card .arrow { position: absolute; top: 22px; right: 20px; opacity: 0; transform: translateX(-6px); transition: all .2s ease; color: var(--green-600); }
.service-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* Process timeline */
.process-track { display: grid; grid-template-columns: 1fr; gap: 18px; position: relative; }
@media (min-width: 992px) { .process-track { grid-template-columns: repeat(5, 1fr); } }
.process-step { background: var(--white); border-radius: var(--radius-md); padding: 22px 18px; border: 1px solid var(--border); position: relative; }
.process-step .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-600); font-weight: 700; }

/* Testimonials */
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); height: 100%; }
.testimonial-card .stars { color: #F5A524; letter-spacing: 2px; margin-bottom: 10px; }
.avatar-badge { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-800); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }

/* FAQ accordion */
.accordion-item { border: none !important; border-bottom: 1px solid var(--border) !important; background: transparent !important; }
.accordion-button { font-family: var(--font-display); font-weight: 600; color: var(--navy-900) !important; background: transparent !important; box-shadow: none !important; padding: 20px 4px; }
.accordion-button:not(.collapsed) { color: var(--green-600) !important; }
.accordion-button::after { filter: hue-rotate(100deg); }
.accordion-body { padding: 0 4px 20px; color: var(--ink-600); }

/* ---------- Multi-step Quote Form ---------- */
.quote-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; border: 1px solid var(--border); }
.quote-steps { display: flex; background: var(--navy-100); }
.quote-steps .qs { flex: 1; text-align: center; padding: 12px 6px; font-size: 0.75rem; font-weight: 700; color: var(--ink-400); font-family: var(--font-mono); border-bottom: 3px solid transparent; }
.quote-steps .qs.active { color: var(--navy-800); border-color: var(--green-500); }
.quote-steps .qs.done { color: var(--green-600); }
.form-step { display: none; padding: 30px; }
.form-step.active { display: block; }
.form-control, .form-select { border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: 12px 14px; font-size: 0.95rem; }
.form-control:focus, .form-select:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(10,42,94,0.1); }
.service-pill { border: 1.5px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: all .15s ease; }
.service-pill:hover { border-color: var(--navy-800); }
.service-pill.selected { border-color: var(--green-500); background: rgba(23,185,120,0.08); color: var(--green-700); }

/* ---------- Sticky mobile bottom nav (app feel) ---------- */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--mobile-nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: flex;
  box-shadow: 0 -4px 20px rgba(10,42,94,0.08);
}
@media (min-width: 992px) { .mobile-bottom-nav { display: none; } body { padding-bottom: 0; } }
.mobile-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 0.66rem; font-weight: 600; color: var(--ink-400); }
.mobile-bottom-nav a i { font-size: 1.15rem; }
.mobile-bottom-nav a.active { color: var(--navy-800); }
.mobile-bottom-nav a.mbn-quote { color: var(--green-600); }
.mobile-bottom-nav a.mbn-whatsapp { color: #25D366; }

/* Floating desktop action rail */
.action-rail { position: fixed; right: 24px; bottom: 30px; z-index: 999; display: none; flex-direction: column; gap: 12px; }
@media (min-width: 992px) { .action-rail { display: flex; } }
.action-rail a { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift); font-size: 1.3rem; color: var(--white); }
.action-rail .ar-whatsapp { background: #25D366; }
.action-rail .ar-call { background: var(--navy-800); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 60px 0 20px; }
.site-footer h5 { color: var(--white); font-family: var(--font-display); margin-bottom: 18px; font-size: 1rem; }
.site-footer a { color: rgba(255,255,255,0.65); font-size: 0.9rem; display: block; padding: 6px 0; }
.site-footer a:hover { color: var(--green-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 991px) { .site-footer { padding: 28px 0 20px; } }

/* Mobile-only compact footer: brand + a few links + copyright, nothing else */
.footer-mobile-compact { display: none; }
.footer-bottom-mobile { display: none; }
@media (max-width: 991px) {
  .footer-full-cols { display: none; }
  .footer-mobile-compact { display: block; text-align: center; padding: 6px 0 4px; }
  .footer-mobile-compact .brand { justify-content: center; margin-bottom: 14px; }
  .footer-mobile-compact .fmc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
  .footer-mobile-compact .fmc-links a { display: inline-flex; align-items: center; gap: 5px; padding: 0; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.75); }
  .footer-mobile-compact .fmc-links a:hover { color: var(--green-500); }
  .footer-bottom-mobile { display: block; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 18px; padding-top: 14px; font-size: 0.74rem; color: rgba(255,255,255,0.5); }
}

/* WhatsApp popup */
.wa-popup-backdrop { position: fixed; inset: 0; background: rgba(7,26,61,0.55); z-index: 1400; display: none; align-items: flex-end; justify-content: center; }
@media (min-width: 768px) { .wa-popup-backdrop { align-items: center; } }
.wa-popup-backdrop.is-open { display: flex; }
.wa-popup { background: var(--white); border-radius: 24px 24px 0 0; width: 100%; max-width: 420px; padding: 28px 24px; position: relative; animation: slideUp .3s ease; }
@media (min-width: 768px) { .wa-popup { border-radius: var(--radius-lg); } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.wa-popup .wa-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--grey-100); display: flex; align-items: center; justify-content: center; }

/* ---------- AI Chat Assistant Widget ---------- */
.chat-bubble-btn {
  position: fixed; z-index: 1300; right: 24px; bottom: 96px;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift); border: none; font-size: 1.5rem;
}
@media (max-width: 991px) { .chat-bubble-btn { bottom: calc(var(--mobile-nav-h) + 16px); right: 16px; width: 54px; height: 54px; } }
.chat-bubble-btn .chat-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--green-500); border: 2px solid var(--navy-900); }

.chat-window {
  position: fixed; z-index: 1350; right: 24px; bottom: 168px;
  width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: 72vh;
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  border: 1px solid var(--border); display: none; flex-direction: column; overflow: hidden;
}
.chat-window.is-open { display: flex; }
@media (max-width: 991px) { .chat-window { right: 8px; left: 8px; width: auto; bottom: calc(var(--mobile-nav-h) + 12px); height: 68vh; } }

.chat-head { background: var(--navy-900); color: var(--white); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-head .ch-info { display: flex; align-items: center; gap: 10px; }
.chat-head .ch-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green-500); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); }
.chat-head .ch-name { font-weight: 700; font-size: 0.92rem; }
.chat-head .ch-status { font-size: 0.72rem; color: rgba(255,255,255,0.6); display: flex; align-items: center; gap: 5px; }
.chat-head .ch-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.chat-head button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.1rem; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--grey-50); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 0.87rem; line-height: 1.5; }
.chat-msg.bot { background: var(--white); border: 1px solid var(--border); color: var(--ink-900); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy-800); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-400); animation: typingBounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-options { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.chat-opt-btn { border: 1.5px solid var(--border); background: var(--white); border-radius: 999px; padding: 8px 14px; font-size: 0.82rem; font-weight: 600; color: var(--navy-900); }
.chat-opt-btn:hover, .chat-opt-btn:active { border-color: var(--green-500); background: rgba(23,185,120,0.08); color: var(--green-700); }

.chat-inputs { padding: 12px; border-top: 1px solid var(--border); background: var(--white); }
.chat-inputs input, .chat-inputs textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 0.85rem; margin-bottom: 8px; }
.chat-inputs .btn { width: 100%; justify-content: center; }
.chat-footer-hint { padding: 8px 14px; font-size: 0.7rem; color: var(--ink-400); text-align: center; background: var(--white); border-top: 1px solid var(--grey-100); }
.text-green { color: var(--green-600) !important; }
.section-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--navy-100); color: var(--navy-800); font-size: 0.8rem; font-weight: 600; }
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-aos].aos-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1; transform: none; transition: none; }
  .glass-card, .pulse-dot::after { animation: none; }
}
