/*
Theme section: FK Machinery — landing targowy
Plik: /css/page-targi.css
Ładowany wyłącznie przez szablon page-targi.php
*/

.fk-trade,
.fk-trade * {
    box-sizing: border-box;
}

.fk-trade {
    --navy: #0e1f40;
    --navy-2: #172b50;
    --blue: #0d7db3;
    --orange: #f47a00;
    --orange-light: #ff8b1a;
    --text: #10203d;
    --light: #eef1f4;
    --warm: #f5f2ec;
    --ease: cubic-bezier(.22, 1, .36, 1);

    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
}

.fk-trade img {
    display: block;
    max-width: 100%;
}

.fk-trade__container {
    width: min(1180px, calc(100% - 48px));
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

/* Animacje wejścia */

.fk-trade .reveal-item {
    opacity: 0;
    filter: blur(6px);
    transition:
        opacity .95s var(--ease),
        transform .95s var(--ease),
        filter .95s var(--ease);
}

.fk-trade .reveal-left {
    transform: translate3d(-70px, 0, 0);
}

.fk-trade .reveal-right {
    transform: translate3d(70px, 0, 0);
}

.fk-trade .reveal-up {
    transform: translate3d(0, 60px, 0);
}

.fk-trade .reveal-item.visible {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
}

/* Hero */

.fk-trade__hero {
    position: relative;
    min-height: 680px;
    padding: 110px 0 90px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 40%, rgba(244, 122, 0, .08), transparent 27%),
        #fff;
}

.fk-trade__hero-glow {
    position: absolute;
    top: 50%;
    right: 7%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 122, 0, .07), transparent 70%);
    transform: translateY(-50%);
    pointer-events: none;
}

.fk-trade__hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    gap: 90px;
    align-items: center;
}

.fk-trade__hero-copy {
    width: 100%;
    max-width: 620px;
}

.fk-trade__eyebrow,
.fk-trade__section-heading p,
.fk-trade__numbers-copy > p,
.fk-trade__contact-copy > p {
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fk-trade h1,
.fk-trade h2 {
    margin: 0;
    color: var(--navy);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: -.035em;
    text-transform: uppercase;
    word-break: normal;
}

.fk-trade__hero h1 {
    max-width: 650px;
    font-size: clamp(54px, 5.1vw, 82px);
    line-height: .92;
}

.fk-trade h1 strong,
.fk-trade h2 strong {
    display: block;
    color: var(--orange);
}

.fk-trade__lead {
    max-width: 580px;
    margin: 28px 0 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.55;
}

.fk-trade__button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    gap: 15px;
    margin-top: 32px;
    padding: 18px 28px;
    color: #fff !important;
    background: var(--orange);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        transform .3s var(--ease),
        box-shadow .3s var(--ease),
        background .3s ease;
}

.fk-trade__button:hover {
    color: #fff !important;
    background: var(--orange-light);
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(244, 122, 0, .28);
}

.fk-trade__button i {
    width: 17px;
    height: 9px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
}

.fk-trade__hero-logo {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fk-trade__hero-logo img {
    position: relative;
    z-index: 2;
    width: min(430px, 92%);
    height: auto;
    margin: 0 auto;
    will-change: transform;
    filter: drop-shadow(0 30px 35px rgba(14, 31, 64, .13));
}

.fk-trade__orbit {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(14, 31, 64, .13);
    border-radius: 50%;
    will-change: transform;
    pointer-events: none;
}

.fk-trade__orbit-dot {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.fk-trade__orbit-dot--orange {
    top: -7px;
    left: calc(50% - 7px);
    width: 14px;
    height: 14px;
    background: var(--orange);
}

.fk-trade__orbit-dot--navy {
    top: calc(50% - 6px);
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--navy);
}

.fk-trade__scroll-cue {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;
    width: 28px;
    height: 44px;
    border: 1px solid rgba(14, 31, 64, .22);
    border-radius: 18px;
    transform: translateX(-50%);
}

.fk-trade__scroll-cue span {
    width: 4px;
    height: 8px;
    display: block;
    margin: 8px auto 0;
    border-radius: 5px;
    background: var(--orange);
    animation: fkTradeScrollDot 1.5s infinite;
}

/* Dlaczego warto */

.fk-trade__benefits {
    padding: 90px 0 110px;
    background: #fff;
}

.fk-trade__section-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 48px;
}

.fk-trade__section-number {
    width: 44px;
    height: 44px;
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--orange);
    font-size: 13px;
    font-weight: 700;
    transition:
        transform .35s var(--ease),
        box-shadow .35s ease;
}

.fk-trade__section-heading.visible:hover .fk-trade__section-number {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 12px 24px rgba(244, 122, 0, .24);
}

.fk-trade__section-heading h2 {
    max-width: 850px;
    font-size: clamp(40px, 4.3vw, 64px);
    line-height: .96;
}

.fk-trade__benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.fk-trade__benefit-card {
    position: relative;
    width: 100%;
    min-height: 275px;
    padding: 34px 32px 55px;
    background: var(--light);
    clip-path: polygon(
        0 0,
        calc(100% - 34px) 0,
        100% 34px,
        100% 100%,
        34px 100%,
        0 calc(100% - 34px)
    );
    transition:
        transform .4s var(--ease),
        box-shadow .4s var(--ease);
}

