/*
 Theme Name: Section8Directory Child
 Theme URI: https://section8directory.com
 Template: listingpro
 Description: Section 8 Directory child theme for Section8Directory.com
 Version: 1.0.0
*/

/* ─── IMPORT PARENT THEME ───────────────────────────────────────────────── */
@import url("../listingpro/style.css");

/* ─── BRAND COLORS ───────────────────────────────────────────────────────── */
:root {
    --s8-navy:       #1a3a5c;   /* Primary — deep gov blue               */
    --s8-blue:       #2563eb;   /* Action blue                           */
    --s8-green:      #16a34a;   /* "Accepts Section 8" badge             */
    --s8-gold:       #d97706;   /* Highlights, CTAs                      */
    --s8-light:      #f0f7ff;   /* Background tint                       */
    --s8-white:      #ffffff;
    --s8-gray:       #64748b;
    --s8-dark:       #0f172a;
}

/* ─── GLOBAL RESETS ──────────────────────────────────────────────────────── */
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: var(--s8-dark);
    background: var(--s8-white);
}

a { color: var(--s8-blue); }
a:hover { color: var(--s8-navy); }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
#header,
.lp-header,
.header-wrap {
    background: var(--s8-navy) !important;
    border-bottom: 3px solid var(--s8-gold) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18) !important;
}

.lp-logo img { max-height: 52px; }

/* Nav links */
.lp-nav > li > a,
.main-nav > li > a {
    color: #e2e8f0 !important;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.lp-nav > li > a:hover,
.main-nav > li > a:hover {
    color: var(--s8-gold) !important;
}

/* ─── HERO SEARCH BANNER ─────────────────────────────────────────────────── */
.lp-banner,
.banner-section,
#lp-hero {
    background: linear-gradient(135deg, var(--s8-navy) 0%, #1e4d80 50%, #2563eb 100%) !important;
    padding: 70px 20px 80px !important;
    position: relative;
    overflow: hidden;
}

.lp-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lp-banner h1,
.banner-title,
.hero-title {
    color: var(--s8-white) !important;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    margin-bottom: 10px !important;
}

.lp-banner p,
.banner-subtitle {
    color: #bfdbfe !important;
    font-size: 1.1rem !important;
    margin-bottom: 30px !important;
}

/* Search box */
.lp-search-box,
.lp-main-search,
#lp-search-form {
    background: var(--s8-white) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
    padding: 8px !important;
    max-width: 780px;
    margin: 0 auto;
}

.lp-search-btn,
.search-submit,
button[type="submit"].lp-btn {
    background: var(--s8-gold) !important;
    color: var(--s8-white) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 12px 28px !important;
    border: none !important;
    transition: background 0.2s, transform 0.1s;
}
.lp-search-btn:hover { background: #b45309 !important; transform: translateY(-1px); }

/* ─── TRUST BAR BELOW HERO ────────────────────────────────────────────────── */
.s8-trust-bar {
    background: var(--s8-light);
    border-bottom: 1px solid #dbeafe;
    padding: 14px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--s8-navy);
    font-weight: 500;
}
.s8-trust-bar span {
    margin: 0 20px;
    display: inline-block;
}
.s8-trust-bar span::before { content: "✓  "; color: var(--s8-green); font-weight: 700; }

/* ─── CATEGORY GRID ──────────────────────────────────────────────────────── */
.lp-cat-icon-wrap,
.category-item,
.lp-category-box {
    border: 2px solid #e0eaff !important;
    border-radius: 12px !important;
    transition: all 0.2s !important;
    background: var(--s8-white) !important;
}
.lp-cat-icon-wrap:hover,
.category-item:hover {
    border-color: var(--s8-blue) !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.12) !important;
    transform: translateY(-3px) !important;
}

.lp-cat-icon-wrap i,
.category-item i {
    color: var(--s8-blue) !important;
}

/* ─── LISTING CARDS ──────────────────────────────────────────────────────── */
.lp-listing-card,
.listing-item,
.lp-grid-item {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: all 0.2s !important;
    overflow: hidden;
}
.lp-listing-card:hover,
.listing-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    transform: translateY(-3px) !important;
    border-color: #93c5fd !important;
}

/* Section 8 Accepted badge */
.s8-badge-accepted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    letter-spacing: 0.3px;
}
.s8-badge-accepted::before { content: "✓"; }

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */
.lp-btn,
.button,
input[type="submit"],
.btn-primary {
    background: var(--s8-blue) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}
.lp-btn:hover { background: var(--s8-navy) !important; }

.lp-btn-outline {
    background: transparent !important;
    border: 2px solid var(--s8-blue) !important;
    color: var(--s8-blue) !important;
}

/* Add Listing CTA button */
.lp-add-listing,
a.add-listing-btn {
    background: var(--s8-gold) !important;
    color: var(--s8-white) !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
.lp-sidebar .widget,
#sidebar .widget {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--s8-white);
}

.widget-title,
.widgettitle {
    color: var(--s8-navy) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border-bottom: 2px solid var(--s8-gold);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

/* ─── ADSENSE PLACEHOLDER ZONES ───────────────────────────────────────────── */
/* These are the zones where ads render — style them to look native */
.s8-ad-zone {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Between-listing ad rows */
.lp-listing-ad-row {
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0;
}

/* ─── LISTING DETAIL PAGE ─────────────────────────────────────────────────── */
.lp-single-listing .lp-listing-title,
.listing-title {
    color: var(--s8-navy) !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
}

.lp-listing-address { color: var(--s8-gray) !important; }

.lp-listing-meta span {
    background: var(--s8-light);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: var(--s8-navy);
    font-weight: 500;
}

/* Contact box */
.lp-contact-box,
.listing-contact {
    background: var(--s8-light) !important;
    border: 2px solid #bfdbfe !important;
    border-radius: 12px !important;
    padding: 24px !important;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
#footer,
.lp-footer {
    background: var(--s8-dark) !important;
    color: #94a3b8 !important;
    padding-top: 50px !important;
}

.footer-widget-title,
.lp-footer .widget-title {
    color: var(--s8-white) !important;
    font-weight: 700 !important;
    border-bottom-color: var(--s8-gold) !important;
}

.lp-footer a { color: #93c5fd !important; }
.lp-footer a:hover { color: var(--s8-white) !important; }

.lp-footer-bottom {
    border-top: 1px solid #1e293b !important;
    background: #050d1a !important;
    color: #64748b !important;
    padding: 16px 0 !important;
    font-size: 0.85rem !important;
}

/* ─── CROSS-SITE PROMO BANNER ─────────────────────────────────────────────── */
.s8-network-banner {
    background: linear-gradient(90deg, var(--s8-navy), #1e4d80);
    color: var(--s8-white);
    padding: 16px 24px;
    border-radius: 10px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.s8-network-banner strong { font-size: 1rem; }
.s8-network-banner p { margin: 0; font-size: 0.9rem; color: #bfdbfe; }
.s8-network-banner a.btn {
    background: var(--s8-gold) !important;
    color: var(--s8-white) !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none;
    white-space: nowrap;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lp-banner { padding: 40px 16px 50px !important; }
    .lp-banner h1 { font-size: 1.7rem !important; }
    .s8-network-banner { flex-direction: column; text-align: center; }
    .s8-trust-bar span { display: block; margin: 4px 0; }
}
