/* ========================================
   COMPONENTS - Reusable UI Elements
   ======================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .75rem 1.6rem;
    border-radius: 30px;
    border: 1px solid transparent;
    background: linear-gradient(100deg, #159cf5, #0677e5);
    color: #fff;
    font-weight: 800;
    font-size: .9375rem;
    line-height: 1.2;
    box-shadow: 0 8px 22px rgba(0, 126, 235, .2);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s, color .25s
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 126, 235, .28)
}

.btn .i {
    width: 1.05em;
    height: 1.05em
}

.btn.outline {
    background: transparent;
    border-color: rgba(255, 255, 255, .75);
    box-shadow: none
}

.btn.outline:hover {
    background: #fff;
    color: #0868c2
}

.btn.white {
    background: #fff;
    color: #0b65aa;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .12)
}

/* Service Cards */
.service-grid {
    display: grid;
    gap: 1.25rem
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    transition: transform .28s ease, box-shadow .28s ease
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(8, 61, 106, .14)
}

.service-image {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--navy)
}

.service-image img,
.service-image svg.art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease
}

.service-card:hover .service-image img,
.service-card:hover .service-image svg.art {
    transform: scale(1.04)
}

.service-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #16c1f3, #0783ec);
    color: #fff;
    box-shadow: 0 7px 16px rgba(0, 124, 235, .25)
}

.service-icon .i {
    width: 21px;
    height: 21px
}

.service-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: .9rem .5rem .4rem
}

.service-card h3 {
    color: #0b315b;
    font-family: var(--head);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3
}

.service-card p {
    margin: .35rem 0 1rem;
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.55
}

.service-arrow {
    margin-top: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    transition: background-color .2s, transform .2s
}

.service-arrow:hover {
    background: var(--blue2);
    transform: translateX(3px)
}

.service-arrow .i {
    width: 17px;
    height: 17px
}

@media(min-width:600px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(min-width:1000px) {
    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.1rem
    }

    .service-image {
        height: 165px
    }
}

/* Feature Icon */
.feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid #9ddff9;
    border-radius: 50%;
    background: #f1faff;
    color: var(--blue)
}

.feature-icon .i {
    width: 20px;
    height: 20px
}

/* Why Cards */
.why-grid {
    display: grid;
    gap: 1rem
}

.why-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 92px;
    padding: 1.05rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 7px 23px rgba(8, 61, 106, .055)
}

.why-icon {
    width: 48px;
    height: 48px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf8ff;
    color: var(--blue)
}

.why-icon .i {
    width: 22px;
    height: 22px
}

.why-card strong {
    display: block;
    color: #17395f;
    font-size: .9375rem;
    line-height: 1.3
}

.why-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .25rem;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.4
}

@media(min-width:600px) {
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(min-width:1000px) {
    .why-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
}

/* Sliders */
.slider {
    position: relative
}

.track {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 14px;
    margin: -6px -2px -14px
}

.track::-webkit-scrollbar {
    display: none
}

.track>* {
    scroll-snap-align: start;
    flex: 0 0 100%;
    min-width: 0
}

.arrow {
    display: none;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 17px rgba(0, 130, 235, .25);
    z-index: 3;
    transition: opacity .2s, background-color .2s
}

.arrow:hover {
    background: var(--blue2)
}

.arrow:disabled {
    opacity: .35;
    cursor: default
}

.arrow.prev {
    left: 0
}

.arrow.next {
    right: 0
}

.dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.4rem
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--blue);
    background: #fff;
    cursor: pointer;
    position: relative
}

.dot::after {
    content: "";
    position: absolute;
    inset: -9px
}

.dot[aria-current="true"] {
    background: var(--blue)
}

.slider.is-static .arrow,
.slider.is-static .dots {
    display: none !important
}

/* Project Cards */
.projects .track>* {
    flex-basis: 84%
}

.project {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.project img {
    width: 100%;
    height: 190px;
    object-fit: cover
}

.project-body {
    padding: 1rem 1.15rem 1.25rem
}

.project h3 {
    color: #16385e;
    font-family: var(--head);
    font-size: 1.0625rem;
    margin-bottom: .3rem
}

.project p {
    color: var(--muted);
    font-size: .9375rem;
    line-height: 1.5
}

@media(min-width:600px) {
    .projects .track>* {
        flex-basis: calc((100% - 1.1rem)/2)
    }
}

@media(min-width:900px) {
    .projects {
        padding: 0 3rem
    }

    .projects .track>* {
        flex-basis: calc((100% - 2.2rem)/3)
    }

    .projects .arrow {
        display: grid
    }
}

/* Testimonial */
.testimonial-wrap {
    width: min(850px, 100%);
    margin: 0 auto
}

.testimonial-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 11px 32px rgba(7, 60, 105, .07)
}

.avatar {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16c1f3, #0669d8);
    color: #fff;
    display: grid;
    place-items: center;
    font: 700 1.15rem var(--head)
}

.quote-mark {
    display: block;
    color: #0ba0f3;
    font-family: var(--head);
    font-size: 2.6rem;
    line-height: .6;
    height: 1.2rem
}

.testimonial-text p {
    color: #3f556d;
    font-size: 1.0625rem;
    line-height: 1.6
}

.testimonial-text strong {
    display: block;
    margin-top: .7rem;
    color: #173b60;
    font-size: .9375rem
}

.testimonial-text small {
    color: var(--muted);
    font-size: .8125rem
}

.stars {
    display: block;
    margin-top: .2rem;
    color: #e69500;
    font-size: .95rem;
    letter-spacing: .1em
}

@media(min-width:900px) {
    .testimonial-wrap {
        position: relative;
        padding: 0
    }

    .testimonial-wrap .slider {
        padding: 0
    }

    .testimonial-wrap .arrow {
        display: grid;
        background: #fff;
        color: var(--blue);
        border: 1px solid #b9dff7;
        box-shadow: none
    }

    .testimonial-wrap .arrow.prev {
        left: -64px
    }

    .testimonial-wrap .arrow.next {
        right: -64px
    }

    .testimonial-card {
        align-items: center;
        padding: 1.4rem 2rem;
        gap: 1.4rem
    }
}

/* CTA Section */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #078df2, #0068dc);
    color: #fff
}

.cta::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 330px;
    height: 190px;
    pointer-events: none;
    background: repeating-linear-gradient(125deg, transparent 0 22px, rgba(255, 255, 255, .12) 23px 25px, transparent 26px 48px)
}

.cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-block: 2.5rem
}

.cta h2 {
    margin-bottom: .4rem;
    font-family: var(--head);
    font-size: clamp(1.45rem, 1rem + 1.6vw, 1.95rem);
    line-height: 1.25;
    letter-spacing: -.01em
}

.cta p {
    max-width: 620px;
    color: #e9f6ff;
    font-size: 1rem
}

@media(min-width:800px) {
    .cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        min-height: 150px;
        padding-block: 1.5rem
    }

    .cta .btn {
        margin-right: 3rem;
        flex: none
    }
}

/* Form Fields */
.field {
    position: relative
}

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

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #dce8f1;
    border-radius: 8px;
    padding: .95rem 1rem .95rem 2.7rem;
    background: #fff;
    color: var(--text);
    outline: none
}

.field textarea {
    min-height: 145px;
    resize: vertical
}

.field .i {
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    width: 17px;
    color: #6e8092
}

.field:focus-within .i {
    color: var(--blue)
}
