/* ============================================================================
   CABSTATES — Footer Styles
   Version: 1.0 | May 2026
============================================================================ */

/* ============================================================================
   FOOTER WRAPPER
============================================================================ */
.site-footer {
    background: var(--grey-900);
    border-top: 1px solid var(--yellow-border);
    padding-top: var(--space-16);
    padding-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent */
.site-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    opacity: 0.3;
}

/* ============================================================================
   NEWSLETTER SIGNUP
============================================================================ */
.footer-newsletter {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: var(--space-8);
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: var(--space-10) 0;
    border-bottom: var(--border-subtle);
    margin-bottom: var(--space-8);
}

.footer-newsletter-copy {
    -webkit-flex: 1;
    flex: 1;
    min-width: 240px;
}

.footer-newsletter-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: var(--space-2);
}

.footer-newsletter-title span { color: var(--yellow); }

.footer-newsletter-sub {
    font-size: var(--text-base);
    color: var(--grey-400);
    line-height: var(--leading-relaxed);
    max-width: 380px;
}

.footer-newsletter-form {
    -webkit-flex: 1;
    flex: 1;
    min-width: 280px;
    max-width: 440px;
}

.footer-newsletter-fields {
    display: -webkit-flex;
    display: flex;
    gap: 0;
    border: 1px solid var(--grey-700);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.footer-newsletter-fields:focus-within {
    border-color: var(--yellow);
}

.footer-newsletter-input {
    -webkit-flex: 1;
    flex: 1;
    background: var(--grey-900);
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    outline: none;
    min-width: 0;
}

.footer-newsletter-input::placeholder { color: var(--grey-500); }

.footer-newsletter-btn {
    background: var(--yellow);
    color: var(--black);
    border: none;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    padding: var(--space-3) var(--space-5);
    cursor: pointer;
    white-space: nowrap;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-2);
    transition: background var(--transition-base);
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.footer-newsletter-btn:hover { background: var(--yellow-light); }
.footer-newsletter-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.footer-newsletter-privacy {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: var(--tracking-wide);
    color: var(--grey-600);
    margin-top: var(--space-2);
    text-transform: uppercase;
}

.footer-newsletter-privacy a {
    color: var(--grey-500);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.footer-newsletter-privacy a:hover { color: var(--yellow); }

.footer-newsletter-msg {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    margin-top: var(--space-2);
    min-height: 1.2em;
}

.footer-newsletter-msg--ok  { color: var(--color-success); }
.footer-newsletter-msg--err { color: var(--red-light); }

@media (max-width: 768px) {
    .footer-newsletter {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }
    .footer-newsletter-form { max-width: 100%; width: 100%; }
    .footer-newsletter-sub  { max-width: none; }
}


/* ============================================================================
   FOOTER TOP — MAIN CONTENT
============================================================================ */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: var(--border-subtle);
    margin-bottom: var(--space-8);
}

/* ============================================================================
   FOOTER BRAND COLUMN
============================================================================ */
.footer-brand {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: var(--space-6);
}

.footer-logo {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.footer-logo-text {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 2px;
}

.footer-logo-name {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: var(--tracking-wider);
    color: var(--yellow);
    line-height: 1;
}

.footer-logo-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--grey-500);
    line-height: 1;
}

.footer-brand-desc {
    font-size: var(--text-base);
    color: var(--grey-400);
    line-height: var(--leading-relaxed);
    max-width: 280px;
}

.footer-location {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--grey-500);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-2);
}

.footer-location i {
    color: var(--yellow);
    font-size: 0.7rem;
}

.footer-contact {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    color: var(--grey-500);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-2);
}

.footer-contact i {
    color: var(--yellow);
    font-size: 0.7rem;
}

.footer-contact a {
    color: var(--grey-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact a:hover {
    color: var(--yellow);
}

/* ============================================================================
   FOOTER NAV COLUMNS
============================================================================ */
.footer-nav-col {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-nav-heading {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: var(--space-2);
}

.footer-nav-links {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
}

.footer-nav-links a {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--grey-400);
    text-decoration: none;
    transition: color var(--transition-base);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: var(--space-2);
}

.footer-nav-links a:hover {
    color: var(--yellow);
}

.footer-nav-links a i {
    font-size: 0.6rem;
    color: var(--grey-600);
    transition: color var(--transition-base);
}

.footer-nav-links a:hover i {
    color: var(--yellow);
}

/* ============================================================================
   FOOTER SOCIAL SECTION
============================================================================ */
.footer-social-section {
    padding: var(--space-8) 0;
    border-bottom: var(--border-subtle);
    margin-bottom: var(--space-8);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: var(--space-8);
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.footer-social-text {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: var(--space-1);
}

.footer-social-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
}

.footer-social-title span {
    color: var(--yellow);
}

.footer-social-sub {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wider);
    color: var(--grey-500);
    text-transform: uppercase;
}

/* Social Icon Links */
.footer-social-icons {
    display: -webkit-flex;
    display: flex;
    gap: var(--space-3);
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.social-icon-link {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--grey-800);
    border: 1px solid var(--grey-700);
    color: var(--grey-400);
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

.social-icon-link:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* Individual platform hover colours */
.social-icon-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    color: var(--white-pure);
}

.social-icon-link.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: var(--white-pure);
}

.social-icon-link.linkedin:hover {
    background: #0A66C2;
    border-color: #0A66C2;
    color: var(--white-pure);
}

.social-icon-link.tiktok:hover {
    background: #000000;
    border-color: #69C9D0;
    color: var(--white-pure);
}

.social-icon-link.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
    color: var(--white-pure);
}

.social-icon-link.twitter:hover {
    background: #000000;
    border-color: #000000;
    color: var(--white-pure);
}

.social-icon-link.bluesky:hover {
    background: #0085FF;
    border-color: #0085FF;
    color: var(--white-pure);
}

.social-icon-link.threads:hover {
    background: #000000;
    border-color: #000000;
    color: var(--white-pure);
}

/* Tooltip on hover */
.social-icon-link::before {
    content: attr(data-platform);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background: var(--grey-800);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    border: var(--border-subtle);
}

.social-icon-link:hover::before {
    opacity: 1;
}

/* ============================================================================
   FOOTER BOTTOM
============================================================================ */
.footer-bottom {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    gap: var(--space-4);
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    color: var(--grey-500);
}

.footer-copy a {
    color: var(--grey-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-copy a:hover {
    color: var(--yellow);
}

.footer-build-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.3);
    transition: color var(--transition-base);
}

.footer-build-tag:hover {
    color: var(--yellow);
}

/* ============================================================================
   RESPONSIVE
============================================================================ */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-align-items: flex-start;
        align-items: flex-start;
        gap: var(--space-12);
    }

    .footer-brand-desc {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .footer-social-section {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }

    .footer-bottom {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: flex-start;
        align-items: flex-start;
        gap: var(--space-3);
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-social-icons {
        gap: var(--space-2);
    }

    .social-icon-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}
