html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #FAF5EC;
    color: #26231D;
    overflow-x: hidden;
    background-image: radial-gradient(rgba(38,35,29,.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

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

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

/* 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 tabs -- underline style, not filled pills */
.category-tab {
    background: transparent;
    color: rgba(38,35,29,.55);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}
.category-tab.active {
    background: transparent;
    color: #C1502E;
    border-bottom: 2px solid #C1502E;
}

/* Pricing tier pill tabs */
.pricing-tab { background: rgba(193,80,46,.08); color: #8F3820; }
.pricing-tab.active { background: #C1502E; color: #fff; }

/* Featured ribbon on directory thumbnails (hand-written cards) */
.premium-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    position: absolute;
    top: 12px;
    left: 12px;
    background: #26231D;
    color: #F2C879;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Raw blog HTML content styling (fullpost.php) */
.blog-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: rgba(38, 35, 29, .8);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #26231D;
    font-weight: 600;
    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: #C1502E; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #26231D; }
.blog-content blockquote {
    border-left: 3px solid #C1502E;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(38, 35, 29, .65);
    font-style: italic;
}
.blog-content img { border-radius: .5rem; 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: #fff;
    border: 1px solid rgba(38,35,29,.1);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 2px 0 rgba(38,35,29,.05);
    margin-bottom: 1.5rem;
}
.businesscard .img-fluid { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 0; }
.businesscard .fs-5 { font-size: 1.15rem; padding: 0 1.1rem; font-weight: 700; font-family: "Fraunces", serif; }
.businesscard .fw-bold { font-weight: 700; }
.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(38,35,29,.55); font-size: .9rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .btn {
    flex-grow: 1;
    background: #26231D;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: .6rem 1rem;
    font-weight: 700;
    font-size: .875rem;
    display: block;
}
.businesscard .btn-sec, .businesscard .px-2 {
    padding: 0 .8rem;
    background: rgba(193,80,46,.1);
    border-radius: 2px;
    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: 700;
    border-radius: 4px;
    padding: 5px 12px;
    background: #26231D;
    color: #F2C879;
    text-transform: uppercase;
    letter-spacing: .04em;
}
