/* ============================================
   Door2Door Laundry — footer.css
   Dark teal background · White text
   ============================================ */

/* ── Tokens (mirrors header vars) ── */
:root {
    --f-bg: #1a7f81;
    /* dark teal base */
    --f-bg-deep: #155f61;
    /* deeper teal for depth */
    --f-bg-card: rgba(255, 255, 255, 0.07);
    --f-accent: #42BABC;
    /* bright teal highlight */
    --f-accent-soft: rgba(66, 186, 188, 0.25);
    --f-white: #ffffff;
    --f-white-70: rgba(255, 255, 255, 0.70);
    --f-white-40: rgba(255, 255, 255, 0.40);
    --f-white-15: rgba(255, 255, 255, 0.10);
    --f-border: rgba(255, 255, 255, 0.12);
    --f-radius: 12px;
    --f-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --f-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════
     FOOTER SHELL
  ══════════════════════════════════════ */
.site-footer {
    position: relative;
    background: linear-gradient(160deg, var(--f-bg) 0%, var(--f-bg-deep) 100%);
    color: var(--f-white);
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
}

/* subtle noise texture overlay */
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Wave top edge ── */
.footer-wave {
    position: relative;
    z-index: 1;
    margin-bottom: -2px;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ── Floating bubbles ── */
.footer-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.fb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), rgba(66, 186, 188, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: fbFloat linear infinite;
}

.fb1 {
    width: 80px;
    height: 80px;
    left: 5%;
    bottom: -80px;
    animation-duration: 14s;
    animation-delay: 0s;
}

.fb2 {
    width: 50px;
    height: 50px;
    left: 18%;
    bottom: -50px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.fb3 {
    width: 120px;
    height: 120px;
    left: 38%;
    bottom: -120px;
    animation-duration: 18s;
    animation-delay: 1s;
}

.fb4 {
    width: 35px;
    height: 35px;
    left: 58%;
    bottom: -35px;
    animation-duration: 9s;
    animation-delay: 4s;
}

.fb5 {
    width: 90px;
    height: 90px;
    left: 74%;
    bottom: -90px;
    animation-duration: 16s;
    animation-delay: 0.5s;
}

.fb6 {
    width: 55px;
    height: 55px;
    left: 90%;
    bottom: -55px;
    animation-duration: 12s;
    animation-delay: 3s;
}

@keyframes fbFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

/* ── Main container ── */
.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 0;
}

/* ══════════════════════════════════════
     REVEAL ANIMATION
  ══════════════════════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--f-ease), transform 0.65s var(--f-ease);
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════
     TOP: BRAND + STATS
  ══════════════════════════════════════ */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--f-border);
}

/* ── Brand ── */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.footer-logo-img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--f-white-15);
    border: 1.5px solid var(--f-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.4s var(--f-spring), background 0.3s;
}

.footer-logo:hover .footer-logo-img-wrap {
    transform: rotate(-6deg) scale(1.08);
    background: rgba(255, 255, 255, 0.18);
}

.footer-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 14px;
}

.footer-logo-fallback {
    width: 44px;
    height: 44px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--f-white);
    letter-spacing: -0.02em;
    line-height: 1;
}

.footer-logo-accent {
    color: var(--f-accent);
}

.footer-logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--f-accent);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--f-white-70);
    max-width: 320px;
}

.footer-tagline em {
    font-style: italic;
    color: var(--f-white);
    font-weight: 500;
}

/* Social buttons */
.footer-social {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--f-white-15);
    border: 1px solid var(--f-border);
    color: var(--f-white-70);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.28s, color 0.28s, transform 0.28s var(--f-spring), border-color 0.28s;
}

.social-btn:hover {
    background: var(--f-accent);
    color: var(--f-white);
    border-color: var(--f-accent);
    transform: translateY(-3px) scale(1.08);
}

/* ── Stats ── */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-content: start;
}

