/**
 * Premium Custom Footer Styles
 * Matches the Premium Header Design System
 * 
 * PREMIUM PSYCHOLOGY PRINCIPLES APPLIED:
 * 1. Generous whitespace = exclusivity & luxury
 * 2. Gold accents = wealth, success, prestige
 * 3. Serif fonts (Playfair) = tradition, trust, sophistication
 * 4. Subtle animations = attention to detail, craftsmanship
 * 5. High contrast = confidence, clarity, authority
 * 6. Micro-interactions = premium feel, responsiveness
 * 
 * NOTE: This file extends the CSS variables from custom-header.css
 * Ensure custom-header.css is loaded first, or include the variables below
 */

/* ============================================
   CSS Variables (Fallback if header not loaded)
   ============================================ */
:root {
    /* Primary Colors */
    --premium-dark: #1F2229;
    --premium-navy: #132238;
    --premium-gold: #D4AF37;
    --premium-gold-light: #E8C860;
    --premium-gold-dark: #B8962E;
    --premium-white: #FFFFFF;
    --premium-cream: #FDFCFA;
    --premium-lavender: #FFF0F5;
    --premium-text: #333333;
    --premium-text-light: #5A5A5A;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Premium Transitions */
    --transition-elegant: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Premium Shadows */
    --shadow-elegant: 0 8px 40px rgba(19, 34, 56, 0.1);
    --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.25);
}

/* ============================================
   Footer Base - Premium Foundation
   ============================================ */
.cgib-premium-footer {
    position: relative !important;
    background: linear-gradient(180deg, var(--premium-cream) 0%, var(--premium-white) 100%) !important;
    font-family: var(--font-body) !important;
    overflow: hidden !important;
}

.cgib-premium-footer::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('../img/bg-waves.svg') !important;
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    opacity: 0.3 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Premium Gold Accent Line - Top of Footer */
.cgib-footer-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--premium-navy) 0%,
            var(--premium-gold) 35%,
            var(--premium-gold-light) 50%,
            var(--premium-gold) 65%,
            var(--premium-navy) 100%);
    background-size: 200% 100%;
    animation: shimmer 8s ease-in-out infinite;
}

/* Bottom Gold Accent Line */
.cgib-footer-bottom-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--premium-navy) 0%,
            var(--premium-gold) 35%,
            var(--premium-gold-light) 50%,
            var(--premium-gold) 65%,
            var(--premium-navy) 100%);
    background-size: 200% 100%;
    animation: shimmer 8s ease-in-out infinite reverse;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 200% 0;
    }

    50% {
        background-position: -200% 0;
    }
}

/* ============================================
   Footer Container - Luxurious Spacing
   ============================================ */
.cgib-footer-container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 60px !important;
}

.cgib-footer-main {
    padding: 80px 0 60px;
    position: relative !important;
    z-index: 2 !important;
}

/* ============================================
   Footer Grid - Premium Layout
   ============================================ */
.cgib-footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr !important;
    gap: 60px !important;
}

/* ============================================
   Footer Columns - Staggered Animation
   ============================================ */
.cgib-footer-column {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--transition-elegant);
}

.cgib-footer-column.cgib-column-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Brand Column - Logo & Description
   ============================================ */
.cgib-footer-brand {
    margin-bottom: 24px !important;
}

.cgib-footer-logo-link {
    display: inline-block !important;
    transition: all 0.4s var(--transition-elegant) !important;
}

.cgib-footer-logo-link:hover {
    transform: translateY(-2px) !important;
}

.cgib-footer-logo {
    max-height: 55px !important;
    width: auto !important;
    transition: all 0.4s var(--transition-elegant) !important;
}

.cgib-footer-tagline {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: var(--premium-text-light) !important;
    margin-bottom: 28px !important;
    max-width: 320px !important;
}

/* ============================================
   Social Links - Premium Icons
   ============================================ */
.cgib-footer-social {
    display: flex !important;
    gap: 12px !important;
}

.cgib-social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: var(--premium-navy) !important;
    color: var(--premium-white) !important;
    border-radius: 12px !important;
    transition: all 0.4s var(--transition-elegant) !important;
    position: relative !important;
    overflow: hidden !important;
}

.cgib-social-link::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(145deg, var(--premium-gold) 0%, var(--premium-gold-dark) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.cgib-social-link svg {
    position: relative !important;
    z-index: 1 !important;
    transition: transform 0.4s var(--transition-elegant) !important;
}

.cgib-social-link:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-gold) !important;
}

