/*
Theme Name: LocalBusiness.Global
Theme URI: https://localbusiness.global
Author: BonusGroup
Author URI: https://bonusgroup.nl
Description: A clean, modern directory theme designed for LocalBusiness.Global — the global directory for local businesses. Requires the LB Global Core plugin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: lbg-theme
*/

/* ═══════════════════════════════════
   Theme Base Styles
   ═══════════════════════════════════ */

:root {
    --lbg-accent: #1B6B4A;
    --lbg-accent-light: #E8F5EE;
    --lbg-accent-dark: #134D35;
    --lbg-gold: #C8962E;
    --lbg-gold-light: #FFF8EB;
    --lbg-text: #1A1A1A;
    --lbg-muted: #6B6B6B;
    --lbg-border: #E8E6E1;
    --lbg-surface: #F3F1EC;
    --lbg-bg: #FAFAF7;
    --lbg-card: #FFFFFF;
    --lbg-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --lbg-display: 'Fraunces', Georgia, serif;
}

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

body {
    font-family: var(--lbg-font);
    color: var(--lbg-text);
    background: var(--lbg-bg);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lbg-accent-light); color: var(--lbg-accent-dark); }

a { color: var(--lbg-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lbg-accent-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--lbg-display); font-weight: 600; line-height: 1.25; }

/* ── Site Header ── */
.lbg-site-header {
    background: #fff;
    border-bottom: 1px solid var(--lbg-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.lbg-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.lbg-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.lbg-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--lbg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.lbg-logo-text {
    font-family: var(--lbg-display);
    font-weight: 700;
    font-size: 19px;
}
.lbg-logo-text span { color: var(--lbg-accent); }

.lbg-nav { display: flex; gap: 4px; align-items: center; }
.lbg-nav a {
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--lbg-muted);
    text-decoration: none;
    transition: all .2s;
}
.lbg-nav a:hover, .lbg-nav a.current { background: var(--lbg-accent-light); color: var(--lbg-accent); }
.lbg-nav-cta {
    background: var(--lbg-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.lbg-nav-cta:hover { background: var(--lbg-accent-dark) !important; }

/* ── Main Content ── */
.lbg-site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    min-height: 60vh;
}

/* ── Hero (front page) ── */
.lbg-hero {
    text-align: center;
    padding: 56px 0 40px;
}
.lbg-hero h1 {
    font-size: 44px;
    max-width: 640px;
    margin: 0 auto 16px;
}
.lbg-hero h1 span { color: var(--lbg-accent); }
.lbg-hero p {
    color: var(--lbg-muted);
    font-size: 17px;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ── Section headings ── */
.lbg-section-heading {
    font-family: var(--lbg-display);
    font-size: 24px;
    margin: 40px 0 20px;
}

/* ── CTA Section ── */
.lbg-cta-section {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid var(--lbg-border);
    margin-top: 48px;
}
.lbg-cta-section h2 { font-size: 28px; margin-bottom: 12px; }
.lbg-cta-section p { color: var(--lbg-muted); font-size: 16px; margin-bottom: 24px; }

/* ── Footer ── */
.lbg-site-footer {
    border-top: 1px solid var(--lbg-border);
    padding: 32px 24px;
    text-align: center;
    color: var(--lbg-muted);
    font-size: 14px;
}
.lbg-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lbg-footer-links a { color: var(--lbg-muted); margin-left: 20px; }
.lbg-footer-links a:hover { color: var(--lbg-accent); }

/* ── Single Business ── */
.lbg-single-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    padding-top: 16px;
}
.lbg-single-hero { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.lbg-single-thumb {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--lbg-surface);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lbg-single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lbg-single-thumb .placeholder { font-family: var(--lbg-display); font-size: 40px; color: var(--lbg-accent); opacity: .3; }
.lbg-single-meta-bar { display: flex; gap: 8px; margin-bottom: 8px; }
.lbg-single-title { font-size: 28px; margin: 0 0 4px; }
.lbg-single-location { color: var(--lbg-muted); font-size: 15px; margin: 0 0 8px; }
.lbg-single-content { font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.lbg-single-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.lbg-single-info {
    background: var(--lbg-surface);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    font-size: 14px;
}
.lbg-single-info dt { color: var(--lbg-muted); font-size: 12px; margin-bottom: 2px; }
.lbg-single-info dd { margin: 0 0 12px; font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .lbg-single-layout { grid-template-columns: 1fr; }
    .lbg-hero h1 { font-size: 32px; }
}
@media (max-width: 600px) {
    .lbg-header-inner { flex-direction: column; height: auto; padding: 12px; gap: 8px; }
    .lbg-nav { flex-wrap: wrap; justify-content: center; }
    .lbg-footer-inner { flex-direction: column; gap: 12px; }
}
