/* ==========================================================================
   Congty3M – main stylesheet (front end + block editor)
   Mobile first. Ink/navy base, 3M yellow as accent, Inter, soft cards,
   glow + grid backdrops. Colours/fonts also exposed as theme.json presets.
   ========================================================================== */

:root {
	--ink: var(--wp--preset--color--contrast, #0b1220);
	--navy: var(--wp--preset--color--ink-2, #111a2e);
	--navy-2: #1a2540;
	--night: #0a0e17;
	--text: var(--wp--preset--color--text, #2b3140);
	--muted: var(--wp--preset--color--muted, #5c6474);
	--brand: var(--wp--preset--color--brand, #ffc20e);
	--brand-dark: var(--wp--preset--color--brand-dark, #f2a900);
	--brand-ink: var(--wp--preset--color--brand-ink, #8f5d00);
	--brand-soft: #fff5d6;
	--surface: var(--wp--preset--color--surface, #f6f7f9);
	--line: var(--wp--preset--color--line, #e7e9ee);
	--line-strong: #d9dde4;
	--base: var(--wp--preset--color--base, #fff);
	--zalo: var(--wp--preset--color--zalo, #0068ff);
	--on-dark: #e6e9ef;
	--on-dark-muted: #a3abba;
	--on-dark-line: rgb(255 255 255 / 10%);

	--radius: 20px;
	--radius-sm: 12px;
	--radius-lg: 24px;
	--shadow-xs: 0 1px 2px rgb(15 23 42 / 5%);
	--shadow: 0 1px 2px rgb(15 23 42 / 4%), 0 12px 32px -12px rgb(15 23 42 / 14%);
	--shadow-soft: 0 20px 60px rgb(15 23 42 / 6%);
	--shadow-lg: 0 2px 6px rgb(15 23 42 / 6%), 0 32px 64px -24px rgb(15 23 42 / 30%);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--glow: radial-gradient(60% 55% at 50% 0%, rgb(255 194 14 / 11%), transparent 72%);
	--grid-dark: linear-gradient(to right, rgb(255 255 255 / 5%) 1px, transparent 1px), linear-gradient(to bottom, rgb(255 255 255 / 5%) 1px, transparent 1px);
	--grid-light: linear-gradient(to right, rgb(15 23 42 / 5%) 1px, transparent 1px), linear-gradient(to bottom, rgb(15 23 42 / 5%) 1px, transparent 1px);
	--check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F5D00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	--check-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");

	--header-h: 64px;
	--gutter: clamp(1rem, 4vw, 1.5rem);
}

@media (min-width: 1080px) {
	:root { --header-h: 72px; }
}

/* --------------------------------------------------------------------------
   Base
   ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	color: var(--text);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss03";
	overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(255 194 14 / 45%); color: var(--ink); }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgb(15 23 42 / 30%); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--brand-ink); text-decoration-color: currentColor; }

:focus-visible { outline: 3px solid rgb(255 194 14 / 75%); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--ink); color: #fff;
	border-radius: var(--radius-sm);
	font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

.site-main:focus { outline: none; }

/* --------------------------------------------------------------------------
   Layout helpers
   ----------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(1240px + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section-sm { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* --------------------------------------------------------------------------
   Buttons, pills, labels
   ----------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	min-height: 48px;
	padding: 0.7em 1.35em;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	font: inherit; font-size: 0.96875rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon-arrow-right { transition: transform .2s var(--ease); }
.btn:hover .icon-arrow-right { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: var(--ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 10px 24px -12px rgb(242 169 0 / 80%); }
.btn--primary:hover { background: var(--brand-dark); color: var(--ink); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { background: var(--base); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--zalo:hover { background: #0052cc; color: #fff; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding-inline: 1.6em; font-size: 1.03125rem; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--base); color: var(--ink);
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line-strong); }
.icon-btn .icon { width: 20px; height: 20px; }

.pill {
	display: inline-flex; align-items: center;
	padding: 0.35em 0.8em;
	border-radius: 99px;
	background: var(--brand-soft);
	color: var(--brand-ink);
	font-size: 0.8125rem; font-weight: 600;
	text-decoration: none;
}
.pill:hover { background: var(--brand); color: var(--ink); text-decoration: none; }

.eyebrow,
p.is-style-eyebrow {
	display: inline-flex; align-items: center; gap: 0.6em;
	margin: 0 0 0.9rem;
	color: var(--brand-ink);
	font-size: 0.78125rem; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase;
}

p.is-style-lead,
.lead { color: var(--muted); font-size: var(--wp--preset--font-size--large); line-height: 1.6; }

/* Core button block variants */
.wp-block-button__link {
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%), 0 10px 24px -12px rgb(242 169 0 / 80%);
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: var(--base);
	color: var(--ink);
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow-xs);
	padding: calc(0.9em - 1px) calc(1.5em - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background: var(--surface); }

/* --------------------------------------------------------------------------
   Top bar
   ----------------------------------------------------------------------- */
.topbar { display: none; background: var(--night); color: var(--on-dark-muted); font-size: 0.8125rem; }
@media (min-width: 900px) { .topbar { display: block; } }
.topbar__inner { display: flex; align-items: center; gap: 1.75rem; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45em; color: inherit; text-decoration: none; }
a.topbar__item:hover { color: #fff; text-decoration: none; }
.topbar__item { white-space: nowrap; }
.topbar__item--addr { min-width: 0; }
.topbar__item--addr span { overflow: hidden; text-overflow: ellipsis; }
.topbar__item .icon { flex: none; }
@media (max-width: 1279px) { .topbar__item--mail { display: none; } }
.topbar .icon { color: var(--brand); width: 15px; height: 15px; }
.topbar__social { display: flex; gap: 0.25rem; margin-left: auto; }
.topbar__social a { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--on-dark-muted); }
.topbar__social a:hover { color: #fff; }
.topbar__social .icon { color: currentColor; }

/* --------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgb(255 255 255 / 97%);
	border-bottom: 1px solid rgb(15 23 42 / 7%);
	transition: box-shadow .2s, background-color .2s;
}
@supports (backdrop-filter: blur(8px)) {
	.site-header { background: rgb(255 255 255 / 82%); backdrop-filter: saturate(180%) blur(14px); }
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0); }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgb(15 23 42 / 35%); }

.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }

.site-logo { flex: none; }
.site-logo img,
.custom-logo { display: block; width: auto; max-height: 42px; }
@media (min-width: 1080px) { .site-logo img, .custom-logo { max-height: 48px; } }

.site-logo-text { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.site-logo-text:hover { color: var(--ink); text-decoration: none; }
.site-logo-mark {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ffd34d, var(--brand-dark));
	color: var(--ink);
	font-size: 0.95rem; letter-spacing: -0.04em;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 50%);
}
.site-logo-name { font-size: 1.1rem; }

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }

.header-call { flex: none; gap: 0.5em; padding-inline: 1em; }
.header-call__text { display: none; }
@media (min-width: 600px) { .header-call__text { display: inline; } }
@media (max-width: 599px) { .header-call { width: 42px; min-height: 42px; padding: 0; } }
.header-quote { display: none; flex: none; }
@media (min-width: 1180px) { .header-quote { display: inline-flex; } }

/* Navigation – mobile drawer */
.site-nav {
	position: fixed; inset: 0 0 0 auto; z-index: 80;
	display: flex; flex-direction: column;
	width: min(88vw, 380px);
	height: 100dvh;
	background: var(--base);
	box-shadow: var(--shadow-lg);
	/* Clipped, not translated off-screen: an off-screen fixed drawer widens the mobile layout viewport (sideways scroll / zoomed-out page). */
	clip-path: inset(0 0 0 100%);
	visibility: hidden;
	transition: clip-path .3s var(--ease), visibility 0s linear .3s;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.nav-open .site-nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .3s var(--ease); }
.nav-open { overflow: hidden; }
.nav-overlay { position: fixed; inset: 0; z-index: 70; background: rgb(10 14 23 / 55%); backdrop-filter: blur(2px); }

.site-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.75rem 0.75rem 1.25rem; border-bottom: 1px solid var(--line); }
.site-nav__label { font-weight: 700; }
.site-nav__foot { display: grid; gap: 0.6rem; margin-top: auto; padding: 1.25rem; border-top: 1px solid var(--line); }

.site-nav .menu { list-style: none; margin: 0; padding: 0.5rem; }
.site-nav .menu li { position: relative; }
.site-nav .menu a {
	display: flex; align-items: center;
	min-height: 48px;
	padding: 0.5rem 3.25rem 0.5rem 0.9rem;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.site-nav .menu a:hover,
.site-nav .menu a[aria-current="page"] { color: var(--ink); background: var(--surface); }
.submenu-toggle {
	position: absolute; top: 2px; right: 0.25rem;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border: 0; background: transparent; color: var(--muted);
	cursor: pointer;
	border-radius: 10px;
}
.submenu-toggle .icon { transition: transform .2s; }
.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
.site-nav .sub-menu { display: none; list-style: none; margin: 0; padding: 0 0 0.5rem 0.75rem; }
.site-nav .is-open > .sub-menu { display: block; }
.site-nav .sub-menu a { font-weight: 500; min-height: 44px; color: var(--text); }

/* Navigation – desktop */
@media (min-width: 1080px) {
	.nav-toggle,
	.site-nav__head,
	.site-nav__foot,
	.nav-overlay { display: none !important; }

	.site-nav {
		position: static; z-index: auto;
		flex: 0 1 auto; min-width: 0;
		width: auto; height: auto;
		margin-inline: auto;
		background: transparent; box-shadow: none;
		clip-path: none; visibility: visible; transition: none;
		overflow: visible;
	}
	.site-nav .menu { display: flex; align-items: center; gap: 0.125rem; padding: 0; }
	.site-nav .menu > li > a {
		min-height: 40px;
		padding: 0 0.85rem;
		color: #3a4252;
		font-size: 0.9375rem; font-weight: 500; line-height: 1.25;
		white-space: nowrap; /* One line per label – keep top-level menus to ~6 short items. */
	}
	.site-nav .menu > li.menu-item-has-children > a { padding-right: 1.9rem; }
	.site-nav .sub-menu a { white-space: nowrap; }
	.site-nav .menu > li > a:hover,
	.site-nav .menu > li > a[aria-current="page"],
	.site-nav .menu > li.current-menu-ancestor > a { color: var(--ink); background: var(--surface); }
	.site-nav .menu > li > a[aria-current="page"] { font-weight: 600; }

	.site-nav .menu > li > .submenu-toggle { top: 50%; right: 0.3rem; width: 24px; height: 24px; margin-top: -12px; }
	.site-nav .menu > li > .submenu-toggle .icon { width: 16px; height: 16px; }

	.site-nav .sub-menu {
		position: absolute; top: calc(100% + 8px); left: -0.5rem; z-index: 10;
		display: block;
		min-width: 280px;
		padding: 0.5rem;
		background: var(--base);
		border: 1px solid var(--line);
		border-radius: 16px;
		box-shadow: var(--shadow-lg);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .15s, transform .2s var(--ease), visibility 0s linear .2s;
	}
	.site-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
	.site-nav li:hover > .sub-menu,
	.site-nav li:focus-within > .sub-menu,
	.site-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .2s var(--ease); }
	.site-nav .sub-menu a { min-height: 42px; padding: 0.5rem 0.85rem; border-radius: 10px; font-size: 0.9375rem; }
	.site-nav .sub-menu .sub-menu { top: -0.5rem; left: 100%; }
	.site-nav .sub-menu .submenu-toggle { display: none; }
}

/* Header search */
.header-search { padding: 0.9rem 0 1.1rem; border-top: 1px solid var(--line); background: var(--base); }

.search-form { display: flex; gap: 0.5rem; max-width: 640px; margin-inline: auto; }
.search-form__input {
	flex: 1; min-width: 0; min-height: 50px;
	padding: 0.6rem 1rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-sm);
	background: var(--base);
	font: inherit; color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
.search-form__input:focus { outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 4px rgb(255 194 14 / 25%); }
.search-form__btn {
	display: grid; place-items: center;
	width: 52px;
	border: 0; border-radius: var(--radius-sm);
	background: var(--navy); color: #fff;
	cursor: pointer;
}
.search-form__btn:hover { background: var(--navy-2); }

/* --------------------------------------------------------------------------
   Page header + breadcrumbs
   ----------------------------------------------------------------------- */
.page-header {
	position: relative;
	isolation: isolate;
	padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.25rem, 5vw, 3.75rem);
	background: var(--glow), var(--base);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.page-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--grid-light);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 75%);
	mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 75%);
}
.page-header__title { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.page-header__desc { max-width: 720px; margin-top: 0.9rem; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.page-header__desc p { margin: 0.5rem 0 0; }
.page-header .eyebrow { margin-bottom: 0.6rem; }

.breadcrumbs { margin-bottom: 1.25rem; font-size: 0.84375rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
	content: ""; width: 6px; height: 6px; margin: 0 0.65rem;
	border-top: 1.5px solid #aab0bc; border-right: 1.5px solid #aab0bc;
	transform: rotate(45deg);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 42ch; }

.crumb-bar { padding-top: 1rem; }
.crumb-bar .breadcrumbs { margin: 0; }
/* Landing page opening with a hero: the breadcrumb sits inside the dark band. */
.crumb-bar:has(+ .entry-content--canvas > .c3m-hero:first-child) { padding-block: 1rem 0; background: var(--night); }
.crumb-bar:has(+ .entry-content--canvas > .c3m-hero:first-child) :is(.breadcrumbs, .breadcrumbs a) { color: var(--on-dark-muted); }
.crumb-bar:has(+ .entry-content--canvas > .c3m-hero:first-child) .breadcrumbs [aria-current] { color: #fff; }
.crumb-bar:has(+ .entry-content--canvas > .c3m-hero:first-child) .breadcrumbs li + li::before { border-color: #4b5466; }

/* --------------------------------------------------------------------------
   Content / prose
   ----------------------------------------------------------------------- */
.entry-content { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem); }
.entry-content--canvas { padding-block: 0; }
.entry-content > :first-child { margin-top: 0; }

.entry-content h2 { margin-top: 2.25em; margin-bottom: 0.6em; }
.entry-content h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.entry-content h4 { margin-top: 1.5em; margin-bottom: 0.4em; }
/* Article typography: section-sized headings belong to landing patterns, not prose. */
.entry-content:not(.entry-content--canvas) h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.9375rem); letter-spacing: -0.025em; line-height: 1.2; }
.entry-content:not(.entry-content--canvas) h3 { font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem); line-height: 1.3; }
/* Section headings in patterns: no article spacing after an eyebrow or at the top of a column/group. */
.entry-content .is-style-eyebrow + :is(h2, h3),
.entry-content :is(.wp-block-column, .wp-block-group) > :is(h2, h3):first-child { margin-top: 0; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-block: 0.4em; }
.entry-content li::marker { color: var(--brand-dark); font-weight: 700; }
.entry-content img { border-radius: 14px; }
.entry-content figure { margin-block: 2em; }
.entry-content figcaption,
.wp-caption-text { margin-top: 0.6em; color: var(--muted); font-size: 0.875rem; text-align: center; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.entry-content blockquote:not(.c3m-testimonial) { margin-inline: 0; padding: 1rem 1.25rem; background: var(--surface); border-radius: 0 14px 14px 0; font-size: 1.0625rem; color: var(--ink); }
.entry-content blockquote cite { display: block; margin-top: 0.5em; color: var(--muted); font-size: 0.9rem; font-style: normal; }

/* Tables – scroll on small screens, hairline rows */
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.entry-content th, .entry-content td { padding: 0.8em 1em; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content tr:last-child > :is(th, td) { border-bottom: 0; }
.entry-content thead th { background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.entry-content .wp-block-table thead { border-bottom: 0; }
@media (max-width: 599px) { .entry-content .wp-block-table table:has(thead) { min-width: 560px; } } /* data tables scroll; 2-column fact tables wrap */
.wp-block-table.is-style-stripes { border-bottom: 0; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--base); }
.wp-block-table.is-style-stripes tbody tr:nth-child(even) { background: #fafbfc; }

/* Classic editor alignments (legacy posts) */
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
@media (max-width: 599px) { .alignleft, .alignright { float: none; margin-inline: auto; } }
.wp-caption { max-width: 100%; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Legacy WPBakery pages */
.entry-content--legacy img { border-radius: 0; }
.entry-content--legacy .vc_row { margin-inline: 0 !important; }
.legacy-heading { font-size: 1.375rem; margin-top: 1.5em; }

/* Article inside sidebar layout: never break out of the column */
.article-main .alignfull,
.article-main .alignwide { margin-inline: 0 !important; max-width: 100% !important; width: auto; }

/* --------------------------------------------------------------------------
   Block styles
   ----------------------------------------------------------------------- */
/* Quick answer – put the direct answer first (AEO / featured snippets). */
.wp-block-group.is-style-answer {
	position: relative;
	padding: 1.25rem 1.4rem 1.25rem 1.6rem;
	background: linear-gradient(180deg, #fffbee, #fff8e2);
	border: 1px solid #f4e2a6;
	border-radius: 16px;
	box-shadow: inset 4px 0 0 var(--brand);
	color: var(--ink);
}
.wp-block-group.is-style-answer > :first-child { margin-top: 0; }
.wp-block-group.is-style-answer > :last-child { margin-bottom: 0; }
.wp-block-group.is-style-answer h2,
.wp-block-group.is-style-answer h3 { margin-top: 0; font-size: 1.125rem; }

.wp-block-group.is-style-card {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}
.wp-block-group.is-style-callout {
	padding: 1rem 1.25rem;
	background: var(--surface);
	border: 1px dashed var(--line-strong);
	border-radius: 14px;
}

ul.is-style-checks,
ul.c3m-checks { list-style: none; padding-left: 0; }
ul.is-style-checks li,
ul.c3m-checks li { position: relative; padding-left: 2rem; }
ul.is-style-checks li::before,
ul.c3m-checks li::before {
	content: ""; position: absolute; left: 0; top: 0.22em;
	width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: var(--brand-soft) var(--check) center / 60% no-repeat;
}

.wp-block-image.is-style-framed img {
	border-radius: var(--radius-lg);
	box-shadow: 0 0 0 1px rgb(15 23 42 / 6%), var(--shadow-lg);
}

/* FAQ / details */
.wp-block-details {
	margin-block: 0.75rem 0;
	padding: 0;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.wp-block-details:hover { border-color: var(--line-strong); }
.wp-block-details[open] { border-color: transparent; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.wp-block-details summary {
	position: relative;
	padding: 1.15rem 3.5rem 1.15rem 1.35rem;
	color: var(--ink);
	font-weight: 600; font-size: 1.0625rem; line-height: 1.45; letter-spacing: -0.01em;
	list-style: none;
	cursor: pointer;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	position: absolute; right: 1.1rem; top: 50%;
	width: 28px; height: 28px; margin-top: -14px;
	border-radius: 9px;
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform .25s var(--ease), background-color .2s;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); background-color: var(--brand); }
.wp-block-details > :not(summary) { margin: 0 1.35rem 1.15rem; color: var(--text); }
.wp-block-details > summary + * { margin-top: 0; }

/* --------------------------------------------------------------------------
   Pattern sections (homepage + landing pages)
   ----------------------------------------------------------------------- */
.c3m-section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }
.c3m-section:has(> .c3m-section__head):not(.c3m-dark, .c3m-cta) { background-image: var(--glow); }
.c3m-section--surface { background-color: var(--surface); }

.c3m-section__head {
	max-width: 760px;
	margin: 0 auto clamp(2.5rem, 5vw, 3.75rem) !important;
	text-align: center;
}
.c3m-section__head h2 { margin: 0 0 0.85rem; }
.c3m-section__head p:last-child:not(.is-style-eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.c3m-section__head .is-style-eyebrow { justify-content: center; }
.c3m-center { margin-inline: auto !important; text-align: center; }
.c3m-center .eyebrow, .c3m-center .is-style-eyebrow { justify-content: center; }

/* Dark bands: navy, yellow glow from below, thin decorative arcs */
.c3m-dark {
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(55% 65% at 50% 110%, rgb(255 194 14 / 17%), transparent 70%),
		linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
	color: var(--on-dark);
}
.c3m-dark::before,
.c3m-dark::after {
	content: ""; position: absolute; z-index: -1;
	border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%;
	pointer-events: none;
}
.c3m-dark::before { width: 640px; height: 640px; top: -360px; right: -180px; }
.c3m-dark::after { width: 520px; height: 520px; top: -260px; right: -340px; border-color: rgb(255 255 255 / 8%); }
.c3m-dark :where(h1, h2, h3, h4) { color: #fff; }
.c3m-dark a:not(.wp-element-button):not(.btn) { color: #fff; }
.c3m-dark .is-style-eyebrow, .c3m-dark .eyebrow { color: var(--brand); }
.c3m-dark .c3m-section__head p:last-child:not(.is-style-eyebrow) { color: var(--on-dark-muted); }
.c3m-dark ul.c3m-checks li::before,
.c3m-dark ul.is-style-checks li::before { background: rgb(255 194 14 / 14%) var(--check-dark) center / 60% no-repeat; }
:is(.c3m-dark, .c3m-hero, .c3m-cta) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) {
	background: rgb(255 255 255 / 5%);
	color: #fff;
	border-color: rgb(255 255 255 / 18%);
	box-shadow: none;
}
:is(.c3m-dark, .c3m-hero, .c3m-cta) .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background: rgb(255 255 255 / 10%); }

/* Hero */
.c3m-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 7.5rem) !important;
	background:
		radial-gradient(55% 70% at 88% 6%, rgb(255 194 14 / 24%), transparent 62%),
		radial-gradient(45% 60% at -5% 105%, rgb(255 138 0 / 12%), transparent 70%),
		linear-gradient(180deg, var(--night) 0%, var(--ink) 100%);
	color: var(--on-dark);
	overflow: hidden;
}
.c3m-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--grid-dark);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(75% 70% at 70% 30%, #000 10%, transparent 70%);
	mask-image: radial-gradient(75% 70% at 70% 30%, #000 10%, transparent 70%);
}
/* h1 or h2: the hero heading is styled whatever level an editor gave it. */
.c3m-hero :is(h1, h2).wp-block-heading { margin: 1.1rem 0 1.25rem; color: #fff; font-size: var(--wp--preset--font-size--huge); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.c3m-hero :is(h1, h2) mark {
	background: linear-gradient(92deg, #ffe08a 0%, var(--brand) 45%, #ffa800 100%);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	padding: 0;
}
.c3m-hero p.is-style-eyebrow {
	gap: 0.6em;
	margin: 0;
	padding: 0.4em 0.95em 0.4em 0.55em;
	background: rgb(255 255 255 / 5%);
	border: 1px solid rgb(255 255 255 / 13%);
	border-radius: 99px;
	color: #e6e9ef;
	font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.c3m-hero p.is-style-eyebrow::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%;
	background: var(--brand);
	box-shadow: 0 0 0 4px rgb(255 194 14 / 18%);
}
.c3m-hero .c3m-hero__lead { max-width: 37rem; color: var(--on-dark-muted); font-size: var(--wp--preset--font-size--large); line-height: 1.65; }
.c3m-hero .wp-block-buttons { margin-top: 2rem; gap: 0.75rem; }
.c3m-hero .wp-block-button__link { padding: 1em 1.6em; }
.c3m-hero ul.c3m-checks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 2rem; color: #c9ced8; font-size: 0.90625rem; }
.c3m-hero ul.c3m-checks li { margin: 0; padding-left: 1.75rem; }
.c3m-hero ul.c3m-checks li::before { top: 0.15em; width: 1.15rem; height: 1.15rem; background: rgb(255 194 14 / 14%) var(--check-dark) center / 62% no-repeat; }
.c3m-hero__cols { gap: clamp(2.5rem, 5vw, 4.5rem) !important; }
.c3m-hero__media-col { position: relative; }
.c3m-hero__media { margin: 0 !important; }
.c3m-hero__media img {
	display: block; width: 100%;
	aspect-ratio: 5 / 4; object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 12%), 0 0 0 10px rgb(255 255 255 / 3%), 0 40px 90px -30px rgb(0 0 0 / 70%);
}
.c3m-hero__badge,
.c3m-hero__chip,
.c3m-intro__chip {
	position: absolute; z-index: 2;
	margin: 0 !important;
	background: #fff; color: var(--ink);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgb(15 23 42 / 8%), 0 24px 48px -16px rgb(0 0 0 / 45%);
	font-size: 0.84375rem; line-height: 1.35;
}
.c3m-hero__badge { left: -22px; bottom: 28px; padding: 0.85rem 1.1rem; color: var(--muted); }
.c3m-hero__badge strong { display: block; color: var(--ink); font-size: 1.625rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.c3m-hero__chip,
.c3m-intro__chip { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem 0.7rem 0.75rem; font-weight: 600; }
.c3m-hero__chip { right: -14px; top: 26px; }
.c3m-hero__chip::before,
.c3m-intro__chip::before {
	content: ""; flex: none; width: 30px; height: 30px; border-radius: 10px;
	background: var(--brand-soft) var(--check) center / 55% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
	.c3m-hero__badge { animation: c3m-float 6s ease-in-out infinite; }
	.c3m-hero__chip { animation: c3m-float 6s ease-in-out -3s infinite; }
}
@keyframes c3m-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
@media (max-width: 781px) {
	.c3m-hero__badge { left: 12px; bottom: 12px; }
	.c3m-hero__chip { right: 12px; top: 12px; }
	.c3m-hero__badge strong { font-size: 1.375rem; }
}

/* Hero photo collage: one wide shot + two below, cards floating over the edges */
.c3m-collage { position: relative; display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px !important; }
.c3m-collage > * { margin: 0 !important; }
.c3m-collage > .wp-block-image { overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px rgb(255 255 255 / 12%), 0 30px 60px -28px rgb(0 0 0 / 75%); }
.c3m-collage > .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .8s var(--ease); }
.c3m-collage > .wp-block-image:hover img { transform: scale(1.04); }
.c3m-collage > .c3m-hero__media { grid-column: 1 / -1; }
.c3m-collage > .c3m-hero__media img { aspect-ratio: 16 / 10; }
.c3m-collage > .c3m-collage__side img { aspect-ratio: 4 / 3; }
.c3m-collage .c3m-hero__chip { top: 18px; right: -14px; }
.c3m-collage .c3m-hero__badge { left: -22px; bottom: 22%; }
@media (max-width: 781px) {
	.c3m-collage { gap: 8px !important; }
	.c3m-collage > .wp-block-image { border-radius: 14px; }
	.c3m-collage .c3m-hero__chip { top: 10px; right: 10px; }
	.c3m-collage .c3m-hero__badge { left: 10px; bottom: auto; top: calc(62.5% - 3.4rem); }
}

/* Project photo strip (marquee) – continues the dark hero */
.c3m-showcase { overflow: hidden; padding-block: 0.5rem clamp(2.5rem, 5vw, 3.5rem) !important; background: var(--ink); }
.c3m-showcase > * { margin-block: 0 !important; }
.c3m-showcase__label { margin: 0 auto 1.25rem !important; padding-inline: var(--gutter); color: var(--on-dark-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }
.c3m-marquee {
	display: flex; overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.c3m-marquee__track { display: flex; flex: none; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.c3m-marquee__track li { margin: 0; }
.c3m-marquee__item {
	position: relative; display: block; overflow: hidden;
	width: clamp(220px, 26vw, 340px); aspect-ratio: 16 / 10;
	border-radius: 16px;
	box-shadow: 0 0 0 1px rgb(255 255 255 / 10%);
	text-decoration: none;
}
.c3m-marquee__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.c3m-marquee__item span {
	position: absolute; inset: auto 0 0 0;
	padding: 2.5rem 0.9rem 0.75rem;
	background: linear-gradient(180deg, transparent, rgb(10 14 23 / 88%));
	color: #fff; font-size: 0.84375rem; font-weight: 600; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c3m-marquee__item:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
	.c3m-marquee__track { animation: c3m-marquee 70s linear infinite; }
	.c3m-marquee:hover .c3m-marquee__track,
	.c3m-marquee:focus-within .c3m-marquee__track { animation-play-state: paused; }
}
@keyframes c3m-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.c3m-marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
	.c3m-marquee__track[aria-hidden] { display: none; }
	.c3m-marquee__item { scroll-snap-align: start; }
}

/* Dark bands with a real photo behind a navy overlay */
.c3m-photo { isolation: isolate; }
.c3m-photo > .c3m-bg {
	position: absolute !important; inset: 0; z-index: -2;
	width: 100% !important; max-width: none !important; height: 100%;
	margin: 0 !important;
}
.c3m-photo > .c3m-bg img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.c3m-photo > .c3m-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgb(11 18 32 / 90%) 0%, rgb(11 18 32 / 78%) 50%, rgb(11 18 32 / 92%) 100%);
}
.c3m-cta.c3m-photo > .c3m-bg::after {
	background:
		radial-gradient(50% 85% at 50% 125%, rgb(255 194 14 / 38%), transparent 70%),
		linear-gradient(180deg, rgb(11 18 32 / 92%) 0%, rgb(11 18 32 / 74%) 55%, rgb(11 18 32 / 88%) 100%);
}

/* Contact hero: every way to reach 3M, tappable */
.c3m-qc { display: grid !important; gap: 10px !important; }
.c3m-qc > * { margin: 0 !important; }
p.c3m-qc__item {
	display: flex; flex-direction: column; gap: 0.15rem;
	padding: 1rem 1.15rem 1rem 3.6rem;
	background: rgb(255 255 255 / 6%) var(--qc-icon, none) 1.15rem center / 26px no-repeat;
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: 16px;
	color: #fff; font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
	transition: background-color .2s, border-color .2s;
}
p.c3m-qc__item:hover { background-color: rgb(255 255 255 / 10%); border-color: rgb(255 194 14 / 45%); }
p.c3m-qc__item span { color: var(--on-dark-muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
p.c3m-qc__item a { color: #fff; text-decoration: none; }
p.c3m-qc__item a:hover { color: var(--brand); }
p.c3m-qc__item--call { background-color: var(--brand); border-color: var(--brand); color: var(--ink); }
p.c3m-qc__item--call span, p.c3m-qc__item--call a { color: var(--ink); }
p.c3m-qc__item--call:hover { background-color: var(--brand-dark); }
p.c3m-qc__item--call a { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.c3m-qc__item--call { --qc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.c3m-qc__item--zalo { --qc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8v.5z'/%3E%3C/svg%3E"); }
.c3m-qc__item--mail { --qc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 6-10 7L2 6'/%3E%3C/svg%3E"); }
.c3m-qc__item--map { --qc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.c3m-qc__item--time { --qc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }

/* Trust strip: brand names as muted wordmarks */
.c3m-trust { padding-block: clamp(2rem, 4vw, 2.75rem) !important; border-bottom: 1px solid var(--line); }
.c3m-trust__label { margin: 0 0 1.25rem !important; color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; text-align: center; }
ul.c3m-trust__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem clamp(1.25rem, 3vw, 2.4rem); margin: 0 !important; padding: 0; list-style: none; }
ul.c3m-trust__list li {
	margin: 0;
	color: #5f6778; /* ≥ 4.5:1 on white – these are real names, not decorative logos. */
	font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem); font-weight: 800; letter-spacing: -0.03em;
	transition: color .2s;
}
ul.c3m-trust__list li:hover { color: var(--ink); }

/* Definition / entity block ("Công ty 3M là ai?") */
.c3m-intro__cols { gap: clamp(2rem, 6vw, 5rem) !important; }
.c3m-intro__cols > .wp-block-column:last-child { position: relative; }
.c3m-intro__img { margin: 0 !important; }
.c3m-intro__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.c3m-intro__chip { left: -18px; bottom: 26px; }
@media (max-width: 781px) { .c3m-intro__chip { left: 12px; bottom: 12px; } }

/* Services grid */
.c3m-grid { display: grid !important; grid-template-columns: 1fr; gap: 1.25rem !important; }
@media (min-width: 640px) { .c3m-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .c3m-grid--3 { grid-template-columns: repeat(3, 1fr); } .c3m-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.c3m-grid > * { margin: 0 !important; }

.c3m-svc {
	position: relative;
	display: flex; flex-direction: column;
	padding: 1.75rem;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-xs);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.c3m-svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.c3m-svc::before {
	content: "";
	display: block;
	width: 48px; height: 48px;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	background: var(--icon, none) center / 24px no-repeat, var(--brand-soft);
	box-shadow: inset 0 0 0 1px rgb(242 169 0 / 18%);
	transition: background-color .3s;
}
.c3m-svc:hover::before { background-color: var(--brand); }
.c3m-svc h3 { margin: 0 0 0.5rem; font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; }
.c3m-svc h3 a { color: var(--ink); text-decoration: none; }
.c3m-svc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.c3m-svc p { margin: 0; color: var(--muted); font-size: 0.96875rem; line-height: 1.6; }
.c3m-svc p.c3m-svc__more { display: inline-flex; align-items: center; gap: 0.35em; margin-top: auto; padding-top: 1.25rem; color: var(--brand-ink); font-weight: 600; font-size: 0.9375rem; }
.c3m-svc p.c3m-svc__more::after { content: "→"; transition: transform .2s var(--ease); }
.c3m-svc:hover p.c3m-svc__more::after { transform: translateX(4px); }

.c3m-svc--signboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='11' rx='1.5'/%3E%3Cpath d='M7 8h10M7 11h6M8 15v5M16 15v5'/%3E%3C/svg%3E"); }
.c3m-svc--facade { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='1'/%3E%3Cpath d='M4 9h16M4 15h16M12 3v18'/%3E%3C/svg%3E"); }
.c3m-svc--letters { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 19L8 5l5 14M4.8 14h6.4M15 5h3a3 3 0 0 1 0 6.5h-3zM15 11.5h3.5a3.75 3.75 0 0 1 0 7.5H15z'/%3E%3C/svg%3E"); }
.c3m-svc--cnc { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v6M8.5 8h7l-1.5 3.5h-4zM12 11.5V16M4 20h16M7.5 17.5l-2 1M16.5 17.5l2 1'/%3E%3C/svg%3E"); }
.c3m-svc--lightbox { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='8' width='16' height='11' rx='1.5'/%3E%3Cpath d='M8 13.5h8M12 2.5V5M5 4l1.5 2M19 4l-1.5 2'/%3E%3C/svg%3E"); }
.c3m-svc--standee { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='15' rx='1'/%3E%3Cpath d='M12 17v4M8 21h8M9.5 6h5M9.5 9h5'/%3E%3C/svg%3E"); }
.c3m-svc--booth { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h18v11H3zM3 9l2-5h14l2 5M9 20v-6h6v6'/%3E%3C/svg%3E"); }
.c3m-svc--brand { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6l-5.4 2.9 1.2-6-4.5-4.2 6.1-.7z'/%3E%3C/svg%3E"); }
.c3m-svc--web { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='2'/%3E%3Cpath d='M3 8h18M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.c3m-svc--ads { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8M14 7h7v7'/%3E%3C/svg%3E"); }

/* Service cards with a photo: photo on top, icon tile overlapping its bottom edge */
.c3m-svc:has(> .c3m-svc__img) { padding: 0.625rem 0.625rem 1.5rem; }
.c3m-svc:has(> .c3m-svc__img) > :not(.c3m-svc__img) { margin-inline: 1.1rem !important; }
.c3m-svc__img { order: -2; margin: 0 0 0 !important; overflow: hidden; border-radius: 14px; }
.c3m-svc__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.c3m-svc:hover .c3m-svc__img img { transform: scale(1.05); }
.c3m-svc:has(> .c3m-svc__img)::before {
	order: -1;
	position: relative; z-index: 1;
	margin: -26px 0 0.9rem 1.1rem;
	background-color: var(--brand);
	box-shadow: 0 0 0 4px var(--base), 0 8px 18px -8px rgb(15 23 42 / 45%);
}

/* Stats: glass cards on a dark band */
.c3m-stats { gap: 1rem !important; }
.c3m-stats > .wp-block-column {
	padding: 1.75rem 1.5rem;
	background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 2%));
	border: 1px solid rgb(255 255 255 / 10%);
	border-radius: var(--radius);
	backdrop-filter: blur(6px);
}
.c3m-stat__num {
	margin: 0 !important;
	background: linear-gradient(92deg, #ffe08a, var(--brand) 55%, #ffa800);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em;
}
.c3m-stat__label { margin: 0.75rem 0 0 !important; color: var(--on-dark-muted); font-size: 0.9375rem; line-height: 1.55; }

/* Process steps */
.c3m-steps { counter-reset: step; gap: 1.25rem !important; }
.c3m-steps > .wp-block-column {
	position: relative;
	counter-increment: step;
	padding: 1.75rem;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-xs);
}
.c3m-steps > .wp-block-column::before {
	content: "Bước " counter(step, decimal-leading-zero);
	display: inline-flex; align-items: center;
	height: 30px; margin-bottom: 1.1rem; padding: 0 0.75rem;
	border-radius: 99px;
	background: var(--brand-soft); color: var(--brand-ink);
	font-size: 0.78125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
@media (min-width: 782px) {
	.c3m-steps > .wp-block-column:not(:last-child)::after {
		content: ""; position: absolute; top: 2.65rem; right: calc(-1.25rem - 1px); width: 1.25rem;
		border-top: 2px dashed var(--line-strong);
	}
}
.c3m-steps h3 { margin: 0 0 0.45rem; font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }
.c3m-steps p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* Query loop cards (projects, posts) */
.c3m-query .wp-block-post-template { gap: 1.25rem; margin: 0; padding: 0; }
.c3m-query .wp-block-post {
	position: relative;
	display: flex; flex-direction: column;
	padding: 0.625rem;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.c3m-query .wp-block-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.c3m-query .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: 14px; }
.c3m-query .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.c3m-query .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.c3m-query .wp-block-post-title { margin: 1rem 0.75rem 0.4rem; font-size: 1.0625rem; font-weight: 650; line-height: 1.4; letter-spacing: -0.015em; }
.c3m-query .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.c3m-query .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.c3m-query .wp-block-post-excerpt { margin: 0 0.75rem 1rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.c3m-query .wp-block-post-excerpt__excerpt { margin: 0; }
.c3m-query .wp-block-post-date { margin: auto 0.75rem 0.75rem; color: var(--muted); font-size: 0.8125rem; }
.c3m-query--projects .wp-block-post-title { margin-bottom: 0.75rem; }
/* No featured image: branded placeholder keeps the row aligned. */
.c3m-query .wp-block-post:not(:has(.wp-block-post-featured-image))::before {
	content: "3M"; order: -1;
	display: grid; place-items: center;
	aspect-ratio: 16 / 10;
	border-radius: 14px;
	background: radial-gradient(60% 80% at 80% 0%, rgb(255 194 14 / 30%), transparent 70%), var(--navy);
	box-shadow: 0 0 0 1px rgb(255 255 255 / 8%);
	color: var(--brand); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em;
}
@media (max-width: 599px) {
	.c3m-query .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
}
/* On dark bands posts read like an editorial row */
.c3m-dark .c3m-query .wp-block-post { padding: 0; background: transparent; border: 0; }
.c3m-dark .c3m-query .wp-block-post:hover { transform: none; box-shadow: none; }
.c3m-dark .c3m-query .wp-block-post-featured-image { border-radius: 16px; box-shadow: 0 0 0 1px rgb(255 255 255 / 8%); }
.c3m-dark .c3m-query .wp-block-post-date { order: 1; margin: 1.1rem 0 0; color: var(--brand); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.c3m-dark .c3m-query .wp-block-post-title { order: 2; margin: 0.45rem 0 0.5rem; font-size: 1.1875rem; }
.c3m-dark .c3m-query .wp-block-post-title a { color: #fff; }
.c3m-dark .c3m-query .wp-block-post:hover .wp-block-post-title a { color: var(--brand); }
.c3m-dark .c3m-query .wp-block-post-excerpt { order: 3; margin: 0; color: var(--on-dark-muted); }

/* Capability cards reuse the step layout without the “Bước 0x” pill. */
.c3m-steps--plain > .wp-block-column::before { content: none !important; }

/* Process steps with photos: step pill sits on the photo */
.c3m-steps > .wp-block-column:has(> .c3m-step__img) { padding: 0.625rem 0.625rem 1.5rem; }
.c3m-steps > .wp-block-column:has(> .c3m-step__img) > :not(.c3m-step__img) { margin-inline: 1.1rem; }
.c3m-steps > .wp-block-column:has(> .c3m-step__img)::before {
	position: absolute; top: 1.25rem; left: 1.25rem; z-index: 1;
	background: rgb(255 255 255 / 94%); color: var(--ink);
	box-shadow: 0 6px 16px -8px rgb(15 23 42 / 50%);
}
.c3m-steps:has(.c3m-step__img) > .wp-block-column::after { display: none; }
.c3m-step__img { margin: 0 0 1.1rem !important; overflow: hidden; border-radius: 14px; }
.c3m-step__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.c3m-steps > .wp-block-column:hover .c3m-step__img img { transform: scale(1.05); }

/* Project gallery (bento): big first tile, captions over the photos */
.c3m-query--bento .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 150px; gap: 12px !important; }
@media (min-width: 900px) {
	.c3m-query--bento .wp-block-post-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-rows: 220px; gap: 16px !important; }
}
.c3m-query--bento .wp-block-post:first-child { grid-column: span 2; grid-row: span 2; }
.c3m-query--bento .wp-block-post {
	justify-content: flex-end;
	padding: 0; overflow: hidden;
	background: var(--navy); border: 0; border-radius: 18px;
}
.c3m-query--bento .wp-block-post:hover { transform: none; box-shadow: var(--shadow-lg); }
.c3m-query--bento .wp-block-post-featured-image,
.c3m-query--bento .wp-block-post:not(:has(.wp-block-post-featured-image))::before { position: absolute; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; box-shadow: none; }
.c3m-query--bento .wp-block-post-featured-image a { display: block; height: 100%; }
.c3m-query--bento .wp-block-post-featured-image img { height: 100%; aspect-ratio: auto; }
.c3m-query--bento .wp-block-post-title {
	position: relative; z-index: 1;
	margin: 0 !important; padding: 3.5rem 1rem 0.9rem;
	background: linear-gradient(180deg, transparent, rgb(10 14 23 / 88%));
	font-size: 0.9375rem;
}
.c3m-query--bento .wp-block-post-title a { color: #fff; }
.c3m-query--bento .wp-block-post:first-child .wp-block-post-title { padding: 5rem 1.5rem 1.4rem; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); letter-spacing: -0.02em; }
@media (max-width: 599px) { .c3m-query--bento .wp-block-post:not(:first-child) .wp-block-post-title { padding: 2.5rem 0.75rem 0.65rem; font-size: 0.8125rem; } }

/* Testimonials */
.c3m-reviews { gap: 1.25rem !important; }
.wp-block-quote.c3m-testimonial {
	position: relative;
	display: flex; flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 1.75rem;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-xs);
	font-size: 1rem;
}
.wp-block-quote.c3m-testimonial::before {
	content: "★★★★★"; display: block; margin-bottom: 1rem;
	color: #f5b400; letter-spacing: 0.12em; font-size: 0.95rem;
}
.wp-block-quote.c3m-testimonial::after {
	content: "“"; position: absolute; top: 0.4rem; right: 1.25rem;
	color: var(--brand-soft); font-size: 5.5rem; font-weight: 800; line-height: 1;
	pointer-events: none;
}
.wp-block-quote.c3m-testimonial p { position: relative; z-index: 1; color: var(--text); line-height: 1.7; }
.wp-block-quote.c3m-testimonial cite {
	display: flex; align-items: center; gap: 0.75rem;
	margin-top: auto; padding-top: 1.25rem;
	border-top: 1px solid var(--line);
	color: var(--ink); font-weight: 600; font-style: normal; font-size: 0.9375rem;
}
.wp-block-quote.c3m-testimonial cite::before {
	content: ""; flex: none; width: 38px; height: 38px; border-radius: 50%;
	background: linear-gradient(135deg, #ffe08a, var(--brand-dark));
	box-shadow: inset 0 0 0 2px rgb(255 255 255 / 60%);
}

/* Reviews beside a real project photo */
.c3m-reviews__media { position: relative; }
.c3m-reviews__img { margin: 0 !important; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.c3m-reviews__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; }
@media (max-width: 781px) { .c3m-reviews__img img { aspect-ratio: 16 / 10; } }
.c3m-reviews__media ~ .wp-block-column .c3m-testimonial { height: auto; }
.c3m-reviews__media ~ .wp-block-column .c3m-testimonial + .c3m-testimonial { margin-top: 1.25rem; }

/* FAQ section: sticky intro left, questions right on desktop */
.c3m-faq { display: grid; gap: 0; max-width: 1240px; margin-inline: auto !important; }
.c3m-faq > * { margin-block: 0 !important; }
.c3m-faq > .wp-block-details + .wp-block-details { margin-top: 0.75rem !important; }
@media (min-width: 1000px) {
	.c3m-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr); column-gap: clamp(3rem, 6vw, 5rem); align-items: start; }
	.c3m-faq > .c3m-section__head { grid-row: 1 / span 20; position: sticky; top: calc(var(--header-h) + 2rem); margin: 0 !important; text-align: left; }
	.c3m-faq > .c3m-section__head .is-style-eyebrow { justify-content: flex-start; }
	.c3m-faq > .wp-block-details { grid-column: 2; }
}

/* CTA band */
.c3m-cta {
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(4rem, 9vw, 6.5rem) !important;
	background:
		radial-gradient(50% 85% at 50% 125%, rgb(255 194 14 / 42%), transparent 70%),
		linear-gradient(180deg, var(--ink) 0%, var(--navy) 100%);
	color: var(--on-dark);
	text-align: center;
}
.c3m-cta::before,
.c3m-cta::after {
	content: ""; position: absolute; z-index: -1;
	border: 1px solid rgb(255 255 255 / 14%); border-radius: 50%;
	pointer-events: none;
}
.c3m-cta::before { width: 560px; height: 560px; left: -300px; top: -120px; }
.c3m-cta::after { width: 460px; height: 460px; left: -120px; top: 40px; border-color: rgb(255 255 255 / 9%); }
.c3m-cta .is-style-eyebrow { color: var(--brand); justify-content: center; }
.c3m-cta h2 { margin: 0 auto 1rem; max-width: 22ch; color: #fff; }
.c3m-cta p { margin: 0 auto; max-width: 40rem; color: var(--on-dark-muted); font-size: 1.125rem; line-height: 1.6; }
.c3m-cta .wp-block-buttons { justify-content: center; margin-top: 2rem; gap: 0.75rem; }
.c3m-cta .wp-block-button__link { padding: 1em 1.6em; }

/* Contact section */
.c3m-contact__cols { gap: clamp(2rem, 5vw, 4rem) !important; }
.c3m-contact__form {
	padding: clamp(1.5rem, 3.5vw, 2.25rem) !important;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-soft);
}
.c3m-contact__form h3 { margin-top: 0; font-size: 1.375rem; }

/* Price table */
.c3m-price table td:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }

/* Key facts (entity table) */
.c3m-facts table { font-size: 0.9375rem; }
.c3m-facts table th { width: 36%; color: var(--muted); font-weight: 500; background: var(--surface); }
.c3m-facts table td { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   Cards (PHP templates)
   ----------------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
	position: relative;
	display: flex; flex-direction: column;
	padding: 0.625rem;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:focus-within { outline: 3px solid rgb(255 194 14 / 75%); outline-offset: 2px; }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder {
	display: grid; place-items: center; height: 100%;
	background: radial-gradient(60% 80% at 80% 0%, rgb(255 194 14 / 30%), transparent 70%), var(--navy);
	color: var(--brand); font-size: 2rem; font-weight: 800; letter-spacing: -0.04em;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 0.75rem 0.75rem; }
.card__kicker { display: flex; align-items: center; gap: 0.35em; margin: 0 0 0.5rem; color: var(--brand-ink); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.card__kicker .icon { color: var(--brand-dark); }
.card__title { margin: 0 0 0.5rem; font-size: 1.0625rem; font-weight: 650; line-height: 1.4; letter-spacing: -0.015em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:focus-visible { outline: none; }
.card__excerpt { margin: 0 0 1rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.card__meta { margin: auto 0 0; color: var(--muted); font-size: 0.8125rem; }

/* Projects archive: photo-first tiles with the caption on the image */
.card-grid--projects .card { padding: 0; overflow: hidden; border: 0; background: var(--navy); }
.card-grid--projects .card__media { aspect-ratio: 4 / 3; border-radius: 0; }
.card-grid--projects .card__body {
	position: absolute; inset: auto 0 0 0;
	padding: 3.5rem 1.1rem 1rem;
	background: linear-gradient(180deg, transparent, rgb(10 14 23 / 90%));
}
.card-grid--projects .card__title { margin: 0; font-size: 1rem; }
.card-grid--projects .card__title a { color: #fff; }
.card-grid--projects .card__kicker { color: var(--brand); }
.card-grid--projects :is(.card__excerpt, .card__meta) { display: none; }

/* Galleries in content (projects): rounded tiles, click to zoom (lightbox on in theme.json) */
.entry-content .wp-block-gallery.has-nested-images { gap: 10px; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image { overflow: hidden; border-radius: 14px; }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 0; transition: transform .5s var(--ease); }
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img { transform: scale(1.04); }

.c3m-section--tight { padding-top: 0 !important; }

/* “Phù hợp cho” tags on service pages */
ul.c3m-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.25rem 0 0; padding: 0; list-style: none; }
ul.c3m-tags li { margin: 0; padding: 0.4rem 0.85rem; background: var(--base); border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 0.875rem; font-weight: 600; }
ul.c3m-tags li::marker { content: none; }

/* Team page: author cards */
.c3m-authors { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-block: 1.5rem 2rem; }
@media (min-width: 700px) { .c3m-authors { grid-template-columns: 1fr 1fr; } }
.c3m-author { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; background: var(--base); border: 1px solid var(--line); border-radius: var(--radius); }
.c3m-author img { flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--brand-soft); }
.c3m-author p { margin: 0.2rem 0 0; }
h3.c3m-author__name { margin: 0; font-size: 1.125rem; }
h3.c3m-author__name a { color: var(--ink); text-decoration: none; }
.c3m-author__job { color: var(--brand-ink); font-size: 0.875rem; font-weight: 600; }
.c3m-author__bio { color: var(--text); font-size: 0.9375rem; line-height: 1.6; }
.c3m-author__meta { color: var(--muted); font-size: 0.8125rem; }
.footer-legal a { margin: 0 0.15rem; }

/* Chips: tab-bar style */
.chips { margin-bottom: 2rem; }
.chips ul,
.chips-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chips a,
.chips-list a {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 0.45rem 0.95rem;
	border: 1px solid var(--line); border-radius: 11px;
	background: var(--base); color: var(--ink);
	font-size: 0.875rem; font-weight: 600;
	text-decoration: none;
	transition: border-color .15s, background-color .15s, color .15s;
}
.chips a:hover,
.chips-list a:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; }
.chips a[aria-current] { background: var(--brand-soft); border-color: #f3d47e; color: var(--brand-ink); }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.pagination .page-numbers {
	display: inline-grid; place-items: center;
	min-width: 44px; height: 44px; padding: 0 0.75rem;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--base); color: var(--ink); font-weight: 600; text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--line-strong); background: var(--surface); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* --------------------------------------------------------------------------
   Article
   ----------------------------------------------------------------------- */
.article-header { padding-block: clamp(1.75rem, 4vw, 3rem) 1.75rem; background: var(--glow); }
.article-header .container { max-width: calc(980px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - 1240px - 2 * var(--gutter)) / 2)); }
.article-title { margin: 1rem 0 0.9rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; }
.article-lead { max-width: 760px; margin: 0 0 1.5rem; color: var(--muted); font-size: var(--wp--preset--font-size--large); line-height: 1.65; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; color: var(--muted); font-size: 0.875rem; }
.entry-meta__author { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 600; text-decoration: none; }
.entry-meta__author img { border-radius: 50%; box-shadow: 0 0 0 2px var(--base), 0 0 0 3px var(--line); }
.entry-meta__item { display: inline-flex; align-items: center; gap: 0.4rem; }

.article-hero { margin: 0 auto 0.5rem; }
.article-hero img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius-lg); }
.article-hero figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.875rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3.5rem; }
.article-aside { padding-top: 1.5rem; }
.article-main .entry-content { padding-top: 1.5rem; }
.article-main .entry-content > * { max-width: 760px; }
/* Body text lines up with the title instead of floating centred in the column. */
.article-main .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { margin-left: 0 !important; }
@media (min-width: 1080px) {
	.article-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	.article-aside { grid-column: 2; grid-row: 1; padding-top: 2.5rem; }
	/* One sticky column (TOC, widgets, contact card stack instead of overlapping); scrolls if taller than the screen. */
	.article-aside__inner { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; }
	.article-main { grid-column: 1; grid-row: 1; }
	.article-main .entry-content { padding-top: 2.5rem; }
}
@media (max-width: 1079px) { .article-aside .side-card, .article-aside .widget { display: none; } }

/* TOC */
.toc {
	margin: 0 0 1.25rem;
	background: var(--base);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-xs);
	font-size: 0.90625rem;
}
.toc__title {
	display: flex; align-items: center; gap: 0.5rem;
	padding: 0.95rem 1.1rem;
	color: var(--ink);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.toc[open] .toc__title::after { transform: rotate(-135deg) translateY(-2px); }
.toc nav { max-height: min(60vh, 520px); overflow-y: auto; padding: 0 0.6rem 0.8rem; }
.toc__list,
.toc__list ol { margin: 0; padding: 0; list-style: none; }
.toc__list ol { padding-left: 0.85rem; border-left: 1px solid var(--line); margin: 0.15rem 0 0.35rem 0.75rem; }
.toc__list li { margin: 0; }
.toc__list a { display: block; padding: 0.4rem 0.6rem; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.45; }
.toc__list a:hover { background: var(--surface); color: var(--ink); }
.toc__list a[aria-current] { background: var(--brand-soft); color: var(--ink); font-weight: 600; }

/* Side card */
.side-card {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; gap: 0.6rem; margin-top: 1.25rem; padding: 1.5rem;
	background: radial-gradient(80% 60% at 100% 0%, rgb(255 194 14 / 22%), transparent 70%), var(--navy);
	color: var(--on-dark);
	border-radius: var(--radius);
}
.side-card__title { margin: 0; color: #fff; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; }
.side-card__text { margin: 0 0 0.35rem; color: var(--on-dark-muted); font-size: 0.9rem; line-height: 1.55; }
.side-card .btn--ghost { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 16%); color: #fff; }
.widget { margin-bottom: 1.25rem; }
.widget-title { font-size: 1rem; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 2rem 0 0; }
.tags a { padding: 0.35rem 0.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-size: 0.84375rem; text-decoration: none; }
.tags a:hover { background: var(--brand-soft); border-color: #f3d47e; }

/* Author box */
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 3rem; padding: 1.5rem; background: var(--base); border: 1px solid var(--line); border-radius: var(--radius); }
.author-box img { flex: none; border-radius: 50%; }
.author-box p { margin: 0; }
.author-box__label { color: var(--brand-ink); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.author-box__name { margin-top: 0.15rem !important; font-weight: 700; font-size: 1.0625rem; color: var(--ink); }
.author-box__name a { text-decoration: none; }
.author-box__job { color: var(--muted); font-weight: 400; font-size: 0.9375rem; }
.author-box__bio { margin-top: 0.4rem !important; color: var(--text); font-size: 0.9375rem; line-height: 1.6; }

/* CTA box (after articles, on archives) */
.cta-box {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; gap: 1.5rem;
	margin-block: 3rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background:
		radial-gradient(60% 120% at 100% 100%, rgb(255 194 14 / 28%), transparent 65%),
		linear-gradient(135deg, var(--navy), var(--ink));
	border-radius: var(--radius-lg);
	color: var(--on-dark);
}
.cta-box::after {
	content: ""; position: absolute; z-index: -1; right: -120px; top: -160px;
	width: 380px; height: 380px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 50%;
}
.cta-box__title { margin: 0 0 0.4rem; color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
.cta-box__desc { margin: 0; color: var(--on-dark-muted); }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cta-box .btn--dark { background: var(--brand); color: var(--ink); }
.cta-box .btn--dark:hover { background: var(--brand-dark); color: var(--ink); }
.cta-box .btn--ghost { background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 18%); color: #fff; }
.cta-box .btn--ghost:hover { background: rgb(255 255 255 / 12%); }
@media (min-width: 900px) {
	.cta-box--wide { grid-template-columns: 1fr auto; align-items: center; }
}

/* Related */
.related { padding-block: 1rem 3.5rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.related__title { font-size: 1.625rem; margin: 2.5rem 0 1.5rem; letter-spacing: -0.03em; }

/* Comments */
.comments { margin-top: 3rem; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { margin-bottom: 1.25rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; }
.comment-list .children { list-style: none; padding-left: 1.25rem; }
.comment-meta { font-size: 0.875rem; color: var(--muted); }
.comment-meta img { border-radius: 50%; vertical-align: middle; margin-right: 0.5rem; }

/* --------------------------------------------------------------------------
   Project single
   ----------------------------------------------------------------------- */
.page-header--project { padding-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.page-header .article-lead { margin: 1rem 0 0; }
.project-top:not(:has(.project-hero)) .facts { max-width: 460px; }
.project-top { display: grid; gap: 1.5rem; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 1000px) { .project-top { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 2rem; } }
.project-hero { margin: 0; }
.project-hero img { display: block; width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.facts { padding: 1.5rem; background: var(--base); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
@media (min-width: 1000px) { .facts { position: sticky; top: calc(var(--header-h) + 20px); } }
.facts__title { margin: 0 0 0.75rem; color: var(--ink); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.facts dl { margin: 0 0 1.25rem; }
.facts dl > div { display: grid; grid-template-columns: 42% 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Forms
   ----------------------------------------------------------------------- */
.quote-form .form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .quote-form .form-grid { grid-template-columns: 1fr 1fr; } }
.quote-form .field { margin: 0 0 1.1rem; }
.quote-form .field--full { grid-column: 1 / -1; }
.quote-form label { display: block; margin-bottom: 0.4rem; color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.quote-form label span { color: #b42318; }
.quote-form input,
.quote-form select,
.quote-form textarea,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%; min-height: 50px;
	padding: 0.7rem 0.95rem;
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	background: var(--base); color: var(--ink);
	font: inherit; font-size: 1rem;
	box-shadow: var(--shadow-xs);
	transition: border-color .15s, box-shadow .15s;
}
.quote-form textarea { min-height: 120px; resize: vertical; }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--brand-dark); box-shadow: 0 0 0 4px rgb(255 194 14 / 25%); }
.quote-form .btn { width: 100%; }
@media (min-width: 640px) { .quote-form .btn { width: auto; } }
.form-note { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.8125rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); }
.notice p { margin: 0; }
.notice--ok { background: #ecfdf3; border: 1px solid #abefc6; color: #054f31; }
.notice--ok .icon { color: #12b76a; width: 1.4em; height: 1.4em; }
.notice--error { background: #fef3f2; border: 1px solid #fecdca; color: #7a271a; }

/* --------------------------------------------------------------------------
   NAP / map
   ----------------------------------------------------------------------- */
.nap { font-style: normal; }
.nap p { margin: 0 0 0.75rem; }
.nap__name { color: var(--ink); }
.nap__row { display: flex; gap: 0.75rem; align-items: flex-start; }
.nap__row .icon {
	flex: none; width: 34px; height: 34px; margin-top: -0.2em; padding: 8px;
	border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink);
}
.nap a { display: inline-block; min-height: 24px; text-decoration: none; } /* WCAG 2.2 target size */
.nap a:hover { text-decoration: underline; }

.map-facade {
	position: relative;
	display: grid; place-items: center; gap: 0.6rem;
	min-height: 280px;
	margin-top: 1.25rem;
	padding: 1.5rem;
	background: var(--glow), var(--grid-light), var(--surface);
	background-size: auto, 32px 32px, 32px 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	overflow: hidden;
}
.map-facade__link { display: inline-block; min-height: 24px; padding-block: 0.15rem; font-size: 0.875rem; color: var(--muted); }
.map-facade.is-loaded { padding: 0; display: block; }
.map-facade iframe { display: block; width: 100%; height: 360px; border: 0; }

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.site-footer {
	position: relative; isolation: isolate; overflow: hidden;
	padding-top: clamp(3.5rem, 8vw, 5.5rem);
	background: radial-gradient(45% 60% at 100% 0%, rgb(255 194 14 / 9%), transparent 70%), var(--navy);
	color: var(--on-dark-muted);
	font-size: 0.9375rem;
}
/* Flex, not fixed grid tracks: columns for unassigned menus simply don't exist. */
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem 3rem; padding-bottom: 3rem; }
.footer-col { flex: 1 1 200px; min-width: 0; }
.footer-col--brand { flex: 1.6 1 320px; }
.footer-col--contact { flex: 1.2 1 260px; }
.footer-logo { display: inline-flex; padding: 0.6rem 0.85rem; background: #fff; border-radius: 16px; }
.footer-logo .site-logo-text { color: var(--ink); }
.footer-logo img { max-height: 52px; width: auto; }
.footer-pitch { margin: 1.5rem 0 0.75rem; max-width: 22ch; color: #fff; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; }
.footer-about { margin: 0 0 1.5rem; max-width: 46ch; line-height: 1.65; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.75rem; }
.footer-actions .btn--ghost { background: rgb(255 255 255 / 5%); border-color: rgb(255 255 255 / 18%); color: #fff; }
.footer-actions .btn--ghost:hover { background: rgb(255 255 255 / 10%); }
.footer-title { margin: 0 0 1.1rem; color: #fff; font-weight: 600; font-size: 0.9375rem; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 0.2rem; }
.footer-menu a { display: inline-block; padding: 0.3rem 0; color: var(--on-dark-muted); text-decoration: none; }
.footer-menu a:hover { color: #fff; }
.site-footer .nap a { color: var(--on-dark); }
.site-footer .nap a:hover { color: #fff; }
.site-footer .nap__name strong { color: #fff; }
.site-footer .nap__row .icon { background: rgb(255 194 14 / 12%); color: var(--brand); }
.social { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 12px; color: var(--on-dark); transition: background-color .15s, border-color .15s, color .15s; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.4rem; border-top: 1px solid var(--on-dark-line); font-size: 0.8125rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   Contact dock: mobile bar + desktop floating buttons
   ----------------------------------------------------------------------- */
.mobile-bar {
	position: fixed; inset: auto 0 0 0; z-index: 55;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem;
	padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
	background: rgb(255 255 255 / 94%);
	border-top: 1px solid var(--line);
	box-shadow: 0 -10px 30px -14px rgb(15 23 42 / 25%);
}
@supports (backdrop-filter: blur(8px)) {
	.mobile-bar { background: rgb(255 255 255 / 85%); backdrop-filter: saturate(180%) blur(14px); }
}
.mobile-bar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
	min-height: 52px;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 0.71875rem; font-weight: 600;
	text-decoration: none;
}
.mobile-bar__item .icon { width: 21px; height: 21px; }
.mobile-bar__item--call { background: var(--brand); box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%); }
.mobile-bar__item:hover { color: var(--ink); text-decoration: none; background: var(--surface); }
.mobile-bar__item--call:hover { background: var(--brand-dark); }
.has-mobile-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
	.mobile-bar { display: none; }
	.has-mobile-bar { padding-bottom: 0; }
}

.float-dock { position: fixed; right: 20px; bottom: 24px; z-index: 55; display: none; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
@media (min-width: 900px) { .float-dock { display: flex; } }
.float-dock__btn { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.float-dock__icon {
	display: grid; place-items: center;
	width: 54px; height: 54px;
	border-radius: 18px;
	box-shadow: var(--shadow-lg);
	font-weight: 800; font-size: 0.78125rem;
	transition: transform .2s var(--ease);
}
.float-dock__icon .icon { width: 24px; height: 24px; }
.float-dock__btn--zalo .float-dock__icon { background: var(--zalo); color: #fff; }
.float-dock__btn--call .float-dock__icon { background: var(--brand); color: var(--ink); }
.float-dock__label {
	padding: 0.5rem 0.85rem;
	background: var(--ink); color: #fff;
	border-radius: 10px;
	font-size: 0.875rem; font-weight: 600;
	opacity: 0; transform: translateX(8px);
	transition: opacity .2s, transform .2s var(--ease);
	pointer-events: none;
}
.float-dock__btn:hover .float-dock__icon,
.float-dock__btn:focus-visible .float-dock__icon { transform: translateY(-2px); }
.float-dock__btn:hover .float-dock__label,
.float-dock__btn:focus-visible .float-dock__label { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.float-dock__btn--call .float-dock__icon { animation: c3m-ring 2.8s ease-in-out infinite; }
}
/* Back to top: above the mobile bar / desktop dock. */
.to-top {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 54;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	border: 1px solid var(--line); border-radius: 14px;
	background: #fff; color: var(--ink);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .25s, visibility .25s, transform .25s var(--ease);
}
.to-top .icon { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--ink); background: var(--brand); border-color: var(--brand); }
.has-mobile-bar .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
	.to-top, .has-mobile-bar .to-top { right: 25px; bottom: 24px; }
	.has-float-dock .to-top { bottom: 166px; }
}
@keyframes c3m-ring {
	0%, 100% { box-shadow: 0 0 0 0 rgb(255 194 14 / 55%), var(--shadow-lg); }
	50% { box-shadow: 0 0 0 12px rgb(255 194 14 / 0%), var(--shadow-lg); }
}

/* --------------------------------------------------------------------------
   404 / empty
   ----------------------------------------------------------------------- */
.error-404 { padding-block: clamp(3.5rem, 10vw, 7rem); text-align: center; background: var(--glow); }
.error-404__code {
	margin: 0;
	background: linear-gradient(180deg, var(--ink) 30%, #5c6474);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	font-size: clamp(5.5rem, 20vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em;
}
.error-404 h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.error-404 .search-form { margin-block: 1.75rem; }
.error-404 .chips-list { justify-content: center; margin-block: 1.75rem; }
.error-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.empty-state { padding: 2.5rem 2rem; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state__title { color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.search-again { margin-bottom: 2rem; }
.page-links { margin-top: 2rem; font-weight: 600; }

/* --------------------------------------------------------------------------
   Block editor niceties
   ----------------------------------------------------------------------- */
.editor-styles-wrapper .c3m-hero { margin-top: 0; }
.editor-styles-wrapper .c3m-svc h3 a::after,
.editor-styles-wrapper .c3m-query .wp-block-post-title a::after { display: none; }
.editor-styles-wrapper .c3m-hero__badge,
.editor-styles-wrapper .c3m-hero__chip { animation: none; }

/* --------------------------------------------------------------------------
   Motion + print
   ----------------------------------------------------------------------- */
/* Scroll reveal: main.js only adds .c3m-reveal to elements below the fold, so nothing is hidden without JS. */
@media (prefers-reduced-motion: no-preference) {
	.c3m-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
	.c3m-reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .site-footer, .mobile-bar, .float-dock, .to-top, .article-aside, .cta-box, .related, .comments { display: none !important; }
	body { padding: 0 !important; }
	a { text-decoration: underline; }
}

/* HTML sitemap */
.c3m-sitemap { display: grid; gap: 2.5rem; }
.c3m-sitemap__group > h2 { margin-top: 0; }
.c3m-sitemap h3 { margin: 1.75rem 0 0.6rem; font-size: 1.125rem; }
.c3m-sitemap__count { color: var(--muted); font-weight: 500; font-size: 0.9375rem; }
.c3m-sitemap__list { columns: 2 260px; column-gap: 2rem; margin: 0; padding-left: 1.1rem; }
.c3m-sitemap__list li { break-inside: avoid; margin: 0 0 0.4rem; }

/* --------------------------------------------------------------------------
   Location pages, pillar guides, internal-link components
   ----------------------------------------------------------------------- */
.btn--sm { min-height: 40px; padding-inline: 1em; font-size: 0.875rem; }
ul.c3m-tags--links li { padding: 0; }
ul.c3m-tags--links a { display: block; padding: 0.4rem 0.85rem; color: var(--ink); text-decoration: none; border-radius: 99px; }
ul.c3m-tags--links a:hover { background: var(--brand-soft); }
.c3m-more-links { margin-top: 1rem; font-weight: 600; }
.c3m-area__cols { gap: 2.5rem 3.5rem; }
.c3m-area__cols h3 { margin-top: 1.75rem; }
.c3m-query--bento ul.wp-block-post-template { display: grid; margin: 0 0 1.5rem; padding: 0; list-style: none; }

/* Link cards: services / areas */
ul.c3m-linkcards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 1.25rem 0 0; padding: 0; list-style: none; }
ul.c3m-linkcards li { margin: 0; }
ul.c3m-linkcards li::marker { content: none; }
ul.c3m-linkcards a {
	position: relative; display: flex; flex-direction: column; gap: 0.25rem; height: 100%;
	padding: 1rem 2.75rem 1rem 1.15rem;
	background: var(--base); border: 1px solid var(--line); border-radius: var(--radius-sm);
	color: var(--ink); text-decoration: none;
	transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
ul.c3m-linkcards a:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
ul.c3m-linkcards strong { font-size: 1rem; }
ul.c3m-linkcards span { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
ul.c3m-linkcards .icon { position: absolute; top: 50%; right: 1rem; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
ul.c3m-linkcards a:hover .icon { color: var(--ink); }

/* "Learn more" on service pages */
.c3m-guide-link { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; background: var(--brand-soft); border-radius: var(--radius-sm); font-weight: 600; }
.c3m-guide-link .icon { flex: none; width: 20px; height: 20px; }
.c3m-guide-link a { color: var(--ink); }
.c3m-section .card-grid + h3 { margin-top: 2rem; }

/* Related-service box inside blog posts */
.c3m-inline-cta { margin: 2rem 0; padding: 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); }
.c3m-inline-cta p { margin: 0 0 0.5rem; }
.c3m-inline-cta__eyebrow { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.c3m-inline-cta__title { font-size: 1.125rem; font-weight: 700; }
.c3m-inline-cta__title a { color: var(--ink); }
.c3m-inline-cta__more { font-size: 0.9375rem; }
.c3m-inline-cta__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0 !important; }
.c3m-inline-cta__actions a { text-decoration: none; }
.c3m-doc-updated { color: var(--muted); font-size: 0.875rem; }

/* Sidebar widgets (incl. WordPress' default block widgets) sized for a 320px column. */
.article-aside .widget { margin: 1.5rem 0 0; font-size: 0.9375rem; }
.article-aside .widget :is(h2, h3, .widget-title, .wp-block-heading) { margin: 0 0 0.75rem; font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
.article-aside .widget ul { margin: 0; padding: 0; list-style: none; }
.article-aside .widget li { margin: 0 0 0.5rem; }
.article-aside .wp-block-search__inside-wrapper { display: flex; gap: 0.5rem; }
.article-aside .wp-block-search__input { min-width: 0; flex: 1; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0.55rem 0.75rem; }
.article-aside .wp-block-search__label { font-weight: 600; }
.article-aside .side-card { margin-top: 1.5rem; }
