/* =========================
   FOOTER (AA Dewan & Co.)
   ========================= */

.site-footer {
    background: var(--bg);
    color: var(--ink);
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    line-height: 1.6;
}

html[data-theme="dark"] .site-footer {
    background: #0c0c0c;
    color: #eaeaea;
    border-color: #222;
}

/* ===== Top CTA Band ===== */
.f-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem var(--space);
    max-width: var(--wrap);
    margin: 0 auto;
}

.f-cta__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.f-cta__cell--right {
    text-align: right;
}

.f-cta__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--ink-strong);
}

html[data-theme="dark"] .f-cta__title {
    color: #fff;
}

/* CTA pills (Email / WhatsApp) */
.f-cta__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 0.8rem 1.4rem;
    background: var(--bg-alt);
    color: var(--accent);
    transition: all 0.2s ease;
}

.f-cta__pill svg {
    width: 26px;
    height: 26px;
}

.f-cta__pill:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

.f-cta__pill--wa {
    background: var(--accent);
    color: #fff;
}

.f-cta__pill--wa:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

html[data-theme="dark"] .f-cta__pill {
    background: #1a1a1a;
    color: #cfcfcf;
}

html[data-theme="dark"] .f-cta__pill--wa {
    background: var(--accent);
    color: #fff;
}

/* Logo */
.f-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-logo img {
    height: auto;
    width: 180px;
    transition: opacity 0.3s ease;
}

.logo-dark {
    display: none;
}

html[data-theme="dark"] .logo-light {
    display: none;
}

html[data-theme="dark"] .logo-dark {
    display: block;
}

/* Separator */
.f-sep {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

/* ===== 4-Column Grid ===== */
.f-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 3rem var(--space);
}

.f-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.f-h {
    font-family: 'Noto Serif Ethiopic', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink-strong);
}

html[data-theme="dark"] .f-h {
    color: #fff;
}

.f-text {
    font-size: 0.95rem;
    color: var(--ink-muted);
}

html[data-theme="dark"] .f-text {
    color: #ccc;
}

/* badges */
.f-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.f-badge {
    background: var(--bg-alt);
    color: var(--ink-muted);
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.f-badge:hover {
    background: var(--accent);
    color: #fff;
}

html[data-theme="dark"] .f-badge {
    background: #1a1a1a;
    color: #ccc;
    border-color: #2a2a2a;
}

/* lists */
.f-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.f-list--two {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.f-list a {
    color: var(--ink);
    font-weight: 500;
}

.f-list a:hover {
    color: var(--accent2);
}

html[data-theme="dark"] .f-list a {
    color: #ddd;
}

html[data-theme="dark"] .f-list a:hover {
    color: var(--accent);
}

/* Offices */
.office__title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.office__addr {
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin-bottom: 0.75rem;
}

html[data-theme="dark"] .office__addr {
    color: #bbb;
}

.contact-row {
    display: flex;
    gap: 0.6rem;
}

.cbtn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: var(--ink);
    transition: all 0.2s ease;
}

.cbtn:hover {
    background: var(--accent);
    color: #fff;
}

html[data-theme="dark"] .cbtn {
    background: #1a1a1a;
    color: #ddd;
    border-color: #333;
}

/* Newsletter */
.f-newsletter {
    margin-top: 0.75rem;
}

.f-h--sm {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: var(--ink-strong);
}

html[data-theme="dark"] .f-h--sm {
    color: #fff;
}

.nl {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.nl input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 10px 0 0 10px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--ink);
}

.nl-btn {
    border: 0;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 1.1rem;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.nl-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Social Icons */
.f-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sbtn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--bg-alt);
    color: var(--ink);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.sbtn:hover {
    background: var(--accent);
    color: #fff;
}

html[data-theme="dark"] .sbtn {
    background: #1a1a1a;
    color: #ddd;
    border-color: #333;
}

/* Bottom Bar */
.f-bottom {
    border-top: 1px solid var(--line);
    padding: 1.2rem var(--space);
    max-width: var(--wrap);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.copy {
    margin: 0;
}

.f-legal {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.f-legal a {
    color: var(--accent);
    font-weight: 600;
}

.f-legal a:hover {
    color: var(--accent);
}

/* =========== Responsive =========== */
@media (max-width: 720px) {
    .f-cta {
        flex-direction: column;
        text-align: center;
    }

    .f-grid {
        grid-template-columns: 1fr;
    }

    .f-cta__cell--right {
        text-align: center;
    }

    .f-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}

/* ====== Ultra-Small Screens (<= 350px) ====== */
@media (max-width: 350px) {

    /* Reduce padding and gaps */
    .f-cta {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .f-grid {
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    /* Pills stack vertically if needed */
    .f-cta__pill {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }

    /* Logo scales down */
    .f-logo img {
        width: 130px;
    }

    /* Newsletter input/button stack */
    .nl {
        flex-direction: column;
        align-items: stretch;
    }

    .nl input,
    .nl-btn {
        border-radius: 8px;
        width: 100%;
    }

    .nl-btn {
        margin-top: 0.5rem;
    }

    /* Bottom section spacing */
    .f-bottom {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1rem;
        text-align: center;
    }

    .f-legal {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Reduce text sizes slightly for better fit */
    .f-h,
    .f-h--sm {
        font-size: 1rem;
    }

    .f-text,
    .office__addr,
    .copy {
        font-size: 0.85rem;
    }

    /* Social icons smaller */
    .sbtn {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }
}