/* ============================================================
   BDEP — Baudhyantram Digital Ecosystem Platform
   Global Stylesheet v1.0
   ============================================================ */

:root {
  --primary:    #0a2463;
  --secondary:  #e84855;
  --accent:     #3e92cc;
  --gold:       #f5a623;
  --dark:       #0d1117;
  --dark2:      #161b22;
  --text:       #1a1a2e;
  --text-light: #6b7280;
  --white:      #ffffff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --border:     #e2e8f0;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(10,36,99,0.10);
  --shadow-lg:  0 12px 40px rgba(10,36,99,0.18);
  --font:       'Inter', system-ui, sans-serif;
  --font-head:  'Poppins', 'Inter', sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── TOPBAR ─────────────────────────────────────────────────────────────────── */
.topbar { background: var(--primary); color: rgba(255,255,255,0.85); font-size: 13px; padding: 7px 0; }
.topbar-inner { display: flex; gap: 20px; align-items: center; flex-wrap: nowrap; overflow: hidden; }
.topbar-inner span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.lang-switcher { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }
.lang-switcher a { color: rgba(255,255,255,0.7); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); transition: all var(--transition); }
.lang-switcher a.active, .lang-switcher a:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ── HEADER ─────────────────────────────────────────────────────────────────── */
.main-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(10,36,99,0.08);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow var(--transition);
}
.main-header.scrolled { box-shadow: 0 4px 30px rgba(10,36,99,0.15); }

/* ── NAVBAR ─────────────────────────────────────────────────────────────────── */
.navbar { display: flex; align-items: center; padding: 0; height: 64px; }
.brand-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 28px; }
.logo-img   { height: 46px; width: auto; display: block; object-fit: contain; }
.logo-text  { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--primary); }
.logo-tag  { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }

/* ── NAV MENU ───────────────────────────────────────────────────────────────── */
.nav-menu { display: flex; align-items: stretch; gap: 0; margin-left: auto; height: 100%; list-style: none; }
.nav-item { display: flex; align-items: center; position: relative; }
.nav-item-cta { margin-left: 8px; }

.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--text);
  padding: 0 13px; height: 100%;
  white-space: nowrap;
  transition: color var(--transition);
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.nav-link:hover, .has-mega.mega-open > .nav-link { color: var(--primary); border-bottom-color: var(--accent); }

.nav-chevron { width: 10px; height: 7px; flex-shrink: 0; transition: transform var(--transition); stroke: currentColor; }
.has-mega.mega-open > .nav-link .nav-chevron { transform: rotate(180deg); }

.btn-nav {
  background: var(--primary); color: var(--white) !important;
  padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  white-space: nowrap; border-bottom: none !important; transition: background var(--transition);
}
.btn-nav:hover { background: var(--accent) !important; color: var(--white); border-bottom: none !important; }

/* ── HAMBURGER ──────────────────────────────────────────────────────────────── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  margin-left: auto; width: 42px; height: 42px; flex-shrink: 0;
}
.ham-bar {
  display: block; width: 24px; height: 2px; background: var(--primary);
  border-radius: 2px; transition: all 0.3s ease; transform-origin: center;
}
.nav-toggle.open .ham-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .ham-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .ham-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MEGA PANEL ─────────────────────────────────────────────────────────────── */
.mega-panel {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 20px 60px rgba(10,36,99,0.15);
  z-index: 990;
  min-width: 680px;
  animation: megaFadeIn 0.18s ease;
}
.has-mega.mega-open .mega-panel { display: block; }

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Prevent panel from going off right edge */
.nav-item:last-child .mega-panel,
.nav-item-cta ~ .nav-item .mega-panel { left: auto; right: 0; transform: none; }

.mega-inner { padding: 24px 28px 0; }

.mega-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.mega-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1.5px; }
.mega-viewall { font-size: 13px; font-weight: 600; color: var(--accent); }
.mega-viewall:hover { text-decoration: underline; }

/* Grid layouts */
.mega-grid { display: grid; gap: 4px; margin-bottom: 4px; }
.mega-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mega-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Row item (services, industries, locations) */
.mega-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius);
  color: var(--text); font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.mega-item:hover { background: var(--gray-50); color: var(--primary); }
