* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.6;
}

a {
    color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    text-decoration: none;
    font-size: 15px;
    color: #333;
}

.desktop-nav a:hover {
    text-decoration: underline;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: none;
    font-size: 27px;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu {
    display: none;
    border-top: 1px solid #ddd;
    padding: 10px 24px 18px;
}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 24px 70px;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    max-width: 900px;
    margin-bottom: 35px;
}

.hero-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    color: #555;
    margin: 0;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    max-width: 850px;
    margin: 0 auto 45px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    min-width: 0;

    padding: 14px 16px;

    border: 1px solid #ccc;
    border-radius: 6px;

    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #111;
}

.search-button {
    padding: 14px 24px;

    border: 0;
    border-radius: 6px;

    background: #111;
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.search-button:hover {
    opacity: 0.85;
}

.search-help {
    margin-top: 9px;
    font-size: 13px;
    color: #777;
}


/* =========================================================
   STATS
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 45px;
}

.stat {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 23px;
    background: #fafafa;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-title {
    font-size: 28px;
    margin: 0 0 20px;
    letter-spacing: -0.4px;
}


/* =========================================================
   STATES GRID
========================================================= */

.states-section {
    margin-bottom: 55px;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.state-card {
    display: block;

    padding: 21px;

    border: 1px solid #ddd;
    border-radius: 8px;

    background: #fff;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.state-card:hover {
    border-color: #999;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.state-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 3px;
}

.state-code {
    color: #777;
    font-size: 13px;
    margin-bottom: 9px;
}

.state-count {
    color: #555;
    font-size: 14px;
}


/* =========================================================
   CONTRACTOR LIST / CARDS
========================================================= */

.results-section {
    margin-bottom: 55px;
}

.results-list,
.contractor-list {
    display: grid;
    gap: 14px;
}

.result-card,
.contractor-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 21px;
    background: #fff;
}

.result-card:hover,
.contractor-card:hover {
    border-color: #999;
}

.result-name,
.contractor-name {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.result-name a,
.contractor-name a {
    text-decoration: none;
}

.result-name a:hover,
.contractor-name a:hover {
    text-decoration: underline;
}

.result-license,
.license-number {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.result-details,
.details {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;

    font-size: 14px;
    color: #555;
}

.status {
    font-weight: 600;
    color: #111;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    margin-top: 35px;

    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    border: 1px solid #ddd;
    padding: 8px 13px;
    border-radius: 5px;

    text-decoration: none;
    font-size: 14px;
}

.pagination a:hover {
    border-color: #111;
}

.pagination .current {
    background: #111;
    color: #fff;
    border-color: #111;
}


/* =========================================================
   CONTENT / SEO
========================================================= */

.content-section {
    max-width: 900px;

    margin-top: 55px;

    border-top: 1px solid #ddd;
    padding-top: 35px;
}

.content-section h2 {
    font-size: 27px;
    margin: 0 0 15px;
}

.content-section h3 {
    font-size: 21px;
    margin: 28px 0 10px;
}

.content-section p {
    color: #444;
    margin: 0 0 16px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    margin-top: 40px;
}

.cta a,
.button {
    display: inline-block;

    background: #111;
    color: #fff;

    padding: 12px 20px;

    border-radius: 6px;

    text-decoration: none;

    font-weight: 600;
}

.cta a:hover,
.button:hover {
    opacity: 0.85;
}


/* =========================================================
   PROFILE PAGE
========================================================= */

.profile-header {
    max-width: 900px;
    margin-bottom: 35px;
}

.profile-header h1 {
    font-size: 42px;
    line-height: 1.15;
    margin: 0 0 15px;
    letter-spacing: -1px;
}

.profile-intro {
    color: #555;
    font-size: 18px;
}

.profile-section {
    max-width: 900px;
    margin-bottom: 35px;
}

.profile-section h2 {
    font-size: 26px;
    margin: 0 0 16px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #eee;
}

.info-table th,
.info-table td {
    text-align: left;
    padding: 12px 10px;
    vertical-align: top;
}

.info-table th {
    width: 32%;
    font-weight: 600;
}

.info-table td {
    color: #444;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    border-top: 1px solid #ddd;
    padding: 30px 24px;

    color: #666;
    font-size: 14px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .header-inner {
        padding: 16px 20px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .mobile-menu.show {
        display: block;
    }


    .container {
        padding: 40px 20px 55px;
    }


    .hero h1,
    .profile-header h1 {
        font-size: 34px;
    }

    .hero p,
    .profile-intro {
        font-size: 17px;
    }


    .hero-center {
        text-align: left;
    }


    .search-form {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }


    .stats {
        grid-template-columns: 1fr;
    }


    .states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }


    .state-card {
        padding: 18px;
    }

    .state-name {
        font-size: 18px;
    }


    .result-card,
    .contractor-card {
        padding: 18px;
    }


    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 7px 0;
    }

}


@media (max-width: 480px) {

    .states-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .profile-header h1 {
        font-size: 31px;
    }

}