/* Shared pinned navbar — matches homepage */
html { scroll-behavior: smooth; }

/* Hide Google Translate's native dropdown — custom Language menu drives it */
#google_translate_element,
#google_translate_element .skiptranslate,
#google_translate_element .goog-te-gadget,
.goog-te-combo {
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-ORHb-OEPmef {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
@keyframes presevi-shimmer {
  0% { background-position: -400% center; }
  100% { background-position: 400% center; }
}
.header-top-bar {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  overflow: visible;
  max-height: 44px;
  position: relative;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.header-top-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #2563eb 30%, #60a5fa 50%, #2563eb 70%, transparent 100%);
  background-size: 200% 100%;
  animation: presevi-shimmer 3s linear infinite;
}
.header-top-bar.hidden-bar {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}
.topbar-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.topbar-info li a {
  color: #374151;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topbar-info li a i { font-size: 13px; color: #2563eb; }
.topbar-info li a:hover { color: #2563eb; }
.topbar-divider { width: 1px; height: 14px; background: #bfdbfe; }
.topbar-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.topbar-social-badge { position: relative; }
.social-badge-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #6b7280 !important;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.social-badge-btn:hover {
  color: #2563eb !important;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.social-badge-tooltip {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 9999;
}
.social-badge-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 4px 5px 4px;
  border-style: solid;
  border-color: transparent transparent #2563eb transparent;
}
.topbar-social-badge:hover .social-badge-tooltip { opacity: 1; }
.main-navbar {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%, #eff6ff 100%);
  border-bottom: 1px solid #dbeafe;
  box-shadow: 0 2px 16px rgba(5,150,105,0.07);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.25s, background 0.25s;
}
.main-navbar.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid #bfdbfe;
  box-shadow: 0 4px 24px rgba(5,150,105,0.1);
}
.navbar-inner {
  width: 90%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  gap: 12px;
  position: relative;
}
@media (min-width: 1280px) {
  .navbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }
  .navbar-brand {
    justify-self: start;
    grid-column: 1;
  }
  .navbar-center-links {
    grid-column: 2;
    justify-self: center;
    display: flex !important;
    align-items: center;
    gap: 1.25rem !important;
    flex-wrap: nowrap;
  }
  .navbar-end-actions {
    grid-column: 3;
    justify-self: end;
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
  }
  .navbar-inner > .mobile-menu-btn,
  .navbar-inner > .navbar-mobile-actions {
    display: none !important;
  }
}
.main-navbar nav.navbar-center-links,
.main-navbar nav.hidden.xl\:flex,
.main-navbar nav.hidden.lg\:flex {
  gap: 1rem;
}
@media (min-width: 1280px) {
  .main-navbar nav.navbar-center-links,
  .main-navbar nav.hidden.xl\:flex,
  .main-navbar nav.hidden.lg\:flex {
    gap: 1.25rem;
  }
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  padding: 8px 10px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  border-radius: 10px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  height: 2px;
  width: 0;
  max-width: calc(100% - 20px);
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-link:hover { color: #2563eb; }
.nav-link:hover::after,
.nav-link:focus-visible::after { width: calc(100% - 20px); }
.nav-link.nav-current { color: #2563eb; font-weight: 600; }
.nav-link.nav-current::after,
.nav-link.nav-current:hover::after,
.nav-link.nav-current:focus::after { width: calc(100% - 20px); }
.brand-name {
  font-size: 1.42rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.08em;
  line-height: 1.1;
  white-space: nowrap;
  display: block;
}
.brand-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: #2563eb;
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
  display: block;
}
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}
.navbar-logo,
img.navbar-logo {
  height: 3.5rem !important;
  width: auto !important;
  object-fit: contain !important;
}
@media (min-width: 768px) {
  .navbar-logo,
  img.navbar-logo { height: 3.75rem !important; }
}
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5px 12px;
  border-radius: 8px;
  gap: 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  background: transparent;
  border: 1.5px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn .lang-row { display: flex; align-items: center; gap: 6px; }
.lang-btn:hover { border-color: #2563eb; color: #2563eb; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 210px;
  padding: 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.lang-dropdown.open { opacity: 1; visibility: visible; }
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-dropdown a:hover { background: #eff6ff; color: #2563eb; }
.lang-dropdown a.active { color: #2563eb; font-weight: 700; }
.lang-dropdown .lang-divider { height: 1px; background: #f3f4f6; margin: 4px 0; }
.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}
.lang-search-wrap i { color: #9ca3af; font-size: 14px; flex-shrink: 0; }
.lang-search-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.8rem;
  color: #374151;
  background: transparent;
}
.lang-list { overflow: visible; max-height: none; padding: 6px 0; }
.lang-menu-title {
  padding: 6px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.lang-dropdown a.lang-hidden { display: none; }
.lang-submenu { position: relative; }
.lang-submenu.lang-hidden { display: none !important; }
.lang-submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.lang-submenu-label { display: flex; align-items: center; gap: 8px; }
.lang-submenu-caret {
  font-size: 1.15rem;
  line-height: 1;
  color: #6b7280;
  transition: color 0.15s, transform 0.15s;
}
.lang-submenu-trigger:hover,
.lang-submenu.open .lang-submenu-trigger,
.lang-submenu:hover .lang-submenu-trigger { background: #eff6ff; color: #2563eb; }
.lang-submenu.open .lang-submenu-caret,
.lang-submenu:hover .lang-submenu-caret { color: #2563eb; transform: translateX(2px); }
.lang-submenu-panel {
  display: none;
  position: absolute;
  top: -6px;
  right: calc(100% + 6px);
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  padding: 6px 0;
  z-index: 120;
}
.lang-submenu.open > .lang-submenu-panel,
.lang-submenu:hover > .lang-submenu-panel { display: block; }
.lang-submenu-panel .lang-submenu-trigger { font-weight: 600; }

/* Others panel must not clip the India side flyout */
#othersLangPanel {
  overflow: visible;
  max-height: none;
}

/* Nested India langs: side flyout to the left */
.lang-submenu-nested > .lang-submenu-panel {
  position: absolute;
  top: -6px;
  right: calc(100% + 6px);
  left: auto;
  min-width: 190px;
  width: auto;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  padding: 6px 0;
  z-index: 140;
}
.lang-submenu-nested.open > .lang-submenu-panel,
.lang-submenu-nested:hover > .lang-submenu-panel { display: block; }
.lang-submenu-nested.open .lang-submenu-caret,
.lang-submenu-nested:hover .lang-submenu-caret {
  transform: translateX(2px);
  color: #2563eb;
}
.lang-submenu-nested > .lang-submenu-panel a {
  padding-left: 16px;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .lang-submenu-panel,
  .lang-submenu-nested > .lang-submenu-panel,
  #othersLangPanel {
    right: auto;
    left: 0;
    top: 100%;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #f9fafb;
    position: static;
    max-height: 220px;
    overflow-y: auto;
  }
}
.main-navbar a.contact-current {
  box-shadow: 0 0 0 3px rgba(37,99,235,.35) !important;
  background: #1d4ed8 !important;
}
body.mobile-menu-open { overflow: hidden; }

/* ── Shared responsive header + mobile drawer ── */
@media (max-width: 1279px) {
  .navbar-inner {
    width: 100% !important;
    max-width: none !important;
    height: 68px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    gap: 8px !important;
  }
  .brand-name { font-size: 1.25rem !important; }
  .brand-sub { font-size: 0.75rem !important; }
  .navbar-logo, img.navbar-logo { height: 3.1rem !important; }
  .navbar-brand { gap: 9px !important; }
  .navbar-mobile-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    position: relative;
    z-index: 5;
  }
  .mobile-menu-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }
  .site-search-toggle {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 40px !important;
    padding: 0 14px !important;
    gap: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
    border: 1.5px solid #bfdbfe !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08) !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
  }
  .site-search-toggle:hover,
  .site-search-toggle[aria-expanded="true"] {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
  }
  .site-search-toggle i {
    font-size: 1rem !important;
    line-height: 1 !important;
  }
  .site-search-toggle .site-search-toggle-label {
    display: inline !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .navbar-center-links,
  .navbar-end-actions {
    display: none !important;
  }
}
@media (max-width: 767px) {
  .header-top-bar { max-height: 40px; }
  .topbar-inner {
    padding: 0 0.85rem;
    height: 40px;
    overflow: hidden;
  }
  .topbar-info {
    gap: 0.65rem;
    min-width: 0;
    overflow: hidden;
  }
  .topbar-info li a {
    font-size: 11.5px;
    white-space: nowrap;
  }
  .topbar-divider { display: none; }
  .topbar-hide-sm { display: none !important; }
  .navbar-inner {
    width: 100% !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}
@media (max-width: 480px) {
  .navbar-inner {
    height: 62px !important;
    gap: 6px !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .brand-name { font-size: 1.12rem !important; }
  .brand-sub { font-size: 0.66rem !important; }
  .navbar-logo, img.navbar-logo { height: 2.65rem !important; }
  .navbar-brand { gap: 7px !important; }
  .navbar-mobile-actions { gap: 6px !important; }
  .mobile-menu-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
  }
  .site-search-toggle {
    height: 38px !important;
    padding: 0 12px !important;
    gap: 5px !important;
  }
  .site-search-toggle .site-search-toggle-label {
    font-size: 0.75rem !important;
  }
}
@media (max-width: 360px) {
  .brand-name { font-size: 1rem !important; }
  .brand-sub { font-size: 0.6rem !important; }
  .navbar-logo, img.navbar-logo { height: 2.35rem !important; }
}
@media (min-width: 1280px) {
  .navbar-inner {
    width: 90% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Mobile drawer — full on phones, panel on tablets */
#mobileMenuOverlay {
  z-index: 60;
}
#mobileMenuNav {
  display: flex;
  flex-direction: column;
  width: min(100%, 22rem);
  max-width: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (max-width: 640px) {
  #mobileMenuNav {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
}
@media (min-width: 641px) and (max-width: 1279px) {
  #mobileMenuNav {
    width: min(100%, 22rem) !important;
  }
}
#mobileMenuNav .mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  min-height: 60px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
}
#mobileMenuNav .mobile-menu-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px 12px 16px;
}
#mobileMenuNav .mobile-menu-footer {
  flex-shrink: 0;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
#mobileMenuNav .mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#mobileMenuNav .mobile-nav-link,
#mobileMenuNav .mobile-accordion-btn {
  min-height: 44px;
  font-weight: 500;
  line-height: 1.35;
}

/* Hero — full-width CTAs + readable type on small screens */
@media (max-width: 640px) {
  .hero-slide .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hero-slide h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }
  .hero-slide .flex.gap-8 {
    gap: 1.25rem !important;
  }
  .hero-slide .flex.flex-wrap.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 20rem;
  }
  .hero-slide .flex.flex-wrap.gap-3 > a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* Floating contact FAB — fixed on every page via main.js */
@keyframes contact-ping-ring {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.85); opacity: 0; }
  100% { transform: scale(1.85); opacity: 0; }
}

