﻿/* ==========================================================================
   Footer — Neo-Brutalism Design
   ========================================================================== */

/* ── Base ── */
.site-footer {
    position: relative;
    background: #FFFFFF;
    color: #111111;
    border-top: 4px solid #111111;
    overflow: hidden;
}

.footer-accent-strip {
    display: none;
}

.site-footer::after {
    display: none;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

.site-footer .container {
    display: block;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

/* ── CTA / Newsletter Section ── */
.footer-cta {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    position: relative;
}

.footer-cta::before {
    display: none;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-3xl);
    background: #FFE54D;
    border: 4px solid #111111;
    position: relative;
}

.footer-cta-inner::after {
    display: none;
}

.footer-cta-content {
    flex: 1;
    min-width: 240px;
}

.footer-cta-heading {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: #111111;
    margin: 0 0 var(--spacing-xs);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.footer-cta-sub {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: var(--font-size-sm);
    color: #111111;
    opacity: 1;
    margin: 0;
    max-width: 420px;
    line-height: 1.65;
}

.footer-cta-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-cta-actions .btn-primary {
    color: #FFFFFF !important;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: #111111;
    border: 3px solid #111111;
    text-transform: uppercase;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
}

.footer-cta-actions .btn-primary svg {
    color: #FFFFFF !important;
}

.footer-cta-actions .btn-primary:hover {
    background: #FFE54D;
    color: #111111 !important;
    border-color: #111111;
    transform: translate(-2px, -2px);
    box-shadow: none;
}

.footer-cta-actions .btn-outline {
    color: #111111;
    border: 3px solid #111111;
    background: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
}

.footer-cta-actions .btn-outline:hover {
    color: #FFFFFF;
    border-color: #111111;
    background: #111111;
    transform: translate(-2px, -2px);
    box-shadow: none;
}

.footer-cta-actions .btn-outline svg {
    color: #111111;
}

.footer-cta-actions .btn-outline:hover svg {
    color: #FFFFFF;
}

.footer-cta-form {
    flex-shrink: 0;
    min-width: 320px;
}

.footer-cta-form-inner {
    display: flex;
    gap: 0;
    background: #FFFFFF;
    border: 3px solid #111111;
    padding: 4px;
}

.footer-cta-form-inner:focus-within {
    border-color: #FFE54D;
}

.footer-cta-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    color: #111111;
    opacity: 0.75;
}

.footer-cta-input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    font-size: var(--font-size-sm);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #111111;
    outline: none;
}

.footer-cta-input::placeholder {
    color: #111111;
    opacity: 0.75;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    font-weight: 800;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    color: #FFFFFF;
    background: #111111;
    border: 3px solid #111111;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.15s ease;
}

.footer-cta-btn:hover {
    background: #FFE54D;
    color: #111111;
    transform: translate(-2px, -2px);
}

.footer-cta-note {
    font-size: var(--font-size-xs);
    color: #111111;
    opacity: 0.75;
    margin: var(--spacing-xs) 0 0;
    text-align: right;
}

/* ── Widgets Area ── */
.footer-main {
    padding: 0 0 var(--spacing-xl);
}

.footer-widgets {
    padding: var(--spacing-2xl) 0 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 3px solid #111111;
}

.footer-column {
    color: #111111;
    opacity: 1;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.footer-column .widget-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: var(--font-size-xs);
    font-weight: 800;
    color: #111111;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #111111;
}

.footer-column .widget-title::after {
    display: none;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-column a {
    font-size: var(--font-size-sm);
    color: #111111;
    opacity: 1;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.footer-column a::before {
    display: none;
}

.footer-column a:hover {
    color: #FFE54D;
    background: #111111;
    padding: 2px 8px;
    opacity: 1;
}

/* ── Tech Badges ── */
.footer-tech {
    padding: var(--spacing-lg) 0;
    border-top: 3px solid #111111;
}

.footer-tech-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-tech-label {
    font-size: var(--font-size-xs);
    color: #111111;
    opacity: 0.85;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
}

.footer-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: #111111;
    background: #FFE54D;
    border: 2px solid #111111;
    font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
    transition: transform 0.15s ease;
}

.footer-tech-badge svg {
    width: 12px;
    height: 12px;
    color: #111111;
}

.footer-tech-badge:hover {
    transform: translate(-1px, -1px);
    background: #FFFFFF;
}

/* ── Footer Bottom ── */
.footer-bottom {
    padding: 0;
    font-size: var(--font-size-xs);
    color: #111111;
    opacity: 0.85;
}

.footer-bottom a {
    color: #111111;
    opacity: 1;
    text-decoration: none;
    transition: opacity 0.15s ease;
    font-weight: 600;
}

.footer-bottom a:hover {
    opacity: 1;
}

/* ── Top Row: Brand + Nav + Social ── */
.footer-bottom-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl) 0;
    flex-wrap: wrap;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: #111111 !important;
}

.footer-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #FFE54D;
    border: 3px solid #111111;
    color: #111111;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.footer-brand-link:hover .footer-brand-icon {
    transform: translate(-2px, -2px);
}

.footer-brand-name {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: #111111;
    -webkit-text-fill-color: #111111;
    background: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.footer-brand-tagline {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: var(--font-size-xs);
    color: #111111;
    opacity: 0.85;
    margin: var(--spacing-xs) 0 0 0;
    max-width: 320px;
    line-height: 1.6;
}

/* Navigation */
.footer-nav {
    margin: 0;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #111111;
    opacity: 1;
    border: 2px solid transparent;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.footer-menu a:hover {
    color: #111111;
    border-color: #111111;
    background: #FFE54D;
    opacity: 1;
}

/* Social */
.footer-social {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: var(--font-size-sm);
    color: #111111;
    border: 3px solid #111111;
    text-decoration: none;
    transition: transform 0.15s ease;
    background: #FFFFFF;
}

.footer-social-link:hover {
    background: #FFE54D;
    transform: translate(-2px, -2px);
}

/* ── Divider ── */
.footer-divider {
    height: 3px;
    background: #111111;
}

/* ── Bottom Row ── */
.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-copyright-text {
    font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: var(--font-size-xs);
    color: #111111;
    opacity: 0.75;
    font-weight: 500;
}

.footer-extra {
    font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 10px;
    color: #111111;
    opacity: 0.8;
    padding-left: var(--spacing-md);
    border-left: 2px solid #111111;
}

.footer-payment-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-payment-icons svg {
    width: 32px;
    height: 20px;
    border: 2px solid #111111;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.footer-payment-icons svg:hover {
    opacity: 1;
}

/* ── Terminal line ── */
.footer-terminal-line {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
}

.terminal-prompt {
    color: #111111;
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
    font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
}

.terminal-text {
    color: #111111;
    opacity: 1;
    font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
}

.terminal-text--success {
    color: #10b981;
    font-weight: 600;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.terminal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border: 2px solid #111111;
    flex-shrink: 0;
}

.terminal-indent {
    color: #111111;
    opacity: 0.85;
    padding-left: calc(0.875rem + var(--spacing-sm));
    font-family: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
}

.last-update {
    opacity: 1;
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    border: 3px solid #111111;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 999;
    color: #FFFFFF;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #FFE54D;
    color: #111111;
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .footer-bottom-top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-lg);
    }

    .footer-brand-tagline {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-bottom-top {
        padding: var(--spacing-lg) 0;
    }

    .footer-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-xl);
    }

    .footer-cta-form {
        min-width: auto;
        width: 100%;
    }
}

