/* ==========================================================================
   Winning Edge site enhancements
   - logo loader
   - subtle 3D scroll animations (sections rise into view with a light tilt)
   - hover depth on gallery photos, scroll progress bar
   - keyboard focus and small polish
   Loaded after the theme's own CSS on every page, together with
   js/enhance.js. Content is only hidden for animation while that script is
   running (it adds the "we-motion" class), and all motion is switched off
   for visitors whose device asks for reduced motion.
   ========================================================================== */

:root {
    --we-blue: #00adef;
    --we-orange: #faa519;
    --we-ink: #4c4c4e;
    --we-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Logo loader (replaces the theme's spinner gif) ---------- */

.preloader {
    background-image: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .55s ease, visibility .55s ease;
}

.preloader::before {
    content: "";
    width: 225px;
    max-width: 60vw;
    height: 77px;
    background: url(../images/logo.png) center / contain no-repeat;
    animation: we-logo-in .8s var(--we-ease) both, we-logo-breathe 2.4s ease-in-out .8s infinite;
}

.preloader::after {
    content: "";
    width: 160px;
    height: 3px;
    margin-top: 22px;
    border-radius: 3px;
    background:
        linear-gradient(90deg, var(--we-blue), var(--we-orange)) 0 0 / 40% 100% no-repeat,
        #e9eef1;
    animation: we-loader-bar 1.1s ease-in-out infinite;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes we-logo-in {
    from { opacity: 0; transform: perspective(600px) rotateX(35deg) translateY(14px) scale(.94); }
    to   { opacity: 1; transform: none; }
}

@keyframes we-logo-breathe {
    50% { transform: scale(1.035); }
}

@keyframes we-loader-bar {
    from { background-position: -70% 0, 0 0; }
    to   { background-position: 170% 0, 0 0; }
}

/* ---------- Image skeletons ----------
   Shown in a content photo's reserved space until the photo has loaded
   (js/enhance.js adds and removes the class). */

img.we-skel {
    background:
        linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 70%) 0 0 / 300% 100% no-repeat,
        #e8eef2;
    animation: we-shimmer 1.4s linear infinite;
}

@keyframes we-shimmer {
    from { background-position: 100% 0, 0 0; }
    to   { background-position: 0 0, 0 0; }
}

/* ---------- Scroll progress bar ---------- */

.we-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99999;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--we-blue), var(--we-orange));
}

/* ---------- 3D scroll reveal ---------- */

.we-motion [data-we-reveal] {
    opacity: 0;
    transform: perspective(1200px) translate3d(0, 46px, 0) rotateX(14deg);
    transform-origin: 50% 100%;
    transition: opacity .9s var(--we-ease), transform 1s var(--we-ease);
    transition-delay: var(--we-delay, 0s);
}

.we-motion [data-we-reveal="left"] {
    transform: perspective(1200px) translate3d(-48px, 0, 0) rotateY(12deg);
    transform-origin: 0 50%;
}

.we-motion [data-we-reveal="right"] {
    transform: perspective(1200px) translate3d(48px, 0, 0) rotateY(-12deg);
    transform-origin: 100% 50%;
}

/* Tall blocks only fade up; tilting a whole tall column looks odd */
.we-motion [data-we-reveal="fade"] {
    transform: translate3d(0, 30px, 0);
}

/* Footer: a gentle settle that stays inside its own box, so nothing waiting
   to appear at the very bottom adds extra scroll space */
.we-motion [data-we-reveal="soft"] {
    transform: scale(.96);
    transform-origin: 50% 50%;
}

/* Side blocks swing in from 48px away; never let that cause sideways scrolling */
.we-motion body {
    overflow-x: clip;
}

.we-motion [data-we-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---------- Depth on hover and while scrolling ---------- */

.we-tilt {
    transition: transform .6s var(--we-ease), box-shadow .6s var(--we-ease);
}

.we-tilt.is-tilting {
    transition: transform .12s linear, box-shadow .3s ease;
    box-shadow: 0 24px 40px -20px rgba(0, 45, 75, .45);
}

.we-depth,
.we-banner-depth {
    will-change: transform;
}

/* Keep the receding banner text inside its banner. "clip" (unlike "hidden")
   doesn't change how the banner's margins lay out, so the page stays the
   same height. */
.we-motion .banner-section,
.we-motion .page-title,
.we-motion .page-title1 {
    overflow: clip;
}

/* ---------- Contact page ---------- */

.we-contact {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #f3f8fb 0%, #ffffff 70%);
}

.we-contact__head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.we-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 173, 239, .1);
    color: #00739f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.we-contact__head h1 {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.2;
    color: #222;
}

.we-contact__head p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: var(--we-ink);
}

.we-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
}

