/*
 * Bati Platform — shared design system.
 * Source of truth: owner-approved direction SITE-REBUILD/05_DESIGN_DIRECTION_PROFESSIONAL.md +
 * working-site/homepage-prototype & service-page-template (17/7/2026): navy #182B3A, CTA orange #B85A0E
 * (4.66:1 with white — #F5821F is decorative only), Assistant, full-pill buttons, white/#F7F8F9 sections,
 * 12px cards, real work photos. RTL with logical properties only.
 */
.bati {
	--b-navy: #182B3A;
	--b-navy-dark: #101E29;
	--b-navy-soft: #23405A;
	--b-orange: #B85A0E;
	--b-orange-dark: #954809;
	--b-orange-light: #F5821F;
	--b-orange-tint: #FFF1E2;
	--b-ink: #22282F;
	--b-muted: #5B6672;
	--b-on-navy: #C7D2DA;
	--b-bg: #FFFFFF;
	--b-bg-alt: #F7F8F9;
	--b-border: #E3E6E9;
	--b-ok: #1D7A46;
	--b-ok-tint: #ECFDF3;
	--b-warn: #8A5300;
	--b-warn-tint: #FFF8E6;
	--b-err: #B42318;
	--b-err-tint: #FEF3F2;
	--b-radius-pill: 24px;
	--b-radius-card: 12px;
	--b-radius-input: 10px;
	--b-shadow-card: 0 1px 3px rgba(16, 30, 41, .06), 0 1px 2px rgba(16, 30, 41, .04);
	--b-shadow-raised: 0 10px 28px rgba(16, 30, 41, .14);
	--b-font: 'Assistant', 'Segoe UI', Arial, sans-serif;
	--b-max: 1240px;
	direction: rtl;
	font-family: var(--b-font);
	color: var(--b-ink);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.bati *, .bati *::before, .bati *::after { box-sizing: border-box; }
.bati img { max-width: 100%; height: auto; display: block; }
.bati h1, .bati h2, .bati h3, .bati h4 { font-family: var(--b-font); color: var(--b-navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: 0; }
.bati h1 { font-size: clamp(26px, 3.2vw, 36px); }
.bati h2 { font-size: clamp(21px, 2.3vw, 27px); }
.bati h3 { font-size: 19px; font-weight: 700; }
.bati p { margin: 0 0 .8em; }
.bati a { color: var(--b-orange-dark); text-underline-offset: 3px; }
.bati a:hover { color: var(--b-navy); }
.bati :focus-visible { outline: 3px solid var(--b-orange-light); outline-offset: 2px; border-radius: 4px; }
.bati .bati-muted { color: var(--b-muted); }
.bati .bati-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bati .bati-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bati [dir="ltr"] { unicode-bidi: isolate; }

/* ---------- layout ---------- */
.bati .bati-container { max-width: var(--b-max); margin-inline: auto; padding-inline: 24px; }
.bati .bati-section { padding-block: 56px; }
.bati .bati-section--alt { background: var(--b-bg-alt); }
.bati .bati-section-title { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.bati .bati-section-title p { color: var(--b-muted); }
.bati .bati-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bati .bati-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bati .bati-split { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.bati .bati-stack > * + * { margin-top: 24px; }

/* ---------- buttons (full pill, approved) ---------- */
.bati .bati-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 26px; border-radius: var(--b-radius-pill);
	border: 2px solid var(--b-orange); background: var(--b-orange); color: #fff;
	font-family: var(--b-font); font-weight: 700; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.bati .bati-btn:hover, .bati .bati-btn:focus-visible { background: var(--b-orange-dark); border-color: var(--b-orange-dark); color: #fff; }
.bati .bati-btn:active { transform: translateY(1px); }
.bati .bati-btn--outline { background: transparent; color: var(--b-navy); border-color: var(--b-navy); }
.bati .bati-btn--outline:hover, .bati .bati-btn--outline:focus-visible { background: var(--b-navy); border-color: var(--b-navy); color: #fff; }
.bati .bati-btn--on-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.bati .bati-btn--on-navy:hover, .bati .bati-btn--on-navy:focus-visible { background: #fff; color: var(--b-navy); border-color: #fff; }
.bati .bati-btn--navy { background: var(--b-navy); border-color: var(--b-navy); }
.bati .bati-btn--navy:hover { background: var(--b-navy-dark); border-color: var(--b-navy-dark); }
.bati .bati-btn--ghost { background: transparent; color: var(--b-orange-dark); border-color: transparent; padding-inline: 8px; }
.bati .bati-btn--ghost:hover { background: var(--b-orange-tint); color: var(--b-orange-dark); border-color: transparent; }
.bati .bati-btn--whatsapp { background: #1E7E45; border-color: #1E7E45; }
.bati .bati-btn--whatsapp:hover { background: #17663A; border-color: #17663A; }
.bati .bati-btn--sm { min-height: 38px; padding: 7px 16px; font-size: 14px; }
.bati .bati-btn--block { width: 100%; }
.bati .bati-btn[disabled], .bati .bati-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.bati .bati-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- navy hero band (approved) ---------- */
.bati .bati-hero { background: var(--b-navy); color: #fff; padding-block: 44px; }
.bati .bati-hero .bati-container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.bati .bati-hero--text .bati-container { grid-template-columns: 1fr; max-width: 900px; }
.bati .bati-hero h1, .bati .bati-hero h2 { color: #fff; }
.bati .bati-hero .bati-lead { color: var(--b-on-navy); font-size: 18px; max-width: 46ch; }
.bati .bati-hero a:not(.bati-btn) { color: #fff; }
.bati .bati-hero__visual { border-radius: var(--b-radius-card); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 8px 24px rgba(0,0,0,.25); background: var(--b-navy-soft); }
.bati .bati-hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.bati .bati-tag { display: inline-block; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: var(--b-radius-pill); margin-bottom: 12px; }
.bati .bati-price-pill { display: inline-flex; align-items: baseline; gap: 8px; background: var(--b-orange); color: #fff; padding: 8px 18px; border-radius: var(--b-radius-pill); font-weight: 800; font-size: 18px; }
.bati .bati-price-pill small { font-size: 13px; font-weight: 500; opacity: .92; }

/* ---------- breadcrumb ---------- */
.bati .bati-breadcrumb { font-size: 14px; color: var(--b-muted); padding-block: 14px; }
.bati .bati-breadcrumb a { color: var(--b-muted); text-decoration: none; }
.bati .bati-breadcrumb a:hover { color: var(--b-orange-dark); }
.bati .bati-breadcrumb [aria-current] { color: var(--b-ink); font-weight: 600; }

/* ---------- cards ---------- */
.bati .bati-card { background: #fff; border: 1px solid var(--b-border); border-radius: var(--b-radius-card); padding: 24px; box-shadow: var(--b-shadow-card); }
.bati .bati-card + .bati-card { margin-top: 20px; }
.bati .bati-grid > .bati-card + .bati-card, .bati .bati-kpis > .bati-card + .bati-card, .bati .bati-split > .bati-card + .bati-card { margin-top: 0; }
.bati .bati-card h2 { font-size: 22px; }
.bati .bati-card--flush { padding: 0; overflow: hidden; }
.bati .bati-card--accent { border-color: var(--b-orange); }
.bati .bati-card--muted { background: var(--b-bg-alt); box-shadow: none; }
/* category / service card with photo (approved homepage pattern) */
.bati .bati-cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--b-border); border-radius: var(--b-radius-card); overflow: hidden; box-shadow: var(--b-shadow-card); text-decoration: none; color: inherit; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.bati a.bati-cat:hover, .bati a.bati-cat:focus-visible { box-shadow: var(--b-shadow-raised); transform: translateY(-2px); border-color: #d3d8dc; color: inherit; }
.bati .bati-cat__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--b-bg-alt); }
.bati .bati-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.bati .bati-cat__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bati .bati-cat__title { font-size: 19px; font-weight: 800; color: var(--b-navy); margin: 0; }
.bati .bati-cat__text { color: var(--b-muted); font-size: 15px; margin: 0; }
.bati .bati-cat__more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--b-orange-dark); font-size: 15px; }
.bati .bati-bullets { list-style: none; padding: 0; margin: 0; color: var(--b-muted); font-size: 15px; }
.bati .bati-bullets li { padding-inline-start: 18px; position: relative; margin-bottom: 6px; }
.bati .bati-bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--b-orange-light); }
.bati .bati-checks { list-style: none; padding: 0; margin: 0; }
.bati .bati-checks li { padding-inline-start: 28px; position: relative; margin-bottom: 8px; }
.bati .bati-checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--b-ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231D7A46' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 6.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- price table (approved) ---------- */
.bati .bati-price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--b-radius-card); overflow: hidden; box-shadow: var(--b-shadow-card); font-size: 15px; }
.bati .bati-price-table th, .bati .bati-price-table td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--b-border); vertical-align: top; }
.bati .bati-price-table th { background: var(--b-navy); color: #fff; font-weight: 700; font-size: 14px; }
.bati .bati-price-table td.bati-price, .bati .bati-price-table th.bati-price { text-align: end; white-space: nowrap; font-weight: 800; color: var(--b-navy); }
.bati .bati-price-table tr:last-child td { border-bottom: 0; }
.bati .bati-price-note { color: var(--b-muted); font-size: 14px; margin-top: 12px; }

/* ---------- FAQ (details/summary) ---------- */
.bati .bati-faq details { border-bottom: 1px solid var(--b-border); }
.bati .bati-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 16px; color: var(--b-navy); display: flex; justify-content: space-between; gap: 12px; }
.bati .bati-faq summary::-webkit-details-marker { display: none; }
.bati .bati-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--b-orange); flex: none; }
.bati .bati-faq details[open] summary::after { content: "−"; }
.bati .bati-faq details p { color: var(--b-muted); margin: 0 0 16px; }

/* ---------- forms ---------- */
.bati .bati-field { margin: 0 0 16px; }
.bati .bati-field label, .bati .bati-label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; color: var(--b-navy); }
.bati .bati-field .bati-req { color: var(--b-err); margin-inline-start: 2px; }
.bati .bati-hint { display: block; font-size: 13px; color: var(--b-muted); margin-top: 5px; }
.bati input[type=text], .bati input[type=tel], .bati input[type=email], .bati input[type=number], .bati input[type=date],
.bati input[type=datetime-local], .bati input[type=password], .bati input[type=url], .bati input[type=search], .bati select, .bati textarea {
	width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #C3CBD2; border-radius: var(--b-radius-input);
	font-family: var(--b-font); font-size: 16px; color: var(--b-ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.bati textarea { min-height: 120px; resize: vertical; }
.bati input:focus, .bati select:focus, .bati textarea:focus { border-color: var(--b-navy); box-shadow: 0 0 0 3px rgba(24,43,58,.12); outline: none; }
.bati [aria-invalid="true"] { border-color: var(--b-err) !important; }
.bati .bati-error { color: var(--b-err); font-size: 14px; margin-top: 5px; font-weight: 600; }
.bati .bati-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 15px; }
.bati .bati-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--b-orange); }
.bati .bati-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.bati .bati-choices label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--b-border); border-radius: var(--b-radius-pill); cursor: pointer; font-weight: 600; background: #fff; color: var(--b-ink); }
.bati .bati-choices input { position: absolute; opacity: 0; pointer-events: none; }
.bati .bati-choices label:has(input:checked) { border-color: var(--b-orange); background: var(--b-orange-tint); color: var(--b-orange-dark); }
.bati .bati-choices label:has(input:focus-visible) { outline: 3px solid var(--b-orange-light); outline-offset: 2px; }
.bati .bati-form-panel { background: var(--b-navy); color: #fff; border-radius: var(--b-radius-card); padding: 28px; }
.bati .bati-form-panel h2, .bati .bati-form-panel h3, .bati .bati-form-panel label { color: #fff; }
.bati .bati-form-panel .bati-choices label { color: var(--b-ink); }
.bati .bati-form-panel .bati-choices label:has(input:checked) { color: var(--b-orange-dark); }
.bati .bati-form-panel .bati-req { color: #FFC2B5; }
.bati .bati-form-panel a:not(.bati-btn) { color: #fff; text-decoration: underline; }

/* Theme guard: the Elementor kit (.elementor-kit-N h2, inputs radius) and OceanWP (form input[type=number] max-width)
   load after this file with equal specificity. body + .bati outranks them; module rules (.bati .x, 0-2-0) still win. */
body .bati h1, body .bati h2, body .bati h3, body .bati h4 { font-family: var(--b-font); color: var(--b-navy); line-height: 1.25; font-weight: 800; }
body .bati h1 { font-size: clamp(26px, 3.2vw, 36px); }
body .bati h2 { font-size: clamp(21px, 2.3vw, 27px); }
body .bati h3 { font-size: 19px; font-weight: 700; }
body .bati input[type=text], body .bati input[type=tel], body .bati input[type=email], body .bati input[type=number], body .bati input[type=date],
body .bati input[type=datetime-local], body .bati input[type=password], body .bati input[type=url], body .bati input[type=search], body .bati select, body .bati textarea {
	border-radius: var(--b-radius-input); max-width: none;
}

/* ---------- feedback ---------- */
.bati .bati-alert { padding: 14px 16px; border-radius: var(--b-radius-input); margin: 0 0 16px; border: 1px solid; font-size: 15px; }
.bati .bati-alert--ok { background: var(--b-ok-tint); border-color: #ABEFC6; color: #05603A; }
.bati .bati-alert--err { background: var(--b-err-tint); border-color: #FECDCA; color: var(--b-err); }
.bati .bati-alert--info { background: #EEF4F8; border-color: #C9D9E4; color: var(--b-navy); }
.bati .bati-alert--warn { background: var(--b-warn-tint); border-color: #FEDF89; color: var(--b-warn); }
.bati .bati-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 3px 11px; border-radius: var(--b-radius-pill); background: var(--b-bg-alt); color: var(--b-navy); border: 1px solid var(--b-border); }
.bati .bati-badge--ok { background: var(--b-ok-tint); color: var(--b-ok); border-color: #ABEFC6; }
.bati .bati-badge--warn { background: var(--b-warn-tint); color: var(--b-warn); border-color: #FEDF89; }
.bati .bati-badge--err { background: var(--b-err-tint); color: var(--b-err); border-color: #FECDCA; }
.bati .bati-badge--brand { background: var(--b-orange-tint); color: var(--b-orange-dark); border-color: #F8D2AE; }
.bati .bati-empty { text-align: center; padding: 40px 20px; color: var(--b-muted); background: var(--b-bg-alt); border-radius: var(--b-radius-card); }

/* ---------- steps / progress ---------- */
.bati .bati-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.bati .bati-steps li { flex: 1; font-size: 13px; color: var(--b-muted); font-weight: 600; }
.bati .bati-steps li::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--b-border); margin-bottom: 6px; }
.bati .bati-steps li.is-done::before, .bati .bati-steps li.is-current::before { background: var(--b-orange); }
.bati .bati-steps li.is-current { color: var(--b-navy); }

/* ---------- timeline ---------- */
.bati .bati-timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--b-border); }
.bati .bati-timeline li { position: relative; padding: 0 22px 18px 0; padding-inline: 22px 0; }
.bati .bati-timeline li::before { content: ""; position: absolute; inset-inline-start: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--b-orange); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--b-border); }
.bati .bati-timeline li:first-child::before { background: var(--b-navy); }
.bati .bati-timeline time { display: block; font-size: 13px; color: var(--b-muted); }

/* ---------- tables / tabs / kpis ---------- */
.bati .bati-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bati .bati-table th, .bati .bati-table td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--b-border); vertical-align: top; }
.bati .bati-table th { color: var(--b-muted); font-weight: 700; font-size: 13px; }
.bati .bati-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 2px solid var(--b-border); margin: 0 0 22px; }
.bati .bati-tabs a { padding: 12px 16px; text-decoration: none; color: var(--b-muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.bati .bati-tabs a:hover { color: var(--b-navy); }
.bati .bati-tabs a.is-active, .bati .bati-tabs a[aria-current] { border-color: var(--b-orange); color: var(--b-navy); }
.bati .bati-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: 0 0 22px; }
.bati .bati-kpi { background: #fff; border: 1px solid var(--b-border); border-radius: var(--b-radius-card); padding: 16px; }
.bati .bati-kpi b { display: block; font-size: 28px; color: var(--b-navy); line-height: 1.1; }
.bati .bati-kpi span { color: var(--b-muted); font-size: 14px; }

/* ---------- trust strip ---------- */
.bati .bati-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.bati .bati-trust__item { display: flex; gap: 12px; align-items: flex-start; }
.bati .bati-trust__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--b-orange-tint); color: var(--b-orange-dark); display: flex; align-items: center; justify-content: center; }
.bati .bati-trust__icon svg { width: 22px; height: 22px; }
.bati .bati-trust__item b { display: block; color: var(--b-navy); }
.bati .bati-trust__item span:not(.bati-trust__icon) { color: var(--b-muted); font-size: 14px; }

/* ---------- CTA banner + mobile sticky bar ---------- */
.bati .bati-cta-banner { background: var(--b-navy); color: #fff; border-radius: var(--b-radius-card); padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.bati .bati-cta-banner h2, .bati .bati-cta-banner h3 { color: #fff; margin: 0 0 4px; }
.bati .bati-cta-banner p { color: var(--b-on-navy); margin: 0; }
.bati .bati-sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 999; display: none; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(16,30,41,.14); }
.bati .bati-sticky-cta .bati-btn { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.bati .bati-hero .bati-container, .bati .bati-split, .bati .bati-grid--3 { grid-template-columns: 1fr; }
	.bati .bati-hero__visual { order: -1; }
	.bati .bati-section { padding-block: 40px; }
}
@media (max-width: 720px) {
	.bati { font-size: 16px; }
	.bati .bati-container { padding-inline: 16px; }
	.bati .bati-hero { padding-block: 28px; }
	.bati .bati-card { padding: 18px; }
	.bati .bati-sticky-cta { display: flex; }
	.bati .bati-cta-banner { padding: 22px; }
	.bati .bati-table--stack thead { display: none; }
	.bati .bati-table--stack tr { display: block; border: 1px solid var(--b-border); border-radius: var(--b-radius-input); margin-bottom: 12px; padding: 6px 10px; }
	.bati .bati-table--stack td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 0; }
	.bati .bati-table--stack td::before { content: attr(data-label); font-weight: 700; color: var(--b-muted); }
	.bati .bati-price-table th, .bati .bati-price-table td { padding: 11px 10px; font-size: 14px; }
	.bati .bati-btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.bati *, .bati *::before, .bati *::after { transition: none !important; animation: none !important; }
}
