/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --black-color: hsl(0, 0%, 100%);
  --black-color-light: hsl(0, 0%, 100%);
  --black-color-lighten: hsl(0, 0%, 100%);
  --white-color: #000000;
  --body-color: hsl(0, 0%, 100%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
}

ul {
  list-style: none;
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--black-color);
  box-shadow: 0 2px 16px hsla(220, 32%, 8%, .3);
  z-index: var(--z-fixed);
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
}
.nav__logo1{
  color: var(--white-color);
}
.nav__logo1 {
  display: inline-flex;
  align-items: center;
  column-gap: .40rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo1 i {
  font-weight: initial;
  font-size: 1.25rem;
}
.nav__logo1 img {
    width: 150px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    padding-left: 20px;
    margin-left: 20px;
}
.nav__logo, 
.nav__burger, 
.nav__close {
  color: var(--white-color);
}

.nav__data {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 20px;
  
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .35rem;
  font-weight: var(--font-semi-bold);
  /* Color highlighting when pressed on mobile devices */
  /*-webkit-tap-highlight-color: transparent;*/
}

.nav__logo i {
  font-weight: initial;
  font-size: 1.25rem;
}

.nav__toggle {
  position: relative;
  width: 32px;
  height: 32px;
}

.nav__burger, 
.nav__close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 1.25rem;
  cursor: pointer;
  transition: opacity .1s, transform .4s;
}

.nav__close {
  opacity: 0;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1118px) {
  .nav__menu {
    position: absolute;
    left: 0;
    top: 2.5rem;
    width: 100%;
    height: calc(100vh - 3.5rem);
    overflow: auto;
    pointer-events: none;
    opacity: 0;
    transition: top .4s, opacity .3s;
  }
  .nav__menu::-webkit-scrollbar {
    width: 0;
  }
  .nav__list {
    background-color: var(--black-color);
    padding-top: 1rem;
  }
}

.nav__link {
  color: var(--white-color);
  background-color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color .3s;
}

.nav__link:hover {
  background-color: var(--black-color-light);
}


/* Show menu */
.show-menu {
  opacity: 1;
  top: 3.5rem;
  pointer-events: initial;
}

/* Show icon */
.show-icon .nav__burger {
  opacity: 0;
  transform: rotate(90deg);
}
.show-icon .nav__close {
  opacity: 1;
  transform: rotate(90deg);
}

/*=============== DROPDOWN ===============*/
.dropdown__item {
  cursor: pointer;
  max-width: 1000px;
  background-color: white;
  align-items: center;
  
}

.dropdown__arrow {
  font-size: 1.25rem;
  font-weight: initial;
  transition: transform .4s;
}

.dropdown__link, 
.dropdown__sublink {
  padding:12px;
  color: var(--white-color);
  background-color: var(--black-color-light);
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-semi-bold);
  transition: background-color .3s;
}

.dropdown__link i, 
.dropdown__sublink i {
  font-size: 1.25rem;
  font-weight: initial;
}

.dropdown__link:hover, 
.dropdown__sublink:hover {
  background-color: var(--black-color);
}

.dropdown__menu, 
.dropdown__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-out;
}

/* Show dropdown menu & submenu */
.dropdown__item:hover .dropdown__menu, 
.dropdown__subitem:hover > .dropdown__submenu {
  max-height: 1000px;
  transition: max-height .4s ease-in;
}

/* Rotate dropdown icon */
.dropdown__item:hover .dropdown__arrow {
  transform: rotate(180deg);
}

/*=============== DROPDOWN SUBMENU ===============*/
.dropdown__add {
  margin-left: auto;
}

.dropdown__sublink {
  background-color: var(--black-color-lighten);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .nav__link {
    padding-inline: 1rem;
  }

}

