/* ==========================================================================
   Japan Clinic – main stylesheet (mobile-first, RTL via logical properties)
   ========================================================================== */

:root {
	--jc-brand: #d71920;
	--jc-brand-ink: #b3121a;
	--jc-brand-soft: #fdecec;
	--jc-ink: #18181c;
	--jc-text: #2b2b31;
	--jc-muted: #6c6c78;
	--jc-line: #ececf0;
	--jc-surface: #f6f6f8;
	--jc-bg: #ffffff;
	--jc-dark: #141417;
	--jc-radius: 16px;
	--jc-radius-sm: 10px;
	--jc-shadow: 0 1px 2px rgba(20, 20, 23, .05), 0 8px 24px rgba(20, 20, 23, .06);
	--jc-shadow-lg: 0 2px 6px rgba(20, 20, 23, .06), 0 24px 48px rgba(20, 20, 23, .12);
	--jc-container: 1240px;
	--jc-gutter: 16px;
	--jc-header-h: 68px;
	--jc-ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
	:root { --jc-gutter: 24px; --jc-header-h: 80px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--jc-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-family: var(--jc-font, Tahoma, sans-serif);
	font-size: 16px;
	line-height: 1.85;
	color: var(--jc-text);
	background: var(--jc-bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01";
}
@media (min-width: 768px) { body { font-size: 17px; } }
body.jc-has-mobile-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.jc-has-mobile-bar { padding-bottom: 0; } }

button, input, select, textarea { font: inherit; color: inherit; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--jc-brand); text-decoration: none; }
a:hover { color: var(--jc-brand-ink); }
:focus-visible { outline: 2px solid var(--jc-brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--jc-ink); line-height: 1.45; font-weight: 800; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.jc-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--jc-ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.jc-skip:focus { top: 12px; color: #fff; }

.jc-container { width: 100%; max-width: var(--jc-container); margin-inline: auto; padding-inline: var(--jc-gutter); }
.jc-section { padding-block: 48px; }
@media (min-width: 768px) { .jc-section { padding-block: 72px; } }
.jc-section--soft { background: var(--jc-surface); }
.jc-only-desktop { display: none; }
@media (min-width: 1024px) { .jc-only-desktop { display: block; } }

/* ---------- Buttons & chips ---------- */
.jc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
	transition: background .2s var(--jc-ease), color .2s var(--jc-ease), border-color .2s, transform .2s var(--jc-ease), box-shadow .2s;
}
.jc-btn:active { transform: translateY(1px); }
.jc-btn--primary { background: var(--jc-brand); color: #fff; box-shadow: 0 6px 16px rgba(215, 25, 32, .25); }
.jc-btn--primary:hover { background: var(--jc-brand-ink); color: #fff; }
.jc-btn--ghost { background: #fff; color: var(--jc-ink); border-color: var(--jc-line); }
.jc-btn--ghost:hover { border-color: var(--jc-ink); color: var(--jc-ink); }
.jc-btn--light { background: #fff; color: var(--jc-brand); }
.jc-btn--light:hover { background: #fff5f5; color: var(--jc-brand-ink); }
.jc-btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.jc-btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.jc-btn--lg { min-height: 54px; padding-inline: 26px; font-size: 16px; }

.jc-chip {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
	background: var(--jc-surface); color: var(--jc-text); font-size: 13px; font-weight: 600; line-height: 1.6;
}
.jc-chip:hover { background: var(--jc-line); color: var(--jc-ink); }
.jc-chip--brand { background: var(--jc-brand-soft); color: var(--jc-brand-ink); }
.jc-eyebrow { color: var(--jc-brand); font-weight: 700; font-size: 14px; letter-spacing: 0; margin-bottom: 10px; }

/* ---------- Top bar ---------- */
.jc-topbar { display: none; background: var(--jc-dark); color: #c9c9d1; font-size: 13px; }
.jc-topbar__row { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.jc-topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.jc-topbar__address { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.jc-topbar__phones { gap: 16px; }
.jc-topbar a { color: #fff; }
@media (min-width: 1024px) { .jc-topbar { display: block; } }

/* ---------- Header ---------- */
.jc-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid transparent;
	transition: box-shadow .25s, border-color .25s;
}
/* blur on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile drawer */
.jc-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
}
body.jc-menu-open .jc-header { z-index: 300; }
.admin-bar .jc-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .jc-header { top: 32px; } }
.jc-header.is-scrolled { border-color: var(--jc-line); box-shadow: 0 6px 24px rgba(20, 20, 23, .06); }
.jc-header__row { display: flex; align-items: center; gap: 16px; min-height: var(--jc-header-h); }

.jc-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.jc-brand .custom-logo { display: block; max-height: 46px; width: auto; }
@media (min-width: 768px) { .jc-brand .custom-logo { max-height: 54px; } }
.jc-brand__text { display: inline-flex; align-items: center; gap: 8px; color: var(--jc-ink); font-weight: 900; font-size: 20px; }
.jc-brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--jc-brand); color: #fff; }
.jc-brand__tag { display: none; font-size: 12px; color: var(--jc-muted); padding-inline-start: 12px; border-inline-start: 1px solid var(--jc-line); line-height: 1.5; max-width: 150px; }
@media (min-width: 1280px) { .jc-brand__tag { display: block; } }

.jc-header__actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.jc-header__phone { display: none; align-items: center; gap: 10px; color: var(--jc-ink); }
.jc-header__phone-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--jc-brand-soft); color: var(--jc-brand); }
.jc-header__phone-text { display: flex; flex-direction: column; line-height: 1.3; }
.jc-header__phone-text small { color: var(--jc-muted); font-size: 12px; }
.jc-header__phone-text b { font-size: 15px; }
@media (min-width: 1360px) { .jc-header__phone { display: inline-flex; } }
.jc-header__cta { display: none; }
@media (min-width: 640px) { .jc-header__cta { display: inline-flex; } }

.jc-burger, .jc-nav__close {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
	border: 1px solid var(--jc-line); background: #fff; color: var(--jc-ink); cursor: pointer;
}
@media (min-width: 1200px) { .jc-burger { display: none; } }

.jc-cart { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--jc-ink); border: 1px solid var(--jc-line); }
.jc-cart__count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--jc-brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* ---------- Navigation: mobile drawer ---------- */
.jc-nav {
	position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 200;
	width: min(88vw, 380px); background: #fff; display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .35s var(--jc-ease); visibility: hidden;
	box-shadow: var(--jc-shadow-lg); overflow: hidden;
}
[dir="ltr"] .jc-nav { transform: translateX(-100%); }
.jc-nav.is-open { transform: none; visibility: visible; }
.jc-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--jc-gutter); border-bottom: 1px solid var(--jc-line); }
.jc-nav__title { font-weight: 800; color: var(--jc-ink); }
.jc-nav__list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.jc-nav__item { position: relative; }
.jc-nav__item--d0 { border-bottom: 1px solid var(--jc-surface); }
.jc-nav__link { display: flex; align-items: center; gap: 10px; padding: 13px var(--jc-gutter); color: var(--jc-ink); font-weight: 700; }
.jc-nav__item--d0.has-sub > .jc-nav__link { padding-inline-end: 60px; }
.jc-nav__toggle {
	position: absolute; inset-inline-end: 8px; top: 6px; width: 40px; height: 40px; border-radius: 10px;
	border: 0; background: var(--jc-surface); color: var(--jc-ink); display: grid; place-items: center; cursor: pointer;
}
.jc-nav__toggle svg { transition: transform .25s var(--jc-ease); }
.jc-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.jc-nav__item.is-current > .jc-nav__link { color: var(--jc-brand); }
.jc-mega, .jc-dropdown { display: none; background: var(--jc-surface); }
.jc-nav__item.is-expanded > .jc-mega, .jc-nav__item.is-expanded > .jc-dropdown { display: block; }
.jc-mega__list, .jc-dropdown__list, .jc-mega__sublist { list-style: none; margin: 0; padding: 4px 0; }
.jc-mega .jc-nav__link, .jc-dropdown .jc-nav__link { font-weight: 500; font-size: 15px; padding-block: 10px; padding-inline-start: calc(var(--jc-gutter) + 12px); }
.jc-mega__sublist .jc-nav__link { padding-inline-start: calc(var(--jc-gutter) + 28px); color: var(--jc-muted); font-size: 14px; }
.jc-mega__thumb { width: 44px; height: 30px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #fff; }
.jc-nav__desc { display: none; }
.jc-nav__foot { padding: 16px var(--jc-gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--jc-line); background: #fff; }
.jc-nav__foot .jc-btn { width: 100%; }
.jc-nav__phones { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.jc-nav__phones a { color: var(--jc-ink); }
.jc-nav__addr { display: flex; gap: 8px; color: var(--jc-muted); font-size: 13px; margin: 6px 0 0; line-height: 1.7; }
.jc-nav__addr .jc-icon { flex-shrink: 0; margin-top: 3px; }
.jc-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(15, 15, 18, .45); opacity: 0; transition: opacity .3s; }
.jc-scrim.is-open { opacity: 1; }
body.jc-menu-open { overflow: hidden; }

/* ---------- Navigation: desktop ---------- */
@media (min-width: 1200px) {
	.jc-nav {
		position: static; width: auto; transform: none; visibility: visible; background: none;
		box-shadow: none; overflow: visible; flex: 1; display: block;
	}
	.jc-nav__head, .jc-nav__foot, .jc-nav__toggle { display: none; }
	.jc-nav__list { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0; overflow: visible; }
	.jc-nav__item--d0 { border: 0; position: static; }
	.jc-nav__item--d0:not(.is-mega) { position: relative; }
	.jc-nav__item--d0 > .jc-nav__link {
		padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 700; gap: 6px;
		min-height: var(--jc-header-h); border-radius: 0; position: relative;
	}
	.jc-nav__item--d0.has-sub > .jc-nav__link { padding-inline-end: 14px; }
	.jc-nav__item--d0.has-sub > .jc-nav__link::after {
		content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0;
		transform: translateY(-2px) rotate(45deg); opacity: .5; margin-inline-start: 2px;
	}
	.jc-nav__item--d0 > .jc-nav__link::before {
		content: ""; position: absolute; inset-inline: 14px; bottom: 16px; height: 2px; border-radius: 2px;
		background: var(--jc-brand); transform: scaleX(0); transition: transform .25s var(--jc-ease);
	}
	.jc-nav__item--d0:hover > .jc-nav__link::before, .jc-nav__item--d0.is-current > .jc-nav__link::before,
	.jc-nav__item--d0:focus-within > .jc-nav__link::before { transform: scaleX(1); }

	.jc-mega, .jc-dropdown {
		display: block; position: absolute; top: 100%; z-index: 120; background: transparent;
		opacity: 0; visibility: hidden; transform: translateY(8px);
		transition: opacity .2s var(--jc-ease), transform .2s var(--jc-ease), visibility 0s .2s;
	}
	.jc-nav__item--d0:hover > .jc-mega, .jc-nav__item--d0:hover > .jc-dropdown,
	.jc-nav__item--d0:focus-within > .jc-mega, .jc-nav__item--d0:focus-within > .jc-dropdown,
	.jc-nav__item.is-expanded > .jc-mega, .jc-nav__item.is-expanded > .jc-dropdown {
		opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
	}
	.jc-dropdown { inset-inline-start: 0; min-width: 260px; }
	.jc-dropdown__inner { background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow-lg); padding: 8px; }
	.jc-dropdown .jc-nav__link { padding: 9px 12px; border-radius: 10px; font-size: 14.5px; }
	.jc-dropdown .jc-nav__link:hover { background: var(--jc-surface); }

	.jc-mega { inset-inline: 0; }
	.jc-mega__inner {
		max-width: var(--jc-container); margin-inline: auto; margin-top: 0;
		background: #fff; border: 1px solid var(--jc-line); border-radius: 0 0 22px 22px;
		box-shadow: var(--jc-shadow-lg); padding: 22px;
	}
	.jc-mega__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; padding: 0; }
	.jc-mega .jc-nav__item--d1 > .jc-nav__link {
		padding: 10px; border-radius: 12px; font-weight: 700; font-size: 14.5px; gap: 12px;
		transition: background .2s;
	}
	.jc-mega .jc-nav__item--d1 > .jc-nav__link:hover { background: var(--jc-surface); color: var(--jc-brand); }
	.jc-mega__thumb { width: 64px; height: 42px; border-radius: 8px; }
	.jc-mega .jc-nav__item--d1 > .jc-nav__link { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 0; align-items: center; }
	.jc-mega .jc-nav__item--d1 > .jc-nav__link > .jc-mega__thumb { grid-row: span 2; }
	.jc-mega .jc-nav__desc { display: block; font-size: 12px; color: var(--jc-muted); font-weight: 400; line-height: 1.5; grid-column: 2; }
	.jc-mega .jc-nav__item--d1.has-sub > .jc-nav__link { flex-wrap: wrap; }
	.jc-mega__sublist { padding: 0 0 8px; }
	.jc-mega__sublist .jc-nav__link { padding: 4px 10px 4px 10px; font-size: 13.5px; font-weight: 500; }
	.jc-mega__sublist .jc-nav__link:hover { color: var(--jc-brand); }
}
@media (min-width: 1280px) {
	.jc-nav__item--d0 > .jc-nav__link { padding-inline: 16px; }
}

/* ---------- Mobile bottom bar ---------- */
.jc-mbar {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 90; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: rgba(255, 255, 255, .97); border-top: 1px solid var(--jc-line);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	box-shadow: 0 -6px 24px rgba(20, 20, 23, .06);
}
.jc-mbar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-height: 54px; border: 0; background: none; color: var(--jc-ink); font-size: 12px; font-weight: 700; border-radius: 12px; cursor: pointer;
}
.jc-mbar__item:hover { color: var(--jc-brand); }
.jc-mbar__item--call { background: var(--jc-brand); color: #fff; margin: 2px 4px; box-shadow: 0 6px 14px rgba(215, 25, 32, .3); }
.jc-mbar__item--call:hover { color: #fff; }
@media (min-width: 1024px) { .jc-mbar { display: none; } }

/* ---------- Page heads ---------- */
.jc-pagehead { padding-block: 24px 28px; background: linear-gradient(180deg, var(--jc-surface), #fff); border-bottom: 1px solid var(--jc-line); }
@media (min-width: 768px) { .jc-pagehead { padding-block: 36px 44px; } }
.jc-pagehead__title { font-size: clamp(26px, 5.4vw, 42px); margin: 8px 0 10px; letter-spacing: -.3px; }
.jc-pagehead__lead, .jc-pagehead__desc { color: var(--jc-muted); max-width: 760px; font-size: 1.05em; }
.jc-trust { list-style: none; margin: 16px calc(var(--jc-gutter) * -1) 0; padding: 0 var(--jc-gutter) 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.jc-trust::-webkit-scrollbar { display: none; }
.jc-trust li { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 768px) { .jc-trust { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.jc-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid var(--jc-line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--jc-text); }
.jc-trust .jc-icon { color: var(--jc-brand); }

.jc-crumbs { font-size: 13px; color: var(--jc-muted); }
.jc-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.jc-crumbs li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; opacity: .6; }
[dir="ltr"] .jc-crumbs li:not(:last-child)::after { content: "›"; }
.jc-crumbs a { color: var(--jc-muted); }
.jc-crumbs a:hover { color: var(--jc-brand); }
.jc-crumbs .rank-math-breadcrumb p { margin: 0; }
.jc-crumbs .separator { margin-inline: 4px; opacity: .6; }

/* ---------- Layout with sidebar ---------- */
.jc-layout { display: grid; gap: 8px; padding-block: 20px 56px; }
.jc-layout__aside .jc-toc { margin-bottom: 0; }
.jc-layout__main { min-width: 0; }
@media (min-width: 1024px) {
	.jc-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-block: 40px 80px; }
	.jc-layout__aside { grid-column: 2; grid-row: 1; }
	.jc-layout__main { grid-column: 1; grid-row: 1; }
	.jc-sticky { position: sticky; top: calc(var(--jc-header-h) + 20px); display: grid; gap: 16px; }
	.admin-bar .jc-sticky { top: calc(var(--jc-header-h) + 52px); }
}
@media (min-width: 1280px) { .jc-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }

/* ---------- Prose (محتوای لندینگ و مقاله) ---------- */
.jc-prose { max-width: 820px; font-size: 1em; color: var(--jc-text); overflow-wrap: break-word; }
.jc-prose--wide { max-width: none; }
.jc-prose > * + * { margin-top: 1.1em; }
.jc-prose > :first-child { margin-top: 0; }
.jc-prose h2 { font-size: clamp(21px, 3.6vw, 28px); margin-top: 1.9em; margin-bottom: .6em; padding-inline-start: 14px; border-inline-start: 4px solid var(--jc-brand); line-height: 1.5; }
.jc-prose h3 { font-size: clamp(18px, 3vw, 22px); margin-top: 1.6em; }
.jc-prose h4 { font-size: 18px; margin-top: 1.4em; }
.jc-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(215, 25, 32, .35); font-weight: 600; }
.jc-prose a:hover { text-decoration-color: currentColor; }
.jc-prose ul, .jc-prose ol { padding-inline-start: 1.4em; }
.jc-prose li { margin-bottom: .45em; }
.jc-prose li::marker { color: var(--jc-brand); }
.jc-prose img { border-radius: var(--jc-radius); }
.jc-prose figure { margin-inline: 0; }
.jc-prose figcaption, .jc-prose .wp-caption-text { font-size: 13px; color: var(--jc-muted); text-align: center; margin-top: 8px; }
.jc-prose blockquote { margin-inline: 0; padding: 16px 20px; background: var(--jc-brand-soft); border-radius: var(--jc-radius-sm); border-inline-start: 4px solid var(--jc-brand); color: var(--jc-ink); }
.jc-prose blockquote p:last-child { margin: 0; }
.jc-prose hr { border: 0; height: 1px; background: var(--jc-line); margin-block: 2em; }
.jc-prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius-sm); overflow: hidden; display: block; overflow-x: auto; }
@media (min-width: 768px) { .jc-prose table { display: table; } }
.jc-prose th, .jc-prose td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--jc-line); vertical-align: top; min-width: 120px; }
.jc-prose th { background: var(--jc-surface); color: var(--jc-ink); font-weight: 800; }
.jc-prose tr:last-child td { border-bottom: 0; }
.jc-prose tbody tr:nth-child(even) td { background: #fcfcfd; }
.jc-prose iframe, .jc-prose video { border-radius: var(--jc-radius); }
.jc-prose .wp-block-embed__wrapper iframe, .jc-prose iframe[src*="youtube"], .jc-prose iframe[src*="aparat"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.jc-prose .aligncenter { display: block; margin-inline: auto; }
.jc-prose strong { color: var(--jc-ink); }

/* ---------- Article ---------- */
.jc-article-head { padding-block: 28px 20px; }
@media (min-width: 768px) { .jc-article-head { padding-block: 44px 28px; } }
.jc-article-head__inner > * { max-width: 900px; }
.jc-article-head .jc-chip { display: inline-flex; }
.jc-article-head .jc-chip { margin-top: 14px; }
.jc-article-head__title { font-size: clamp(27px, 5.6vw, 46px); line-height: 1.4; margin: 12px 0; letter-spacing: -.4px; }
.jc-article-head__lead { color: var(--jc-muted); font-size: 1.1em; max-width: 760px; }
.jc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--jc-muted); font-size: 14px; margin-top: 12px; }
.jc-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.jc-meta a { color: var(--jc-text); font-weight: 700; }
.jc-article-cover { margin-block: 0 8px; }
.jc-article-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 20px; display: block; }

