
/* =========================================================
   Goldika blog footer – aligned with the current design
   Desktop reference: 1380px screenshot
   Mobile reference: 555px screenshot
   ========================================================= */

   .footer {
    --footer-max-width: 1440px;
    --footer-gap: 24px;
    --footer-panel-bg: rgba(23, 27, 34, 0.84);
    --footer-border: var(--primary-700, #FAAF00);
    --footer-muted: #d1d5db;
    --footer-line: #7b8492;

    box-sizing: border-box;
    width: 100%;
    padding: 28px 16px 14px;
    background: #2b323e;
    color: var(--footer-muted);
    direction: rtl;
}

.footer *,
.footer *::before,
.footer *::after {
    box-sizing: border-box;
}

.footer img {
    max-width: 100%;
    height: auto;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer p,
.footer h3 {
    margin-top: 0;
}

.footer-container,
.contact-info-section,
.footer-bottom,
.copyright {
    width: 100%;
    max-width: var(--footer-max-width);
    margin-inline: auto;
}

/* ---------- MAIN DESKTOP AREA ---------- */

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    direction: ltr;
    gap: var(--footer-gap);
    align-items: stretch;
}

.logo-dump {
    grid-column: 2;
    direction: rtl;
    grid-row: 1;
    min-width: 0;
}

.logo-dump .flex-col-start {
    height: 100%;
}

.about-goldika-footer {
    height: 100%;
    padding: 16px 18px 18px;
    border: 1px solid var(--footer-border);
    border-radius: 10px;
    background: var(--footer-panel-bg);
}

.footer-logo {
    display: block;
    width: 100%;
    max-width: 230px;
    margin: 0 auto 20px;
}

.footer-text-under-lg {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 2;
    text-align: justify;
}

.col-span-3 {
    grid-column: 1;
    direction: rtl;
    grid-row: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-link-dump {
    display: grid;
    grid-template-columns: repeat(var(--footer-link-columns, 6), minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.footer-link-dump > .footer-link-column {
    min-width: 0;
}

.section-title {
    margin: 0 0 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
}

.section-title-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.section-title-icon svg {
    display: block;
    width: 25px;
    height: 25px;
}

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

.footer-link-group li {
    margin: 0 0 10px;
}

.footer-link-group a {
    display: inline-flex;
    font-size: 0.84rem;
    line-height: 1.8;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.footer-link-group a:hover {
    color: var(--footer-border);
}

.goldika-trust-item.js-goldika-permit:hover{
    background-color: unset !important;
    border-color: unset !important;
}

/* ---------- APP DOWNLOAD ---------- */

.download-app-section {
    width: 100%;
    min-height: 164px;
    margin-top: 24px;
    padding: 12px 14px 12px;
    display: grid;
    grid-template-columns: 34% minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    direction: ltr;
    border: 1px solid var(--footer-border);
    border-radius: 9px;
    background-color: var(--footer-panel-bg);
    background-image: url("https://goldika.ir/blog/wp-content/uploads/2025/09/goldika-small-pattern.svg");
    background-size: 130%;
    background-position: 1000% -50%;
    background-blend-mode: multiply;
}

.app-phone-img {
    grid-column: 1;
    justify-self: center;
    align-self: end;
    width: min(100%, 300px);
    margin: -38px 0 -2px;
}

.download-app-section > div {
    grid-column: 2;
    min-width: 0;
    direction: rtl;
}

.app-dwn-txt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.app-dwn-txt > svg {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    padding: 0;
    margin: 0;
}

.download-app-section .section-title {
    margin-bottom: 2px;
    font-size: 1.55rem;
    line-height: 1.4;
}

.footer-text-links {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.app-links-desk {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    direction: rtl;
}

.app-links-desk a {
    display: flex;
    flex: 0 1 160px;
    max-width: 160px;
}

.app-links-desk img,
.app-links-mob img {
    display: block;
    width: 100%;
}

.app-links-mob {
    display: none;
}

/* ---------- CONTACT / SOCIAL PANEL ---------- */

.footer-bottom {
    margin-top: 22px;
}

.contact-panel {
    min-height: 92px;
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(200px, 0.9fr) minmax(260px, 1.25fr);
    align-items: stretch;
    direction: ltr;
    border: 1px solid var(--footer-border);
    border-radius: 9px;
    background: var(--footer-panel-bg);
}

.contact-addresses,
.contact-phones,
.footer-social {
    direction: rtl;
}

.footer-social-link > span {
    display: flex;
    width: 100%;
}

.footer-social-link svg {
    display: block;
    width: 100%;
    height: auto;
    filter: invert(1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.footer-social-link:hover svg {
    opacity: 0.72;
}

span.goldika-trust-item {
    cursor: default;
}

.contact-addresses {
    min-width: 0;
    font-style: normal;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: auto !important;
}

.contact-address-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    line-height: 1.7;
}

.contact-address-item > img,
.contact-phone-item > img,
.contact-address-item > span[aria-hidden="true"],
.contact-phone-item > span[aria-hidden="true"] {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-address-item > span[aria-hidden="true"],
.contact-phone-item > span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-border);
}

.contact-address-item > span[aria-hidden="true"] svg,
.contact-phone-item > span[aria-hidden="true"] svg {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-address-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-address-copy strong {
    white-space: nowrap;
    color: #fff;
}

.contact-address-copy span {
    min-width: 0;
}

.contact-phones {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.contact-phone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.6;
    white-space: nowrap;
}

.contact-phone-item:hover,
.contact-address-item:hover {
    color: var(--footer-border);
}

.phone-copy {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.phone-copy strong {
    color: #fff;
}

.phone-number {
    direction: ltr;
    unicode-bidi: isolate;
}

.footer-social {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-inner {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    direction: rtl;
}

.footer-social-link {
    display: flex;
    flex: 0 0 auto;
    width: 29px;
}

.footer-social-link img {
    display: block;
    width: 100%;
    filter: invert(1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.footer-social-link:hover img {
    opacity: 0.72;
}

/* ---------- COPYRIGHT ---------- */

.copyright {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #d1d5db;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.copyright p {
    margin: 0;
    white-space: nowrap;
}

.copyright hr {
    flex: 1;
    margin: 0;
    border: 0;
    border-top: 1px solid #d1d5db;
    opacity: 0.9;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 1024px) {
    .footer {
        padding: 16px 18px 14px;
    }

    .footer-main {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .logo-dump,
    .col-span-3 {
        width: 100%;
    }

    .about-goldika-footer {
        height: auto;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: center;
    }

    .footer-logo {
        width: 50%;
        min-width: 148px;
        max-width: 300px;
        max-height: 120px;
        margin-bottom: 16px;
    }

    .footer-link-dump {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-link-dump > .footer-link-column {
        width: 100%;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-bottom: 1px solid #374151;
    }

    .footer-link-dump > .footer-link-column:last-child {
        border-bottom: 0;
        margin-bottom: 0;
    }

    .footer-link-dump .section-title {
        position: relative;
        width: 100%;
        margin: 0;
        padding-inline-end: 28px;
        cursor: pointer;
    }

    .footer-link-dump .section-title::after {
        content: "+";
        position: absolute;
        inset-inline-end: 0;
        top: 50%;
        transform: translateY(-50%);
        color: var(--footer-border);
        font-size: 1.45rem;
        font-weight: 500;
        line-height: 1;
    }

    .footer-link-dump .section-title.active::after {
        content: "−";
    }

    .footer-link-group {
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        transition: max-height 0.28s ease, padding-top 0.28s ease;
    }

    .footer-link-group.active {
        max-height: 560px;
        padding-top: 18px;
    }

    .footer-link-dump[data-footer-accordion="0"] .section-title {
        padding-inline-end: 0;
        cursor: default;
    }

    .footer-link-dump[data-footer-accordion="0"] .section-title::after {
        display: none;
    }

    .footer-link-dump[data-footer-accordion="0"] .footer-link-group {
        max-height: none;
        overflow: visible;
        padding-top: 18px;
    }

    .download-app-section {
        min-height: 118px;
        margin-top: 16px;
        grid-template-columns: 24% minmax(0, 1fr);
        padding: 12px;
        text-align: center;
    }

    .app-phone-img {
        width: 20vw;
        min-width: 92px;
        max-width: 150px;
        margin: 0;
        align-self: center;
    }

    .app-dwn-txt {
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .app-dwn-txt > svg {
        width: 44px;
        height: 44px;
    }

    .download-app-section .section-title {
        font-size: 1.2rem;
    }


    /* Bottom section matches the new mobile design:
       social panel -> 2 phones -> divider -> office/delivery */
    .footer-bottom {
        margin-top: 32px;
    }

    .contact-panel {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        direction: rtl;
    }

    .footer-social {
        order: 1;
        width: 100%;
        min-height: 69px;
        padding: 12px 14px;
        margin-bottom: 30px;
        border: 1px solid var(--footer-border);
        border-radius: 9px;
        background: var(--footer-panel-bg);
    }

    .footer-social-inner {
        justify-content: space-between;
        gap: 18px;
        overflow: visible;
    }

    .footer-social-link {
        width: 36px;
    }

    .contact-phones {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 22px 0;
        border-bottom: 1px solid var(--footer-border);
    }

    .contact-phone-item {
        width: auto;
        min-width: 0;
        flex: 0 1 auto;
        justify-content: flex-start;
        gap: 7px;
        font-size: clamp(0.64rem, 2vw, 0.75rem);
    }

    .contact-phone-item > img {
        width: 25px;
        height: 25px;
    }

    .phone-copy {
        gap: 5px;
    }

    .contact-addresses {
        order: 3;
        width: 100%;
        padding: 20px 0 0;
        gap: 28px;
    }

    .contact-address-item {
        column-gap: 8px;
        row-gap: 7px;
        align-items: start;
        font-size: 0.8rem;
        line-height: 1.85;
        display: flex;
        flex-wrap: wrap;
    }

    .contact-address-item > img {
        grid-column: 2;
        grid-row: 1;
        width: 28px;
        height: 28px;
    }

    .contact-address-copy {
        display: contents;
    }

    .contact-address-copy strong {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        margin: 0;
    }

    .contact-address-copy span {
        grid-column: 1 / 3;
        grid-row: 2;
        display: block;
        width: 100%;
        text-align: right;
    }

    .copyright {
        margin-top: 34px;
        font-size: 0.75rem;
    }



    .copyright p {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .app-links-desk {
        display: none;
    }

    .app-links-mob {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }

    .app-links-mob a {
        display: flex;
        width: 50vw;
        min-width: 120px;
        max-width: 160px;
    }

    .download-app-section {
        grid-template-columns: 22% minmax(0, 1fr);
    }

    .footer-text-under-lg {
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .footer {
        padding-inline: 18px;
    }

    .footer-social-inner {
        gap: 14px;
    }

    .phone-copy {
        gap: 4px;
    }

    .contact-address-item {
        font-size: 0.76rem;
    }
}

@media (max-width: 420px) {
    .app-dwn-txt > svg {
        display: none;
    }

    .download-app-section {
        grid-template-columns: 25% minmax(0, 1fr);
    }

    .contact-phones {
        gap: 10px;
    }

    .footer-social-link {
        width: 32px;
    }
}

/* Content is intentionally preserved from the original footer. Layout-only adjustment for its single phone item. */
.contact-phones:has(.contact-phone-item:only-child) {
    justify-content: center;
}
@media (max-width: 1024px) {
    .contact-phones:has(.contact-phone-item:only-child) {
        grid-template-columns: minmax(0, 1fr);
    }
    .contact-phones:has(.contact-phone-item:only-child) .contact-phone-item {
        width: 100%;
        justify-content: center;
    }
}



/* Goldika trust logos — standalone section only */
.goldika-trust {
    --gk-gold: var(--primary-700, #FAAF00);
    --gk-bg: var(--bg-900, #232832);
    --gk-panel: rgba(23, 27, 34, 0.84);
    --gk-text: #D1D5DB;
    --gk-white: #FFFFFF;
    --gk-gap: 24px;
    margin-top: 46px;
    width: 100%;
    color: var(--gk-text);
    direction: rtl;
}

.goldika-trust *,
.goldika-trust *::before,
.goldika-trust *::after {
    box-sizing: border-box;
}

.goldika-trust-viewport {
    width: 100%;
    overflow: hidden;
}

.goldika-trust-track {
    display: grid;
    grid-template-columns: repeat(var(--gk-grid-columns, 8), minmax(0, 1fr));
    gap: var(--gk-gap);
    align-items: start;
    direction: rtl;
}

.goldika-trust-set {
    display: contents;
}

.goldika-trust-item {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.goldika-trust-thumb {
    width: 56px;
    height: 56px;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    transition: border-color 160ms ease;
}

.goldika-trust-item:hover .goldika-trust-thumb,
.goldika-trust-item:focus-visible .goldika-trust-thumb {
    border-color: unset !important;
}

.goldika-trust-item:focus-visible {
    outline: none;
}

.goldika-trust-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.goldika-trust-label {
    width: 100%;
    margin: 0;
    color: var(--gk-text);
    font-size: 0.76rem;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Lightbox: only the first four permits ---------- */

.goldika-permit-lightbox[hidden] {
    display: none !important;
}

.goldika-permit-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(15, 18, 23, 0.84);
}

.goldika-permit-dialog {
    width: min(720px, 100%);
    max-height: calc(100dvh - 40px);
    overflow: hidden;

    border: 1px solid var(--primary-700, #FAAF00);
    border-radius: 10px;
    background: var(--bg-900, #232832);
    color: #D1D5DB;
}

.goldika-permit-head {
    min-height: 52px;
    padding: 10px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    border-bottom: 1px solid #374151;
    direction: rtl;
}

.goldika-permit-title {
    margin: 0;
    color: #FFFFFF;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.7;
}

.goldika-permit-close {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid #4B5563;
    border-radius: 8px;
    background: transparent;
    color: #FFFFFF;
    font: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.goldika-permit-close:hover,
.goldika-permit-close:focus-visible {
    border-color: var(--primary-700, #FAAF00);
    outline: none;
}

.goldika-permit-body {
    padding: 14px;
    overflow: auto;
    max-height: calc(100dvh - 112px);
    background: #FFFFFF;
}

.goldika-permit-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}


/* =========================================================
   TRUST CAROUSEL
   - Mobile/tablet: always continuous.
   - Desktop: activated only when badge count exceeds admin max.
   ========================================================= */
.goldika-trust.is-desktop-carousel .goldika-trust-viewport {
    overflow: hidden;
    direction: ltr;
}

.goldika-trust.is-desktop-carousel .goldika-trust-track {
    display: flex;
    width: max-content;
    max-width: none;
    gap: var(--gk-gap);
    align-items: flex-start;
    direction: ltr;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.goldika-trust.is-desktop-carousel .goldika-trust-set {
    display: flex;
    flex: 0 0 auto;
    gap: var(--gk-gap);
    align-items: flex-start;
    direction: ltr;
}

.goldika-trust.is-desktop-carousel .goldika-trust-item {
    flex: 0 0 var(--gk-carousel-item-width, 120px);
    width: var(--gk-carousel-item-width, 120px);
    direction: rtl;
}

.goldika-trust-track.is-paused {
    cursor: default;
}

@media (max-width: 1024px) {
    .goldika-trust-viewport {
        width: 100vw;
        margin-inline: calc(50% - 50vw);
        overflow: hidden;
        direction: ltr;
    }

    .goldika-trust-track {
        display: flex;
        width: max-content;
        max-width: none;
        gap: var(--gk-gap);
        align-items: flex-start;
        direction: ltr;
        will-change: transform;
        transform: translate3d(0, 0, 0);
    }

    .goldika-trust-set {
        display: flex;
        flex: 0 0 auto;
        gap: var(--gk-gap);
        align-items: flex-start;
        direction: ltr;
    }

    .goldika-trust-item {
        flex: 0 0 clamp(126px, 28vw, 170px);
        width: clamp(126px, 28vw, 170px);
        direction: rtl;
    }
}

@media (prefers-reduced-motion: reduce) {
    .goldika-trust-viewport {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .goldika-trust-viewport::-webkit-scrollbar {
        display: none;
    }

    .goldika-trust-track {
        transform: none !important;
    }
}

.goldika-trust.is-manual-scroll .goldika-trust-viewport {
    overflow-x: auto;
    scrollbar-width: none;
}

.goldika-trust.is-manual-scroll .goldika-trust-viewport::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1024px) {
    .footer-link-dump[data-footer-accordion="1"] .section-title-head[role="button"]:focus-visible {
        outline: 1px solid var(--footer-border);
        outline-offset: 4px;
        border-radius: 4px;
    }
}
