@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-padding-top: 100px;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced smooth scrolling with momentum for webkit browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}



/* Header Container */
.header-wrapper {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* background: linear-gradient(135deg, #00397b 0%, #006025 100%); */
    /* background: #00397b; */
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Utility Bar */
.utility-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    border-bottom: 1px solid rgb(43 43 43 / 10%);
}

.utility-container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.utility-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.utility-links a {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.utility-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000;
    transition: width 0.3s ease;
}

.utility-links a:hover {
    color: #000;
}

.utility-links a:hover::after {
    width: 100%;
}

.utility-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.utility-actions button[title="Search"]{
    display: none;
}

.icon-btn {
    width: 75px;
    height: 42px;
    border-radius: 50%;
    background: rgb(0 0 0 / 20%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.icon-btn a{
    padding: 10px;
    font-size: 44px;
    color: #ff0100;
}

.icon-btn.emergency {
    border-radius: 0;
    background: transparent;
}
.icon-btn.emergency i {
    animation: emergencyPulse 2s infinite;
    border-radius: 9px;
}

.icon-btn.emergency:hover {
    transform: scale(1.07);
}

@keyframes emergencyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

/* Main Navigation */
.main-header {
    background: white;
    padding: 15px 0;
}

.header-container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.logo-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: bold;
    /* box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); */
    position: relative;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: rotate(-5deg) scale(1.05);
}

/* .logo-box::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
} */

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand-name {
    font-size: 28px;
    font-weight: 700;
    /* background: linear-gradient(135deg, #28ac5a 0%, #4e6095 100%); */
    background: #28ac5a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #28ac5a;
}

.logo-text .tagline {
    font-size: 11px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.4px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
    min-height: 48px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu > li > a i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu > li:hover > a {
    /* background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%); */
    background: #baf0b93d;
    /* color: #506CE7; */
    
}

.nav-menu > li:hover > a i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu.mega-dropdown{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    min-width: fit-content!important;
    max-width: 100%;
    transform: translateX(-30%) !important;
}
.mega-dropdown::before {
    left: 30%!important;
}
.mega-dropdown a {
    white-space: nowrap;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 10px 0;
    z-index: 100;
    display: inline-block;
    border: none;
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 40px;
}

.dropdown-menu a::before {
    content: '→';
    position: absolute;
    left: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    /* background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%); */
    /* color: #506CE7; */
    background: #baf0b93d;
    padding-left: 45px;
}

.dropdown-menu a:hover::before {
    opacity: 1;
    left: 25px;
}

/* Sub-menu (Nested Dropdown) Styles */
.dropdown-menu li {
    position: relative;
}

.dropdown-menu li > a[href="#"] {
    padding-right: 35px;
}

.dropdown-menu li > a[href="#"]::after {
    content: '▶';
    position: absolute;
    right: 15px;
    font-size: 9px;
    opacity: 0.5;
    transition: all 0.3s ease;
    color: #999;
}

.dropdown-menu li:hover > a[href="#"] {
    /* background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%); */
    background: #baf0b93d;
}

.dropdown-menu li:hover > a[href="#"]::after {
    opacity: 1;
    right: 12px;
    color: #1869177d;
    transform: scale(1.2);
}

.sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: 5px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 10px 0;
    z-index: 101;
    border: none;
}

.dropdown-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid white;
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 40px;
}

.sub-menu a::before {
    content: '→';
    position: absolute;
    left: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sub-menu a:hover {
    /* background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%); */
    background: #baf0b93d;
    /* color: #506CE7; */
    padding-left: 45px;
}

.sub-menu a:hover::before {
    opacity: 1;
    left: 25px;
}

/* Keep parent item highlighted when sub-menu is visible */
.dropdown-menu li:hover > a {
    /* background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%); */
    /* color: #506CE7; */
    background: #baf0b93d;
}

/* Ensure sub-menu stays visible when hovering over it */
.dropdown-menu li:hover .sub-menu:hover {
    opacity: 1;
    visibility: visible;
}

/* Adjust dropdown width for Services menu to accommodate sub-menus */
.nav-menu > li:nth-child(2) .dropdown-menu {
    min-width: 280px;
    max-width: 320px;
}

/* Prevent sub-menu from going off-screen on the right */
.dropdown-menu li:last-child .sub-menu,
.dropdown-menu li:nth-last-child(2) .sub-menu,
.dropdown-menu li:nth-last-child(3) .sub-menu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 5px;
    transform: translateX(10px);
}

.dropdown-menu li:last-child:hover .sub-menu,
.dropdown-menu li:nth-last-child(2):hover .sub-menu,
.dropdown-menu li:nth-last-child(3):hover .sub-menu {
    transform: translateX(0);
}

.dropdown-menu li:last-child .sub-menu::before,
.dropdown-menu li:nth-last-child(2) .sub-menu::before,
.dropdown-menu li:nth-last-child(3) .sub-menu::before {
    left: auto;
    right: -8px;
    border-right: none;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background: white;
    color: #506CE7;
    border: 2px solid #506CE7;
}

.btn-secondary:hover {
    background: #506CE7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: #000;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}
.mobile-menu-toggle span:nth-child(2) {
    width: 17px;
    margin-left: auto;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 0 30px;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu > ul > li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-menu > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-menu > ul > li > a:hover {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    color: #1D7C41;
    padding-left: 30px;
}

.mobile-nav-menu > ul > li > a i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-nav-menu > ul > li.active > a i {
    transform: rotate(180deg);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: #f8f9fa;
}

.mobile-nav-menu > ul > li.active .mobile-dropdown {
    max-height: 500px;
}

.mobile-dropdown a {
    display: block;
    padding: 15px 25px 15px 45px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-dropdown a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #506CE7;
    padding-left: 50px;
}

/* Mobile Sub-menu Styles */
.mobile-submenu-item {
    position: relative;
}

.mobile-submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px 15px 45px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-submenu-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.mobile-submenu-item.active .mobile-submenu-toggle {
    background: rgba(102, 126, 234, 0.1);
    color: #1D7C41;
}

.mobile-submenu-item.active .mobile-submenu-toggle i {
    transform: rotate(90deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: #f0f0f0;
}

.mobile-submenu-item.active .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu a {
    display: block;
    padding: 12px 25px 12px 65px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-submenu a:last-child {
    border-bottom: none;
}

.mobile-submenu a:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #506CE7;
    padding-left: 70px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 0;
    }

    .nav-menu > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .action-buttons {
        gap: 8px;
    }

    .btn-primary, .btn-secondary {
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .utility-container {
        padding: 0 10px;
    }

    .utility-links {
        display: none;
    }

    .header-container {
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

    .action-buttons {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-text .brand-name {
        font-size: 22px;
    }

    .logo-box {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .utility-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .utility-actions {
        gap: 10px;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}
