/* ═══════════════════════════════════════════════════════════════════════
   The Plumber List — Premium Trust Design
   Self-hosted Inter, no CDN. Fast. Authoritative.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-semibold.woff2') format('woff2');
}

:root {
    --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:      'SF Mono', 'Fira Code', 'Roboto Mono', monospace;

    /* Trust palette */
    --navy:           #1a365d;
    --navy-dark:      #0f2440;
    --navy-light:     #e8eef5;
    --navy-ghost:     #f3f6fa;
    --green:          #0d7c4a;
    --green-dark:     #09613a;
    --green-light:    #e6f4ec;
    --amber:          #b45309;
    --amber-light:    #fef7ed;
    --red:            #b91c1c;
    --red-light:      #fef2f2;

    /* Neutrals */
    --bg:             #f8f9fb;
    --bg-alt:         #f1f3f6;
    --surface:        #ffffff;
    --text:           #1a202c;
    --text-secondary: #4a5568;
    --text-muted:     #718096;
    --text-light:     #a0aec0;
    --border:         #e2e8f0;
    --border-light:   #edf2f7;

    /* Type scale */
    --text-display:   clamp(1.75rem, 4vw, 2.5rem);
    --text-h1:        1.5rem;
    --text-h2:        1.25rem;
    --text-body:      1rem;

    /* Spacing */
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-6:  24px;
    --space-8:  32px;
    --space-12: 48px;
    --space-16: 64px;

    /* Layout */
    --radius-sm:      6px;
    --radius:         10px;
    --radius-lg:      12px;
    --radius-xl:      16px;
    --max-width:      1120px;
    --shadow-sm:      0 1px 2px rgba(15, 36, 64, 0.05);
    --shadow:         0 2px 8px rgba(15, 36, 64, 0.07);
    --shadow-md:      0 8px 24px rgba(15, 36, 64, 0.1);
    --shadow-lg:      0 16px 40px rgba(15, 36, 64, 0.12);
}

/* ─── RESET ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--text-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
    fill: currentColor;
}
.icon-lg { width: 20px; height: 20px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

/* ═══════════════════════════════════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════════════════════════════════ */
.trust-bar {
    background: var(--navy-dark);
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    padding: 6px 16px;
    letter-spacing: 0.02em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.trust-bar strong { color: #fff; font-weight: 600; }
.trust-bar span { opacity: 0.7; }

/* ═══════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════ */
.site-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}
.logo-img {
    height: 28px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
}
.logo-text span { font-weight: 400; color: var(--text-muted); }
.main-nav { display: flex; gap: 22px; align-items: center; }
.main-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color 0.15s;
}
.main-nav a:hover { color: var(--navy); }
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 12px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════════
   HOMEPAGE
   ═══════════════════════════════════════════════════════════════════════ */

/* Hero — premium trust-focused */
.hero {
    position: relative;
    background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 55%, #234876 100%);
    color: #fff;
    padding: var(--space-12) 20px var(--space-10);
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-pattern.svg') center / cover no-repeat;
    opacity: 0.5;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: var(--text-display);
    font-weight: 600;
    margin-bottom: var(--space-3);
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.hero-lead {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-6);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}
.hero p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: var(--space-6);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.search-form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 520px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.12);
}
.search-form input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: none;
    font-family: var(--font-body);
    outline: none;
}
.search-form input::placeholder { color: var(--text-light); }
.search-form button {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: var(--green);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-body);
    white-space: nowrap;
    transition: background 0.15s;
}
.search-form button:hover { background: var(--green-dark); }

/* Trust strip below hero */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: 10px 20px;
    margin-top: var(--space-6);
    flex-wrap: wrap;
    font-size: 0.82rem;
}
.hero-trust span {
    white-space: nowrap;
    background: rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Stats bar */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-top: -1px;
}
.stats-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: var(--space-6) 0;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* Trust cards (homepage) */
.trust-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin: var(--space-8) 0;
}
.trust-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, border-color 0.15s;
}
.trust-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--navy-light);
}
.trust-card-icon {
    width: 40px;
    height: 40px;
    background: var(--green-light);
    color: var(--green);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
}
.trust-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: var(--space-2);
}
.trust-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.section-title {
    font-size: var(--text-h2);
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}
.section-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 560px;
    margin-bottom: var(--space-6);
}

