/* Footer Styles */
.footer {
    background: #191970;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-top-row {
    width: 100%;
    padding: 0 136px;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 50% 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.footer-top-row .footer-logo {
    grid-column: 1;
}

.footer-spacer {
    grid-column: 2;
}

.footer-top-row .footer-contact-button {
    grid-column: 3;
    justify-self: start;
    margin-left: 0;
    margin-bottom: 0;
}

.footer-container {
    width: 100%;
    margin: 0;
    padding: 0 136px;
    display: grid;
    grid-template-columns: 50% 1fr 1fr;
    gap: 6rem;
}

.footer-column h3 {
    font-size: 26px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.footer-about-col h3 {
    margin-top: 0;
}

.footer-column {
    padding: 0;
    margin: 0;
}

.footer-column:nth-child(2) h3,
.footer-column:nth-child(3) h3 {
    margin-top: 0;
}

.footer-column p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Logo */
.footer-logo {
    height: 32px;
    margin: 0;
}

/* About Us Column */
.footer-about-col {
    width: 100%;
}

.footer-about-col .footer-logo {
    margin-left: 0;
}

.footer-description {
    font-size: 19px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Button */
.footer-contact-button {
    background: #2E8B57;
    color: #FFFFFF;
    border: none;
    padding: 0;
    width: 175px;
    height: 47px;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
    overflow: hidden;
    text-decoration: none;
}

.footer-contact-button .button-text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.footer-contact-button .button-text-main,
.footer-contact-button .button-text-hover {
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.footer-contact-button .button-text-hover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%);
    opacity: 0;
}

.footer-contact-button:hover .button-text-main {
    transform: translateY(-100%);
    opacity: 0;
}

.footer-contact-button:hover .button-text-hover {
    transform: translateY(0);
    opacity: 1;
}

.contact-arrow-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.footer-contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.05rem;
    line-height: 1.2;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}

.link-hyphen {
    color: #2E8B57;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.4s ease;
}

.link-text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.link-text-main,
.link-text-hover {
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.link-text-hover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%) rotate(5deg);
    opacity: 0;
}

.footer-links a:hover .link-text-main {
    transform: translateY(-100%) rotate(-5deg);
    opacity: 0;
}

.footer-links a:hover .link-text-hover {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

.footer-links a:hover .link-hyphen {
    color: #FFFFFF;
}

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

/* Address Styling */
.address-line,
.email-line {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}

.address-hyphen {
    color: #2E8B57;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.address-text {
    display: inline-block;
    line-height: 1.8;
    color: #FFFFFF;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding-left: calc(1.5rem + 0.35rem);
}

.social-icons a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.social-icons a img {
    width: 32px;
    height: 32px;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* Footer Bottom Row */
.footer-bottom-row {
    width: 100%;
    padding: 0 136px;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 50% 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Copyright & Legal */
.copyright {
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #E5E4E2;
    margin: 0;
    grid-column: 1;
}

.legal-link {
    margin: 0;
    padding-left: 0;
    grid-column: 3;
}

.legal-link a {
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #E5E4E2;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
}

.legal-link .link-text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.legal-link .link-text-main,
.legal-link .link-text-hover {
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.legal-link .link-text-hover {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(100%) rotate(5deg);
    opacity: 0;
}

.legal-link a:hover .link-text-main {
    transform: translateY(-100%) rotate(-5deg);
    opacity: 0;
}

.legal-link a:hover .link-text-hover {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

.legal-link a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-top-row {
        padding: 0 4rem;
    }

    .footer-container {
        padding: 0 4rem;
    }

    .footer-bottom-row {
        padding: 0 4rem;
    }
}

@media (max-width: 768px) {
    .footer-top-row {
        padding: 0 2rem;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-top-row .footer-logo {
        grid-column: 1;
        height: 24px;
    }

    .footer-spacer {
        display: none;
    }

    .footer-top-row .footer-contact-button {
        grid-column: 2;
        justify-self: end;
        width: 140px;
        height: 40px;
        font-size: 18px;
    }

    .contact-arrow-icon {
        width: 18px;
        height: 18px;
    }

    .footer-container {
        padding: 0 2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }

    .footer-column:nth-child(1) {
        width: 100%;
        margin-bottom: 2rem;
    }

    .footer-column:nth-child(2) {
        width: 48%;
        margin-right: 4%;
    }

    .footer-column:nth-child(3) {
        width: 48%;
    }

    .footer-bottom-row {
        padding: 0 2rem;
        grid-template-columns: 1fr;
        gap: 1rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-row .copyright {
        grid-column: 1;
        order: 2;
        text-align: left;
    }

    .footer-bottom-row .legal-link {
        grid-column: 1;
        order: 1;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-top-row {
        padding: 0 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-bottom-row {
        padding: 0 1rem;
    }
}
