/* =========================================
   TANZANIA ELSEWHERE — SHARED FOOTER
   MOBILE FIRST
========================================= */

.site-footer {
    --footer-background: #0D3025;
    --footer-text: #D0DED4;
    --footer-muted: #B4C8BA;
    --footer-border: #426458;

    min-width: 0;

    caret-color: transparent;
}

.site-footer a {
    text-decoration: none;
}

/* =========================================
   SHARED SVG ICONS
========================================= */

.footer-icon,
.footer-contact-icon {
    display: block;

    width: 22px;
    height: 22px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================
   TRAVEL ASSISTANCE PANEL
========================================= */

.footer-assistance {
    padding-block: 48px 55px;

    background: var(--white);

    border-top: 1px solid #E7EAE6;
}

.footer-assistance-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    align-items: center;

    gap: 28px;
}

/* =========================================
   TRAVEL CONSULTANT PORTRAIT
========================================= */

.footer-portrait {
    position: relative;
    isolation: isolate;

    width: min(65%, 210px);

    aspect-ratio: 1;

    margin: 0 auto;
}

/* Soft decorative background behind portrait */

.footer-portrait::before {
    content: '';

    position: absolute;
    inset: 12%;

    background: linear-gradient(
        135deg,
        #F7E8C6,
        #F5D69C
    );

    border-radius: 42% 58% 55% 45% /
                   50% 40% 60% 50%;

    transform: rotate(-12deg);

    z-index: -1;
}

.footer-portrait img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition:
        transform 750ms
        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   TRAVEL ASSISTANCE TEXT
========================================= */

.footer-assistance-copy {
    min-width: 0;
}

.footer-assistance-copy h2 {
    max-width: 420px;

    margin: 0 auto 20px;

    color: var(--green);

    font-size: clamp(27px, 6.8vw, 35px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.03em;

    text-align: center;
    text-wrap: balance;
}

.footer-assistance-copy p {
    max-width: 450px;

    margin: 0 auto;

    color: var(--charcoal);

    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
}

/* =========================================
   TRAVEL CONTACT OPTIONS
========================================= */

.footer-contact-options {
    display: grid;

    grid-template-columns: minmax(0, 1fr);

    gap: 16px;

    min-width: 0;
}

/* Individual contact card */

.footer-contact-card {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    min-width: 0;
    min-height: 82px;

    padding: 20px;

    background: var(--off-white);
    color: var(--green);

    border: 1px solid #E2E7E1;
    border-radius: 18px;

    box-shadow:
        0 3px 10px rgb(0 0 0 / 4%);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 350ms ease,
        border-color 350ms ease,
        color 350ms ease,
        transform 350ms ease,
        box-shadow 350ms ease;
}

.footer-contact-card span {
    min-width: 0;

    overflow-wrap: anywhere;
}

.footer-contact-icon {
    width: 29px;
    height: 29px;

    transition: transform 350ms ease;
}

/* =========================================
   MAIN DARK GREEN FOOTER
========================================= */

.footer-main {
    padding-block: 46px 28px;

    background: var(--footer-background);
    color: var(--footer-text);
}

/* =========================================
   RESPONSIVE FOOTER COLUMNS
========================================= */

.footer-columns {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 32px 20px;
}

.footer-brand-column,
.footer-company-nav {
    grid-column: 1 / -1;
}

.footer-brand-column,
.footer-nav {
    min-width: 0;
}

/* =========================================
   COMPANY WORDMARK
========================================= */

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 5px;

    max-width: 100%;

    color: var(--white);
}