/* Home grid — two columns */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 32px 0 40px;
}
.home-main h2,
.home-sidebar h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--navy-light);
}

/* State grid — multi-column compact */
.state-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px 12px;
    font-size: 0.85rem;
}
.state-grid a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 3px 0;
    display: block;
}
.state-grid a:hover { color: var(--navy); }

/* Top cities sidebar */
.city-list { list-style: none; }
.city-list li {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.city-list li:last-child { border-bottom: none; }
.city-list a {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}
.city-list a:hover { color: var(--navy); }
.city-list .count {
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 500;
}

/* How it works band */
.how-it-works {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-sm);
}
.how-it-works h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.how-it-works .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.how-it-works .step {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.how-it-works .step-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--green-light);
    color: var(--green);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.how-it-works .step strong { color: var(--text); display: block; }

/* ═══════════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════════ */
.breadcrumbs {
    padding: 14px 0 8px;
    font-size: 0.8rem;
    color: var(--text-light);
}
.breadcrumbs a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumbs a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════
   STATE PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.state-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

/* State trust panel */
.state-trust-panel {
    background: var(--navy-ghost);
    border: 1px solid var(--navy-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin: 16px 0 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
}
.state-trust-panel strong { color: var(--navy); }
.state-trust-panel a { font-weight: 600; font-size: 0.82rem; }

/* City table */
.city-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 24px;
}
.city-table-header {
    display: grid;
    grid-template-columns: 1fr 80px 100px;
    background: var(--navy-ghost);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.city-table-row {
    display: grid;
    grid-template-columns: 1fr 80px 100px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    align-items: center;
    transition: background 0.1s;
}
.city-table-row:last-child { border-bottom: none; }
.city-table-row:hover { background: var(--navy-ghost); }
.city-table-row a { text-decoration: none; color: var(--text); font-weight: 500; }
.city-table-row a:hover { color: var(--navy); }
.city-table-row .city-count { color: var(--text-muted); font-size: 0.85rem; }
.city-table-row .city-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════
   CITY PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.city-header { margin-bottom: var(--space-4); }
.city-header h1 {
    font-size: var(--text-h1);
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.city-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    margin-bottom: var(--space-4);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.city-stat-strip strong { color: var(--navy); }
.city-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Decision block — editorial panel */
.decision-block {
    background: linear-gradient(135deg, var(--navy-ghost) 0%, var(--surface) 100%);
    border: 1px solid var(--navy-light);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-8);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
}
.decision-block h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 8px;
}
.decision-block p,
.decision-block ul {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.decision-block ul { padding-left: 18px; margin: 6px 0 0; }
.decision-block li { margin-bottom: 3px; }

/* Fact table */
.fact-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.fact-table-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--border-light);
}
.fact-table-row:last-child { border-bottom: none; }
.fact-table-label {
    background: var(--navy-ghost);
    padding: 8px 14px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.fact-table-value {
    padding: 8px 14px;
    color: var(--text);
}

/* Emergency module */
.emergency-module {
    background: var(--amber-light);
    border: 1px solid #fcd9b0;
    border-left: 4px solid var(--amber);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 20px;
}
.emergency-module h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 6px;
}
.emergency-module ul {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding-left: 18px;
    line-height: 1.55;
}
.emergency-module li { margin-bottom: 2px; }

