/* ============================================================
   TADVIN 724 — FOOTER
   Professional 4-column flat editorial footer.
   Palette: wine #631414 · burgundy #380D0E · ink #190808 · cream #FBFAF8
   ============================================================ */

/* ============================================================
   1. WRAPPER
   ============================================================ */

.td-footer {
    position: relative;
    background: #190808;
    color: rgba(251, 250, 248, 0.75);
    margin-top: var(--lc-space-8);
    overflow: hidden;
}

/* Subtle top gradient */
.td-footer::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 240px;
    background: radial-gradient(ellipse at top, rgba(99, 20, 20, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================================
   2. CTA BAND
   ============================================================ */

.td-footer__cta-band {
    position: relative;
    padding: var(--lc-space-6) 0;
    border-bottom: 1px solid rgba(251, 250, 248, 0.08);
}

.td-footer__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lc-space-5);
    flex-wrap: wrap;
}

.td-footer__cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 260px;
}

.td-footer__cta-eyebrow {
    font-size: var(--lc-font-size-xs);
    font-weight: var(--lc-font-weight-semibold);
    color: rgba(251, 250, 248, 0.55);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.td-footer__cta-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: var(--lc-font-weight-black);
    color: #FBFAF8;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.td-footer__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lc-space-2);
}

.td-footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--lc-space-2);
    padding: var(--lc-space-3) var(--lc-space-5);
    background: var(--lc-color-primary);
    color: #FBFAF8;
    border: 1px solid var(--lc-color-primary);
    border-radius: var(--lc-radius-md);
    font-size: var(--lc-font-size-sm);
    font-weight: var(--lc-font-weight-semibold);
    text-decoration: none;
    transition: all var(--lc-transition-fast);
    min-height: 44px;
    white-space: nowrap;
}

.td-footer__cta-btn:hover {
    background: #FBFAF8;
    color: var(--lc-color-primary);
    border-color: #FBFAF8;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -6px rgba(251, 250, 248, 0.3);
}

.td-footer__cta-btn--ghost {
    background: transparent;
    color: #FBFAF8;
    border-color: rgba(251, 250, 248, 0.25);
}

.td-footer__cta-btn--ghost:hover {
    background: rgba(251, 250, 248, 0.08);
    color: #FBFAF8;
    border-color: #FBFAF8;
}

[dir="rtl"] .td-footer__cta-btn svg {
    transform: rotate(180deg);
}

/* ============================================================
   3. MAIN GRID
   ============================================================ */

.td-footer__main {
    position: relative;
    padding: var(--lc-space-7) 0 var(--lc-space-6);
}

.td-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: var(--lc-space-6);
    align-items: start;
}

@media (max-width: 992px) {
    .td-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--lc-space-5);
    }

    .td-footer__col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .td-footer__grid {
        grid-template-columns: 1fr;
    }
}

.td-footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-3);
    min-width: 0;
}

/* ============================================================
   4. COLUMN 1 — BRAND
   ============================================================ */

.td-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--lc-space-3);
    text-decoration: none;
    color: #FBFAF8;
    align-self: flex-start;
    transition: transform var(--lc-transition-fast);
}

.td-footer__brand:hover {
    transform: translateY(-1px);
}

.td-footer__brand .custom-logo,
.td-footer__brand-logo {
    max-height: 44px;
    width: auto;
    display: block;
}

.td-footer__brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--lc-color-primary) 0%, var(--lc-color-primary-hover) 100%);
    color: #FBFAF8;
    border-radius: var(--lc-radius-md);
    font-weight: var(--lc-font-weight-black);
    font-size: var(--lc-font-size-lg);
    flex-shrink: 0;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px -4px rgba(99, 20, 20, 0.5);
    position: relative;
    overflow: hidden;
}

.td-footer__brand-mark::after {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 50%;
    background: rgba(251, 250, 248, 0.08);
    pointer-events: none;
}

.td-footer__brand-name {
    font-size: var(--lc-font-size-md);
    font-weight: var(--lc-font-weight-black);
    color: #FBFAF8;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.td-footer__about {
    margin: 0;
    font-size: var(--lc-font-size-sm);
    line-height: 1.85;
    color: rgba(251, 250, 248, 0.65);
    max-width: 340px;
}

/* Social icons */
.td-footer__socials {
    display: flex;
    gap: var(--lc-space-2);
}

.td-footer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(251, 250, 248, 0.06);
    border: 1px solid rgba(251, 250, 248, 0.12);
    border-radius: var(--lc-radius-md);
    color: rgba(251, 250, 248, 0.75);
    text-decoration: none;
    transition: all var(--lc-transition-fast);
}

.td-footer__social:hover {
    transform: translateY(-2px);
    color: #FBFAF8;
    border-color: #FBFAF8;
}

.td-footer__social--instagram:hover {
    background: #E1306C;
    border-color: #E1306C;
}

.td-footer__social--telegram:hover {
    background: #0088CC;
    border-color: #0088CC;
}

.td-footer__social--whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

/* Inline contact hint */
.td-footer__brand-contact {
    margin-top: var(--lc-space-1);
}

.td-footer__brand-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--lc-font-size-sm);
    font-weight: var(--lc-font-weight-semibold);
    color: rgba(251, 250, 248, 0.75);
    text-decoration: none;
    transition: color var(--lc-transition-fast);
}

.td-footer__brand-contact-link svg {
    color: var(--lc-color-primary);
}

.td-footer__brand-contact-link:hover {
    color: #FBFAF8;
}

