/* =====================================================
   Bera Software — Common Footer
   ===================================================== */

.bs-site-footer,
.bs-site-footer * {
    box-sizing: border-box;
}


.bs-site-footer {
    --footer-yellow: #ffc43d;
    --footer-black: #080808;
    --footer-link: #25364a;

    position: relative;
    overflow: hidden;

    width: 100%;

    color: var(--footer-black);
    background: var(--footer-yellow);

    font-family: inherit;
}


.bs-footer-container {
    width: min(1200px, calc(100% - 48px));
    min-height: 720px;

    margin: 0 auto;
    padding: 72px 0 24px;

    display: flex;
    flex-direction: column;
}


/* Footer Top */

.bs-footer-top {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) auto;
    align-items: center;

    gap: 64px;
}


.bs-footer-intro span,
.bs-footer-intro p {
    display: block;

    margin: 0;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}


.bs-footer-intro h2 {
    margin: 10px 0 8px;

    font-size: clamp(36px, 3.2vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
}


/* Footer Navigation */

.bs-footer-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 16px;
}


.bs-footer-navigation a {
    position: relative;

    color: var(--footer-link);

    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none;

    transition:
        color 180ms ease,
        transform 180ms ease;
}


.bs-footer-navigation a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;

    height: 1px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform 180ms ease;
}


.bs-footer-navigation a:hover,
.bs-footer-navigation a:focus-visible {
    color: var(--footer-black);
}


.bs-footer-navigation a:hover::after,
.bs-footer-navigation a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}


.bs-footer-navigation > span {
    color: var(--footer-black);

    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}


/* Certification */

.bs-footer-certification {
    margin-top: auto;

    text-align: center;
}


.bs-footer-certification h3 {
    margin: 0;

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.035em;
}


.bs-footer-certification p {
    margin: 22px 0 0;

    font-size: clamp(16px, 1.5vw, 21px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
}


/* Social Media */

.bs-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    margin-top: 42px;
}


.bs-footer-socials a {
    display: grid;
    place-items: center;

    width: 29px;
    height: 29px;

    color: var(--footer-black);

    text-decoration: none;

    transform: translateY(0);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}


.bs-footer-socials a:hover,
.bs-footer-socials a:focus-visible {
    opacity: 0.65;

    transform: translateY(-3px);
}


.bs-footer-socials svg {
    width: 23px;
    height: 23px;

    overflow: visible;

    fill: currentColor;
    stroke: none;
}


/* Instagram outline */

.bs-footer-socials a:nth-child(2) svg {
    fill: none;

    stroke: currentColor;
    stroke-width: 2;
}


.bs-footer-socials a:nth-child(2) .bs-footer-social-dot {
    fill: currentColor;
    stroke: none;
}


/* Google Review Star */

.bs-footer-socials a:last-child svg {
    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Copyright */

.bs-footer-copyright {
    margin: 50px 0 0;

    text-align: center;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}


/* Keyboard Focus */

.bs-footer-navigation a:focus-visible,
.bs-footer-socials a:focus-visible {
    outline: 2px solid var(--footer-black);
    outline-offset: 6px;
}


/* Tablet */

@media (max-width: 900px) {

    .bs-footer-container {
        min-height: 650px;

        padding-top: 60px;
    }


    .bs-footer-top {
        grid-template-columns: 1fr;

        gap: 46px;
    }


    .bs-footer-navigation {
        justify-content: flex-start;
    }

}


/* Mobile */

@media (max-width: 600px) {

    .bs-footer-container {
        width: min(100% - 32px, 1200px);
        min-height: 610px;

        padding: 48px 0 20px;
    }


    .bs-footer-top {
        gap: 38px;

        text-align: center;
    }


    .bs-footer-intro span,
    .bs-footer-intro p {
        font-size: 17px;
    }


    .bs-footer-intro h2 {
        margin: 8px 0 7px;

        font-size: 35px;
    }


    .bs-footer-navigation {
        justify-content: center;

        gap: 10px 12px;
    }


    .bs-footer-navigation a {
        font-size: 14px;
    }


    .bs-footer-navigation > span {
        font-size: 26px;
    }


    .bs-footer-certification h3 {
        font-size: 30px;
    }


    .bs-footer-certification p {
        margin-top: 16px;

        font-size: 14px;
    }


    .bs-footer-socials {
        gap: 21px;

        margin-top: 32px;
    }


    .bs-footer-copyright {
        margin-top: 38px;

        font-size: 13px;
    }

}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    .bs-footer-navigation a,
    .bs-footer-navigation a::after,
    .bs-footer-socials a {
        transition: none;
    }

}