/* AgriHerd public website shared styles */

.public-nav-toggle {
    border-radius: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
}

.nav-toggle-icon {
    display: block;
}

@media (max-width: 991.98px) {
    .nav-glass {
        padding: 14px 18px;
    }

    #publicNavMenu {
        width: 100%;
        margin-top: 14px;
    }

    #publicNavMenu .nav-links {
        display: grid;
        gap: 8px;
        width: 100%;
        padding: 14px 0 8px;
    }

    #publicNavMenu .nav-link-premium {
        display: block;
        padding: 10px 12px;
        border-radius: 12px;
        background: rgba(255, 255, 255, .75);
    }

    #publicNavMenu .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    #publicNavMenu .nav-actions .btn {
        width: 100%;
    }
}

/* Footer */
.agri-public-footer {
    position: relative;
    padding: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top left, rgba(47, 125, 50, .14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(242, 182, 50, .18), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fbf7);
    overflow: hidden;
}

.agri-public-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(7, 59, 36, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 59, 36, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
}

.footer-main {
    position: relative;
    z-index: 2;
    padding: 56px 0 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #073b24;
    margin-bottom: 18px;
}

.footer-brand:hover {
    color: #073b24;
    text-decoration: none;
}

.footer-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .10);
    padding: 6px;
}

.footer-brand-title {
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1;
}

.footer-brand-tagline {
    color: #2f7d32;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .18em;
    margin-top: 6px;
}

.footer-copy {
    color: #526157;
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 22px;
}

.footer-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1.25rem;
    font-size: 0.92rem;
}

.footer-contact-links a {
    color: #dbeede;
    text-decoration: none;
}

.footer-contact-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact-links .footer-whatsapp {
    color: #9fe8b8;
    font-weight: 600;
}

.footer-contact-links .footer-google {
    color: #f6d58b;
    font-weight: 600;
}

.footer-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(47, 125, 50, .10);
    color: #073b24;
    font-size: .78rem;
    font-weight: 850;
}

.footer-heading {
    color: #073b24;
    font-weight: 950;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 16px;
}

.footer-link-list {
    display: grid;
    gap: 10px;
}

.footer-link-list a {
    color: #526157;
    text-decoration: none;
    font-weight: 750;
    transition: color .18s ease, transform .18s ease;
}

.footer-link-list a:hover {
    color: #2f7d32;
    transform: translateX(3px);
}

.footer-cta-card {
    border-radius: 26px;
    background: #073b24;
    color: #ffffff;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(7, 59, 36, .22);
    position: relative;
    overflow: hidden;
}

.footer-cta-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    background: rgba(242, 182, 50, .22);
    border-radius: 50%;
}

.footer-cta-content {
    position: relative;
    z-index: 2;
}

.footer-cta-card h4 {
    font-weight: 950;
    margin-bottom: 8px;
}

.footer-cta-card p {
    color: rgba(255, 255, 255, .76);
    margin-bottom: 18px;
    line-height: 1.6;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding: 18px 0;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(10px);
}

.footer-bottom a {
    color: #526157;
    text-decoration: none;
    font-weight: 750;
}

.footer-bottom a:hover {
    color: #2f7d32;
}

.footer-small-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 42px 0 28px;
    }

    .footer-brand {
        justify-content: center;
        text-align: left;
    }

    .footer-copy {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-badge-row {
        justify-content: center;
    }

    .footer-heading,
    .footer-link-list {
        text-align: center;
    }

    .footer-link-list a:hover {
        transform: none;
    }
}

/* 404 page */
.error-page-hero {
    padding: 130px 0 90px;
    background:
        radial-gradient(circle at top left, rgba(47, 125, 50, .14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(242, 182, 50, .16), transparent 32%),
        linear-gradient(135deg, #ffffff, #f8fbf7);
}

.error-page-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 42px 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    opacity: 1;
    transform: none;
}

.error-page-code {
    font-size: 5rem;
    font-weight: 950;
    line-height: 1;
    color: #073b24;
}

.error-page-title {
    font-weight: 950;
    color: #073b24;
    margin-top: 12px;
}

.error-page-copy {
    color: #526157;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.error-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    color: #6c757d;
}

.error-page-links a {
    color: #2f7d32;
    font-weight: 800;
    text-decoration: none;
}

.error-page-links a:hover {
    text-decoration: underline;
}
