/* v48 — home Business cards + sponsor ads carousel. Every surface sets its own text colour. */
/* ---------- home business cards ---------- */
.hb-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fit,minmax(250px,340px));justify-content:center}
.hb-card{position:relative;display:flex;flex-direction:column;background:#fff;color:#1d2433;border:1px solid #e9e1d9;border-radius:22px;overflow:hidden;box-shadow:0 14px 32px -24px rgba(25,30,45,.55);transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s,border-color .25s}
.hb-card:hover{transform:translateY(-6px);box-shadow:0 26px 44px -26px rgba(168,38,31,.5);border-color:#e3c3bd}
.hb-cover{position:relative;height:112px;background:linear-gradient(135deg,#a8261f,#d4a12a);overflow:hidden}
.hb-cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}.hb-card:hover .hb-cover img{transform:scale(1.06)}
.hb-cover.hb-plain:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 120%,rgba(255,255,255,.3),transparent 55%),repeating-linear-gradient(45deg,rgba(255,255,255,.07) 0 10px,transparent 10px 20px)}
.hb-logo{position:absolute;left:16px;top:80px;width:64px;height:64px;border-radius:16px;background:#fff;border:3px solid #fff;box-shadow:0 8px 18px -8px rgba(0,0,0,.5);display:grid;place-items:center;overflow:hidden;font-weight:800;font-size:1.5rem;color:#a8261f;z-index:2}
.hb-logo img{width:100%;height:100%;object-fit:contain;background:#fff;padding:3px}   /* contain = whole logo visible, never cropped */
.hb-badge{position:absolute;top:10px;right:10px;z-index:2;background:#ffd76a;color:#3a2600;font-size:.72rem;font-weight:800;padding:.22rem .6rem;border-radius:999px}
.hb-body{display:flex;flex-direction:column;gap:.4rem;padding:2.4rem 1.1rem 1.1rem;flex:1}
.hb-body h3{margin:0;font-size:1.08rem;line-height:1.3;color:#1d2433}
.hb-body h3 a{color:#1d2433;text-decoration:none}.hb-body h3 a:before{content:"";position:absolute;inset:0;z-index:1}
.hb-tag{margin:0;color:#566079;font-size:.88rem;line-height:1.5}
.hb-meta{display:flex;flex-wrap:wrap;gap:.35rem .7rem;align-items:center;color:#566079;font-size:.8rem}
.hb-chip{background:#fff1d6;color:#6b4400;border-radius:999px;padding:.18rem .65rem;font-size:.74rem;font-weight:700}
.hb-acts{position:relative;z-index:2;display:flex;gap:.5rem;margin-top:auto;padding-top:.6rem}
.hb-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:42px;border-radius:12px;color:#fff;text-decoration:none;font-weight:700;font-size:.85rem;transition:transform .15s,box-shadow .2s}
.hb-btn:hover{transform:translateY(-2px);box-shadow:0 10px 18px -10px rgba(0,0,0,.6)}.hb-btn svg{width:17px;height:17px}
.hb-call{background:#1b3a6b}.hb-wa{background:#0f7a3a}.hb-view{background:#fff;color:#a8261f;border:1.5px solid #a8261f}
@media(max-width:560px){.hb-grid{grid-template-columns:1fr}}
html[data-theme="dark"] .hb-card{background:#1c2130;border-color:#323a52;color:#e8ecf5}
html[data-theme="dark"] .hb-body h3,html[data-theme="dark"] .hb-body h3 a{color:#e8ecf5}html[data-theme="dark"] .hb-tag,html[data-theme="dark"] .hb-meta{color:#a9b2c8}
html[data-theme="dark"] .hb-view{background:transparent;color:#ffb4a8;border-color:#ffb4a8}

/* ---------- sponsor ads ---------- */
.sp{max-width:1180px;margin:1.3rem auto;padding:0 1rem}
.sp-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.5rem;flex-wrap:wrap}
.sp-label{background:#fff7e6;color:#6b4400;border:1px solid #f1d98e;padding:.15rem .7rem;border-radius:999px;font-size:.74rem;font-weight:800}
.sp-cta{color:#a8261f;font-weight:700;font-size:.8rem;text-decoration:none}.sp-cta:hover{text-decoration:underline}
.sp-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;border-radius:22px;box-shadow:0 18px 40px -28px rgba(25,30,45,.6);border:1px solid #e9e1d9;outline-offset:3px}
.sp-track::-webkit-scrollbar{display:none}
.sp-slide{position:relative;flex:0 0 100%;scroll-snap-align:center;display:grid;place-items:center;overflow:hidden;background:#f4efe9;aspect-ratio:16/5;text-decoration:none}
.sp-hero .sp-slide{aspect-ratio:16/5}.sp-strip .sp-slide{aspect-ratio:16/4}
.sp-slide:before{content:"";position:absolute;inset:-24px;background:var(--bg) center/cover;filter:blur(24px) saturate(1.2);opacity:.6}  /* soft blurred fill, so any banner shape looks right */
.sp-slide img{position:relative;width:100%;height:100%;object-fit:contain;display:block}
.sp-slide.sp-text{background:linear-gradient(125deg,#7a0f1d,#a8261f 55%,#c4561c)}.sp-slide.sp-text:before{display:none}
.sp-slide.sp-text span{position:relative;color:#fff;font-weight:800;font-size:clamp(1.2rem,4vw,2.2rem);text-align:center;padding:0 1rem}
a.sp-slide:focus-visible{outline:3px solid #ffbf3c;outline-offset:-3px}
.sp-dots{display:flex;justify-content:center;gap:.4rem;margin-top:.55rem}
.sp-dot{width:9px;height:9px;padding:0;border:0;border-radius:999px;background:#cfc6bd;cursor:pointer;transition:width .25s,background .25s;position:relative}
.sp-dot:after{content:"";position:absolute;inset:-9px}   /* bigger tap area */
.sp-dot.on{width:26px;background:#a8261f}
.sp-empty{display:flex;flex-direction:column;gap:.2rem;align-items:center;text-align:center;padding:1.4rem 1rem;border:2px dashed #d9b9b3;border-radius:22px;background:#fff8f6;color:#5a3a34;text-decoration:none}
.sp-empty b{color:#8a1a14;font-size:1.05rem}.sp-empty span{font-size:.88rem;color:#5a3a34}
.sp-empty:hover{background:#fff1ed}
@media(max-width:700px){.sp-hero .sp-slide,.sp-strip .sp-slide{aspect-ratio:16/8}.sp{margin:1rem auto}.sp-track{border-radius:16px}}
html[data-theme="dark"] .sp-label{background:#2e2815;color:#ffd76a;border-color:#6b5a2e}html[data-theme="dark"] .sp-cta{color:#ffb4a8}
html[data-theme="dark"] .sp-track{border-color:#323a52}html[data-theme="dark"] .sp-empty{background:#232a3d;border-color:#5a4a48}html[data-theme="dark"] .sp-empty b{color:#ffb4a8}html[data-theme="dark"] .sp-empty span{color:#d5dae6}
@media(prefers-reduced-motion:reduce){.hb-card,.hb-cover img,.sp-dot{transition:none}}
