/* ==========================================================================
   JobOoro / JobOoro
   Global Production Footer CSS
   File: /assets/css/footer.css

   Principles:
   - No Bootstrap
   - No framework dependency
   - Responsive
   - Accessible
   - Performance-conscious
   - AdSense-friendly
   - Mobile-first
   - Supports light/dark user preference
   ========================================================================== */


/* ==========================================================================
   1. FOOTER FOUNDATION
   ========================================================================== */

.site-footer {
    --footer-bg: #101828;
    --footer-bg-secondary: #172033;
    --footer-border: rgba(255, 255, 255, 0.12);
    --footer-text: #d0d5dd;
    --footer-muted: #98a2b3;
    --footer-heading: #ffffff;
    --footer-link: #d0d5dd;
    --footer-link-hover: #ffffff;
    --footer-accent: #f5b301;
    --footer-accent-hover: #d99d00;
    --footer-focus: #7dd3fc;

    width: 100%;
    margin-top: 4rem;
    color: var(--footer-text);
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    font-size: 0.95rem;
    line-height: 1.65;
}

.site-footer *,
.cookie-consent *,
.site-footer *::before,
.site-footer *::after,
.cookie-consent *::before,
.cookie-consent *::after {
    box-sizing: border-box;
}


/* ==========================================================================
   2. FOOTER CONTAINER
   ========================================================================== */

.site-footer__container {
    width: min(100% - 2rem, 1200px);
    margin-inline: auto;
}


/* ==========================================================================
   3. NEWSLETTER SECTION
   ========================================================================== */

.footer-newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.footer-newsletter__content {
    max-width: 700px;
}