.mega-item-icon { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; }
.mega-item-body { display: flex; flex-direction: column; min-width: 0; }
.mega-item-name { font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mega-item-desc { font-size: 12px; color: var(--text-light); line-height: 1.3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Card item (products) */
.mega-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px; border-radius: var(--radius);
  border: 1px solid transparent;
  color: var(--text);
  transition: all var(--transition);
}
.mega-card:hover { background: var(--gray-50); border-color: var(--border); color: var(--primary); }
.mega-card-icon { font-size: 24px; margin-bottom: 4px; }
.mega-card-name { font-size: 14px; font-weight: 700; color: var(--primary); line-height: 1.3; }
.mega-card-tag  { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.mega-card-desc { font-size: 12px; color: var(--text-light); line-height: 1.5; margin-top: 2px; }

/* Footer bar inside mega */
.mega-footer-bar {
  display: flex; align-items: center; gap: 20px;
  margin-top: 8px; padding: 14px 0;
  border-top: 1px solid var(--border);
}
.mega-cta-btn {
  background: var(--primary); color: var(--white);
  padding: 8px 20px; border-radius: 6px; font-size: 13px; font-weight: 600;
  transition: background var(--transition);
}
.mega-cta-btn:hover { background: var(--accent); color: var(--white); }
.mega-cta-link { font-size: 13px; font-weight: 600; color: var(--accent); }
.mega-cta-link:hover { text-decoration: underline; }

/* Desktop backdrop (dimmer behind mega panel) */
.mega-backdrop {
  display: none; position: fixed; inset: 0; top: 99px;
  background: rgba(10,36,99,0.25); backdrop-filter: blur(2px);
  z-index: 980;
}
.mega-backdrop.visible { display: block; }

/* Mobile full-page overlay backdrop */
.mobile-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.mobile-backdrop.visible { display: block; }

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 50%, var(--dark) 100%); color: var(--white); padding: 100px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(62,146,204,0.2) 0%, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-block; background: rgba(245,166,35,0.2); color: var(--gold); border: 1px solid rgba(245,166,35,0.4); padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.hero h1 { font-family: var(--font-head); font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--secondary); color: var(--white); padding: 14px 32px; border-radius: var(--radius); font-weight: 700; font-size: 15px; border: none; cursor: pointer; transition: all var(--transition); display: inline-block; }
.btn-primary:hover { background: #c73444; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,72,85,0.35); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); padding: 14px 32px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 2px solid rgba(255,255,255,0.4); cursor: pointer; transition: all var(--transition); display: inline-block; }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); color: var(--white); }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--gold); }
.hero-stat .label { font-size: 12px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(12px); }
.hero-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hc-item { background: rgba(255,255,255,0.1); border-radius: var(--radius); padding: 20px 16px; text-align: center; }
.hc-item .icon { font-size: 28px; margin-bottom: 8px; }
.hc-item .name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--dark); color: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: var(--text); margin-bottom: 16px; line-height: 1.25; }
.section-dark .section-header h2 { color: var(--white); }
.section-header p { font-size: 17px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.65); }

/* ---- CARDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-icon { font-size: 40px; margin-bottom: 16px; }
.card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.card-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.card-link:hover { text-decoration: underline; }

/* Service/Industry cards with color accent */
.card-accent { border-top: 4px solid var(--accent); }
.card-accent:hover { border-top-color: var(--primary); }

/* ---- LOCATION GRID ---- */
.location-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.location-badge { background: var(--white); border: 1px solid var(--border); border-radius: 50px; padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text); transition: all var(--transition); }
.location-badge:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ---- BREADCRUMB ---- */
.breadcrumb-wrap { background: var(--gray-50); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb-item { font-size: 13px; color: var(--text-light); }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item + .breadcrumb-item::before { content: '›'; color: var(--text-light); margin-right: 4px; }
.breadcrumb-item.active { color: var(--text); font-weight: 500; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%); color: var(--white); padding: 60px 0; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(26px, 3vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 640px; }

/* ---- BLOG ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card-img { height: 200px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.blog-card-body { padding: 24px; }
.blog-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-light); margin-bottom: 10px; flex-wrap: wrap; }
.blog-cat { color: var(--accent); font-weight: 600; }
.blog-card h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.blog-card a.read-more { font-size: 14px; font-weight: 600; color: var(--primary); }

/* ---- CONTENT AREA ---- */
.content-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 60px 0; }
.content-area h2 { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin: 32px 0 12px; color: var(--primary); }
.content-area h3 { font-size: 20px; font-weight: 600; margin: 24px 0 10px; }
.content-area p { margin-bottom: 16px; color: var(--text); line-height: 1.8; }
.content-area ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content-area ul li { margin-bottom: 8px; color: var(--text); }

