/**
 * Site-wide accessibility helpers.
 * Keyboard focus visibility and the skip-to-content link.
 */

/* ---------- Skip to content ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    z-index: 100000;
    display: inline-block;
    padding: 14px 26px;
    background: #041423;
    color: #fff;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 18px rgba(4, 20, 35, .3);
    transition: top .18s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 3px solid #caa855;
    outline-offset: -3px;
}

/* ---------- Visually hidden (available to screen readers) ---------- */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Keyboard focus indicator ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #caa855;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mouse users keep the original look. */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
    outline: none;
}

/* The menu trigger is an image acting as a button. */
.hum,
.btn_close {
    cursor: pointer;
}

/* ---------- Respect reduced-motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================================
   Privacy-consent field on the contact forms
   CF7 renders [acceptance] as nested spans that default to
   block-ish layout, which broke the checkbox onto its own line.
   ============================================================ */

.form_consent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.form_consent .wpcf7-form-control-wrap { display: inline-flex; }

.form_consent .wpcf7-acceptance,
.form_consent .wpcf7-list-item {
    display: inline-flex;
    margin: 0;
}

.form_consent .wpcf7-list-item label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 4px 0;
    font-weight: 500;
    cursor: pointer;
}

.form_consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #041423;
    cursor: pointer;
}

.form_consent .wpcf7-list-item-label { line-height: 1.4; }

.form_consent a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity .2s ease;
}

.form_consent a:hover { opacity: .72; }

/* Validation message sits under the row, not inline. */
.form_consent .wpcf7-not-valid-tip {
    flex-basis: 100%;
    text-align: center;
    font-size: 15px;
}

/* On the gold footer panel. */
.footer_form_container .form_consent,
.footer_form_container .form_consent a { color: #342706; }

.footer_form_container .form_consent input[type="checkbox"] { accent-color: #342706; }

/* On the light contact-page panel. */
.contact_form .form_consent { color: #364960; }
.contact_form .form_consent a { color: #193B69; }

@media (max-width: 575px) {
    .form_consent {
        justify-content: flex-start;
        font-size: 15px;
    }
}

/* ---------- Legal links in the footer ---------- */
.footer_legal_links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-top: 8px;
}

.footer_legal_links a {
    color: rgba(255, 255, 255, .78);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.footer_legal_links a:hover,
.footer_legal_links a:focus { color: #D3B167; }

.footer_legal_links span { color: rgba(255, 255, 255, .35); }

@media (max-width: 575px) {
    .footer_legal_links { justify-content: center; width: 100%; }
}

/* The menu triggers are now real buttons; strip default button chrome. */
button.hum,
button.btn_close {
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
}

button.btn_close {
    background: #0557C9;
}

/* ============================================================
   Cookie notice (notice only, no consent mechanism)
   ============================================================ */

.cookie_notice {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9990;
    background: #041423;
    border-top: 3px solid #caa855;
    box-shadow: 0 -8px 30px rgba(4, 20, 35, .28);
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
}

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

.cookie_notice_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 34px;
    padding: 20px 0;
}

.cookie_notice_text {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
}

.cookie_notice_text a {
    color: #D3B167;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.cookie_notice_text a:hover,
.cookie_notice_text a:focus { color: #e8c87e; }

.cookie_notice_btn {
    flex: 0 0 auto;
    padding: 13px 38px;
    border: 0;
    border-radius: 4px;
    background: #D3B167;
    color: #241a03;
    font-family: 'Heebo', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .12s ease;
}

.cookie_notice_btn:hover { background: #e0c17c; }
.cookie_notice_btn:active { transform: translateY(1px); }

.cookie_notice_btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .cookie_notice_inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 18px 0;
        gap: 14px;
    }

    .cookie_notice_text { font-size: 15.5px; }
    .cookie_notice_btn { width: 100%; padding: 14px 20px; }
}

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