/*
 * Additions on top of the theme: accessibility, the legal footer line, the contact form notice,
 * the privacy and error pages. Loaded last, after the theme's stylesheets.
 */

/* Keyboard users: jump past the menu, and always see where focus is. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 10000;
    padding: 10px 16px;
    background: var(--bet-primary-color, #1445a5);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 12px;
    color: #fff;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--bet-primary-color, #1445a5);
    outline-offset: 2px;
}

/* Turnstile appears only when Cloudflare needs a click; give it room when it does. */
.contact-form-2 .cf-turnstile {
    margin: 0 0 16px;
}

/* Home page project slider: same-size cards. */
.projects.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Contact form */
.contact-form-2 .form-notice {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 4px 0 20px;
}
.contact-form-2 .form-notice a {
    color: var(--bet-primary-color, #1445a5);
    text-decoration: underline;
}
.contact-form-2 .contact-submit-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* Company's legal details at the bottom of every page. */
.footer-style-one .footer-legal {
    padding: 22px 0;
    border-top: 1px solid rgba(127, 127, 127, 0.35);
}
.footer-style-one .footer-legal p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

/* Privacy policy */
.legal-content h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 36px 0 12px;
}
.legal-content p,
.legal-content li {
    font-size: 17px;
    line-height: 1.75;
}
.legal-content ul {
    padding-left: 22px;
    margin-bottom: 16px;
}
.legal-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}
.legal-content a {
    color: var(--bet-primary-color, #1445a5);
    text-decoration: underline;
}
.legal-content .legal-updated {
    font-size: 15px;
    opacity: 0.7;
}

/* 404 page */
.error-links {
    text-align: center;
}
.error-links p {
    font-size: 18px;
    margin-bottom: 24px;
}
.error-links-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* The loader slides away with transform instead of `top`: moving `top` is counted by Google
   as layout shift (CLS ≈ 0.5, a failing score); a transform is not. */
.preloader {
    transition-property: transform, visibility;
}
.page-loaded .preloader {
    top: 0;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .preloader {
        transition-duration: 0.01s;
    }
    .preloader img {
        animation: none;
    }
}
