/* ── VARIABLES ── */
:root {
    --bg: #faf8f4;
    --bg2: #f2ede4;
    --bg3: #e8e2d8;
    --ink: #1a1814;
    --ink2: #2e2a26;
    --text: #1a1814;
    --text-muted: #6b6560;
    --text-dim: #9a9490;
    --gold: #b8860b;
    --gold-bright: #d4a843;
    --gold-pale: rgba(184,134,11,0.08);
    --rule: rgba(184,134,11,0.2);
    --rule-subtle: rgba(26,24,20,0.1);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'DM Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; height: auto; }

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    padding: 0 4rem;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}
.site-logo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
}
.logo-main {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f2ea;
    letter-spacing: 0.02em;
    line-height: 1;
}
.logo-sub {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0.7;
    line-height: 1;
}
.site-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}
.site-nav .nav-menu a {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245,242,234,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.site-nav .nav-menu a:hover { color: var(--gold-bright); }
.site-nav .nav-menu .menu-cta a {
    background: var(--gold-bright);
    color: var(--ink);
    padding: 0.55rem 1.25rem;
    font-weight: 500;
    color: #1a1814;
}
.site-nav .nav-menu .menu-cta a:hover {
    background: #e8c06a;
}

/* ── MAIN ── */
.site-main { min-height: 70vh; }
.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 4rem;
}

/* ── DIRECTORIST SEARCH HERO ── */
/* Override the dark box Directorist puts around the search */
[class*="directorist-search-top"],
[class*="directorist-search-form-wrap"],
[class*="directorist-archive-search"],
[class*="directorist-search-hero"] {
    background: var(--bg) !important;
    background-color: var(--bg) !important;
    padding: 3rem 2rem !important;
}

/* Hero headings */
[class*="directorist"] h1,
[class*="directorist"] h2 {
    font-family: var(--font-display) !important;
    color: var(--ink) !important;
    font-weight: 700 !important;
}

[class*="directorist"] p,
[class*="directorist"] span:not([class*="btn"]):not([class*="badge"]) {
    color: var(--text-muted) !important;
}

/* Tabs */
[class*="directorist-tab"],
[class*="directorist-directory-type"] {
    background: transparent !important;
    border-bottom: 2px solid var(--rule-subtle) !important;
}
[class*="directorist-tab"] a,
[class*="directorist-directory-type"] a {
    color: var(--text-muted) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 0.75rem 1.5rem !important;
}
[class*="directorist-tab"] li.active a,
[class*="directorist-tab"] a:hover {
    color: var(--gold) !important;
    border-bottom-color: var(--gold) !important;
    background: transparent !important;
}

/* Search form row */
[class*="directorist-search-form"],
[class*="atbdp-search"] {
    background: white !important;
    border: 1px solid var(--rule-subtle) !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06) !important;
}

/* Inputs */
body input[type="text"],
body input[type="search"],
body input,
body textarea {
    background: white !important;
    color: var(--ink) !important;
    border: 1px solid var(--rule-subtle) !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
}
body input::placeholder,
body textarea::placeholder {
    color: var(--text-dim) !important;
}
body input:focus,
body textarea:focus {
    outline: none !important;
    border-color: var(--gold) !important;
}
body select {
    background: white !important;
    color: var(--ink) !important;
    border: 1px solid var(--rule-subtle) !important;
    border-radius: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
}

/* Buttons */
body button,
body [class*="directorist-btn"],
body [class*="atbdp-btn"] {
    border-radius: 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

/* More Filters button */
body [class*="more-filter"],
body [class*="filter-btn"],
.directorist-btn-filter {
    background: white !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--rule-subtle) !important;
}
body [class*="more-filter"]:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* Search submit */
body input[type="submit"],
body button[type="submit"],
body [class*="btn-search"],
body [class*="search-btn"] {
    background: var(--gold) !important;
    background-color: var(--gold) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 0.85rem 2rem !important;
}
body input[type="submit"]:hover,
body button[type="submit"]:hover,
body [class*="btn-search"]:hover {
    background: var(--gold-bright) !important;
    background-color: var(--gold-bright) !important;
    color: white !important;
}

