html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #FAF8F3;
    color: #181410;
    overflow-x: hidden;
}

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

/* 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);
}

/* Drop-cap for editorial copy */
.drop-cap:first-letter {
    font-family: "Playfair Display", serif;
    font-weight: 800;
    font-size: 3.75rem;
    line-height: .8;
    float: left;
    padding-right: .5rem;
    padding-top: .35rem;
    color: #A6192E;
}

/* Breaking-news ticker */
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* 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 "sections" tab strip */
.category-tab {
    color: rgba(255,255,255,.65);
    border-bottom: 2px solid transparent;
}
.category-tab.active {
    color: #fff;
    border-bottom-color: #A6192E;
}

/* Pricing tier tabs */
.pricing-tab { background: rgba(166,25,46,.06); color: #A6192E; }
.pricing-tab.active { background: #A6192E; color: #fff; }

/* Premium ribbon on directory thumbnails (hand-written cards) */
.premium-badge {
    font-size: 10px;
    letter-spacing: .08em;
    font-weight: 700;
    padding: 3px 10px;
    position: absolute;
    top: 12px;
    left: -6px;
    background-color: #B8872E;
    color: #fff;
    text-transform: uppercase;
}
.premium-badge::after {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #7a5a1c transparent transparent transparent;
}

/* Raw blog HTML content styling (fullpost.php) */
.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(24, 20, 16, .78);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    font-family: "Playfair Display", serif;
    color: #181410;
    font-weight: 700;
    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: #A6192E; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #181410; }
.blog-content blockquote {
    border-left: 3px solid #A6192E;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(24, 20, 16, .6);
    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(24,20,16,.1);
    border-radius: .5rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.businesscard .img-fluid { width: 100%; height: 200px; object-fit: cover; display: block; }
.businesscard .fs-5 { font-family: "Playfair Display", serif; font-size: 1.2rem; padding: 0 1rem; }
.businesscard .fw-bold { font-weight: 700; }
.businesscard .mt-2 { margin-top: .65rem; display: block; }
.businesscard .p-3 { padding: 1rem; }
.businesscard .pb-2 { padding-bottom: .5rem; }
.businesscard .mb-3 { margin-bottom: .75rem; color: rgba(24,20,16,.6); font-size: .9rem; }
.businesscard .d-flex { display: flex; }
.businesscard .gap-2 { gap: .5rem; }
.businesscard .btn {
    flex-grow: 1;
    background: #A6192E;
    color: #fff;
    text-align: center;
    border-radius: .375rem;
    padding: .55rem 1rem;
    font-weight: 600;
    font-size: .9rem;
    display: block;
}
.businesscard .btn-sec, .businesscard .px-2 {
    padding: 0 .75rem;
    border: 1px solid rgba(24,20,16,.12);
    border-radius: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.businesscard .flex-grow-1 { flex-grow: 1; }
.businesscard .open {
    position: absolute;
    top: 12px;
    left: -6px;
    font-size: 10px;
    letter-spacing: .08em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    background-color: #B8872E;
    color: #fff;
}
