/* ═══════════════════════════════════════════════════════════
   EAS FOOTER — REDESIGN (footer-redesign-mockup.html)
   East Africa Safari Guides · child-theme owned · zero page-builder dependency
   Authority file (LAW 17/18). Renders eas-footer.php from eas_get_site_map().
   Tokens: forest #2C3424 · gold #B8780A · amber #C9963C · tobacco #B59E7D
           char #584738 · cream #FEFDFB · off-white #F4F1E9
═══════════════════════════════════════════════════════════ */

.eas-footer {
    background: #2C3424;
    color: #F4F1E9;
    font-family: var(--eas-font-nav, 'Jost', sans-serif);
    font-style: normal;
}

.eas-footer *,
.eas-footer *::before,
.eas-footer *::after {
    box-sizing: border-box;
    font-style: normal;
}

/* ─── TOP — BRAND + 3 COLUMNS ─── */
.eas-footer-top {
    max-width: 1300px;
    margin: 0 auto;
    padding: 76px 60px 56px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 48px;
    border-bottom: 1px solid rgba(244, 241, 233, 0.12);
}

/* ─── BRAND ─── */
.eas-fbrand-logo {
    display: inline-block;
    line-height: 0;
}

.eas-fbrand-logo img {
    width: 150px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(86%) sepia(12%) saturate(300%) hue-rotate(5deg) brightness(90%);
}

.eas-fbrand-statement {
    font-family: var(--eas-font-head, 'Cormorant Garamond', serif);
    font-size: 18px;
    line-height: 1.75;
    color: rgba(244, 241, 233, 0.72);
    max-width: 34ch;
    margin: 12px 0 22px;
}

.eas-fbrand-coords {
    font-style: normal;
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    letter-spacing: 0.06em;
    color: rgba(244, 241, 233, 0.55);
}

/* ─── SOCIAL ─── */
.eas-fbrand-social {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.eas-fbrand-social a {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(244, 241, 233, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(244, 241, 233, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.eas-fbrand-social a svg {
    display: block;
}

.eas-fbrand-social a:hover,
.eas-fbrand-social a:focus-visible {
    border-color: #C9963C;
    color: #1C1A14;
    background: #C9963C;
}

/* ─── COLUMNS (SAFARIS BY TRAVELER / EXPLORE) ─── */
.eas-fcol {
    display: flex;
    flex-direction: column;
}

.eas-fcol-h {
    font-family: var(--eas-font-nav, 'Jost', sans-serif);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #E8C06A;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(244, 241, 233, 0.14);
}

.eas-fcol nav {
    display: flex;
    flex-direction: column;
}

.eas-fcol nav a {
    display: block;
    font-family: var(--eas-font-nav, 'Jost', sans-serif);
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.5;
    padding: 6px 0;
    text-decoration: none;
    color: rgba(244, 241, 233, 0.78);
    position: relative;
    transition: color 0.15s;
}

.eas-fcol nav a:hover,
.eas-fcol nav a:focus-visible {
    color: #F4F1E9;
}

/* ─── SPEAK TO US — heading outside, frosted-glass card inside, TrustIndex
   standalone below (reverted to this structure per the explicit follow-up
   brief — the previous flat opaque parchment card was wrong). The card is a
   genuinely translucent parchment tint over the dark footer with a real
   backdrop blur — "frosted glass," not a light box — so its text stays
   light (the surface is still fundamentally dark, just softened/lifted),
   matching how frosted panels are already done elsewhere in this theme
   (honeymoon pillar badges: light tint + blur + dark text works there only
   because THAT tint sits over a photo at ~90% opacity, near-opaque; this
   card is meant to read as glass, so it stays translucent and keeps light
   text for contrast against the dark forest showing through it). */
.eas-fconvert-wrap {
    display: flex;
    flex-direction: column;
}

.eas-fconvert {
    display: flex;
    flex-direction: column;
    background: rgba(244, 241, 233, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(244, 241, 233, 0.22);
    border-radius: 4px;
    padding: 22px 22px;
    width: 100%;
}

.eas-fconvert-trustindex {
    margin-top: 20px;
}

.eas-fconvert-contact {
    font-size: 14px;
    color: #F4F1E9;
    line-height: 1.6;
    margin: 0 0 6px;
}

.eas-fconvert-contact a {
    color: #F4F1E9;
    text-decoration: none;
}

.eas-fconvert-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #E8C06A;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    margin-top: 4px;
    transition: border-color 0.3s ease;
}

.eas-fconvert-whatsapp:hover,
.eas-fconvert-whatsapp:focus-visible {
    border-color: #E8C06A;
}

.eas-fconvert-note {
    font-size: 11.5px;
    color: rgba(244, 241, 233, 0.6);
    margin: 18px 0 0;
}

/* ─── NEWSLETTER (inside the glass card) ─── */
.eas-fconvert-newsletter {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(244, 241, 233, 0.18);
}

.eas-fconvert-newsletter-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(244, 241, 233, 0.72);
    margin: 0 0 12px;
    line-height: 1.5;
}

.eas-fconvert-newsletter-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(244, 241, 233, 0.32);
    max-width: 280px;
    transition: border-color 0.3s ease;
}

.eas-fconvert-newsletter-form:focus-within {
    border-color: #E8C06A;
}

.eas-fconvert-newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    color: #F4F1E9;
    font-family: var(--eas-font-nav, 'Jost', sans-serif);
    font-size: 13px;
    padding: 10px 0;
    flex: 1;
    min-width: 0;
}

.eas-fconvert-newsletter-form button {
    background: none;
    border: none;
    color: #E8C06A;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 4px;
    min-width: 44px;
    min-height: 44px;
    transition: transform 0.3s ease;
}

.eas-fconvert-newsletter-form button:hover {
    transform: translateX(3px);
}

/* ─── BOTTOM BAR ─── */
.eas-footer-legal-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 26px 60px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: rgba(244, 241, 233, 0.5);
}