.fk-trade__benefit-card--warm {
    background: var(--warm);
}

.fk-trade__benefit-card.reveal-item.visible:hover {
    transform: translate3d(0, -12px, 0) scale(1.02);
    box-shadow: 0 24px 50px rgba(14, 31, 64, .14);
}

.fk-trade__benefit-card > span {
    display: block;
    color: var(--orange);
    font-size: 24px;
    font-weight: 700;
}

.fk-trade__benefit-card h3 {
    margin: 20px 0 16px;
    color: var(--navy);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
}

.fk-trade__benefit-card p {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

.fk-trade__benefit-card i {
    position: absolute;
    right: 26px;
    bottom: 25px;
    width: 35px;
    height: 19px;
    border-right: 7px solid var(--orange);
    border-bottom: 7px solid var(--orange);
    transform: rotate(45deg);
    transition: transform .35s var(--ease);
}

.fk-trade__benefit-card.reveal-item.visible:hover i {
    transform: translate3d(5px, 5px, 0) rotate(45deg);
}

/* Liczby */

.fk-trade__numbers {
    padding: 90px 0;
    background: var(--navy);
}

.fk-trade__numbers-grid {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
    gap: 65px;
    align-items: center;
}

.fk-trade__numbers-copy > p,
.fk-trade__numbers-copy h2,
.fk-trade__numbers-copy > div {
    color: #fff;
}

.fk-trade__numbers-copy h2 {
    font-size: clamp(42px, 4.4vw, 66px);
    line-height: .96;
}

.fk-trade__numbers-copy > div {
    max-width: 470px;
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.55;
}

.fk-trade__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.fk-trade__stats > div {
    min-height: 132px;
    padding: 30px 28px;
    background: var(--navy-2);
    border: 1px solid rgba(255, 255, 255, .13);
    clip-path: polygon(
        0 0,
        calc(100% - 28px) 0,
        100% 28px,
        100% 100%,
        0 100%
    );
    transition:
        transform .4s var(--ease),
        background .4s ease,
        border-color .4s ease,
        box-shadow .4s ease;
}

.fk-trade__stats > div.reveal-item.visible:hover {
    transform: translate3d(0, -9px, 0) scale(1.015);
    background: #1d3562;
    border-color: rgba(244, 122, 0, .75);
    box-shadow: 0 20px 36px rgba(0, 0, 0, .22);
}

.fk-trade__stats b {
    display: block;
    color: var(--orange);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    transition: transform .35s var(--ease);
}

.fk-trade__stats > div.reveal-item.visible:hover b {
    transform: translate3d(5px, -3px, 0) scale(1.08);
}

.fk-trade__stats span {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Formularz */

.fk-trade__contact {
    position: relative;
    padding: 105px 0 0;
    overflow: hidden;
    background: #fff;
}

.fk-trade__contact-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 260px;
    height: 130px;
    background: var(--navy);
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
}

.fk-trade__contact-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(560px, 1.28fr);
    gap: 60px;
    align-items: start;
}

.fk-trade__contact-copy {
    padding: 35px 0 90px;
}

.fk-trade__contact-copy h2 {
    max-width: 500px;
    font-size: clamp(46px, 4.7vw, 70px);
    line-height: .92;
}

.fk-trade__contact-copy > div {
    max-width: 480px;
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.55;
}

.fk-trade__form-panel {
    width: 100%;
    min-height: 580px;
    margin-top: -26px;
    padding: 48px 50px 65px;
    color: #fff;
    background: var(--blue);
    clip-path: polygon(
        0 0,
        calc(100% - 30px) 0,
        100% 48px,
        100% 100%,
        0 100%
    );
}

.fk-trade__form-panel h3 {
    margin: 0 0 34px;
    color: #fff;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.fk-trade__form,
.fk-trade__form p,
.fk-trade__form label,
.fk-trade__form span {
    color: #fff;
}

.fk-trade__form input:not([type="submit"]):not([type="checkbox"]),
.fk-trade__form select,
.fk-trade__form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    padding: 9px 2px;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .55) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: 'Rajdhani', sans-serif !important;
}

.fk-trade__form textarea {
    min-height: 90px;
}

.fk-trade__form input::placeholder,
.fk-trade__form textarea::placeholder {
    color: rgba(255, 255, 255, .55) !important;
    opacity: 1;
}

.fk-trade__form .wpcf7-list-item-label,
.fk-trade__form .wpcf7-list-item-label a {
    color: #fff !important;
}

