/* Header · breadcrumb · footer · mobile bar — Header/Footer/MobileBar.dc.html */

/* Announcement (home) */
.cj-announce { background: var(--red); color: var(--white); font-size: 14px; }
.cj-announce__in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; padding-block: 8px; text-align: center; }
.cj-announce a { color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cj-announce mark.cj-ph { color: var(--text); }

/* Header */
.cj-header { position: relative; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.cj-header__desk { display: none; }
.cj-header__mob { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 16px; }
.cj-header__mlogo img { height: 56px; width: auto; }
.cj-header__mact { display: flex; align-items: center; gap: 4px; }
.cj-menu-toggle__close { display: none; }
.cj-menu-toggle[aria-expanded="true"] .cj-menu-toggle__open { display: none; }
.cj-menu-toggle[aria-expanded="true"] .cj-menu-toggle__close { display: inline-flex; }

.cj-mnav { border-top: 1px solid var(--line); padding: 8px 16px 16px; background: var(--white); }
.cj-mnav[hidden] { display: none; }
.cj-mnav ul { list-style: none; margin: 0; padding: 0; }
.cj-mnav__label { margin: 8px 0 4px; font-size: 13px; color: var(--muted); }
.cj-mnav__sublink, .cj-mnav__link { display: flex; align-items: center; color: var(--text); text-decoration: none; border-bottom: 1px solid #f5ebe9; }
.cj-mnav__sublink { min-height: 44px; }
.cj-mnav__link { min-height: 48px; font-weight: 600; }
.cj-mnav a[aria-current="page"] { color: var(--red); }
.cj-mnav__cta { margin-top: 16px; }

/* Desktop header: menu | logo | menu + button. The two menus need ~1280px with Thai labels. */
@media (min-width: 1280px) {
	.cj-header__mob, .cj-mnav { display: none !important; }
	.cj-header__desk {
		display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px;
		max-width: 1400px; margin: 0 auto; padding: 14px 24px;
	}
	.cj-header__left { display: flex; justify-content: flex-end; }
	.cj-header__right { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
	.cj-header__logo img { height: 96px; width: auto; }
	.cj-header__cta { min-height: 46px; }
}
.cj-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; font-size: 16px; font-weight: 500; }
.cj-nav__item { position: relative; }
.cj-nav__link {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent;
	background: transparent; color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; font-weight: 500;
}
.cj-nav__link:hover, .cj-nav__item.is-section > .cj-nav__link, .cj-nav__link[aria-current="page"] { color: var(--red); }
.cj-nav__link[aria-current="page"] { border-bottom-color: var(--red); }
.cj-dd__btn .cj-icon { transition: transform .15s; }
.cj-dd__btn[aria-expanded="true"] .cj-icon { transform: rotate(180deg); }
.cj-dd__menu {
	display: none; position: absolute; top: 52px; left: -16px; width: 280px; list-style: none; margin: 0; padding: 0;
	background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 14px 14px;
	box-shadow: var(--shadow-pop); overflow: hidden;
}
.cj-dd__btn[aria-expanded="true"] + .cj-dd__menu { display: block; }
.cj-dd__menu li { border-bottom: 1px solid var(--line-soft); }
.cj-dd__menu li:last-child { border-bottom: 0; }
.cj-dd__link { display: block; padding: 14px 20px; color: var(--text); text-decoration: none; font-size: 16px; }
.cj-dd__link:hover, .cj-dd__link[aria-current="page"] { background: var(--pink); color: var(--red); }

/* Breadcrumb */
.cj-crumbs { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.cj-crumbs__list { list-style: none; margin: 0 auto; padding-block: 10px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--muted); }
.cj-crumbs__list li { display: inline-flex; align-items: center; gap: 8px; }
.cj-crumbs__list a { color: var(--red); text-decoration: none; }
.cj-crumbs__list a:hover { text-decoration: underline; }
.cj-crumbs__sep { color: #b9a19c; }
.cj-crumbs [aria-current="page"] { color: #555555; }

/* Footer */
.cj-footer { background: var(--footer-bg); color: var(--footer-text); font-size: 16px; line-height: 1.7; border-top: 4px solid var(--red); padding-bottom: calc(var(--mbar-h) + 24px); }
.cj-footer a { color: var(--white); text-decoration: none; }
.cj-footer a:hover { text-decoration: underline; }
.cj-footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 36px; }
.cj-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.cj-footer__id { display: flex; align-items: center; gap: 16px; }
.cj-footer__badge { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.cj-footer__badge img { height: 58px; width: auto; }
.cj-footer__name { margin: 0; font-family: var(--ff-head); font-weight: 700; font-size: 20px; color: var(--white); line-height: 1.35; }
.cj-footer__tag { margin: 2px 0 0; font-size: 15px; color: var(--footer-muted); }
.cj-footer__about { margin: 0; max-width: 460px; font-size: 15px; color: var(--footer-muted); }
.cj-footer__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cj-footer__badges li { padding: 4px 12px; border: 1px solid var(--footer-chip); border-radius: 999px; font-size: 13px; }
.cj-footer mark.cj-ph { color: var(--text); }
.cj-footer__card { background: var(--footer-card); border-radius: 20px; padding: 20px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
.cj-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.cj-footer__eyebrow { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--footer-muted); }
.cj-footer__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-weight: 700; font-size: 26px; line-height: 1.2; }
.cj-footer__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.cj-footer__lines a { font-weight: 600; }
.cj-footer__lines a.cj-footer__mail { font-weight: 400; }
.cj-footer__lines .is-muted { color: var(--footer-muted); }
.cj-footer__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cj-footer__btns .cj-btn { padding: 0 18px; font-size: 15px; }
.cj-footer .cj-btn--line, .cj-footer .cj-btn--line:hover { color: #0b2e17; text-decoration: none; }
.cj-footer__qr { display: none; text-align: center; }
.cj-footer__qr img, .cj-footer__qrph { width: 128px; height: 128px; margin: 0 auto; border-radius: 14px; background: var(--white); }
.cj-footer__qrph { display: flex; align-items: center; justify-content: center; padding: 10px; font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center; }
.cj-footer__qr p { margin: 8px 0 0; font-size: 13px; color: var(--footer-muted); }
.cj-footer__links { padding-top: 24px; }
.cj-footer__cols { border-top: 1px solid var(--footer-line); padding-top: 4px; display: grid; grid-template-columns: minmax(0, 1fr); }
.cj-fcol { border-bottom: 1px solid var(--footer-line); }
.cj-fcol__sum { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: var(--footer-muted); }
.cj-fcol__sum::-webkit-details-marker { display: none; }
.cj-fcol[open] .cj-fcol__sum .cj-icon { transform: rotate(180deg); }
.cj-fcol__title { margin: 0; font-family: var(--ff-body); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--white); }
.cj-fcol__list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cj-footer a.cj-fcol__link { display: inline-block; padding: 4px 0; color: var(--footer-muted); font-size: 15px; }
.cj-footer a.cj-fcol__link:hover, .cj-footer a.cj-fcol__link[aria-current="page"] { color: var(--white); }
.cj-footer__area { margin: 18px 0 0; font-size: 14px; color: var(--footer-faint); }
.cj-fbar { margin-top: 28px; border-top: 1px solid var(--footer-line); }
.cj-fbar__in { padding-block: 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--footer-faint); }
.cj-fbar__in p { margin: 0; }
.cj-fbar__nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cj-footer a.cj-fbar__link { color: var(--footer-faint); }
.cj-footer a.cj-fbar__top { color: var(--white); font-weight: 600; }

@media (min-width: 1024px) {
	.cj-footer { padding-bottom: 0; }
	.cj-footer__top { grid-template-columns: 1fr 1.1fr; gap: 56px; padding-top: 56px; }
	.cj-footer__badge { width: 88px; height: 88px; }
	.cj-footer__badge img { height: 72px; }
	.cj-footer__name { font-size: 24px; }
	.cj-footer__card { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 28px; }
	.cj-footer__phone { font-size: 30px; }
	.cj-footer__qr { display: block; }
	.cj-footer__links { padding-top: 40px; }
	.cj-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 28px; }
	.cj-fcol { border-bottom: 0; }
	.cj-fcol__sum { cursor: default; pointer-events: none; }
	.cj-fcol__sum .cj-icon { display: none; }
	.cj-footer__area { margin-top: 24px; }
	.cj-fbar__in { padding-bottom: 20px; }
}

/* Sticky LINE / call bar — mobile only */
.cj-mbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white);
	border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(60, 20, 10, .08);
}
.cj-mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
.cj-mbar__line { border: 1.5px solid var(--line-green); background: var(--white); color: var(--line-green-ink); }
.cj-mbar__call { background: var(--red); color: var(--white); }
.cj-mbar__call:hover { color: var(--white); background: var(--red-dark); }
@media (min-width: 1024px) { .cj-mbar { display: none; } }
.cj-announce__tag { display: inline-block; background: var(--white); color: var(--red); font-weight: 700; padding: 1px 10px; margin: 0 4px; border-radius: 999px; }

