
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   TECTUM QUALITY ROOFING
   FREE ESTIMATE - NEW DESIGN
========================================================= */

.tqr-estimate-new {
    --blue: #0D3666;
    --blue-dark: #08294F;
    --white: #ffffff;

    position: relative;
    width: 100%;
    overflow: hidden;

    padding: 95px 20px;

    font-family: 'DM Sans',"DM Sans Fallback", sans-serif;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.025) 25%,
            transparent 25%
        ),
        linear-gradient(
            315deg,
            rgba(255,255,255,.02) 25%,
            transparent 25%
        ),
        #0D3666;

    background-size: 85px 85px;
}


/* RESET */

.tqr-estimate-new *,
.tqr-estimate-new *::before,
.tqr-estimate-new *::after {
    box-sizing: border-box;
}


/* =========================================================
   DECORATIVE BACKGROUND
========================================================= */

.tqr-estimate-new::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    right: -330px;
    top: -300px;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 50%;

    box-shadow:
        0 0 0 55px rgba(255,255,255,.018),
        0 0 0 110px rgba(255,255,255,.012);

    pointer-events: none;
}


.tqr-estimate-new::after {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    left: -260px;
    bottom: -280px;

    border: 1px solid rgba(255,255,255,.07);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.tqr-estimate-container {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.tqr-estimate-layout {
    display: grid;

    grid-template-columns:
        minmax(0, .95fr)
        minmax(0, 1.05fr);

    gap: 60px;

    align-items: center;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.tqr-estimate-content {
    min-width: 0;
}


/* Label */

.tqr-estimate-label {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    padding: 8px 14px;

    border: 1px solid rgba(255,255,255,.16);

    border-radius: 30px;

    background: rgba(255,255,255,.07);

    color: rgba(255,255,255,.9);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.tqr-estimate-label::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(255,255,255,.1);
}


/* Heading */

.tqr-estimate-title {
    margin: 0 0 22px;

    color: #ffffff;

    font-size: clamp(40px, 4.5vw, 62px);

    line-height: 1.04;

    font-weight: 800;

    letter-spacing: -2.2px;
}


.tqr-estimate-title span {
    display: block;

    color: rgba(255,255,255,.62);

    font-weight: 600;
}


/* Description */

.tqr-estimate-description {
    max-width: 540px;

    margin: 0 0 29px;

    color: rgba(255,255,255,.76);

    font-size: 16px;

    line-height: 1.75;
}


/* =========================================================
   FEATURES
========================================================= */

.tqr-estimate-features {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px 24px;

    max-width: 500px;

    margin-bottom: 32px;
}


.tqr-estimate-feature {
    display: flex;

    align-items: center;

    gap: 10px;

    color: rgba(255,255,255,.88);

    font-size: 13px;

    font-weight: 600;
}


.tqr-estimate-feature-icon {
    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: rgba(255,255,255,.12);

    color: #ffffff;

    font-size: 10px;

    font-weight: 800;
}


/* =========================================================
   CTA
========================================================= */

.tqr-estimate-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    min-height: 54px;

    padding: 14px 25px;

    border-radius: 7px;

    background: #ffffff;

    color: var(--blue) !important;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 800;

    box-shadow:
        0 12px 30px rgba(0,0,0,.16);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


.tqr-estimate-button:hover {
    background: #f0f4f8;

    color: var(--blue-dark) !important;

    transform: translateY(-3px);

    box-shadow:
        0 18px 35px rgba(0,0,0,.22);
}


.tqr-estimate-button svg {
    width: 18px;
    height: 18px;

    transition: transform .25s ease;
}


.tqr-estimate-button:hover svg {
    transform: translateX(4px);
}


/* Phone */

.tqr-estimate-phone {
    display: block;

    margin-top: 14px;

    color: rgba(255,255,255,.66) !important;

    text-decoration: none !important;

    font-size: 12px;

    font-weight: 500;
}


.tqr-estimate-phone strong {
    color: #ffffff;

    font-weight: 800;
}


/* =========================================================
   RIGHT VISUAL
========================================================= */

.tqr-estimate-visual {
    position: relative;

    min-width: 0;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* Main white panel */

.tqr-estimate-card {
    position: relative;

    width: 100%;

    min-height: 455px;

    padding: 35px 35px 0;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 25px 70px rgba(0,0,0,.23);

    overflow: hidden;
}


/* =========================================================
   CARD HEADER
========================================================= */

.tqr-estimate-card-header {
    position: relative;

    z-index: 4;

    max-width: 380px;

    margin-bottom: 15px;
}


.tqr-estimate-card-label {
    margin-bottom: 7px;

    color: #718092;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.tqr-estimate-card h3 {
    margin: 0;

    color: var(--blue);

    font-size: 28px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -.7px;
}


.tqr-estimate-card-description {
    max-width: 390px;

    margin: 9px 0 0;

    color: #697989;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   IMAGE
========================================================= */

.tqr-estimate-image-wrap {
    position: absolute;

    z-index: 2;

    left: 0;
    right: 0;

    bottom: 0;

    height: 310px;

    overflow: hidden;
}


.tqr-estimate-image-wrap::before {
    content: "";

    position: absolute;

    z-index: 2;

    left: 0;
    right: 0;

    top: 0;

    height: 90px;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            rgba(255,255,255,0)
        );

    pointer-events: none;
}


.tqr-estimate-image {
    position: absolute;

    left: 50%;

    bottom: -15px;

    width: 700px;

    max-width: none;

    height: auto;

    transform: translateX(-50%);

    display: block;

    filter:
        drop-shadow(0 20px 25px rgba(13,54,102,.14));

    transition:
        transform .5s ease;
}


.tqr-estimate-visual:hover .tqr-estimate-image {
    transform:
        translateX(-50%)
        translateY(-5px)
        scale(1.02);
}


/* =========================================================
   FLOATING FREE ESTIMATE
========================================================= */

.tqr-free-card {
    position: absolute;

    z-index: 8;

    top: 25px;

    right: -20px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 13px 16px;

    border: 1px solid #e4eaf0;

    border-radius: 11px;

    background: rgba(255,255,255,.96);

    box-shadow:
        0 15px 35px rgba(0,0,0,.16);

    animation:
        tqrEstimateFloat 4s ease-in-out infinite;
}


.tqr-free-card-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 37px;
    height: 37px;

    border-radius: 9px;

    background: #EAF1F7;

    color: var(--blue);

    font-size: 16px;

    font-weight: 800;
}


.tqr-free-card strong {
    display: block;

    color: #24394e;

    font-size: 11px;

    font-weight: 800;
}


.tqr-free-card span {
    display: block;

    margin-top: 3px;

    color: #8996a3;

    font-size: 9px;
}


/* =========================================================
   BLUE MINI BADGE
========================================================= */

.tqr-estimate-mini {
    position: absolute;

    z-index: 8;

    left: -23px;

    bottom: 70px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px 16px;

    border-radius: 10px;

    background: var(--blue);

    color: #ffffff;

    box-shadow:
        0 15px 35px rgba(0,0,0,.20);

    animation:
        tqrEstimateFloat2 4.5s ease-in-out infinite;
}


.tqr-estimate-mini-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 7px;

    background: rgba(255,255,255,.13);

    font-size: 12px;
}


.tqr-estimate-mini strong {
    display: block;

    font-size: 11px;

    font-weight: 800;
}


.tqr-estimate-mini span {
    display: block;

    margin-top: 2px;

    color: rgba(255,255,255,.62);

    font-size: 8px;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes tqrEstimateFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}


@keyframes tqrEstimateFloat2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .tqr-estimate-new {
        padding: 75px 20px;
    }


    .tqr-estimate-layout {
        gap: 40px;
    }


    .tqr-estimate-title {
        font-size: 47px;
    }


    .tqr-estimate-card {
        padding-left: 28px;
        padding-right: 28px;
    }


    .tqr-estimate-image {
        width: 630px;
    }


    .tqr-free-card {
        right: -8px;
    }


    .tqr-estimate-mini {
        left: -8px;
    }
}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 800px) {

    .tqr-estimate-layout {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .tqr-estimate-content {
        max-width: 700px;

        margin: 0 auto;

        text-align: center;
    }


    .tqr-estimate-description {
        margin-left: auto;
        margin-right: auto;
    }


    .tqr-estimate-features {
        margin-left: auto;
        margin-right: auto;

        text-align: left;
    }


    .tqr-estimate-visual {
        width: 100%;

        max-width: 700px;

        margin: 0 auto;
    }


    .tqr-estimate-card {
        min-height: 470px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .tqr-estimate-new {
        padding: 55px 16px;
    }


    .tqr-estimate-layout {
        gap: 42px;
    }


    /* CONTENT */

    .tqr-estimate-label {
        font-size: 10px;

        padding: 7px 12px;
    }


    .tqr-estimate-title {
        font-size: 35px;

        letter-spacing: -1.2px;
    }


    .tqr-estimate-description {
        font-size: 14px;

        line-height: 1.7;
    }


    .tqr-estimate-features {
        grid-template-columns: 1fr;

        max-width: 270px;

        gap: 10px;

        margin-bottom: 26px;
    }


    .tqr-estimate-button {
        width: 100%;
    }


    /* VISUAL */

    .tqr-estimate-visual {
        min-height: 390px;
    }


    .tqr-estimate-card {
        min-height: 370px;

        padding: 26px 20px 0;

        border-radius: 18px;
    }


    .tqr-estimate-card h3 {
        font-size: 23px;
    }


    .tqr-estimate-card-description {
        font-size: 11px;
    }


    .tqr-estimate-image-wrap {
        height: 245px;
    }


    .tqr-estimate-image {
        width: 520px;

        bottom: -8px;
    }


    /* FLOATING CARD */

    .tqr-free-card {
        top: 13px;

        right: 10px;

        padding: 9px 11px;

        gap: 8px;
    }


    .tqr-free-card-icon {
        width: 30px;
        height: 30px;

        font-size: 13px;
    }


    .tqr-free-card strong {
        font-size: 9px;
    }


    .tqr-free-card span {
        font-size: 7px;
    }


    /* MINI BADGE */

    .tqr-estimate-mini {
        left: 10px;

        bottom: 30px;

        padding: 10px 12px;
    }


    .tqr-estimate-mini-icon {
        width: 27px;
        height: 27px;
    }


    .tqr-estimate-mini strong {
        font-size: 9px;
    }


    .tqr-estimate-mini span {
        font-size: 7px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .tqr-estimate-new {
        padding: 48px 13px;
    }


    .tqr-estimate-title {
        font-size: 30px;
    }


    .tqr-estimate-visual {
        min-height: 350px;
    }


    .tqr-estimate-card {
        min-height: 340px;

        padding: 23px 16px 0;
    }


    .tqr-estimate-card h3 {
        font-size: 21px;
    }


    .tqr-estimate-image-wrap {
        height: 220px;
    }


    .tqr-estimate-image {
        width: 470px;
    }


    .tqr-free-card {
        right: 6px;

        padding: 8px 9px;
    }


    .tqr-estimate-mini {
        left: 6px;

        bottom: 22px;
    }

}