.fk-trade__form input[type="submit"] {
    width: auto;
    min-height: 48px;
    margin-top: 18px;
    padding: 10px 0 5px;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid #fff !important;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

.fk-trade__form .wpcf7-spinner {
    display: none !important;
}

@keyframes fkTradeScrollDot {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Tablet */

@media screen and (max-width: 1024px) {
    body .fk-trade__container {
        width: calc(100% - 40px);
        max-width: 100%;
    }

    body .fk-trade__hero {
        min-height: auto;
        padding: 80px 0 65px;
    }

    body .fk-trade__hero-grid,
    body .fk-trade__numbers-grid,
    body .fk-trade__contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 45px;
    }

    body .fk-trade__hero-copy,
    body .fk-trade__numbers-copy,
    body .fk-trade__contact-copy {
        width: 100%;
        max-width: 100%;
    }

    body .fk-trade__hero-logo {
        min-height: 310px;
        padding: 10px 0;
    }

    body .fk-trade__hero-logo img {
        width: min(380px, 82%);
    }

    body .fk-trade__orbit {
        width: 310px;
        height: 310px;
        max-width: 82vw;
        max-height: 82vw;
    }

    body .fk-trade__benefits-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    body .fk-trade__benefit-card {
        min-height: 230px;
    }

    body .fk-trade__contact-copy {
        padding-bottom: 20px;
    }

    body .fk-trade__form-panel {
        min-height: auto;
        margin-top: 0;
    }
}

/* Telefon */

@media screen and (max-width: 768px) {
    body .fk-trade__container {
        width: calc(100% - 30px);
    }

    body .fk-trade__hero {
        padding: 55px 0 55px;
    }

    body .fk-trade__hero-grid {
        gap: 28px;
    }

    body .fk-trade__eyebrow {
        font-size: 12px;
    }

    body .fk-trade__hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(42px, 13vw, 60px);
        line-height: .94;
    }

    body .fk-trade__lead {
        max-width: 100%;
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.5;
    }

    body .fk-trade__button {
        min-height: 52px;
        margin-top: 25px;
        padding: 15px 22px;
    }

    body .fk-trade__hero-logo {
        min-height: 250px;
    }

    body .fk-trade__hero-logo img {
        width: min(310px, 82%);
    }

    body .fk-trade__orbit {
        width: 250px;
        height: 250px;
    }

    body .fk-trade__scroll-cue {
        display: none;
    }

    body .fk-trade__benefits {
        padding: 60px 0 70px;
    }

    body .fk-trade__section-heading {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 32px;
    }

    body .fk-trade__section-number {
        width: 42px;
        height: 42px;
        flex: none;
    }

    body .fk-trade__section-heading h2 {
        max-width: 100%;
        font-size: clamp(36px, 10vw, 50px);
        line-height: .98;
    }

    body .fk-trade__benefit-card {
        min-height: auto;
        padding: 28px 24px 55px;
    }

    body .fk-trade__benefit-card h3 {
        font-size: 24px;
        line-height: 1.1;
    }

    body .fk-trade__numbers {
        padding: 65px 0;
    }

    body .fk-trade__numbers-grid {
        gap: 35px;
    }

    body .fk-trade__numbers-copy h2 {
        font-size: clamp(38px, 11vw, 54px);
        line-height: .96;
    }

    body .fk-trade__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    body .fk-trade__stats > div {
        width: 100%;
        min-height: 115px;
        padding: 25px 24px;
    }

    body .fk-trade__stats b {
        font-size: 38px;
    }

    body .fk-trade__contact {
        padding: 65px 0 0;
    }

    body .fk-trade__contact-corner {
        width: 130px;
        height: 65px;
    }

    body .fk-trade__contact-copy {
        padding: 20px 0 15px;
    }

    body .fk-trade__contact-copy h2 {
        font-size: clamp(40px, 12vw, 56px);
        line-height: .94;
    }

    body .fk-trade__form-panel {
        padding: 35px 24px 45px;
        clip-path: polygon(
            0 0,
            calc(100% - 22px) 0,
            100% 32px,
            100% 100%,
            0 100%
        );
    }

    body .fk-trade__form-panel h3 {
        margin-bottom: 26px;
        font-size: 25px;
        line-height: 1.1;
    }

    body .fk-trade__form .inputs,
    body .fk-trade__form .row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
}

@media screen and (max-width: 480px) {
    body .fk-trade__container {
        width: calc(100% - 24px);
    }

    body .fk-trade__hero {
        padding-top: 42px;
    }

    body .fk-trade__hero h1 {
        font-size: clamp(38px, 12.7vw, 52px);
    }

    body .fk-trade__hero-logo {
        min-height: 215px;
    }

    body .fk-trade__hero-logo img {
        width: min(270px, 88%);
    }

    body .fk-trade__orbit {
        width: 210px;
        height: 210px;
    }

    body .fk-trade__section-heading {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    body .fk-trade__section-number {
        width: 38px;
        height: 38px;
    }

    body .fk-trade__section-heading h2 {
        font-size: 34px;
    }

    body .fk-trade__benefit-card {
        padding-right: 20px;
        padding-left: 20px;
    }

    body .fk-trade__form-panel {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* Na ekranach dotykowych nie wymuszamy efektów hover */

@media (hover: none) and (pointer: coarse) {
    body .fk-trade__benefit-card.reveal-item.visible:hover,
    body .fk-trade__stats > div.reveal-item.visible:hover {
        transform: translate3d(0, 0, 0);
        box-shadow: none;
    }
}
