/**
 * Site Footer Styles
 * Modern, consistent footer across all pages
 */

.site-footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--color-text);
    margin-top: 2rem;
    padding: 1.5rem 0 0.75rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.footer-brand h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.footer-brand h3 span {
    color: #0ea5e9;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.8125rem;
    margin: 0;
    max-width: 240px;
    line-height: 1.6;
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0ea5e9;
    margin: 0 0 0.625rem 0;
    opacity: 0.95;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    font-weight: 400;
    display: inline-block;
}

.footer-column ul li a:hover,
.footer-column ul li a:focus {
    color: #0ea5e9;
    transform: translateX(2px);
}

.footer-column ul li:not(:has(a)) {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
}

.footer-copyright p {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-badges a {
    opacity: 0.6;
    transition: opacity 0.2s ease;
    display: block;
    line-height: 0;
}

.footer-badges a:hover,
.footer-badges a:focus {
    opacity: 1;
}

.footer-badges img {
    display: block;
    height: 24px;
    width: auto;
}

/* Column alignment and spacing */
.footer-column {
    min-width: 140px;
}

.footer-column ul li:last-child {
    margin-bottom: 0;
}

/* Add subtle divider for visual separation */
.footer-links {
    position: relative;
}

/* Professional visual polish */
.footer-column ul li a {
    position: relative;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 1.25rem 0 0.75rem;
        margin-top: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }
    
    /* Disable transform on mobile for cleaner touch experience */
    .footer-column ul li a:hover {
        transform: none;
    }
}

 .consent-banner[hidden],
 .consent-modal[hidden] {
     display: none !important;
 }

.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 0.875rem 0.75rem;
    background: #f8fafc;
    border-top: 1px solid rgba(15, 23, 42, 0.16);
    box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.35);
}

.consent-banner__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.consent-banner__copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.consent-banner__headline {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.consent-banner__text {
    margin: 0;
    font-size: 0.875rem;
    color: #0f172a;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.consent-banner__message {
    display: block;
    flex: 1;
    min-width: 0;
}

.consent-banner__text a {
    color: #003399;
    text-decoration: underline;
}

.consent-banner__text a:hover,
.consent-banner__text a:focus-visible {
    color: #002a80;
}

.consent-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #003399;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
    flex: 0 0 auto;
}

.consent-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.consent-banner__actions .button {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    background: #003399;
    border-color: #003399;
    color: #ffffff;
    box-shadow: none;
}

.consent-banner__actions .button:hover,
.consent-banner__actions .button:focus-visible {
    background: #002a80;
    border-color: #002a80;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.75rem;
}

.consent-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
}

.consent-modal__panel {
    position: relative;
    width: min(560px, 100%);
    background: rgba(16, 25, 54, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.6);
    padding: 1.25rem;
    color: #e2e8f0;
}

.consent-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.consent-modal__header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.consent-modal__close {
    appearance: none;
    border: none;
    background: rgba(148, 163, 184, 0.15);
    color: #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.consent-modal__body {
    padding: 0.9rem 0;
}

.consent-modal__intro {
    margin: 0 0 0.9rem 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.consent-option__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.consent-option__label {
    font-weight: 700;
    color: #ffffff;
}

.consent-option__description {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.consent-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.consent-switch input {
    width: 46px;
    height: 26px;
    opacity: 0;
    margin: 0;
}

.consent-switch__slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    transition: background 0.2s ease;
}

.consent-switch__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.consent-switch input:checked + .consent-switch__slider {
    background: rgba(56, 189, 248, 0.55);
}

.consent-switch input:checked + .consent-switch__slider::after {
    transform: translateX(20px);
}

.consent-modal__links {
    margin: 0.9rem 0 0 0;
    font-size: 0.9rem;
}

.consent-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 720px) {
    .consent-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .consent-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }
}
