
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

.tqr-services-section {
    --tqr-blue: #0D3666;
    --tqr-blue-dark: #08294F;
    --tqr-white: #ffffff;
    --tqr-text: #34495e;

    position: relative;
    overflow: hidden;

    padding: 90px 20px;

    font-family: 'DM Sans',"DM Sans Fallback", sans-serif;

    background-color: var(--tqr-blue);

    /* Subtle geometric pattern */
    background-image:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.035) 25%,
            transparent 25%
        ),
        linear-gradient(
            315deg,
            rgba(255,255,255,0.025) 25%,
            transparent 25%
        ),
        linear-gradient(
            45deg,
            rgba(255,255,255,0.025) 25%,
            transparent 25%
        ),
        linear-gradient(
            315deg,
            rgba(255,255,255,0.02) 25%,
            transparent 25%
        );

    background-size:
        90px 90px,
        90px 90px,
        90px 90px,
        90px 90px;

    background-position:
        0 0,
        0 0,
        45px 45px,
        45px 45px;
}


/* Decorative pattern circles */
.tqr-services-section::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    top: -250px;
    right: -180px;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;

    box-shadow:
        0 0 0 50px rgba(255,255,255,0.018),
        0 0 0 100px rgba(255,255,255,0.012);

    pointer-events: none;
}

.tqr-services-section::after {
    content: "";
    position: absolute;

    width: 380px;
    height: 380px;

    bottom: -230px;
    left: -180px;

    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 50%;

    pointer-events: none;
}


.tqr-services-section *,
.tqr-services-section *::before,
.tqr-services-section *::after {
    box-sizing: border-box;
}


.tqr-services-container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.tqr-services-header {
    max-width: 780px;

    margin: 0 auto 52px;

    text-align: center;
}


.tqr-services-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 15px;

    color: rgba(255,255,255,0.85);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.8px;
    text-transform: uppercase;
}


.tqr-services-eyebrow::before,
.tqr-services-eyebrow::after {
    content: "";

    width: 28px;
    height: 2px;

    background: rgba(255,255,255,0.75);
}


.tqr-services-header h2 {
    margin: 0 0 17px;

    color: #ffffff;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -1.5px;
}


.tqr-services-header p {
    max-width: 720px;

    margin: 0 auto;

    color: rgba(255,255,255,0.78);

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================
   SERVICE GRID
========================================= */

.tqr-services-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 24px;

    align-items: stretch;
}


/* =========================================
   SERVICE CARD
========================================= */

.tqr-service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.15);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.tqr-service-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 22px 50px rgba(0,0,0,0.22);
}


/* =========================================
   IMAGE
========================================= */

.tqr-service-image {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #dce5ed;
}


.tqr-service-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.tqr-service-card:hover .tqr-service-image img {
    transform: scale(1.05);
}


/* Image overlay */

.tqr-service-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(13,54,102,0.05),
            rgba(13,54,102,0.35)
        );

    pointer-events: none;
}


/* =========================================
   NUMBER
========================================= */

.tqr-service-number {
    position: absolute;

    z-index: 3;

    top: 18px;
    left: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 50%;

    background: #ffffff;

    color: var(--tqr-blue);

    font-size: 13px;
    font-weight: 800;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.18);
}


/* =========================================
   CARD CONTENT
========================================= */

.tqr-service-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 27px 27px 29px;
}


.tqr-service-content h3 {
    margin: 0 0 11px;

    color: var(--tqr-blue);

    font-size: 25px;
    line-height: 1.25;

    font-weight: 800;

    letter-spacing: -0.4px;
}


.tqr-service-content p {
    margin: 0 0 20px;

    color: var(--tqr-text);

    font-size: 14.5px;
    line-height: 1.65;
}


/* =========================================
   SERVICE LIST
========================================= */

.tqr-service-list {
    list-style: none;

    margin: 0 0 23px;
    padding: 0;
}


.tqr-service-list li {
    position: relative;

    margin: 0 0 10px;

    padding-left: 25px;

    color: #263b50;

    font-size: 14px;
    line-height: 1.45;

    font-weight: 600;
}


.tqr-service-list li:last-child {
    margin-bottom: 0;
}


.tqr-service-list li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: var(--tqr-blue);

    color: #ffffff;

    font-size: 10px;
    font-weight: 800;
}


/* =========================================
   BUTTON
========================================= */

.tqr-service-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: fit-content;

    margin-top: auto;

    padding: 12px 18px;

    border: 1px solid var(--tqr-blue);

    border-radius: 6px;

    background: var(--tqr-blue);

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 700;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.tqr-service-btn span {
    font-size: 17px;
    line-height: 1;

    transition: transform 0.25s ease;
}


.tqr-service-btn:hover {
    background: var(--tqr-blue-dark);

    border-color: var(--tqr-blue-dark);

    color: #ffffff !important;
}


.tqr-service-btn:hover span {
    transform: translateX(4px);
}


/* =========================================
   BOTTOM CTA
========================================= */

.tqr-services-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-top: 35px;

    padding: 28px 32px;

    border: 1px solid rgba(255,255,255,0.13);

    border-radius: 14px;

    background: rgba(255,255,255,0.07);

    backdrop-filter: blur(5px);
}


.tqr-services-bottom h3 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 21px;
    font-weight: 800;
}


.tqr-services-bottom p {
    margin: 0;

    color: rgba(255,255,255,0.72);

    font-size: 14px;
    line-height: 1.6;
}


.tqr-bottom-btn {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 22px;

    border-radius: 6px;

    background: #ffffff;

    color: var(--tqr-blue) !important;

    text-decoration: none !important;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.tqr-bottom-btn:hover {
    background: #edf3f8;

    transform: translateY(-2px);

    color: var(--tqr-blue-dark) !important;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .tqr-services-section {
        padding: 70px 20px;
    }

    .tqr-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tqr-service-card:last-child {
        grid-column: 1 / -1;

        width: calc(50% - 12px);

        margin: 0 auto;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .tqr-services-section {
        padding: 55px 16px;
    }


    .tqr-services-header {
        margin-bottom: 34px;
    }


    .tqr-services-eyebrow {
        font-size: 11px;

        letter-spacing: 1.4px;
    }


    .tqr-services-eyebrow::before,
    .tqr-services-eyebrow::after {
        width: 20px;
    }


    .tqr-services-header h2 {
        font-size: 32px;

        letter-spacing: -0.8px;
    }


    .tqr-services-header p {
        font-size: 14.5px;

        line-height: 1.65;
    }


    .tqr-services-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .tqr-service-card:last-child {
        grid-column: auto;

        width: 100%;

        margin: 0;
    }


    .tqr-service-image {
        aspect-ratio: 16 / 9;
    }


    .tqr-service-content {
        padding: 24px 22px 26px;
    }


    .tqr-service-content h3 {
        font-size: 23px;
    }


    .tqr-service-content p {
        font-size: 14px;
    }


    .tqr-services-bottom {
        flex-direction: column;

        align-items: flex-start;

        padding: 24px 21px;

        gap: 18px;
    }


    .tqr-bottom-btn {
        width: 100%;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .tqr-services-section {
        padding: 48px 13px;
    }


    .tqr-services-header h2 {
        font-size: 29px;
    }


    .tqr-service-number {
        top: 14px;
        left: 14px;

        width: 40px;
        height: 40px;

        font-size: 12px;
    }


    .tqr-service-content {
        padding: 22px 19px 24px;
    }


    .tqr-service-content h3 {
        font-size: 21px;
    }


    .tqr-service-list li {
        font-size: 13.5px;
    }

}
