/* ==========================================================================
   Cherubs Toys - Global CRO Footer Styles
   Reference: code.html & DESIGN.md
   ========================================================================== */

/* 0. Material Symbols Outlined Icon Font Rule */
.material-symbols-outlined,
.cherubs-global-footer .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-size: 24px;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    display: inline-block !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    direction: ltr !important;
    -webkit-font-feature-settings: 'liga' 1 !important;
    font-feature-settings: 'liga' 1 !important;
    -webkit-font-smoothing: antialiased !important;
}

/* 1. Hide legacy Woodmart footer and prefooter */
footer.footer-container,
.footer-container,
.copyrights-wrapper,
.wd-prefooter,
.woodmart-prefooter {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
}

/* 2. Global Footer Container */
.cherubs-global-footer {
    position: relative !important;
    width: 100% !important;
    z-index: 20 !important;
    color: #0e1d25 !important;
    margin-top: 40px !important;
    font-family: 'Nunito Sans', 'Nunito', sans-serif !important;
    clear: both !important;
    overflow-x: clip !important;
}

/* 3. Scenic Storybook Hills SVG Divider */
.cherubs-footer-scenic-divider {
    width: 100% !important;
    overflow: hidden !important;
    line-height: 0 !important;
    margin-bottom: -1px !important;
    position: relative !important;
    pointer-events: none !important;
}

/* Show desktop landscape by default (>= 769px), hide on mobile */
.cherubs-footer-hills-desktop {
    display: block !important;
    width: 100% !important;
    height: 145px !important;
    object-fit: cover !important;
}
.cherubs-footer-hills-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .cherubs-global-footer {
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    .cherubs-footer-content {
        padding-bottom: 74px !important;
    }
    .scrollToTop {
        display: none !important;
    }
    /* Safe positioning for Chaty on mobile when bottom navigation toolbar is active */
    body.sticky-toolbar-on:not(.woocommerce-cart):not(.page-id-60) .chaty-widget,
    body.sticky-toolbar-on:not(.woocommerce-cart):not(.page-id-60) div[class*="chaty"].chaty-widget {
        bottom: 74px !important;
        right: 12px !important;
    }
    body.sticky-toolbar-on:not(.woocommerce-cart):not(.page-id-60) .chaty .on-hover-text,
    body.sticky-toolbar-on:not(.woocommerce-cart):not(.page-id-60) .chaty-tooltip:after {
        display: none !important;
    }
    .cherubs-footer-hills-desktop {
        display: none !important;
    }
    .cherubs-footer-hills-mobile {
        display: block !important;
        width: 100% !important;
        height: 80px !important;
        object-fit: cover !important;
    }
    .cherubs-footer-hills-mobile .cherubs-tree-left {
        transform-origin: 38px 70px !important;
    }
    .cherubs-footer-hills-mobile .cherubs-tree-right {
        transform-origin: 348px 70px !important;
    }
}

/* 4. Storybook Micro-Animations */
@keyframes cherubsTreeSwayLeft {
    0%, 100% { transform: rotate(0deg); transform-origin: bottom center; }
    50% { transform: rotate(-3deg); transform-origin: bottom center; }
}

@keyframes cherubsTreeSwayRight {
    0%, 100% { transform: rotate(0deg); transform-origin: bottom center; }
    50% { transform: rotate(3.5deg); transform-origin: bottom center; }
}

@keyframes cherubsBearPeek {
    0%, 100% { transform: translateY(0px); }
    40% { transform: translateY(-7px); }
    60% { transform: translateY(-5px); }
}

@keyframes cherubsFloatGentle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1.5deg); }
}

.cherubs-tree-left {
    animation: cherubsTreeSwayLeft 6s ease-in-out infinite;
    transform-origin: bottom center;
}

.cherubs-tree-right {
    animation: cherubsTreeSwayRight 7s ease-in-out 1s infinite;
    transform-origin: bottom center;
}

.cherubs-bear-peek {
    animation: cherubsBearPeek 4s ease-in-out infinite;
}