/* ---- SIDEBAR ---- */
.sidebar .widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.sidebar .widget h4 { font-weight: 700; font-size: 15px; margin-bottom: 16px; color: var(--primary); border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.sidebar .widget ul li { margin-bottom: 8px; }
.sidebar .widget ul li a { font-size: 14px; color: var(--text); padding: 6px 0; display: block; border-bottom: 1px solid var(--gray-100); transition: all var(--transition); }
.sidebar .widget ul li a:hover { color: var(--primary); padding-left: 8px; }
.cta-widget { background: linear-gradient(135deg, var(--primary), var(--accent)) !important; color: var(--white) !important; text-align: center; }
.cta-widget h4 { color: var(--white) !important; border-color: rgba(255,255,255,0.3) !important; }
.cta-widget p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 16px; }

/* ---- FAQ ---- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 18px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); transition: background var(--transition); }
.faq-q:hover { background: var(--gray-50); }
.faq-a { display: none; padding: 16px 24px; font-size: 14px; color: var(--text-light); line-height: 1.8; border-top: 1px solid var(--border); background: var(--gray-50); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q { color: var(--primary); }

/* ---- CTA SECTION ---- */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%); color: var(--white); text-align: center; padding: 80px 0; }
.cta-section h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.main-footer { background: var(--dark); color: rgba(255,255,255,0.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo-img { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { background: rgba(255,255,255,0.1); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 14px; font-weight: 700; transition: all var(--transition); }
.footer-social a:hover { background: var(--accent); }
.footer-col h4 { color: var(--white); font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: all var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--white); }

/* ---- ADMIN NOTICE ---- */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ---- TABLES ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--gray-50); font-weight: 600; color: var(--text); }
tr:hover td { background: var(--gray-50); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-draft   { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); color: var(--text); transition: border var(--transition); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62,146,204,0.15); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- STATS STRIP ---- */
.stats-strip { background: var(--primary); color: var(--white); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 42px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════════
   FLOATING ACTION BUTTONS (left side)
   ═══════════════════════════════════════════════════════════════════════════════ */

.float-actions {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 0 30px 30px 0;
  color: #fff;
  text-decoration: none;
  box-shadow: 2px 4px 16px rgba(0,0,0,0.25);
  overflow: hidden;
  /* Show only the 50px icon by default; expand to full width on hover */
  width: 50px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s;
}
.float-btn:hover, .float-btn:focus-visible {
  width: 160px;
  box-shadow: 4px 6px 24px rgba(0,0,0,0.3);
  color: #fff;
}
.float-wa   { background: #25D366; }
.float-call { background: var(--primary); }

.float-btn-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;   /* prevent icon from shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.15);
}

.float-btn-label {
  padding: 0 14px 0 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
  opacity: 0;
  transition: opacity 0.2s 0.1s;
}
.float-btn:hover .float-btn-label,
.float-btn:focus-visible .float-btn-label { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════════
   AI CHATBOT WIDGET (bottom right)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* FAB button */
.chatbot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 8001;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A2463 0%, #3E92CC 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(10,36,99,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chatbot-fab:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(10,36,99,0.55); }
.chatbot-fab.panel-open svg { opacity: 0; }

/* Notification dot */
.chatbot-notif {
  position: absolute;
  top: 2px; right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  transition: opacity 0.2s;
}
.chatbot-fab.panel-open .chatbot-notif { opacity: 0; }

/* Chat panel */
.chatbot-panel {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 8002;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 130px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 56px rgba(10,36,99,0.22), 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
  transform-origin: bottom right;
}
.chatbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Panel header */
.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0A2463, #1a3a7a);
  flex-shrink: 0;
}
.chatbot-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3E92CC, #F97316);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.chatbot-header-info { flex: 1; }
.chatbot-name   { font-weight: 700; font-size: 15px; color: #fff; }
.chatbot-status { font-size: 11px; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.chatbot-dot    { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; animation: chatPulse 2s infinite; }
@keyframes chatPulse { 0%,100%{opacity:1} 50%{opacity:0.45} }
.chatbot-close  { background: rgba(255,255,255,0.12); border: none; color: rgba(255,255,255,0.8); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
.chatbot-close:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* Messages area */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: #f8fafc;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Message bubbles */
.chat-msg {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-wrap: break-word;
  animation: chatMsgIn 0.2s ease;
}
@keyframes chatMsgIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }
.chat-msg.bot  { background: #fff; color: var(--text); border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.chat-msg.user { background: #0A2463; color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg strong { font-weight: 700; }

/* Clickable phone / email links inside chat messages */
.chat-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  border-radius: 6px;
  padding: 1px 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.chat-msg.bot .chat-link-phone  { color: #0a2463; background: #dbeafe; }
.chat-msg.bot .chat-link-email  { color: #065f46; background: #d1fae5; }
.chat-msg.bot .chat-link:hover  { filter: brightness(0.92); }
/* On user (dark) bubbles keep it readable */
.chat-msg.user .chat-link { color: #fff; background: rgba(255,255,255,0.2); }
.chat-msg.user .chat-link:hover { background: rgba(255,255,255,0.35); }

/* Typing indicator */
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: typingBounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-6px)} }

/* Lead captured success */
.chat-lead-ok { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; font-size: 12px; padding: 8px 12px; border-radius: 8px; align-self: stretch; text-align: center; }

/* Input bar */
.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}
.chatbot-input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 9px 16px;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s;
  font-family: var(--font-body);
}
.chatbot-input:focus { border-color: #3E92CC; }
.chatbot-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #0A2463;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.chatbot-send:hover { background: #1a3a7a; transform: scale(1.05); }
.chatbot-send:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

/* Footer bar */
.chatbot-footer-bar {
  padding: 7px 14px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
}
.chatbot-footer-bar a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .nav-link { padding: 0 10px; font-size: 13px; }
  .mega-panel { min-width: 560px; }
  .mega-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE NAV (≤ 900px) ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Show hamburger, hide desktop menu */
  .nav-toggle { display: flex; }

  /* Slide-down drawer — sits below the sticky header */
  .nav-menu {
    display: none;
    position: fixed;
    /* 35px topbar + 64px header ≈ 99px; using a safe 100px */
    top: 99px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    padding: 8px 0 48px;
    gap: 0;
    border-top: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(10,36,99,0.15);
  }
  .nav-menu.open { display: flex; }

  .nav-item { flex-direction: column; align-items: stretch; height: auto; border-bottom: 1px solid var(--gray-100); }

  /* Nav links become full-width tap targets */
  .nav-link {
    height: auto; padding: 15px 24px;
    font-size: 15px; font-weight: 600;
    border-bottom: none;
    justify-content: space-between;
    color: var(--text);
  }
  .nav-link:hover, .has-mega.mega-open > .nav-link { border-bottom: none; background: var(--gray-50); }

  .nav-item-cta { border-bottom: none; padding: 20px 24px; }
  .btn-nav { display: block; text-align: center; padding: 14px; font-size: 15px; }

  /* Mega panel becomes inline accordion on mobile */
  .mega-panel {
    position: static !important;
    left: auto !important; right: auto !important;
    transform: none !important;
    min-width: unset; width: 100%;
    box-shadow: none;
    border: none;
    border-top: 2px solid var(--gray-100);
    border-radius: 0;
    animation: none;
    background: var(--gray-50);
  }
  .has-mega.mega-open .mega-panel { display: block; }

  .mega-inner { padding: 16px 20px 8px; }
  .mega-header { margin-bottom: 12px; padding-bottom: 10px; }
  .mega-title { font-size: 11px; }
  .mega-grid { gap: 2px; }
  .mega-grid-2 { grid-template-columns: 1fr 1fr; }
  .mega-grid-3 { grid-template-columns: 1fr 1fr; }

  .mega-item { padding: 8px 8px; }
  .mega-item-icon { font-size: 16px; width: 22px; }
  .mega-item-name { font-size: 13px; }
  .mega-item-desc { display: none; } /* hide desc on mobile to save space */

  .mega-card { padding: 10px 10px; }
  .mega-card-icon { font-size: 20px; }
  .mega-card-name { font-size: 13px; }
  .mega-card-desc { display: none; }

  .mega-footer-bar { padding: 12px 0; gap: 12px; flex-wrap: wrap; }
  .mega-cta-btn { padding: 8px 16px; font-size: 13px; }

  /* Hide desktop backdrop on mobile */
  .mega-backdrop { display: none !important; }

  /* Topbar: hide less important items */
  .topbar-sep, .topbar-locs { display: none; }
  .topbar-inner { justify-content: space-between; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 48px 0; }
  .hero-stats { gap: 24px; }
  .content-wrap { padding: 32px 0; }
}

@media (max-width: 640px) {
  .mega-grid-2 { grid-template-columns: 1fr; }
  .mega-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: center; }
}

@media (max-width: 480px) {
  .chatbot-panel { right: 12px; bottom: 88px; width: calc(100vw - 24px); }
  .chatbot-fab   { right: 16px; bottom: 20px; }
  .float-actions { top: auto; bottom: 100px; transform: none; }
}
