/* ========================================
   HEADER & FOOTER STYLES ONLY
   ======================================== */

/* Layout Utilities */
.flex-between {
    display: flex;
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header Styles */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.main-header {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 1000;
    padding: var(--space-sm) 0;
}

.announcement-bar {
    background-color: var(--complementary-1);
    color: white;
    padding: var(--space-sm) 0;
    font-size: 14px;
    font-weight: 500;
}

.announcement-bar .social-icons a {
    color: white;
    margin-right: var(--space-md);
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.announcement-bar .social-icons a:hover {
    opacity: 0.8;
}

.announcement-text {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.logo img {
    height: 64px;
    width: auto;
    display: block;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar ul li {
    margin: 0 var(--space-md);
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--text-black);
    font-family: var(--nav-font);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    padding: var(--space-xs) 0;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 60%;
    height: 1.5px;
    background-color: var(--primary-color);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    opacity: 0;
}

.navbar ul li a:hover::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

/* Dropdown Menu Support */
.navbar ul li.menu-item-has-children>a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar ul li.menu-item-has-children>a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    transition: transform 0.3s ease;
}

.navbar ul li.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
}

.navbar ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--bg-white);
    min-width: 240px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    border: 1px solid var(--accent-color);
    display: block;
}

.navbar ul li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.navbar ul .sub-menu li {
    margin: 0;
    width: 100%;
}

.navbar ul .sub-menu li a {
    padding: var(--space-md) var(--space-lg);
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    text-transform: none;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.navbar ul .sub-menu li:last-child a {
    border-bottom: none;
}

.navbar ul .sub-menu li a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    padding-left: calc(var(--space-lg) + 8px);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--text-black);
    padding: 12px 24px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1002;
    position: relative;
    min-width: 44px;
    min-height: 44px;
}

.search-text {
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.search-trigger:hover {
    background: #eeeeee;
    border-color: #ccc;
}

.inline-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.inline-search-form {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-lg);
    width: 600px;
    height: 72px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.inline-search-container.active .inline-search-form {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.inline-search-field {
    flex-grow: 1;
    border: 1px solid #ddd;
    background: var(--bg-white);
    border-radius: 10px;
    padding: 0 var(--space-md);
    font-family: var(--body-font);
    font-size: 16px;
    outline: none;
    color: var(--text-dark);
    height: 48px;
    transition: border-color 0.3s ease;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: var(--space-sm);
}

.search-submit-inline,
.search-cancel-inline {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-submit-inline {
    background: var(--primary-color);
    color: white;
}

.search-cancel-inline {
    background: var(--accent-color);
    color: var(--primary-color);
}

/* Live Results Area */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--accent-color);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: var(--space-3xl) 0 0;
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: var(--space-lg);
    filter: brightness(0) invert(1);
}

.brand-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.footer-heading {
    font-size: 20px;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    position: relative;
    padding-bottom: var(--space-sm);
    color: white !important;
    font-weight: 700;
    letter-spacing: 1px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 3px;
    background: var(--complementary-1);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-md);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    font-weight: 500;
}

.footer-contact-details {
    list-style: none;
    padding: 0;
}

.footer-contact-details li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 15px;
    font-weight: 500;
}

.footer-contact-details i {
    color: var(--complementary-2);
}

.footer-contact-details li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-contact-details li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    margin-top: var(--space-xxl);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

/* Mobile Responsive Header/Footer */
@media (max-width: 768px) {
    .main-header {
        position: relative;
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: var(--space-md) 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: 1px solid var(--accent-color);
    }

    .navbar ul.active {
        display: flex;
    }

    .navbar ul li {
        margin: var(--space-sm) var(--space-md);
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border: 1px solid #eee;
        font-size: 22px;
        cursor: pointer;
        color: var(--text-dark);
        width: 48px;
        height: 48px;
        border-radius: 8px;
        padding: 0;
        margin-left: var(--space-sm);
        transition: all 0.2s ease;
    }

    .mobile-menu-toggle:hover {
        background: #eee;
    }

    .site-footer {
        text-align: center;
        padding-top: var(--space-xxl);
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}