/* Reset & base styles */
:root {
  --background-color: #2f358D;
  --text-color: #4986c6;
  --light-color: #ffffff;

}

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

body {
  font-family: Arial, sans-serif;
  color: #2f358D;
}

/* Navbar Container */
.custom-navbar {
  position: relative;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background-color: #e8eaf6;
  border-radius: 50px;
  z-index: 999;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  padding: 10px 20px;
}

/* Navbar Inner */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
  /* width: 100%; */
  /* background-color: #fff; */

}

/* Logo */
.logo a img {
  width: 250px;
  height: 50%;
  border-radius: 25px;
  padding: 5px 10px 5px 10px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;

}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--background-color);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

hamburger-icon span:nth-child(1) {
  transform-origin: top left;
}


.hamburger-icon span:nth-child(3) {
  transform-origin: bottom left;
}

.menu-toggle:checked+.hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle:checked+.hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked+.hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop Menu */
.menu {

  display: flex;
  flex-wrap: nowrap;
  gap: 30px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;

}

.menu li {
  position: relative;
}

.menu li a {
  color: var(--background-color);
  font-weight: 500;
  text-decoration: none;
  padding: 10px;
  white-space: nowrap;
  display: block;
}

/* Dropdown Desktop */
.menu li.dropdown:hover>.dropdown-content {
  display: grid;
}

.menu li .dropdown-content,
.menu li .dropdown-content.plain {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f1f6fe;
  border-radius: 12px;
  padding: 16px;
  min-width: 520px;
  max-height: 350px;
  overflow-y: auto;
  gap: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  grid-template-columns: repeat(2, 1fr);
  z-index: 1000;
}

.menu li .dropdown-content a {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  color: var(--background-color);
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-wrap:wrap;
}

.menu li .dropdown-content a:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu li .dropdown-content img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  margin-bottom: 8px;
  object-fit: cover;
}

.menu li .dropdown-content span{
  font-size:15px !important;
  font-weight: bold !important;
}
/* Contact button desktop */
.contact-btn {
  display: flex;
  align-items: center;
  height: 100%;
}

.contact-btn .btn {
  display: inline-block;
  margin: 0;
  padding: 8px 16px;
  font-size: 15px !important;
  font-weight: bold !important;
  font-weight: 500;
  /* Avoid changing on hover */
  border-radius: 25px;
  white-space: nowrap;
  box-sizing: border-box;
  /* fixes sizing */
  background-color: #e8eaf6;
  color: var(--background-color);
  border: 2px solid var(--background-color);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn .btn:hover,
.contact-btn .btn:focus {
  background-color: var(--background-color) !important;
  color: var(--light-color) !important;
  box-shadow: 0 2px 8px rgba(40, 80, 181, 0.15);
  outline: none;
}

/* Responsive */

@media (max-width: 991px) {

  .hamburger {
    display: flex !important;
  }

  /* Hide desktop menus and contact button */
  .desktop-only {
    display: none !important;
  }
}

/* Off-canvas Menu */
.off-canvas-menu {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100vh;
  background-color: #e8eaf6;
  color: var(--background-color);
  overflow-y: auto;
  z-index: 2000;
  transition: left 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.off-canvas-menu.open {
  left: 0;
}

.off-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #e8eaf6;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.2); */
}

.off-canvas-header .logo img {

  width: 230px;
  height: 50%;
  border-radius: 25px;
  padding: 5px 10px 5px 10px;
}

.close-btn {
  font-size: 36px;
  color: var(--background-color);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  background-color: transparent !important;

}

/* .close-btn:hover {
  color: var(--light-color) !important;
} */

.off-canvas-menu-list {
  list-style: none;
  padding: 0 20px 40px;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.off-canvas-menu-list>li {
  border-bottom: 1px solid var(--background-color);
}

.off-canvas-menu-list>li>a,
.off-canvas-menu-list>li>button.dropdown-toggle {
  display: block;
  color: var(--background-color);
  font-weight: 600;
  font-size: 18px;
  padding: 15px 0;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.off-canvas-menu-list>li>a:hover,
.off-canvas-menu-list>li>button.dropdown-toggle:hover {
  color: var(--text-color);
}

/* Dropdown arrow */
.arrow {
  margin-left: 8px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.dropdown.open>button.dropdown-toggle .arrow {
  transform: rotate(-180deg);
}

.off-canvas-menu-list li .dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 16px;
  margin-bottom: 10px;
  gap: 10px;
  font-size: 16px;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown.open>.dropdown-content {
  display: flex;
}

.off-canvas-menu-list li .dropdown-content a {
  background: var(--light-color);
  padding: 12px 15px;
  border-radius: 8px;
  color: var(--background-color);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s ease;
  display: block;
  width: 100%;
}

.off-canvas-menu-list li .dropdown-content a:hover {
  background: var(--text-color);
  color: var(--light-color)
}

/* Hide product images on tablet & smaller off-canvas */
.off-canvas-menu-list li .dropdown-content img,
.off-canvas-menu-list li .dropdown-content.plain img {
  display: none !important;
}

/* Contact button inside off-canvas */
.contact-btn.off-canvas-contact {
  border: none;
  padding: 20px 0 0 0;
}

.contact-btn.off-canvas-contact .btn {
  width: 100%;

  background-color: #e8eaf6;
  color: var(--background-color);
  border: 2px solid var(--background-color);

  border-radius: 30px;
  padding: 14px 0;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  display: block;
  text-decoration: none;
}

/* Smaller Devices adjustments */
@media (max-width: 600px) {

  .off-canvas-menu-list>li>a,
  .off-canvas-menu-list>li>button.dropdown-toggle {
    font-size: 16px;
    padding: 12px 0;
  }

  .off-canvas-header .logo img {
    width: 220px;
    height: 50%;
    border-radius: 25px;
    padding: 0 15px;

  }

  .contact-btn.off-canvas-contact .btn {
    font-size: 16px;
    padding: 12px 0;
  }
}

