/* ============================================================
   FOOTER — Herb & House
   Mobile-first · One breakpoint (1024px)
   Mobile/Tablet: 2-column grid · Desktop: 5 equal columns
   ============================================================ */

.main-footer {
    background: #e8e8e5;
}

.footer-inner {
    padding: 48px 20px 0;
}

/* ── Main grid ─────────────────────────────────────────────── */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-logo {
    width: 120px;
    display: block;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .footer-inner { padding: 56px 32px 0; }

    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

/* ── Contact ───────────────────────────────────────────────── */
.footer-contact { margin-bottom: 14px; }

.footer-contact-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4a5568;
    margin-bottom: 2px;
}

.footer-contact-label i { font-size: 0.7rem; width: 14px; }

.footer-contact-value {
    display: block;
    margin-left: 20px;
    font-size: 0.9rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-value:hover { color: var(--brand-primary); }

/* ── Social ────────────────────────────────────────────────── */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.footer-social a:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-2px);
    color: #fff;
}

@media (min-width: 1024px) {
    .footer-contact-value { margin-left: 0; }
}

/* ── Dissolve the wrapper — its children join the parent grid directly ── */
.footer-links-wrapper {
    display: contents;
}

/* ── Link columns ──────────────────────────────────────────── */
.footer-col-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    font-size: 0.875rem;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--brand-primary); }

/* ── App column ────────────────────────────────────────────── */
.footer-app-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-app-col {
        align-items: flex-start;
        text-align: left;
    }
}

/* ── Phone mockup ──────────────────────────────────────────── */
@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.phone-mockup {
    position: relative;
    width: 180px;
    max-width: 100%;
    height: 280px;
    animation: phone-float 3s ease-in-out infinite;
}
.phone-mockup::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 70%;
    height: 14px;

    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        transparent 70%
    );

    border-radius: 50%;
    filter: blur(4px);

    animation: shadow-breathe 3s ease-in-out infinite;
}
@keyframes phone-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes shadow-breathe {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.35;
    }
    50% {
        transform: translateX(-50%) scale(0.85);
        opacity: 0.2;
    }
}
@keyframes phone-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}
.phone-mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── App buttons ───────────────────────────────────────────── */
.app-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

@media (min-width: 1024px) {
    .app-btns { justify-content: flex-start; }
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s, transform 0.15s;
}

.app-store-btn:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    color: #fff;
}

.app-store-btn i { font-size: 0.95rem; }

/* ── Watermark ─────────────────────────────────────────────── */
.footer-watermark-row {
    overflow: hidden;
    text-align: center;
    line-height: 1;
}

@media (min-width: 1024px) {
    .footer-watermark-row {
        margin-top: -64px;
        padding-left: 40px;
    }
}

.footer-watermark {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 7.5vw, 5rem);
    color: rgba(45, 80, 22, 0.2);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* ── Bottom bar ────────────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    padding: 20px 0 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom .copyright {
    font-size: 0.8rem;
    color: #4a5568;
    margin: 0;
    order: 1;
}

.footer-bottom .copyright span {
    color: var(--brand-darker);
    font-weight: 600;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    order: 2;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover { color: var(--brand-primary); }

.footer-bottom-links .sep {
    color: rgba(26, 26, 26, 0.2);
    font-size: 0.7rem;
    user-select: none;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    order: 3;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #b0b0b0;
    transition: color 0.2s;
}

.payment-icons i:hover { color: var(--brand-darker); }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .phone-mockup { animation: none; }
    .footer-social a,
    .footer-links a,
    .app-store-btn,
    .payment-icons i { transition: none; }
}
@media (max-width: 1024px) {
    .footer-app-col {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}