/* ===================================================================
   FOOTER
   =================================================================== */

.footer {
    background-color: var(--color-deep);
    color: var(--color-sand);
    font-size: 0.85rem;
    border-top: none;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative gradient overlay at the top */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 20%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 80%,
        transparent 100%
    );
}

.footer h4, .footer h5, .footer h6 {
    color: var(--color-ivory);
    letter-spacing: 2px;
    font-weight: 400;
}

/* Footer column headings with subtle underline accent */
.footer-heading {
    color: var(--color-ivory);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 1px;
    background: var(--accent, rgba(255, 255, 255, 0.25));
    transition: width 0.4s ease;
}

.footer a {
    color: var(--color-camel);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer a:hover {
    color: var(--color-ivory);
}

/* Footer link list with hover slide */
.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    display: inline-block;
    font-size: 0.82rem;
    padding-left: 0;
    position: relative;
}

.footer-links a:hover {
    padding-left: 6px;
    color: var(--color-ivory);
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    letter-spacing: 4px;
    color: var(--color-ivory);
    font-weight: 400;
}

/* Logo — match header sizing */
.footer-logo {
    height: 70px;
    width: 120px;
    object-fit: cover;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.03);
}

/* Brand description text */
.footer-tagline {
    color: var(--color-camel);
    line-height: 1.85;
    font-size: 0.82rem;
    max-width: 320px;
    margin-bottom: 1.25rem;
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--color-bronze);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-ivory);
}

/* Newsletter form */
.footer-newsletter-form .input-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.3s ease;
}

.footer-newsletter-form .input-group:focus-within {
    border-color: var(--accent, rgba(255, 255, 255, 0.35));
}

.footer .form-control {
    background: transparent;
    border: none;
    border-radius: 0;
    color: var(--color-ivory);
    padding: 0.7rem 0;
    font-size: 0.8rem;
}

.footer .form-control:focus {
    box-shadow: none;
    border-bottom-color: transparent;
}

.footer .form-control::placeholder {
    color: var(--color-bronze);
    font-style: italic;
}

.footer-newsletter-form .btn-submit {
    background: none;
    border: none;
    color: var(--color-gold-muted, var(--color-camel));
    padding: 0 0 0 0.75rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-newsletter-form .btn-submit:hover {
    color: var(--color-ivory);
    transform: translateX(3px);
}

/* Social links */
.social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-camel);
    font-size: 0.8rem;
    transition: var(--transition-base);
}

.social-link:hover {
    border-color: var(--accent, rgba(255, 255, 255, 0.3));
    color: var(--color-ivory);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* ===================================================================
   FOOTER — RESPONSIVE
   =================================================================== */

@media (max-width: 991px) {
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        width: 100%;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-tagline {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .footer-logo {
        height: 60px;
        width: 100px;
    }

    .footer-heading {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 575px) {
    .footer {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer .d-flex.gap-2 {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-bottom-links {
        gap: 1rem;
    }
}
