html { scroll-behavior: smooth; }

body {
    font-family: "Libre Franklin", sans-serif;
    color: #1A1438;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
    font-family: "Epilogue", sans-serif;
}

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

.animate-this {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.animate-this.animated { opacity: 1; transform: translateY(0); }

select.category-select { max-height: 300px; }

/* Horizontal-scroll category chip rail */
.category-rail {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x proximity;
}
.category-rail::-webkit-scrollbar { height: 6px; }
.category-rail::-webkit-scrollbar-thumb { background: rgba(49,37,94,.25); border-radius: 6px; }
.category-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
    padding: 1rem .5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(26,20,56,.08);
    box-shadow: 0 1px 2px rgba(26,20,56,.05);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.category-chip:hover { box-shadow: 0 12px 24px -8px rgba(231,107,110,.3); transform: translateY(-2px); border-color: rgba(231,107,110,.4); }
.category-chip .chip-icon {
    height: 44px; width: 44px; border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #31255E, #E76B6E);
}
.category-chip .chip-icon svg { height: 20px; width: 20px; fill: #fff; }
.category-chip p { font-size: .75rem; font-weight: 700; margin: 0; color: #1A1438; }

.preloader-inline { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.preloader-inline .spin {
    height: 2rem; width: 2rem; border-radius: 999px;
    border: 3px solid rgba(49,37,94,.2); border-top-color: #31255E;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*
 * .businesscard / .btn / .btn-sec are already a fully-built photo-card
 * component in css/style.css (dark gradient overlay, bottom-aligned text),
 * driven by --prime/--prime2 which already equal the logo's exact indigo +
 * an existing coral accent -- deliberately NOT redefined here so the
 * hand-written index.php cards and apiClass.php's ajaxList() output stay
 * visually identical.
 */

/* Homepage tabs (radio-driven, no JS) */
.tabs-wrapper { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tabs-wrapper input { display: none; }
.tabs-wrapper label {
    cursor: pointer; padding: .6rem 1.1rem; border-radius: .6rem; font-weight: 700; font-size: .85rem;
    background: #fff; border: 1px solid rgba(26,20,56,.08); color: #5F5779; transition: all .2s ease;
}
.tabs-wrapper input:checked + label { background: #31255E; border-color: #31255E; color: #fff; }
.content-wrapper .tab-content { display: none; }
.tabs-wrapper input#mobile-optimised:checked ~ .content-wrapper .tab-content[data-tab="mobile-optimised"],
.tabs-wrapper input#explore-listing:checked ~ .content-wrapper .tab-content[data-tab="explore-listing"],
.tabs-wrapper input#click-to-call:checked ~ .content-wrapper .tab-content[data-tab="click-to-call"] { display: block; }

.blog-card.hidden { display: none; }

.blog-content { font-size: 1.05rem; line-height: 1.8; color: rgba(26,20,56,.8); }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    color: #1A1438; font-weight: 800; line-height: 1.3; margin-top: 1.75em; margin-bottom: .6em; font-family: "Epilogue", sans-serif;
}
.blog-content h1 { font-size: 1.85rem; }
.blog-content h2 { font-size: 1.55rem; }
.blog-content h3 { font-size: 1.3rem; }
.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 a { color: #31255E; text-decoration: underline; }
.blog-content strong, .blog-content b { font-weight: 700; color: #1A1438; }
.blog-content blockquote { border-left: 3px solid #E76B6E; padding-left: 1em; margin: 1.2em 0; color: rgba(26,20,56,.65); font-style: italic; }
.blog-content img { border-radius: 1rem; margin: 1em 0; max-width: 100%; }