/* Footer logo: clean white card instead of the clipped circle (JoJho 13 Nov 2026) */
.cj-footer__badge { width: auto; height: auto; padding: 10px 14px; border-radius: 16px; box-shadow: none; }
.cj-footer__badge img { height: 64px; width: auto; }
@media (min-width: 1024px) { .cj-footer__badge { width: auto; height: auto; padding: 10px 14px; } .cj-footer__badge img { height: 96px; } }

/* Footer contact buttons — compact, one row (JoJho 13 Nov 2026). Small phones: Facebook/Instagram become icon-only (links keep aria-label). */
.cj-footer__btns { flex-wrap: nowrap; gap: 8px; }
.cj-footer__btns .cj-btn { min-height: 40px; padding: 0 14px; font-size: 14px; gap: 6px; }
.cj-footer__btns .cj-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
@media (max-width: 479px) {
	.cj-footer__btns .cj-btn--ghost-dark { font-size: 0; gap: 0; width: 40px; padding: 0; }
	.cj-footer__btns .cj-btn--ghost-dark svg { width: 18px; height: 18px; }
}

/* Social icons under the footer menus (JoJho 13 Nov 2026) */
.cj-fsocial { padding: 18px 0 4px; }
.cj-fsocial__title { margin: 0 0 10px; font-weight: 700; color: var(--white); font-size: 15px; }
.cj-fsocial__icons { display: flex; gap: 10px; }
.cj-fsocial__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--footer-chip); color: var(--white); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .15s; }
.cj-fsocial__btn:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.cj-fsocial__btn svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .cj-fsocial { padding-top: 28px; } }
/* The phone button stays labelled on small phones too (contact box = LINE or phone only) */
@media (max-width: 479px) { .cj-footer__btns .cj-btn--call { font-size: 14px; gap: 6px; width: auto; padding: 0 14px; } }

