﻿.footer-redwhite {
    --red: #B22222; /* FireBrick */
    --light: #ffffff;
    --tint: #EF9A9A; /* โทนแดงอ่อนที่คุณใช้ */
    --muted: #8a8a8a;
    background: var(--light);
    color: var(--red);
    font-family: "Kanit", sans-serif;
    border-top: 1px solid rgba(178,34,34,0.15);
}

.footer-topbar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--tint), #FFCDD2, var(--tint));
}

.footer-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 28px 0;
    align-items: start;
}

.footer-col {
    min-width: 0;
}

.footer-brand {
    margin: 0 0 6px 0;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--red);
}

.footer-sub {
    margin: 0 0 10px 0;
    color: #B95C5C;
    font-weight: 500;
}

.visitor-chip {
    --mud-palette-warning: #FFB74D;
    background: linear-gradient(135deg, #FFCC80, #FFE0B2);
    color: #5d3c00;
    border-radius: 12px;
    padding: 2px 10px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0 14px 0;
}

.visitor-count {
    color: forestgreen;
    margin-left: 4px;
}

.footer-address {
    color: #5e1f1f;
    line-height: 1.5;
}

.addr-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--red);
}

.footer-head {
    margin: 4px 0 10px 0;
    font-weight: 700;
    color: var(--red);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

    .footer-links .link {
        color: #7A1D1D;
        font-weight: 500;
        text-decoration: none;
        position: relative;
    }

        .footer-links .link::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            height: 2px;
            width: 0%;
            background: var(--tint);
            transition: width .25s ease;
        }

        .footer-links .link:hover {
            color: var(--red);
        }

            .footer-links .link:hover::after {
                width: 100%;
            }

.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 12px;
}

.social {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(178,34,34,0.18);
    box-shadow: 0 6px 22px rgba(178,34,34,0.08);
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .social.wide {
        width: 92px;
    }
    /* ไอคอน YouTube แนวนอน */
    .social img {
        width: 70%;
        height: 70%;
        object-fit: contain;
    }

    .social:hover {
        transform: translateY(-2px);
        border-color: rgba(178,34,34,0.35);
        box-shadow: 0 10px 28px rgba(178,34,34,0.16);
    }

.contact-block {
    color: #5e1f1f;
    line-height: 1.6;
}

    .contact-block a {
        color: var(--red);
        text-decoration: none;
    }

        .contact-block a:hover {
            text-decoration: underline;
        }

.footer-bottom {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 24px 0;
    color: var(--muted);
    flex-wrap: wrap;
}

.copy {
    font-size: .98rem;
    color: #6f6f6f;
}

.bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bottom-link {
    color: #7A1D1D;
    text-decoration: none;
    font-weight: 500;
}

    .bottom-link:hover {
        color: var(--red);
        text-decoration: underline;
    }

.dot {
    color: #c9c9c9;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-wrap {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .social {
        width: 42px;
        height: 42px;
    }

        .social.wide {
            width: 84px;
        }
}
