:root {
  --navy: #004C8F;
  --navy-dark: #003366;
  --navy-soft: #EBF3FA;
  --red: #ED1C24;
  --red-dark: #C81018;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
  --success: #059669;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(0, 51, 102, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 51, 102, 0.08);
  --transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}
@media (min-width: 992px) { body { padding-bottom: 0; } }

a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Top Utility Bar */
.topbar {
  background: var(--navy-dark);
  color: #E2E8F0;
  font-size: 12.5px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-links a:hover { color: #fff; text-decoration: underline; }
.pill-badge {
  background: rgba(255,255,255,0.14);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-pwa-install {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  transition: var(--transition);
}
.btn-pwa-install:hover { background: var(--red-dark); transform: translateY(-1px); }

/* Main Sticky Header */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px;
  background: var(--navy);
  border-radius: 10px;
  display: grid; place-items: center;
  border-bottom: 4px solid var(--red);
  flex-shrink: 0;
}
.brand-title { font-size: 17px; font-weight: 800; color: var(--navy-dark); line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }

.nav-menu { display: none; align-items: center; gap: 4px; list-style: none; }
@media (min-width: 1024px) { .nav-menu { display: flex; } }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.nav-menu > li > a:hover { background: var(--navy-soft); color: var(--navy); }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  list-style: none;
  z-index: 950;
}
.nav-menu > li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  color: var(--text);
}
.dropdown-menu a:hover { background: var(--navy-soft); color: var(--navy); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy-soft); }

.hamburger {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Notice Ticker */
.notice-bar {
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
  padding: 9px 0;
  font-size: 13px;
}
.notice-wrap { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.notice-label {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.notice-ticker {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.notice-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* HDFC-Style Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, #0A66B2 100%);
  color: #fff;
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.25fr 0.95fr; } }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.hero p { font-size: 16px; color: #E2E8F0; max-width: 600px; margin-bottom: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-val { font-size: 20px; font-weight: 800; color: #fff; }
.stat-lbl { font-size: 12px; color: #CBD5E1; }

/* Quick Banking Action Card (HDFC-like right panel) */
.quick-card {
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0, 20, 50, 0.25);
  border-top: 4px solid var(--red);
}
.quick-card h3 { font-size: 17px; font-weight: 700; color: var(--navy-dark); margin-bottom: 14px; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.quick-tile {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #F8FAFC;
  transition: var(--transition);
  cursor: pointer;
}
.quick-tile:hover { border-color: var(--navy); background: var(--navy-soft); transform: translateY(-2px); }
.quick-tile strong { font-size: 13.5px; color: var(--navy-dark); }
.quick-tile span { font-size: 11.5px; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--navy-dark); }
.section-head p { color: var(--muted); font-size: 15px; max-width: 620px; }

/* Filter Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Product Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #BFDBFE; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.card-badge {
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-rate { font-size: 14px; font-weight: 800; color: var(--red); }
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.feature-list { list-style: none; margin-bottom: 18px; }
.feature-list li { font-size: 13px; color: #334155; padding: 3px 0 3px 18px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }

/* Calculators */
.calc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .calc-grid { grid-template-columns: 1.15fr 0.85fr; } }
.calc-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.range-group { margin-bottom: 18px; }
.range-head { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.range-val { color: var(--navy); font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--navy); cursor: pointer; }
.calc-result {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy));
  color: #fff;
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.emi-big { font-size: 34px; font-weight: 800; margin: 8px 0 18px; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 16px; margin-bottom: 20px; }

/* Tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #F8FAFC; color: var(--navy-dark); font-weight: 700; }
tr:last-child td { border-bottom: none; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: var(--transition);
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,76,143,0.12); }

/* Floating Live Support Chat Widget */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 980;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 76, 143, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
@media (min-width: 992px) { .chat-fab { bottom: 24px; } }
.chat-fab:hover { background: var(--navy-dark); transform: translateY(-2px); }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,0.3); }

.chat-box {
  position: fixed;
  right: 20px;
  bottom: 84px;
  width: min(360px, calc(100vw - 32px));
  height: 480px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 30, 70, 0.22);
  z-index: 990;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-box.open { display: flex; }
.chat-head {
  background: var(--navy);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg { max-width: 84%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.msg.bot, .msg.agent { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.customer { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; background: #fff; border-top: 1px solid var(--border); }
.chat-chip {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: var(--navy-soft);
  white-space: nowrap;
  cursor: pointer;
}
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }

/* Mobile Drawer & Bottom Nav */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 995;
  display: none;
}
.mobile-drawer.open { display: block; }
.drawer-panel {
  width: 290px;
  height: 100%;
  background: #fff;
  padding: 20px;
  overflow-y: auto;
}
.drawer-links { list-style: none; margin-top: 16px; }
.drawer-links a { display: block; padding: 11px 10px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--navy-dark); }

.mobile-bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 890;
}
@media (min-width: 992px) { .mobile-bottom-bar { display: none; } }
.mobile-bottom-bar a, .mobile-bottom-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--navy-dark); background: none; border: none; cursor: pointer;
}

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 999; padding: 16px;
}
.modal.open { display: flex; }
.modal-card { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; padding: 26px; position: relative; }

footer { background: var(--navy-dark); color: #CBD5E1; padding: 48px 0 28px; font-size: 13.5px; }
footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; margin-bottom: 28px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Hero Visual & Campaign Cards */
.hero-has-bg {
  background-size: cover;
  background-position: center;
}
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.campaign-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.campaign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.campaign-img { width: 100%; height: 190px; object-fit: cover; display: block; }
.campaign-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.campaign-body h3 { font-size: 17px; color: var(--navy-dark); margin-bottom: 6px; }
.campaign-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