/* ============================================================
   5. COLUMN TITLES + MENU (COLUMNS 2 & 3)
   ============================================================ */

.td-footer__title {
    margin: 0 0 var(--lc-space-3);
    font-size: var(--lc-font-size-md);
    font-weight: var(--lc-font-weight-bold);
    color: #FBFAF8;
    padding-bottom: var(--lc-space-2);
    position: relative;
}

.td-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 32px;
    height: 2px;
    background: var(--lc-color-primary);
    border-radius: 2px;
}

.td-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.td-footer__menu li {
    margin: 0;
}

.td-footer__menu a {
    display: inline-flex;
    align-items: center;
    gap: var(--lc-space-2);
    font-size: var(--lc-font-size-sm);
    color: rgba(251, 250, 248, 0.65);
    text-decoration: none;
    transition: all var(--lc-transition-fast);
    line-height: 1.5;
}

.td-footer__menu-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--lc-color-primary);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all var(--lc-transition-fast);
}

.td-footer__menu a:hover {
    color: #FBFAF8;
    transform: translateX(-3px);
}

[dir="ltr"] .td-footer__menu a:hover {
    transform: translateX(3px);
}

.td-footer__menu a:hover .td-footer__menu-dot {
    opacity: 1;
    transform: scale(1.5);
    box-shadow: 0 0 6px rgba(99, 20, 20, 0.6);
}

/* ============================================================
   6. COLUMN 4 — CONTACT
   ============================================================ */

.td-footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--lc-space-3);
}

.td-footer__contact li {
    display: flex;
    gap: var(--lc-space-3);
    align-items: flex-start;
}

.td-footer__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: rgba(99, 20, 20, 0.35);
    border: 1px solid rgba(251, 250, 248, 0.08);
    border-radius: var(--lc-radius-sm);
    color: rgba(251, 250, 248, 0.85);
}

.td-footer__contact-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

.td-footer__contact-label {
    font-size: 11px;
    font-weight: var(--lc-font-weight-semibold);
    color: rgba(251, 250, 248, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

.td-footer__contact-value {
    font-size: var(--lc-font-size-sm);
    font-weight: var(--lc-font-weight-medium);
    color: rgba(251, 250, 248, 0.9);
    text-decoration: none;
    line-height: 1.6;
    word-break: break-word;
    transition: color var(--lc-transition-fast);
}

a.td-footer__contact-value:hover {
    color: #FBFAF8;
}

.td-footer__contact-hint {
    font-size: 11px;
    color: rgba(251, 250, 248, 0.45);
    line-height: 1.4;
}

/* ============================================================
   7. BOTTOM BAR
   ============================================================ */

.td-footer__bottom {
    position: relative;
    border-top: 1px solid rgba(251, 250, 248, 0.08);
    padding: var(--lc-space-4) 0;
    background: rgba(0, 0, 0, 0.15);
}

.td-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lc-space-4);
    flex-wrap: wrap;
}

.td-footer__copyright {
    margin: 0;
    font-size: var(--lc-font-size-xs);
    color: rgba(251, 250, 248, 0.5);
    line-height: 1.6;
}

.td-footer__copyright a {
    color: rgba(251, 250, 248, 0.75);
    text-decoration: none;
    transition: color var(--lc-transition-fast);
}

.td-footer__copyright a:hover {
    color: #FBFAF8;
}

.td-footer__credits {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: var(--lc-font-size-xs);
    color: rgba(251, 250, 248, 0.4);
}

.td-footer__heart {
    display: inline-flex;
    color: var(--lc-color-primary);
    animation: td-footer-heartbeat 2s ease-in-out infinite;
}

@keyframes td-footer-heartbeat {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.td-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px var(--lc-space-3);
    background: rgba(251, 250, 248, 0.06);
    border: 1px solid rgba(251, 250, 248, 0.12);
    border-radius: var(--lc-radius-md);
    color: rgba(251, 250, 248, 0.75);
    font-family: inherit;
    font-size: var(--lc-font-size-xs);
    font-weight: var(--lc-font-weight-semibold);
    cursor: pointer;
    transition: all var(--lc-transition-fast);
    white-space: nowrap;
}

.td-footer__top:hover {
    background: var(--lc-color-primary);
    color: #FBFAF8;
    border-color: var(--lc-color-primary);
    transform: translateY(-1px);
}

.td-footer__top svg {
    flex-shrink: 0;
}

/* ============================================================
   8. RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
    .td-footer__cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--lc-space-3);
    }

    .td-footer__cta-actions {
        width: 100%;
    }

    .td-footer__cta-actions .td-footer__cta-btn {
        flex: 1;
        justify-content: center;
    }

    .td-footer__main {
        padding: var(--lc-space-6) 0 var(--lc-space-5);
    }

    .td-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--lc-space-2);
    }

    .td-footer__top {
        order: -1;
    }
}

/* ============================================================
   9. RTL SUPPORT
   ============================================================ */

[dir="rtl"] .td-footer__title::after {
    inset-inline-start: 0;
    inset-inline-end: auto;
}

/* ============================================================
   10. ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .td-footer__brand,
    .td-footer__brand-mark,
    .td-footer__social,
    .td-footer__menu a,
    .td-footer__menu-dot,
    .td-footer__cta-btn,
    .td-footer__top,
    .td-footer__heart {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@media (prefers-contrast: high) {
    .td-footer__cta-btn,
    .td-footer__social,
    .td-footer__top,
    .td-footer__contact-icon {
        border-width: 2px;
    }

    .td-footer__menu a,
    .td-footer__about {
        color: #FFFFFF;
    }
}