/* ============================================================
   BPXG native chrome (header + footer)
   Ported from Claude Design "BPXG Header.dc.html" / "BPXG About.dc.html".
   Loaded site-wide only when bpxg_use_native_chrome() is TRUE (inc/chrome.php).
   Scope everything under .bpxg-chrome so it never leaks into Elementor pages.
   ============================================================ */

.bpxg-chrome,
.bpxg-chrome *,
.bpxg-chrome *::before,
.bpxg-chrome *::after { box-sizing: border-box; }

.bpxg-chrome {
	--abt-yellow: #fcd11e;
	--abt-ink: #15151a;
	--abt-dark: #15151a;
	-webkit-font-smoothing: antialiased;
}
/* Force Pretendard on every chrome node. The legacy it-service / Elementor-kit
   CSS targets bare element selectors (a, button, span…) with a Roboto + Nanum
   Gothic stack, which overrides a container-level font-family via direct-element
   inheritance — making Korean text fall back to Nanum Gothic. !important on the
   descendants (scoped to our own chrome markup) wins that back to Pretendard. */
.bpxg-chrome,
.bpxg-chrome * {
	font-family: Pretendard, "Pretendard Variable", "Apple SD Gothic Neo", system-ui, sans-serif !important;
}
.bpxg-chrome a { text-decoration: none; color: inherit; }

/* ---- Brand wordmark (shared header/footer) ---- */
.bpxg-header__brand,
.bpxg-footer__brand {
	font-style: italic;
	font-weight: 900;
	letter-spacing: -1.6px;
	color: #111;
	transform: skewX(-2deg);
	user-select: none;
	display: inline-block;
}

/* ============ HEADER ============ */
.bpxg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid #eef0f3;
}
.bpxg-header__bar {
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* Match the page content container so the logo/nav line up with the body's
	   left/right edges instead of sitting hard against the viewport. The bar's
	   background/border stay full-bleed (on .bpxg-header); only the inner row is
	   constrained. Same formula as .bpxg-container / .bpxg-footer__top (1120px). */
	width: min(1120px, calc(100% - 48px));
	margin-inline: auto;
}
.bpxg-header__brand { font-size: 30px; }

.bpxg-header__nav { display: block; }
.bpxg-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.6vw, 36px);
}
.bpxg-nav__item { position: static; }
.bpxg-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 17px;
	font-weight: 700;
	color: #222229;
	letter-spacing: -0.2px;
	line-height: 1;
	padding: 6px 2px;
	transition: color .18s ease;
	cursor: pointer;
}
.bpxg-nav__link:hover { color: #000; }
.bpxg-nav__chev { font-size: 10px; color: #9aa0a8; transition: transform .2s ease; }
.bpxg-nav__item--mega:hover .bpxg-nav__chev,
.bpxg-nav__item--mega:focus-within .bpxg-nav__chev { transform: rotate(180deg); }

/* Hover bridge: the full-width panel opens at the bar's bottom (top:100%), ~26px
   below the trigger link. Without this, moving the cursor down into the menu
   crosses dead space, drops :hover and the panel (pointer-events:none) becomes
   unreachable. This transparent strip — part of the always-hoverable link — spans
   that gap so :hover stays continuous from link → panel. */
.bpxg-nav__link--mega { position: relative; }
.bpxg-nav__link--mega::after {
	content: '';
	position: absolute;
	top: 100%;
	left: -18px;
	right: -18px;
	height: 30px;
}

/* CTA pill */
.bpxg-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--abt-yellow);
	color: #1a1a1a;
	font-weight: 800;
	font-size: 16px;
	padding: 13px 26px;
	border-radius: 999px;
	line-height: 1;
	white-space: nowrap;
	transition: filter .15s ease, transform .15s ease;
}
.bpxg-cta:hover { filter: brightness(0.96); transform: translateY(-1px); }
.bpxg-cta--block { width: 100%; padding: 15px; font-size: 17px; }

