/* =========================================================================
   CITEM — Layout: "Blockout Suizo" (Standalone Theme Folder)
   Full-width, sin max-width, bordes gruesos, footer crudo.
   ========================================================================= */

/* --- Container Core --- */
.container {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* --- Divisores --- */
hr, .divider {
    border: none;
    height: var(--border-weight);
    background-color: var(--c-navy);
    width: 100%;
    display: block;
    margin: var(--spacing-lg) 0;
}

/* --- Split Layout (Hero & Founders) --- */
.split-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
        align-items: stretch;
    }
    .split-layout > div {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

/* ==========================================================================
   FOOTER — Blockout Suizo
   Design principles:
   - Every element styled via explicit class, no color inheritance
   - base.css has: p { color: var(--c-navy) } → must override with specificity
   - No magic numbers: padding uses design tokens
   ========================================================================== */

.main-footer {
    background-color: var(--c-navy);
    border-top: 5px solid var(--c-crimson);
}

/* ── Grid: 4 columns on desktop ── */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.4fr;
    }
}

/* ── Brand column ── */
.footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: var(--c-cream);
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.footer-tagline {
    color: var(--c-cream);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    opacity: 0.75;
}

.footer-sub {
    color: var(--c-crimson);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ── Column headings ── */
.footer-heading {
    color: var(--c-crimson);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

/* ── Nav + Resources link lists ── */
.footer-nav ul,
.footer-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li a,
.footer-resources ul li a {
    display: block;
    color: var(--c-cream);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.55;
    margin-bottom: 0.6rem;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.footer-nav ul li a:hover,
.footer-resources ul li a:hover {
    opacity: 1;
}

/* ── CTA column ── */
.footer-cta-text {
    color: var(--c-cream);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.7;
    margin-bottom: 1.25rem;
}

.footer-cta-btn {
    display: inline-block;
    background-color: var(--c-crimson);
    color: var(--c-cream);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.65rem 1.5rem;
    text-decoration: none;
    border: var(--border-weight) solid var(--c-cream);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

.footer-cta-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
    background-color: var(--c-cream);
    color: var(--c-navy);
    border-color: var(--c-cream);
}

/* ── Footer bottom: copyright + legal ── */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(var(--c-cream-rgb), 0.12);
}

.footer-copyright {
    color: rgba(var(--c-cream-rgb), 0.55);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(var(--c-cream-rgb), 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-legal a:hover {
    color: var(--c-cream);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* M1 fix: footer legal links wrappean en ~375px sin flex-wrap */
    .footer-legal {
        flex-wrap: wrap;
        gap: 1rem;
    }
}
