/*--------------------------------------------------------------
Enhanced Header & Footer Styles
Author: AbzInvest Theme
Description: Premium modern design with glassmorphism, animations, and enhanced UX
--------------------------------------------------------------*/

/* ===============================================
   HEADER ENHANCEMENTS
   =============================================== */

/* Main Header - Enhanced */
.main-header {
    background: linear-gradient(135deg, #0F131A 0%, #1a1f2e 100%);
    border-bottom: 1px solid rgba(255, 196, 77, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 196, 77, 0.1) 50%,
            transparent 100%);
    animation: shimmer 3s infinite linear;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Centered Logo Section */
.header-branding-center {
    text-align: center;
    padding: 20px 0 15px;
    position: relative;
}

.site-logo-wrapper {
    display: inline-block;
    position: relative;
    animation: logoFloat 2.5s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.site-logo-wrapper::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFC44D, transparent);
    opacity: 0;
    transition: all var(--transition-normal);
}

.site-logo-wrapper:hover::after {
    opacity: 1;
    width: 100%;
}

.custom-logo {
    max-height: 90px;
    width: auto;
    height: auto;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 4px 8px rgba(255, 196, 77, 0.2));
}

.custom-logo-link:hover .custom-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(255, 196, 77, 0.35));
}

.site-branding-text {
    margin-top: 10px;
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 0%, #FFC44D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.site-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0 0;
    letter-spacing: 0.5px;
}

/* Navigation & Actions Container */
.header-nav-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.header-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    gap: 24px;
}

/* Main Navigation - Centered */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all var(--transition-normal);
    position: relative;
    border-radius: 6px;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 196, 77, 0.1), rgba(255, 196, 77, 0.05));
    border-radius: 6px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFC44D, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
}

.main-navigation a:hover::before {
    opacity: 1;
}

.main-navigation a:hover::after {
    transform: scaleX(1);
}

.main-navigation a:hover {
    color: #FFC44D;
    transform: translateY(-2px);
}

.main-navigation .current-menu-item>a,
.main-navigation .current-menu-ancestor>a {
    color: #FFC44D;
    background: rgba(255, 196, 77, 0.08);
}

.main-navigation .current-menu-item>a::after,
.main-navigation .current-menu-ancestor>a::after {
    transform: scaleX(1);
}

/* Header Actions - Enhanced */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.header-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 196, 77, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-normal), height var(--transition-normal);
}

.header-action-btn:hover::before {
    width: 100%;
    height: 100%;
}

.header-action-btn:hover {
    background: rgba(255, 196, 77, 0.15);
    border-color: rgba(255, 196, 77, 0.3);
    color: #FFC44D;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 196, 77, 0.2);
}

.header-action-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    position: relative;
    z-index: 1;
}

/* CTA Button - Enhanced */
.header-quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFC44D 0%, #e6b045 100%);
    color: #0F131A !important;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 196, 77, 0.3);
}

.header-quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.header-quote-btn:hover::before {
    left: 100%;
}

.header-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 196, 77, 0.5);
}

.btn-icon {
    display: inline-flex;
    transition: transform var(--transition-fast);
}

.header-quote-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Theme Toggle - Enchanced tiny icon */
.theme-toggle.header-action-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.theme-toggle.header-action-btn::before {
    display: none;
}

