/* CodeGraphi footer repair — light professional theme
   Save as public/css/codegraphi-footer-fix.css and load AFTER site.css. */

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    --footer-red: #E50918;
    --footer-red-dark: #B80713;
    --footer-text: #202633;
    --footer-muted: #596273;
    --footer-border: #E3E6EB;

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 56px;
    color: var(--footer-text) !important;
    background: #FFFFFF !important;
    border-top: 3px solid var(--footer-red);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 38%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at top right, rgba(229, 9, 24, .045), transparent 70%);
    z-index: -1;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(130px, 1fr));
    gap: 36px;
    padding-bottom: 42px;
}

.site-footer .footer-brand { min-width: 0; }

.site-footer .footer-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    max-width: 100%;
    min-height: 76px;
    padding: 8px 12px;
    overflow: hidden;
    background: #FFFFFF !important;
    border: 1px solid #E3E6EB;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 20, 20, .06);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.site-footer .footer-brand-logo img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}
.site-footer .footer-brand-logo:hover {
    transform: translateY(-2px);
    border-color: rgba(229, 9, 24, .45);
    box-shadow: 0 12px 28px rgba(20, 20, 20, .09);
}

.site-footer .footer-description {
    max-width: 390px;
    margin: 20px 0;
    color: var(--footer-muted) !important;
    font-size: 14px;
    line-height: 1.85;
}

.site-footer .footer-company-details {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}
.site-footer .footer-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.site-footer .footer-detail-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: var(--footer-red) !important;
    background: #FFF0F1 !important;
    border: 1px solid #FFD4D8;
    border-radius: 10px;
    font-size: 16px;
}
.site-footer .footer-detail-item > div { min-width: 0; }
.site-footer .footer-detail-item strong {
    display: block;
    margin: 2px 0 5px;
    color: #171717 !important;
    font-size: 13px;
    font-weight: 700;
}
.site-footer .footer-detail-item address,
.site-footer .footer-detail-item a {
    color: var(--footer-muted) !important;
    font-size: 13px;
    font-style: normal;
    line-height: 1.8;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color .2s ease;
}
.site-footer .footer-detail-item a:hover {
    color: var(--footer-red) !important;
}

.site-footer .footer-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 16px;
    color: #FFFFFF !important;
    background: var(--footer-red) !important;
    border: 1px solid var(--footer-red);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.site-footer .footer-email:hover {
    color: #FFFFFF !important;
    background: var(--footer-red-dark) !important;
    border-color: var(--footer-red-dark);
    transform: translateY(-2px);
}
.site-footer .footer-email span { font-size: 16px; }

.site-footer .footer-links-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.site-footer .footer-links-column h3 {
    position: relative;
    margin: 3px 0 10px;
    padding-bottom: 12px;
    color: #171717 !important;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
}
.site-footer .footer-links-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--footer-red);
    border-radius: 3px;
}
.site-footer .footer-links-column a {
    color: var(--footer-muted) !important;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-links-column a:hover {
    color: var(--footer-red) !important;
    transform: translateX(3px);
}

.site-footer a:focus-visible {
    outline: 3px solid var(--footer-red);
    outline-offset: 4px;
    border-radius: 4px;
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-top: 1px solid var(--footer-border);
    color: #596273 !important;
    font-size: 12px;
    line-height: 1.8;
}
.site-footer .footer-tagline {
    color: #596273 !important;
    text-align: right;
}

@media (max-width: 1050px) {
    .site-footer .footer-top {
        grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(140px, 1fr));
        gap: 32px 26px;
    }
    .site-footer .footer-brand { grid-column: 1 / -1; }
    .site-footer .footer-description { max-width: 600px; }
}
@media (max-width: 700px) {
    .site-footer { padding-top: 40px; }
    .site-footer .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        padding-bottom: 30px;
    }
    .site-footer .footer-brand { grid-column: 1 / -1; }
    .site-footer .footer-brand-logo { width: 245px; min-height: 70px; }
    .site-footer .footer-brand-logo img { height: 54px; }
    .site-footer .footer-description { max-width: 100%; }
    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .site-footer .footer-tagline { text-align: left; }
}
@media (max-width: 380px) {
    .site-footer .footer-top {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }
    .site-footer .footer-brand { grid-column: auto; }
    .site-footer .footer-brand-logo { width: 100%; max-width: 260px; }
    .site-footer .footer-links-column { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-footer *,
    .site-footer *::before,
    .site-footer *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
