/* Public footer — Taraghi reference layout */
.tf-footer {
    --tf-ink: #1c2c4a;
    --tf-navy: #163056;
    --tf-gold: #c4a15a;
    --tf-gold-deep: #a6853e;
    --tf-cream: #f6f3ee;
    --tf-line: rgba(196, 161, 90, 0.55);
    --tf-bar: #07182c;
    background: var(--tf-cream);
    color: var(--tf-ink);
    overflow: hidden;
}

.tf-top {
    direction: ltr;
    display: grid;
    grid-template-areas: "visual social links brand";
    grid-template-columns: minmax(210px, 1.05fr) minmax(190px, 0.95fr) minmax(150px, 0.72fr) minmax(250px, 1.25fr);
    align-items: stretch;
    min-height: 360px;
    background:
        radial-gradient(circle at 80% 0%, rgba(196, 161, 90, 0.08), transparent 28%),
        var(--tf-cream);
}

.tf-footer[dir="ltr"] .tf-top {
    grid-template-areas: "brand links social visual";
}

.tf-brand { grid-area: brand; padding: 2.1rem 1.6rem 1.6rem; }
.tf-links { grid-area: links; padding: 2.3rem 0.6rem 1.6rem; }
.tf-social { grid-area: social; padding: 2.3rem 0.8rem 1.6rem; }
.tf-footer[dir="rtl"] .tf-brand,
.tf-footer[dir="rtl"] .tf-links,
.tf-footer[dir="rtl"] .tf-social,
.tf-footer[dir="rtl"] .tf-copy {
    direction: rtl;
}
.tf-visual { grid-area: visual; }

.tf-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    direction: ltr;
}

.tf-lockup img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 46%;
    transform: scale(1.85);
    flex: 0 0 auto;
    clip-path: circle(38% at 50% 50%);
}

.tf-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.tf-wordmark strong {
    font-size: 1.85rem;
    letter-spacing: 0.08em;
    color: var(--tf-navy);
    font-weight: 800;
}

.tf-wordmark span {
    margin-top: 0.28rem;
    color: var(--tf-gold-deep);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: lowercase;
}

.tf-rule {
    height: 1px;
    margin: 0.95rem 0 0.85rem;
    background: linear-gradient(90deg, transparent, var(--tf-gold), transparent);
}

.tf-company {
    margin: 0 0 1.15rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tf-navy);
}

.tf-contact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem;
    align-items: center;
}

.tf-phones {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.tf-phones li a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--tf-navy);
    font-weight: 700;
    text-decoration: none;
}

.tf-phones li a span {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

.tf-phones i,
.tf-globe-arrow {
    width: 1.7rem;
    height: 1.7rem;
    border: 1.5px solid var(--tf-gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-gold-deep);
    font-size: 0.72rem;
    flex: 0 0 auto;
}

.tf-globe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--tf-navy);
    text-decoration: none;
    min-width: 92px;
}

.tf-globe svg {
    width: 78px;
    height: 58px;
}

.tf-globe span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.tf-title {
    margin: 0 0 0.9rem;
    color: var(--tf-navy);
    font-size: 1.2rem;
    font-weight: 800;
}

.tf-title em {
    display: block;
    width: 2.1rem;
    height: 2px;
    margin-top: 0.35rem;
    background: var(--tf-gold);
    border-radius: 2px;
    font-style: normal;
}

.tf-quick {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
}

.tf-quick a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #3a4660;
    text-decoration: none;
    font-weight: 700;
}

.tf-quick a i {
    color: var(--tf-gold-deep);
    font-size: 0.72rem;
}

.tf-quick a:hover,
.tf-phones a:hover,
.tf-globe:hover {
    color: var(--tf-gold-deep);
}

.tf-icons {
    display: flex;
    gap: 0.65rem;
    list-style: none;
    margin: 0 0 1.15rem;
    padding: 0;
}

.tf-icons a {
    width: 2.55rem;
    height: 2.55rem;
    border: 1.5px solid var(--tf-gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-gold-deep);
    font-size: 1.05rem;
    text-decoration: none;
    background: #fff;
}

.tf-icons a img {
    width: 1.15rem;
    height: 1.15rem;
    object-fit: contain;
}

.tf-news-copy {
    margin: 0 0 0.8rem;
    color: #5d6574;
    font-size: 0.86rem;
    line-height: 1.7;
}

.tf-news {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid #e4e0d8;
    border-radius: 999px;
    padding: 0.28rem 0.35rem 0.28rem 0.85rem;
    box-shadow: 0 8px 18px rgba(22, 48, 86, 0.05);
}