.footer-brand-name {
    font-size: clamp(25px, 6vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.footer-brand-subtitle {
    color: var(--footer-text);

    font-size: 10px;
    font-weight: 650;
    line-height: 1.6;
    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.footer-brand-line {
    width: 48px;
    height: 2px;

    margin-block: 21px;

    background: var(--orange);
}

/* =========================================
   COMPANY DESCRIPTION AND LOCATION
========================================= */

.footer-description {
    max-width: 440px;

    margin: 0 0 20px;

    color: var(--footer-text);

    font-size: 15px;
    font-weight: 450;
    line-height: 1.8;
}

.footer-location {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 22px;

    color: var(--white);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.footer-location .footer-icon {
    width: 20px;
    height: 20px;

    color: var(--orange);
}

/* =========================================
   SOCIAL AND REVIEW LINKS
========================================= */

.footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 40px;

    padding: 8px 12px;

    color: var(--white);

    border: 1px solid var(--footer-border);
    border-radius: 30px;

    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;

    transition:
        background-color 250ms ease,
        border-color 250ms ease,
        color 250ms ease;
}

.footer-social-link .footer-icon {
    width: 17px;
    height: 17px;
}

/* =========================================
   FOOTER NAVIGATION
========================================= */

.footer-nav h3 {
    margin: 0 0 20px;

    color: var(--white);

    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

/* Golden underline beneath each column title */

.footer-nav h3::after {
    content: '';

    display: block;

    width: 28px;
    height: 2px;

    margin-top: 11px;

    background: var(--orange);
}

.footer-links {
    display: grid;

    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-links a {
    display: inline-block;

    padding-block: 6px;

    color: var(--footer-text);

    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    overflow-wrap: anywhere;

    transition: color 220ms ease;
}

/* =========================================
   COMPANY SLOGAN
========================================= */

.footer-slogan {
    margin-top: 36px;

    padding-block: 25px;

    border-top: 1px solid var(--footer-border);
    border-bottom: 1px solid var(--footer-border);

    text-align: center;
}

.footer-slogan p {
    margin: 0;

    color: var(--orange);

    font-size: clamp(17px, 4.6vw, 24px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.02em;

    text-wrap: balance;
}

/* =========================================
   FOOTER BOTTOM
========================================= */

.footer-bottom {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 25px;

    padding-top: 25px;
}

.footer-bottom-copy {
    min-width: 0;

    text-align: center;
}

/* Legal links */

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px 16px;

    margin-bottom: 15px;
}

.footer-legal a {
    color: var(--footer-text);

    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;

    transition: color 220ms ease;
}

/* Copyright */

.footer-copyright {
    margin: 0;

    color: var(--footer-muted);

    font-size: 12px;
    font-weight: 450;
    line-height: 1.8;
}

/* =========================================
   BACK-TO-TOP ARROW
========================================= */

.footer-back-top {
    display: inline-flex;
    flex-direction: column;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    color: var(--white);

    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;

    text-align: center;

    cursor: pointer;

    transition: color 250ms ease;
}

.footer-back-top .footer-icon {
    width: 48px;
    height: 48px;

    padding: 12px;

    background: var(--green);
    color: var(--white);

    border: 1px solid #688779;
    border-radius: 12px;

    transition:
        background-color 300ms ease,
        color 300ms ease,
        border-color 300ms ease,
        transform 300ms ease;
}

/* =========================================
   DESKTOP HOVER EFFECTS
========================================= */

@media (hover: hover) and (pointer: fine) {

    .footer-portrait:hover img {
        transform: scale(1.04);
    }

    .footer-contact-card:hover {
        background: var(--green);
        color: var(--white);

        border-color: var(--green);

        transform: translateY(-5px);

        box-shadow:
            0 10px 24px rgb(6 91 16 / 13%);
    }

    .footer-contact-card:hover .footer-contact-icon {
        transform: scale(1.08);
    }

    .footer-links a:hover,
    .footer-legal a:hover,
    .footer-back-top:hover {
        color: var(--orange);
    }

    .footer-social-link:hover {
        background: var(--orange);
        color: var(--black);

        border-color: var(--orange);
    }

    .footer-back-top:hover .footer-icon {
        background: var(--orange);
        color: var(--black);

        border-color: var(--orange);

        transform: translateY(-4px);
    }
}

/* =========================================
   TOUCH AND KEYBOARD FEEDBACK
========================================= */

.footer-contact-card:active {
    background: var(--green);
    color: var(--white);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

/* =========================================
   SMALL SMARTPHONES
========================================= */

@media (max-width: 359px) {

    .footer-assistance {
        padding-block: 38px 45px;
    }

    .footer-assistance-copy h2 {
        font-size: 25px;
    }

    .footer-assistance-copy p {
        font-size: 15px;
    }

    .footer-contact-card {
        min-height: 74px;

        padding-inline: 14px;

        font-size: 15px;
    }

    .footer-columns {
        grid-template-columns: minmax(0, 1fr);

        gap: 28px;
    }

    .footer-nav h3 {
        margin-bottom: 12px;
    }
}

/* =========================================
   TABLET LAYOUT
========================================= */

@media (min-width: 640px) {

    .footer-assistance {
        padding-block: 55px;
    }

    .footer-assistance-layout {
        grid-template-columns:
            minmax(150px, 0.7fr)
            minmax(0, 1.3fr);

        gap: 28px;
    }

    .footer-portrait {
        width: min(100%, 220px);
    }

    .footer-assistance-copy h2 {
        margin: 0 0 16px;

        font-size: 32px;

        text-align: left;
    }

    .footer-assistance-copy p {
        margin: 0;

        font-size: 17px;
    }

    /* Three contact cards in one row */

    .footer-contact-options {
        grid-column: 1 / -1;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

    .footer-contact-card {
        flex-direction: column;

        gap: 12px;

        min-height: 135px;
    }

    .footer-main {
        padding-block: 55px 30px;
    }

    .footer-columns {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 36px 24px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
    }

    .footer-company-nav {
        grid-column: auto;
    }

    .footer-nav h3 {
        font-size: 18px;
    }

    .footer-links a {
        font-size: 15px;
    }

    .footer-bottom {
        flex-direction: row;

        justify-content: space-between;

        align-items: center;
    }

    .footer-bottom-copy {
        text-align: left;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

/* =========================================
   DESKTOP LAYOUT
   PORTRAIT + STORY + THREE CONTACT CARDS
========================================= */

@media (min-width: 1100px) {

    .footer-assistance {
        padding-block: 62px;
    }

    .footer-assistance-layout {
        grid-template-columns:
            minmax(140px, 0.62fr)
            minmax(230px, 1fr)
            minmax(0, 1.95fr);

        gap: clamp(24px, 2.2vw, 42px);
    }

    .footer-portrait {
        width: min(100%, 225px);
    }

    .footer-assistance-copy h2 {
        font-size: clamp(27px, 1.9vw, 36px);
    }

    .footer-assistance-copy p {
        font-size: clamp(16px, 1.05vw, 19px);
    }

    .footer-contact-options {
        grid-column: auto;

        gap: clamp(12px, 1vw, 18px);
    }

    .footer-contact-card {
        min-height: 156px;

        padding: 20px 14px;

        border-radius: 20px;

        font-size: clamp(15px, 1.05vw, 18px);
    }

    .footer-contact-icon {
        width: 32px;
        height: 32px;
    }
    /* =========================================
   WHATSAPP BRAND ICON
========================================= */

.footer-wa-icon {
    display: block;

    width: 29px;
    height: 29px;

    flex-shrink: 0;

    object-fit: contain;

    transition:
        filter 350ms ease,
        transform 350ms ease;
}

/* Desktop icon size */

@media (min-width: 1100px) {

    .footer-wa-icon {
        width: 32px;
        height: 32px;
    }
}

/* White icon on hover */

@media (hover: hover) and (pointer: fine) {

    .footer-whatsapp:hover .footer-wa-icon {
        filter: brightness(0) invert(1);

        transform: scale(1.08);
    }
}

/* Mobile touch feedback */

.footer-whatsapp:active .footer-wa-icon {
    filter: brightness(0) invert(1);
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

    .footer-wa-icon {
        transition: none;
    }

    .footer-whatsapp:hover .footer-wa-icon {
        transform: none;
    }
}

    .footer-contact-card span {
        max-width: 145px;

        text-wrap: balance;
    }

    /* Four-column footer */

    .footer-main {
        padding-block: 65px 32px;
    }

    .footer-columns {
        grid-template-columns:
            minmax(0, 1.4fr)
            repeat(3, minmax(0, 1fr));

        gap: clamp(24px, 3vw, 50px);
    }

    .footer-brand-column {
        grid-column: auto;
    }

    .footer-brand-name {
        font-size: clamp(26px, 1.9vw, 34px);
    }

    .footer-brand-subtitle {
        font-size: 11px;
    }

    .footer-description {
        font-size: 16px;
    }

    .footer-nav h3 {
        font-size: 19px;
    }

    .footer-links {
        gap: 9px;
    }

    .footer-links a {
        font-size: 15px;
    }

    .footer-slogan {
        margin-top: 48px;

        padding-block: 28px;
    }

    .footer-bottom {
        padding-top: 28px;
    }

    .footer-legal a,
    .footer-copyright {
        font-size: 13px;
    }

    .footer-back-top .footer-icon {
        width: 52px;
        height: 52px;
    }
}

/* =========================================
   REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-portrait img,
    .footer-contact-card,
    .footer-contact-icon,
    .footer-links a,
    .footer-social-link,
    .footer-legal a,
    .footer-back-top,
    .footer-back-top .footer-icon {
        transition: none;
    }

    .footer-portrait:hover img,
    .footer-contact-card:hover,
    .footer-contact-card:hover .footer-contact-icon,
    .footer-back-top:hover .footer-icon {
        transform: none;
    }
}