/* ================================================
   FLEASTS FOOTER — MOBILE FIRST
   File: css/components/footer.css
   Safari-hardened throughout.
================================================ */

.fleasts-footer {
    background: #111;
    font-family: 'Special Elite', monospace;
    width: 100%;
    border-top: 2px solid #e8c84a;
    /* Prevent iOS bounce scroll showing white below footer */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ================================================
   NEWSLETTER STRIP
================================================ */

.footer-newsletter {
    border-bottom: 1px solid #2a2a2a;
}

.footer-newsletter__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-newsletter__inner {
        -webkit-box-orient: horizontal;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        padding: 1.5rem 2.5rem;
    }
}

.footer-newsletter__title {
    color: #f3f0e7;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    margin: 0 0 0.2rem;
}

.footer-newsletter__sub {
    color: #8a8378;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    margin: 0;
}

.footer-newsletter__form {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 420px;
}

.footer-newsletter__input {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    min-height: 46px;
    padding: 0 0.9rem;
    font-family: inherit;
    font-size: 16px;            /* prevents iOS zoom */
    color: #f3f0e7;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    -webkit-appearance: none;
    appearance: none;
}

.footer-newsletter__input::placeholder { color: #6b655c; }

.footer-newsletter__input:focus {
    outline: none;
    border-color: #e8c84a;
}

.footer-newsletter__btn {
    min-height: 46px;
    padding: 0 1.25rem;
    font-family: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: #111;
    background: #e8c84a;
    border: 1px solid #e8c84a;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: background 0.18s ease, border-color 0.18s ease;
    transition: background 0.18s ease, border-color 0.18s ease;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.footer-newsletter__btn:hover {
    background: #d4b53e;
    border-color: #d4b53e;
}


/* ================================================
   TOP SECTION
   Mobile: stacked cards
   768px+: 3-column grid
================================================ */

.footer-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;

    /* Mobile: flex column */
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 1rem;

    border-bottom: 1px solid #2a2a2a;
}

/* Fallback gap for Safari < 14.1 */
.footer-top > * + * {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .footer-top {
        display: -webkit-box;
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1.2fr 4rem 1fr 4rem 1fr;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 4rem;
        padding: 2rem 2.5rem;
        -webkit-box-align: start;
        align-items: start;
    }
    /* Reset margin-top fallback on desktop */
    .footer-top > * + * {
        margin-top: 0;
    }
}

/* ── Column cards — mobile only ── */
.footer-brand,
.footer-nav-col {
    background: #161616;
    border: 1px solid #2a2a2a;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    padding: 1rem;
    /* Prevent card from collapsing on Safari */
    min-width: 0;
}

@media (min-width: 768px) {
    .footer-brand,
    .footer-nav-col {
        background: transparent;
        border: none;
        -webkit-border-radius: 0;
        border-radius: 0;
        padding: 0;
    }
}

/* ── Brand ── */
.footer-brand {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.footer-wordmark {
    display: block;
    font-family: 'Special Elite', monospace;
    font-size: 38px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 2px;
    /* fit-content needs prefix for older Safari */
    width: -webkit-fit-content;
    width: fit-content;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}
.footer-wordmark:hover { opacity: 0.65; }
.footer-wordmark em { font-style: normal; color: #e8c84a; }

.footer-tagline {
    font-size: 12px;
    letter-spacing: 0.22em;
    color: #888;
    text-transform: lowercase;
    margin: 0 0 0.75rem;
}

.footer-brand-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    border: 1px solid #2a2a2a;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    overflow: hidden;
    /* Full width on mobile, capped on desktop */
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-brand-links {
        max-width: 260px;
    }
}

.footer-social {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.06em;
    padding: 10px 14px;
    border-bottom: 1px solid #2a2a2a;
    -webkit-transition: background 0.15s ease, color 0.15s ease;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
    /* Fallback gap */
}
.footer-social > svg { margin-right: 12px; }
.footer-social:last-child { border-bottom: none; }
.footer-social svg {
    height: 15px;
    color: #888;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-transition: color 0.15s ease;
    transition: color 0.15s ease;
}
a.footer-social:hover { background: #1a1a1a; color: #e8c84a; }
a.footer-social:hover svg { color: #e8c84a; }
.footer-location { cursor: default; color: #888; }

/* ── Nav columns ── */
.footer-heading {
    font-family: 'Special Elite', monospace;
    font-size: 15px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #e8c84a;
    font-weight: 400;
    margin: 0 0 0.75rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #2a2a2a;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    color: #bbb;
    text-decoration: none;
    font-size: 20px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    padding: 4px 0;
    border-bottom: 1px solid #1e1e1e;
    -webkit-transition: color 0.15s ease, padding-left 0.15s ease;
    transition: color 0.15s ease, padding-left 0.15s ease;
    line-height: 1;
    /* Prevent iOS tap highlight */
    -webkit-tap-highlight-color: transparent;
}
.footer-links li:last-child a { border-bottom: none; }

.footer-links a::after {
    content: '\2192';
    font-size: 14px;
    color: #444;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    -webkit-transition: color 0.15s ease, -webkit-transform 0.15s ease;
    transition: color 0.15s ease, transform 0.15s ease;
}
.footer-links a:hover { color: #ffffff; padding-left: 6px; }
.footer-links a:hover::after { color: #e8c84a; -webkit-transform: translateX(4px); transform: translateX(4px); }

/* ================================================
   BOTTOM BAR
================================================ */

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;

    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 0.4rem;
}

/* Fallback gap */
.footer-bottom > * + * {
    margin-top: 0.4rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        justify-content: space-between;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        padding: 1rem 2.5rem;
    }
    .footer-bottom > * + * {
        margin-top: 0;
    }
}

.footer-copy {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #888;
    text-transform: lowercase;
    display: block;
}

.footer-legal {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.6rem;
}

/* Fallback gap */
.footer-legal > * + * {
    margin-left: 0.6rem;
}

.footer-legal a {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #888;
    text-decoration: none;
    text-transform: lowercase;
    -webkit-transition: color 0.15s ease;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.footer-legal a:hover { color: #e8c84a; }

.footer-legal span {
    color: #444;
    font-size: 12px;
}