/* FindMySepticGuy.com */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue: #1a73e8;
    --blue-dark: #1557b0;
    --blue-light: #e8f0fe;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f4;
    --gray-200: #e8eaed;
    --gray-600: #5f6368;
    --gray-800: #3c4043;
    --gray-900: #202124;
    --white: #ffffff;
    --max-width: 1100px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 0;
}
.site-header a { color: var(--gray-900); font-size: 1.1rem; font-weight: 600; }

/* Hero */
.hero {
    padding: 48px 20px 40px;
    background: var(--gray-50);
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.hero-map {
    flex: 0 0 380px;
}
.hero-map svg {
    width: 100%;
    height: auto;
}
.hero-map svg path {
    transition: opacity 0.2s;
}
.hero-map svg a:hover path {
    opacity: 0.8;
}
.state-label {
    fill: var(--white);
    font-size: 11px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    pointer-events: none;
}
.hero-content {
    flex: 1;
    text-align: left;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 8px; color: var(--gray-900); }
.hero .tagline { font-size: 1.15rem; color: var(--gray-600); margin-bottom: 32px; }

/* Search */
.search-box {
    display: flex;
    max-width: 440px;
    gap: 8px;
}
.search-box input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1.1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--blue); }
.search-box button {
    padding: 14px 28px;
    font-size: 1.05rem;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.search-box button:hover { background: var(--blue-dark); }

/* State links on homepage */
.state-links { margin-top: 24px; }
.state-links p { color: var(--gray-600); font-size: 0.95rem; margin-bottom: 10px; }
.state-link {
    display: inline-block;
    padding: 8px 20px;
    margin: 0 6px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s;
}
.state-link:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    text-decoration: none;
}

/* Toggle */
.toggle-bar {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 24px auto 16px;
    background: var(--gray-100);
    border-radius: 8px;
    padding: 4px;
    max-width: 300px;
}
.toggle-bar button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.2s;
}
.toggle-bar button.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Results */
.results { padding: 24px 0 48px; }
.results-header { margin-bottom: 16px; }
.results-header h2 { font-size: 1.3rem; color: var(--gray-900); }
.results-header .count { color: var(--gray-600); font-size: 0.95rem; }
.county-link { display: inline-block; margin-top: 16px; font-weight: 500; }
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
    font-size: 1.05rem;
}

/* Featured */
.featured-section {
    background: var(--blue-light);
    border-radius: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
}
.featured-section .contractor-table { margin-bottom: 0; }
tr.featured-row td { background: var(--blue-light); }
.featured-label {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--gray-600);
    padding: 4px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.featured-divider {
    list-style: none;
    text-align: right;
    padding: 2px 0;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 4px;
}

/* Reveal phone button */
.reveal-phone {
    padding: 6px 16px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}
.reveal-phone:hover { background: var(--blue-dark); }

/* Contractor cards */
.contractor-list { list-style: none; }
.contractor-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.contractor-card > div { flex: 0 1 auto; }
.contractor-card:last-child { border-bottom: none; }
.contractor-name { font-weight: 500; }
.contractor-phone {
    color: var(--blue);
    font-weight: 500;
    white-space: nowrap;
}
.contractor-specialties {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 2px;
}
.search-rating {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 2px;
}

/* County page */
.county-page { padding: 40px 0 60px; }
.county-page h1 { font-size: 2rem; margin-bottom: 12px; }
.county-intro { color: var(--gray-600); margin-bottom: 32px; font-size: 1.05rem; line-height: 1.7; }

.county-page h2 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-light);
}

/* Tables */
.contractor-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    table-layout: fixed;
}
.contractor-table th:first-child { width: 30%; }  /* Company */
.contractor-table th:nth-child(2) { width: 12%; } /* Phone */
.contractor-table .col-hours { width: 22%; }       /* Hours */
.contractor-table .col-rating { width: 20%; }      /* Rating */
.contractor-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--gray-50);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}
.contractor-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray-100);
}
.contractor-table tr:hover { background: var(--gray-50); }
.contractor-table td details small { white-space: normal; font-size: 0.8rem; line-height: 1.5; }

/* Nearby counties */
.nearby-counties { margin: 40px 0; }
.nearby-counties h2 { font-size: 1.1rem; margin-bottom: 12px; }
.nearby-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.nearby-list a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.nearby-list a:hover {
    background: var(--blue-light);
    border-color: var(--blue);
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 40px 0 24px;
}
.footer-counties h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gray-800);
}
.footer-counties h3 a { color: var(--gray-800); }
.footer-counties h3 a:hover { color: var(--blue); }
.footer-county-list {
    column-count: 4;
    column-gap: 20px;
    list-style: none;
    margin-bottom: 32px;
}
.footer-county-list li { padding: 2px 0; }
.footer-county-list a { color: var(--gray-600); font-size: 0.85rem; }
.footer-county-list a:hover { color: var(--blue); }
.disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.cta-back {
    display: inline-block;
    margin: 24px 0;
    padding: 10px 24px;
    background: var(--blue);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
}
.cta-back:hover { background: var(--blue-dark); text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        gap: 24px;
    }
    .hero-map {
        flex: none;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }
    .hero-content {
        text-align: center;
    }
    .search-box {
        margin: 0 auto;
    }
}
@media (max-width: 640px) {
    .hero { padding: 32px 16px 28px; }
    .hero h1 { font-size: 1.8rem; }
    .search-box { flex-direction: column; }
    .search-box button { width: 100%; }
    .footer-county-list { column-count: 2; }
    .contractor-card { flex-direction: column; align-items: flex-start; gap: 4px; }
    .contractor-table { font-size: 0.9rem; }
    .contractor-table th, .contractor-table td { padding: 8px 6px; }
    .col-hours, .col-rating { display: none; }
}
