/* =========================================================
   CouponsHaven - Modern Customer Footer
   ========================================================= */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 64px;
    color: #d7deea;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(249, 115, 22, 0.10), transparent 32%),
        radial-gradient(ellipse at 100% 100%, rgba(249, 115, 22, 0.08), transparent 30%),
        #0b1424;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #fb923c, #f97316, #fdba74) 1;
}

.footer-container {
    position: relative;
    width: calc(100% - 48px);
    max-width: none;
    margin: 0 auto;
    padding: 38px 0 28px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(0, 0.72fr)
        minmax(0, 0.82fr)
        minmax(0, 1fr)
        minmax(0, 1.2fr);
    column-gap: 26px;
    box-sizing: border-box;
}

.footer-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column h3 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 750;
    letter-spacing: -0.2px;
}

.footer-column h3::after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 99px;
    background: #f97316;
    content: "";
}

/* Brand column */

.footer-about {
    max-width: 360px;
}

.footer-about .footer-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: -5px 0 18px;
    text-decoration: none;
    line-height: 0;
}

.footer-about .footer-brand picture {
    display: block;
    width: 100%;
}

.footer-about .footer-brand-image {
    display: block;
    width: 100%;
    max-width: 255px;
    height: auto;
    object-fit: contain;
}

.footer-about .footer-brand:focus-visible {
    outline: 2px solid #fb923c;
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-about p,
.footer-signup > p,
.footer-popular-stores > p {
    max-width: 340px;
    margin: 0;
    color: #aab5c5;
    font-size: 13px;
    line-height: 1.8;
}

/* Popular stores intro */

.footer-popular-stores > p {
    margin: 0 0 14px;
    color: #aab5c5;
    font-size: 13px;
    line-height: 1.8;
}

/* Link columns */

.footer-links > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 9px;
    padding-left: 15px;
    color: #b8c2d1;
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links > a::before {
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #f97316;
    border-right: 1.5px solid #f97316;
    transform: rotate(45deg);
    content: "";
}

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


/* Popular stores use the same live coupon-count ranking as the Stores page. */
.footer-popular-store-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.footer-popular-store-list > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 9px;
    padding-left: 15px;
    color: #b8c2d1;
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-popular-store-list > a::before {
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #f97316;
    border-right: 1.5px solid #f97316;
    transform: rotate(45deg);
    content: "";
}

.footer-popular-store-list > a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-links > .footer-browse-stores {
    margin-top: 3px;
    color: #fbbf24;
    font-weight: 650;
}

.footer-popular-stores > p {
    max-width: 230px;
    margin: 0 0 12px;
    color: #aab5c5;
    font-size: 12px;
    line-height: 1.7;
}

/* Social links */

.footer-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.footer-social-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    box-sizing: border-box;
    border: 1px solid rgba(203, 213, 225, 0.28) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    color: #dbe3ee !important;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    background: #f97316 !important;
    border-color: #f97316 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.footer-social-link svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    fill: currentColor !important;
    stroke: none !important;
}

.footer-social-link svg path {
    fill: currentColor !important;
    stroke: none !important;
}

.footer-social-link svg rect,
.footer-social-link svg circle {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

.footer-social-link svg .instagram-dot {
    fill: currentColor !important;
    stroke: none !important;
}

/* Newsletter */

.footer-signup {
    padding: 20px;
    align-self: start;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.footer-signup h3 {
    margin-bottom: 18px;
}

.footer-signup > p {
    margin: -2px 0 18px;
    font-size: 12.5px;
}

.footer-signup-label {
    display: block;
    margin-bottom: 8px;
    color: #c2ccda;
    font-size: 11px;
    font-weight: 650;
}

.footer-signup-input-wrap {
    display: flex;
    width: 100%;
    max-width: 100%;
}

.footer-signup-input-wrap input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 42px;
    box-sizing: border-box;
    padding: 0 11px;
    border: 1px solid #354256 !important;
    border-right: 0 !important;
    border-radius: 8px 0 0 8px !important;
    outline: none;
    background: #111e31 !important;
    color: #ffffff !important;
    font: inherit;
    font-size: 12px;
}

.footer-signup-input-wrap input::placeholder {
    color: #8492a6;
}

.footer-signup-input-wrap input:focus {
    border-color: #f97316 !important;
}

.footer-signup-input-wrap button {
    flex-shrink: 0;
    width: auto;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid #f97316 !important;
    border-radius: 0 8px 8px 0 !important;
    background: #f97316 !important;
    color: #ffffff !important;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-signup-input-wrap button:hover {
    background: #ea580c !important;
    border-color: #ea580c !important;
}

/* Newsletter feedback */

.footer-signup-message {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 11px;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.footer-signup-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.footer-signup-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Bottom bar */

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.20);
    background: rgba(3, 9, 19, 0.22);
}

.footer-bottom-inner {
    width: min(1200px, calc(100% - 40px));
    min-height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-sizing: border-box;
}

.footer-bottom p {
    margin: 0;
    color: #8f9bad;
    font-size: 11px;
    line-height: 1.6;
}

.footer-tagline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #aab5c5;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.footer-tagline i {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f97316;
}

/* Keyboard focus */

.footer-column > a:focus-visible,
.footer-social-link:focus-visible,
.footer-signup-input-wrap input:focus-visible,
.footer-signup-input-wrap button:focus-visible {
    outline: 2px solid #fb923c;
    outline-offset: 3px;
}

/* Responsive */

@media (max-width: 1050px) {
    .footer-container {
        width: calc(100% - 40px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px 24px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-signup {
        grid-column: 1 / -1;
        max-width: 480px;
    }
}

@media (max-width: 700px) {
    .site-footer {
        margin-top: 48px;
    }

    .footer-container {
        width: calc(100% - 40px);
        grid-template-columns: 1fr 1fr;
        gap: 28px 22px;
        padding: 34px 0 26px;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-about p {
        max-width: 520px;
    }

    .footer-signup {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .footer-bottom-inner {
        width: calc(100% - 32px);
    }
}

@media (max-width: 480px) {
    .footer-container {
        width: calc(100% - 36px);
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        padding: 30px 0 22px;
    }

    .footer-about,
    .footer-signup {
        grid-column: 1 / -1;
    }

    .footer-about .footer-brand-image {
        max-width: 225px;
    }

    .footer-column h3 {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .footer-links > a {
        margin-bottom: 11px;
        font-size: 12px;
    }

    .footer-signup {
        padding: 17px;
    }

    .footer-bottom-inner {
        min-height: 52px;
        width: calc(100% - 36px);
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 13px 0;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-column > a,
    .footer-social-link,
    .footer-signup-input-wrap button {
        transition: none;
    }
}
