/*
Theme Name: BizRush
Theme URI: https://example.com
Author: Custom Build
Description: A DesignRush-style business directory theme. Pairs with the "Business Directory Pro" plugin (custom post type, categories, admin-approved listings) to power a full agency/business directory site — hero search, category browse, featured listings grid, and clean listing pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bizrush
*/

/* Base reset & typography — component styles (cards, forms, dashboard) live in the
   Business Directory Pro plugin's own stylesheet so they stay consistent site-wide. */

:root {
    --bizrush-accent: #FF4A23;
    --bizrush-ink: #16161a;
    --bizrush-muted: #666672;
    --bizrush-border: #e7e7ee;
    --bizrush-bg-soft: #f7f7fb;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--bizrush-ink);
    line-height: 1.6;
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bizrush-accent); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }

/* Site header */
.site-header { border-bottom: 1px solid var(--bizrush-border); position: sticky; top: 0; background: #fff; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-logo { font-size: 22px; font-weight: 800; text-decoration: none; color: var(--bizrush-ink); }
.site-logo span { color: var(--bizrush-accent); }
.primary-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; color: var(--bizrush-ink); font-weight: 600; font-size: 15px; }
.primary-nav a:hover { color: var(--bizrush-accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.btn-cta { background: var(--bizrush-accent); color: #fff !important; padding: 10px 20px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 14px; }
.btn-cta:hover { background: #e03e1a; }
.btn-ghost { color: var(--bizrush-ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bizrush-bg-soft), #fff); padding: 80px 0 60px; text-align: center; }
.hero h1 { font-size: 44px; font-weight: 800; max-width: 760px; margin: 0 auto 16px; }
.hero p.lead { color: var(--bizrush-muted); font-size: 18px; max-width: 600px; margin: 0 auto 34px; }
.hero-search { display: flex; max-width: 620px; margin: 0 auto; gap: 10px; }
.hero-search input[type=text] { flex: 1; padding: 16px 18px; border: 1px solid var(--bizrush-border); border-radius: 10px; font-size: 16px; }
.hero-search button { padding: 16px 26px; border-radius: 10px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 28px; color: var(--bizrush-accent); }
.hero-stats span { font-size: 13px; color: var(--bizrush-muted); }

/* Section wrapper */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 34px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--bizrush-muted); margin: 6px 0 0; }
.section-head a { font-weight: 700; text-decoration: none; }
.section-alt { background: var(--bizrush-bg-soft); }

/* Category grid on homepage */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.category-tile { display: block; text-decoration: none; color: var(--bizrush-ink); background: #fff; border: 1px solid var(--bizrush-border); border-radius: 14px; padding: 26px 20px; text-align: center; font-weight: 700; transition: box-shadow .2s, transform .2s; }
.category-tile:hover { box-shadow: 0 12px 24px rgba(0,0,0,.06); transform: translateY(-3px); color: var(--bizrush-ink); }
.category-tile .count { display: block; font-weight: 400; font-size: 13px; color: var(--bizrush-muted); margin-top: 6px; }

/* CTA banner */
.cta-banner { background: var(--bizrush-ink); color: #fff; border-radius: 20px; padding: 56px 40px; text-align: center; margin: 0 20px; }
.cta-banner h2 { color: #fff; font-size: 30px; }
.cta-banner p { color: #d3d3db; max-width: 520px; margin: 0 auto 26px; }

/* Footer */
.site-footer { background: var(--bizrush-ink); color: #cfcfd8; padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #cfcfd8; text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Generic page/post content */
.page-content, .post-content { max-width: 800px; margin: 50px auto; padding: 0 20px; }
.page-content h1, .post-content h1 { font-size: 34px; margin-bottom: 20px; }

@media (max-width: 860px) {
    .primary-nav { display: none; }
    .menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 32px; }
    .hero-search { flex-direction: column; }
}
