/* =========================================================
   ANCOR FOOTER V4
   Minimal Premium Footer
   Official palette only:
   #212121 #FCFCFC #B86060 #598068 #957A56
   ========================================================= */

:root {
    --afv4-dark: #212121;
    --afv4-light: #FCFCFC;
    --afv4-rose: #B86060;
    --afv4-green: #598068;
    --afv4-brown: #957A56;
    --afv4-container: 1320px;
}

/* Hide any old footer outside the global mount */
body > footer,
body > .site-footer,
body > .global-footer,
body > .ancor-global-footer {
    display: none !important;
}

#global-footer {
    position: relative;
    z-index: 20;
    width: 100%;
}

.ancor-footer-v4,
.ancor-footer-v4 * {
    box-sizing: border-box;
}

.ancor-footer-v4 {
    position: relative;
    overflow: hidden;
    direction: rtl;
    color: var(--afv4-light);
    background: var(--afv4-dark);
    border-top: 1px solid rgba(252, 252, 252, 0.08);
    font-family: inherit;
}

.ancor-footer-v4::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            var(--afv4-rose) 0 34%,
            var(--afv4-brown) 34% 67%,
            var(--afv4-green) 67% 100%
        );
}

.ancor-footer-v4::after {
    content: "A";
    position: absolute;
    left: -24px;
    bottom: -115px;
    color: rgba(252, 252, 252, 0.018);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 330px;
    line-height: 1;
    pointer-events: none;
}

.ancor-footer-v4-container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), var(--afv4-container));
    margin: 0 auto;
}

/* ===== TOP BRAND ROW ===== */

.ancor-footer-v4-top {
    min-height: 126px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 35px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(252, 252, 252, 0.09);
}

.ancor-footer-v4-brand-area {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.ancor-footer-v4-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    color: var(--afv4-light) !important;
    text-decoration: none !important;
}

.ancor-footer-v4-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--afv4-light);
    background:
        linear-gradient(
            145deg,
            rgba(184, 96, 96, 0.24),
            rgba(149, 122, 86, 0.10)
        );
    border: 1px solid rgba(252, 252, 252, 0.28);
    border-radius: 14px 4px 14px 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1;
}

.ancor-footer-v4-brand img {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 52px;
    object-fit: contain;
}

.ancor-footer-v4-brand strong {
    color: var(--afv4-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: 0.16em;
    line-height: 1;
}

.ancor-footer-v4-summary {
    max-width: 570px;
    margin: 0;
    padding-right: 22px;
    color: rgba(252, 252, 252, 0.55);
    border-right: 1px solid rgba(252, 252, 252, 0.11);
    font-size: 12px;
    line-height: 1.95;
}

.ancor-footer-v4-contact-button {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    color: var(--afv4-light) !important;
    background: transparent;
    border: 1px solid rgba(252, 252, 252, 0.24);
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.ancor-footer-v4-contact-button::after {
    content: "←";
    color: var(--afv4-rose);
    font-size: 17px;
}

.ancor-footer-v4-contact-button:hover {
    color: var(--afv4-light) !important;
    background: var(--afv4-rose);
    border-color: var(--afv4-rose);
    transform: translateY(-2px);
}

.ancor-footer-v4-contact-button:hover::after {
    color: var(--afv4-light);
}

/* ===== MAIN CONTENT ===== */

.ancor-footer-v4-main {
    display: grid;
    grid-template-columns:
        minmax(230px, 1.15fr)
        minmax(150px, 0.65fr)
        minmax(280px, 1.15fr)
        minmax(220px, 0.85fr);
    gap: 55px;
    padding: 48px 0 46px;
}

.ancor-footer-v4-column {
    min-width: 0;
}

.ancor-footer-v4-title {
    position: relative;
    margin: 0 0 21px;
    padding-bottom: 11px;
    color: var(--afv4-light);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.ancor-footer-v4-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 24px;
    height: 2px;
    background: var(--afv4-rose);
    border-radius: 99px;
}

.ancor-footer-v4-about p {
    max-width: 315px;
    margin: 0 0 19px;
    color: rgba(252, 252, 252, 0.50);
    font-size: 11px;
    line-height: 2;
}

.ancor-footer-v4-palette {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ancor-footer-v4-palette span {
    width: 24px;
    height: 4px;
    border-radius: 99px;
}

.ancor-footer-v4-palette span:nth-child(1) {
    background: var(--afv4-rose);
}

.ancor-footer-v4-palette span:nth-child(2) {
    background: var(--afv4-brown);
}

.ancor-footer-v4-palette span:nth-child(3) {
    background: var(--afv4-green);
}

.ancor-footer-v4-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.ancor-footer-v4-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 20px;
}

.ancor-footer-v4-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: rgba(252, 252, 252, 0.54) !important;
    text-decoration: none !important;
    font-size: 11px;
    line-height: 1.65;
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.ancor-footer-v4-link::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    background: var(--afv4-brown);
    border-radius: 50%;
}

.ancor-footer-v4-link:hover {
    color: var(--afv4-light) !important;
    transform: translateX(-4px);
}

.ancor-footer-v4-contact-text {
    margin: 0 0 17px;
    color: rgba(252, 252, 252, 0.49);
    font-size: 11px;
    line-height: 1.9;
}

.ancor-footer-v4-contact-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.ancor-footer-v4-contact-item {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(252, 252, 252, 0.64) !important;
    text-decoration: none !important;
    font-size: 11px;
    direction: ltr;
    text-align: left;
}

.ancor-footer-v4-contact-item:hover {
    color: var(--afv4-light) !important;
}

.ancor-footer-v4-contact-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    color: var(--afv4-rose);
    background: rgba(252, 252, 252, 0.05);
    border: 1px solid rgba(252, 252, 252, 0.08);
    border-radius: 8px;
    font-size: 10px;
}

