:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;
    --slate-950: #0f172a;
    --slate-900: #1e293b;
    --slate-800: #334155;
    --slate-700: #475569;
    --slate-600: #64748b;
    --slate-500: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #fff;
    --green: #059669;
    --amber: #f59e0b;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .07);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, .09);
    --radius: 14px;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    transition: .2s ease;
}

.btn-primary {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 5px 12px rgba(37, 99, 235, .2);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-outline {
    color: var(--blue);
    border: 1px solid #bfdbfe;
    background: var(--white);
}

.btn-outline:hover {
    background: var(--blue-light);
}

.btn-white {
    color: var(--blue);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-block {
    width: 100%;
}

.verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #047857;
    background: #ecfdf5;
    font-size: 11px;
    font-weight: 700;
}

.heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}



/* Detail */
.detail-page {
    padding: 20px 0 58px;
    background: var(--slate-50);
}

.breadcrumb {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 12px;
    white-space: nowrap;
}

.breadcrumb span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 210px;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--slate-200);
    border-radius: 13px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.company-logo {
    display: grid;
    width: 140px;
    height: 140px;
    place-items: center;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    color: #15803d;
    background: #f0fdf4;
    text-align: center;
}

.company-logo strong {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.company-logo small {
    font-size: 9px;
}

.profile-main h1 {
    margin: 0 0 8px;
    color: var(--slate-950);
    font-size: 23px;
    line-height: 1.35;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 9px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 5px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 12px;
    font-weight: 700;
    width: auto;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 13px 0;
}

.profile-fact strong {
    display: block;
    color: var(--slate-900);
    font-size: 13px;
}

.profile-fact small {
    color: var(--slate-600);
    font-size: 11px;
}

.profile-actions {
    display: grid;
    align-content: start;
    gap: 9px;
}

.tabs {
    display: flex;
    gap: 24px;
    margin: 20px 0 24px;
    overflow-x: auto;
    border-bottom: 1px solid var(--slate-200);
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs a {
    flex: 0 0 auto;
    padding: 0 6px 12px;
    border-bottom: 3px solid transparent;
    color: var(--slate-700);
    font-weight: 700;
}

.tabs a.active {
    color: var(--blue);
    border-color: var(--blue);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 24px;
}

.content-stack {
    display: grid;
    gap: 32px;
    min-width: 0;
}

.detail-section {
    min-width: 0;
}

.detail-section+.detail-section {
    padding-top: 28px;
    border-top: 1px solid var(--slate-200);
}

.detail-section h2 {
    margin: 0 0 15px;
    color: var(--slate-950);
    font-size: 19px;
    width: auto;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.intro-grid p {
    margin-top: 0;
    color: var(--slate-700);
}

.video {
    position: relative;
    overflow: hidden;
    height: 230px;
    border-radius: 12px;
}

.video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.project {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--white);
}

.project img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.project-body {
    padding: 11px;
}

.project h3 {
    margin: 0 0 4px;
    color: var(--slate-950);
    font-size: 12px;
    line-height: 1.4;
}

.project small {
    color: var(--slate-600);
    font-size: 10px;
}

.detail-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.detail-service {
    display: flex;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--white);
}

.detail-service h3 {
    margin: 0 0 3px;
    color: var(--slate-950);
    font-size: 14px;
}

.detail-service p {
    margin: 0;
    color: var(--slate-600);
    font-size: 12px;
}

.review-summary {
    padding: 18px;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    background: var(--white);
    text-align: center;
}

.review-summary strong {
    display: block;
    color: var(--slate-950);
    font-size: 42px;
    line-height: 1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
}

.review+.review {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--slate-100);
}

.review h4 {
    margin: 0;
    color: var(--slate-950);
}

.review p {
    margin: 7px 0 0;
    color: var(--slate-700);
    font-size: 13px;
}

.inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: var(--blue-light);
}

.inline-cta h3 {
    margin: 0 0 5px;
    color: var(--slate-950);
    font-size: 18px;
    line-height: 1.35;
}

.inline-cta p {
    margin: 0;
    color: var(--slate-700);
    font-size: 12px;
}

.sidebar-stack {
    display: grid;
    align-content: start;
    gap: 16px;
}

.info-card {
    padding: 18px;
    border: 1px solid var(--slate-200);
    border-radius: 11px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    margin: 0 0 14px;
    color: var(--slate-950);
    font-size: 15px;
}

.info-row {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--slate-100);
    font-size: 12px;
}

.info-row:first-of-type {
    border-top: 0;
}

.info-row span:first-child {
    color: var(--slate-600);
}

.info-row span:last-child {
    overflow-wrap: anywhere;
    color: var(--slate-900);
    font-weight: 700;
}

.commitments {
    display: grid;
    gap: 12px;
}

.commitment {
    display: flex;
    gap: 8px;
}

.commitment strong {
    display: block;
    color: var(--slate-950);
    font-size: 13px;
}

.commitment small {
    color: var(--slate-600);
}

@media (max-width: 1120px) {
    .main-nav {
        gap: 18px;
    }

    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {

    .main-nav,
    .header-register {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-about,
    .footer-newsletter {
        grid-column: 1 / -1;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contractor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-grid .search-keyword,
    .search-grid .search-submit {
        grid-column: 1 / -1;
    }

    .listing-hero-grid {
        grid-template-columns: 1fr;
    }

    .listing-layout {
        grid-template-columns: 1fr;
    }

    .filter-toggle {
        display: inline-flex;
    }

    .filter-card {
        display: none;
    }

    .filter-card.open {
        display: block;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 28px, 720px);
    }

    .header-inner {
        height: 64px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-tagline {
        display: none;
    }

    .btn {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .header-login {
        padding-inline: 12px;
    }

    .section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 23px;
    }

    .hero {
        padding: 38px 0 54px;
    }

    .hero-overlay {
        background: rgba(255, 255, 255, .76);
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: -1.3px;
    }

    .hero-copy {
        margin: 14px 0 24px;
        font-size: 14px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-grid .search-keyword,
    .search-grid .search-submit {
        grid-column: auto;
    }

    .popular-search {
        margin-top: 18px;
    }

    .stats {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 9px;
    }

    .stat {
        justify-content: flex-start;
        gap: 9px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
    }

    .stat strong {
        font-size: 19px;
    }

    .stat small {
        font-size: 11px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 0;
        padding: 20px;
    }

    .contractor-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 14px;
    }

    .story-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .story {
        grid-template-columns: 1fr;
    }

    .story img {
        height: 165px;
    }

    .cta {
        padding: 38px 0;
    }

    .cta h2 {
        font-size: 23px;
    }

    .listing-hero {
        padding: 27px 0;
    }

    .page-title {
        font-size: 24px;
    }

    .listing-search {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    .listing-body {
        padding-top: 27px;
    }

    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 12px;
    }

    .table-head {
        display: none;
    }

    .table-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 9px;
    }

    .table-row>* {
        grid-column: 1 / -1;
    }

    .profile-card {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 16px;
    }

    .company-logo {
        width: 120px;
        height: 120px;
    }

    .profile-main h1 {
        font-size: 20px;
    }

    .profile-facts {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-actions {
        grid-template-columns: 1fr;
    }

    .tabs {
        gap: 18px;
    }

    .intro-grid,
    .detail-service-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .inline-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .video {
        height: 205px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project img {
        height: 105px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.service-tag {
    padding: 4px 7px;
    border-radius: 5px;
    color: var(--blue);
    background: var(--blue-light);
    font-size: 11px;
    font-weight: 700;
}