* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background: #f7f7f5;
    color: #222;
}

.site-header {
    background: #1f3d2b;
    color: #fff;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.site-header h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.logo-link {
    color: #fff;
    text-decoration: none;
}

.tagline {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.search-page,
.results-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.zip-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 360px;
    margin: 2rem auto 0;
}

.zip-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.zip-form input {
    padding: 0.6rem 0.75rem;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.zip-form button {
    padding: 0.65rem;
    font-size: 1rem;
    background: #1f3d2b;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.zip-form button:hover {
    background: #16291d;
}

.naics-group {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.naics-header {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #1f3d2b;
    padding-bottom: 0.4rem;
    color: #1f3d2b;
}

.naics-header .count {
    font-weight: normal;
    color: #777;
    font-size: 0.9rem;
}

.business-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.business-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #eee;
}

.business-item:last-child {
    border-bottom: none;
}

.business-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.business-name {
    font-weight: 600;
}

.business-address {
    color: #555;
    font-size: 0.9rem;
}

.business-since {
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
}

.business-links {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-self: center;
}

.business-links a {
    font-size: 0.85rem;
    color: #1f3d2b;
    text-decoration: none;
    border: 1px solid #1f3d2b;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    white-space: nowrap;
}

.business-links a:hover {
    background: #1f3d2b;
    color: #fff;
}

.no-results {
    text-align: center;
    padding: 2rem 0;
    color: #666;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

.back-link a {
    color: #1f3d2b;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: #888;
    font-size: 0.8rem;
}
