/* Cookie consent banner — Google Consent Mode v2.
   Self-contained: kept out of style.css so it carries its own cache version
   and can be removed by deleting this file + js/consent.js + the head block. */

.consent-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-elevated, #264b5c);
    border: 1px solid var(--border-default, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    font-family: var(--font-sans, "Outfit", sans-serif);
    transform: translateY(140%);
    transition: transform 0.35s ease;
}

.consent-banner.is-visible {
    transform: translateY(0);
}

.consent-banner__text {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary, #a3c0cf);
}

.consent-banner__text a {
    color: var(--color-accent, #ff8500);
    text-decoration: underline;
}

.consent-banner__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.consent-banner__btn {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md, 10px);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.consent-banner__btn--accept {
    background: var(--color-accent, #ff8500);
    color: #17323e;
}

.consent-banner__btn--accept:hover {
    background: var(--color-accent-bright, #ffa333);
}

.consent-banner__btn--decline {
    background: transparent;
    color: var(--text-secondary, #a3c0cf);
    border-color: var(--border-default, rgba(255, 255, 255, 0.1));
}

.consent-banner__btn--decline:hover {
    color: var(--text-primary, #fff);
    border-color: var(--border-accent, rgba(255, 133, 0, 0.3));
}

@media (max-width: 768px) {
    .consent-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }

    .consent-banner__text {
        font-size: 0.9rem;
    }

    .consent-banner__actions {
        flex-direction: row;
    }

    .consent-banner__btn {
        flex: 1;
        padding: 0.85rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-banner {
        transition: none;
    }
}

/* Keyboard focus. The banner itself takes focus only when a visitor opens it
   from the footer link, so it gets no visible ring; the controls inside do. */
.consent-banner:focus {
    outline: none;
}

.consent-banner__btn:focus-visible,
.consent-banner__text a:focus-visible {
    outline: 2px solid var(--color-accent-bright, #ffa333);
    outline-offset: 2px;
}

/* "Cookie settings" footer trigger. It performs an action rather than
   navigating, so it is a <button> that inherits .footer-link's appearance. */
button.footer-link {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}
