@import './common-style.css';

.top-bar {
    background: var(--sf-light-gray);
    padding: var(--sf-spacing-sm) 0;
    border-bottom: 1px solid var(--sf-border);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--sf-transition);
}

.contact-info {
    display: flex;
    justify-content: flex-end;
    gap: var(--sf-spacing-md);
    font-size: var(--sf-text-base);
    color: #666;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    padding: 0 10px;
}

.contact-left, .contact-right {
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.contact-left {
    margin-left: 35px;
}

.contact-right {
    margin-right: 35px;
}

.contact-left a, .contact-right a {
    color: var(--ssbond-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-left a:hover, .contact-right a:hover {
    color: var(--ssbond-blue);
}

.main-nav {
    background: #fff;
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: top 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
}
.container {
    width: 100%;
    max-width: 1200px; /* or your desired max-width */
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0;
    margin-left: 35px;
}

.logo {
    height: 45px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tagline {
    font-size: var(--ssbond-d-btn-card);
    color: #666;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--sf-spacing-md);
    margin-right: 35px;
    font-family: var(--sf-font-family);
}

.nav-list {
    display: flex;
    gap: var(--sf-spacing-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--sf-secondary);
    text-decoration: none;
    font-size: var(--sf-text-base);
    font-weight: var(--ssbond-d-btn-weight);
    display: flex;
    align-items: center;
    gap: var(--sf-spacing-xs);
    transition: var(--sf-transition);
}

.nav-link i {
    font-size: var(--ssbond-d-btn-card);
}

.nav-link:hover {
    color: var(--ssbond-blue);
}
.nav-link.active {
    color: var(--ssbond-blue);
}

.dropdown {
    position: relative;
}
.nav-dealer{
    margin-top: -8px;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--sf-white);
    min-width: 220px;
    box-shadow: var(--sf-shadow-lg);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}
/* Ensure dropdown is visible when the dropdown or nav-link is focused */
.dropdown:focus-within .dropdown-menu,
.nav-link:focus + .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: var(--sf-text-base);
    transition: color 0.3s;
}

.dropdown-menu a:hover {
    color: var(--ssbond-black);;
    background: #f8f8f8;
}

.btn-dealer {
    background: linear-gradient(90deg, #AE0C0C 0%, #E71616 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: var(--sf-text-base);
    font-weight: var(--ssbond-d-btn-weight);
    transition: background 0.3s;
}
.btn-dealer:hover {
    background: var(--ssbond-secondaryLinear);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}
main {
    padding-top: 0px;
}
@media (max-width: 1200px) and (min-width: 991px) {
    .top-bar-content .contact-left {
        margin-left: 10px;
    }
    .top-bar-content .contact-right {
        margin-right: 10px;
    }
    .logo {
        height: 45px;
        width: auto;
        margin-left: 35px;
    }
    .nav-wrapper .nav-menu {
        display: flex;
        align-items: center;
        gap: var(--sf-spacing-md);
        margin-right: 35px;
        font-family: var(--sf-font-family);
    }
}
@media (max-width: 1200px) {
    .contact-left, .logo-container {
        margin-left: -30px;
    }
    
    .contact-right, .nav-menu {
        margin-right: -30px;
    }
}

@media (max-width: 992px) {
    .contact-left, .logo-container {
        margin-left: 10px;
    }
    
    .contact-right, .nav-menu {
        margin-right: -20px;
    }
}

@media (max-width: 768px) {
    .contact-left, .logo-container {
        margin-left: -10px;
    }
    
    .contact-right, .nav-menu {
        margin-right: -10px;
    }
}

@media (max-width: 991px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--sf-white);
        box-shadow: var(--sf-shadow-lg);
        height: calc(100vh - 90px);
        overflow-y: auto;
        display: none;
        z-index: 999;
    }

    .nav-menu.active {
        display: block;
    }

    .mobile-toggle {
        display: block;
        border: none;
        background: none;
        padding: 10px;
        cursor: pointer;
    }

    .mobile-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--sf-secondary);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(40deg) translate(3px, 4px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-list {
        flex-direction: column;
        padding: 0;
    }

    .nav-link {
        padding: var(--sf-spacing-md) var(--sf-spacing-lg);
        /* border-bottom: 1px solid var(--sf-border); */
        display: block;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 15px;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-link {
        padding: 10px 0;
    }

    .btn-dealer {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .top-bar-content .contact-left{
        margin-left: 10px;
    }
    .top-bar-content .contact-right{
        margin-right: 10px;
    }
}

/* Mobile responsiveness for top bar */
@media (max-width: 576px) {
    .contact-left, .logo-container {
        margin-left: -5px;
    }
    
    .contact-right, .nav-menu {
        margin-right: 13px;
    }
    
    .nav-wrapper {
        margin: 0;
        margin-top: 15px;
    }

    

    .logo-container {
        margin: 0 auto;
        justify-content: start;
        
    }

    .logo-text {
        align-items: center;
        margin-left: -10px;
    }

    .mobile-toggle {
        position: absolute;
        right: 15px;
        top: 35px;
    }

    .nav-menu.active {
        top: 113px;
        
    }
    .nav-menu .nav-list li {
        margin-bottom: -25px; /* Adjust as needed */
        padding: 0;
    }
    .nav-menu .nav-list li .dropdown-menu{
        margin-bottom: -25px; /* Adjust as needed */
        padding: 0;
    }
    .nav-menu .nav-list li .dropdown-menu:last-child{
        margin-bottom: 0px; /* Adjust as needed */
        padding: 0;
    }

    .main-nav {
        transition: top 0.3s ease;
    }
    .btn-dealer {
        width: 30%; 
        font-size: var(--sf-text-sm);
        text-align: center;
        margin-top: 25px;
    }
    .logo{
        margin-left: calc(50% - (+180px));
    }
    /* .btn-nav{
        margin-top: 25px;
    } */.nav-dealer{
    margin-top: 20px;
}
}



/* Desktop dropdown arrow styles */
.nav-link.has-dropdown {
    display: flex;
    align-items: center;
    gap: var(--sf-spacing-xs);
    position: relative;
}

.nav-link.has-dropdown::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: var(--sf-text-sm);
    transition: transform 0.3s ease;
    margin-left: 5px;
}

/* Hover effect for dropdown arrow */
.nav-link.has-dropdown:hover::after {
    transform: rotate(180deg);
}

/* Active state for mobile */
.dropdown.active .nav-link.has-dropdown::after {
    transform: rotate(180deg);
}

/* Mobile specific styles */
@media (max-width: 991px) {
    .nav-link.has-dropdown {
        /* justify-content: space-between; */
        width: 100%;
        padding: 8px 0;
    }

    .nav-link.has-dropdown::after {
        position: static;
        margin-right: 10px;
    }

    .dropdown-menu {
        padding-left: 15px;
    }

    .dropdown-menu a {
        padding: 8px 0;
    }
    .dropdown-menu a:last-child{
        padding-bottom: 15px;
    }
    .nav-menu {
        padding: 10px 15px;
    }

    .nav-list {
        width: 100%;
    }
}

/* Desktop dropdown styles */
@media (min-width: 992px) {
    .nav-link.has-dropdown::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: var(--sf-text-sm);
        transition: transform 0.3s ease;
        margin-left: 5px;
        display: inline-block;
    }

    /* Keep arrow rotated up when dropdown is visible */
    .dropdown:hover > .nav-link.has-dropdown::after {
        transform: rotate(180deg);
    }

    /* Dropdown menu styles */
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 220px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-radius: 4px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s;
        padding: 8px 0;
    }

    /* Show dropdown menu and keep arrow up */
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Remove any arrow rotation from dropdown menu items */
    .dropdown-menu .nav-link.has-dropdown::after {
        transform: none;
    }
}

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .contact-left {
        margin-left: 15px;
    }
    
    .contact-right {
        margin-right: 15px;
    }
    
    .logo-container {
        margin-left: 15px;
    }
    
    .nav-menu {
        margin-right: 25px;
    }
    
    .mobile-toggle {
        display: none;
    }
}

