
/* ==========================================================
   ECOPHARM — FOOTER CSS
   Fixed Dark / RTL / LTR / Responsive
   ========================================================== */

/* 01 — Base */

footer.site-footer,
footer.site-footer *,
footer.site-footer *::before,
footer.site-footer *::after {
    box-sizing: border-box;
}

footer.site-footer {
    --footer-bg: #04120a;
    --footer-text: #a0aec0;
    --footer-heading: #ffffff;
    --footer-muted: #9ca3af;
    --footer-border: #374151;
    --footer-accent: #22c55e;
    --footer-hover: #ffffff;
    --footer-card: rgba(255, 255, 255, 0.025);

    width: 100%;
    padding-top: 50px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: "Cairo", Arial, sans-serif;
    direction: inherit;
    text-align: start;
    color-scheme: dark;
    transition: background-color .3s ease, color .3s ease;
}



/* 04 — Main grid */

.footer-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    padding-bottom: 42px;
}

.footer-column {
    min-width: 0;
}

.footer-column h3 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: var(--footer-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.6;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 34px;
    height: 2px;
    background: var(--footer-accent);
    border-radius: 3px;
}

/* 05 — Logo */

.logo-container {
    width: 220px;
    max-width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(34, 197, 94, .35);
    border-radius: 7px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.logo-container:hover {
    border-color: var(--footer-accent);
    box-shadow: 0 6px 20px rgba(34, 197, 94, .15);
}

.logo-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

/* 06 — Description */

.footer-column p {
    margin: 0 0 14px;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d69e00;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

.read-more:hover {
    color: var(--footer-accent);
    transform: translateY(-2px);
}

/* 07 — Links */

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    margin-bottom: 9px;
    color: var(--footer-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

/* Remove old green squares */

.footer-column ul li::before {
    content: none !important;
    display: none !important;
}

/* SVG icons are direct children of links. Direction is defined by Blade paths. */
.footer-column .footer-link-list li a {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    max-width: 100%;
    color: var(--footer-muted);
    font-size: inherit;
    line-height: 1.7;
    text-decoration: none;
    transition: color .25s ease;
}

.footer-column .footer-link-list svg.footer-link-icon {
    display: block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: var(--footer-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: none;
    transition: transform .25s ease, stroke .25s ease;
}

.footer-column .footer-link-list li a:hover {
    color: var(--footer-hover);
}

.footer-column .footer-link-list li a:hover svg.footer-link-icon {
    stroke: #4ade80;
    transform: scale(1.2);
}

/* 08 — Social icons */

.social-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--footer-border);
    border-radius: 7px;
    color: var(--footer-heading);
    background: var(--footer-card);
    text-decoration: none;
    transition:
        background-color .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}

.social-icons a svg {
    display: block;
    width: 19px !important;
    height: 19px !important;
    fill: currentColor;
}

.social-icons a:hover {
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(34, 197, 94, .2);
}

/* 09 — Contact information: isolated from Contact page styles */

footer.site-footer .footer-contact-column a.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    margin: 0 0 12px;
    padding: 0;
    color: var(--footer-muted);
    font-size: 13px;
    line-height: 1.7;
    text-decoration: none;
    background: transparent;
    border: 0;
    box-shadow: none;
}

footer.site-footer .footer-contact-column a.contact-item:hover {
    color: var(--footer-hover);
}

footer.site-footer .footer-contact-column a.contact-item > .contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    aspect-ratio: 1 / 1;
    padding: 0;
    margin: 0;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    color: var(--footer-accent);
    background: var(--footer-card);
    box-shadow: none;
    transform: none;
    transition: border-color .3s ease, background-color .3s ease;
}

footer.site-footer .footer-contact-column a.contact-item > .contact-icon svg {
    display: block;
    flex: 0 0 18px;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

footer.site-footer .footer-contact-column a.contact-item > .contact-value {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
    text-align: start;
    line-height: 1.7;
}

footer.site-footer .footer-contact-column a.contact-item:hover > .contact-icon {
    border-color: var(--footer-accent);
    background: rgba(34, 197, 94, .1);
}

/* 10 — Copyright */

.bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px max(20px, calc((100% - 1200px) / 2));
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
    background: var(--footer-bg);
    font-size: 13px;
    direction: inherit;
}

.bottom-bar .green {
    color: var(--footer-accent);
    font-weight: 800;
}

.bottom-bar a,
.bottom-bar .developer-link {
    color: var(--footer-accent);
    font-weight: 800;
    text-decoration: none;
    transition: color .25s ease, text-shadow .25s ease;
}

.bottom-bar a:hover,
.bottom-bar .developer-link:hover {
    color: var(--footer-hover);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-shadow: 0 0 10px rgba(34, 197, 94, .3);
}

