/* ==========================================================================
   VLab-4000 — Footer
   ========================================================================== */

/* =========================================================================
   SITE FOOTER
   ========================================================================= */

.site-footer {
    background-color: var(--ink-900);
    color: rgba(255, 255, 255, 0.75);
    padding-top: var(--space-80);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: none;
}

/* =========================================================================
   FOOTER GRID
   ========================================================================= */

.footer-grid {
    display: grid;
    gap: var(--space-48);
    grid-template-columns: 1fr;
    padding-bottom: var(--space-64);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* =========================================================================
   FOOTER BRAND COLUMN
   ========================================================================= */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    text-decoration: none;
    color: var(--white);
    transition: opacity var(--transition-fast);
}

.footer-brand__logo:hover {
    opacity: 0.85;
}

.footer-brand__logo-image {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand__logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: var(--weight-extrabold);
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
}

.footer-brand__logo-text span {
    color: var(--color-accent);
}

.footer-brand__tagline {
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--leading-normal);
    max-width: 30ch;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: var(--space-12);
    align-items: center;
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast);
}

.footer-social__link:hover {
    background-color: var(--color-accent);
    color: var(--white);
}

.footer-social__link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* =========================================================================
   FOOTER COLUMNS
   ========================================================================= */

.footer-col {}

.footer-col__title {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--space-20);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-10, 0.625rem);
}

.footer-links__item a {
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: var(--space-6, 0.375rem);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.footer-links__item a:hover {
    color: var(--white);
}

/* External link indicator */
.footer-links__item a[target="_blank"]::after {
    content: '';
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-links__item a[target="_blank"]:hover::after {
    opacity: 1;
}

/* =========================================================================
   FOOTER NEWSLETTER
   ========================================================================= */

.footer-newsletter {
    margin-top: var(--space-24);
}

.footer-newsletter__label {
    display: block;
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-12);
}

.footer-newsletter__form {
    display: flex;
    gap: var(--space-8);
}

.footer-newsletter__input {
    flex: 1;
    min-height: 40px;
    padding: var(--space-8) var(--space-16);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--text-small);
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-newsletter__input:focus {
    outline: none;
    border-color: var(--color-cta);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(251, 133, 0, 0.25);
}

.footer-newsletter__btn {
    flex-shrink: 0;
    min-height: 40px;
    padding: var(--space-8) var(--space-16);
    background-color: var(--color-cta);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.footer-newsletter__btn:hover {
    background-color: var(--color-cta-hover);
}

/* =========================================================================
   COPYRIGHT BAR
   ========================================================================= */

.footer-bottom {
    padding: var(--space-24) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom__copyright {
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.4);
    line-height: var(--leading-normal);
}

.footer-bottom__copyright a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__copyright a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links li a {
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}

.footer-legal-links li a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Divider dots between legal links */
.footer-legal-links li:not(:last-child)::after {
    content: '·';
    margin-left: var(--space-16);
    color: rgba(255, 255, 255, 0.2);
}

/* =========================================================================
   LEGAL EXPANDABLE SECTIONS (privacy / cookies)
   ========================================================================= */

.footer-legal {
    background-color: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal__inner {
    padding: var(--space-24) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.footer-legal__item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.footer-legal__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-12);
    padding: var(--space-12) var(--space-16);
    background-color: transparent;
    cursor: pointer;
    text-align: left;
    border: none;
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.footer-legal__trigger:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.footer-legal__trigger[aria-expanded="true"] {
    color: rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.04);
}

.footer-legal__chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition-fast);
}

.footer-legal__trigger[aria-expanded="true"] .footer-legal__chevron {
    transform: rotate(180deg);
}

.footer-legal__panel {
    display: none;
    padding: var(--space-16);
    background-color: rgba(0, 0, 0, 0.15);
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.45);
    line-height: var(--leading-normal);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal__trigger[aria-expanded="true"] + .footer-legal__panel {
    display: block;
}

.footer-legal__panel p {
    margin-bottom: var(--space-12);
    color: inherit;
    max-width: none;
}

.footer-legal__panel p:last-child {
    margin-bottom: 0;
}

.footer-legal__panel a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal__panel a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* =========================================================================
   CERTIFICATIONS / BADGES BAR
   ========================================================================= */

.footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
    align-items: center;
    padding: var(--space-20) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cert-badge {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-12);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--text-micro);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    font-weight: var(--weight-regular);
    letter-spacing: 0.04em;
}

.footer-cert-badge img {
    height: 20px;
    width: auto;
    opacity: 0.5;
}