/* Large Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .contact-left {
        margin-left: 50px;
    }
    
    .contact-right {
        margin-right: 50px;
    }
    
    .logo-container {
        margin-left: 20px;
    }
    
    .nav-menu {
        margin-right: 50px;
        display: flex !important; /* Force display flex on desktop */
    }
    
    .mobile-toggle {
        display: none;
    }
}

/* Medium Devices (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .mobile-toggle {
        display: block;
        position: absolute;
        right: 17px;
        top: 13px;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--sf-white);
        box-shadow: var(--sf-shadow-lg);
        display: none;
        padding: 20px;
        height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    .btn-dealer {
        width: 50%;
        margin: 20px auto;
        text-align: center;
    }
}

/* Small Devices (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .top-bar-content {
        padding: 0 15px;
    }
    
    .contact-left, .contact-right {
        margin: 0 15px;
    }
    
    .logo-container {
        margin-left: 15px;
        margin-top: 8px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .tagline {
        font-size: 11px;
    }
    .nav-link{
        padding: 5px 0;
    }
}

/* Extra Small Devices (575px and below) */
@media (max-width: 576px) {
    .top-bar-content {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        padding: 5px 10px;
        font-size: var(--ssbond-m-desc1);
        gap: var(--sf-spacing-xs);
    }
    
    .contact-info {
        font-size: var(--ssbond-d-btn-card);
    }
    
    .contact-left, .contact-right {
        margin: 0;
        justify-content: center;
    }
    .contact-right{
        margin-left: 10px;
    }
    .logo {
        height: 35px;
        margin-left: 10px;
        margin-right: 5px;
    }
    
    .logo-container {
        margin: 0;
        justify-content: center;
    }
    
    .brand-name {
        font-size: 18px;
        margin-left: 7px;
    }
    
    .tagline {
        font-size: 10px;
    }
    
    .nav-menu.active {
        top: 120px;
    }
    
    .btn-dealer {
        width: 40%;
        font-size: var(--ssbond-d-btn-card);
    }
    
    .main-nav {
        top: 45px;
    }
    .nav-link{
        padding: 10px 0;
    }
}

.colorHeading{
    color: var(--ssbond-blue);
}

.nav-heading {
    font-size: var(--ssbond-d-h2);
    margin-top: var(--ssbond-d-t2);
    margin-bottom: var(--ssbond-d-b2);
    color: var(--ssbond-black);
}

@media (max-width: 768px) {
    .nav-heading {
        font-size: var(--ssbond-m-h2);
    }
}