/* Locked footer component styles.
   Keep footer layout changes here so shared base.css tweaks do not move it. */

.site-footer {
    background: linear-gradient(180deg, var(--color-120c1e), var(--color-1c1b32));
    padding: 30px 0 12px;
    color: var(--color-e0e7ff);
}

.site-footer .footer-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
    gap: 12px;
    padding: 0 1.5rem;
}

.site-footer .footer-card {
    background: var(--surface);
    border: var(--section-border);
    border-radius: 26px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
    color: var(--ink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-footer .footer-brand-card,
.site-footer .footer-links-card {
    justify-content: flex-start;
    align-items: flex-start;
}

.site-footer .footer-links-card {
    gap: 10px;
}

.site-footer .footer-card > h3,
.site-footer .footer-card > h4 {
    font-size: clamp(1.14rem, 1.45vw, 1.42rem);
    margin: 0;
    font-weight: 700;
}

.site-footer .footer-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -30% auto;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, transparent), transparent);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.72;
}

.site-footer .footer-brand-card::after {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent);
}

.site-footer .footer-logo {
    font-size: 1.34rem;
    letter-spacing: 0.16em;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--ink);
}

.site-footer .footer-card p {
    color: rgba(15, 23, 42, 0.75);
    margin: 0;
    line-height: 1.48;
}

.site-footer .footer-brand-card > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

.site-footer .footer-brand-card .btn.primary {
    margin-top: auto;
}

.site-footer .footer-brand-card .footer-social {
    margin-top: 2px;
}

.site-footer .footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .footer-social-label {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted-1);
    font-weight: 700;
}

.site-footer .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: var(--section-border);
    background: rgba(15, 23, 42, 0.04);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.site-footer .footer-social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.site-footer .footer-social-link .social-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--surface);
    background: var(--ink);
}

.site-footer .footer-social-link .social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-footer .footer-social-link.platform-facebook .social-icon {
    background: #1877f2;
}

.site-footer .footer-social-link.platform-instagram .social-icon {
    background: radial-gradient(circle at 30% 30%, #feda75, #d62976 45%, #962fbf 65%, #4f5bd5 85%);
}

.site-footer .footer-social-link.platform-linkedin .social-icon {
    background: #0a66c2;
}

.site-footer .footer-social-link.platform-twitter .social-icon {
    background: #0f172a;
}

.site-footer .footer-social-link.platform-youtube .social-icon {
    background: #ff0033;
}

.site-footer .footer-social-link.platform-whatsapp .social-icon {
    background: var(--brand-whatsapp);
}

.site-footer .footer-social-link.has-image .social-icon {
    background: transparent;
}

.site-footer .footer-card ul li a {
    position: relative;
}

.site-footer .footer-card ul li a::before {
    content: "\203A";
    position: absolute;
    left: -14px;
    color: var(--accent-2);
}

.site-footer .footer-links-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    width: 100%;
}

.site-footer .footer-links-card li a {
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.28;
    padding-left: 14px;
}

.site-footer .footer-links-card li a:hover {
    color: var(--color-0a0d1a);
}

.site-footer .footer-projects-card {
    justify-content: flex-start;
}

.site-footer .footer-discovery-headings {
    display: grid;
    gap: 7px;
    width: 100%;
}

.site-footer .footer-discovery-item {
    display: block;
    text-decoration: none;
    border-radius: 11px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.88);
    padding: 8px 10px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.28;
}

.site-footer .footer-discovery-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(15, 23, 42, 0.24);
}

.site-footer .featured-project {
    background: var(--color-090d1c);
    color: var(--surface-1);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 64px;
    justify-content: center;
}

.site-footer .featured-project strong {
    font-size: 1rem;
    font-weight: 700;
}

.site-footer .featured-project span {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.85rem;
}

.site-footer .footer-top-links-card {
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, transparent), color-mix(in srgb, var(--accent-2) 35%, transparent)) border-box;
    border: 1px solid transparent;
}

.site-footer .footer-top-links-card h3 {
    margin-bottom: 2px;
}

.site-footer .footer-top-links-caption {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted-2);
    font-weight: 700;
    line-height: 1.4;
    max-width: 19ch;
}

.site-footer .footer-top-links-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.site-footer .footer-top-links-card li a {
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--accent) 10%, #ffffff));
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer .footer-top-links-card li a > span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.site-footer .footer-top-links-card li a:hover {
    color: var(--color-0a0d1a);
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent-2) 45%, rgba(15, 23, 42, 0.2));
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.1);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #ffffff), color-mix(in srgb, var(--accent-2) 12%, #ffffff));
}

.site-footer .footer-top-links-card li a::before {
    content: none;
}

.site-footer .footer-top-links-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: color-mix(in srgb, var(--accent-2) 70%, var(--ink));
    font-size: 0.82rem;
    line-height: 1;
}

.site-footer .footer-top-links-card li a:hover .footer-top-links-arrow {
    border-color: color-mix(in srgb, var(--accent-2) 45%, rgba(15, 23, 42, 0.2));
    background: color-mix(in srgb, var(--accent) 16%, #ffffff);
}

.site-footer .footer-card .btn.primary {
    align-self: flex-start;
    margin-top: 6px;
}

.site-footer .footer-bottom {
    padding: 10px 16px 0;
    border-top: 1px solid rgba(248, 250, 252, 0.3);
    max-width: var(--container-width);
    margin: 14px auto 0;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(226, 232, 240, 0.9);
}

.site-footer .footer-bottom .heart {
    color: var(--danger);
    margin-left: 6px;
}

.site-footer .footer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.g3-whatsapp-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 65;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.g3-whatsapp-float img {
    display: block;
    width: 52px;
    height: 52px;
}

@media (min-width: 1180px) {
    .site-footer .footer-grid {
        grid-template-columns: minmax(260px, 1.08fr) repeat(3, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    .site-footer {
        padding: 30px 0 calc(18px + env(safe-area-inset-bottom));
    }

    .site-footer .footer-grid {
        padding-inline: clamp(12px, 4vw, 20px);
        gap: 12px;
    }

    .site-footer .footer-card {
        min-height: 0;
        padding: 18px 16px;
        gap: 12px;
    }

    .site-footer .footer-links-card ul,
    .site-footer .footer-top-links-card ul,
    .site-footer .footer-discovery-headings {
        width: 100%;
        min-width: 0;
    }

    .site-footer .footer-links-card a,
    .site-footer .footer-top-links-card a,
    .site-footer .footer-discovery-item {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 720px) {
    .site-footer .footer-top-links-card ul {
        grid-template-columns: 1fr;
    }

    .g3-whatsapp-float {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 640px) {
    .site-footer .footer-bottom {
        padding-inline: 16px;
        text-align: center;
        line-height: 1.5;
    }
}
