/*
 * Catalog module — layout for /services/, category hubs, bati_service pages and the blocks appended to
 * existing service / city pages. Builds on the shared design system (assets/css/bati.css, --b-* tokens).
 * Logical properties only (RTL). Prefix: .bati-cx-*
 */

/* ---------- full-width templates inside the theme (OceanWP + Elementor header/footer) ---------- */
.bati-fw-page { width: 100%; clear: both; background: #fff; }
.bati-fw-page > .bati.bati-catalog { margin: 0; max-width: none; padding: 0; }
body.bati-fw #main #content-wrap { padding: 0; }

/* theme/kit typography must not leak into our components */
.bati.bati-catalog h1, .bati.bati-catalog h2, .bati.bati-catalog h3 { font-family: var(--b-font); letter-spacing: 0; text-transform: none; }
.bati.bati-catalog h1 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.2; }
.bati.bati-catalog h2 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 800; line-height: 1.25; }
.bati.bati-catalog h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.bati.bati-catalog ul, .bati.bati-catalog ol { margin: 0; padding: 0; }
.bati.bati-catalog [role="list"] { list-style: none; }
.bati.bati-catalog [hidden] { display: none !important; }
.bati .bati-cx-center { text-align: center; }
.bati .bati-cx-narrow { max-width: 900px; }
.bati .bati-cx-ico { display: block; flex: none; }

