

.footer {
    position: relative;
    background: linear-gradient(180deg, #141428 0%, #0c0c16 100%);
    color: #fff;
    padding: clamp(3rem, 7vw, 4.5rem) 0 0;
    margin-top: auto;
    overflow: hidden;
    border-top: none;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #800000 0%, #ffd700 40%, #ffd700 60%, #800000 100%);
}

.footer::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: var(--bp-xl, 1400px);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
    padding-bottom: clamp(2rem, 4vw, 2.75rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h4 {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffd700;
    margin: 0 0 1.25rem;
    padding-bottom: 0;
}

.footer-section h4::after {
    display: none;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.footer-logo h3 {
    font-family: var(--font-heading, 'Playfair Display', Georgia, serif);
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0;
    color: #fff;
}

.footer-tagline {
    color: rgba(255, 215, 0, 0.92);
    font-style: italic;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
}

.footer-location {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.88rem;
    margin: 0;
}

.footer-awards {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.footer-award-link {
    display: block;
    line-height: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-award-link:hover {
    transform: translateY(-3px);
    opacity: 0.92;
}

.footer-award-link img {
    width: 72px;
    height: auto;
    display: block;
    background: transparent;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffd700;
    transform: translateX(4px);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: #ffd700;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #ffd700;
}

.footer-social {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem !important;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.18);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88) !important;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer-social a:hover {
    background: #800000;
    border-color: #ffd700;
    transform: translateY(-2px);
}

.footer-social i {
    font-size: 1rem;
    color: inherit;
}

.footer-bottom {
    text-align: left;
    padding: 0 0 clamp(1.75rem, 4vw, 2.25rem);
    border-top: none;
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem 1.35rem;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #ffd700;
}

.bestweb-float-badge {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    line-height: 0;
}

/* Sit above the chatbot FAB at the bottom corner (sizes match chatbot.css breakpoints) */
body:has(.dgc-chatbot) .bestweb-float-badge {
    --dgc-fab-clear: 72px;
    right: 16px;
    bottom: calc(16px + var(--dgc-fab-clear) + 0.55rem);
}

@media (max-width: 992px) {
    body:has(.dgc-chatbot) .bestweb-float-badge {
        --dgc-fab-clear: 64px;
    }
}

@media (max-width: 768px) {
    body:has(.dgc-chatbot) .bestweb-float-badge {
        --dgc-fab-clear: 58px;
        right: 12px;
        bottom: calc(12px + var(--dgc-fab-clear) + 0.5rem);
    }
}

.bestweb-float-badge a {
    display: block;
    background: transparent;
    transition: transform 0.25s ease;
}

.bestweb-float-badge a:hover {
    transform: translateY(-2px) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
    .bestweb-float-badge a,
    .bestweb-float-badge a:hover {
        transition: none;
        transform: none;
    }
}

.bestweb-float-badge img {
    width: 88px;
    height: auto;
    display: block;
    object-fit: contain;
    background: transparent;
}

body.cookie-consent-visible .bestweb-float-badge {
    bottom: 5.75rem;
}

body.cookie-consent-visible:has(.dgc-chatbot) .bestweb-float-badge {
    bottom: calc(5.75rem + var(--dgc-fab-clear, 72px) + 0.55rem);
}

.footer-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
}

.footer-copy p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.5;
}

.footer-credit {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.42);
}

.footer-credit a {
    color: rgba(255, 215, 0, 0.88);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

.page-home .home-footer {
    border-image: none;
    border-top: none;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-copy {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bestweb-float-badge {
        right: 0.75rem;
        bottom: 0.75rem;
        gap: 0.3rem;
    }

    body:has(.dgc-chatbot) .bestweb-float-badge {
        --dgc-fab-clear: 52px;
        right: 10px;
        bottom: calc(10px + var(--dgc-fab-clear) + 0.45rem);
    }

    .bestweb-float-badge img {
        width: 64px;
        height: auto;
    }

    body.cookie-consent-visible .bestweb-float-badge {
        bottom: 5.25rem;
    }

    body.cookie-consent-visible:has(.dgc-chatbot) .bestweb-float-badge {
        bottom: calc(5.25rem + var(--dgc-fab-clear, 52px) + 0.45rem);
    }

    .footer-legal {
        gap: 0.5rem 1rem;
    }
}

@media (hover: none) {
    .footer-links a:hover,
    .footer-social a:hover {
        transform: none;
    }
}
