/* footer.css */

/* ── wrapper ──────────────────────────────────────────────── */
.main-footer {
    background-color: #e8e8e5;
    padding: 0;
    margin: 0;
}

.footer-inner {
    padding: 50px 15px 0;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
}

/* ── main grid ────────────────────────────────────────────── */
/*
   mobile  (<768):  single column — each of 3 items stacks
   tablet  (768+):  brand | links-wrapper (side by side), app col below
   desktop (992+):  brand | links-wrapper | app col — all in one row
                    links-wrapper internally splits into 3 equal cols
*/
/* mobile: brand full width, then links | app side by side */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "brand"
        "links"
        "app";
    gap: 32px;
    margin-bottom: 0;
}

@media (min-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand brand"
            "links app  ";
        gap: 32px 24px;
    }

    .footer-brand         { grid-area: brand; }
    .footer-links-wrapper { grid-area: links; }
    .footer-app-col       { grid-area: app; align-items: center; }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand brand"
            "links app  ";
        gap: 40px 32px;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        /* brand | shop | help | company | app — all equal width */
        grid-template-columns: repeat(5, 1fr);
        grid-template-areas: "brand links links links app";
        gap: 24px;
    }

    .footer-app-col { flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; }
}

/* ── brand col ────────────────────────────────────────────── */
.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.footer-contact { margin-bottom: 16px; }

.footer-contact-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4a5568;
    margin-bottom: 4px;
}

.footer-contact-label i {
    font-size: 0.75rem;
    width: 14px;
}

.footer-contact-label span {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-contact-value {
    font-size: 0.875rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-value:hover { color: var(--brand-primary); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--brand-primary);
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.footer-social a:hover {
    background-color: var(--brand-primary-hover);
    color: #fff;
}

/* ── links wrapper — always 2-col sub-grid on mobile/tablet ── */
/*
   On mobile: SHOP + HELP side by side (2 cols), COMPANY below SHOP
   On desktop: stays 3-col inside the links grid-area
*/
.footer-links-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
}

/* 2nd link col (HELP) right-aligned on mobile/tablet */
.footer-links-wrapper .footer-links-col:nth-child(2) {
    text-align: right;
}

/* 3rd col (COMPANY) — on mobile sits below SHOP, left-aligned */
.footer-links-wrapper .footer-links-col:nth-child(3) {
    text-align: left;
}

@media (min-width: 992px) {
    .footer-links-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* reset alignment on desktop — all left */
    .footer-links-wrapper .footer-links-col:nth-child(2) {
        text-align: left;
    }
}

/* ── individual link col ──────────────────────────────────── */
.footer-col-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 12px; }

.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 col ──────────────────────────────────────────────── */
.footer-app-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── phone mockup ─────────────────────────────────────────── */
@keyframes phone-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

.phone-mockup {
    width: 144px;
    height: 256px;
    background: var(--brand-text-dark);
    border-radius: 20px;
    padding: 4px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.18),
        0 8px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
    animation: phone-float 3s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 12px;
    background: var(--brand-text-mid);
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 8px;
}

.phone-app-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-bg-section));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px rgba(26, 106, 72, 0.35);
}

.phone-app-icon img {
    width: 95%;
    height: auto;
}

.phone-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.phone-skeleton-line {
    height: 8px;
    background: #e8e8e5;
    border-radius: 4px;
}

.phone-skeleton-line.long  { width: 80px; }
.phone-skeleton-line.short { width: 64px; }

.phone-nav-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-bottom: 10px;
}

.phone-nav-dots .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d0d0d0;
}

.phone-nav-dots .dot.active { background: var(--brand-primary); }

/* ── app buttons ──────────────────────────────────────────── */
.app-btns {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background-color: var(--brand-primary);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.app-store-btn:hover {
    background-color: var(--brand-primary-hover);
    color: #fff;
}

.app-store-btn i { font-size: 0.95rem; flex-shrink: 0; }

/* ── watermark row */
.footer-watermark-row {
    overflow: hidden;
    text-align: center;
    line-height: 1;
    margin-bottom: 5px;
}

.footer-watermark {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(45, 80, 22, 0.2);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    /* fluid: small screens → large screens */
    font-size: clamp(2.2rem, 10vw, 5.5rem);
}

/* ── bottom bar ───────────────────────────────────────────── */
.footer-bottom {
    border-top: 1px solid rgba(26, 26, 26, 0.1);
    margin-top: 0;
    padding: 20px 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom .copyright {
    font-size: 0.8rem;
    color: #4a5568;
    margin: 0;
}

.footer-bottom .copyright span {
    color: var(--brand-darker);
    font-weight: 500;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.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: 8px;
}

.payment-icons i {
    font-size: 1.4rem;
    color: #aaa;
    transition: color 0.2s;
}

.payment-icons i:hover { color: var(--brand-darker); }

/* ── small mobile tweaks ──────────────────────────────────── */
@media (max-width: 576px) {
    .footer-inner { padding: 40px 16px 0; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .phone-mockup { animation: none; }
}