.theme-toggle.header-action-btn:hover {
    background: transparent;
    transform: scale(1.2) rotate(15deg);
    box-shadow: none;
    color: #FFC44D;
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    width: 22px;
    height: 22px;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* ===============================================
   HERO ENTRANCE ANIMATIONS
   =============================================== */

@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-title,
.hero-subtitle,
.wp-block-buttons {
    opacity: 0;
    animation: fadeInUpHero 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title {
    animation-delay: 0.3s;
}

.hero-subtitle {
    animation-delay: 0.6s;
}

.wp-block-buttons {
    animation-delay: 0.9s;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    margin: 5px 0;
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* ===============================================
   FOOTER ENHANCEMENTS
   =============================================== */

.site-footer {
    background: linear-gradient(135deg, #0F131A 0%, #1a1f2e 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFC44D, transparent);
}

.footer-top {
    padding: 60px 0 40px;
    position: relative;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px 35px;
}

/* Footer Widget Titles - Enhanced */
.footer-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #FFC44D 0%, transparent 40%) bottom left no-repeat;
    background-size: 100% 2px;
    letter-spacing: 0.5px;
    position: relative;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 196, 77, 0.15);
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.title-icon svg {
    width: 18px;
    height: 18px;
    fill: #FFC44D;
    stroke: #FFC44D;
}

.footer-widget:hover .title-icon {
    background: rgba(255, 196, 77, 0.25);
    transform: rotate(5deg) scale(1.1);
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .custom-logo {
    max-height: 55px;
    transition: all var(--transition-normal);
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(255, 196, 77, 0.2));
}

.footer-logo a:hover .custom-logo {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 4px 10px rgba(255, 196, 77, 0.4));
}

/* Footer Links - Enhanced */
.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
    transition: all var(--transition-fast);
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 4px 0;
}

.link-arrow {
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-normal);
    color: #FFC44D;
}

.footer-widget ul li a:hover {
    color: #FFC44D;
    padding-left: 12px;
}

.footer-widget ul li a:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact Items - Enhanced */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
    padding: 10px;
    border-radius: 8px;
    transition: all var(--transition-normal);
}

.footer-contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.footer-contact-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255, 196, 77, 0.15), rgba(255, 196, 77, 0.08));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.footer-contact-item:hover .footer-contact-icon {
    background: linear-gradient(135deg, rgba(255, 196, 77, 0.25), rgba(255, 196, 77, 0.15));
    transform: rotate(5deg);
}

.footer-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: #FFC44D;
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-fast);
}

.footer-contact-text a:hover {
    color: #FFC44D;
}

/* Footer Social - Enhanced */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #FFC44D;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-normal), height var(--transition-normal);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 196, 77, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.social-link:hover {
    color: #0F131A;
}

/* Newsletter Form - Enhanced */
.newsletter-input-wrapper {
    position: relative;
    display: flex;
    margin-top: 18px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-normal);
}

.newsletter-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FFC44D;
    box-shadow: 0 0 0 3px rgba(255, 196, 77, 0.1);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    font-size: 14px;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 25px 0 0 25px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: #FFC44D;
    color: #0F131A;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.newsletter-submit:hover {
    background: #e6b045;
    transform: scale(1.05);
}

.newsletter-submit svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* Footer Bottom - Enhanced */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copyright-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 196, 77, 0.15);
    border-radius: 50%;
    font-size: 12px;
    color: #FFC44D;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FFC44D;
    transition: width var(--transition-normal);
}

.footer-legal a:hover::after {
    width: 100%;
}

.footer-legal a:hover {
    color: #FFC44D;
}

.footer-bottom-social {
    display: flex;
    gap: 12px;
}

.social-link-bottom {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-link-bottom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #FFC44D;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.social-link-bottom:hover::before {
    width: 100%;
    height: 100%;
}

.social-link-bottom:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 196, 77, 0.3);
    color: #0F131A;
}

.social-link-bottom svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    position: relative;
    z-index: 1;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media screen and (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }

    .main-navigation ul {
        gap: 4px;
    }

    .main-navigation a {
        padding: 14px 16px;
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .header-nav-container {
        flex-wrap: wrap;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-branding-center {
        padding: 15px 0 12px;
    }

    .custom-logo {
        max-height: 50px;
    }

    .site-title {
        font-size: 22px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .header-actions {
        gap: 8px;
    }

    .header-quote-btn .btn-text {
        display: none;
    }

    .header-quote-btn {
        padding: 12px !important;
        border-radius: 50%;
        width: 42px;
        height: 42px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}