/* =========================================================
   EngTree — the site footer, the same on every page

   One footer in five columns: the brand, the pages to explore,
   the company, the legal documents (Terms, Refund, Privacy,
   General Policies) and how to reach us (email, phone, WhatsApp,
   address). Below them, the copyright and the official sponsor.

   Every page used to carry its own footer, with its own columns,
   so the legal links moved from page to page. This file and the
   identical markup in each page keep them in one place.

   The footer is dark in both themes, so its colours are fixed
   here rather than taken from the theme variables. The classes
   are prefixed ef- so they never meet a page's older footer
   rules (.footer-content, .footer-section, ...).
   ========================================================= */

.site-footer.et-footer {
    background: #050605;
    color: #bbb;
    border-top: 4px solid var(--et-gold, #E3B341);
    padding: 56px 0 0;
    margin: 0;
}

.et-footer .ef-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
    gap: 36px 32px;
    align-items: start;
}

/* ---------------- brand ---------------- */
.et-footer .ef-logo { display: inline-block; margin-bottom: 18px; }
.et-footer .ef-logo img { display: block; width: 128px; height: auto; }

.et-footer .ef-brand p {
    margin: 0 0 12px;
    max-width: 310px;
    font-size: 14px;
    line-height: 1.9;
    color: #bdbdbd;
}

.et-footer .ef-brand .ef-tag {
    color: var(--et-gold, #E3B341);
    font-weight: 700;
}

/* ---------------- column heads ---------------- */
.et-footer .ef-col h4 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--et-gold, #E3B341);
    border-bottom: 1px solid #1d1f1d;
    text-transform: none;
}

/* A short gold rule under each head, at the start of the line in either direction. */
.et-footer .ef-col h4::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline-start: 0;
    width: 30px;
    height: 2px;
    border-radius: 2px;
    background: var(--et-gold, #E3B341);
}

/* ---------------- link lists ---------------- */
.et-footer .ef-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.et-footer .ef-links a,
.et-footer .ef-links .ef-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #cfcfcf;
    text-decoration: none;
    transition: color .2s;
}

.et-footer .ef-links i {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--et-gold, #E3B341);
    transition: color .2s;
}