.eas-footer-legal-inner nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eas-footer-legal a {
    color: rgba(244, 241, 233, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.eas-footer-legal a:hover,
.eas-footer-legal a:focus-visible {
    color: #C9963C;
}

.eas-footer-legal-sep {
    color: rgba(201, 150, 60, 0.45);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .eas-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 44px;
        padding: 56px 40px;
    }

    .eas-fbrand {
        grid-column: 1 / -1;
    }

    .eas-footer-legal-inner {
        padding: 22px 40px;
    }
}

@media (max-width: 640px) {
    .eas-footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 24px;
    }

    .eas-footer-legal-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 22px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eas-footer,
    .eas-footer * {
        transition: none !important;
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   LAW 17/18 — FOOTER SELF-DEFENSE
   Page-level inline styles cannot recolor footer text or links.
═══════════════════════════════════════════════════════════ */
.eas-footer,
.eas-footer * {
    color: inherit;
}

.eas-footer a,
.eas-footer a:link,
.eas-footer a:visited,
.eas-footer .eas-fcol nav a,
.eas-footer .eas-fcol nav a:link,
.eas-footer .eas-fcol nav a:visited,
.eas-footer .eas-footer-legal a {
    color: rgba(244, 241, 233, 0.78) !important;
}

.eas-footer .eas-fcol nav a:hover,
.eas-footer .eas-footer-legal a:hover {
    color: #C9963C !important;
}

.eas-footer .eas-fcol-h {
    color: #E8C06A !important;
}

.eas-footer .eas-fbrand-statement,
.eas-footer .eas-fbrand-coords,
.eas-footer .eas-footer-copy,
.eas-footer .eas-footer-legal-inner {
    color: rgba(244, 241, 233, 0.62) !important;
}

.eas-footer .eas-fconvert-contact,
.eas-footer .eas-fconvert-contact a,
.eas-footer .eas-fconvert-contact a:link,
.eas-footer .eas-fconvert-contact a:visited {
    color: #F4F1E9 !important;
}

.eas-footer .eas-fconvert-whatsapp,
.eas-footer .eas-fconvert-whatsapp:link,
.eas-footer .eas-fconvert-whatsapp:visited {
    color: #E8C06A !important;
}

.eas-footer .eas-fconvert-note {
    color: rgba(244, 241, 233, 0.6) !important;
}

/* Newsletter label — the one footer text element proven to break when a
   page's own markup nests the footer inside a colored wrapper (see the
   homepage's .eas-home-page unclosed-div fix, same investigation). Guarded
   explicitly so it can never again fall through to an inherited color. */
.eas-footer .eas-fconvert-newsletter-label {
    color: rgba(244, 241, 233, 0.72) !important;
}

.eas-footer .eas-fconvert-newsletter-form input,
.eas-footer .eas-fconvert-newsletter-form input:focus {
    color: #F4F1E9 !important;
    background: transparent !important;
}

.eas-footer .eas-fconvert-newsletter-form input::placeholder {
    color: rgba(244, 241, 233, 0.5) !important;
    opacity: 1 !important;
}

/* TrustIndex's own "Top Rated Service" link (.ti-widget, injected by their
   loader script — now a standalone sibling of .eas-fconvert, directly on
   the dark footer). The widget ships its own opaque white card background
   regardless of what it sits on, so its internal link still needs a dark
   color — this is the exact rule that was overriding it with our light
   footer-link color, which is invisible on the widget's own white backing. */
.eas-footer .eas-fconvert-wrap .ti-widget a {
    color: #1C1A14 !important;
}
