
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

/* Global styles */
:root {
  --deep-blue: #1e3a8a;
  --black: #111;
  --white: #fff;
  --mobile-bg: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}



/* Button container */
    .phone-button {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 28px;
      font-size: 16px;
      font-weight: 600;
      color: #1e3a8a;
      text-decoration: none;
      /* Keep border but extend fill behind it */
      border: 2px solid #1e3a8a;
      border-radius: 9999px;
      overflow: hidden;
      cursor: pointer;
      background-color: transparent;
      transition: color 0.4s ease;
      box-shadow: 0 4px 10px rgba(30, 58, 138, 0.12);
      user-select: none;
    }
    /* Phone icon */
    .phone-button i {
      color: red;
      font-size: 18px;
      transition: transform 0.3s ease;
      flex-shrink: 0;
    }
    /* The fill effect */
    .phone-button::before {
      content: '';
      position: absolute;
      /* Extend beyond the border */
      inset: -2px;
      background-color: #1e3a8a;
      border-radius: inherit;
      transform-origin: left center;
      transform: scaleX(0);
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: -1;
    }
    /* Hover states */
    .phone-button:hover::before {
      transform: scaleX(1);
    }
    .phone-button:hover {
      color: white;
    }
    .phone-button:hover i {
      transform: scale(1.15);
    }
/* Header styles */
.header {
  font-family: 'Poppins', sans-serif;
  
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 60px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}


.logo {
  display: flex;
  align-items: center;
  height: 100%;
}


/* Logo styles */
.logo a {
  display: flex;
  align-items: center;
  color: var(--deep-blue);
  font-weight: bold;
  font-size: 25px;
}

.logo img {
  height: 50px;
  margin-right: 10px;
}

/* Navigation styles */
.nav {
  display: flex;
  gap: 30px;
  
  
}


.nav.active {
  overflow-y: auto; /* enable scrolling */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

.nav a {
  color: var(--black);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
  
}

.nav a:hover {
  color: var(--deep-blue);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--deep-blue);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* Right section styles */
.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone {
  color: var(--deep-blue);
  font-weight: bold;
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--deep-blue);
}

.hamburger .fa-xmark {
  display: none;
}

/* Mobile styles */
@media (max-width: 1100px) {
  .header {
    padding: 0 20px;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--mobile-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    transition: height 0.5s ease;
    z-index: 999;
  }
  
  .nav a {
    color: var(--white);
    font-size: 18px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .nav.active {
    height: calc(100vh - 80px);
    padding: 40px;
  }
  
  .nav.active a {
    opacity: 1;
    transform: translateY(0);
  }
  
  .header.scrolled + .nav.active {
    top: 60px;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

 /* Dropdown styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.dropdown-toggle {
    background: none;
    border: none;
    font: inherit;
    color: var(--black);
    font-weight: 600;
    padding: 5px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--deep-blue);
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown.open .arrow {
    transform: rotate(90deg);
}

/* Mega Menu Styling */
.mega-menu {
    /* removed display: none for transition compatibility */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    width: 80vw;
    max-width: 1000px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 30px 40px;
    border-radius: 10px;
    z-index: 999;
    gap: 40px;
    justify-content: space-between;
    display: none;
}

/* Show on hover for desktop */
@media (min-width: 993px) {
    .dropdown:hover .mega-menu {
        display: flex;
    }
}

.menu-column {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    gap: 10px;
}

.menu-column h4 {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--deep-blue);
    font-weight: bold;
}

.menu-column a {
    font-size: 14px;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-column a:hover {
    color: var(--deep-blue);
}

/* Mobile Styles */
@media (max-width: 1100px) {
    .hamburger {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--deep-blue);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        color: var(--white);
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    /* Mobile dropdown styles */
    .dropdown {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .dropdown-toggle {
        color: var(--white);
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-toggle:hover {
        color: var(--white);
    }

    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        padding: 0;
        border-radius: 0;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: flex;
    }

    .dropdown.open .mega-menu {
        max-height: 800px;
    }

    .menu-column {
        min-width: auto;
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 0.75rem;
    }

    .menu-column:last-child {
        border-bottom: none;
    }

    .menu-column h4 {
        color: var(--white);
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .menu-column a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 13px;
        padding: 0.5rem 0;
        padding-left: 1rem;
    }

    .menu-column a:hover {
        color: var(--white);
    }

    .hamburger.active .fa-bars {
        display: none;
    }

    .hamburger.active .fa-xmark {
        display: inline;
    }

    .phone-button {
        display: none;
    }
}






.mobile-nav {
  display: none;
  position: fixed;
  top: 75px; /* height of header */
  left: 0;
  width: 100%; /* full width */
  height: calc(100% - 60px);
  background-color: #000; /* black background */
  color: #fff; /* white text */
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  z-index: 1500;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}

.mobile-nav.active {
  display: flex;
  transform: translateX(0);
}

/* Links */
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile dropdown */
.mobile-dropdown-toggle {
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-dropdown-toggle .arrow {
  transition: transform 0.3s ease;
  color: #fff;
}

.mobile-dropdown-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* Mega menu inside mobile dropdown */
.mobile-mega-menu {
  margin-top: 0.5rem;
  padding-left: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.mobile-mega-menu[hidden] {
  display: none;
}

.mobile-mega-menu:not([hidden]) {
  display: flex;
}

.mobile-mega-menu .menu-column h4 {
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}

.mobile-mega-menu .menu-column a {
  color: #fff;
  font-weight: 500;
  padding: 0.25rem 0;
  display: block;
  border-bottom: none;
}

/* Hide desktop nav on mobile */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .right-section {
    gap: 0.5rem;
  }

  .hamburger {
    display: block;
  }
   .phone-button {
        display: none;
    }
}

/* Show desktop nav on wider screens */
@media (min-width: 1100px) {
  .mobile-nav {
    display: none !important;
  }
}


@media (max-width: 768px) {
  .phone {
    display: none !important;
  }
}