/* ==========================================================
   SITE FOOTER (News pages)
   Brand brown background, brand gold accents, system font.
   Three columns on desktop: brand · newsletter · connect.
   ========================================================== */

.site-footer {
    --sf-bg: #2c1f02;
    --sf-bg-soft: #3a2a06;
    --sf-gold: #d89b00;
    --sf-gold-light: #f0c24d;
    --sf-text: #f3ead7;
    --sf-muted: rgba(243, 234, 215, 0.68);
    --sf-line: rgba(243, 234, 215, 0.16);

    width: 100%;
    margin: 0;

    background: var(--sf-bg);
    color: var(--sf-text);

    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
    outline: 2px solid var(--sf-gold);
    outline-offset: 3px;
}

.sf-visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.sf-inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 0;
}


/* ----------------------------------------------------------
   Columns
   ---------------------------------------------------------- */

.sf-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;

    padding-bottom: 44px;
}

.sf-heading {
    margin: 0 0 10px;

    color: var(--sf-text);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sf-text,
.sf-about {
    margin: 0;

    color: var(--sf-muted);

    font-size: 14px;
    line-height: 1.6;
}


/* Brand */

.sf-logo-link {
    display: inline-block;

    margin-bottom: 14px;

    transition: opacity 0.2s ease;
}

.sf-logo-link:hover {
    opacity: 0.85;
}

.sf-logo {
    display: block;

    width: auto;
    max-width: 170px;
    height: 64px;

    object-fit: contain;
}

.sf-about {
    max-width: 280px;
}


/* ----------------------------------------------------------
   Newsletter
   ---------------------------------------------------------- */

.sf-form {
    display: flex;

    margin-top: 16px;
}

.site-footer #hba-newsletter-email {
    flex: 1;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 14px;

    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 0;

    color: #1f1c16;

    font: inherit;
    font-size: 14px;

    outline: none;
}

.site-footer #hba-newsletter-email::placeholder {
    color: #8a877f;
}

.site-footer #hba-newsletter-email:focus {
    border-color: var(--sf-gold);
    box-shadow: inset 0 0 0 1px var(--sf-gold);
}

.sf-submit {
    flex: 0 0 auto;

    height: 46px;
    margin: 0;
    padding: 0 22px;

    background: var(--sf-gold);
    border: 1px solid var(--sf-gold);
    border-radius: 0;

    color: var(--sf-bg);

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease, border-color 0.2s ease;
}

.sf-submit:hover {
    background: var(--sf-gold-light);
    border-color: var(--sf-gold-light);
}

.sf-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.sf-form-message {
    min-height: 20px;
    margin: 10px 0 0;

    color: var(--sf-muted);

    font-size: 13px;
}

.sf-form-message.is-success {
    color: #9fd8b2;
}

.sf-form-message.is-error {
    color: #f3a99f;
}


/* ----------------------------------------------------------
   Connect with us
   ---------------------------------------------------------- */

.sf-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 16px;
}

.sf-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--sf-line);

    color: var(--sf-text);

    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sf-social-link svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
}

.sf-social-link:hover {
    border-color: var(--sf-gold);
    background: var(--sf-bg-soft);
    color: var(--sf-gold);
}

.sf-subheading {
    margin: 26px 0 10px;
    padding-top: 20px;

    border-top: 1px solid var(--sf-line);

    color: var(--sf-muted);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sf-channel {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 10px 16px 10px 12px;

    border: 1px solid var(--sf-line);

    color: var(--sf-text);

    font-size: 14px;
    font-weight: 600;

    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sf-channel svg {
    flex: 0 0 auto;

    width: 22px;
    height: 22px;

    fill: #25d366;
}

.sf-channel:hover {
    border-color: var(--sf-gold);
    background: var(--sf-bg-soft);
    color: var(--sf-gold);
}


/* ----------------------------------------------------------
   Bottom line
   ---------------------------------------------------------- */

.sf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 20px 0 24px;

    border-top: 1px solid var(--sf-line);

    color: var(--sf-muted);

    font-size: 12.5px;
}

.sf-bottom p {
    margin: 0;
}

.sf-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
}

.sf-links a {
    transition: color 0.2s ease;
}

.sf-links a:hover {
    color: var(--sf-gold);
}


/* ----------------------------------------------------------
   Tablets: brand across the top, then two columns
   ---------------------------------------------------------- */

@media (max-width: 1000px) {

    .sf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 40px;
    }

    .sf-brand {
        grid-column: 1 / -1;

        display: flex;
        align-items: center;
        gap: 20px;
    }

    .sf-logo-link {
        margin-bottom: 0;
    }

    .sf-about {
        max-width: 440px;
    }
}


/* ----------------------------------------------------------
   Phones: one column
   ---------------------------------------------------------- */

@media (max-width: 640px) {

    .sf-inner {
        width: calc(100% - 32px);
        padding-top: 40px;
    }

    .sf-grid {
        grid-template-columns: 1fr;
        gap: 32px;

        padding-bottom: 32px;
    }

    .sf-brand {
        display: block;
    }

    .sf-logo-link {
        margin-bottom: 12px;
    }

    .sf-logo {
        height: 54px;
    }

    .sf-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;

        padding-bottom: 90px;   /* room for the floating WhatsApp button */
    }
}

@media (max-width: 380px) {

    .sf-form {
        flex-direction: column;
        gap: 8px;
    }

    .sf-submit {
        width: 100%;
    }
}