.stat-card {
    background: var(--f-bg-card);
    border: 1px solid var(--f-border);
    border-radius: var(--f-radius);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
    transition: background 0.28s, border-color 0.28s, transform 0.28s var(--f-spring);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--f-accent), transparent);
    opacity: 0;
    transition: opacity 0.28s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--f-accent-soft);
    transform: translateY(-3px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--f-white);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.1rem;
    color: var(--f-accent);
    font-weight: 600;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--f-white-70);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* ══════════════════════════════════════
     FOOTER GRID: 4 COLUMNS
  ══════════════════════════════════════ */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.2fr 1.4fr;
    gap: 40px;
    padding: 44px 0 40px;
    border-bottom: 1px solid var(--f-border);
}

/* Column title */
.footer-col-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--f-white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
}

.col-title-line {
    display: inline-block;
    width: 24px;
    height: 2.5px;
    background: var(--f-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Quick links & services */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: var(--f-white-70);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.22s, padding-left 0.22s;
    padding-left: 0;
}

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

.service-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--f-accent);
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.footer-links li a:hover .service-dot {
    opacity: 1;
    transform: scale(1.4);
}

/* Contact list */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--f-white-70);
    line-height: 1.55;
}

.footer-contact-list li a {
    color: var(--f-white-70);
    text-decoration: none;
    transition: color 0.22s;
}

.footer-contact-list li a:hover {
    color: var(--f-accent);
}

.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--f-white-15);
    border: 1px solid var(--f-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--f-accent);
    margin-top: 1px;
}

/* Map */
.footer-map-wrap {
    border-radius: var(--f-radius);
    overflow: hidden;
    border: 1.5px solid var(--f-border);
    position: relative;
}

.footer-map-wrap iframe {
    display: block;
    width: 100%;
    height: 180px;
    filter: saturate(0.85) contrast(1.05);
    transition: filter 0.3s;
}

.footer-map-wrap:hover iframe {
    filter: saturate(1) contrast(1);
}

.map-directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    background: var(--f-accent);
    color: var(--f-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: background 0.25s, filter 0.25s;
}

.map-directions-btn:hover {
    background: #2fa0a2;
    filter: brightness(1.08);
}

/* ══════════════════════════════════════
     FEATURES STRIP
  ══════════════════════════════════════ */
.footer-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 28px 0;
    border-bottom: 1px solid var(--f-border);
    justify-content: center;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--f-white-15);
    border: 1px solid var(--f-border);
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--f-white-70);
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--f-spring);
    cursor: default;
}

.feature-pill svg {
    color: var(--f-accent);
    flex-shrink: 0;
}

.feature-pill:hover {
    background: var(--f-accent-soft);
    color: var(--f-white);
    border-color: var(--f-accent);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════
     BOTTOM BAR
  ══════════════════════════════════════ */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px 0 30px;
}

.footer-copy {
    font-size: 0.83rem;
    color: var(--f-white-40);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    font-size: 0.83rem;
    color: var(--f-white-40);
    text-decoration: none;
    transition: color 0.22s;
}

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

.footer-bottom-links .divider {
    color: var(--f-white-40);
    font-size: 0.75rem;
}

.footer-made {
    font-size: 0.83rem;
    color: var(--f-white-40);
}

.footer-made .heart {
    color: #ff6b6b;
    display: inline-block;
    animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.2);
    }

    70% {
        transform: scale(1);
    }
}

/* ══════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-col-map {
        grid-column: span 2;
    }

    .footer-map-wrap iframe {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        padding: 0 24px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 36px;
    }

    .footer-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .stat-num {
        font-size: 1.6rem;
    }
}

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

    .footer-col-map {
        grid-column: span 2;
    }

    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 420px) {
    .footer-container {
        padding: 0 16px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col-map {
        grid-column: span 1;
    }

    .footer-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-features {
        gap: 8px;
    }

    .feature-pill {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}