.et-footer .ef-links a:hover,
.et-footer .ef-links a:focus-visible { color: #fff; }
.et-footer .ef-links a:hover i,
.et-footer .ef-links a:focus-visible i { color: var(--et-green, #2E8B4A); }

/* The page the visitor is on. */
.et-footer .ef-links a[aria-current="page"] { color: var(--et-gold, #E3B341); font-weight: 700; }

/* Numbers and addresses read left to right inside a right-to-left column. */
.et-footer .ef-contact .ltr { direction: ltr; unicode-bidi: isolate; }

/* A number: the call link, then a small WhatsApp link to the same number. */
.et-footer .ef-num a { gap: 0; }
.et-footer .ef-num .ef-wa { margin-inline-start: 8px; }
.et-footer .ef-num .ef-wa i { width: auto; font-size: 16px; color: #25D366; }
.et-footer .ef-num .ef-wa:hover i { color: #fff; }

/* Contact details set apart (2026-11-28): the email and numbers in bold white, each number with its
   country in a small gold tag; the addresses as a list of places, the head office first and brightest. */
.et-footer .ef-contact .ltr { color: #fff; font-weight: 700; letter-spacing: .2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* a number never breaks: the number and its WhatsApp mark on one line, its country tag always on the next,
   under the number (a full-width break between them, the tag set in by the icon's width and gap) */
.et-footer .ef-links .ef-item.ef-num { flex-wrap: wrap; row-gap: 1px; }
.et-footer .ef-num::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
.et-footer .ef-num .ef-country { order: 3; margin-inline-start: 26px; }
.et-footer .ef-contact a:hover .ltr { color: var(--et-gold, #E3B341); }
.et-footer .ef-country {
    margin-inline-start: 7px; padding: 0 6px; border-radius: 5px;
    font-size: 10.5px; font-weight: 700; line-height: 1.7; white-space: nowrap;
    color: var(--et-gold, #E3B341); border: 1px solid rgba(227, 179, 65, .42);
}
.et-footer .ef-contact .addr-lines > span { position: relative; padding-inline-start: 13px; }
.et-footer .ef-contact .addr-lines > span::before {
    content: ""; position: absolute; top: .72em; inset-inline-start: 0; width: 6px; height: 6px; border-radius: 50%;
    background: rgba(227, 179, 65, .55);
}
.et-footer .ef-contact .addr-lines > span:first-child { color: #fff; font-weight: 700; }
.et-footer .ef-contact .addr-lines > span:first-child::before { background: var(--et-gold, #E3B341); box-shadow: 0 0 6px rgba(227, 179, 65, .7); }

/* A value on several lines (the three addresses): the icon stays on the first line. */
.et-footer .ef-item.ef-top { align-items: flex-start; }
.et-footer .ef-item.ef-top > i { margin-top: 4px; }

/* A value the owner has yet to supply: visible, never invented. */
.et-footer .ph {
    display: inline-block;
    padding: 0 7px;
    border: 1px dashed rgba(227, 179, 65, .6);
    border-radius: 5px;
    background: transparent;
    color: var(--et-gold, #E3B341);
    font-size: 13px;
}

/* ---------------- bottom bar ---------------- */
.et-footer .ef-bottom {
    margin-top: 44px;
    padding: 18px 0 22px;
    border-top: 1px solid #1a1c1a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    font-size: 13px;
    color: #8a8a8a;
}

.et-footer .ef-copy .ef-site { color: var(--et-green, #2E8B4A); font-weight: 700; }

.et-footer .ef-sponsor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.et-footer .ef-sp-k {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--et-gold, #E3B341);
}

/* EngEgypt's own logo (imgs/engegypt-logo.svg = brand/logo/engegypt-logo-dark.svg
   of its site, the version on dark grounds; the footer is always dark). */
.et-footer .ef-sp-mark {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid #333;
    border-radius: 10px;
    direction: ltr;
    text-decoration: none;
    transition: border-color .25s;
}

.et-footer .ef-sp-mark img { display: block; height: 40px; width: auto; }
.et-footer .ef-sp-mark:hover { border-color: #E60000; }
.et-footer .ef-sp-t { color: #9a9a9a; }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1100px) {
    .et-footer .ef-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .et-footer .ef-brand { grid-column: 1 / -1; }
    .et-footer .ef-brand p { max-width: 560px; }
}

@media (max-width: 680px) {
    .site-footer.et-footer { padding-top: 42px; }
    .et-footer .ef-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
    .et-footer .ef-links a, .et-footer .ef-links .ef-item { font-size: 13.5px; }
    .et-footer .ef-contact .ltr { font-size: 12.5px; }
    .et-footer .ef-bottom { justify-content: center; text-align: center; }
    .et-footer .ef-sponsor { justify-content: center; }
}

@media (max-width: 340px) {
    .et-footer .ef-grid { grid-template-columns: 1fr; }
}

/* Several values in one place, one per line (the three addresses, the two
   numbers), on any page: footer, contact, about and the legal documents.
   Each line is its own element, so switching language keeps the lines. */
.addr-lines > * { display: block; }
.addr-lines > * + * { margin-top: 3px; }

/* The same mark anywhere on a page whose own stylesheet has no .ph
   (contact, home, blueprint, web design, DX). :where() keeps this at
   zero specificity, so page.css and legal.css still win where they
   define their own. */
:where(.ph) {
    display: inline-block;
    padding: 0 7px;
    border: 1px dashed rgba(227, 179, 65, .6);
    border-radius: 5px;
    color: #E3B341;
}

@media print {
    .site-footer.et-footer { background: none; color: #000; border-top-color: #000; }
    .et-footer .ef-links a, .et-footer .ef-links .ef-item, .et-footer .ef-brand p, .et-footer .ef-bottom { color: #000; }
    .et-footer .ef-contact .ltr, .et-footer .ef-contact .addr-lines > span:first-child { color: #000; }
}
