/* ==========================================================
   LAYOUT › FOOTER
   Rodapé do site: grid de colunas, redes sociais, copyright
   ========================================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: #333;
    padding: 56px 24px 22px;
    border-top: 4px solid var(--green-700);
}

.site-footer::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -160px;
    top: -210px;
    border-radius: 50%;
    border: 1px solid rgb(19 122 75 / 10%);
    background: rgb(19 122 75 / 4%);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 0.9fr 1.35fr 0.7fr;
    gap: clamp(28px, 4vw, 52px);
}

.footer-brand {
    width: 112px;
    height: 78px;
    margin-bottom: 18px;
    padding: 8px;
    border-radius: 16px;
    border: 0;
    background: #fff;
    box-shadow: none;
}

.footer-about > p {
    max-width: 290px;
    color: #333;
}

.footer-quality {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 8px 11px;
    border: 1px solid rgb(19 122 75 / 24%);
    border-radius: 999px;
    background: rgb(19 122 75 / 6%);
    color: var(--green-700);
    font-size: 12px;
    font-weight: 800;
}

.footer-quality svg {
    width: 15px;
    height: 15px;
}

.site-footer h3 {
    position: relative;
    margin: 8px 0 20px;
    padding-bottom: 10px;
    color: #333;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.site-footer h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-700);
}

.site-footer h3 .footer-title-link {
    margin: 0;
    color: #333;
    font-size: inherit;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.site-footer nav > a {
    width: fit-content;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer nav > a:hover,
.site-footer address a:hover {
    color: var(--green-700);
    transform: translateX(3px);
}

.site-footer address {
    font-style: normal;
}

.site-footer p svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
    color: var(--green-700);
}

.site-footer p a,
.contact-card p a {
    display: inline;
}

.contact-card address {
    font-style: normal;
}

/* Redes sociais */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 1px solid rgb(19 122 75 / 28%);
    border-radius: 12px;
    background: rgb(19 122 75 / 5%);
    color: var(--green-700);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    border-color: var(--green-700);
    background: var(--green-700);
    color: #fff;
}

/* Tooltip nos ícones de redes sociais */
.social-links a[data-tooltip] {
    position: relative;
}

.social-links a[data-tooltip]::before,
.social-links a[data-tooltip]::after {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.social-links a[data-tooltip]::before {
    content: attr(data-tooltip);
    padding: 5px 10px;
    border-radius: 6px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
    z-index: 10;
}

.social-links a[data-tooltip]::after {
    content: '';
    bottom: calc(100% + 2px);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
    z-index: 10;
}

.social-links a[data-tooltip]:hover::before,
.social-links a[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Barra de copyright */
.copyright {
    position: relative;
    max-width: 1180px;
    margin: 38px auto 0;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
    border-top: 1px solid rgb(19 122 75 / 24%);
    color: #333;
    font-size: 13px;
}

.developer-credit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-footer .developer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--green-700);
    font-size: inherit;
    font-weight: 900;
    text-decoration: none;
}

.site-footer .developer-link:hover {
    color: var(--green-950);
    text-decoration: underline;
}

.developer-link svg {
    width: 13px;
    height: 13px;
}
