:root {
    --bg: #fff7f0;
    --surface: #ffffff;
    --surface-2: #fff1e7;
    --text: #22140b;
    --muted: #725d4e;
    --line: #f0d7c4;
    --primary: #ff6b13;
    --primary-dark: #d94f00;
    --primary-soft: #fff0e4;
    --shadow: 0 24px 70px rgba(100, 49, 14, .12);
    --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 107, 19, .18), transparent 34%),
        linear-gradient(180deg, #fffaf6 0%, var(--bg) 42%, #fff 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }
img { max-width: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(var(--max), calc(100% - 32px));
    margin: 16px auto 0;
    border: 1px solid rgba(255, 107, 19, .18);
    border-radius: 24px;
    background: rgba(255, 255, 255, .84);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 44px rgba(90, 44, 14, .08);
    padding: 12px 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #ffb36b);
    color: #fff;
    font-weight: 950;
    letter-spacing: -.05em;
    box-shadow: 0 10px 24px rgba(255, 107, 19, .25);
}

.brand strong { display: block; font-size: 18px; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    color: var(--muted);
}
.site-nav a:hover { background: var(--primary-soft); color: var(--primary-dark); }

.hero {
    width: min(var(--max), calc(100% - 32px));
    margin: 34px auto 0;
    padding: clamp(42px, 7vw, 92px) clamp(22px, 5vw, 76px);
    border: 1px solid rgba(255, 107, 19, .18);
    border-radius: 38px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 107, 19, .20), transparent 32%),
        linear-gradient(135deg, #fff 0%, #fff4eb 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero--compact { padding-block: clamp(34px, 5vw, 68px); }
.hero__content { max-width: 780px; }
.eyebrow {
    margin: 0 0 12px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2, h3 { color: var(--text); letter-spacing: -.04em; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 86px); line-height: .92; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1; }
h3 { margin-top: 0; }
p { color: var(--muted); line-height: 1.7; }

.search-box {
    display: flex;
    gap: 10px;
    max-width: 760px;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 16px 44px rgba(100, 49, 14, .10);
}
.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 0 14px;
    font: inherit;
    color: var(--text);
}
.search-box button,
.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}
.search-box button,
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 28px rgba(255, 107, 19, .22); }
.btn-secondary { background: var(--primary-soft); color: var(--primary-dark); }

.directory-section,
.seo-section,
.article-page,
.business-profile {
    width: min(var(--max), calc(100% - 32px));
    margin: 62px auto;
}
.section-heading { max-width: 760px; margin-bottom: 22px; }

.industry-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0 16px;
    margin-bottom: 20px;
}
.industry-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: var(--muted);
    padding: 0 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
}
.industry-tabs a.is-active,
.industry-tabs a:hover { border-color: rgba(255, 107, 19, .34); background: var(--primary); color: #fff; }
.industry-tabs span { opacity: .76; }

.results-note { margin-top: 4px; font-weight: 800; }

.business-grid,
.seo-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}
.business-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.business-card,
.article-card,
.seo-cards article,
.profile-card,
.empty-state {
    border: 1px solid rgba(255, 107, 19, .16);
    border-radius: 28px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 50px rgba(100, 49, 14, .09);
}

.business-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    overflow: hidden;
}
.business-card__media,
.profile-avatar {
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ffb36b);
    color: #fff;
    font-size: 31px;
    font-weight: 950;
    letter-spacing: .05em;
    text-decoration: none;
    box-shadow: 0 18px 38px rgba(255, 107, 19, .22);
}
.business-card__media { margin: 28px auto 10px; }
.business-card__media img,
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.business-card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 22px 24px; text-align: center; }
.business-card h2 { margin: 13px 0 4px; font-size: 25px; }
.business-card h2 a { text-decoration: none; }
.business-card h2 a:hover { color: var(--primary-dark); }
.location { font-weight: 800; color: #8a4e27; }
.pill {
    align-self: center;
    display: inline-flex;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 7px 11px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; justify-content: center; }
.card-actions .btn { flex: 1 1 auto; min-width: 150px; }

.empty-state { padding: 34px; text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 34px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 42px; border-radius: 999px; padding: 0 15px;
    background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 900;
}
.pagination a { color: var(--primary-dark); }

.seo-cards article,
.article-card { padding: 28px; }
.article-card h2 { font-size: 28px; }
.article-card h2 a { text-decoration: none; }

.profile-card { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: clamp(26px, 5vw, 54px); }
.profile-avatar { width: 170px; height: 170px; font-size: 46px; }
.profile-content h1 { margin-top: 16px; }
.profile-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.profile-details div { border: 1px solid var(--line); border-radius: 18px; background: #fffaf6; padding: 15px; }
.profile-details dt { color: var(--primary-dark); font-weight: 950; }
.profile-details dd { margin: 6px 0 0; color: var(--muted); }
.profile-actions { justify-content: flex-start; }

.article-page { max-width: 860px; border: 1px solid var(--line); border-radius: 30px; background: #fff; padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow); }
.article-page h1 { font-size: clamp(36px, 6vw, 64px); }
.article-lead { font-size: 20px; color: #5b3a25; }

.site-footer {
    display: flex; justify-content: space-between; gap: 24px; width: min(var(--max), calc(100% - 32px));
    margin: 80px auto 26px; border-top: 1px solid var(--line); padding-top: 26px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.footer-links a { color: var(--muted); font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--primary-dark); }

@media (max-width: 920px) {
    .business-grid, .business-grid--compact, .seo-cards { grid-template-columns: 1fr 1fr; }
    .profile-card { grid-template-columns: 1fr; text-align: center; }
    .profile-avatar { margin-inline: auto; }
    .profile-actions { justify-content: center; }
    .profile-details { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 680px) {
    .site-header { align-items: flex-start; border-radius: 20px; flex-direction: column; }
    .site-nav { width: 100%; overflow-x: auto; }
    .hero { border-radius: 28px; }
    .search-box { flex-direction: column; }
    .search-box input { min-height: 46px; }
    .business-grid, .business-grid--compact, .seo-cards { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; }
    h1 { font-size: clamp(40px, 14vw, 58px); }
}