.cgib-social-link:hover::before {
    opacity: 1 !important;
}

.cgib-social-link:hover svg {
    transform: scale(1.1) !important;
}

/* ============================================
   Footer Headings - Elegant Typography
   ============================================ */
.cgib-footer-heading {
    font-family: var(--font-display) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--premium-navy) !important;
    margin-bottom: 28px !important;
    position: relative !important;
    padding-bottom: 14px !important;
    letter-spacing: 0.3px !important;
}

.cgib-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--premium-gold), var(--premium-gold-light));
    transition: width 0.4s var(--transition-elegant);
}

.cgib-footer-column:hover .cgib-footer-heading::after {
    width: 60px;
}

/* ============================================
   Footer Navigation Links
   ============================================ */
.cgib-footer-nav {
    margin: 0 !important;
}

.cgib-footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cgib-footer-links li {
    margin-bottom: 14px !important;
}

.cgib-footer-links li:last-child {
    margin-bottom: 0 !important;
}

.cgib-footer-link {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--premium-text) !important;
    text-decoration: none !important;
    position: relative !important;
    display: inline-block !important;
    padding: 4px 0 !important;
    transition: all 0.3s var(--transition-elegant) !important;
}

/* Premium underline effect */
.cgib-footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--premium-gold);
    transition: width 0.4s var(--transition-elegant);
}

.cgib-footer-link:hover {
    color: var(--premium-gold-dark);
    transform: translateX(6px);
}

.cgib-footer-link:hover::before {
    width: 100%;
}

/* ============================================
   Contact Information - Premium Style
   ============================================ */
.cgib-footer-contact {
    font-style: normal;
}

.cgib-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    text-decoration: none !important;
    color: var(--premium-text) !important;
    transition: all 0.3s var(--transition-elegant) !important;
}

.cgib-contact-item:last-child {
    margin-bottom: 0 !important;
}

.cgib-contact-icon {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(145deg, var(--premium-navy) 0%, var(--premium-dark) 100%) !important;
    color: var(--premium-gold) !important;
    border-radius: 10px !important;
    transition: all 0.4s var(--transition-elegant) !important;
    box-shadow: 0 4px 12px rgba(19, 34, 56, 0.15) !important;
}

.cgib-contact-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--premium-text);
    padding-top: 8px;
    transition: color 0.3s ease;
}

a.cgib-contact-item:hover {
    transform: translateX(4px);
}

a.cgib-contact-item:hover .cgib-contact-icon {
    background: linear-gradient(145deg, var(--premium-gold) 0%, var(--premium-gold-dark) 100%);
    color: var(--premium-white);
    box-shadow: var(--shadow-gold);
}

a.cgib-contact-item:hover .cgib-contact-text {
    color: var(--premium-gold-dark);
}

.cgib-contact-address {
    cursor: default;
}

.cgib-contact-address .cgib-contact-text {
    max-width: 260px;
}

/* ============================================
   Footer Bottom Bar
   ============================================ */
.cgib-footer-bottom {
    background: var(--premium-navy) !important;
    padding: 24px 0 !important;
    position: relative !important;
    z-index: 2 !important;
}

.cgib-footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cgib-copyright {
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0 !important;
}

.cgib-copyright .cgib-brand-name {
    color: var(--premium-gold) !important;
    font-weight: 600 !important;
}

.cgib-crafted-text {
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 !important;
}