#preseviContactFab {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 50;
}

@media (min-width: 768px) {
  #preseviContactFab {
    right: 2rem;
    bottom: 2rem;
  }
}

#preseviContactFab #contactMenu {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#preseviContactFab #contactMenu.opacity-0 {
  opacity: 0;
}

#preseviContactFab #contactMenu.opacity-100 {
  opacity: 1;
}

#preseviContactFab #contactMenu.translate-y-4 {
  transform: translateY(1rem);
}

#preseviContactFab #contactMenu.translate-y-0 {
  transform: translateY(0);
}

#preseviContactFab #contactMenu.pointer-events-none {
  pointer-events: none;
}

#preseviContactFab #contactMenu.pointer-events-auto {
  pointer-events: auto;
}

#preseviContactFab #contactMenu a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  text-decoration: none;
}

#preseviContactFab .contact-fab-label {
  display: none;
  background: #fff;
  color: #1f2937;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  #preseviContactFab .contact-fab-label {
    display: inline-block;
  }
  #preseviContactFab #contactMenu a:hover .contact-fab-label {
    opacity: 1;
  }
}

#preseviContactFab .contact-fab-btn {
  width: 2.85rem;
  height: 2.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

#preseviContactFab .contact-fab-btn i {
  font-size: 1.2rem;
  line-height: 1;
}