.tf-footer[dir="ltr"] .tf-news {
    padding: 0.28rem 0.85rem 0.28rem 0.35rem;
}

.tf-news input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    min-width: 0;
    color: var(--tf-ink);
    font: inherit;
}

.tf-news button {
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 50%;
    background: var(--tf-gold);
    color: #fff;
    flex: 0 0 auto;
}

.tf-news button:disabled {
    opacity: 0.65;
}

.tf-news-msg {
    margin: 0.55rem 0.4rem 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.6;
}

.tf-news-msg.is-ok {
    color: #1f7a45;
}

.tf-news-msg.is-err {
    color: #a12626;
}

.tf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.tf-badges img,
.tf-badges a img {
    max-height: 48px;
    width: auto;
}

.tf-visual {
    position: relative;
    min-height: 320px;
    background:
        linear-gradient(180deg, rgba(8, 20, 38, 0.05) 40%, rgba(8, 18, 34, 0.72) 100%),
        url("../img/footer/rebar.jpg") center/cover no-repeat;
    clip-path: polygon(0 0, 74% 0, 100% 16%, 76% 100%, 0 100%);
}

.tf-footer[dir="ltr"] .tf-visual {
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 24% 100%, 0 16%);
}

.tf-visual-copy {
    position: absolute;
    left: 1.15rem;
    bottom: 1.35rem;
    max-width: 9.5rem;
    color: #fff;
    font-weight: 800;
    line-height: 1.45;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.tf-footer[dir="ltr"] .tf-visual-copy {
    left: auto;
    right: 1.15rem;
    text-align: left;
}

.tf-visual-copy strong {
    display: block;
    color: var(--tf-gold);
    font-size: 1.2rem;
}

.tf-visual-copy span {
    display: block;
    font-size: 0.95rem;
}

.tf-visual-copy i {
    display: block;
    width: 2rem;
    height: 2px;
    margin-top: 0.45rem;
    background: var(--tf-gold);
}

.tf-bar {
    direction: ltr;
    display: grid;
    grid-template-areas: "copy mark photo";
    grid-template-columns: minmax(220px, 1.15fr) minmax(240px, 1.4fr) minmax(120px, 180px);
    align-items: stretch;
    min-height: 96px;
    background: var(--tf-bar);
    color: #f3efe6;
}

.tf-footer[dir="ltr"] .tf-bar {
    grid-template-areas: "photo mark copy";
}

.tf-copy { grid-area: copy; }
.tf-mark { grid-area: mark; }
.tf-bar-photo { grid-area: photo; }

.tf-copy {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.3rem;
}

.tf-shield {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1.5px solid var(--tf-gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tf-gold);
    font-size: 1rem;
}

.tf-copy p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    font-weight: 600;
}

.tf-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

.tf-mark svg {
    width: 92px;
    height: 42px;
    flex: 0 0 auto;
}

.tf-mark b {
    color: var(--tf-gold);
    font-weight: 500;
}

.tf-bar-photo {
    background: url("../img/footer/rebar-bar.jpg") center/cover no-repeat;
    position: relative;
}

.tf-bar-photo::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 18px;
    background: linear-gradient(135deg, transparent 48%, var(--tf-gold) 49%, var(--tf-gold) 56%, transparent 57%);
}

@media (max-width: 1100px) {
    .tf-top,
    .tf-footer[dir="ltr"] .tf-top {
        grid-template-areas:
            "brand brand"
            "links social"
            "visual visual";
        grid-template-columns: 1fr 1fr;
    }

    .tf-visual,
    .tf-footer[dir="ltr"] .tf-visual {
        min-height: 220px;
        clip-path: none;
    }

    .tf-bar,
    .tf-footer[dir="ltr"] .tf-bar {
        grid-template-areas:
            "mark mark"
            "copy copy"
            "photo photo";
        grid-template-columns: 1fr;
    }

    .tf-bar-photo { min-height: 72px; }
    .tf-mark, .tf-copy { justify-content: center; text-align: center; }
}

.contact-map {
    position: relative;
    background: #f4f1ec;
}

.contact-map__hold {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: #1c2c4a;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .scroll-top {
        left: 15px;
        right: auto;
    }
}

@media (max-width: 680px) {
    .tf-top,
    .tf-footer[dir="ltr"] .tf-top {
        grid-template-areas:
            "brand"
            "links"
            "social"
            "visual";
        grid-template-columns: 1fr;
    }

    .tf-brand, .tf-links, .tf-social { padding-inline: 1.1rem; }
    .tf-contact { grid-template-columns: 1fr; }
    .tf-phones li a { justify-content: flex-start; }
}
