/* ============================================================================
   MARKETING FOOTER — 4-column grid with logo and legal links
   Colours driven by --mk-* vars from Brand Palette Editor (Marketing Slate tab)
   ============================================================================
   KNOWN LIMITATION — HARDCODED COLOURS — DO NOT UPDATE
   This file is loaded on the PUBLIC site which does NOT load palette.css.
   Palette vars (--white-text, --hover-lift etc.) are UNDEFINED here.
   All colours MUST be hardcoded. Do NOT replace with palette CSS variables.
   ============================================================================ */

.mk-footer {
    padding: 1rem 2rem 1rem;
    position: relative;
    overflow: hidden;
    background-color: var(--mkt-footer-background);
    background-image: var(--mkt-footer-background-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--mkt-footer-text);
}

/* =============================================================================
   FOOTER GRID — 4 columns
   ============================================================================= */

.mk-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-footer-col h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mkt-footer-heading);
    margin-bottom: 1rem;
}

.mk-footer-col p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.8;
    margin: 0;
    color: var(--mkt-footer-text);
}

.mk-footer-col a {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 2;
    color: var(--mkt-footer-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mk-footer-col a:hover {
    color: var(--mkt-footer-link-hover);
    text-decoration: none;
}


/* =============================================================================
   SOCIAL LINKS
   ============================================================================= */

.mk-footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.mk-footer-social a {
    display: inline;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}


/* =============================================================================
   FOOTER LOGO
   ============================================================================= */

.mk-footer-logo {
    text-align: center;
    padding: 0.5rem 0 0.5rem;
}

.mk-footer-logo img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.mk-footer-logo img:hover {
    opacity: 1;
}


/* =============================================================================
   FOOTER BOTTOM — Copyright + legal links
   ============================================================================= */

.mk-footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.mk-footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--mkt-footer-muted);
    margin-bottom: 0.5rem;
}

.mk-legal-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.mk-legal-links a {
    color: var(--mkt-footer-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mk-legal-links a:hover {
    color: var(--mkt-footer-link-hover);
}

.mk-legal-links span {
    color: var(--mkt-footer-muted);
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .mk-footer {
        padding: 2rem 1rem 1rem;
    }

    .mk-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .mk-footer-logo img {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .mk-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mk-footer-social {
        justify-content: center;
    }
}

/* =============================================================================
   ACCESSIBILITY THEMES — override marketing footer colours
   ============================================================================= */

body[data-theme="highcontrast"] .mk-footer {
    background-color: #000000;
    color: #ffffff;
}

body[data-theme="highcontrast"] .mk-footer-col h4 {
    color: #ffffff;
}

body[data-theme="highcontrast"] .mk-footer-col p,
body[data-theme="highcontrast"] .mk-footer-col a {
    color: #cccccc;
}

body[data-theme="highcontrast"] .mk-footer-col a:hover {
    color: #ffffff;
}

body[data-theme="highcontrast"] .mk-footer-grid {
    border-bottom-color: #ffffff;
}

body[data-theme="highcontrast"] .mk-footer-bottom p,
body[data-theme="highcontrast"] .mk-legal-links a,
body[data-theme="highcontrast"] .mk-legal-links span {
    color: #cccccc;
}

body[data-theme="highcontrast"] .mk-legal-links a:hover {
    color: #ffffff;
}

body[data-theme="dyslexic"] .mk-footer {
    background-color: #e8e4dc;
    color: #333333;
}

body[data-theme="dyslexic"] .mk-footer-col h4 {
    color: #333333;
}

body[data-theme="dyslexic"] .mk-footer-col p,
body[data-theme="dyslexic"] .mk-footer-col a {
    color: #444444;
}

body[data-theme="dyslexic"] .mk-footer-col a:hover {
    color: #000000;
}

body[data-theme="dyslexic"] .mk-footer-grid {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="dyslexic"] .mk-footer-bottom p,
body[data-theme="dyslexic"] .mk-legal-links a,
body[data-theme="dyslexic"] .mk-legal-links span {
    color: #555555;
}

body[data-theme="dyslexic"] .mk-legal-links a:hover {
    color: #000000;
}