.jc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jc-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 32px; padding: 20px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); background: #fff; }
.jc-author__avatar { border-radius: 50%; flex-shrink: 0; }
.jc-author__label { margin: 0; font-size: 12px; color: var(--jc-muted); }
.jc-author__name { margin: 0 0 4px; font-weight: 800; font-size: 17px; }
.jc-author__name a { color: var(--jc-ink); }
.jc-author__bio { margin: 0; font-size: 14.5px; color: var(--jc-text); }

/* ---------- CTA ---------- */
.jc-cta { border-radius: var(--jc-radius); }
.jc-cta--card { padding: 20px; background: var(--jc-dark); color: #fff; position: relative; overflow: hidden; }
.jc-cta--card::after { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 25, 32, .55), transparent 70%); }
.jc-cta--card .jc-cta__title { color: #fff; font-weight: 800; font-size: 17px; margin: 0; }
.jc-cta--card .jc-cta__sub { color: #b9b9c4; font-size: 13px; margin: 2px 0 14px; }
.jc-cta--card .jc-cta__actions { display: grid; gap: 8px; position: relative; z-index: 1; }
.jc-cta--card .jc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.jc-cta--band { margin-top: 40px; padding: 22px; background: linear-gradient(120deg, var(--jc-brand), #a8111a); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.jc-cta--band .jc-cta__title { color: #fff; font-weight: 800; font-size: 19px; margin: 0; }
.jc-cta--band .jc-cta__sub { color: rgba(255, 255, 255, .8); margin: 0; font-size: 14px; }
.jc-cta--band .jc-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.jc-cta--band .jc-btn--primary { background: #fff; color: var(--jc-brand); box-shadow: none; }
.jc-cta--band .jc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- Cards & grids ---------- */
.jc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jc-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.jc-card { background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--jc-ease); }
.jc-card:hover { box-shadow: var(--jc-shadow-lg); transform: translateY(-3px); }
.jc-card__media { display: block; aspect-ratio: 16 / 10; background: var(--jc-surface); overflow: hidden; }
.jc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--jc-ease); }
.jc-card:hover .jc-card__media img { transform: scale(1.04); }
.jc-card__placeholder { display: grid; place-items: center; height: 100%; color: #c8c8d0; }
.jc-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.jc-card__body .jc-chip { align-self: flex-start; }
.jc-card__title { font-size: 18px; margin: 0; line-height: 1.6; }
.jc-card__title a { color: var(--jc-ink); }
.jc-card__title a:hover { color: var(--jc-brand); }
.jc-card__excerpt { color: var(--jc-muted); font-size: 14.5px; margin: 0; }
.jc-card__meta { margin: auto 0 0; font-size: 13px; color: var(--jc-muted); }

.jc-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 40px 0 0; }
.jc-pagination a, .jc-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border-radius: 12px; border: 1px solid var(--jc-line); color: var(--jc-ink); font-weight: 700; }
.jc-pagination .current { background: var(--jc-brand); color: #fff; border-color: var(--jc-brand); }

.jc-search { display: flex; max-width: 560px; margin-top: 18px; background: #fff; border: 1.5px solid var(--jc-line); border-radius: 14px; overflow: hidden; }
.jc-search:focus-within { border-color: var(--jc-brand); }
.jc-search input { flex: 1; border: 0; padding: 12px 16px; background: none; min-width: 0; outline: 0; }
.jc-search button { border: 0; background: var(--jc-brand); color: #fff; width: 54px; cursor: pointer; display: grid; place-items: center; }

/* ---------- Home ---------- */
.jc-hero { padding-block: 28px 0; background: radial-gradient(1200px 500px at 85% -10%, var(--jc-brand-soft), transparent 60%), #fff; overflow-x: clip; }
@media (min-width: 768px) { .jc-hero { padding-top: 56px; } }
.jc-hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .jc-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.jc-hero__title { font-size: clamp(32px, 7vw, 58px); line-height: 1.3; letter-spacing: -.6px; margin-bottom: 16px; }
.jc-hero__lead { font-size: 1.12em; color: var(--jc-muted); max-width: 560px; }
.jc-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.jc-hero__addr { display: flex; gap: 6px; color: var(--jc-muted); font-size: 14px; margin-top: 18px; }
.jc-hero__addr .jc-icon { color: var(--jc-brand); flex-shrink: 0; margin-top: 4px; }
.jc-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; display: block; box-shadow: var(--jc-shadow-lg); }
.jc-stats { list-style: none; margin: 36px 0 0; padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #fff; border: 1px solid var(--jc-line); border-radius: 20px; box-shadow: var(--jc-shadow); position: relative; z-index: 1; margin-bottom: -40px; }
@media (min-width: 768px) { .jc-stats { grid-template-columns: repeat(4, 1fr); padding: 22px 28px; } }
.jc-stats li { display: flex; flex-direction: column; line-height: 1.5; }
.jc-stats b { color: var(--jc-ink); font-size: 18px; font-weight: 900; }
@media (min-width: 768px) { .jc-stats b { font-size: 22px; } }
.jc-stats span { color: var(--jc-muted); font-size: 13px; }
.jc-home .jc-hero + .jc-section { padding-top: 88px; }

.jc-section__head { margin-bottom: 28px; max-width: 720px; }
.jc-section__head--row { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 16px; }
.jc-section__title { font-size: clamp(24px, 4.5vw, 36px); margin: 0 0 8px; letter-spacing: -.3px; }
.jc-section__sub { color: var(--jc-muted); margin: 0; }
.jc-link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }

.jc-tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .jc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .jc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jc-tile a { display: flex; flex-direction: column; height: 100%; border-radius: var(--jc-radius); overflow: hidden; background: #fff; border: 1px solid var(--jc-line); transition: box-shadow .25s, transform .25s var(--jc-ease), border-color .25s; }
.jc-tile a:hover { box-shadow: var(--jc-shadow-lg); transform: translateY(-3px); border-color: transparent; }
.jc-tile__media { aspect-ratio: 16 / 10; background: var(--jc-surface); display: block; overflow: hidden; }
.jc-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-tile__title { padding: 12px 14px 0; color: var(--jc-ink); font-weight: 800; font-size: 15px; }
@media (min-width: 768px) { .jc-tile__title { font-size: 17px; } }
.jc-tile__desc { padding: 2px 14px 14px; color: var(--jc-muted); font-size: 13px; }
.jc-tile__title:last-child { padding-bottom: 14px; }

/* ---------- Footer ---------- */
.jc-footer { background: var(--jc-dark); color: #b9b9c4; font-size: 15px; margin-top: 0; }
.jc-footer a { color: #e6e6ec; }
.jc-footer a:hover { color: #fff; }
.jc-footer .jc-btn--light, .jc-footer .jc-btn--light:hover { color: var(--jc-brand); }
.jc-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; background: linear-gradient(120deg, var(--jc-brand), #9e0f17); border-radius: 22px; transform: translateY(-36px); margin-bottom: -12px; box-shadow: 0 18px 40px rgba(215, 25, 32, .25); }
@media (min-width: 768px) { .jc-footer__cta { padding: 32px 40px; } }
.jc-footer__cta-title { color: #fff; font-size: clamp(19px, 3.4vw, 26px); font-weight: 900; margin: 0 0 4px; }
.jc-footer__cta-sub { color: rgba(255, 255, 255, .85); margin: 0; font-size: 14.5px; }
.jc-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jc-footer__grid { display: grid; gap: 32px; padding-block: 16px 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .jc-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .jc-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; } }
.jc-footer__brand { color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 10px; }
.jc-footer__title { color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.jc-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jc-footer__menu a { color: #b9b9c4; }
.jc-footer__menu a:hover { color: #fff; }
.jc-footer__phones { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.jc-footer__phones a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.jc-footer__phones .jc-icon, .jc-footer__line .jc-icon { color: var(--jc-brand); flex-shrink: 0; }
.jc-footer__line { display: flex; gap: 8px; line-height: 1.8; margin-bottom: 8px; }
.jc-footer__line .jc-icon { margin-top: 5px; }
.jc-footer__maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jc-footer__maps a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; font-weight: 600; }
.jc-footer__maps a:hover { border-color: #fff; }
.jc-footer__social { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.jc-footer__brands { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 24px; }
.jc-footer__brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.jc-footer__brands a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.jc-footer__brands img { width: 36px; height: 36px; object-fit: contain; }
.jc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 18px; font-size: 13px; text-align: center; }
.jc-footer__bottom p { margin: 0; }

/* ---------- Misc ---------- */
.jc-404 { text-align: center; padding-block: 72px; max-width: 640px; }
.jc-404__code { font-size: 96px; font-weight: 900; color: var(--jc-brand); line-height: 1; margin: 0; }
.jc-404 .jc-search { margin-inline: auto; margin-block: 24px; }
.jc-empty { padding: 32px 0; display: grid; gap: 16px; max-width: 560px; }
.jc-widget { padding: 18px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); }
.jc-widget__title { font-size: 16px; }

.jc-comments { margin-top: 48px; }
.jc-comments__list { list-style: none; padding: 0; }
.jc-comments .comment-body { padding: 16px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius-sm); margin-bottom: 12px; }
.jc-comments input[type="text"], .jc-comments input[type="email"], .jc-comments input[type="url"], .jc-comments textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--jc-line); border-radius: 12px; background: #fff; }
.jc-comments textarea { height: 150px; resize: vertical; }
.jc-comments textarea:focus, .jc-comments input:focus { border-color: var(--jc-brand); outline: 0; }

.jc-main--elementor { overflow-x: clip; }

/* WooCommerce (پایه) */
.jc-shop { padding-block: 32px 64px; }
.woocommerce ul.products li.product { border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 12px; text-align: start; }
.woocommerce ul.products li.product a img { border-radius: 12px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button { background: var(--jc-brand) !important; color: #fff !important; border-radius: 12px !important; font-weight: 700 !important; }
.woocommerce span.onsale { background: var(--jc-brand); }
.woocommerce .price { color: var(--jc-ink) !important; font-weight: 800; }

@media print {
	.jc-header, .jc-topbar, .jc-footer, .jc-mbar, .jc-layout__aside, .jc-cta { display: none !important; }
	body { padding: 0; }
}

/* Latest posts (single sidebar) */
.jc-latest { padding: 18px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); background: #fff; }
.jc-latest__title { font-size: 16px; margin: 0 0 12px; }
.jc-latest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jc-latest a { display: flex; gap: 10px; align-items: center; color: var(--jc-ink); font-size: 14px; font-weight: 600; line-height: 1.6; }
.jc-latest a:hover { color: var(--jc-brand); }
.jc-latest img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
@media (max-width: 1023px) { .jc-latest { display: none; } }
.jc-footer__more { display: inline-block; margin-inline-start: 4px; font-weight: 700; }

/* Header fit: many menu items on desktop */
@media (min-width: 1200px) {
	.jc-nav__item--d0 > .jc-nav__link { white-space: nowrap; font-size: 14px; padding-inline: 9px; }
	.jc-nav__item--d0.has-sub > .jc-nav__link { padding-inline-end: 9px; }
	.jc-nav__list { gap: 0; }
	.jc-header__row { gap: 12px; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
	.jc-header__phone-text, .jc-brand__tag { display: none !important; }
	.jc-nav__item.is-home { display: none; }
}
@media (min-width: 1440px) { .jc-nav__item--d0 > .jc-nav__link { font-size: 15px; padding-inline: 10px; } }
.jc-header__phone-text b, .jc-header__cta { white-space: nowrap; }
/* v1.0.4 – long menus: the header phone already does the same as the CTA, so the CTA appears only on very wide screens */
@media (min-width: 1200px) and (max-width: 1759px) {
	.jc-header__cta { display: none !important; }
	.jc-brand__tag { display: none !important; }
}
@media (min-width: 1760px) { .jc-nav__item--d0 > .jc-nav__link { padding-inline: 12px; } }
@media (min-width: 1200px) {
	.jc-header__row { flex-wrap: nowrap; }
	.jc-brand { flex-shrink: 0; }
	.jc-nav { min-width: 0; }
	.jc-header__actions { flex-shrink: 0; }
	.jc-brand__tag { max-width: 150px; line-height: 1.5; }
}

/* Elementor kit can paint the body grey; keep the theme background */
html body { background-color: var(--jc-bg); }

/* ---------- Mobile quick actions (call / WhatsApp next to the menu button) ---------- */
.jc-qbtn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--jc-line); background: #fff; color: var(--jc-ink); }
.jc-qbtn--call { background: var(--jc-brand); border-color: var(--jc-brand); color: #fff; box-shadow: 0 6px 14px rgba(215, 25, 32, .28); }
.jc-qbtn--call:hover { color: #fff; background: var(--jc-brand-ink); }
.jc-qbtn--wa { color: #128c4b; }
@media (min-width: 1200px) { .jc-qbtn { display: none; } }
@media (max-width: 1199px) { .jc-header__phone { display: none !important; } }
@media (max-width: 420px) {
	.jc-header__actions { gap: 6px; }
	.jc-qbtn, .jc-burger { width: 42px; height: 42px; }
	.jc-brand .custom-logo { max-height: 40px; }
}

/* ---------- UI polish ---------- */
.jc-header__row { min-height: var(--jc-header-h); }
@media (min-width: 1200px) {
	.jc-nav__item--d0 > .jc-nav__link { border-radius: 10px; min-height: 44px; margin-block: 12px; }
	.jc-nav__item--d0 > .jc-nav__link::before { bottom: 4px; }
	.jc-nav__item--d0:hover > .jc-nav__link { background: var(--jc-surface); }
	.jc-mega__inner { border-radius: 22px; margin-top: 6px; }
	.jc-dropdown__inner { margin-top: 6px; }
}
.jc-pagehead { position: relative; overflow: hidden; }
.jc-pagehead::after { content: ""; position: absolute; inset-inline-start: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 25, 32, .08), transparent 65%); pointer-events: none; }
.jc-pagehead > .jc-container { position: relative; z-index: 1; }
.jc-pagehead__title { background: linear-gradient(90deg, var(--jc-ink), #3a3a44); -webkit-background-clip: text; background-clip: text; }
.jc-prose > figure img, .jc-prose > p > img { box-shadow: 0 10px 30px rgba(20, 20, 23, .08); }
.jc-prose h2 { scroll-margin-top: calc(var(--jc-header-h) + 20px); }
.jc-cta--band { box-shadow: 0 18px 40px rgba(215, 25, 32, .22); }
.jc-trust li { transition: border-color .2s, transform .2s; }
.jc-trust li:hover { border-color: var(--jc-brand); transform: translateY(-1px); }

/* ---------- Footer credit ---------- */
.jc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; text-align: start; }
.jc-credit { font-size: 12px; color: #8a8a96; }
.jc-credit a { color: #b9b9c4; font-weight: 700; }
.jc-credit a:hover { color: #fff; }
@media (max-width: 640px) { .jc-footer__bottom { justify-content: center; text-align: center; } }