.footer-eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    color: var(--footer-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-newsletter__title {
    margin: 0 0 0.85rem;
    color: var(--footer-heading);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.footer-newsletter__text {
    max-width: 680px;
    margin: 0;
    color: var(--footer-text);
    font-size: 1rem;
}

.footer-newsletter__form-wrapper {
    width: 100%;
}

.footer-newsletter__form {
    width: 100%;
}

.footer-newsletter__input-group {
    display: flex;
    width: 100%;
    gap: 0.65rem;
}

.footer-input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem 0.95rem;
    color: #101828;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    font: inherit;
    line-height: 1.3;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.footer-input::placeholder {
    color: #667085;
}

.footer-input:hover {
    border-color: #d0d5dd;
}

.footer-input:focus {
    border-color: var(--footer-focus);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.22);
}

.footer-button {
    min-height: 48px;
    padding: 0.7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.footer-button:hover {
    transform: translateY(-1px);
}

.footer-button:active {
    transform: translateY(0);
}

.footer-button:focus-visible {
    outline: 3px solid var(--footer-focus);
    outline-offset: 3px;
}

.footer-button--primary {
    color: #171717;
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    white-space: nowrap;
}

.footer-button--primary:hover {
    background: var(--footer-accent-hover);
    border-color: var(--footer-accent-hover);
}

.footer-button--secondary {
    color: #344054;
    background: #ffffff;
    border-color: #d0d5dd;
}

.footer-button--secondary:hover {
    background: #f9fafb;
}

.footer-newsletter__privacy {
    margin: 0.8rem 0 0;
    color: var(--footer-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.footer-newsletter__privacy a {
    color: var(--footer-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-newsletter__privacy a:hover {
    color: #ffffff;
}


/* ==========================================================================
   4. DIVIDERS
   ========================================================================== */

.footer-divider {
    width: 100%;
    height: 1px;
    background: var(--footer-border);
}


/* ==========================================================================
   5. MAIN FOOTER GRID
   ========================================================================== */

.footer-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.6fr)
        repeat(5, minmax(120px, 1fr));

    gap: 2.5rem;
    padding: 4rem 0;
}

.footer-column {
    min-width: 0;
}


/* ==========================================================================
   6. BRAND
   ========================================================================== */

.footer-column--brand {
    max-width: 360px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--footer-heading);
    text-decoration: none;
}

.footer-brand:hover {
    color: #ffffff;
}

.footer-brand:focus-visible {
    outline: 3px solid var(--footer-focus);
    outline-offset: 5px;
    border-radius: 4px;
}

.footer-brand__icon {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #171717;
    background: var(--footer-accent);
    border-radius: 9px;
    font-size: 1.15rem;
}

.footer-brand__name {
    color: var(--footer-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-description {
    margin: 1rem 0 0;
    color: var(--footer-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* ==========================================================================
   7. FOOTER HEADINGS
   ========================================================================== */

.footer-heading {
    margin: 0 0 1rem;
    color: var(--footer-heading);
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.3;
}


/* ==========================================================================
   8. FOOTER LINKS
   ========================================================================== */

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: inline-block;
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    transition:
        color 160ms ease,
        transform 160ms ease;
}

.footer-links a:hover {
    color: var(--footer-link-hover);
    transform: translateX(2px);
}

.footer-links a:focus-visible {
    color: #ffffff;
    outline: 3px solid var(--footer-focus);
    outline-offset: 3px;
    border-radius: 3px;
}


/* ==========================================================================
   9. SOCIAL LINKS
   ========================================================================== */

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.footer-social__link {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--footer-text);
    background: var(--footer-bg-secondary);
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.footer-social__link:hover {
    color: #171717;
    background: var(--footer-accent);
    border-color: var(--footer-accent);
    transform: translateY(-2px);
}

.footer-social__link:focus-visible {
    outline: 3px solid var(--footer-focus);
    outline-offset: 3px;
}


/* ==========================================================================
   10. FOOTER INFORMATION / AGGREGATOR DISCLOSURE
   ========================================================================== */

.footer-information {
    padding: 1.8rem 0;
    color: var(--footer-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.footer-information p {
    max-width: 1000px;
    margin: 0;
}

.footer-information p + p {
    margin-top: 0.7rem;
}


/* ==========================================================================
   11. BOTTOM FOOTER
   ========================================================================== */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 76px;
    padding: 1rem 0;
    border-top: 1px solid var(--footer-border);
}

.footer-bottom__copyright {
    color: var(--footer-muted);
    font-size: 0.8rem;
}

.footer-bottom__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1rem;
}

.footer-bottom__links a {
    color: var(--footer-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-bottom__links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom__links a:focus-visible {
    outline: 3px solid var(--footer-focus);
    outline-offset: 3px;
    border-radius: 3px;
}


/* ==========================================================================
   12. VISUALLY HIDDEN CONTENT
   ========================================================================== */

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
}


/* ==========================================================================
   13. COOKIE CONSENT
   ========================================================================== */

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #d0d5dd;
    box-shadow: 0 -8px 30px rgba(16, 24, 40, 0.12);
    color: #344054;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(100%, 1200px);
    margin-inline: auto;
}

.cookie-consent__content {
    max-width: 760px;
}

.cookie-consent__content h2 {
    margin: 0 0 0.25rem;
    color: #101828;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.4;
}

.cookie-consent__content p {
    margin: 0 0 0.3rem;
    color: #667085;
    font-size: 0.84rem;
    line-height: 1.55;
}

.cookie-consent__content a {
    color: #175cd3;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__content a:hover {
    color: #1849a9;
}

.cookie-consent__actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.6rem;
}


/* ==========================================================================
   14. RESPONSIVE — LARGE TABLETS
   ========================================================================== */

@media (max-width: 1100px) {

    .footer-grid {
        grid-template-columns:
            repeat(3, minmax(150px, 1fr));

        gap: 2.5rem 2rem;
    }

    .footer-column--brand {
        grid-column: 1 / -1;
        max-width: 650px;
    }
}


/* ==========================================================================
   15. RESPONSIVE — TABLETS
   ========================================================================== */

@media (max-width: 800px) {

    .footer-newsletter {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 3rem 0;
    }

    .footer-newsletter__content {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 2.25rem 2rem;
        padding: 3rem 0;
    }

    .footer-column--brand {
        grid-column: 1 / -1;
    }

    .cookie-consent__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__actions .footer-button {
        flex: 1;
    }
}


/* ==========================================================================
   16. RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 600px) {

    .site-footer__container {
        width: min(100% - 1.5rem, 1200px);
    }

    .footer-newsletter {
        padding: 2.75rem 0;
    }

    .footer-newsletter__title {
        font-size: 1.55rem;
    }

    .footer-newsletter__text {
        font-size: 0.92rem;
    }

    .footer-newsletter__input-group {
        flex-direction: column;
    }

    .footer-input,
    .footer-button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.75rem 0;
    }

    .footer-column--brand {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.25rem 0;
    }

    .footer-bottom__links {
        justify-content: flex-start;
        gap: 0.7rem 1rem;
    }

    .footer-information {
        padding: 1.5rem 0;
        font-size: 0.76rem;
    }

    .cookie-consent {
        padding: 0.85rem;
    }

    .cookie-consent__inner {
        width: 100%;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__actions .footer-button {
        width: 100%;
    }
}


/* ==========================================================================
   17. SMALL MOBILE
   ========================================================================== */

@media (max-width: 380px) {

    .site-footer__container {
        width: min(100% - 1rem, 1200px);
    }

    .footer-newsletter__title {
        font-size: 1.4rem;
    }

    .footer-brand__name {
        font-size: 1.05rem;
    }

    .footer-social__link {
        width: 36px;
        height: 36px;
    }
}


/* ==========================================================================
   18. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .footer-button,
    .footer-links a,
    .footer-social__link,
    .footer-input {
        transition: none;
    }

    .footer-button:hover,
    .footer-links a:hover,
    .footer-social__link:hover {
        transform: none;
    }
}


/* ==========================================================================
   19. DARK USER PREFERENCE FOR COOKIE PANEL
   ========================================================================== */

@media (prefers-color-scheme: dark) {

    .cookie-consent {
        color: #d0d5dd;
        background: rgba(16, 24, 40, 0.98);
        border-top-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
    }

    .cookie-consent__content h2 {
        color: #ffffff;
    }

    .cookie-consent__content p {
        color: #98a2b3;
    }

    .cookie-consent__content a {
        color: #84caff;
    }

    .footer-button--secondary {
        color: #ffffff;
        background: #1d2939;
        border-color: #475467;
    }

    .footer-button--secondary:hover {
        background: #344054;
    }
}


/* ==========================================================================
   20. PRINT
   ========================================================================== */

@media print {

    .site-footer {
        margin-top: 2rem;
        color: #000000;
        background: #ffffff;
        border-top: 1px solid #000000;
    }

    .footer-social,
    .footer-newsletter,
    .cookie-consent {
        display: none !important;
    }

    .footer-heading,
    .footer-brand__name,
    .footer-links a,
    .footer-description,
    .footer-information,
    .footer-bottom__copyright,
    .footer-bottom__links a {
        color: #000000;
    }

    .footer-links a {
        text-decoration: underline;
    }
}