/* ===================================
   LAYOUT
   Header, Navigation, Footer
   =================================== */

/* ===================================
   TOP BAR
   =================================== */
.top-bar {
    background-color: var(--gray-900);
    color: var(--text-white);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.top-bar-item svg,
.top-bar-item i {
    flex-shrink: 0;
    opacity: 0.7;
    font-size: 16px;
}

.top-bar-link {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.top-bar-link:hover {
    color: var(--text-white);
}

.top-bar-link:hover svg,
.top-bar-link:hover i {
    opacity: 1;
}

.top-bar-phone {
    background-color: var(--primary);
    color: var(--text-white) !important;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.top-bar-phone svg,
.top-bar-phone i {
    opacity: 1;
    font-size: 16px;
}

.top-bar-phone:hover {
    background-color: var(--primary-dark);
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding-left: var(--space-4);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.top-bar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
}

.top-bar-social a:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

/* Top bar responsive */
@media (max-width: 900px) {
    .top-bar-left .top-bar-item:not(:first-child) {
        display: none;
    }

    .top-bar-right .top-bar-link:first-child {
        display: none;
    }
}

@media (max-width: 600px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-inner {
        justify-content: center;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-social {
        display: none;
    }

    .top-bar-phone {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Header position adjustments for mobile top-bar sizes */
@media (max-width: 600px) {
    .header {
        top: 37px;
        /* Smaller top-bar on mobile */
    }
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 41px;
    /* Below top-bar */
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding-top: 16px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 80px;
}

.nav-brand {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    padding: 10px 18px;
    background-color: var(--gray-900);
    border-radius: var(--radius-md);
}

.logo-link:hover {
    background-color: var(--gray-800);
    transform: translateY(-1px);
}

.logo-image {
    height: 38px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.tagline {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 2px;
}

.header-phone {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none !important;
}

.header-phone:hover {
    background-color: var(--bg-light);
    transform: translateY(-1px);
    color: var(--primary-color) !important;
}

.header-phone svg,
.header-phone i {
    color: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
    fill: none !important;
    flex-shrink: 0;
    display: block;
    font-size: 16px;
}

.header-phone span {
    color: var(--primary-color) !important;
    line-height: 1;
}

.header-phone::after {
    display: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-link {
    color: var(--gray-800);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 28px 17px;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--gray-50);
    border-bottom-color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: var(--primary-subtle);
}

.nav-link::after {
    display: none;
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown>.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.submenu-arrow {
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 0;
    border-top: 3px solid var(--primary);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    position: relative;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-link,
.submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
    white-space: nowrap;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.dropdown-link:hover,
.submenu-link:hover {
    background-color: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 24px;
}

.dropdown-link:hover .submenu-arrow {
    transform: translateX(3px);
}

/* Submenu Styles (3rd level) */
.dropdown-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--bg-white);
    min-width: 280px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0);
    transition: all 0.2s ease;
    z-index: 1001;
    border-top: 3px solid var(--primary);
    border-left: 1px solid var(--gray-200);
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
}

/* Navigation CTA Button */
.nav-menu .btn.btn-primary {
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary);
    color: var(--text-white) !important;
    border: none;
    position: relative;
    overflow: hidden;
    margin-left: 20px;
}

.nav-menu .btn.btn-primary::after {
    display: none;
}

.nav-menu .btn.btn-primary span {
    position: relative;
    z-index: 2;
}

.nav-menu .btn.btn-primary .btn-arrow {
    transition: transform 0.3s ease;
}

.nav-menu .btn.btn-primary:hover {
    background-color: var(--gray-900);
    transform: none;
    box-shadow: none;
}

.nav-menu .btn.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-800);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-toggle span:nth-child(1) {
    margin-bottom: 6px;
}

.nav-toggle span:nth-child(3) {
    margin-top: 6px;
}

/* Nav toggle active state (hamburger to X) */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===================================
   MOBILE NAVIGATION STYLES
   =================================== */
@media (max-width: 1199px) {
    .top-bar-right .top-bar-item:first-child {
        display: none;
    }
    .nav-link {
        font-size: 13px;
        padding: 24px 15px;
    }
}

@media (max-width: 992px) {
    .nav {
        padding: 15px 20px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        top: 41px;
        /* Below top-bar */
        right: -100%;
        width: 100%;
        max-width: 350px;
        height: calc(100vh - 41px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu>li {
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-link {
        padding: 18px 25px;
        font-size: 15px;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-link:hover {
        background-color: var(--gray-50);
        border-bottom: none;
    }

    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-top: none;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: var(--gray-50);
    }

    .nav-item-dropdown.mobile-active>.dropdown-menu {
        max-height: 1000px;
    }

    .nav-item-dropdown.mobile-active>.nav-link .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-link {
        padding: 14px 25px 14px 40px;
        border-left: none;
    }

    .dropdown-link:hover {
        padding-left: 45px;
        border-left: none;
    }

    /* Mobile Submenu Styles */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-top: none;
        border-left: none;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background-color: var(--gray-100);
    }

    .dropdown-submenu.mobile-active>.submenu {
        max-height: 500px;
    }

    .dropdown-submenu.mobile-active>.dropdown-link .submenu-arrow {
        transform: rotate(90deg);
    }

    .submenu-link {
        padding: 12px 25px 12px 55px;
        font-size: 13px;
    }

    .submenu-link:hover {
        padding-left: 60px;
    }

    /* Mobile CTA Button */
    .nav-menu .btn.btn-primary {
        margin: 20px 25px;
        text-align: center;
        justify-content: center;
    }

    /* Mobile menu overlay */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-menu.active::before {
        opacity: 1;
        pointer-events: auto;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .top-bar-left {
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        top: 37px;
        /* Smaller top-bar on mobile */
        height: calc(100vh - 37px);
    }
    .top-bar {
        display: none;
    }
    .header {
        top: 0;
        padding-top: 0;
    }
}

@media (max-width: 576px) {
    .nav-menu {
        max-width: 100%;
    }

    .logo-image {
        height: 40px;
    }

    .nav-link {
        padding: 16px 20px;
        font-size: 14px;
    }

    .dropdown-link {
        padding: 12px 20px 12px 35px;
    }

    .submenu-link {
        padding: 10px 20px 10px 50px;
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--gray-900);
    color: var(--text-white);
    padding: var(--space-10) var(--space-5) var(--space-7);
}

.footer-content {
    display: grid;
    grid-template-columns: 30% 20% 20% 20%;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-logo {
    margin-bottom: var(--space-5);
}

.footer-logo-image {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-section h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-5);
    color: var(--text-white);
}

.footer-section h4 {
    font-size: var(--font-md);
    font-weight: 600;
    margin-bottom: var(--space-6);
    color: var(--text-white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: var(--space-5);
    font-size: var(--font-base);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    font-size: var(--font-base);
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-left: var(--space-2);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.social-links a:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.social-links svg,
.social-links i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    display: flex;
    /* Helps center if width/height are set */
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--space-7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-5);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* Local Profiles Links */
.local-profiles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.local-profiles-list li {
    margin-bottom: 0 !important;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md, 6px);
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-link i {
    font-size: 18px;
    color: var(--primary, #e29c22);
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.profile-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
    padding-left: 16px !important; /* Override the default hover from generic list */
}

.profile-link:hover i {
    transform: scale(1.1);
}

.profile-link span {
    font-weight: 500;
    font-size: 14.5px;
}
.footer-bottom ul li {
    list-style: none;
    display: inline-block;
    padding-left: 6px;
}
.footer-bottom ul li:before {
    content: "|";
    color: #e94333;
    padding-right: 5px;
}
.footer-bottom ul li:first-child {
    padding-left: 0px;
}
.footer-bottom ul li:first-child:before {
    display: none;
    padding-right: 0px;
}

@media (max-width: 600px) {
    .footer {
        padding-bottom: var(--space-11);
        text-align: center;
    }
    .footer-logo-image {
        display: block;
        margin: 0 auto;
    }
    .footer ul.local-profiles-list {
        margin: 0 auto;
    }
    .footer .social-links {
        align-items: center;
        justify-content: center;
    }
}

.eeat_stat {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    max-width: 880px;
    margin-top: 30px;
}
.standard-content p {
    margin-bottom: 14px;
}
.standard-content h2,
.standard-content h3 {
    margin-bottom: 20px;
}
.standard-content ul,
.standard-content ol {
    padding: 0 20px 20px;
}