/* Navigation & Header */
.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.logo-icon {
    height: 55px;
    width: auto;
    transition: transform 0.2s ease-out;
    display: block;
}

.logo-icon:hover {
    transform: scale(1.05);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-main a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-main a:hover::after,
.nav-main a:focus::after,
.nav-main a[aria-current="page"]::after {
    width: 100%;
}

.nav-main a[aria-current="page"] {
    color: #3b82f6;
}

/* Active nav link styling */
.nav-main a.active-nav {
    color: #3b82f6;
}

.nav-main a.active-nav::after {
    width: 100%;
}

/* Dropdown */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 320px; /* Increased from 280px to accommodate descriptions */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    border: 1px solid #e2e8f0;
}

.nav-item-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Click-to-toggle dropdown */
.nav-item-dropdown.dropdown-active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: #f0f9ff;
  color: #1e40af;
  border-left-color: #3b82f6;
}

/* NEW: Service item structure */
.service-item {
  display: block;
  padding: 0.9rem 1.2rem;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.service-item:hover {
  background: #f0f9ff;
  color: #1e40af;
  border-left-color: #3b82f6;
}

.service-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.service-item:hover .service-title {
  color: #1e40af;
}

.service-desc {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  font-weight: 400;
}

.service-item:hover .service-desc {
  color: #334155;
}

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 25px;
    background: #0f172a;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-main {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-main.active {
        display: flex;
    }

    .nav-main a {
        padding: 1rem 5vw;
        width: 100%;
    }

    .nav-item-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
        background: #f8fafc;
        display: block;
        opacity: 1;
    }

    .dropdown-menu a {
        padding-left: 10vw;
    }

    .dropdown-menu a:hover {
        padding-left: 11vw;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Add these mobile styles at the end of the file */

@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        min-width: 100%;
        padding: 0;
        background: #f8fafc;
        border-radius: 0;
        margin-top: 0.5rem;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .service-item {
        padding: 1rem 1.5rem;
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .service-item:hover {
        background: #fff;
    }

    .service-title {
        font-size: 0.9rem;
    }

    .service-desc {
        font-size: 0.75rem;
    }
}