/* ============================================================
   Horus Custom Footer
   Golden background + dark arch top + 4 column links
   ============================================================ */

:root {
    --hf-gold:       #E8A500;
    --hf-gold-dark:  #C98F00;
    --hf-black:      #0d0d0d;
    --hf-text-dark:  #1a1a1a;
    --hf-text-link:  #1a1a1a;
    --hf-social-bg:  #1a1a1a;
    --hf-social-fg:  #E8A500;
    --hf-radius:     50px;
    --hf-transition: 0.25s ease;
}

/* ── Prevent theme footer from showing ──────────────────────── */
/* Add a theme-specific override if needed. */

/* ── Footer shell ────────────────────────────────────────────── */
.horus-footer {
    width: 100%;
    font-family: inherit;
    line-height: 1.6;
}

/* ══ DARK ARCH TOP ══════════════════════════════════════════════ */
.horus-footer__arch {
    position: relative;
    background: var(--hf-black);
    /* Rounded bottom corners create the arch look */
    border-radius: 0 0 var(--hf-radius) var(--hf-radius);
    padding: 28px 20px 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Push logo down so it overlaps the golden section */
    margin-bottom: -46px;
    z-index: 2;
}

.horus-footer__arch-inner {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 0;
}

/* ── Logo wrapper — dark background bubble ────────────────────── */
.horus-footer__logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hf-black);
    border: 3px solid var(--hf-gold);
    border-radius: 10px;
    padding: 8px 14px;
    text-decoration: none;
    /* Sits at the boundary of arch and golden body */
    position: relative;
    bottom: -18px;
    z-index: 3;
}

.horus-footer__logo-link--text {
    padding: 12px 20px;
}

.horus-footer__logo-img {
    display: block;
    /* width/height set by inline CSS from plugin settings */
}

.horus-footer__logo-text {
    color: var(--hf-gold);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ══ GOLDEN BODY ════════════════════════════════════════════════ */
.horus-footer__body {
    background: var(--hf-gold);
    padding-top: 80px; /* space for the overlapping logo */
    position: relative;
    z-index: 1;
}

.horus-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 0;
}

/* ── Columns ─────────────────────────────────────────────────── */
.horus-footer__columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 32px;
}

/* ── Column heading ──────────────────────────────────────────── */
.horus-footer__col-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hf-text-dark);
    margin: 0 0 16px;
    text-transform: none;
    letter-spacing: 0.01em;
}

/* ── Column links (wp_nav_menu output) ───────────────────────── */
.horus-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horus-footer__links li {
    list-style: none;
}

.horus-footer__links a {
    display: inline-block;
    color: var(--hf-text-link);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color var(--hf-transition), transform var(--hf-transition);
}

.horus-footer__links a:hover,
.horus-footer__links a:focus-visible {
    color: var(--hf-black);
    text-decoration: underline;
    transform: translateX(3px);
}

[dir="rtl"] .horus-footer__links a:hover,
[dir="rtl"] .horus-footer__links a:focus-visible {
    transform: translateX(-3px);
}

/* ── Divider ─────────────────────────────────────────────────── */
.horus-footer__divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
    margin: 0 0 20px;
}

/* ── Bottom bar ──────────────────────────────────────────────── */
.horus-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 24px;
    gap: 16px;
}

.horus-footer__copy {
    font-size: 0.8rem;
    color: var(--hf-text-dark);
    font-weight: 500;
    flex: 1;
}

.horus-footer__copy--right {
    text-align: right;
}

[dir="rtl"] .horus-footer__copy--right {
    text-align: left;
}

/* ── Social icons ────────────────────────────────────────────── */
.horus-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.horus-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--hf-social-bg);
    border-radius: 50%;
    color: var(--hf-social-fg);
    text-decoration: none;
    transition: background var(--hf-transition), transform var(--hf-transition);
    flex-shrink: 0;
}

.horus-footer__social-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: var(--hf-social-fg);
}

/* YouTube play triangle uses fill, not stroke */
.horus-footer__social-link:nth-child(3) svg {
    stroke: none;
    fill: var(--hf-social-fg);
}

/* X/Twitter uses fill */
.horus-footer__social-link:last-child svg {
    stroke: none;
    fill: var(--hf-social-fg);
}

/* Facebook uses fill */
.horus-footer__social-link:first-child svg {
    stroke: none;
    fill: var(--hf-social-fg);
}

.horus-footer__social-link:hover,
.horus-footer__social-link:focus-visible {
    background: var(--hf-gold-dark);
    transform: translateY(-2px);
}

/* ══ RESPONSIVE ═════════════════════════════════════════════════ */

/* 3 columns on medium screens */
@media (max-width: 1024px) {
    .horus-footer__columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .horus-footer__arch {
        border-radius: 0 0 40px 40px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .horus-footer__columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }

    .horus-footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
    }

    .horus-footer__copy,
    .horus-footer__copy--right {
        text-align: center;
        flex: none;
    }

    .horus-footer__arch {
        border-radius: 0 0 30px 30px;
        padding: 20px 20px 0;
    }

    .horus-footer__body {
        padding-top: 70px;
    }

    .horus-footer__container {
        padding: 0 16px;
    }
}

/* Very small */
@media (max-width: 380px) {
    .horus-footer__columns {
        grid-template-columns: 1fr;
    }
}

/* ── Focus outlines ──────────────────────────────────────────── */
.horus-footer a:focus-visible,
.horus-footer button:focus-visible {
    outline: 2px solid var(--hf-black);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .horus-footer *,
    .horus-footer *::before,
    .horus-footer *::after {
        transition-duration: 0.01ms !important;
    }
}