.ancor-footer-v4-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.ancor-footer-v4-social {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: rgba(252, 252, 252, 0.64) !important;
    background: rgba(252, 252, 252, 0.04);
    border: 1px solid rgba(252, 252, 252, 0.10);
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.ancor-footer-v4-social:hover {
    color: var(--afv4-light) !important;
    background: var(--afv4-rose);
    border-color: var(--afv4-rose);
    transform: translateY(-2px);
}

/* ===== BOTTOM ===== */

.ancor-footer-v4-bottom {
    min-height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid rgba(252, 252, 252, 0.08);
}

.ancor-footer-v4-copyright {
    margin: 0;
    color: rgba(252, 252, 252, 0.36);
    font-size: 10px;
}

.ancor-footer-v4-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.ancor-footer-v4-legal a {
    color: rgba(252, 252, 252, 0.40) !important;
    text-decoration: none !important;
    font-size: 10px;
}

.ancor-footer-v4-legal a:hover {
    color: var(--afv4-light) !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1060px) {
    .ancor-footer-v4-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 55px;
    }
}

@media (max-width: 760px) {
    .ancor-footer-v4-container {
        width: min(calc(100% - 30px), var(--afv4-container));
    }

    .ancor-footer-v4-top {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 29px 0;
    }

    .ancor-footer-v4-brand-area {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .ancor-footer-v4-summary {
        max-width: none;
        padding-right: 0;
        border-right: 0;
    }

    .ancor-footer-v4-contact-button {
        width: fit-content;
    }

    .ancor-footer-v4-main {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 39px 0;
    }

    .ancor-footer-v4-about p {
        max-width: none;
    }

    .ancor-footer-v4-bottom {
        min-height: 82px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 11px;
    }
}

@media (max-width: 440px) {
    .ancor-footer-v4-services {
        grid-template-columns: 1fr;
    }

    .ancor-footer-v4-brand strong {
        font-size: 24px;
    }
}

/* ANCOR FOOTER FONT SIZE OVERRIDE START */

/* وصف الشركة أعلى الفوتر */
.ancor-footer-v4-summary {
    max-width: 650px !important;
    font-size: 15px !important;
    line-height: 2 !important;
}

/* زر التواصل */
.ancor-footer-v4-contact-button {
    min-height: 49px !important;
    padding-right: 25px !important;
    padding-left: 25px !important;
    font-size: 14px !important;
}

/* عناوين أعمدة الفوتر */
.ancor-footer-v4-title {
    margin-bottom: 24px !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
}

/* وصف ANCOR */
.ancor-footer-v4-about p {
    max-width: 370px !important;
    font-size: 14px !important;
    line-height: 2 !important;
}

/* جميع روابط الفوتر */
.ancor-footer-v4-link {
    font-size: 14px !important;
    line-height: 1.75 !important;
}

/* زيادة المسافة بين الروابط */
.ancor-footer-v4-links {
    gap: 14px !important;
}

.ancor-footer-v4-services {
    gap: 14px 24px !important;
}

/* نص قسم التواصل */
.ancor-footer-v4-contact-text {
    font-size: 14px !important;
    line-height: 2 !important;
}

/* الهاتف والبريد */
.ancor-footer-v4-contact-item {
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.ancor-footer-v4-contact-icon {
    width: 31px !important;
    height: 31px !important;
    flex-basis: 31px !important;
    font-size: 11px !important;
}

/* أيقونات مواقع التواصل */
.ancor-footer-v4-social {
    width: 39px !important;
    height: 39px !important;
    font-size: 11px !important;
}

/* حقوق النشر */
.ancor-footer-v4-copyright {
    font-size: 12px !important;
    line-height: 1.7 !important;
}

/* الخصوصية والشروط */
.ancor-footer-v4-legal a {
    font-size: 12px !important;
    line-height: 1.7 !important;
}

/* اسم ANCOR */
.ancor-footer-v4-brand strong {
    font-size: 30px !important;
}

/* تحسين ارتفاع ومساحات الفوتر */
.ancor-footer-v4-main {
    padding-top: 55px !important;
    padding-bottom: 52px !important;
}

.ancor-footer-v4-bottom {
    min-height: 68px !important;
}

/* الهاتف */
@media (max-width: 760px) {
    .ancor-footer-v4-summary {
        font-size: 14px !important;
        line-height: 1.95 !important;
    }

    .ancor-footer-v4-title {
        font-size: 17px !important;
    }

    .ancor-footer-v4-about p,
    .ancor-footer-v4-link,
    .ancor-footer-v4-contact-text,
    .ancor-footer-v4-contact-item {
        font-size: 14px !important;
    }

    .ancor-footer-v4-main {
        gap: 39px !important;
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }

    .ancor-footer-v4-contact-button {
        width: 100% !important;
        font-size: 14px !important;
    }

    .ancor-footer-v4-copyright,
    .ancor-footer-v4-legal a {
        font-size: 12px !important;
    }
}

/* ANCOR FOOTER FONT SIZE OVERRIDE END */
