/*==========================================================
    Accessibility & responsive fixes (P0)

    Loaded after style.css by Views/Shared/_Layout.cshtml.
    Kept in its own file on purpose: style.css has an unclosed
    "@media(max-width:768px){ .ai-mode {" block (~line 4991), so any
    rule appended to the end of style.css is nested inside it and
    never applies. Move these into style.css once that file is repaired.
==========================================================*/

/* Skip link: hidden until focused */
.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100000;
    padding: 10px 16px;
    border-radius: 8px;
    background: #17233d;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

    .skip-link:focus {
        top: 16px;
    }

main:focus {
    outline: none;
}

/* One consistent, visible keyboard focus ring. !important is intentional:
   many earlier rules remove outlines (outline:none) with higher specificity. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.switch input:focus-visible + .slider {
    outline: 3px solid var(--brand) !important;
    outline-offset: 2px !important;
}

/* Hamburger / close are now real <button>s: strip native button chrome */
button.Header__burger-menu,
button.close_btn {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* AI Mode checkbox was display:none (not reachable by keyboard); hide it visually instead */
.switch input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* Contact form: visible labels (placeholder is no longer the only label) */
.contact-wrapp__form .field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: #17233d;
    text-align: left;
}

    .contact-wrapp__form .field-label .field-optional {
        font-weight: 400;
        color: #6b7280;
    }

.contact-wrapp__form .icon-box .field-label + i {
    top: auto;
    bottom: 28px;
    transform: translateY(50%);
}

.contact-wrapp__form .icon-box .field-label + .textarea-icon {
    top: 48px !important;
    bottom: auto;
    transform: none !important;
}

/* Blinking "Hire me on Upwork" failed WCAG 2.2.2 and faded to 0 opacity (unreadable) */
.blink_me {
    animation: none !important;
}

/* Mobile: nowrap footer links widened the grid tracks past the viewport */
@media (max-width: 768px) {
    .Page_wrapper .footer {
        width: 100% !important;
        transform: none !important;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-contact li {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Safety net against stray horizontal overflow (clip, unlike hidden, keeps position:sticky working) */
.Page_wrapper {
    overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