@media (min-width: 768px) {
  #preseviContactFab .contact-fab-btn {
    width: 3.15rem;
    height: 3.15rem;
  }
  #preseviContactFab .contact-fab-btn i {
    font-size: 1.35rem;
  }
}

#preseviContactFab .contact-fab-btn:hover {
  transform: scale(1.08);
}

#preseviContactFab .contact-fab-wa { background: #22c55e; }
#preseviContactFab .contact-fab-wa:hover { background: #16a34a; }
#preseviContactFab .contact-fab-call { background: #3b82f6; }
#preseviContactFab .contact-fab-call:hover { background: #2563eb; }
#preseviContactFab .contact-fab-mail { background: #ef4444; }
#preseviContactFab .contact-fab-mail:hover { background: #dc2626; }

#preseviContactFab #contactToggle {
  position: relative;
  overflow: visible;
  margin-left: auto;
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 9999px;
  color: #fff;
  background: linear-gradient(to right, #1d4ed8, #3b82f6);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
  transition: transform 0.3s ease;
}

#preseviContactFab #contactToggle i {
  font-size: 1.45rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  #preseviContactFab #contactToggle {
    width: 3.6rem;
    height: 3.6rem;
  }
  #preseviContactFab #contactToggle i {
    font-size: 1.6rem;
  }
}

#preseviContactFab #contactToggle:hover {
  transform: scale(1.08);
}

#preseviContactFab #contactToggle.open {
  transform: rotate(45deg) scale(1.08);
}

#preseviContactFab .contact-toggle-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.42);
  animation: contact-ping-ring 1.5s ease-out infinite;
  pointer-events: none;
}