/* ---- Megamenu ---- */
.bpxg-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 1px solid #f1f2f5;
	box-shadow: 0 26px 44px -16px rgba(20, 22, 30, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	pointer-events: none;
}
.bpxg-nav__item--mega:hover .bpxg-mega,
.bpxg-nav__item--mega:focus-within .bpxg-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}
.bpxg-mega__inner {
	display: flex;
	justify-content: center;
	max-width: 1280px;
	margin: 0 auto;
	padding: 46px 24px;
}
.bpxg-mega__col {
	min-width: 230px;
	padding: 6px 60px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: center;
	align-items: center;
	transition: transform .18s ease;
}
.bpxg-mega__col + .bpxg-mega__col { border-left: 1px solid #ededf0; }
.bpxg-mega__col:hover { transform: translateY(-2px); }
.bpxg-mega__title {
	font-size: 22px;
	font-weight: 800;
	color: var(--abt-ink);
	letter-spacing: -0.3px;
	padding-bottom: 6px;
	border-bottom: 2px solid transparent;
	transition: border-bottom-color .18s ease;
}
.bpxg-mega__col:hover .bpxg-mega__title { border-bottom-color: var(--abt-yellow); }
.bpxg-mega__desc { font-size: 15px; color: #9498a1; line-height: 1.65; font-weight: 500; }

/* ---- Hamburger (mobile only) ---- */
.bpxg-header__burger {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--abt-ink);
	padding: 0;
}
.bpxg-burger__icon,
.bpxg-burger__icon::before,
.bpxg-burger__icon::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}
.bpxg-burger__icon { position: relative; }
.bpxg-burger__icon::before,
.bpxg-burger__icon::after { content: ""; position: absolute; left: 0; }
.bpxg-burger__icon::before { top: -7px; }
.bpxg-burger__icon::after { top: 7px; }
.bpxg-header__burger[aria-expanded="true"] .bpxg-burger__icon { background: transparent; }
.bpxg-header__burger[aria-expanded="true"] .bpxg-burger__icon::before { transform: translateY(7px) rotate(45deg); }
.bpxg-header__burger[aria-expanded="true"] .bpxg-burger__icon::after { transform: translateY(-7px) rotate(-45deg); }

/* ---- Front-page overlay header ----
   On the front page the header floats transparently over the dark hero (white
   logo/nav) and solidifies into the normal white bar once scrolled (toggled by
   chrome.js adding .is-scrolled). position:fixed so the hero sits full-height
   underneath it. */
