/**
 * Header & Footer Styles
 * Styles for the new header and footer structure
 */

/* ===================================
   CSS Variables
   =================================== */
:root {
    --primary-color: #673DE6;
    --primary-dark: #5830C7;
    --accent-color: #FF8787;
    --dark: #1F1F1F;
    --white: #FFFFFF;
    --gray-100: #F7F7F8;
    --gray-200: #EDEDF0;
    --gray-600: #8E8E93;
    --transition-base: 0.3s ease;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===================================
   Header Styles
   =================================== */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 998;
}

/* Top Bar */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.6rem 0;
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 0.875rem;
}

.top-bar a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

/* Phone Dropdown */
.phone-dropdown {
    position: relative;
    display: inline-block;
}

.phone-dropdown-toggle {
    background: transparent;
    border: none;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-family: 'Inter', sans-serif;
}

.phone-dropdown-toggle:hover {
    
    color: var(--accent-color);
}

.phone-dropdown-toggle .fa-chevron-down {
    font-size: 0.75rem;
   
}

.phone-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    padding: 0.5rem;
    display: none;
    z-index: 1000;
}

.phone-dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
    text-decoration: none;
    color: var(--dark);
}

.phone-item:hover {
    background: var(--gray-100);
}

.phone-item.company-id {
    cursor: default;
    border-top: 1px solid var(--gray-200);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.phone-item.company-id:hover {
    background: transparent;
}

.phone-flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
}

.phone-flag.flag-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
}

.phone-number {
    font-weight: 500;
    color: #000;
}

/* Language Selector */
.language-selector-btn {
    background: transparent;
    border: none;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.language-selector-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.language-text {
    font-size: 0.875rem;
}

/* Language Modal */
.language-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.language-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.language-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.language-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.language-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    padding: 0.5rem;
    line-height: 1;
    transition: color var(--transition-base);
}

.language-modal-close:hover {
    color: var(--dark);
}

.language-modal-search {
    position: relative;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.language-search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.language-search-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-600);
}

.language-modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

.language-country-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-base);
}

.language-country-item:hover {
    background: var(--gray-100);
}

.country-flag {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 2px;
}

.country-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.country-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.875rem;
}

.country-language {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Main Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    position: relative;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-width: 200px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-menu.container {
    max-width: none;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-base);
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--primary-color);
}

.nav-menu li.dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px !important;
    padding: 0.5rem;
    display: none;
    list-style: none;
    margin: 0;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

.dropdown-menu li a:hover {
    background: var(--gray-100);
    color: var(--primary-color);
}

.dropdown-toggle::after {
    display: none !important;
}

/* CTA Buttons */
.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-partner {
    background: var(--primary-color);
    color: var(--white);
}

.btn-partner:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.hamburger {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transition: right var(--transition-base);
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-logo img {
    max-width: 120px;
    height: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--dark);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 0.5rem;
}

.mobile-nav-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li a.active {
    background: var(--gray-100);
    color: var(--primary-color);
}

.mobile-dropdown {
    margin-bottom: 0.5rem;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    color: var(--dark);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.mobile-dropdown-toggle:hover {
    background: var(--gray-100);
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 0.5rem 1rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu li a {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* ===================================
   Footer Styles
   =================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
   
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-links li a:hover {
    color: var(--accent-color);
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-contact li i {
    color: var(--accent-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact li a:hover {
    color: var(--accent-color);
}

.footer-dropdown {
    position: relative;
}

.footer-dropdown .phone-dropdown-toggle {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.footer-dropdown .phone-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.footer-dropdown .phone-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    padding: 0.5rem;
    display: none;
    z-index: 1000;
}

.footer-dropdown .phone-dropdown-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.payment-methods i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 997;
    transition: all var(--transition-base);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .cta-button {
        display: none !important;
    }
    
    .top-bar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .navbar-content {
        flex-wrap: wrap;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-img {
        max-width: 150px;
    }
    
    .top-bar {
        font-size: 0.75rem;
    }
    
    .top-bar a,
    .phone-dropdown-toggle,
    .language-selector-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-sidebar {
        width: 100%;
        max-width: 100%;
    }
}

.VIpgJd-ZVi9od-ORHb-OEVmcd {
    left: 0;
    top: -40px !important;
}