/* ======================================== */
/* footer                                   */
/* ======================================== */

.footer {
    position: relative;
    direction: rtl;
    overflow: hidden;
    margin-top: 110px;
    font-family: "IRANSans", sans-serif;
    background: #ffffff;
    isolation: isolate;
}

/* ======================================== */
/* curve                                    */
/* ======================================== */

.footer-curve {
    position: relative;
    width: 100%;
    height: 86px;
    overflow: hidden;
    line-height: 0;
    background: #ffffff;
}

.footer-curve svg {
    display: block;
    width: 100%;
    height: 100%;
}

.footer-curve svg path {
    fill: #eef5f2;
}

/* ======================================== */
/* main background                          */
/* ======================================== */

.footer-content {
    position: relative;
    overflow: hidden;
    padding: 78px 0 82px;
    background:
        radial-gradient(circle at 8% 12%, rgba(26, 74, 66, 0.18), transparent 28%),
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.95), transparent 24%),
        radial-gradient(circle at 78% 88%, rgba(26, 74, 66, 0.12), transparent 30%),
        linear-gradient(145deg, #eef5f2 0%, #e8f2ee 45%, #dfeae6 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
}

.footer-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(26, 74, 66, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 74, 66, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    pointer-events: none;
}

.footer-content::after {
    content: "";
    position: absolute;
    top: -210px;
    right: -170px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08) 65%, transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

/* ======================================== */
/* layout                                   */
/* ======================================== */

.footer-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.65fr 0.85fr 0.9fr 1.05fr;
    gap: 34px;
    align-items: stretch;
}

.footer-col {
    min-width: 0;
    color: #102f2a;
}

/* ======================================== */
/* premium brand card                       */
/* ======================================== */

.footer-brand-col {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 38px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(238, 245, 242, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 34px 80px rgba(16, 47, 42, 0.16),
        0 12px 30px rgba(16, 47, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(22px);
}

.footer-brand-col::before {
    content: "";
    position: absolute;
    top: -95px;
    right: -85px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(26, 74, 66, 0.2), rgba(26, 74, 66, 0.03) 68%, transparent 72%);
    pointer-events: none;
}

.footer-brand-col::after {
    content: "";
    position: absolute;
    left: -90px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08) 65%, transparent 72%);
    pointer-events: none;
}

.footer-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-logo {
    flex: 0 0 auto;
    width: 168px;
    height: 128px;
    display: block;
    object-fit: contain;
    padding: 16px 20px;
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 242, 0.78));
    border: 1px solid rgba(26, 74, 66, 0.14);
    box-shadow:
        0 24px 54px rgba(16, 47, 42, 0.18),
        0 8px 18px rgba(16, 47, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.footer-brand:hover .footer-logo {
    transform: translateY(-7px) scale(1.025);
    border-color: rgba(26, 74, 66, 0.28);
    box-shadow:
        0 34px 70px rgba(16, 47, 42, 0.24),
        0 12px 24px rgba(16, 47, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.footer-brand-info {
    min-width: 0;
}

.footer-brand-title {
    display: block;
    color: #102f2a;
    font-size: 26px;
    font-weight: 950;
    line-height: 1.45;
    letter-spacing: -0.7px;
}

.footer-brand-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: rgba(16, 47, 42, 0.68);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.9;
}

.footer-brand-tagline::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a4a42;
    box-shadow: 0 0 0 6px rgba(26, 74, 66, 0.12);
}

.footer-about {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0;
    color: rgba(16, 47, 42, 0.74);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 2.25;
    text-align: justify;
}

/* ======================================== */
/* normal columns                           */
/* ======================================== */

.footer-col:not(.footer-brand-col) {
    position: relative;
    padding: 26px 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.footer-col:not(.footer-brand-col):hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 20px 42px rgba(16, 47, 42, 0.09);
}

/* ======================================== */
/* titles                                   */
/* ======================================== */

.footer-title {
    position: relative;
    display: inline-flex;
    margin: 0 0 26px;
    padding-bottom: 15px;
    color: #102f2a;
    font-size: 16.5px;
    font-weight: 950;
    line-height: 1.5;
}

.footer-title::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1a4a42, rgba(26, 74, 66, 0.16));
}

.footer-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a4a42;
    box-shadow: 0 0 0 6px rgba(26, 74, 66, 0.12);
}

/* ======================================== */
/* links                                    */
/* ======================================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(16, 47, 42, 0.72);
    font-size: 14.2px;
    font-weight: 800;
    line-height: 1.9;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-links a::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(26, 74, 66, 0.28);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.footer-links a:hover {
    color: #1a4a42;
    transform: translateX(-6px);
}

.footer-links a:hover::before {
    background: #1a4a42;
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(26, 74, 66, 0.12);
}

/* ======================================== */
/* trust badges                             */
/* ======================================== */

.footer-col-trust {
    text-align: center;
}

.footer-col-trust .footer-title {
    margin-right: auto;
    margin-left: auto;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 18px;
    margin-bottom: 17px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(238, 245, 242, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow:
        0 22px 48px rgba(16, 47, 42, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
}

.footer-badge {
    width: 108px;
    height: 118px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(26, 74, 66, 0.12);
    box-shadow:
        0 14px 28px rgba(16, 47, 42, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    text-decoration: none;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.footer-badge:hover {
    transform: translateY(-7px);
    border-color: rgba(26, 74, 66, 0.28);
    box-shadow:
        0 24px 44px rgba(16, 47, 42, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.footer-badge img {
    max-width: 100%;
    max-height: 92px;
    display: block;
    object-fit: contain;
    filter: saturate(0.98) contrast(1.04);
    transition:
        transform 0.28s ease,
        filter 0.28s ease;
}

.footer-badge:hover img {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.08);
}

.footer-trust-text {
    max-width: 270px;
    margin: 0 auto;
    color: rgba(16, 47, 42, 0.62);
    font-size: 12.4px;
    font-weight: 650;
    line-height: 2;
}

/* ======================================== */
/* accessibility                            */
/* ======================================== */

.footer a:focus-visible {
    outline: 3px solid rgba(26, 74, 66, 0.28);
    outline-offset: 5px;
    border-radius: 14px;
}