.bpxg-header--overlay {
	position: fixed;
	left: 0;
	right: 0;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom-color: transparent;
	transition: background .25s ease, border-color .25s ease;
}
.bpxg-header--overlay .bpxg-header__brand { color: #fff; }
.bpxg-header--overlay .bpxg-nav__link { color: #f2f2f4; }
.bpxg-header--overlay .bpxg-nav__link:hover { color: #fff; }
.bpxg-header--overlay .bpxg-nav__chev { color: var(--abt-yellow); }
.bpxg-header--overlay .bpxg-burger__icon,
.bpxg-header--overlay .bpxg-burger__icon::before,
.bpxg-header--overlay .bpxg-burger__icon::after { background: #fff; }
.bpxg-header--overlay.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom-color: #eef0f3;
}
.bpxg-header--overlay.is-scrolled .bpxg-header__brand { color: #111; }
.bpxg-header--overlay.is-scrolled .bpxg-nav__link { color: #222229; }
.bpxg-header--overlay.is-scrolled .bpxg-nav__link:hover { color: #000; }
.bpxg-header--overlay.is-scrolled .bpxg-nav__chev { color: #9aa0a8; }
.bpxg-header--overlay.is-scrolled .bpxg-burger__icon,
.bpxg-header--overlay.is-scrolled .bpxg-burger__icon::before,
.bpxg-header--overlay.is-scrolled .bpxg-burger__icon::after { background: var(--abt-ink); }

/* ---- Mobile overlay ---- */
.bpxg-mobile {
	position: fixed;
	left: 0;
	right: 0;
	top: 62px;
	bottom: 0;
	z-index: 95;
	background: #fff;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	animation: bpxg-mobin .24s ease both;
}
.bpxg-mobile[hidden] { display: none; }
@keyframes bpxg-mobin { from { opacity: 0; transform: translateX(4%); } to { opacity: 1; transform: translateX(0); } }
.bpxg-mobile__list { flex: 1; }
.bpxg-mobile__link,
.bpxg-acc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px 24px;
	font-size: 18px;
	font-weight: 700;
	color: var(--abt-ink);
	border: none;
	border-bottom: 1px solid #f1f2f5;
	background: none;
	font-family: inherit;
	cursor: pointer;
	text-align: left;
}
.bpxg-acc__chev { font-size: 11px; color: #9aa0a8; transition: transform .2s ease; }
.bpxg-acc__head[aria-expanded="true"] .bpxg-acc__chev { transform: rotate(180deg); }
.bpxg-acc__panel { background: #fafbfc; border-bottom: 1px solid #f1f2f5; animation: bpxg-accin .2s ease both; }
.bpxg-acc__panel[hidden] { display: none; }
@keyframes bpxg-accin { from { opacity: 0; } to { opacity: 1; } }
.bpxg-acc__link {
	display: block;
	padding: 15px 24px 15px 34px;
	font-size: 15.5px;
	color: #4b4d55;
	font-weight: 600;
	border-bottom: 1px solid #f1f2f5;
}
.bpxg-acc__panel .bpxg-acc__link:last-child { border-bottom: none; }
.bpxg-mobile__cta { padding: 18px 24px 26px; }

/* The mobile menu links are <a>, and the generic `.bpxg-chrome a { color: inherit }`
   (0,1,1) outranks the single-class color rules above (0,1,0) — so the links fell
   back to the inherited Elementor body color (#333) instead of the brand ink, and
   tapping them flashed the Elementor link/tap color. Re-assert brand colors at a
   higher specificity and give every state a brand-yellow tint. */
.bpxg-mobile .bpxg-mobile__link { color: var(--abt-ink); }
.bpxg-mobile .bpxg-acc__link { color: #4b4d55; }
.bpxg-mobile a, .bpxg-mobile button { -webkit-tap-highlight-color: transparent; }
.bpxg-mobile .bpxg-mobile__link:hover, .bpxg-mobile .bpxg-mobile__link:focus, .bpxg-mobile .bpxg-mobile__link:active,
.bpxg-mobile .bpxg-acc__head:hover, .bpxg-mobile .bpxg-acc__head:focus, .bpxg-mobile .bpxg-acc__head:active,
.bpxg-mobile .bpxg-acc__link:hover, .bpxg-mobile .bpxg-acc__link:focus, .bpxg-mobile .bpxg-acc__link:active {
	color: var(--abt-ink) !important;
	background: rgba(252, 209, 30, 0.16);
}

/* "More Services" — secondary tier under the main nav (콘텐츠 스튜디오 AX /
   캐릭터 IP 매니지먼트). Divided off, labelled, and indented so it reads as a
   sub-group rather than a peer of the primary items. */
.bpxg-mobile__more { border-top: 1px solid #f1f2f5; padding: 18px 0 6px; }
.bpxg-mobile__morelabel {
	padding: 0 24px 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #9aa0a8;
}
.bpxg-mobile .bpxg-mobile__sublink {
	display: block;
	padding: 13px 24px 13px 34px;
	font-size: 15.5px;
	font-weight: 600;
	color: #4b4d55;
}
.bpxg-mobile .bpxg-mobile__sublink:hover,
.bpxg-mobile .bpxg-mobile__sublink:focus,
.bpxg-mobile .bpxg-mobile__sublink:active {
	color: var(--abt-ink) !important;
	background: rgba(252, 209, 30, 0.16);
}

/* The legacy it-service / Bootstrap-ish base CSS paints EVERY `button:hover,
   button:focus` with a magenta (#c36) background + white text. Neutralize it for
   all chrome buttons — the hamburger toggle especially, which sits outside
   .bpxg-mobile so the per-link rules above don't reach it. The accordion heads
   keep their yellow tint via the higher-specificity rules above. */
.bpxg-chrome button:hover,
.bpxg-chrome button:focus,
.bpxg-chrome button:active {
	background-color: transparent;
	color: inherit;
}

/* Lock background scroll when the mobile menu is open. */
body.bpxg-menu-open { overflow: hidden; }

/* ---- Breakpoint: collapse to mobile ---- */
@media (max-width: 1024px) {
	.bpxg-header__nav { display: none; }
	.bpxg-header__burger { display: inline-flex; }
	.bpxg-header__bar { height: 62px; }
	.bpxg-header__brand { font-size: 23px; letter-spacing: -1.2px; }
}
@media (min-width: 1025px) {
	.bpxg-mobile { display: none !important; }
}

/* ============ FOOTER ============ */
.bpxg-footer {
	background: #15151a;
	color: #b6b6bd;
	padding: 64px clamp(20px, 4vw, 48px) 40px;
}
.bpxg-footer__top {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
	gap: 40px;
}
.bpxg-footer__brand { color: #fff; font-size: 26px; letter-spacing: -1.4px; font-style: italic; font-weight: 900; transform: skewX(-2deg); }
.bpxg-footer__addr { font-size: 13px; color: #7a7a85; line-height: 1.8; margin: 18px 0 0; max-width: 380px; }
.bpxg-footer__blurb { font-size: 14px; color: #7a7a85; line-height: 1.7; margin: 18px 0 0; max-width: 300px; }
.bpxg-footer__contact { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.bpxg-footer__contact a { font-size: 14px; color: #b6b6bd; }
.bpxg-footer__contact a:hover { color: #fff; }
.bpxg-footer__h { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; color: #6b6d75; margin-bottom: 16px; }
.bpxg-footer__h--y { color: var(--abt-yellow); }
.bpxg-footer__h--sub { margin-top: 22px; font-size: 11px; }
.bpxg-footer__link { display: block; font-size: 15px; color: #b6b6bd; padding: 7px 0; transition: color .15s ease; }
.bpxg-footer__link:hover { color: #fff; }
.bpxg-footer__legal {
	max-width: 1120px;
	margin: 44px auto 0;
	padding-top: 24px;
	border-top: 1px solid #2a2a30;
}
.bpxg-footer__legal p { margin: 0 0 6px; font-size: 12.5px; color: #6b6d75; line-height: 1.7; }
.bpxg-footer__bottom { max-width: 1120px; margin: 18px auto 0; font-size: 13px; color: #6b6d75; }

@media (max-width: 720px) {
	.bpxg-footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.bpxg-footer__brandcol { grid-column: 1 / -1; }
}