/* Category links */
[class*="directorist"] a[href*="category"],
[class*="directorist-cat"],
[class*="directorist-categories"] a {
    color: var(--text-muted) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border: 1px solid var(--rule-subtle) !important;
    padding: 0.4rem 0.9rem !important;
    transition: all 0.2s !important;
    background: white !important;
}
[class*="directorist"] a[href*="category"]:hover,
[class*="directorist-cat"] a:hover {
    color: var(--gold) !important;
    border-color: var(--gold) !important;
    background: var(--gold-pale) !important;
}

/* Listing cards */
[class*="directorist-listing-card"],
[class*="directorist-listing-wrap"] {
    background: white !important;
    border: 1px solid var(--rule-subtle) !important;
    border-radius: 0 !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
[class*="directorist-listing-card"]:hover {
    border-color: var(--gold) !important;
    box-shadow: 0 4px 20px rgba(184,134,11,0.1) !important;
}
[class*="directorist-listing-card"] [class*="title"] a,
[class*="directorist-listing-header"] h2 a {
    font-family: var(--font-display) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--ink) !important;
}
[class*="directorist-listing-card"] [class*="title"] a:hover {
    color: var(--gold) !important;
}
[class*="directorist-listing-card"] [class*="category"] a {
    color: var(--gold) !important;
    font-family: var(--font-mono) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}
[class*="directorist-listing-card"] [class*="location"] {
    color: var(--text-muted) !important;
    font-size: 0.88rem !important;
}
[class*="badge-featured"],
[class*="directorist-featured"] {
    background: var(--gold) !important;
    color: white !important;
    font-family: var(--font-mono) !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    padding: 0.2rem 0.5rem !important;
}

/* Single listing */
[class*="directorist-single"] {
    background: white !important;
    color: var(--ink) !important;
}
[class*="directorist-single"] h1,
[class*="directorist-single"] h2,
[class*="directorist-single"] h3 {
    font-family: var(--font-display) !important;
    color: var(--ink) !important;
}

/* WP Job Manager */
.job_listings .job_listing {
    background: white !important;
    border: 1px solid var(--rule-subtle) !important;
    border-radius: 0 !important;
    padding: 1.5rem !important;
    margin-bottom: 2px !important;
    transition: border-color 0.2s !important;
}
.job_listings .job_listing:hover { border-color: var(--gold) !important; }
.job_listings .job_listing h3 a {
    font-family: var(--font-display) !important;
    color: var(--ink) !important;
    font-size: 1.1rem !important;
}
.job_listings .job_listing .location { color: var(--text-muted) !important; }
.job_listings .job_listing .job-type {
    background: var(--gold-pale) !important;
    color: var(--gold) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 0.62rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

/* Pagination */
[class*="directorist-pagination"] .page-numbers {
    background: white !important;
    color: var(--text-muted) !important;
    border: 1px solid var(--rule-subtle) !important;
    border-radius: 0 !important;
}
[class*="directorist-pagination"] .page-numbers.current,
[class*="directorist-pagination"] .page-numbers:hover {
    background: var(--gold) !important;
    color: white !important;
    border-color: var(--gold) !important;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--ink);
    color: #f5f2ea;
    margin-top: 5rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: #f5f2ea;
    margin-bottom: 0.5rem;
}
.footer-tagline {
    font-size: 0.95rem;
    color: rgba(245,242,234,0.55);
    margin-bottom: 0.5rem;
}
.footer-wca { font-size: 0.82rem; color: rgba(245,242,234,0.35); }
.footer-wca a { color: var(--gold-bright); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-bright);
    opacity: 0.6;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(245,242,234,0.5);
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #f5f2ea; }
.footer-bottom {
    padding: 1.5rem 4rem;
}
.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(245,242,234,0.3);
    font-family: var(--font-mono);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .site-header { padding: 0 1.5rem; }
    .header-inner { flex-direction: column; height: auto; padding: 1.25rem 0; gap: 1rem; }
    .site-nav .nav-menu { flex-wrap: wrap; gap: 1rem; justify-content: center; }
    .content-inner { padding: 2rem 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
    .footer-bottom { padding: 1.25rem 1.5rem; }
    .footer-bottom-inner { flex-direction: column; gap: 0.5rem; }
}
