/* Base Styles & Variables */
:root {
    --primary-text: #4a4a68;
    --secondary-text: #6b7280;
    --border-color: #ffffff;
    --bg-light: #ffffff;
    --search-bg: #f8fafc;
    --accent-red: #ef4444;
    --accent-blue: #6366f1;
    --accent-green: #22c55e;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #ffffff;
    color: var(--primary-text);
    line-height: 1.5;
    overflow-x: hidden !important;
}

/* Header Container */
.main-header {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar Section */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
    min-height: 70px;
}

/* Logo Area */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-right: 8px;
}

/* Workable Search Bar with Suggestions */
.search-form {
    flex-grow: 1;
    max-width: 450px;
    position: relative;
    display: flex;
    align-items: center;
   box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
    border-radius: 20px;
}

.search-input {
    width: 100%;
    padding: 10px 50px 10px 45px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--search-bg);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--accent-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-icon-left {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    pointer-events: none;
}

.search-submit-btn {
    position: absolute;
    right: 5px;
    background: #24ABE3;
    border: none;
    color: white;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}

.search-submit-btn:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

/* Live Suggestions Container */
.suggestions-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1005;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f8fafc;
}

.suggestion-item:last-child {
    border: none;
}

.suggestion-item:hover {
    background: var(--search-bg);
}

.suggestion-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-text);
}

/* Mobile Search should be hidden on desktop by default */
.mobile-search {
    display: none;
}

/* Action Buttons Area */
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Contact Buttons */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
    box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
}

.btn-call {
    background-color: #f0fdf4;
    color: var(--accent-green);
    border-color: #dcfce7;
}

.btn-call:hover {
    background-color: var(--accent-green);
    color: white;
}

.btn-mail {
    background-color: #eef2ff;
    color: var(--accent-blue);
    border-color: #e0e7ff;
}

.btn-mail:hover {
    background-color: var(--accent-blue);
    color: white;
}

/* Navigation Bar */
.bottom-bar {
    border-top: 1px solid var(--border-color);
    background: #fff;
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 20px;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-text);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 16px 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-blue);
}

/* Dropdowns */
.nav-item .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    display: none;
    z-index: 1002;
}

@media (min-width: 993px) {
    .nav-item:hover .dropdown {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }
}

.nav-item .dropdown li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--primary-text);
    font-size: 1rem;
    transition: all 0.2s;
}

.nav-item .dropdown li a:hover {
    background: var(--search-bg);
    color: var(--accent-blue);
    padding-left: 25px;
}

.arrow {
    width: 6px;
    height: 6px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.2s;
}

/* Mobile Adjustments */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-text);
}

/* BREAKPOINT: Laptop/Large Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 16px 5px;
    }

    .contact-btn span {
        display: none;
    }

    .contact-btn {
        padding: 10px;
        border-radius: 50%;
    }
}

/* BREAKPOINT: Tablet & Mobile */
@media (max-width: 992px) {
    .top-bar {
        padding: 10px 0;
    }

    /* Hide Desktop Search on Mobile */
    #desktop-search {
        display: none;
    }

    .bottom-bar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: white;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
    }

    .bottom-bar.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 18px 20px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        justify-content: space-between;
        font-size: 0.95rem;
    }

    /* Show Mobile Search only in menu */
    .mobile-search {
        display: block;
        padding: 15px 20px;
        background: var(--search-bg);
    }

    /* Mobile search needs display: flex for the form inside it */
    .mobile-search .search-form {
        display: flex;
        max-width: 100%;
    }

    .nav-item .dropdown {
        position: static;
        box-shadow: none;
        border: none;
        background: #fcfdfe;
        width: 100%;
        padding: 0;
    }

    .nav-item .dropdown li a {
        padding: 12px 40px;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-item.mobile-open .dropdown {
        display: block;
    }

    .nav-item.mobile-open .arrow {
        transform: rotate(-135deg);
        margin-bottom: -2px;
    }

    .menu-toggle {
        display: block;
    }

    .logo-container {
        font-size: 1.2rem;
    }

    .actions {
        gap: 8px;
    }
}

/* BREAKPOINT: Small Mobile */
@media (max-width: 480px) {
    .logo-container span {
        display: none;
    }

    .logo-container {
        min-width: auto;
    }

    .contact-btn {
        padding: 8px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}