/* ---------- breadcrumb (light row above the hero) ---------- */
.bati .bati-cx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.bati .bati-cx-crumbs li { display: inline-flex; align-items: center; }
.bati .bati-cx-crumbs li + li::before { content: "›"; margin-inline: 8px; color: #9AA4AE; }
.bati .bati-cx-crumbs a { display: inline-block; padding-block: 4px; }

/* ---------- navy hero ---------- */
.bati .bati-cx-hero { padding-block: 48px; }
.bati .bati-cx-hero h1 { color: #fff; margin-bottom: 12px; }
.bati .bati-cx-hero .bati-lead { margin-bottom: 18px; }
.bati .bati-cx-hero__actions { margin-top: 22px; }
.bati .bati-cx-hero .bati-price-pill { margin: 4px 0 0; }
.bati a.bati-cx-tag { text-decoration: none; color: #fff; }
.bati a.bati-cx-tag:hover { background: rgba(255,255,255,.2); color: #fff; }
.bati .bati-cx-note { display: flex; gap: 10px; align-items: flex-start; max-width: 52ch; margin: 0 0 6px; padding: 12px 14px; border-radius: var(--b-radius-input); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #E4EBF0; font-size: 15px; }
.bati .bati-cx-note .bati-cx-ico { color: var(--b-orange-light); margin-top: 2px; }
.bati .bati-hero .bati-btn--on-navy .bati-cx-ico, .bati .bati-cta-banner .bati-cx-ico { color: currentColor; }

/* search box in the index hero */
.bati .bati-cx-search { position: relative; max-width: 560px; margin: 0; }
.bati .bati-cx-search input[type=search] { min-height: 56px; padding-inline: 48px 16px; border: 0; border-radius: var(--b-radius-pill); box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 16px; }
.bati .bati-cx-search input[type=search]:focus { box-shadow: 0 0 0 3px var(--b-orange-light); }
.bati .bati-cx-search__icon { position: absolute; inset-inline-start: 18px; top: 18px; color: var(--b-muted); pointer-events: none; }
.bati .bati-cx-search .bati-hint { color: var(--b-on-navy); font-size: 14px; min-height: 1.4em; padding-inline-start: 18px; }

/* photo placeholder (until the IMAGES unit delivers a key) */
.bati .bati-cx-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100%; color: #fff;
	background: radial-gradient(circle at 85% 15%, rgba(245,130,31,.55) 0, rgba(245,130,31,0) 42%), linear-gradient(135deg, var(--b-navy) 0%, var(--b-navy-soft) 70%, #2E4A63 100%); }
.bati .bati-cx-ph .bati-cx-ico { width: 30%; height: auto; max-width: 96px; min-width: 44px; opacity: .92; stroke-width: 1.4; }
.bati .bati-hero__visual .bati-cx-ph .bati-cx-ico { max-width: 132px; }

/* ---------- category cards with photos ---------- */
.bati .bati-cx-catgrid { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bati .bati-cx-catgrid > li { display: flex; }
.bati .bati-cx-cat { width: 100%; text-align: center; }
.bati .bati-cx-cat .bati-cat__img { display: block; position: relative; }
.bati .bati-cx-cat .bati-cat__img img { transition: transform .35s ease; }
.bati a.bati-cx-cat:hover .bati-cat__img img { transform: scale(1.03); }
.bati .bati-cx-cat .bati-cat__body { align-items: center; padding: 0 20px 22px; }
.bati .bati-cx-cat__icon { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: -32px auto 4px; border-radius: 50%; background: #fff; color: var(--b-navy); border: 3px solid #fff; box-shadow: 0 2px 10px rgba(16,30,41,.16); }
.bati .bati-cx-cat__icon .bati-cx-ico { width: 28px; height: 28px; }
.bati .bati-cx-cat--reg { border-color: var(--b-orange-light); }
.bati .bati-cx-cat--reg .bati-cx-cat__icon { background: var(--b-orange-tint); color: var(--b-orange-dark); }
.bati .bati-cx-cat .bati-cat__title { font-size: 18px; line-height: 1.3; }
.bati .bati-cx-cat .bati-bullets { display: block; margin: 2px 0 4px; }
.bati .bati-cx-bullet { display: block; color: var(--b-muted); font-size: 14.5px; line-height: 1.45; margin-bottom: 4px; }
.bati .bati-cx-bullet::before { content: "•"; color: var(--b-orange-light); font-weight: 800; margin-inline-end: 6px; }
.bati .bati-cx-catgrid--compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.bati .bati-cx-catgrid--compact .bati-cat__img { aspect-ratio: 16 / 9; }

/* ---------- index: all services by category (clean link lists) ---------- */
.bati .bati-cx-all .bati-container { columns: 2 440px; column-gap: 24px; }
.bati .bati-cx-all .bati-section-title, .bati .bati-cx-all .bati-empty { column-span: all; }
.bati .bati-cx-group { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 24px; padding: 20px 22px 14px; background: #fff; border: 1px solid var(--b-border); border-radius: var(--b-radius-card); box-shadow: var(--b-shadow-card); scroll-margin-top: 100px; }
.bati .bati-cx-group__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--b-orange-light); }
.bati .bati-cx-group__head h3 { margin: 0; font-size: 18px; flex: 1; }
.bati .bati-cx-group__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--b-orange-tint); color: var(--b-orange-dark); flex: none; }
.bati .bati-cx-group__icon .bati-cx-ico { width: 22px; height: 22px; }
.bati a.bati-cx-group__all { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--b-orange-dark); padding-block: 10px; }
.bati .bati-cx-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.bati .bati-cx-links li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--b-border); }
.bati .bati-cx-links a { flex: 1; display: block; padding: 11px 0; min-height: 44px; text-decoration: none; color: var(--b-navy); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.bati .bati-cx-links a:hover, .bati .bati-cx-links a:focus-visible { color: var(--b-orange-dark); }
.bati .bati-cx-lic { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--b-ok); background: var(--b-ok-tint); border-radius: var(--b-radius-pill); padding: 2px 9px 2px 8px; }
.bati .bati-cx-lic .bati-cx-ico { width: 14px; height: 14px; }

/* ---------- trust + CTA sections ---------- */
.bati .bati-cx-trustsec { padding-block: 44px; border-bottom: 1px solid var(--b-border); }
.bati .bati-cx-trustsec .bati-trust { gap: 28px; }
.bati .bati-cx-ctasec { padding-block: 48px 64px; }
.bati .bati-cx-banner { gap: 24px; }
.bati .bati-cx-banner h2 { font-size: clamp(21px, 2.2vw, 26px); }

/* ---------- hub: service cards ---------- */
.bati .bati-cx-svcgrid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bati .bati-cx-svc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--b-border); border-radius: var(--b-radius-card); box-shadow: var(--b-shadow-card); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.bati .bati-cx-svc:hover, .bati .bati-cx-svc:focus-within { box-shadow: var(--b-shadow-raised); transform: translateY(-2px); border-color: #d3d8dc; }
.bati .bati-cx-svc__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--b-orange-tint); color: var(--b-orange-dark); margin-bottom: 4px; }
.bati .bati-cx-svc__icon .bati-cx-ico { width: 22px; height: 22px; }
.bati.bati-catalog .bati-cx-svc__title { margin: 0; font-size: 18px; }
.bati .bati-cx-svc__title a { color: var(--b-navy); text-decoration: none; }
.bati .bati-cx-svc__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bati .bati-cx-svc__title a:focus-visible { outline: none; }
.bati .bati-cx-svc__title a:focus-visible::after { outline: 3px solid var(--b-orange-light); outline-offset: 2px; }
.bati .bati-cx-svc__text { margin: 0; color: var(--b-muted); font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bati .bati-cx-svc__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bati .bati-cx-svc__price { font-weight: 800; color: var(--b-navy); background: var(--b-bg-alt); border: 1px solid var(--b-border); border-radius: var(--b-radius-pill); padding: 3px 12px; font-size: 15px; }
.bati .bati-cx-svc__more { margin-inline-start: auto; font-weight: 700; font-size: 14.5px; color: var(--b-orange-dark); }
.bati .bati-cx-svcgrid--sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bati .bati-cx-svcgrid--sm .bati-cx-svc { padding: 18px; }
.bati .bati-cx-svcgrid--sm .bati-cx-svc__title { font-size: 16.5px; }

/* hub: other categories */
.bati .bati-cx-others { padding-block: 48px 8px; }
.bati .bati-cx-others h2 { margin-bottom: 18px; }
.bati .bati-cx-otherlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bati .bati-cx-otherlist a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--b-border); border-radius: var(--b-radius-card); background: #fff; color: var(--b-navy); font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.bati .bati-cx-otherlist a:hover, .bati .bati-cx-otherlist a:focus-visible { border-color: var(--b-orange-light); background: var(--b-orange-tint); color: var(--b-navy); }
.bati .bati-cx-otherlist__icon { display: flex; color: var(--b-orange-dark); }