/* For large devices */
@media screen and (min-width: 1118px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    display: flex;
    justify-content: space-between;
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    height: 100%;
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    height: 100%;
    padding: 0;
    justify-content: initial;
    column-gap: .25rem;
  }
  .nav__link:hover {
    background-color: transparent;
  }

  .dropdown__item, 
  .dropdown__subitem {
    position: relative;
  }

  .dropdown__menu, 
  .dropdown__submenu {
    max-height: initial;
    overflow: initial;
    position: absolute;
    left: 0;
    top: 6rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, top .3s;
  }

  .dropdown__link, 
  .dropdown__sublink {
    padding-inline: 1rem 3.5rem;
  }

  .dropdown__subitem .dropdown__link {
    padding-inline: 1rem;
  }

  .dropdown__submenu {
    position: absolute;
    left: 100%;
    top: .5rem;
  }

  /* Show dropdown menu */
  .dropdown__item:hover .dropdown__menu {
    opacity: 1;
    top: 5.5rem;
    pointer-events: initial;
    transition: top .3s;
  }

  /* Show dropdown submenu */
  .dropdown__subitem:hover > .dropdown__submenu {
    opacity: 1;
    top: 0;
    pointer-events: initial;
    transition: top .3s;
  }
}
.nav__logo img {
    width: 150px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Button Styling */
.book-demo-btn {
    display: inline-flex;
    align-items: center;
    margin: 20px;
    padding: 10px 10px;
    background-color: #18191ae2; /* Dark Blue background */
    color: white;

    font-size: 16px;
    font-weight: 500;
    border-radius: 15px; /* Round the corners */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button Hover Effect */
.book-demo-btn:hover {
    background-color: #002244; /* Slightly darker blue on hover */
}

/* Arrow Styling */
.book-demo-btn i {
    margin-left: 10px; /* Space between text and arrow */
    font-size: 20px; 

}

/* Optional: If you want to add custom icon from Bootstrap */
.bi-arrow-right-circle {
    font-size: 18px;
}
/* Set max-width and center the nav container */
.nav.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mega Menu Wrapper */
.dropdown__menu.solutions-menu {
   /* display: none; */
    position: absolute;
    top: 100%;
    /* left: 50%; */
    /* right: 50%; */
    transform: translateX(-10%);
    width: 70vw; /* Force full width */
    max-width: 1000px; /* Remove cap */
    padding: 2rem 3vw; /* Add horizontal breathing room */
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0px; /* remove radius for clean edge */
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}
.solutions-dropdown {
    position: relative;
    z-index: 2000;
}

/* Show menu on toggle */
.dropdown__item.active .solutions-menu {
    display: flex !important;
}

/* Each column */
.solution-column {
    flex: 1;
    min-width: 180px;
}

/* Column headings */
.solution-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
}

/* Links */
.solution-column .dropdown__link {
    display: block;
    padding: 6px 0;
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.solution-feature-box {
    flex: 1.2;
    background-color: #000;
    color: #fff;
    border-radius: 20px;
    padding: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-feature-box a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
    margin-top: 1rem;
    display: inline-block;
}
/***** RESPONSIVE ENHANCEMENTS — PASTE AFTER YOUR EXISTING CSS *****/

/* iOS safe area & subtle stacking */
.header {
  padding-top: env(safe-area-inset-top);
}

/* Improve focus for keyboard users */
.nav__link:focus,
.dropdown__link:focus,
.dropdown__sublink:focus,
.book-demo-btn:focus {
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}

/* Touch devices: rely on .active class, not hover */
@media (hover: none) {
  .dropdown__item:hover .dropdown__menu,
  .dropdown__subitem:hover > .dropdown__submenu,
  .dropdown__item:hover .dropdown__arrow {
    /* neutralize hover-only behavior on touch */
    opacity: initial;
    pointer-events: none;
    transform: none;
  }

  .dropdown__item.active .dropdown__menu,
  .dropdown__item.active .solutions-menu {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* ---------- XL & DESKTOP POLISH ---------- */
@media screen and (min-width: 1280px) {
  .nav.container {
    max-width: 1280px;
    padding: 0 1.25rem;
  }
  /* Mega menu alignment on wide screens */
  .solutions-dropdown .solutions-menu {
    left: 50%;
    transform: translateX(-50%);
    width: min(1000px, 85vw);
  }
}

@media screen and (min-width: 1536px) {
  .nav.container {
    max-width: 1400px;
  }
  .solutions-dropdown .solutions-menu {
    width: 1000px;
  }
}

/* ---------- TABLET LANDSCAPE (<= 1118px already has base rules) ---------- */
@media screen and (max-width: 1118px) {
  /* Make the mobile menu a fixed, scrollable drawer under the header */
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--black-color);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
  }

  /* When menu is shown */
  .show-menu {
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep container spacing inside the drawer */
  .nav__list {
    padding: .5rem 0 2rem;
  }

  /* Scale down logos a bit */
  .nav__logo img,
  .nav__logo1 img {
    width: 130px;
  }

  /* Mega menu stacks vertically inside the drawer */
  .dropdown__menu,
  .solutions-menu {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border-radius: 0;
    padding: .25rem 1rem;
    display: none; /* only visible when .active is applied */
  }

  .dropdown__item.active .dropdown__menu,
  .dropdown__item.active .solutions-menu {
    display: block !important;
    max-height: none;
  }

  .solutions-menu {
    display: none;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem 1rem 1rem;
    background: var(--black-color);
  }

  .solution-column {
    min-width: auto;
    flex: 1 1 auto;
    margin-bottom: .5rem;
  }

  .solution-column h4 {
    color: #cfcfcf;
    margin: .75rem 0 .25rem;
  }

  .solution-column .dropdown__link {
    color: var(--white-color);
    padding: .5rem 0;
  }

  /* Larger tap targets inside the drawer */
  .nav__link {
    padding: 1rem 1.25rem;
  }

  /* Demo button spans width on mobile drawer */
  .book-demo-btn {
    display: block;
    width: calc(100% - 2rem);
    margin: 1rem auto 2rem;
    justify-content: center;
  }
}

/* ---------- TABLET PORTRAIT ---------- */
@media screen and (max-width: 992px) {
  .nav.container {
    padding: 0 .75rem;
  }
  .nav__logo img,
  .nav__logo1 img {
    width: 120px;
  }
  .dropdown__link,
  .dropdown__sublink {
    padding: .75rem 0;
  }
}

/* ---------- LARGE PHONES ---------- */
@media screen and (max-width: 768px) {
  .nav.container {
    padding: 0 .75rem;
  }
  .nav__logo img,
  .nav__logo1 img {
    width: 112px;
  }
  .nav__toggle {
    width: 36px;
    height: 36px;
  }
  .nav__burger,
  .nav__close {
    font-size: 1.35rem;
  }
}

/* ---------- MEDIUM PHONES ---------- */
@media screen and (max-width: 576px) {
  .nav__logo img,
  .nav__logo1 img {
    width: 105px;
  }
  .nav__link {
    padding: .9rem 1rem;
  }
  .solutions-menu {
    padding: .5rem 1rem 1rem;
  }
}

/* ---------- SMALL PHONES ---------- */
@media screen and (max-width: 420px) {
  .nav__logo img,
  .nav__logo1 img {
    width: 96px;
  }
  .nav__link {
    padding: .8rem .9rem;
  }
  .book-demo-btn {
    font-size: 15px;
    padding: 10px 12px;
    border-radius: 12px;
  }
}

/* ---------- VERY SMALL PHONES ---------- */
@media screen and (max-width: 360px) {
  .nav__logo img,
  .nav__logo1 img {
    width: 90px;
  }
  .nav__link {
    padding: .7rem .8rem;
  }
  .solution-column h4 {
    font-size: 13px;
  }
}

/* ---------- DESKTOP HOVER MENUS STABILITY ---------- */
@media screen and (min-width: 1118px) {
  /* Keep your existing desktop dropdown behavior, just refine position & visibility */
  .dropdown__menu,
  .dropdown__submenu {
    will-change: opacity, top;
  }

  /* Ensure Solutions mega menu looks crisp on desktop */
  .solutions-dropdown .solutions-menu {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    color: #000;
  }

  .solutions-dropdown .solution-column .dropdown__link {
    color: #000;
  }
}
/* ===== FIX: Mobile/Tablet dropdown behavior (paste AFTER your CSS) ===== */
@media screen and (max-width: 1118px) {
  /* Make the drawer solid and scrollable */
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--black-color); /* uses your var (white in your map) */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Neutralize ALL hover-driven opens on small screens */
  .dropdown__item:hover .dropdown__menu,
  .dropdown__subitem:hover > .dropdown__submenu {
    max-height: 0 !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  /* Force in-drawer layout for all submenus */
  .dropdown__menu,
  .dropdown__submenu,
  .solutions-menu {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: none;                 /* hidden until .active */
    max-height: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    background: var(--black-color); /* match drawer background */
    padding: .5rem 1rem !important;
  }

  /* Show when toggled via JS (.active on the parent item) */
  .dropdown__item.active > .dropdown__menu,
  .dropdown__item.active > .solutions-menu,
  .dropdown__subitem.active > .dropdown__submenu {
    display: block !important;
  }

  /* Spacing & readable tap targets */
  .nav__link { padding: 1rem 1.25rem; }
  .solution-column { min-width: 0; margin-bottom: .5rem; }
  .solution-column h4 { color: #8a8a8a; margin: .5rem 0 .25rem; }
  .solution-column .dropdown__link { color: var(--white-color); padding: .5rem 0; }
}
/* --- Mobile dropdown fix: disable hover-open, use .active instead --- */
@media screen and (max-width: 1118px) {
  /* Neutralize hover behavior that creates the tiny floating panel */
  .dropdown__item:hover .dropdown__menu,
  .dropdown__subitem:hover > .dropdown__submenu {
    max-height: 0 !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  /* Force in-drawer layout */
  .dropdown__menu,
  .solutions-menu,
  .dropdown__submenu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    display: none;                /* hidden until parent is .active */
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Show when toggled by JS */
  .dropdown__item.active > .dropdown__menu,
  .dropdown__item.active > .solutions-menu,
  .dropdown__subitem.active > .dropdown__submenu {
    display: block !important;
  }
}

/* --- Mobile accordion: hide all dropdowns by default, show only when .active --- */
@media screen and (max-width: 1118px) {
  /* Kill hover-open on touch */
  .dropdown__item:hover .dropdown__menu,
  .dropdown__subitem:hover > .dropdown__submenu {
    max-height: 0 !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }

  /* Force in-drawer layout + collapsed by default */
  .dropdown__menu,
  .solutions-menu,
  .dropdown__submenu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    display: none !important;      /* collapsed */
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Expand ONLY the tapped parent */
  .dropdown__item.active > .dropdown__menu,
  .dropdown__item.active > .solutions-menu,
  .dropdown__subitem.active > .dropdown__submenu {
    display: block !important;
  }

  /* Arrow rotates when open */
  .dropdown__item.active > .nav__link .dropdown__arrow {
    transform: rotate(180deg);
    transition: transform .25s ease;
  }
}

/* === MOBILE DROPDOWN FIX + REMOVE RIGHT GUTTER === */
@media screen and (max-width: 1118px) {
  /* Remove container side margins so the drawer is full width */
  .container,
  .nav.container {
    margin-inline: 0 !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Make the drawer full-bleed, scrollable */
  .nav__menu {
    position: fixed !important;
    top: var(--header-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--header-height)) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
    background: var(--black-color); /* your palette = white */
  }

  /* Kill hover-open on touch */
  .dropdown__item:hover .dropdown__menu,
  .dropdown__subitem:hover > .dropdown__submenu {
    max-height: 0 !important;
    pointer-events: none !important;
  }

  /* In-drawer layout; keep COLLAPSED by default */
  .dropdown__menu,
  .solutions-menu,
  .dropdown__submenu {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    display: none !important;     /* collapsed */
    /* >>> Fix blank submenu: remove old constraints <<< */
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: var(--black-color); /* white in your map */
    padding: .5rem 1rem !important;
  }

  /* Show ONLY the tapped parent */
  .dropdown__item.active > .dropdown__menu,
  .dropdown__item.active > .solutions-menu,
  .dropdown__subitem.active > .dropdown__submenu {
    display: block !important;
  }

  /* Rotate arrow when open */
  .dropdown__item.active > .nav__link .dropdown__arrow {
    transform: rotate(180deg);
    transition: transform .25s ease;
  }

  /* Neater spacing for links in the drawer */
  .nav__link { padding: 1rem 1.25rem; }
  .dropdown__link, .dropdown__sublink { padding: .6rem 0; }
}
/* === FIX: mobile drawer flush to edges, no right gap === */
@media (max-width: 991px){
  html, body { overflow-x: hidden; }

  /* Make the slide-down menu span the full viewport width */
  .nav__menu{
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  /* Ensure list/content doesn’t create side gutters */
  .nav__list{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .nav__link{
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  /* Submenus (including Solutions) align with the drawer edges */
  .dropdown__menu,
  .dropdown__menu.solutions-menu{
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
    border-radius: 0 !important;
  }
}
