/* BloomLab Footer Styles - Dark Teal Theme (#1A4B52) */
:root {
    --bloom-footer-bg: #1A4B52;
    --bloom-footer-deep: #133A40;
    --bloom-footer-legal: #0F3238;
    --bloom-footer-accent: #4ECDC4;
    --bloom-footer-text: rgba(255, 255, 255, 0.9);
    --bloom-footer-muted: rgba(255, 255, 255, 0.7);
}

/* Isolate footer from landing page styles; force consistent dark teal */
.bloomlab-footer {
    width: 100%;
    background: var(--bloom-footer-bg) !important;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-top: 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    /* Prevent flex/grid from page content affecting footer children */
    display: block;
}

/* CTA Strip - Compact */
.footer-cta-strip {
    background: linear-gradient(180deg, var(--bloom-footer-bg) 0%, var(--bloom-footer-deep) 100%);
    padding: 16px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-cta-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.4;
}

.footer-cta-button {
    display: inline-block;
    background: #00D084;
    color: var(--bloom-footer-bg);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

.footer-cta-button:hover {
    background: #FFFFFF;
    color: var(--bloom-footer-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 208, 132, 0.4);
}

/* Main Footer Grid - Compact layout */
.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 24px 32px;
    margin-bottom: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--bloom-footer-accent);
    padding-left: 4px;
}

/* Logo Column - Compact */
.footer-logo-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Mobile: match nav logo size (32px), override theme img rules that cause huge display */
@media (max-width: 768px) {
    .bloomlab-footer .footer-logo .footer-logo-img {
        height: 32px !important;
        width: auto !important;
        max-width: 120px !important;
        object-fit: contain;
    }
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-top: 0;
    max-width: 220px;
}

/* Social Links - Compact */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 2px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #00D084;
    color: var(--bloom-footer-bg);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

/* Trust Badges - Now inline with legal bar */
.footer-trust {
    padding: 0;
    border: none;
}

.footer-trust-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--bloom-footer-text);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Trust badge icons: explicit sizing to prevent SVG default 300x150 expansion in flex */
.footer-trust-badge svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    opacity: 0.9;
}

/* Legal Bar - Compact */
.footer-legal {
    background: var(--bloom-footer-legal);
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: var(--bloom-footer-muted);
    font-size: 0.8125rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-legal-links li {
    margin: 0;
}

.footer-legal-links a {
    color: var(--bloom-footer-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--bloom-footer-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 24px;
    }
}

@media (max-width: 768px) {
    .footer-cta-strip {
        padding: 14px 16px;
    }
    
    .footer-cta-text {
        font-size: 1rem;
    }
    
    .footer-cta-button {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .footer-main {
        padding: 20px 16px 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-column-title {
        margin-bottom: 8px;
    }
    
    /* Accordion styles for mobile */
    .footer-column:not(.footer-logo-column) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-column:not(.footer-logo-column) .footer-column-title {
        cursor: pointer;
        position: relative;
        padding-right: 24px;
        user-select: none;
    }
    
    .footer-column:not(.footer-logo-column) .footer-column-title::after {
        content: '+';
        position: absolute;
        right: 0;
        font-size: 1.25rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    
    .footer-column:not(.footer-logo-column)[data-expanded="true"] .footer-column-title::after {
        content: '−';
        transform: rotate(0deg);
    }
    
    .footer-column:not(.footer-logo-column) .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, margin-top 0.3s ease;
        margin-top: 0;
    }
    
    .footer-column:not(.footer-logo-column)[data-expanded="true"] .footer-links {
        max-height: 500px;
        margin-top: 8px;
    }
    
    .footer-legal-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-trust-content {
        order: 1;
        width: 100%;
        justify-content: center;
        gap: 12px;
        margin-bottom: 0;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .footer-copyright {
        order: 2;
    }
}

@media (max-width: 640px) {
    .footer-social a {
        width: 44px;
        height: 44px;
    }
    
    .footer-trust-badge {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .footer-cta-text {
        font-size: 0.9375rem;
    }
    
    .footer-main {
        padding: 16px 16px 14px;
    }
    
    .footer-grid {
        gap: 12px;
    }
    
    .footer-legal {
        padding: 12px 16px;
    }
}

/* Desktop: Always show links, no accordion */
@media (min-width: 769px) {
    .footer-column:not(.footer-logo-column) .footer-links {
        max-height: none !important;
        margin-top: 0 !important;
    }
    
    .footer-column:not(.footer-logo-column) .footer-column-title {
        cursor: default;
        padding-right: 0;
    }
    
    .footer-column:not(.footer-logo-column) .footer-column-title::after {
        display: none;
    }
    
    .footer-column:not(.footer-logo-column) {
        border-bottom: none;
    }
}