/* Service filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.filter-chip {
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.12s;
    font-family: var(--font-body);
}
.filter-chip:hover,
.filter-chip.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* Plumber comparison rows */
.plumber-listings {
    margin-bottom: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.plumber-listings-header {
    display: grid;
    grid-template-columns: auto 1fr 140px;
    padding: 8px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.plumber-card {
    display: grid;
    grid-template-columns: auto 1fr 140px;
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    gap: var(--space-4);
    transition: background 0.12s;
    font-size: 0.9rem;
}
.plumber-card:last-child { border-bottom: none; }
.plumber-card:hover { background: var(--navy-ghost); }
.plumber-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--navy-light);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}
.plumber-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.plumber-card-body h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.plumber-card-body h2 a {
    text-decoration: none;
    color: var(--navy);
}
.plumber-card-body h2 a:hover { text-decoration: underline; }
.plumber-address {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.plumber-trust {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.plumber-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}
.plumber-card-actions .btn { text-align: center; }

/* Listing microcopy */
.listing-microcopy {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 4px;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════════
   PLUMBER PROFILE
   ═══════════════════════════════════════════════════════════════════════ */
.plumber-profile { margin: 12px 0 40px; }

/* Profile summary strip */
.profile-summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-4) 0 0;
    margin-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.profile-summary-strip .ps-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}
.trust-card-icon .icon { width: 22px; height: 22px; }
.profile-summary-strip .ps-item strong { color: var(--text); }

.profile-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}
.profile-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: 0;
}
.profile-header h1 {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

/* Stale banner */
.stale-banner {
    background: var(--amber-light);
    border: 1px solid #fcd9b0;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 0.84rem;
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stale-banner strong { font-weight: 700; }

/* Profile grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
.profile-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
}
.profile-section h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border-light);
}

/* Action panel (right sidebar) */
.action-panel {
    position: sticky;
    top: 72px;
}
.action-panel .btn { display: block; width: 100%; margin-bottom: 8px; text-align: center; }
.action-panel .action-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 2px;
}

/* Suggest / Claim links */
.suggest-claim {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.8rem;
}
.suggest-claim a { color: var(--text-muted); text-decoration: underline; }
.suggest-claim a:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════════════════════════════════════ */

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.5;
}
.badge-claimed    { background: var(--navy-light); color: var(--navy); }
.badge-fresh      { background: var(--green-light); color: var(--green); }
.badge-stale      { background: var(--amber-light); color: var(--amber); }
.badge-verified   { background: var(--green-light); color: var(--green); }
.badge-tier1      { background: var(--navy-light); color: var(--navy); }
.badge-active     { background: var(--green-light); color: var(--green); }
.badge-pending    { background: var(--amber-light); color: var(--amber); }
.badge-expired    { background: var(--red-light); color: var(--red); }
.badge-unclaimed  { background: var(--bg-alt); color: var(--text-muted); }

