html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    background: #FBF7F2;
    color: #241318;
    overflow-x: hidden;
    background-image:
        radial-gradient(60rem 30rem at 15% -10%, rgba(62,36,60,.08), transparent 60%),
        radial-gradient(50rem 26rem at 110% 10%, rgba(201,162,39,.10), transparent 60%);
    background-attachment: fixed;
}

section[id] {
    scroll-margin-top: 6.5rem;
}

h1, h2, h3, .font-extrabold {
    font-family: "Fraunces", serif;
    letter-spacing: -0.02em;
}

/* Faint technical grid backdrop for hero / feature sections */
.grid-mesh {
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* Scroll-in animation */
.animate-this {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-this.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Category select dropdown can get very tall with 300+ options */
select.category-select {
    max-height: 300px;
}
select.custom-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.custom-select-option.hidden {
    display: none;
}

/* Homepage category pill tabs */
.category-tab {
    background: rgba(62,36,60,.05);
    color: rgba(36, 19, 24,.65);
    border: 1px solid rgba(62,36,60,.12);
    backdrop-filter: blur(12px);
}
.category-tab.active {
    background: linear-gradient(135deg, #3E243C, #C9A227);
    color: #0a0a0a;
    border-color: transparent;
}

/* Pricing tier pill tabs */
.pricing-tab { background: rgba(201,162,39,.12); color: #8C6A16; }
.pricing-tab.active { background: linear-gradient(135deg, #3E243C, #C9A227); color: #0a0a0a; }

/* Featured ribbon on directory thumbnails (hand-written cards) */
.premium-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #E9C767, #8C5B84);
    color: #fff;
}

/* Raw blog HTML content styling (fullpost.php) */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(36, 19, 24, .8);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #241318;
    font-weight: 800;
    line-height: 1.3;
    margin-top: 1.75em;
    margin-bottom: .6em;
}
.blog-content h1 { font-size: 1.85rem; }
.blog-content h2 { font-size: 1.55rem; }
.blog-content h3 { font-size: 1.3rem; }
.blog-content h4, .blog-content h5, .blog-content h6 { font-size: 1.1rem; }
.blog-content p { margin-bottom: 1.1em; }
.blog-content ul, .blog-content ol { margin: 1em 0 1.2em 1.4em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: .4em; }
.blog-content a { color: #A17F1B; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #241318; }
.blog-content blockquote {
    border-left: 3px solid #C9A227;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(36, 19, 24, .65);
    font-style: italic;
}
.blog-content img { border-radius: 1rem; margin: 1em 0; max-width: 100%; }

/*
 * Compatibility shim -- apiClass.php's ajaxList() (used by the "Load More"
 * button on listing.php) renders fixed markup with these exact class names
 * (businesscard/open/fs-5/fw-bold/btn/btn-sec/etc). Styled here to match the
 * hand-written directory cards elsewhere on the site without touching the
 * PHP/API layer.
 */
.businesscard {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(62,36,60,.08);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(62,36,60,.10);
    margin-bottom: 1.5rem;
}
.businesscard .img-fluid { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 1.5rem 1.5rem 0 0; }
.businesscard .fs-5 { font-size: 1.15rem; padding: 0 1.1rem; font-weight: 800; color: #241318; }
.businesscard .fw-bold { font-weight: 800; }
.businesscard .mt-2 { margin-top: .75rem; display: block; }
.businesscard .p-3 { padding: 1.1rem; }
.businesscard .pb-2 { padding-bottom: .5rem; }
.businesscard .mb-3 { margin-bottom: .75rem; color: rgba(36, 19, 24,.55); font-size: .9rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .btn {
    flex-grow: 1;
    background: linear-gradient(135deg, #3E243C, #C9A227);
    color: #0a0a0a;
    text-align: center;
    border-radius: 999px;
    padding: .6rem 1rem;
    font-weight: 700;
    font-size: .875rem;
    display: block;
}
.businesscard .btn-sec, .businesscard .px-2 {
    padding: 0 .8rem;
    background: rgba(201,162,39,.12);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .open {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 999px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #E9C767, #8C5B84);
    color: #fff;
}