.cgib-crafted-text .cgib-heart {
    color: var(--premium-gold);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ============================================
   Footer Visible Animation
   ============================================ */
.cgib-premium-footer {
    opacity: 0;
    transition: opacity 0.6s var(--transition-elegant);
}

.cgib-premium-footer.cgib-footer-visible {
    opacity: 1;
}


/* ============================================
   Responsive Breakpoints - Premium at All Sizes
   ============================================ */

/* Large Desktop */
@media (max-width: 1280px) {
    .cgib-footer-container {
        padding: 0 40px;
    }

    .cgib-footer-main {
        padding: 70px 0 50px;
    }

    .cgib-footer-grid {
        gap: 45px;
    }

    .cgib-footer-tagline {
        max-width: 280px;
    }
}

/* Desktop */
@media (max-width: 1100px) {
    .cgib-footer-container {
        padding: 0 30px !important;
    }

    .cgib-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important;
        gap: 35px !important;
    }

    .cgib-footer-heading {
        font-size: 1.15rem !important;
        margin-bottom: 24px !important;
    }

    .cgib-footer-link {
        font-size: 0.95rem !important;
    }

    .cgib-contact-text {
        font-size: 0.9rem !important;
    }

    .cgib-contact-address .cgib-contact-text {
        max-width: 220px !important;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .cgib-footer-container {
        padding: 0 30px;
    }

    .cgib-footer-main {
        padding: 55px 0 45px;
    }

    .cgib-footer-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 40px 30px !important;
    }

    /* Brand column spans full width on tablet */
    .cgib-footer-brand-column {
        grid-column: 1 / -1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
        margin-bottom: 10px;
    }

    .cgib-footer-tagline {
        max-width: 500px;
        text-align: center;
    }

    .cgib-footer-social {
        justify-content: center;
    }

    /* Other columns stay left-aligned */
    .cgib-footer-column:not(.cgib-footer-brand-column) {
        text-align: left;
    }

    .cgib-footer-column:not(.cgib-footer-brand-column) .cgib-footer-heading::after {
        left: 0;
        transform: none;
    }

    .cgib-footer-heading {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .cgib-footer-link {
        font-size: 0.95rem;
    }

    .cgib-contact-address .cgib-contact-text {
        max-width: 240px;
    }

    .cgib-footer-bottom-content {
        justify-content: center;
        text-align: center;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .cgib-premium-footer {
        background-size: 150% auto !important;
        background-position: center bottom !important;
    }

    .cgib-footer-container {
        padding: 0 24px;
    }

    .cgib-footer-main {
        padding: 50px 0 40px;
    }

    /* 2 columns for link sections, centered */
    .cgib-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 35px 40px !important;
        justify-items: center !important;
    }

    .cgib-footer-brand-column {
        padding-bottom: 25px;
    }

    /* CGIB Institute and Support columns - everything centered */
    .cgib-footer-column:not(.cgib-footer-brand-column):not(.cgib-footer-contact-column) {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Heading centered */
    .cgib-footer-column:not(.cgib-footer-brand-column):not(.cgib-footer-contact-column) .cgib-footer-heading {
        text-align: center;
    }

    .cgib-footer-column:not(.cgib-footer-brand-column):not(.cgib-footer-contact-column) .cgib-footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Links centered */
    .cgib-footer-column:not(.cgib-footer-brand-column):not(.cgib-footer-contact-column) .cgib-footer-nav {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cgib-footer-column:not(.cgib-footer-brand-column):not(.cgib-footer-contact-column) .cgib-footer-links {
        align-items: center;
    }

    /* Contact column spans full width */
    .cgib-footer-contact-column {
        grid-column: 1 / -1;
        padding-top: 25px;
        border-top: 1px solid rgba(212, 175, 55, 0.15);
        margin-top: 5px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Contact heading centered */
    .cgib-footer-contact-column .cgib-footer-heading {
        text-align: center;
    }

    .cgib-footer-contact-column .cgib-footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Contact items - aligned left edge for all items */
    .cgib-footer-contact {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cgib-footer-contact-column .cgib-contact-item {
        justify-content: flex-start;
        width: 100%;
        max-width: 340px;
    }

    .cgib-footer-contact-column .cgib-contact-text {
        flex: 1;
    }

    .cgib-footer-contact-column .cgib-contact-address .cgib-contact-text {
        max-width: 280px;
    }

    .cgib-footer-logo {
        max-height: 48px;
    }

    .cgib-footer-tagline {
        font-size: 0.95rem;
        max-width: 420px;
    }

    .cgib-social-link {
        width: 44px;
        height: 44px;
    }

    .cgib-footer-heading {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    .cgib-footer-links {
        display: flex;
        flex-direction: column;
    }

    .cgib-footer-links li {
        margin-bottom: 12px;
    }

    .cgib-footer-link {
        font-size: 0.95rem;
        padding: 6px 0;
    }

    .cgib-contact-icon {
        width: 38px;
        height: 38px;
    }

    .cgib-contact-text {
        font-size: 0.9rem;
        padding-top: 7px;
    }

    .cgib-contact-item {
        gap: 12px;
        margin-bottom: 16px;
    }

    .cgib-footer-bottom {
        padding: 20px 0;
    }

    .cgib-footer-bottom-content {
        flex-direction: column;
        gap: 8px;
    }

    .cgib-copyright,
    .cgib-crafted-text {
        font-size: 0.85rem;
    }
}

/* Mobile Large */
@media (max-width: 576px) {
    .cgib-premium-footer {
        background-size: 200% auto !important;
        background-position: center bottom !important;
    }

    .cgib-footer-container {
        padding: 0 20px;
    }

    .cgib-footer-main {
        padding: 45px 0 35px;
    }

    /* Single column layout */
    .cgib-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* All columns centered */
    .cgib-footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cgib-footer-brand-column {
        padding-bottom: 28px;
        margin-bottom: 0;
    }

    .cgib-footer-contact-column {
        padding-top: 28px;
        margin-top: 0;
    }

    /* All headings left-aligned, positioned to align with content below */
    .cgib-footer-column:not(.cgib-footer-brand-column) .cgib-footer-heading {
        width: auto;
        text-align: left;
    }

    .cgib-footer-column:not(.cgib-footer-brand-column) .cgib-footer-heading::after {
        left: 0;
        transform: none;
    }

    .cgib-footer-column:hover .cgib-footer-heading::after {
        width: 50px;
    }

    /* Nav and links wrapper */
    .cgib-footer-nav {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .cgib-footer-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .cgib-footer-link {
        padding: 8px 0;
    }

    .cgib-footer-link:hover {
        transform: translateY(-2px);
    }

    .cgib-footer-link::before {
        left: 0;
        transform: none;
        width: 0;
    }

    .cgib-footer-link:hover::before {
        width: 100%;
    }

    /* Contact section wrapper - centered in column */
    .cgib-footer-contact-column .cgib-footer-heading {
        width: auto;
        text-align: left;
    }

    /* Contact items - horizontal layout (icon + text side by side), left-aligned */
    .cgib-footer-contact {
        display: inline-flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cgib-contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }

    .cgib-contact-text {
        padding-top: 8px;
    }

    .cgib-contact-address .cgib-contact-text,
    .cgib-footer-contact-column .cgib-contact-address .cgib-contact-text {
        max-width: 260px;
    }

    a.cgib-contact-item:hover {
        transform: translateX(4px);
    }

    .cgib-footer-logo {
        max-height: 48px;
    }

    .cgib-footer-tagline {
        font-size: 0.9rem;
        max-width: 320px;
        margin-bottom: 24px;
    }

    .cgib-social-link {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .cgib-footer-social {
        gap: 14px;
    }

    .cgib-footer-heading {
        font-size: 1.15rem;
        margin-bottom: 20px;
    }

    .cgib-footer-links li {
        margin-bottom: 8px;
    }

    .cgib-footer-link {
        font-size: 1rem;
    }

    .cgib-contact-icon {
        width: 42px;
        height: 42px;
    }

    .cgib-contact-text {
        font-size: 0.95rem;
    }

    .cgib-footer-bottom {
        padding: 18px 0;
    }

    .cgib-footer-bottom-content {
        gap: 6px;
    }

    .cgib-copyright {
        font-size: 0.85rem;
    }

    .cgib-crafted-text {
        font-size: 0.8rem;
    }
}

/* Mobile Small */
@media (max-width: 400px) {
    .cgib-premium-footer {
        background-size: 250% auto !important;
        background-position: center bottom !important;
    }

    .cgib-footer-container {
        padding: 0 16px;
    }

    .cgib-footer-main {
        padding: 40px 0 30px;
    }

    .cgib-footer-grid {
        gap: 28px;
    }

    .cgib-footer-brand-column {
        padding-bottom: 24px;
    }

    .cgib-footer-contact-column {
        padding-top: 24px;
    }

    .cgib-footer-logo {
        max-height: 48px;
    }

    .cgib-footer-tagline {
        font-size: 0.875rem;
        max-width: 280px;
        margin-bottom: 22px;
        line-height: 1.6;
    }

    .cgib-footer-heading {
        font-size: 1.1rem;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .cgib-footer-links li {
        margin-bottom: 6px;
    }

    .cgib-footer-link {
        font-size: 0.95rem;
        padding: 6px 0;
    }

    .cgib-social-link {
        width: 44px;
        height: 44px;
    }

    .cgib-social-link svg {
        width: 18px;
        height: 18px;
    }

    .cgib-contact-icon {
        width: 40px;
        height: 40px;
    }

    .cgib-contact-icon svg {
        width: 16px;
        height: 16px;
    }

    .cgib-contact-text {
        font-size: 0.9rem;
    }

    .cgib-contact-address .cgib-contact-text {
        max-width: 260px;
    }

    .cgib-footer-bottom {
        padding: 16px 0;
    }

    .cgib-copyright {
        font-size: 0.8rem;
    }

    .cgib-crafted-text {
        font-size: 0.75rem;
    }
}

/* Extra Small */
@media (max-width: 350px) {
    .cgib-premium-footer {
        background-size: 300% auto !important;
        background-position: center bottom !important;
    }

    .cgib-footer-container {
        padding: 0 14px;
    }

    .cgib-footer-main {
        padding: 35px 0 25px;
    }

    .cgib-footer-grid {
        gap: 24px;
    }

    .cgib-footer-logo {
        max-height: 48px;
    }

    .cgib-footer-tagline {
        font-size: 0.85rem;
        max-width: 250px;
    }

    .cgib-footer-heading {
        font-size: 1.05rem;
        margin-bottom: 16px;
    }

    .cgib-footer-link {
        font-size: 0.9rem;
    }

    .cgib-social-link {
        width: 42px;
        height: 42px;
    }

    .cgib-contact-icon {
        width: 38px;
        height: 38px;
    }

    .cgib-contact-text {
        font-size: 0.85rem;
    }

    .cgib-contact-address .cgib-contact-text {
        max-width: 240px;
    }

    .cgib-copyright {
        font-size: 0.75rem;
    }

    .cgib-crafted-text {
        font-size: 0.7rem;
    }
}

/* ============================================
   Accessibility & Focus States
   ============================================ */
.cgib-footer-logo-link:focus-visible,
.cgib-social-link:focus-visible,
.cgib-footer-link:focus-visible,
.cgib-contact-item:focus-visible {
    outline: 3px solid var(--premium-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Skip link for footer navigation */
.cgib-footer-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--premium-gold);
    color: var(--premium-navy);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
}

.cgib-footer-skip-link:focus {
    top: 0;
}

/* ============================================
   Reduced Motion - Respect User Preferences
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cgib-footer-accent-line,
    .cgib-footer-bottom-accent {
        animation: none;
    }

    .cgib-footer-column {
        opacity: 1;
        transform: none;
    }

    .cgib-premium-footer {
        opacity: 1;
    }

    .cgib-crafted-text .cgib-heart {
        animation: none;
    }
}

/* ============================================
   High Contrast Mode
   ============================================ */
@media (prefers-contrast: high) {
    .cgib-premium-footer {
        background: var(--premium-white);
    }

    .cgib-footer-accent-line,
    .cgib-footer-bottom-accent {
        height: 5px;
        background: var(--premium-gold);
    }

    .cgib-footer-heading::after {
        height: 3px;
    }

    .cgib-footer-link::before {
        height: 3px;
    }

    .cgib-footer-bottom {
        border-top: 3px solid var(--premium-gold);
    }

    .cgib-social-link {
        border: 2px solid var(--premium-gold);
    }

    .cgib-contact-icon {
        border: 2px solid var(--premium-gold);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .cgib-premium-footer {
        background: none;
        color: #000;
        page-break-inside: avoid;
    }

    .cgib-footer-accent-line,
    .cgib-footer-bottom-accent {
        display: none;
    }

    .cgib-footer-main {
        padding: 30px 0;
    }

    .cgib-footer-grid {
        display: block;
    }

    .cgib-footer-column {
        opacity: 1;
        transform: none;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .cgib-footer-brand-column {
        text-align: left;
    }

    .cgib-footer-social {
        display: none;
    }

    .cgib-footer-logo {
        max-height: 40px;
    }

    .cgib-footer-heading {
        color: #000;
        border-bottom: 1px solid #000;
        padding-bottom: 8px;
    }

    .cgib-footer-heading::after {
        display: none;
    }

    .cgib-footer-link,
    .cgib-contact-text {
        color: #000;
    }

    .cgib-footer-link::before {
        display: none;
    }

    .cgib-contact-icon {
        display: none;
    }

    .cgib-contact-item {
        gap: 0;
    }

    .cgib-footer-bottom {
        background: none;
        border-top: 2px solid #000;
        padding: 15px 0;
    }

    .cgib-copyright,
    .cgib-crafted-text {
        color: #000;
    }

    .cgib-copyright .cgib-brand-name {
        color: #000;
        font-weight: bold;
    }

    .cgib-crafted-text .cgib-heart {
        color: #000;
        animation: none;
    }
}

/* ============================================
   WordPress Specific Overrides
   ============================================ */
.cgib-premium-footer .custom-logo {
    max-height: 55px;
    width: auto;
    height: auto;
}

/* Admin Bar Adjustment - Footer at bottom, no adjustment needed */

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.site-content,
#content,
.content-area {
    flex: 1;
}

.cgib-premium-footer {
    margin-top: auto;
}