/* Status chips (admin + city page) */
.status-chip {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.status-live       { background: var(--green-light); color: var(--green); }
.status-noindex    { background: var(--amber-light); color: var(--amber); }
.status-stale      { background: var(--red-light); color: var(--red); }
.status-queued     { background: var(--bg-alt); color: var(--text-muted); }
.status-published  { background: var(--green-light); color: var(--green); }
.status-draft      { background: var(--bg-alt); color: var(--text-muted); }
.status-needs-revision { background: var(--amber-light); color: var(--amber); }
.status-failed     { background: var(--red-light); color: var(--red); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.12s;
    line-height: 1.4;
    text-align: center;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-alt); }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.btn-call {
    background: var(--green);
    color: #fff;
    font-size: 0.9rem;
    padding: 9px 18px;
    font-weight: 700;
}
.btn-call:hover { background: var(--green-dark); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: #92400e; }

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 24px 0 40px;
}
.pagination a,
.pagination .page-current {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.pagination a {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-current { background: var(--navy); color: #fff; border: 1px solid var(--navy); }

/* Nearby cities */
.nearby-cities { margin-bottom: 28px; }
.nearby-cities h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 8px;
}
.inline-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.inline-list a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.inline-list a:hover { text-decoration: underline; }

/* FAQ */
.faq-section {
    margin: 28px 0 40px;
    border-top: 2px solid var(--navy-light);
    padding-top: 24px;
}
.faq-section h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 12px;
}
.faq-section details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 6px;
}
.faq-section summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--navy);
    font-size: 0.9rem;
}
.faq-section details[open] summary { margin-bottom: 6px; }
.faq-section details p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* Service tags */
.service-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.service-tag {
    background: var(--navy-light);
    color: var(--navy);
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Freshness */
.freshness { font-weight: 600; font-size: 0.85rem; }
.freshness-fresh   { color: var(--green); }
.freshness-aging   { color: var(--amber); }
.freshness-stale   { color: var(--red); }
.freshness-unknown { color: var(--text-muted); }

/* Source note */
.source-note { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* Profile header with logo */
.profile-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}
.profile-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.profile-title { flex: 1; }
.legal-name { font-size: 0.82rem; color: var(--text-muted); margin-top: 0; }

/* Quick facts strip enhancements */
.ps-open-now { color: var(--green); font-weight: 600; }
.ps-emergency { color: var(--amber); font-weight: 600; }
.ps-financing { color: var(--navy); font-weight: 600; }

/* Hours table */
.hours-table { font-size: 0.88rem; }
.hours-table tr:nth-child(even) { background: var(--navy-ghost); }
.hours-table .badge { font-size: 0.65rem; }

/* Service area tags */
.service-area-tag { background: var(--green-light); color: var(--green); }
.service-tag a { color: inherit; text-decoration: none; }
.service-tag a:hover { text-decoration: underline; }

/* Nearby alternatives */
.nearby-list { font-size: 0.88rem; }
.nearby-item:last-child { border-bottom: none !important; }
.nearby-item a { color: var(--navy); text-decoration: none; font-weight: 600; }
.nearby-item a:hover { text-decoration: underline; }

/* Directions link */
.directions-link { font-size: 0.82rem; font-weight: 600; display: inline-block; margin-top: 3px; }

/* Phone link */
.phone-link { font-size: 1rem; font-weight: 600; color: var(--text); text-decoration: none; }
.phone-link:hover { color: var(--navy); text-decoration: underline; }

/* Verify help text */
.verify-help { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Reviews (de-emphasized) */
.review-list { margin-bottom: 10px; }
.review {
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.85rem;
}
.review:last-child { border-bottom: none; }
.review-rating { color: var(--amber); font-size: 0.82rem; }
.review-text { margin: 3px 0; color: var(--text-secondary); }
.review-author { font-size: 0.78rem; color: var(--text-muted); }
.review-empty { color: var(--text-muted); font-size: 0.85rem; }

.review-form-toggle { margin-top: 12px; }
.review-form label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.85rem; }
.review-form input,
.review-form textarea,
.review-form select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 3px;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

/* Claim */
.claim-cta { text-align: center; padding: 16px; }
.claim-cta h2 { margin-bottom: 6px; }
.claim-cta p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.claim-form label { display: block; margin-bottom: 10px; font-weight: 500; font-size: 0.85rem; }
.claim-form input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 3px;
    font-family: var(--font-body);
}

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.85rem; }
.alert-error   { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #bbf7d0; }

/* Empty state */
.empty-state { color: var(--text-muted); font-style: italic; padding: 20px 0; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════════
   STICKY MOBILE BAR
   ═══════════════════════════════════════════════════════════════════════ */
.sticky-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    padding: 8px 12px;
    z-index: 200;
}
.sticky-mobile-bar-inner {
    display: flex;
    gap: 8px;
}
.sticky-mobile-bar .btn { flex: 1; }

/* ═══════════════════════════════════════════════════════════════════════
   SITEMAP
   ═══════════════════════════════════════════════════════════════════════ */
.sitemap-section { margin-bottom: 20px; }
.sitemap-section h2 { font-size: 1rem; font-weight: 700; }
.sitemap-section h2 a { text-decoration: none; color: var(--navy); }
.sitemap-city-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 14px;
    padding-left: 0;
    margin-top: 6px;
}
.sitemap-city-list a { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; }
.sitemap-city-list a:hover { text-decoration: underline; }

/* Search results */
.search-results { list-style: none; margin: 20px 0; }
.search-results li { padding: 7px 0; border-bottom: 1px solid var(--border-light); }
.search-results a { text-decoration: none; color: var(--text); }
.search-results a:hover { color: var(--navy); }

