/* KentLoop Directory — Base Styles */
/* Version: 1.1 | 2026-04-28 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #1a56a0;
  --brand-dark:  #133f7a;
  --brand-light: #e8f0fb;
  --fca-green:   #0a7c3e;
  --fca-bg:      #e6f4ed;
  --text:        #1a1a1a;
  --text-muted:  #555;
  --border:      #dde3ec;
  --bg:          #f8f9fc;
  --white:       #ffffff;
  --featured:    #f5a623;
  --radius:      8px;
  --shadow:      0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--text-muted); font-weight: 400; }
.site-nav a {
  margin-left: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--brand); text-decoration: none; }

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumb-bar .breadcrumb-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb-bar a { color: var(--text-muted); }
.breadcrumb-bar a:hover { color: var(--brand); }
.breadcrumb-bar span { margin: 0 0.4rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.hero p.sub {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 1.5rem;
}
.trust-bar {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  opacity: 0.92;
}
.trust-bar span::before { content: "✓  "; }

/* ── Filter pills ── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  overflow-x: auto;
}
.filter-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}
.pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.pill.active, .pill:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* ── Layout ── */
.main-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* ── Listing cards ── */
.listings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.listings-header h2 { font-size: 1rem; font-weight: 600; color: var(--text-muted); }

.broker-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow .15s;
  position: relative;
}
.broker-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.broker-card.featured { border-color: var(--featured); }

.featured-badge {
  position: absolute;
  top: -1px;
  right: 1rem;
  background: var(--featured);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 4px 4px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.card-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.fca-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--fca-bg);
  color: var(--fca-green);
  border: 1px solid #b2d8c3;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.fca-badge::before { content: "✓"; font-weight: 700; }
.fca-badge a { color: var(--fca-green); }
.fca-badge a:hover { text-decoration: underline; }

.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.card-meta strong { color: var(--text); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.tag {
  font-size: 0.73rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 500;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.btn-website {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--brand);
  padding: 0.3rem 0;
}
.btn-claim {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}
.btn-claim:hover {
  background: var(--brand-light);
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
}
.review-score {
  font-size: 0.82rem;
  color: #888;
}
.review-score .stars { color: #f5a623; }

.unclaimed-note {
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
}

/* ── Sidebar ── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.sidebar-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.btn-primary {
  display: block;
  background: var(--brand);
  color: var(--white);
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }

.verify-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.verify-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--border); }
.verify-list li:last-child { border-bottom: none; }
.verify-list li::before { content: "✓  "; color: var(--fca-green); font-weight: 700; }

/* ── Trust section ── */
.trust-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.trust-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.trust-block h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; }
.trust-block p { font-size: 0.82rem; color: var(--text-muted); }

/* ── Footer ── */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.8;
}
.site-footer a { color: #aaa; }
.site-footer a:hover { color: #fff; }
.disclaimer {
  max-width: 700px;
  margin: 0.75rem auto 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.6;
}