/* 5. Main Footer Content Body */
.cherubs-footer-content {
    width: 100% !important;
    background: #daebf5 !important;
    padding-top: 24px !important;
    padding-bottom: 32px !important;
    box-shadow: 0 -6px 20px rgba(0, 104, 117, 0.05) !important;
    box-sizing: border-box !important;
}

.cherubs-footer-container {
    width: 100% !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .cherubs-footer-container {
        padding: 0 16px !important;
    }
}

/* 6. Footer 4-Column Grid */
.cherubs-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 32px !important;
    margin-bottom: 36px !important;
}

@media (max-width: 1024px) {
    .cherubs-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px !important;
    }
}

@media (max-width: 640px) {
    .cherubs-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}

.cherubs-footer-col {
    display: flex !important;
    flex-direction: column !important;
}

/* Column 1: Brand Mascot */
.cherubs-footer-brand {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 14px !important;
}

.cherubs-footer-brand a {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

.cherubs-footer-logo-img {
    height: 70px !important;
    width: auto !important;
    max-width: 260px !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.25s ease !important;
}

.cherubs-footer-logo-img:hover {
    transform: scale(1.04) !important;
}

.cherubs-footer-desc {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #3c494b !important;
    margin: 0 0 14px 0 !important;
}

.cherubs-footer-certified {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #006d43 !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* Column Headings */
.cherubs-footer-heading {
    font-family: 'Quicksand', 'Fredoka', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0e1d25 !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.cherubs-footer-icon-accent {
    font-size: 16px !important;
    color: #006875 !important;
}

/* Links List */
.cherubs-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.cherubs-footer-links li {
    margin: 0 !important;
    padding: 0 !important;
}

.cherubs-footer-links a {
    font-size: 13.5px !important;
    color: #3c494b !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.cherubs-footer-links a:hover {
    color: #006875 !important;
    transform: translateX(4px) !important;
}

/* Contact Info Items */
.cherubs-footer-contact-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #3c494b !important;
    margin: 0 0 10px 0 !important;
}

.cherubs-footer-contact-item .material-symbols-outlined {
    font-size: 18px !important;
    color: #006875 !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.cherubs-footer-contact-item a {
    color: #3c494b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.cherubs-footer-contact-item a:hover {
    color: #006875 !important;
}

/* Cherubs Club Form */
.cherubs-footer-club-form {
    margin: 0 !important;
    width: 100% !important;
}

.cherubs-footer-input-group {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
}

.cherubs-footer-input {
    flex: 1 !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 8px 14px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    color: #0e1d25 !important;
    border: 1px solid rgba(188, 201, 204, 0.4) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.cherubs-footer-input:focus {
    border-color: #006875 !important;
    box-shadow: 0 0 0 2px rgba(14, 180, 201, 0.3) !important;
}

.cherubs-footer-btn-join {
    background: #895100 !important;
    color: #ffffff !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 9999px !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.cherubs-footer-btn-join:hover {
    background: #563100 !important;
    transform: scale(1.05) !important;
}

.cherubs-footer-club-alert {
    margin-top: 8px !important;
    font-size: 12px !important;
    color: #006d43 !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

/* 7. Sub-Footer Bottom Bar */
.cherubs-footer-bottom {
    padding-top: 18px !important;
    border-top: 1px solid rgba(188, 201, 204, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.cherubs-footer-copyright {
    font-size: 13px !important;
    color: #3c494b !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.cherubs-footer-heart {
    color: #ba1a1a !important;
    font-size: 14px !important;
    display: inline-block !important;
}

.cherubs-footer-copyright a {
    color: #0e1d25 !important;
    text-decoration: none !important;
}

.cherubs-footer-copyright a:hover {
    color: #006875 !important;
    text-decoration: underline !important;
}

.cherubs-footer-trust-pills {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.cherubs-footer-market-label {
    font-family: 'Fredoka', 'Quicksand', 'Nunito', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
}

.cherubs-footer-badges-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.cherubs-footer-badge-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 6px 14px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.cherubs-footer-badge-card:hover {
    transform: translateY(-2px) !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.cherubs-ftr-badge {
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.cherubs-ftr-badge.amz {
    height: 32px !important;
    max-width: 115px !important;
}

.cherubs-ftr-badge.fk {
    height: 36px !important;
    max-width: 105px !important;
}

@media (max-width: 768px) {
    .cherubs-footer-logo-img {
        height: 56px !important;
        max-width: 210px !important;
    }
    .cherubs-footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
}


.cherubs-footer-market-badges {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(188, 201, 204, 0.4) !important;
    height: 28px !important;
    box-sizing: border-box !important;
}
.cherubs-ftr-badge {
    height: 18px !important;
    width: auto !important;
    max-width: 65px !important;
    object-fit: contain !important;
    display: block !important;
}


/* ==========================================================================
   10X Social Community Showcase Banner & Video Channels
   ========================================================================== */
.cherubs-footer-community-banner {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 32px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 4px 24px rgba(2, 132, 199, 0.08);
    border: 1.5px solid #e0f2fe;
}

.cherubs-comm-banner-left {
    max-width: 440px;
}

.cherubs-comm-badge-pill {
    display: inline-flex;
    align-items: center;
    background: #f0fdf4;
    color: #16a34a;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #bbf7d0;
    margin-bottom: 10px;
}

.cherubs-comm-heading {
    font-family: 'Fredoka', 'Quicksand', sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0e1d25 !important;
    line-height: 1.3 !important;
    margin: 0 0 8px !important;
}

.cherubs-comm-sub {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.cherubs-comm-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 280px);
    gap: 16px;
    flex-shrink: 0;
}

.cherubs-sfc-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cherubs-sfc-card.sfc-insta:hover {
    border-color: #f472b6;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(219, 39, 119, 0.15);
}

.cherubs-sfc-card.sfc-yt:hover {
    border-color: #fca5a5;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.15);
}

.cherubs-sfc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cherubs-sfc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.cherubs-sfc-icon.insta {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.cherubs-sfc-icon.yt {
    background: #ff0000;
}

.cherubs-sfc-icon svg {
    width: 18px;
    height: 18px;
}

.cherubs-sfc-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    border-radius: 4px;
    padding: 1px 6px;
    margin-bottom: 2px;
}

.cherubs-sfc-badge.insta {
    background: #fdf2f8;
    color: #db2777;
}

.cherubs-sfc-badge.yt {
    background: #fef2f2;
    color: #dc2626;
}

.cherubs-sfc-name {
    display: block;
    font-family: 'Fredoka', 'Quicksand', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #0e1d25;
    line-height: 1.2;
}

.cherubs-sfc-copy {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 12px;
    flex-grow: 1;
}

.cherubs-sfc-action {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 7px 12px;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.cherubs-sfc-action.insta {
    background: #fdf2f8;
    color: #be185d;
}

.cherubs-sfc-card.sfc-insta:hover .cherubs-sfc-action.insta {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #ffffff;
}

.cherubs-sfc-action.yt {
    background: #fef2f2;
    color: #b91c1c;
}

.cherubs-sfc-card.sfc-yt:hover .cherubs-sfc-action.yt {
    background: #ff0000;
    color: #ffffff;
}

/* Col 1 Quick Social Follow Icons */
.cherubs-footer-social-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.cherubs-fs-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.cherubs-fs-link {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cherubs-fs-link svg {
    width: 14px;
    height: 14px;
}

.cherubs-fs-link.insta {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.cherubs-fs-link.insta:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(221, 42, 123, 0.4);
}

.cherubs-fs-link.yt {
    background: #ff0000;
}

.cherubs-fs-link.yt:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(255, 0, 0, 0.4);
}

.cherubs-fs-link.wa {
    background: #25d366;
}

.cherubs-fs-link.wa:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.4);
}

@media (max-width: 900px) {
    .cherubs-footer-community-banner {
        flex-direction: column;
        padding: 22px 20px;
    }
    .cherubs-comm-banner-left {
        max-width: 100%;
        text-align: center;
    }
    .cherubs-comm-cards-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