/* Service links */
.service-links { margin: 20px 0; }
.service-links h2 { font-size: 0.95rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--navy-dark);
    color: #94a3b8;
    padding: var(--space-12) 0 var(--space-8);
    margin-top: var(--space-16);
    font-size: 0.88rem;
    text-align: left;
}
.site-footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-8) var(--space-10);
    align-items: start;
    margin-bottom: var(--space-8);
}
.footer-brand .footer-logo { display: inline-block; margin-bottom: 2px; }
.footer-brand .logo-img {
    height: 28px;
    width: auto;
    display: block;
}
.footer-brand p {
    margin-top: var(--space-3);
    line-height: 1.6;
    max-width: 340px;
    color: #94a3b8;
}
.footer-col h3 {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-3);
}
.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer .footer-links li {
    margin: 0 0 10px;
    padding: 0;
}
.site-footer .footer-links li:last-child { margin-bottom: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--space-6);
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
}
.footer-nav {
    margin-top: 8px;
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-nav a { color: #94a3b8; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: #fff; }

/* Static / trust pages */
.page-content {
    padding: var(--space-8) 0 var(--space-12);
    max-width: 720px;
}
.page-content h1 {
    font-size: var(--text-h1);
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}
.page-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin: var(--space-8) 0 var(--space-3);
}
.page-content p,
.page-content li {
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-3);
}
.page-content ul { padding-left: 1.25rem; margin-bottom: var(--space-4); }
.page-content a { font-weight: 500; }
.page-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}
.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin: var(--space-4) 0;
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════════════════════════ */
.admin-layout { display: grid; grid-template-columns: 200px 1fr; min-height: calc(100vh - 120px); }
.admin-sidebar {
    background: var(--navy-dark);
    color: #94a3b8;
    padding: 16px 0;
    font-size: 0.85rem;
}
.admin-sidebar a {
    display: block;
    padding: 8px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.1s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--navy);
    color: #fff;
}
.admin-main { padding: 20px 24px; background: var(--bg); }
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.admin-metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
}
.admin-metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
}
.admin-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}
.admin-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    font-size: 0.85rem;
}
.admin-table th {
    background: var(--navy-ghost);
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 7px 12px;
    border-bottom: 1px solid var(--border-light);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--navy-ghost); }
.admin-actions { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero { padding: var(--space-8) 16px; }
    .hero-lead { font-size: 0.95rem; }

    .stats-bar-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
    .stat-value { font-size: 1.35rem; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6) var(--space-8);
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand p { max-width: none; }
    .trust-cards { grid-template-columns: 1fr; }

    .home-grid { grid-template-columns: 1fr; gap: 20px; }
    .state-grid { grid-template-columns: repeat(2, 1fr); }

    .profile-grid { grid-template-columns: 1fr; }
    .action-panel { position: static; }

    .city-table-header,
    .city-table-row { grid-template-columns: 1fr 60px; }
    .city-table-header :nth-child(3),
    .city-table-row :nth-child(3) { display: none; }

    .plumber-listings-header,
    .plumber-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .plumber-card-avatar { display: none; }
    .plumber-listings-header { display: none; }
    .plumber-card-actions { flex-direction: row; }

    .fact-table-row { grid-template-columns: 110px 1fr; }

    .how-it-works .steps { grid-template-columns: 1fr; }

    .mobile-menu-toggle { display: block; }
    .main-nav { display: none; flex-direction: column; width: 100%; margin-top: 8px; gap: 6px; }
    .main-nav.active { display: flex; }

    .sticky-mobile-bar { display: block; }
    body.has-sticky-bar { padding-bottom: 70px; }

    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 12px;
    }
    .admin-sidebar a { padding: 6px 12px; font-size: 0.8rem; }
}

/* Verification Summary Table */
.verification-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}
.vs-ok { color: var(--green); }
.vs-warn { color: var(--amber); }
.vs-miss { color: var(--text-muted); }
.verification-summary h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 10px;
}
.vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.vs-table th {
    text-align: left;
    padding: 6px 8px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.vs-table td {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.vs-table tr:last-child td {
    border-bottom: none;
}
.vs-table td:first-child {
    font-weight: 600;
}