/* Social icons share the row with "พื้นที่ให้บริการ" (no title) */
.cj-footer__meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.cj-footer__meta .cj-footer__area { margin: 0; }
.cj-footer__meta .cj-fsocial__icons { margin-left: auto; }
@media (min-width: 1024px) { .cj-footer__meta { margin-top: 24px; } }

/* ===== Mobile app-style nav (≤1023px · JoJho 14 Nov 2026) ===== */
.cj-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(60, 20, 10, .06); }
.cj-tabbar__i { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; padding: 0; }
.cj-tabbar__i.is-on, .cj-tabbar__i[aria-current="page"] { color: var(--red); }
.cj-tabbar__line { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--line-green-ink); font-size: 12px; font-weight: 700; margin-top: -22px; }
.cj-tabbar__lineb { width: 56px; height: 56px; border-radius: 50%; background: var(--line-green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(6, 199, 85, .35); border: 4px solid #fff; }
body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.cj-mbar { display: none !important; }
html.cj-noscroll, html.cj-noscroll body { overflow: hidden; }
.cj-sheet { position: fixed; inset: 0; z-index: 80; }
.cj-sheet[hidden] { display: none; }
.cj-sheet__backdrop { position: absolute; inset: 0; background: rgba(30, 12, 8, .45); opacity: 0; transition: opacity .2s; }
.cj-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .22s ease; box-shadow: 0 -10px 30px rgba(0, 0, 0, .15); }
.cj-sheet.is-open .cj-sheet__backdrop { opacity: 1; }
.cj-sheet.is-open .cj-sheet__panel { transform: translateY(0); }
.cj-sheet__grab { width: 44px; height: 5px; border-radius: 3px; background: #e2d4d0; margin: 8px auto 2px; }
.cj-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 16px 6px 20px; }
.cj-sheet__title { margin: 0; font-family: var(--ff-head); font-weight: 700; font-size: 20px; color: var(--red); }
.cj-sheet__body { overflow-y: auto; padding: 4px 16px 12px; overscroll-behavior: contain; }
.cj-sheet__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.cj-sheet__tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--cream); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.3; }
.cj-sheet__ticon { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(120, 40, 30, .08); }
.cj-sheet__grp { border-top: 1px solid var(--line-soft); }
.cj-sheet__grp summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-weight: 700; font-size: 16px; color: var(--text); cursor: pointer; }
.cj-sheet__grp summary::-webkit-details-marker { display: none; }
.cj-sheet__grp[open] summary svg { transform: rotate(180deg); }
.cj-sheet__grp ul { list-style: none; margin: 0 0 10px; padding: 0; }
.cj-sheet__svc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cj-sheet__svc a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-soft); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.3; min-height: 56px; }
.cj-sheet__svc a[aria-current="page"] { border-color: var(--red); color: var(--red); background: var(--pink); }
.cj-sheet__svcimg { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.cj-sheet__links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid #f5ebe9; font-size: 16px; }
.cj-sheet__links a svg { color: #c8b2ad; }
.cj-sheet__links a[aria-current="page"] { color: var(--red); font-weight: 700; }
.cj-sheet__foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.cj-sheet__foot .cj-btn { min-height: 48px; }
@media (min-width: 1024px) { .cj-tabbar, .cj-sheet { display: none !important; } body { padding-bottom: 0; } }
.cj-tabbar__lineb .cj-icon { color: #fff; }
.cj-sheet__foot .cj-btn--line .cj-icon { color: #fff; }
/* Language switcher TH | EN */
.cj-lang { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; background: #fff; }
.cj-lang__i { min-width: 36px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; letter-spacing: .03em; }
.cj-lang__i.is-on { background: var(--red); color: #fff; }
.cj-lang__i:hover:not(.is-on) { color: var(--red); }
.cj-lang--desk { margin-right: 10px; }
.cj-sheet__head { gap: 10px; }
.cj-sheet__head .cj-lang { margin-left: auto; }
@media (max-width: 380px) { .cj-lang--mob { display: none; } }

/* EN desktop header: English labels are longer than Thai — tighter spacing so menu + TH|EN + button fit from 1280px (14 Nov 2026) */
@media (min-width: 1280px) {
	html[lang^="en"] .cj-header__desk { gap: 18px; padding-left: 16px; padding-right: 16px; }
	html[lang^="en"] .cj-header__right { gap: 12px; }
	html[lang^="en"] .cj-nav__list { gap: 14px; font-size: 15px; }
	html[lang^="en"] .cj-header__cta { padding-left: 18px; padding-right: 18px; font-size: 15px; }
	html[lang^="en"] .cj-header__logo img { height: 84px; }
}
/* 1280–1439px (both languages): menu + TH|EN switch + button need a more compact header */
@media (min-width: 1280px) and (max-width: 1439px) {
	.cj-header__desk { gap: 16px; padding-left: 14px; padding-right: 14px; }
	.cj-header__right { gap: 10px; }
	.cj-nav__list { gap: 13px; font-size: 15px; }
	.cj-header__cta { padding-left: 16px; padding-right: 16px; font-size: 15px; }
	.cj-header__logo img { height: 80px; }
	html[lang^="en"] .cj-nav__list { gap: 10px; font-size: 14px; }
	html[lang^="en"] .cj-header__desk { gap: 12px; }
}
