/* --- 1. THE WRAPPER (<footer>) --- */
/* Acts as the shell, matching the computed style's height/width logic */
.site-footer {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    /* We ignore the grey bg rgb(220, 227, 231) because the child covers it */
    background-color: transparent; 
}

/* --- 2. THE VISUAL FOOTER (The 1st <div>) --- */
/* This is where the actual design lives: rgb(5, 2, 3) + Padding */
.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; /* Centered content */
    
    position: relative;
    z-index: 5;
    overflow: hidden; /* Clips the massive gradient */
    
    /* EXACT COLORS from Computed Styles */
    background-color: rgb(5, 2, 3);
    color: rgb(51, 51, 51);
    
    /* EXACT DIMENSIONS from Computed Styles */
    /* padding-block-start: 256px -> padding-top */
    padding-top: 256px; 
    /* padding-inline: 80px -> left/right */
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px; /* Extreme bottom & corners */
    
    /* Gap from computed styles */
    column-gap: 128px;
    
    box-sizing: border-box;
    width: 100%;
}

/* --- 3. THE RED ATMOSPHERE (Gradient Layer) --- */
/* Attached to the footer-container as ::before */
.footer-container::before {
    content: "";
    position: absolute;
    z-index: -1; /* Behind content */
    pointer-events: none;
    
    /* Positioning from your "Smoking Gun" snippet */
    left: 50%;
    top: 88%;
    transform: translate(-50%, -50%);
    
    width: 180vw;
    height: 160vh;
    
    will-change: transform; /* Performance optimization for smooth scroll */
    /* The Triple Gradient Stack */
    background: 
        radial-gradient(120% 100% at 68% 80%, #ff0028b8 0, #ff00286b 35%, #ff00282e 62%, #ff002800 82%), 
        radial-gradient(60vw 40vh at 105% 115%, #ff002859 0, #ff002800 70%), 
        linear-gradient(180deg, #0000 0, #00000040 70%, #000000a6 100%);
        
    filter: blur(80px);
}

/* --- 4. CONTENT STYLING --- */
/* Matches the typography and layout inside the container */
.footer-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px; /* Constrain width to prevent stretching */
    text-align: center;
}

/* --- TYPOGRAPHY OVERRIDES --- */
.footer-heading {
    margin-bottom: 60px;
    line-height: 1.1;
    /* FORCE WHITE TEXT */
    color: #DCE3E7 !important; 
}

.footer-heading .footer-text-main {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: clamp(6rem, 5vw, 6rem);
    display: inline-block;
    margin-right: 12px;
}

.footer-heading .footer-text-serif {
    font-family: var(--font-serif); 
    font-style: italic;
    font-weight: 300; 
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    color: #ffdce2 !important; /* Force pinkish white */
    opacity: 0.9;
}

/* Button & Links (Kept same as before) */
.footer-btn-holla {
    display: inline-block;
    background-color: #FF0028; /* Brand Red */
    color: #000000;
    padding: 22px 55px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 300;
    border-radius: 50px;
    box-shadow: 0 0 60px 15px rgba(255, 0, 40, 0.5), inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    margin-bottom: 120px;
    text-decoration: none;
}
.footer-btn-holla:hover {
    /*transform: translateY(-4px) scale(1.05);*/
    background-color: #ffffff;
    box-shadow: none;
    color: #ff0028;
}

.footer-bottom {
    font-family: var(--font-main);
    font-size: 1.1rem;
    color: rgba(220, 227, 231, 0.6);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
    margin-top: 100px; /* Ensure separation from the main content */
}
.footer-links {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    gap: 20px;
}
.footer-links a { color: rgba(220, 227, 231, 0.8); transition: color 0.2s; }
.footer-links a:hover { color: #fff; text-decoration: underline; }


.footer-credits {
    flex: 1;
    text-align: right;
}

.footer-credits a {
    color: inherit;
    text-decoration: none;
}

.footer-socials {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-social-link {
    /* Typography */
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-white);
    text-transform: uppercase;
    text-decoration: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;

    /* Animation Context */
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--brand-accent);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-social-link:hover::before,
.footer-social-link:focus-visible::before {
    transform: translateY(0);
}

.footer-separator {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 0.5;
    margin-top: -5px;
}

/* ========================================= */
/* 5. FOOTER TOP LINK (Custom)               */
/* ========================================= */
.footer-top-link {
    /* Reset default button styles */
    appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;

    /* Typography */
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-white);
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0.25rem 0.1rem;

    /* Animation Context */
    position: relative;
    overflow: hidden; /* Clips the rising background */
    isolation: isolate; /* Ensures text stays on top of pseudo-element */
}

.footer-top-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--brand-accent);
    z-index: -1;
    
    /* Start position: pushed down 100% */
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-top-link:hover::before,
.footer-top-link:focus-visible::before {
    transform: translateY(0);
}

/* Accessibility */
.footer-top-link:focus-visible {
    outline: 1px solid var(--brand-white);
    outline-offset: 4px;
}