/* --- Footer Variables --- */
:root {
    --footer-bg: #0f1724;
    --footer-text: #e6eef9;
    --footer-heading: #ffffff;
    --footer-accent: #667eea;
    --footer-muted: #94a3b8;
    --footer-border: rgba(255, 255, 255, 0.1);
}

/* --- Main Footer Container --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    margin-top: auto;
    /* Push to bottom if flex column body */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Top Section (Columns) --- */
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    border-bottom: 1px solid var(--footer-border);
    padding-bottom: 40px;
}

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

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

/* --- Column Styles --- */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-heading {
    color: var(--footer-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.footer-text {
    line-height: 1.6;
    color: var(--footer-muted);
}

.footer-pillars {
    margin-top: 10px;
    color: var(--footer-accent);
    font-weight: 500;
    font-size: 13px;
}

/* --- Navigation Links --- */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav li a {
    text-decoration: none;
    color: var(--footer-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-nav li a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* --- Contact Column --- */
.footer-contact-col {
    align-items: flex-start;
}

@media (max-width: 600px) {
    .footer-contact-col {
        align-items: center;
    }
}

.btn-footer-contact {
    display: inline-block;
    border: 1px solid var(--footer-accent);
    color: var(--footer-accent);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.btn-footer-contact:hover {
    background-color: var(--footer-accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.contact-phone {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.contact-email {
    color: var(--footer-muted);
}

/* --- Bottom Section --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-sm {
    height: 30px;
    opacity: 0.8;
}

.copyright {
    color: var(--footer-muted);
    font-size: 13px;
}

/* --- Powered By & Social --- */
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.powered-by {
    font-size: 13px;
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.powered-text {
    color: #555;
    /* Darker than name, but visible on dark bg? Wait, background is #0f1724. #555 is too dark. 
                  User said: "powered by" is a little darker than "Steven Pennock".
                  "Steven Pennock" should be bright (e.g. #fff), "Powered by" should be dimmer (e.g. #888). */
    color: #64748b;
    /* Slate-500, visible on dark */
}

.powered-name {
    color: #cbd5e1;
    /* Slate-300, brighter */
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--footer-muted);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ffffff;
}