@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* =====================================================
   FIND A CONTRACTOR PAGE — contractors.css
   All styles scoped with "ctr-" prefix so they
   never bleed into other pages on the site.
   Place this file at: public/front/css/contractors.css
   ===================================================== */

/* -------------------------------------------------------
   1. HERO BANNER
   Teal-to-dark-teal gradient — matches reference page
-------------------------------------------------------- */
.ctr-hero {
    width: 100%;
    background: linear-gradient(135deg, #23b8bb 0%, #106b74 50%, #000000 100%);
    padding: 160px 45px 60px;
    display: flex;
    align-items: flex-start;
}

.ctr-hero__inner {
    max-width: 700px;
}

.ctr-hero__title {
    font-family: "Playfair Display", serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.ctr-hero__subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    line-height: 1.6;
    max-width: 460px;
}

/* -------------------------------------------------------
   2. MAIN SECTION WRAPPER
-------------------------------------------------------- */
.ctr-sec {
    background: #f0f0f0;
    padding: 50px 0 60px;
}

.ctr-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 30px;
}

/* -------------------------------------------------------
   3. CATEGORY BLOCK
   Each category = label bar + teal tile grid
-------------------------------------------------------- */
.ctr-category {
    margin-bottom: 32px;
}

/* ── Category label bar ── */
.ctr-category__bar {
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    padding: 10px 20px;
    margin-bottom: 14px;
    text-align: center;
}

.ctr-category__label {
    font-family: "Montserrat", sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #2b2b2b;
    letter-spacing: 0.2px;
}

/* ── Tile grid ── */
.ctr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* -------------------------------------------------------
   4. INDIVIDUAL CONTRACTOR TILE
   Teal background, white text, centered
-------------------------------------------------------- */
.ctr-tile {
    background: #78c6cf;
    border-radius: 3px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
}

/* Tall variant used for Furniture tiles that have address + link */
.ctr-tile--tall {
    min-height: 110px;
    justify-content: flex-start;
    padding-top: 20px;
    gap: 4px;
}

.ctr-tile__name {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px 0;
    line-height: 1.35;
}

.ctr-tile__phone {
    font-family: "Montserrat", sans-serif;
    font-size: 12.5px;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.ctr-tile__address {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
    line-height: 1.4;
}

.ctr-tile__link {
    font-family: "Montserrat", sans-serif;
    font-size: 11.5px;
    color: #ffffff;
    text-decoration: underline;
    word-break: break-all;
    line-height: 1.4;
}

.ctr-tile__link:hover {
    color: #9adbe2;
}

/* -------------------------------------------------------
   5. RESPONSIVE
-------------------------------------------------------- */
@media (max-width: 720px) {
    .ctr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ctr-hero {
        padding: 36px 20px 32px;
    }

    .ctr-hero__title {
        font-size: 28px;
    }

    .ctr-hero__subtitle {
        font-size: 13px;
    }

    .ctr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ctr-container {
        padding: 0 14px;
        margin-top: -5rem;
    }

    .ctr-sec {
        padding: 34px 0 40px;
    }

    .ctr-tile {
        padding: 14px 10px;
    }

    .ctr-tile__name {
        font-size: 12px;
    }

    .ctr-tile__phone {
        font-size: 11.5px;
    }
}


@media screen and (max-width: 567px) {
    section {
        padding: 110px 5px 30px !important;
    }
}