@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design System Variables --- */
:root {
    --primary-color: #0b4a83;       /* Premium corporate blue */
    --primary-light: #0f5ea8;       /* Lighter blue for hovers */
    --accent-orange: #f26522;       /* Vibrant orange accent for CTAs */
    --accent-orange-hover: #d94e0f; /* Darker orange hover state */
    --text-dark: #1f2937;           /* Primary text */
    --text-muted: #555555;          /* Subtext/secondary text */
    --bg-light: #f4f4f5;            /* Light grey background */
    --bg-white: #ffffff;
    --border-color: #e2e8f0;        /* Thin borders */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-dropdown: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- CSS Reset & Core --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

/* --- Layout Containers --- */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================
   HEADER MAIN STRUCTURE
   ========================================== */
.main-header {
    width: 100%;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
}

/* --- 1. TOP BAR STYLING --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--bg-white);
    font-size: 13px;
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    min-height: 42px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: stretch;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.top-bar-link:hover {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.top-bar-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.top-bar-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-orange);
    color: var(--bg-white);
    padding: 0 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-left: none;
}

.top-bar-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-orange);
    color: var(--bg-white);
    padding: 0 24px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-left: none;
    animation: imBlinkCta 2s ease-in-out infinite;
}

.top-bar-cta:hover {
    background-color: var(--accent-orange-hover);
    color: var(--bg-white);
    animation: none;
}

.top-bar-cta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Pulsing/blinking animation for Get A Quote button */
@keyframes imBlinkCta {
    0%, 100% { background-color: #f26522; box-shadow: 0 0 0 0 rgba(242,101,34,0.3); }
    50% { background-color: #d94e0f; box-shadow: 0 0 14px 6px rgba(242,101,34,0.6); }
}

@media (max-width: 992px) {
    .top-bar-cta { animation: none; }
}

/* --- 2. MIDDLE BAR STYLING --- */
.middle-bar {
    background-color: var(--bg-white);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

.middle-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand / Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* GST Identification Badge styles */
.header-gst-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid var(--border-color);
    padding-left: 16px;
    height: 40px;
    margin-left: 4px;
}

.gst-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 2px;
}

.gst-val {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.gst-address {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .header-gst-badge {
        display: none;
    }
}

.brand-logo-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo Image (PNG) */
.header-logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.brand-icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-icon-box svg {
    width: 100%;
    height: 100%;
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Technology Partner Badge */
.partner-badge {
    display: flex;
    align-items: center;
    border-left: 2px solid var(--border-color);
    padding-left: 16px;
    height: 45px;
}

.partner-text {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 700;
    color: #777777;
    margin-right: 10px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.partner-text span {
    display: block;
    color: #999999;
    font-weight: 500;
}

.partner-siemens {
    display: flex;
    align-items: center;
}

.partner-siemens svg {
    height: 14px;
}

/* Contact Infos (Right Side) */
.contact-info-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.info-block:hover .info-icon {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.info-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.info-value a:hover {
    color: var(--accent-orange);
}

.info-value span {
    display: block;
    line-height: 1.3;
}

/* --- 3. NAVIGATION BAR STYLING --- */
.nav-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}

.desktop-menu {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
}

.menu-item {
    position: relative;
    height: 100%;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    height: 100%;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    border-bottom: 3px solid transparent;
}

.menu-link:hover,
.menu-item.active .menu-link {
    color: var(--primary-color);
    border-bottom-color: var(--accent-orange);
}

/* Products dropdown — dynamic, simple, professional */
.im-prod-dropdown {
    min-width: 260px;
    max-height: 380px;
    overflow-y: auto;
}
.im-prod-dropdown li .dropdown-link {
    padding: 9px 20px;
    font-size: 12.5px;
    text-transform: none;
    letter-spacing: 0.2px;
    border-bottom: 1px solid #f1f5f9;
}
.im-prod-dropdown li:last-child .dropdown-link {
    border-bottom: none;
}
.im-drop-foot {
    border-top: 1px solid var(--border-color);
    background: #fafbfc;
}
.im-drop-foot .dropdown-link {
    font-weight: 600;
    color: var(--primary-color) !important;
    text-align: center;
    padding: 10px 20px;
}

.menu-link svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    transition: transform 0.2s ease;
}

.menu-item:hover .menu-link svg {
    transform: translateY(2px);
}

/* --- Dropdown Styles --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 230px;
    box-shadow: var(--shadow-dropdown);
    border-top: 3px solid var(--primary-color);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    border-radius: 0 0 6px 6px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 24px;
}

/* Show Dropdown on Hover */
.menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Secondary Level Dropdown (Nested Dropdowns) */
.has-nested-dropdown {
    position: relative;
}

.nested-dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow-dropdown);
    border-left: 3px solid var(--primary-color);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    border-radius: 0 6px 6px 0;
}

.has-nested-dropdown:hover .nested-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile Menu Header Trigger (Hidden by default) */
.mobile-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    transition: var(--transition-smooth);
}

.mobile-trigger:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.mobile-trigger svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Search Bar (Optional Header Accent) */
.header-search {
    display: flex;
    align-items: center;
    position: relative;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.search-toggle:hover {
    color: var(--primary-color);
}

.search-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ==========================================
   MOBILE RESPONSIVE SIDE DRAWER
   ========================================== */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 10000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    right: 0;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Header */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    background-color: #ff3b30;
    color: var(--bg-white);
}

.drawer-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Drawer Menu List */
.drawer-menu-list {
    list-style: none;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.drawer-menu-item {
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.drawer-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.drawer-menu-link:hover,
.drawer-menu-item.active > .drawer-menu-link {
    color: var(--primary-color);
    background-color: var(--bg-light);
}

.drawer-menu-link svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.drawer-menu-item.expanded > .drawer-menu-link svg {
    transform: rotate(180deg);
}

/* Mobile Accordions */
.drawer-submenu {
    list-style: none;
    background-color: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.drawer-menu-item.expanded > .drawer-submenu {
    max-height: 500px;
    transition: max-height 0.3s cubic-bezier(0.85, 0, 0.15, 1);
}

.drawer-submenu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.drawer-submenu-link:hover {
    color: var(--primary-color);
    padding-left: 35px;
}

/* Nested Drawer Submenu */
.drawer-nested-submenu {
    list-style: none;
    background-color: rgba(0,0,0,0.02);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.drawer-submenu-item.expanded > .drawer-nested-submenu {
    max-height: 500px;
}

.drawer-nested-submenu-link {
    display: block;
    padding: 10px 40px;
    font-size: 12px;
    font-weight: 500;
    color: #777777;
    text-transform: uppercase;
}

.drawer-nested-submenu-link:hover {
    color: var(--primary-color);
    padding-left: 45px;
}

/* Drawer Contact Info Footer */
.drawer-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.drawer-footer .info-block {
    margin-bottom: 16px;
}

.drawer-footer .info-icon {
    width: 36px;
    height: 36px;
}

.drawer-footer .info-icon svg {
    width: 16px;
    height: 16px;
}

.drawer-footer .info-value {
    font-size: 13px;
}

.drawer-footer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent-orange);
    color: var(--bg-white);
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.2);
}

.drawer-footer-cta:hover {
    background-color: var(--accent-orange-hover);
}


/* ==========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */

/* 1. Large Screen Adjustments */
@media (max-width: 1200px) {
    .logo-title {
        font-size: 19px;
    }
    .contact-info-wrapper {
        gap: 20px;
    }
    .menu-link {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* 2. Collapse Middle Details / Prepare for Tablet */
@media (max-width: 992px) {
    /* Hide top bar right-side items to save space */
    .top-bar-right {
        display: none;
    }
    
    .top-bar-left {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* Make middle bar full layout adjustment */
    .middle-bar {
        padding: 12px 0;
    }
    
    .middle-bar .container {
        justify-content: space-between;
    }
    
    .contact-info-wrapper {
        display: none; /* Hide phone/email blocks from desktop middle bar */
    }
    
    /* Hide desktop menu, show mobile trigger button */
    .desktop-menu,
    .header-search {
        display: none;
    }
    
    .mobile-trigger {
        display: flex;
    }
    
    .nav-bar .container {
        height: 48px;
    }
}

/* 3. Small Mobile Screen Adjustments */
@media (max-width: 576px) {
    .top-bar-left {
        font-size: 11px;
        text-align: center;
        padding: 6px 0;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .brand-icon-box {
        width: 44px;
        height: 44px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .brand-icon-box svg {
        width: 14px;
        height: 14px;
    }
    
    .logo-title {
        font-size: 16px;
    }
    
    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .partner-badge {
        display: none; /* Hide Siemens badge on small mobile screens to prevent wrapping */
    }
}
