html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito", sans-serif;
    background: #FFFBF3;
    color: #2A2119;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Baloo 2", cursive;
}

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

/* Scroll-in animation */
.animate-this {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.animate-this.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Category select dropdown can get very tall with 300+ options */
select.category-select {
    max-height: 300px;
}

/*
 * Compatibility shim -- apiClass.php's ajaxList() (used by the "Load More"
 * button on listing.php) renders fixed markup with these exact class names
 * (businesscard/img-fluid/fs-5/fw-bold/text-white/opacity-75/d-flex/gap-2/
 * btn-sec/flex-grow-1/bg_none/px-2). Styled here in the citrus-pop palette
 * to match the hand-written directory cards elsewhere on the site, without
 * touching the PHP/API layer.
 */
.businesscard {
    position: relative;
    background: #fff;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 10px 28px -8px rgba(42,33,25,.12);
    transition: transform .25s ease, box-shadow .25s ease;
    margin: 0 0 1.5rem 0;
    height: calc(100% - 1.5rem);
    display: flex;
    flex-direction: column;
}
.businesscard:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -10px rgba(255,107,53,.35);
}
.businesscard .img-fluid {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.businesscard .fs-5 {
    font-size: 1.15rem;
    padding: 0 1.15rem;
    font-family: "Baloo 2", cursive;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.businesscard .fw-bold {
    font-weight: 700;
}
/* apiClass.php echoes text-white on card title/address -- override to ink
   since cards sit on a light background, not an image overlay, in this theme. */
.businesscard h3.text-white,
.businesscard p.text-white {
    color: #2A2119 !important;
}
.businesscard .mt-2 { margin-top: .6rem; display: block; }
.businesscard .p-3.pb-2 { padding: 1.15rem 1.15rem .75rem; flex-grow: 1; display: flex; flex-direction: column; }
.businesscard p.opacity-75 {
    color: #2A2119;
    opacity: .55 !important;
    font-size: .9rem;
    margin-top: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.businesscard .d-flex { display: flex; margin-top: auto; padding-top: .85rem; }
.businesscard .flex-grow-1 { flex-grow: 1; }

/* Premium ribbon used on hand-written listing/premium cards */
.psdrs { position: relative; }
.open {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    background: #FFD23F;
    color: #2A2119;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .02em;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Generic flex helpers still referenced by fixed apiClass markup */
.d-flex { display: flex; }
.flex-grow-1 { flex-grow: 1; }

/* Pill buttons -- used across hand-written forms/cards and by apiClass.php's
   ajaxList() fragment (btn-sec / btn-sec.bg_none). */
.btn-prime,
.btn-sec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: fit-content;
    min-height: 44px;
    padding: 9px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    text-decoration: none !important;
}
.btn-prime {
    background: #FF6B35;
    color: #fff;
    box-shadow: 0 10px 22px -6px rgba(255,107,53,.55);
}
.btn-prime:hover {
    background: #E0501C;
    transform: translateY(-2px);
    color: #fff;
}
.btn-sec {
    background: #2A2119;
    color: #fff;
}
.btn-sec:hover {
    background: #B4E600;
    color: #2A2119;
    transform: translateY(-2px);
}
.btn-sec.bg_none,
.businesscard .bg_none {
    background: transparent;
    border: 2px solid rgba(42,33,25,.15);
    color: #2A2119;
    box-shadow: none;
    min-height: 44px;
}
.btn-sec.bg_none:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    color: #fff;
}
.btn-sec.bg_none img,
.businesscard .bg_none img {
    filter: none;
}

/* Raw blog HTML content styling (fullpost.php) */
.blog-content {
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(42, 33, 25, .78);
}
.blog-content h1, .blog-content h2, .blog-content h3,
.blog-content h4, .blog-content h5, .blog-content h6 {
    color: #2A2119;
    font-family: "Baloo 2", cursive;
    line-height: 1.3;
    margin-top: 1.75em;
    margin-bottom: .6em;
}
.blog-content h1 { font-size: 1.7rem; }
.blog-content h2 { font-size: 1.45rem; }
.blog-content h3 { font-size: 1.2rem; }
.blog-content h4, .blog-content h5, .blog-content h6 { font-size: 1.05rem; }
.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: #FF6B35; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #2A2119; }
.blog-content blockquote {
    border-left: 4px solid #B4E600;
    padding-left: 1em;
    margin: 1.2em 0;
    color: rgba(42, 33, 25, .65);
    font-style: italic;
}
.blog-content img { margin: 1em 0; max-width: 100%; border-radius: 1rem; }

/* Quick category links (index.php hero) -- were unstyled, leaving the
   white category icon invisible against a white/transparent background. */
.banner-anchors { display: flex; flex-wrap: wrap; gap: .75rem; }
.category-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    background: #fff;
    border: 2px solid rgba(42, 33, 25, .08);
    border-radius: 1.25rem;
    padding: 1rem .75rem;
    width: 104px;
    text-align: center;
    box-shadow: 3px 3px 0 rgba(42, 33, 25, .06);
    transition: transform .2s ease, border-color .2s ease;
}
.category-link:hover { transform: translateY(-3px); border-color: #FF6B35; }
.category-link img {
    background: #FF6B35;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    padding: 9px;
    box-sizing: border-box;
}
.category-link:hover img { background: #E0501C; }
.category-link p { margin: 0; font-size: .78rem; font-weight: 800; color: #2A2119; }
