/* ============================================
   Global Custom Footer Styles
   ============================================ */

/* Hide default Blocksy footer globally */
footer.ct-footer,
.site-footer,
footer[data-id] {
    display: none !important;
}

/* ============================================
   Custom Footer Variables
   ============================================ */
.custom-global-footer {
    --footer-bg: linear-gradient(180deg, #1A1A2E 0%, #0F0F1A 100%);
    --footer-text: #FFFFFF;
    --footer-text-muted: rgba(255, 255, 255, 0.7);
    --footer-text-subtle: rgba(255, 255, 255, 0.5);
    --footer-accent: #FF6B35;
    --footer-accent-light: #FF8B5E;
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-container-width: 1280px;
}

/* ============================================
   Footer Base
   ============================================ */
.custom-global-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.custom-global-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--footer-accent), #FFB800, var(--footer-accent));
}

.custom-global-footer a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Footer Main Content
   ============================================ */
.custom-global-footer .footer-main {
    padding: 5rem 2rem 3rem;
}

.custom-global-footer .footer-container {
    max-width: var(--footer-container-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: flex-start;
}

/* ALL sections take equal space - including brand */
.custom-global-footer .footer-links,
.custom-global-footer .footer-contact,
.custom-global-footer .footer-extra,
.custom-global-footer .footer-brand {
    flex: 1 1 0;
    min-width: 0;
}

/* ============================================
   Brand Column
   ============================================ */
.custom-global-footer .footer-brand {
    padding-left: 2rem;
    text-align: right;
}

.custom-global-footer .footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.custom-global-footer .footer-logo-text {
    margin-bottom: 1rem;
}

.custom-global-footer .footer-brand-icon {
    font-size: clamp(2rem, 4vw, 3rem);
}

.custom-global-footer .footer-brand-name {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--footer-text);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.custom-global-footer .footer-tagline {
    display: block;
    font-size: 0.85rem;
    color: var(--footer-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.custom-global-footer .footer-description {
    font-size: 0.9rem;
    color: var(--footer-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ============================================
   Footer Social
   ============================================ */
.custom-global-footer .footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.custom-global-footer .footer-social .social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    transition: all 0.3s ease;
}

.custom-global-footer .footer-social .social-link svg {
    width: 18px;
    height: 18px;
}

.custom-global-footer .footer-social .social-link:hover {
    background: var(--footer-accent);
    color: var(--footer-text);
    transform: translateY(-3px);
}

/* ============================================
   Footer Headings
   ============================================ */
.custom-global-footer .footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--footer-text);
    margin: 0 0 1.25rem 0;
    position: relative;
    padding-bottom: 0.75rem;
}

.custom-global-footer .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--footer-accent);
    border-radius: 2px;
}

/* ============================================
   Footer Navigation
   ============================================ */
.custom-global-footer .footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-global-footer .footer-nav li {
    margin-bottom: 0.75rem;
}

.custom-global-footer .footer-nav a {
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-global-footer .footer-nav a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--footer-accent);
    transition: width 0.3s ease;
}

.custom-global-footer .footer-nav a:hover {
    color: var(--footer-text);
    transform: translateX(5px);
}

.custom-global-footer .footer-nav a:hover::before {
    width: 15px;
}

/* ============================================
   Contact List
   ============================================ */
.custom-global-footer .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-global-footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--footer-text-muted);
}

.custom-global-footer .contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--footer-accent);
    margin-top: 2px;
}

.custom-global-footer .contact-item a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-global-footer .contact-item a:hover {
    color: var(--footer-accent);
}

/* ============================================
   Footer Bottom
   ============================================ */
.custom-global-footer .footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--footer-border);
}

.custom-global-footer .footer-bottom-container {
    max-width: var(--footer-container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-global-footer .copyright,
.custom-global-footer .credit {
    font-size: 0.85rem;
    color: var(--footer-text-subtle);
    margin: 0;
}

.custom-global-footer .credit {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 992px) {
    .custom-global-footer .footer-container {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    /* All sections take equal flex on tablet */
    .custom-global-footer .footer-links,
    .custom-global-footer .footer-contact,
    .custom-global-footer .footer-extra,
    .custom-global-footer .footer-brand {
        flex: 1 1 200px;
        min-width: 180px;
        text-align: center;
    }
    
    .custom-global-footer .footer-brand {
        padding-left: 0;
    }
    
    .custom-global-footer .footer-social {
        justify-content: center;
    }
    
    .custom-global-footer .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .custom-global-footer .footer-nav a::before {
        display: none;
    }
    
    .custom-global-footer .footer-nav a:hover {
        transform: none;
    }
    
    .custom-global-footer .contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .custom-global-footer .footer-main {
        padding: 3rem 1.5rem 2rem;
    }
    
    .custom-global-footer .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Each section takes full width on mobile and stacks */
    .custom-global-footer .footer-links,
    .custom-global-footer .footer-contact,
    .custom-global-footer .footer-extra,
    .custom-global-footer .footer-brand {
        flex: none;
        width: 100%;
    }
    
    .custom-global-footer .footer-brand-name {
        font-size: 1.25rem;
    }
    
    .custom-global-footer .footer-heading {
        text-align: center;
    }
    
    .custom-global-footer .footer-bottom-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

