/* Footer — shared by index.html & contact.html (~uses :root --section-pad-x when set) */

.footer-section {
    background: #1f3447;
    color: #fff;
    padding-top: clamp(48px, 6vw, 70px);
    padding-bottom: 0;
    --footer-gutter-x: var(--section-pad-x, clamp(20px, 4vw, 40px));
}

.footer-section h3 {
    color: #fff;
}

.footer-container {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: var(--footer-gutter-x);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(22px, 3vw, 40px);
    padding-bottom: clamp(40px, 5vw, 52px);
    align-items: start;
}

.footer-main > * {
    min-width: 0;
}

.footer-logo {
    width: 180px;
    max-width: min(180px, 100%);
    height: auto;
    margin-bottom: 18px;
}

.footer-about p {
    font-size: 17px;
    color: #d8e2ea;
    line-height: 1.72;
    margin-bottom: 20px;
    max-width: 36rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #304b63;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-social a:nth-child(1) { background: #1877f2; } /* Facebook */
.footer-social a:nth-child(2) { background: #ff0000; } /* YouTube */
.footer-social a:nth-child(3) { background: #e4405f; } /* Instagram */

.footer-social a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  display: block;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 18px;
    color: #fff;
}

.footer-links a,
.footer-contact p {
    display: block;
    color: #d8e2ea;
    text-decoration: none;
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1.68;
    transition: color 0.2s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-links a:hover {
    color: #f59b42;
}

#footPhone {
    font-size: 16px;
    line-height: 1.68;
}

.footer-addr-note {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    color: #b8cad8;
}

.footer-bottom {
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 15px;
    color: #d8e2ea;
    line-height: 1.55;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {

    .footer-main {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    }

}

@media (max-width: 992px) {

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px clamp(18px, 3vw, 28px);
    }

    .footer-main > .footer-about {
        grid-column: 1 / -1;
    }

    .footer-main > .footer-contact {
        grid-column: 1 / -1;
    }

}

@media (max-width: 768px) {

    .footer-section {
        padding-top: 36px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-bottom: 22px;
    }

    .footer-main > .footer-about,
    .footer-main > .footer-contact {
        grid-column: auto;
    }

    .footer-logo {
        width: 150px;
        max-width: min(150px, 100%);
    }

    .footer-title {
        font-size: 22px;
    }

    .footer-about p,
    .footer-links a,
    .footer-contact p {
        font-size: 16px;
    }

    .footer-bottom {
        font-size: 15px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

}
