/* BizYellow.ca shared styles */

:root {
  --yellow: #FFD700;
  --yellow-deep: #F5C518;
  --yellow-soft: #FFF7CC;
  --ink: #1A1A1A;
  --ink-soft: #333;
  --muted: #666;
  --line: #E5E5E5;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFA;
  --maple: #C8102E;
  --success: #16A34A;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--maple); }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ===== TOP YELLOW BAR ===== */
.topbar {
  background: var(--yellow);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
}
.logo .leaf {
  width: 28px; height: 28px;
  object-fit: contain;
}
.logo .biz { color: var(--maple); }
.logo .yellow { color: var(--ink); }
.logo .ca { color: var(--ink); opacity: .6; font-weight: 600; font-size: 20px; margin-left: 2px; }
.topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.topbar-links a:hover { text-decoration: underline; color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s, background .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--ink);
  color: var(--yellow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--yellow); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--yellow); }
.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover { background: var(--yellow-deep); color: var(--ink); }

/* ===== NAV ===== */
.nav {
  background: var(--ink);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
}
.nav a {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
  border-bottom: 3px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* ===== HERO ===== */
.hero {
  background:
    radial-gradient(ellipse at top right, rgba(200,16,46,.08), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(255,215,0,.2), transparent 60%),
    linear-gradient(180deg, #FFFBEA 0%, #FFFFFF 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
  opacity: .25;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.06);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--maple);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 .accent { color: var(--maple); }
.hero p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

/* Slim hero variant for interior pages */
.hero-slim {
  padding: 50px 0 30px;
}
.hero-slim h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 8px; }
.hero-slim p.lede { font-size: 16px; margin-bottom: 0; }

/* ===== SEARCH BAR ===== */
.search {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.search-field:last-of-type { border-right: none; }
.search-field svg { flex-shrink: 0; opacity: .5; }
.search-field input {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  background: transparent;
  font-family: inherit;
}
.search button {
  background: var(--ink);
  color: var(--yellow);
  border: none;
  padding: 0 32px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.search button:hover { background: var(--maple); color: #fff; }

/* ===== STATS BAR ===== */
.stats {
  background: var(--ink);
  color: #fff;
  padding: 28px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .7;
}

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section.tight { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 8px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ===== CATEGORY GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .15s;
}
.cat-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.cat-icon {
  width: 44px; height: 44px;
  background: var(--yellow-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.cat-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* ===== LISTINGS ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.listing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  transition: all .15s;
  display: block;
}
.listing:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink);
  color: var(--ink);
}
.listing-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.listing-badge.unclaimed {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}
.listing h3 { font-size: 18px; margin-bottom: 6px; font-weight: 700; }
.listing .meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.listing .desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }
.listing .loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ===== PROVINCES ===== */
.prov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.prov-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .15s;
}
.prov-card:hover {
  background: var(--yellow-soft);
  border-color: var(--yellow);
  color: var(--ink);
}
.prov-name { font-weight: 600; font-size: 15px; }
.prov-count {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.prov-card:hover .prov-count { background: rgba(0,0,0,.06); }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
}
.plan.featured {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.plan.featured .plan-price { color: var(--yellow); }
.plan.featured .plan-desc, .plan.featured li { color: rgba(255,255,255,.85); }
.plan-tag {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.plan-name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}
.plan.featured .plan-name { color: var(--yellow); }
.plan-price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
  line-height: 1;
}
.plan-price .per { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan.featured .plan-price .per { color: rgba(255,255,255,.7); }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.plan ul { list-style: none; margin-bottom: 32px; }
.plan ul li {
  font-size: 14px;
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.plan.featured ul li { border-bottom-color: rgba(255,255,255,.1); }
.plan ul li svg { flex-shrink: 0; margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; padding: 14px; }
.plan.featured .btn-primary { background: var(--yellow); color: var(--ink); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 8px; }
.cta-banner p { font-size: 17px; margin-bottom: 24px; }

/* ===== FOOTER ===== */
footer {
  background: var(--ink);
  color: #aaa;
  padding: 60px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { padding: 4px 0; font-size: 14px; }
footer a:hover { color: var(--yellow); }
.foot-logo .biz { color: var(--yellow); }
.foot-logo .yellow, .foot-logo .ca { color: #fff; }
.foot-about { font-size: 14px; line-height: 1.7; margin-top: 14px; max-width: 360px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ===== BREADCRUMBS ===== */
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--maple); }
.crumbs .sep { opacity: .4; }

/* ===== LISTING DETAIL PAGE ===== */
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.detail-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.detail-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.detail-card .row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail-card .row:last-child { border-bottom: none; }
.detail-card .row svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }
.detail-card .row .key { color: var(--muted); width: 70px; flex-shrink: 0; }
.detail-card .row .val { flex: 1; word-break: break-word; }
.detail-card a.val { color: var(--maple); }
.detail-h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.1;
}
.detail-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.detail-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 24px 0;
}
.detail-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 16px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .current {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}
.pagination .disabled { opacity: .4; }

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 16px; }

/* ===== STATIC PAGES ===== */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose h1 { font-size: 36px; margin-bottom: 8px; color: var(--ink); }
.prose h2 { font-size: 22px; margin: 32px 0 12px; color: var(--ink); }
.prose h3 { font-size: 18px; margin: 24px 0 8px; color: var(--ink); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 20px; }
.prose ul li, .prose ol li { margin-bottom: 8px; }
.prose a { color: var(--maple); border-bottom: 1px solid currentColor; }
.prose .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }

/* ===== FORMS ===== */
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ink);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.alert-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

/* ===== RESPONSIVE ===== */
@media (max-width: 880px) {
  .topbar-links { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: 1fr; }
  .prov-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .search { grid-template-columns: 1fr; }
  .search-field { border-right: none; border-bottom: 1px solid var(--line); }
  .search button { padding: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
}