/* ---------- FAQ inside cards ---------- */
.bati .bati-faq.bati-card { padding-block: 8px 12px; }
.bati .bati-faq.bati-card > h2, .bati .bati-faq.bati-card > h3 { margin: 16px 0 4px; }
.bati .bati-faq details:last-child { border-bottom: 0; }
.bati .bati-faq summary { min-height: 44px; align-items: center; }

/* ---------- bati_service page ---------- */
.bati .bati-cx-body { padding-block: 44px 64px; }
.bati .bati-cx-split { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.bati .bati-cx-main > * + * { margin-top: 24px; }
.bati .bati-cx-main .bati-card h2 { font-size: 24px; }
.bati .bati-cx-main .bati-card h3 { margin-top: 24px; font-size: 18px; }
.bati .bati-cx-prose { color: var(--b-ink); }
.bati .bati-cx-prose p:last-child { margin-bottom: 0; }
.bati .bati-cx-cols { columns: 2 240px; column-gap: 28px; }
.bati .bati-cx-cols li { break-inside: avoid; }
.bati .bati-cx-reg { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
.bati .bati-cx-reg .bati-cx-ico { margin-top: 1px; color: var(--b-navy); }
.bati .bati-cx-steps { list-style: none; counter-reset: bati-step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bati .bati-cx-steps li { counter-increment: bati-step; position: relative; padding: 14px 14px 14px; padding-inline-start: 56px; background: var(--b-bg-alt); border-radius: var(--b-radius-input); font-size: 14.5px; }
.bati .bati-cx-steps li::before { content: counter(bati-step); position: absolute; inset-inline-start: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--b-orange); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.bati .bati-cx-steps b { display: block; color: var(--b-navy); font-size: 15.5px; }
.bati .bati-cx-steps span { color: var(--b-muted); }
.bati .bati-cx-related h2 { margin-bottom: 14px; font-size: 22px; }

.bati .bati-cx-side { position: sticky; top: 24px; }
.bati .bati-cx-side > .bati-card + .bati-card { margin-top: 20px; }
.bati .bati-cx-side .bati-card { padding: 22px; }
.bati.bati-catalog .bati-cx-side__h, .bati .bati-cx-side__h { font-size: 17px; font-weight: 800; color: var(--b-navy); margin: 0 0 10px; line-height: 1.3; }
.bati .bati-cx-sidelist li { border-bottom: 1px solid var(--b-border); }
.bati .bati-cx-sidelist li:last-child { border-bottom: 0; }
.bati .bati-cx-sidelist a { display: block; padding: 10px 0; min-height: 44px; color: var(--b-navy); font-weight: 600; font-size: 15px; text-decoration: none; }
.bati .bati-cx-sidelist a:hover { color: var(--b-orange-dark); }
.bati a.bati-cx-sideall { display: inline-block; margin-top: 8px; padding-block: 8px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.bati .bati-cx-ctacard { background: var(--b-bg-alt); box-shadow: none; text-align: center; }
.bati .bati-cx-ctacard__t { font-weight: 800; color: var(--b-navy); font-size: 19px; margin: 0 0 4px; }
.bati .bati-cx-ctacard__s { color: var(--b-muted); font-size: 15px; margin: 0 0 14px; }
.bati .bati-cx-ctacard .bati-btn + .bati-btn { margin-top: 10px; }

/* price card: rendered by the pricing module (bati_service_price_html) - only spacing here */
.bati .bati-cx-pricebox > .bati { margin: 0; }
.bati .bati-cx-side > .bati-cx-pricebox + .bati-card, .bati .bati-cx-block__side > .bati-cx-pricebox + * { margin-top: 20px; }

/* ---------- block appended to existing service posts ---------- */
.bati.bati-cx-block { margin: 40px 0; padding: 28px; max-width: none; background: var(--b-bg-alt); border-radius: var(--b-radius-card); clear: both; }
.bati .bati-cx-block__head { margin-bottom: 18px; }
.bati .bati-cx-block__head .bati-badge { gap: 6px; margin-bottom: 10px; }
.bati .bati-cx-block__head .bati-badge .bati-cx-ico { width: 16px; height: 16px; }
.bati.bati-catalog .bati-cx-block__head h2 { margin: 0 0 6px; }
.bati .bati-cx-block__lead { color: var(--b-muted); margin: 0; max-width: 70ch; }
.bati .bati-cx-block__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.bati .bati-cx-block__main > .bati-card + .bati-card { margin-top: 20px; }
.bati .bati-cx-block__main .bati-card h3 { margin-bottom: 14px; }
.bati .bati-cx-block__side > * + * { margin-top: 20px; }
.bati .bati-cx-panel { padding: 24px; }
.bati .bati-cx-panel__t { color: #fff; font-weight: 800; font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
.bati .bati-cx-panel__s { color: var(--b-on-navy); font-size: 15px; margin: 0 0 16px; }
.bati .bati-cx-panel .bati-btn + .bati-btn { margin-top: 10px; }
.bati .bati-cx-relrow { margin-top: 24px; }
.bati .bati-cx-relrow h3 { margin-bottom: 6px; }
.bati .bati-cx-relrow .bati-cx-links { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ---------- block appended to city pages ---------- */
.bati.bati-cx-area { margin: 40px 0; max-width: none; clear: both; }
.bati .bati-cx-areahead { margin-bottom: 24px; }
.bati .bati-cx-areahead__pin { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--b-orange-light); margin-bottom: 4px; }
.bati .bati-cx-area .bati-cx-center { margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.bati .bati-cx-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.bati .bati-cx-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bati .bati-cx-split, .bati .bati-cx-block__grid { grid-template-columns: minmax(0, 1fr); }
	.bati .bati-cx-side { position: static; }
	.bati .bati-cx-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.bati .bati-cx-hero { padding-block: 24px 32px; }
	.bati .bati-cx-hero__actions .bati-btn { flex: 1 1 100%; }
	.bati .bati-cx-catgrid { gap: 14px; }
	.bati .bati-cx-catgrid .bati-cat__body { padding: 0 12px 16px; }
	.bati .bati-cx-cat .bati-cat__title { font-size: 16px; }
	.bati .bati-cx-bullet { font-size: 13.5px; }
	.bati .bati-cx-links { grid-template-columns: minmax(0, 1fr); }
	.bati .bati-cx-group { padding: 16px 16px 8px; }
	.bati .bati-cx-body { padding-block: 24px 40px; }
	.bati.bati-cx-block { padding: 18px 14px; margin-inline: 0; }
	.bati .bati-cx-banner .bati-actions, .bati .bati-cx-areahead .bati-actions { width: 100%; }
	.bati .bati-cx-banner .bati-actions .bati-btn, .bati .bati-cx-areahead .bati-actions .bati-btn { flex: 1 1 100%; }
	.bati-fw-page { padding-bottom: 76px; }
	.bati .bati-cx-sticky { box-sizing: border-box; }
}
@media (max-width: 480px) {
	.bati .bati-cx-catgrid:not(.bati-cx-catgrid--compact) .bati-cx-bullet { display: none; }
	.bati .bati-cx-catgrid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bati .bati-cx-catgrid--compact .bati-cx-bullet { display: none; }
	.bati .bati-cx-cat__icon { width: 48px; height: 48px; margin-top: -26px; }
	.bati .bati-cx-cat__icon .bati-cx-ico { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.bati .bati-cx-cat .bati-cat__img img, .bati .bati-cx-svc { transition: none; }
}

/* no photo yet: the placeholder already carries the large icon */
.bati .bati-cx-cat--ph .bati-cx-cat__icon { display: none; }
.bati .bati-cx-cat--ph .bati-cat__body { padding-top: 18px; }
