/* =============================================================
   ExFinServ World-Class Corporate CA & Advisory Theme v4.0
   Color Palette:
     Primary:   #0A2540 (Midnight Navy)
     Secondary: #0F62FE (Royal Blue)
     Accent:    #00BFA6 (Teal)
     Light BG:  #F8FAFC (Slate Light)
     Dark Text: #1F2937 (Charcoal)
     White:     #FFFFFF
   ============================================================= */

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

:root {
  --primary:    #0A2540;
  --secondary:  #0F62FE;
  --accent:     #00BFA6;
  --bg-light:   #F8FAFC;
  --dark-text:  #1F2937;
  --gray-subtle:#6B7280;
  --border-line:#E5E7EB;
  --white:      #FFFFFF;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --shadow-sm:  0 4px 12px rgba(10,37,64,0.04);
  --shadow-md:  0 10px 30px rgba(10,37,64,0.08);
  --shadow-lg:  0 20px 50px rgba(10,37,64,0.12);
  --shadow-glow:0 0 30px rgba(15,98,254,0.25);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
}

a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ── Typography & Gradient Text ── */
.text-gradient-blue {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-accent { color: var(--accent) !important; }

.section-padding-lg { padding: 90px 0; }
.section-padding-md { padding: 70px 0; }

/* ── Global Section Titles ── */
.sec-title-wrap {
  text-align: center;
  margin-bottom: 56px;
}
.sec-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,98,254,0.08);
  border: 1px solid rgba(15,98,254,0.2);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary);
  margin-bottom: 14px;
}
.sec-title-wrap h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.sec-title-wrap p {
  font-size: 1.05rem;
  color: var(--gray-subtle);
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   HEADER & NAVIGATION (SINGLE HORIZONTAL LINE, NO WRAPPING)
══════════════════════════════════════════ */
.exf-navbar {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229,231,235,0.8);
  position: sticky;
  top: 0;
  z-index: 9999;
}
.exf-navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.navbar-logo img { height: 42px; width: auto; }

.navbar-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0; padding: 0;
  gap: 4px;
}
.navbar-menu > li { position: relative; }
.navbar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-text);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap !important;
  text-transform: none !important;
}
.navbar-menu > li > a:hover,
.navbar-menu > li.active > a { color: var(--secondary); background: rgba(15,98,254,0.06); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-line);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
}
.navbar-menu > li:hover > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 0.85rem; font-weight: 600;
  color: var(--dark-text); border-radius: 8px;
  white-space: nowrap !important;
}
.nav-dropdown li a:hover { background: rgba(15,98,254,0.06); color: var(--secondary); }
.nav-dropdown li a i { width: 18px; color: var(--secondary); }

.btn-header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--secondary); color: var(--white) !important;
  font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 600;
  padding: 10px 22px; border-radius: 100px;
  box-shadow: 0 4px 16px rgba(15,98,254,0.3); transition: var(--transition);
  white-space: nowrap !important;
}
.btn-header-cta:hover { background: #0043CE; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,98,254,0.45); }

/* Hamburger Button */
.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none; background: none;
}
.navbar-hamburger span { display: block; width: 24px; height: 2px; background: var(--dark-text); border-radius: 2px; }

/* ── Mobile Nav Overlay (Hidden by Default) ── */
.mobile-nav {
  display: none !important;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 99999;
  overflow-y: auto;
  padding: 24px;
}
.mobile-nav.open {
  display: block !important;
}
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-line);
}
.mobile-nav-close { font-size: 1.8rem; color: var(--dark-text); cursor: pointer; border: none; background: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav ul li a { display: block; padding: 12px 0; font-size: 1rem; font-weight: 700; color: var(--dark-text); border-bottom: 1px solid var(--border-line); }
.mobile-nav ul li a:hover { color: var(--secondary); }

/* ══════════════════════════════════════════
   LIVE SERVICE CARDS WITH PERFECT AI IMAGE FITTING & HOVER (0.8s)
══════════════════════════════════════════ */
.live-service-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 30px 24px;
  height: 100%;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.live-service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #007BFF;
  transition: height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}
.live-service-card:hover::before {
  height: 100%;
}
.live-service-card:hover {
  border-color: #007BFF;
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0,123,255,0.35);
}
.live-service-card h4,
.live-service-card p {
  transition: color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.live-service-card:hover h4,
.live-service-card:hover p {
  color: #FFFFFF !important;
}

.live-service-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #F3F4F6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.live-service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.live-service-card:hover .live-service-img-wrap img {
  transform: scale(1.06);
}

/* ══════════════════════════════════════════
   EXACT LIVE TEAM MEMBER CARDS
══════════════════════════════════════════ */
.live-team-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  text-align: center;
  position: relative;
  height: 100%;
  transition: transform 0.4s ease;
}
.live-team-card:hover {
  transform: translateY(-6px);
}
.live-team-header-bar {
  background: #007BFF;
  height: 90px;
  width: 100%;
  position: relative;
}
.live-team-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  margin: -48px auto 16px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-team-body {
  padding: 12px 24px 28px;
}

/* Responsive Rules */
@media (max-width: 991px) {
  .navbar-menu { display: none; }
  .navbar-hamburger { display: flex; }
}
@media (max-width: 767px) {
  .section-padding-lg { padding: 60px 0; }
  .topbar-wrap { display: none; }
}