/* Details card */
.we-contact__info {
    position: sticky;
    top: 120px;
    overflow: hidden;
    padding: 36px 32px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(160deg, #0786be 0%, #06668f 55%, #2f4b58 100%);
    box-shadow: 0 24px 50px -28px rgba(0, 70, 110, .6);
}

.we-contact__info::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.we-person {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.we-person img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid rgba(255, 255, 255, .6);
    background: #fff;
}

.we-person strong {
    display: block;
    font-size: 17px;
    color: #fff;
}

.we-person span {
    font-size: 13px;
    opacity: .9;
}

.we-info-list {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.we-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.we-info-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.we-info-icon {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .16);
    font-size: 17px;
}

.we-info-list small {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

.we-info-list a,
.we-info-value {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.we-info-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.we-info-note {
    display: block;
    font-size: 13px;
    opacity: .85;
}

.we-steps {
    padding: 20px 22px;
    border-radius: 12px;
    background: rgba(0, 25, 40, .2);
}

.we-steps h2 {
    margin: 0 0 6px;
    font-size: 15px;
    letter-spacing: .04em;
    color: #fff;
}

.we-steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: we-step;
}

.we-steps li {
    position: relative;
    margin-top: 12px;
    padding-left: 36px;
    font-size: 14px;
    line-height: 1.5;
    counter-increment: we-step;
}

.we-steps li::before {
    content: counter(we-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #06668f;
    font-size: 12px;
    font-weight: 700;
}

/* Form card */
.we-contact__form {
    padding: 38px 36px;
    border: 1px solid #e3edf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px -32px rgba(0, 60, 90, .35);
}

.we-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    align-items: end; /* side-by-side boxes line up even when one label wraps */
    margin-bottom: 22px;
}

.we-field--full {
    grid-column: 1 / -1;
}

.we-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #2b2b2d;
}

.we-req {
    color: #c97800;
}

.we-optional {
    margin-left: 2px;
    font-size: 12px;
    font-weight: 400;
    color: #6f8089;
}

.we-form .we-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfdde5;
    border-radius: 10px;
    background: #fbfdfe;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.we-form textarea.we-input {
    height: auto;
    min-height: 130px;
    resize: vertical;
}

.we-form select.we-input {
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2306668f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.we-form .we-input::placeholder {
    color: #94a4ad;
}

.we-form .we-input:hover {
    border-color: #b3c8d3;
}

.we-form .we-input:focus {
    outline: none;
    border-color: var(--we-blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 173, 239, .16);
}

/* Only after the visitor has interacted with a field */
.we-form .we-input:user-invalid {
    border-color: #d23f3f;
    box-shadow: 0 0 0 4px rgba(210, 63, 63, .12);
}

.we-form .cf-turnstile {
    min-height: 65px;
    margin-bottom: 18px;
}

.we-form__notice {
    margin: -4px 0 18px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #fff4e0;
    color: #7a4a00;
    font-size: 14px;
}

.we-form__notice[hidden] {
    display: none;
}

.we-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

.we-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border: 0;
    border-radius: 10px;
    background: var(--we-blue);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 14px 26px -14px rgba(0, 140, 200, .9);
    transition: transform .25s var(--we-ease), box-shadow .25s ease, background-color .25s ease;
}

.we-submit:hover {
    background: #0098d4;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px -14px rgba(0, 140, 200, .95);
}

.we-submit:active {
    transform: translateY(0);
}

.we-submit[disabled] {
    cursor: progress;
    opacity: .85;
    transform: none;
}

.we-submit.is-sending .fa {
    animation: we-fly 1s ease-in-out infinite;
}

@keyframes we-fly {
    50% { transform: translate(4px, -4px); }
}

.we-form__privacy {
    margin: 0;
    font-size: 13px;
    color: #66767f;
}

.we-form__privacy .fa {
    margin-right: 4px;
    color: #06668f;
}

@media (max-width: 991px) {
    .we-contact__grid {
        grid-template-columns: 1fr;
    }
    .we-contact__form {
        order: -1;
    }
    .we-contact__info {
        position: static;
    }
    .we-contact__head h1 {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .we-contact {
        padding: 56px 0 70px;
    }
    .we-contact__head h1 {
        font-size: 27px;
    }
    .we-form__grid {
        grid-template-columns: 1fr;
    }
    .we-contact__form,
    .we-contact__info {
        padding: 26px 20px;
    }
    .we-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Polish ---------- */

.theme-btn {
    transition: transform .3s var(--we-ease), box-shadow .3s var(--we-ease), background-color .3s ease, color .3s ease;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -12px rgba(0, 120, 170, .7);
}

/* Clear outline for keyboard users only (mouse clicks show nothing) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--we-blue);
    outline-offset: 3px;
}

::selection {
    background: var(--we-blue);
    color: #fff;
}

/* Smooth in-page scrolling, switched on by js/enhance.js once the page has
   loaded: on during loading, it can stop a link like /about_us#framework
   from jumping to its section. */
@media (prefers-reduced-motion: no-preference) {
    html.we-smooth {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preloader::before,
    .preloader::after,
    img.we-skel,
    .we-submit.is-sending .fa {
        animation: none;
    }
    .theme-btn:hover {
        transform: none;
    }
}

@media print {
    .preloader,
    .we-progress {
        display: none !important;
    }
    .we-motion [data-we-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}
