/* Cogran shared footer styles. Loaded automatically by footer_copy.php. */

:root {
    --cgr-footer-green: #19783e;
    --cgr-footer-green-dark: #0b2d1a;
    --cgr-footer-green-deep: #071f12;
    --cgr-footer-mint: #c8efd5;
    --cgr-footer-white: #ffffff;
    --cgr-footer-text: #f0f7f2;
    --cgr-footer-muted: #c9dace;
    --cgr-footer-line: rgba(255, 255, 255, 0.13);
}

.cgr-footer,
.cgr-footer * {
    box-sizing: border-box;
}

.cgr-footer {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: var(--cgr-footer-green-dark);
    color: var(--cgr-footer-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.cgr-footer .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cgr-footer::before {
    content: "";
    position: absolute;
    top: 13rem;
    right: -14rem;
    width: 30rem;
    height: 30rem;
    border: 1px solid rgba(167, 223, 186, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.cgr-footer__container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 3rem), 1200px);
    margin-inline: auto;
}

.cgr-footer__cta {
    background: var(--cgr-footer-green);
}

.cgr-footer__cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    padding-block: clamp(2.5rem, 5vw, 4.25rem);
}

.cgr-footer__eyebrow {
    margin: 0 0 0.6rem;
    color: #d4f1de;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cgr-footer__cta h2 {
    max-width: 680px;
    margin: 0;
    color: var(--cgr-footer-white);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.cgr-footer__button {
    display: inline-flex;
    min-height: 3.4rem;
    padding: 0.9rem 1.5rem;
    align-items: center;
    justify-content: center;
    background: var(--cgr-footer-white);
    border: 2px solid var(--cgr-footer-white);
    border-radius: 999px;
    color: var(--cgr-footer-green-dark);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.cgr-footer__button:hover,
.cgr-footer__button:focus-visible {
    background: transparent;
    color: var(--cgr-footer-white);
    transform: translateY(-1px);
}

.cgr-footer__main {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) repeat(3, minmax(150px, 1fr));
    gap: clamp(2.25rem, 5vw, 5rem);
    padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}

.cgr-footer__wordmark {
    display: inline-block;
    margin-bottom: 1.3rem;
    color: var(--cgr-footer-white);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    text-decoration: none;
}

.cgr-footer__brand > p {
    max-width: 330px;
    margin: 0 0 1.5rem;
    color: var(--cgr-footer-text);
    font-size: 17px;
    line-height: 1.7;
}

.cgr-footer__contact {
    display: grid;
    gap: 0.3rem;
}

.cgr-footer__contact a {
    color: var(--cgr-footer-white);
    font-size: 16px;
    font-weight: 650;
    text-decoration: none;
}

.cgr-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cgr-footer__social a {
    color: var(--cgr-footer-mint);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.cgr-footer__nav h2 {
    margin: 0 0 1.2rem;
    color: var(--cgr-footer-white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cgr-footer__nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cgr-footer__nav li + li {
    margin-top: 0.72rem;
}

.cgr-footer__nav a {
    color: var(--cgr-footer-text);
    font-size: 16px;
    line-height: 1.45;
    text-decoration: none;
}

.cgr-footer__nav a:hover,
.cgr-footer__nav a:focus-visible,
.cgr-footer__contact a:hover,
.cgr-footer__contact a:focus-visible,
.cgr-footer__social a:hover,
.cgr-footer__social a:focus-visible,
.cgr-footer__wordmark:hover,
.cgr-footer__wordmark:focus-visible {
    color: var(--cgr-footer-white);
    text-decoration: underline;
    text-decoration-color: var(--cgr-footer-mint);
    text-underline-offset: 0.22em;
}

.cgr-footer__trust {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: center;
    padding-block: 1.7rem;
    border-top: 1px solid var(--cgr-footer-line);
}

.cgr-footer__trust img {
    display: block;
    width: auto;
    max-width: 151px;
    height: auto;
    max-height: 50px;
    filter: grayscale(1) brightness(1.45);
    opacity: 0.78;
    transition: filter 160ms ease, opacity 160ms ease;
}

.cgr-footer__trust img:hover {
    filter: none;
    opacity: 1;
}

.cgr-footer__legal {
    background: var(--cgr-footer-green-deep);
}

.cgr-footer__legal-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
    padding-block: 1.25rem;
}

.cgr-footer__legal p {
    margin: 0;
    color: var(--cgr-footer-muted);
    font-size: 14px;
}

.cgr-footer__legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cgr-footer__legal a {
    color: var(--cgr-footer-muted);
    font-size: 14px;
    text-decoration: none;
}

.cgr-footer__legal a:hover,
.cgr-footer__legal a:focus-visible {
    color: var(--cgr-footer-white);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.cgr-footer a:focus-visible {
    outline: 3px solid rgba(167, 223, 186, 0.55);
    outline-offset: 4px;
}

/*
 * The legacy Neko theme uses ID-based footer rules and a reduced root font
 * size. These explicit overrides keep this component readable regardless of
 * the page it is included on.
 */
#main-footer.cgr-footer {
    background: var(--cgr-footer-green-dark) !important;
    color: var(--cgr-footer-text) !important;
    font-size: 16px !important;
}

#main-footer.cgr-footer .cgr-footer__main,
#main-footer.cgr-footer .cgr-footer__trust {
    background: transparent !important;
}

#main-footer.cgr-footer .cgr-footer__cta {
    background: var(--cgr-footer-green) !important;
}

#main-footer.cgr-footer .cgr-footer__legal {
    background: var(--cgr-footer-green-deep) !important;
}