/* 11 — Floating top button */

.floating-top-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #eab308;
    color: #000000;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    transition: background-color .3s ease, transform .3s ease;
}

.floating-top-btn svg {
    display: block;
    width: 20px !important;
    height: 20px !important;
    fill: currentColor;
}

.floating-top-btn:hover {
    background: #facc15;
    transform: translateY(-4px);
}

/* 12 — Chat button */

.chat-widget-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(34, 197, 94, .4);
    transition: background-color .3s ease, transform .3s ease;
}

.chat-widget-button svg {
    display: block;
    width: 26px !important;
    height: 26px !important;
    fill: #ffffff !important;
    pointer-events: none;
}

.chat-widget-button:hover {
    background: #16a34a;
    transform: scale(1.08);
}

/* 13 — Chat window */

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    width: 320px;
    max-width: calc(100vw - 30px);
    overflow: hidden;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
    direction: rtl;
}

.chat-box.active {
    display: flex !important;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #22c55e;
    color: #ffffff;
    font-weight: 800;
}

.chat-header .close-btn {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 420px;
    overflow-y: auto;
    padding: 15px;
    background: #111827;
}

.chat-message {
    align-self: flex-start;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    background: #374151;
    color: #ffffff;
    font-size: 13px;
}

.chat-footer {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #374151;
    background: #1f2937;
}

.chat-footer input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    outline: none;
    background: #374151;
    color: #ffffff;
    font-size: 13px;
}

.chat-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #22c55e;
    color: #ffffff;
    cursor: pointer;
}

.chat-footer button svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    fill: currentColor;
}

/* 14 — RTL / LTR */

html[dir="rtl"] footer.site-footer {
    direction: rtl;
}

html[dir="ltr"] footer.site-footer {
    direction: ltr;
}

html[dir="rtl"] .footer-column h3::after {
    right: 0;
    left: auto;
}

html[dir="ltr"] .footer-column h3::after {
    left: 0;
    right: auto;
}

/* 15 — Tablet */

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    footer.site-footer {
        padding-top: 38px;
    }
}

/* 16 — Mobile */

@media (max-width: 640px) {
    .footer-container {
        width: min(100% - 28px, 1200px);
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 30px;
    }

    .footer-column h3 {
        font-size: 17px;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .bottom-bar {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 16px;
        font-size: 12px;
    }

    .floating-top-btn {
        left: 14px;
        bottom: 18px;
        width: 43px;
        height: 43px;
    }

    .chat-widget-button {
        right: 14px;
        bottom: 18px;
        width: 50px;
        height: 50px;
    }

    .chat-box {
        right: 12px;
        bottom: 78px;
        width: min(320px, calc(100vw - 24px));
    }
}

/* 17 — Accessibility */

footer a:focus-visible,
footer button:focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    footer *,
    footer *::before,
    footer *::after {
        animation: none !important;
        transition: none !important;
    }
}
footer.site-footer .footer-contact-column a.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

footer.site-footer .footer-contact-column a.contact-item > .contact-value {
    display: inline-block;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
    text-align: start;
    line-height: 1.7;
}


/* ==================================================
   FOOTER — SOCIAL MEDIA COLUMN
   Scoped to column 3 only
================================================== */

.site-footer .footer-social-column .footer-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-social-column .footer-social-item {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .footer-social-column .footer-social-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    min-height: 38px;
    padding: 0;
    margin: 0;

    text-decoration: none;
    background: transparent;
    border: none;
}

/* Icon container */

.site-footer .footer-social-column .footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    min-width: 38px;
    flex: 0 0 38px;

    padding: 0;
    margin: 0;

    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 9px;
    background: transparent;

    box-sizing: border-box;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

/* SVG artwork */

.site-footer .footer-social-column .footer-social-icon svg {
    display: block;

    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;

    color: #ffffff;
    fill: currentColor;
    stroke: none;

    flex-shrink: 0;
}

/* Instagram outlined shapes */

.site-footer .footer-social-column
.footer-social-icon svg rect,
.site-footer .footer-social-column
.footer-social-icon svg circle {
    stroke: currentColor;
}

/* Platform name */

.site-footer .footer-social-column .footer-social-name {
    display: inline-block;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

/* Hover effects */

.site-footer .footer-social-column
.footer-social-link:hover .footer-social-icon {
    border-color: #16c76b;
    background: rgba(22, 199, 107, 0.08);
}

.site-footer .footer-social-column
.footer-social-link:hover .footer-social-icon svg {
    color: #16c76b;
}

/* RTL / LTR */

.site-footer[dir="rtl"] .footer-social-column .footer-social-link,
.site-footer[dir="ltr"] .footer-social-column .footer-social-link {
    flex-direction: row;
}