#main-footer.cgr-footer .cgr-footer__brand > p {
    color: var(--cgr-footer-text) !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

#main-footer.cgr-footer .cgr-footer__nav h2,
#main-footer.cgr-footer .cgr-footer__eyebrow,
#main-footer.cgr-footer .cgr-footer__footer-label {
    color: var(--cgr-footer-mint) !important;
}

#main-footer.cgr-footer .cgr-footer__nav h2 {
    font-size: 14px !important;
    line-height: 1.4 !important;
}

#main-footer.cgr-footer .cgr-footer__nav a {
    color: var(--cgr-footer-text) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

#main-footer.cgr-footer .cgr-footer__contact a,
#main-footer.cgr-footer .cgr-footer__social a {
    color: var(--cgr-footer-white) !important;
    font-size: 16px !important;
}

#main-footer.cgr-footer .cgr-footer__wordmark {
    color: var(--cgr-footer-white) !important;
}

#main-footer.cgr-footer .cgr-footer__button {
    background: var(--cgr-footer-white) !important;
    border-color: var(--cgr-footer-white) !important;
    color: var(--cgr-footer-green-dark) !important;
}

#main-footer.cgr-footer .cgr-footer__button:hover,
#main-footer.cgr-footer .cgr-footer__button:focus-visible {
    background: transparent !important;
    color: var(--cgr-footer-white) !important;
}

#main-footer.cgr-footer .cgr-footer__nav a:hover,
#main-footer.cgr-footer .cgr-footer__nav a:focus-visible,
#main-footer.cgr-footer .cgr-footer__contact a:hover,
#main-footer.cgr-footer .cgr-footer__contact a:focus-visible,
#main-footer.cgr-footer .cgr-footer__social a:hover,
#main-footer.cgr-footer .cgr-footer__social a:focus-visible,
#main-footer.cgr-footer .cgr-footer__wordmark:hover,
#main-footer.cgr-footer .cgr-footer__wordmark:focus-visible {
    color: var(--cgr-footer-white) !important;
}

#main-footer.cgr-footer .cgr-footer__legal p,
#main-footer.cgr-footer .cgr-footer__legal a {
    color: var(--cgr-footer-muted) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#main-footer.cgr-footer .cgr-footer__cta h2 {
    color: var(--cgr-footer-white) !important;
    font-size: clamp(30px, 4vw, 48px) !important;
    line-height: 1.08 !important;
}

@media (max-width: 980px) {
    .cgr-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cgr-footer__container {
        width: min(calc(100% - 2.5rem), 1200px);
    }

    .cgr-footer__cta-inner,
    .cgr-footer__main {
        grid-template-columns: 1fr;
    }

    .cgr-footer__button {
        width: 100%;
    }

    .cgr-footer__brand > p {
        max-width: 40rem;
    }

    .cgr-footer__legal-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cgr-footer__button,
    .cgr-footer__trust img {
        transition: none;
    }
}

@media print {
    .cgr-footer__cta,
    .cgr-footer__nav,
    .cgr-footer__social,
    .cgr-footer__trust {
        display: none;
    }

    .cgr-footer,
    .cgr-footer__legal {
        background: none;
        color: #000;
    }

    .cgr-footer__main {
        display: block;
        padding: 1rem 0;
    }
}
