/*
 * Dongsheng theme styles.
 * Ported from dongsheng/src/styles.css and design-system/components/bundle.css.
 * Token values live in theme.json; the short names below point at its presets so the
 * component CSS reads exactly like the design system.
 */

:root {
	--background: var(--wp--preset--color--background);
	--foreground: var(--wp--preset--color--foreground);
	--primary: var(--wp--preset--color--primary);
	--primary-hover: var(--wp--preset--color--primary-hover);
	--primary-foreground: var(--wp--preset--color--primary-foreground);
	--hero: var(--wp--preset--color--hero);
	--hero-foreground: var(--wp--preset--color--hero-foreground);
	--lime: var(--wp--preset--color--lime);
	--lime-hover: var(--wp--preset--color--lime-hover);
	--brand-green: var(--wp--preset--color--brand-green);
	--brand-red: var(--wp--preset--color--brand-red);
	--mint: var(--wp--preset--color--mint);
	--coral: var(--wp--preset--color--coral);
	--yellow: var(--wp--preset--color--yellow);
	--blue: var(--wp--preset--color--blue);
	--secondary: var(--wp--preset--color--secondary);
	--muted: var(--wp--preset--color--muted);
	--muted-foreground: var(--wp--preset--color--muted-foreground);
	--accent: var(--wp--preset--color--accent);
	--accent-foreground: var(--wp--preset--color--foreground);
	--destructive: var(--wp--preset--color--destructive);
	--border: var(--wp--preset--color--border);
	--input: var(--wp--preset--color--input);
	--ring: var(--wp--preset--color--ring);
	--font-sans: var(--wp--preset--font-family--sans);
	--font-display: var(--wp--preset--font-family--display);
	--radius: var(--wp--custom--radius--base);
	--radius-sm: var(--wp--custom--radius--sm);
	--radius-md: var(--wp--custom--radius--md);
	--shadow-sm: var(--wp--custom--shadow--sm);
	--container-max: var(--wp--custom--container--max);
	--container-inset: var(--wp--custom--container--inset);
	--header-height: var(--wp--custom--header-height);
	--grid-gap: var(--wp--custom--grid-gap);
	--values-gap: var(--wp--custom--values-gap);
	--band-gap: var(--wp--custom--band-gap);
	--band-padding: var(--wp--custom--band-padding);
	--art-padding: var(--wp--custom--art-padding);
	--detail-art-padding: var(--wp--custom--detail-art-padding);
	--note-padding: var(--wp--custom--note-padding);
	--field-height: var(--wp--custom--field--height);
	--field-padding-y: var(--wp--custom--field--padding-y);
	--field-padding-x: var(--wp--custom--field--padding-x);

	--icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	--icon-arrow-up-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	--icon-shield-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--icon-lightbulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
	--icon-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E");
	--icon-heart-handshake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--lime); color: var(--foreground); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 5px; }
.lucide { flex-shrink: 0; }
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 50; background: var(--background); padding: 16px; left: 8px; top: 8px; }
.wp-site-blocks { padding: 0; }
main#main { display: block; }

/* WordPress wraps blocks in flow layouts; spacing comes from the component classes below. */
.wp-site-blocks > *, .entry-content > * { margin-block: 0; }

.site-container { width: min(var(--container-max), calc(100% - 2 * var(--container-inset))); margin-inline: auto; }

/* ---------- Buttons (design-system Button) ---------- */
.btn,
.wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
	border-radius: var(--radius-md); font: 500 14px/20px var(--font-sans); cursor: pointer;
	transition: color .15s, background-color .15s; height: 36px; padding: 8px 16px; border: 0;
	background: transparent; color: var(--foreground); text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-default,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-default:hover,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover { background: var(--primary-hover); }
.btn-hero, .wp-block-button.is-style-hero .wp-block-button__link { background: var(--lime); color: var(--foreground); border-radius: var(--radius-sm); }
.btn-hero:hover, .wp-block-button.is-style-hero .wp-block-button__link:hover { background: var(--lime-hover); }
.btn-outline, .wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid var(--input); background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
.btn-outline:hover, .btn-ghost:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-filter { border: 1px solid var(--input); background: var(--background); border-radius: var(--radius-sm); }
.btn-filter:hover { background: var(--muted); }
.btn-filter[data-selected="true"] { background: var(--primary); color: var(--primary-foreground); }
.btn-filter .filter-check { width: 14px; height: 14px; }
.btn-filter:not([data-selected="true"]) .filter-check { display: none; }
.btn-link, .wp-block-button.is-style-link .wp-block-button__link { color: var(--primary); padding-inline: 0; background: transparent; box-shadow: none; }
.btn-link:hover, .wp-block-button.is-style-link .wp-block-button__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-lg, .wp-block-button.is-lg .wp-block-button__link { height: 48px; padding: 0 24px; border-radius: var(--radius-sm); }
.btn-lg.btn-link, .wp-block-button.is-lg.is-style-link .wp-block-button__link { padding-inline: 0; }
.btn-icon { height: 44px; width: 44px; padding: 0; }
.btn-ghost { background: transparent; }
.btn-block { display: flex; width: 100%; }
.btn .lucide { width: 16px; height: 16px; }

/* Trailing icons on core buttons: add class has-arrow-right / has-arrow-up-right to the button block. */
.wp-block-button[class*="has-arrow-"] .wp-block-button__link::after {
	content: ""; width: 16px; height: 16px; flex-shrink: 0; background: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.wp-block-button.has-arrow-right { --icon: var(--icon-arrow-right); }
.wp-block-button.has-arrow-up-right { --icon: var(--icon-arrow-up-right); }

.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.wp-block-buttons > .wp-block-button { margin: 0; }

/* ---------- Header ---------- */
.site-header { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-logo { width: 112px; height: auto; display: block; }
.desktop-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 13px; font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav-link[aria-current="page"] { border-color: var(--primary); font-weight: 700; }
.mobile-menu-button { color: var(--foreground); border-radius: var(--radius-md); }
.mobile-menu-button:hover { background: var(--accent); }
.mobile-menu-button .icon-close, .mobile-menu-button[aria-expanded="true"] .icon-open { display: none; }
.mobile-menu-button[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu-button .lucide { width: 16px; height: 16px; }
.mobile-nav { border-top: 1px solid var(--border); padding-block: 16px; }
.mobile-nav a { display: block; padding: 12px 0; }
.mobile-nav[hidden] { display: none; }
@media (min-width: 768px) { .mobile-menu-button, .mobile-nav { display: none !important; } }

/* ---------- Eyebrow + section header ---------- */
.eyebrow, .is-style-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.eyebrow::before, .is-style-eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; flex-shrink: 0; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-title { font-size: 40px; line-height: 1.15; margin-top: 13px; }

/* ---------- Home opening ---------- */
.home-opening { background: var(--hero); color: var(--hero-foreground); position: relative; overflow: hidden; }
.home-opening :focus-visible, .footer-conversation :focus-visible, .company-outro :focus-visible { outline-color: var(--lime); }
.home-opening-inner { padding-block: 67px 68px; position: relative; }
.home-opening .eyebrow { color: var(--lime); }
.home-title { font-size: 88px; line-height: 1.02; margin-block: 24px; max-width: 800px; }
.home-title mark, .home-title span { background: none; color: var(--lime); }
.hero-description { max-width: 490px; line-height: 1.7; font-size: 15px; color: var(--hero-foreground); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 30px; position: relative; z-index: 1; }
.hero-note { font-size: 11px; display: flex; align-items: center; gap: 12px; }
.hero-note::before { content: ""; width: 56px; height: 1px; background: currentColor; }
.paint-stripes { position: absolute; right: 0; top: 74px; display: flex; gap: 14px; transform: rotate(-17deg); pointer-events: none; }
.paint-stripes span { display: block; width: 44px; height: 250px; background: var(--lime); }
.paint-stripes span:nth-child(2) { background: var(--brand-green); margin-top: 42px; }
.paint-stripes span:nth-child(3) { background: var(--brand-red); margin-top: 84px; }

/* ---------- Product card + grid ---------- */
.range-section { padding-block: 47px 66px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap); }
.product-card { min-width: 0; position: relative; }
.product-card[hidden] { display: none; }
.product-card .product-link::after { content: ""; position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.product-card:has(.product-link:focus-visible) { outline: 3px solid var(--ring); outline-offset: 5px; }
.product-card .product-link:focus-visible { outline: none; }
.product-art { height: 270px; position: relative; overflow: hidden; padding: var(--art-padding); display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s; }
.product-card:hover .product-art { transform: translateY(-4px); }
.product-art.mint, .detail-art.mint, .company-value.mint { background: var(--mint); }
.product-art.coral, .detail-art.coral, .company-value.coral { background: var(--coral); }
.product-art.yellow, .detail-art.yellow, .company-value.yellow { background: var(--yellow); }
.product-art.blue, .detail-art.blue, .company-value.blue { background: var(--blue); }
.product-art.product-art-original { background: var(--background); padding: 0; justify-content: center; }
.catalog-label { display: block; width: auto; max-width: 100%; height: 205px; object-fit: contain; align-self: center; }
.product-art-original .catalog-label { width: 100%; height: 100%; object-fit: contain; }
.art-number { font-family: var(--font-display); font-size: 12px; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.art-number .lucide { width: 17px; height: 17px; }
.art-name { font-size: 32px; line-height: 1.1; font-weight: 600; max-width: 220px; }
.art-kind { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-top: 15px; }
.product-card h3 { margin-top: 18px; font-size: 18px; line-height: 1.3; }
.product-card p { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }
.product-card .product-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.product-card .product-link .lucide { width: 15px; height: 15px; }

/* ---------- Page intro + filter ---------- */
.page-intro { border-top: 1px solid var(--border); padding-block: 60px 40px; }
.page-title { font-size: 64px; line-height: 1.08; margin-top: 20px; }
.page-description { margin-top: 20px; max-width: 560px; font-size: 16px; line-height: 1.75; color: var(--muted-foreground); }
.products-archive { padding-bottom: 64px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 25px; border-block: 1px solid var(--border); margin: 0 0 32px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-count { font-size: 12px; color: var(--muted-foreground); }

/* ---------- Product detail ---------- */
.detail-back { padding-top: 24px; }
.detail-back .btn { height: auto; padding-block: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--band-gap); padding-block: 30px 75px; align-items: start; }
.detail-art { background: var(--mint); min-height: 485px; padding: var(--detail-art-padding); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; overflow: hidden; }
.front-label { display: block; width: min(100%, 310px); height: auto; align-self: center; position: relative; }
.detail-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 600; }
.detail-summary { padding-top: 20px; }
.product-detail-title { font-size: 52px; overflow-wrap: anywhere; }
.detail-description { margin-top: 20px; font-size: 14px; line-height: 1.75; color: var(--muted-foreground); }
.spec-list { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--border); margin-block: 30px; padding-block: 25px; gap: 24px; }
.spec-list dt { font-size: 12px; color: var(--muted-foreground); }
.spec-list dd { margin-top: 9px; font-family: var(--font-display); font-size: 27px; line-height: 1.3; }
.product-specs dd { font-size: 20px; line-height: 1.4; }
.inquiry-action { height: auto; min-height: 48px; white-space: normal; text-align: center; padding-block: 12px; }
.detail-download { margin-top: 12px; }
.btn-note { font-size: 12px; }
.detail-source { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }
.product-information { display: grid; grid-template-columns: 1fr 1fr; gap: var(--band-gap); border-top: 1px solid var(--border); padding-block: 45px; }
.information-note { margin-top: 16px; font-size: 12px; color: var(--muted-foreground); }
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 12px; font-size: 14px; line-height: 1.75; }
.feature-list .lucide { color: var(--primary); width: 18px; height: 18px; margin-top: 4px; }
.instruction-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.instruction-list li { display: flex; gap: 20px; font-size: 14px; line-height: 1.9; }
.instruction-number { color: var(--primary); font-family: var(--font-display); font-weight: 600; flex-shrink: 0; }
.body-small { font-size: 14px; line-height: 1.75; }
.source-note { border-left: 3px solid var(--primary); background: var(--muted); padding: var(--note-padding); display: flex; gap: 15px; margin-top: 28px; }
.source-note h3 { font-size: 16px; }
.source-note p { font-size: 14px; line-height: 1.75; margin-top: 12px; }
.source-note .lucide { width: 20px; height: 20px; }

/* ---------- Company (About, Factory, Home story) ---------- */
.company-intro { padding-block: 55px 50px; border-top: 1px solid var(--border); }
.company-title { font-size: 68px; line-height: 1.08; margin-block: 24px 30px; }
.company-title mark, .company-title span { background: none; color: var(--primary); }
.company-intro-bottom { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.company-intro-bottom p { max-width: 650px; font-size: 16px; line-height: 1.8; color: var(--muted-foreground); }
.company-intro-bottom .wp-block-buttons { flex-shrink: 0; }

.wp-block-image.company-image-band { margin: 0; }
.wp-block-image.company-image-band img { width: 100%; height: 310px; object-fit: cover; display: block; }
.wp-block-image.company-image-band figcaption,
.company-image-band .wp-element-caption {
	width: min(var(--container-max), calc(100% - 2 * var(--container-inset))); margin: 0 auto;
	display: flex; justify-content: space-between; gap: 16px; padding-block: 16px; font-size: 12px; font-weight: 600; text-align: left; color: var(--foreground);
}
.company-image-band figcaption em { font-style: normal; color: var(--muted-foreground); font-weight: 400; }

.company-band { border-block: 1px solid var(--border); padding-block: var(--band-padding); display: grid; grid-template-columns: 1fr 1fr; gap: var(--band-gap); }
.company-band p:not(.eyebrow) { font-size: 15px; line-height: 1.8; }
.company-band p:not(.eyebrow) + p { margin-top: 20px; }
.company-band .wp-block-buttons { margin-top: 24px; }
.company-band .wp-block-buttons.is-link-only { margin-top: 20px; }
.company-vision { background: var(--yellow); }
.company-vision .company-band, .company-outro .company-band { border: 0; }
.company-vision .company-band p:not(.eyebrow) { font-family: var(--font-display); font-size: 23px; line-height: 1.6; }
.company-outro { background: var(--hero); color: var(--hero-foreground); }
.company-outro .eyebrow { color: var(--hero-foreground); }

.home-company-story { background: var(--yellow); }
.home-company-story .company-band { border: 0; padding-block: 64px; }
.home-company-story .section-title { font-size: 46px; }
.home-company-actions.wp-block-buttons { align-items: center; gap: 16px 24px; margin-top: 28px; }
.wp-block-image.home-company-image img { height: 230px; }
.home-company-image figcaption { background: var(--yellow); }

.mission-list { list-style: none; padding: 0; display: grid; gap: 24px; counter-reset: mission; }
.mission-list li { display: flex; align-items: start; gap: 22px; border-bottom: 1px solid var(--border); padding-bottom: 24px; font-size: 15px; line-height: 1.8; counter-increment: mission; }
.mission-list li::before { content: counter(mission, decimal-leading-zero); color: var(--primary); font-family: var(--font-display); font-size: 26px; line-height: 1.3; flex-shrink: 0; }

.values-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--values-gap); }
.company-value { padding: 28px 22px; border-top: 3px solid var(--primary); }
.company-value::before { content: ""; display: block; width: 30px; height: 30px; background: var(--primary); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.company-value.icon-shield-check { --icon: var(--icon-shield-check); }
.company-value.icon-lightbulb { --icon: var(--icon-lightbulb); }
.company-value.icon-leaf { --icon: var(--icon-leaf); }
.company-value.icon-heart-handshake { --icon: var(--icon-heart-handshake); }
.company-value h3 { font-size: 23px; line-height: 1.3; margin-top: 24px; }
.company-value p { font-size: 14px; line-height: 1.8; margin-top: 12px; }

.factory-range-band { background: var(--muted); padding-block: 42px 50px; }
.factory-range-note { color: var(--muted-foreground); font-size: 14px; line-height: 1.7; }
.factory-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.factory-range-band .product-art-original { background: transparent; }
.factory-sectors { display: flex; flex-wrap: wrap; gap: 18px; margin-block: 25px; }
.factory-sectors span { border-left: 3px solid var(--primary); padding-left: 12px; font-size: 13px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 25px; }
.footer-conversation { background: var(--primary); color: var(--primary-foreground); padding-block: var(--band-padding); }
.footer-conversation .eyebrow { color: var(--lime); }
.footer-conversation h2 { font-size: 40px; line-height: 1.2; margin-top: 18px; }
.footer-conversation p:not(.eyebrow) { margin-top: 18px; font-size: 15px; line-height: 1.7; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; border-top: 1px solid var(--border); margin-top: 34px; padding-top: 20px; font-size: 10px; color: var(--muted-foreground); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-iso a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--foreground); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.footer-iso a::before { content: ""; width: 15px; height: 15px; flex-shrink: 0; background: var(--primary); -webkit-mask: var(--icon-shield-check) center / contain no-repeat; mask: var(--icon-shield-check) center / contain no-repeat; }
.footer-iso a:hover { border-color: var(--primary); color: var(--primary); }
.footer-iso a:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
#quality { scroll-margin-top: calc(var(--wp--custom--header-height, 80px) + 16px); }
.footer-links a:hover { color: var(--foreground); }

/* ---------- Contact ---------- */
.contact-aside h2 { font-size: 24px; line-height: 1.3; }
.contact-aside .contact-lead { margin-top: 16px; font-size: 14px; line-height: 1.75; color: var(--muted-foreground); max-width: 24rem; }
.contact-company { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 24px; }
.contact-company p:not(.eyebrow) { margin-top: 12px; font-size: 14px; color: var(--muted-foreground); }
.contact-company .wp-block-buttons { margin-top: 20px; }

/* FormField */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.form-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.form-field label { font-size: 13px; font-weight: 600; }
.form-field .optional { color: var(--muted-foreground); font-weight: 400; }
.form-field .wpcf7-form-control-wrap { display: block; }
.field-control { width: 100%; min-height: var(--field-height); border: 1px solid var(--input); border-radius: var(--radius); background: var(--background); color: var(--foreground); padding: var(--field-padding-y) var(--field-padding-x); font: 14px/1.5 var(--font-sans); }
textarea.field-control { resize: vertical; }
.field-control[aria-invalid="true"], .field-control.wpcf7-not-valid { border-color: var(--destructive); }
.field-error, .wpcf7-not-valid-tip { display: block; color: var(--destructive); font-size: 12px; margin-top: 9px; }
.span-2 { grid-column: span 2; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-required-note { font-size: 12px; color: var(--muted-foreground); }
.form-submit { position: relative; display: inline-flex; align-items: center; }
.form-submit input[type="submit"].btn { padding-right: 48px; }
.form-submit::after { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--primary-foreground); -webkit-mask: var(--icon-arrow-up-right) center / contain no-repeat; mask: var(--icon-arrow-up-right) center / contain no-repeat; pointer-events: none; }
.form-submit .wpcf7-spinner { position: absolute; left: -40px; margin: 0; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 16px 20px; border: 0; border-left: 3px solid var(--primary); background: var(--muted); font-size: 14px; line-height: 1.7; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-left-color: var(--destructive); }
.wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--brand-green); }

/* ---------- 404 ---------- */
.not-found { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Responsive (POC breakpoints: 1100px, 767px) ---------- */
@media (max-width: 1100px) {
	.paint-stripes { right: 12px; opacity: .7; }
	.home-title { font-size: 76px; }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.detail-grid { gap: 35px; }
	.company-intro-bottom { align-items: start; flex-direction: column; gap: 24px; }
	.factory-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	:root { --container-inset: var(--wp--custom--container--inset-mobile); --header-height: 80px; }
	.site-header { gap: 10px; }
	.brand-logo { width: 92px; }
	.desktop-nav { display: none !important; }
	.home-opening-inner { padding-block: 42px 37px; }
	.home-title { font-size: 53px; margin-block: 23px; }
	.paint-stripes { display: none; }
	.hero-description { font-size: 14px; }
	.hero-bottom { display: block; margin-top: 25px; }
	.hero-note { margin-top: 30px; }
	.section-header { align-items: start; gap: 12px; flex-direction: column; }
	.section-title { font-size: 30px; }
	.range-section { padding-block: 35px 45px; }
	.product-grid { grid-template-columns: 1fr; gap: 35px; }
	.product-art { height: 290px; }
	.product-card h3 { font-size: 20px; }
	.product-card p { font-size: 14px; }
	.company-band { grid-template-columns: 1fr; gap: 25px; padding-block: 38px; }
	.footer-conversation { padding-block: 38px; }
	.footer-conversation h2 { font-size: 30px; }
	.footer-top, .footer-bottom { flex-direction: column; align-items: start; }
	.page-intro { padding-block: 40px 30px; }
	.page-title { font-size: 44px; }
	.page-description { font-size: 14px; }
	.detail-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 45px; }
	.detail-grid .detail-art { order: 2; }
	.detail-grid .detail-summary { order: 1; }
	.product-information { grid-template-columns: 1fr; gap: 25px; padding-block: 35px; }
	.product-detail-title { font-size: 40px; }
	.values-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
	.product-specs dd { font-size: 18px; }
	.detail-art { min-height: 350px; padding: 28px; }
	.form-grid { grid-template-columns: 1fr; }
	.span-2 { grid-column: auto; }
	.eyebrow, .is-style-eyebrow { font-size: 10px; letter-spacing: 1.5px; }
	.company-intro { padding-block: 35px; }
	.company-title { font-size: 42px; overflow-wrap: anywhere; }
	.company-intro-bottom p { font-size: 14px; }
	.wp-block-image.company-image-band img { height: 220px; }
	.company-image-band figcaption { flex-direction: column; gap: 5px; }
	.company-vision .company-band p:not(.eyebrow) { font-size: 20px; }
	.company-value { padding: 22px 16px; }
	.company-value h3 { font-size: 20px; overflow-wrap: anywhere; }
	.factory-range-band .section-header { flex-direction: column; }
	.factory-product-grid { gap: 30px 16px; }
	.factory-product-grid .product-art { height: 200px; }
	.factory-product-grid .product-card h3 { font-size: 17px; }
	.factory-product-grid .product-card p { font-size: 12px; }
	.home-company-story .company-band { padding-block: 38px; }
	.home-company-story .section-title { font-size: 34px; }
	.home-company-actions.wp-block-buttons { align-items: start; flex-direction: column; gap: 12px; }
	.wp-block-image.home-company-image img { height: 190px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Finish art (cards + product page) ----------
 * The finish photo (or an "Illustrative finish" texture, or the plain tone) fills the panel; the
 * product label, cropped above its icon band (613×500 of 613×709), sits on top as the tin. */
.product-art.finish-card { padding: 0; height: auto; aspect-ratio: 1.13 / 1; display: block; background: var(--muted); }
.finish-art { position: absolute; inset: 0; overflow: hidden; }
.finish-art.mint { background: var(--mint); }
.finish-art.coral { background: var(--coral); }
.finish-art.yellow { background: var(--yellow); }
.finish-art.blue { background: var(--blue); }
.finish-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .finish-photo { transform: scale(1.04); }
.finish-label { position: absolute; z-index: 2; display: block; height: auto; aspect-ratio: 613 / 500; object-fit: cover; object-position: top; border-radius: 2px; box-shadow: 0 14px 28px -10px rgb(0 0 0 / .5); transition: transform .3s ease; }
.finish-art--card .finish-label { right: 14px; bottom: -4px; width: 44%; transform: rotate(3deg); }
.product-card:hover .finish-art--card .finish-label { transform: rotate(0deg) translateY(-6px); }
.finish-art--card:not(.has-finish) .finish-label { right: auto; bottom: auto; left: 50%; top: 50%; width: 62%; transform: translate(-50%, -50%); }
.product-card:hover .finish-art--card:not(.has-finish) .finish-label { transform: translate(-50%, -54%); }
.art-chip { position: absolute; left: 12px; top: 12px; z-index: 3; font: 12px var(--font-display); background: rgb(255 255 255 / .94); color: var(--foreground); padding: 3px 8px; border-radius: 2px; }
.finish-tag { position: absolute; left: 12px; bottom: 12px; z-index: 3; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; background: rgb(255 255 255 / .94); color: var(--foreground); padding: 4px 7px; }

.detail-art.finish-detail { padding: 0; min-height: 0; aspect-ratio: 1 / 1.02; display: block; background: var(--muted); }
.finish-art--detail .finish-label { left: 50%; top: 46%; width: min(56%, 330px); transform: translate(-50%, -50%) rotate(-2deg); }
.finish-art--detail .finish-tag { bottom: 56px; }
.finish-detail .detail-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 12px 16px; background: rgb(255 255 255 / .94); }

@media (max-width: 767px) {
	.detail-art.finish-detail { padding: 0; min-height: 0; }
	.factory-product-grid .product-art.finish-card { height: auto; }
	.finish-art--card .finish-label { width: 42%; }
}
@media (prefers-reduced-motion: reduce) {
	.product-card:hover .finish-photo, .product-card:hover .finish-art--card .finish-label { transform: none; }
	.finish-art--card .finish-label { transform: rotate(3deg); }
}

/* ---------------------------------------------------------------------------
 * Factory site photos, ISO 9001 certificate, contact details, form anti-spam.
 * ------------------------------------------------------------------------- */
.factory-site { padding-block: 10px var(--band-padding); }
.factory-gallery { display: grid; grid-template-columns: 1fr 0.89fr; grid-template-rows: auto auto; gap: var(--grid-gap, 16px); }
.factory-photo { margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--muted); }
.factory-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.factory-photo.is-street, .factory-photo.is-yard { aspect-ratio: 3 / 2; }
.factory-photo.is-offices { grid-column: 2; grid-row: 1 / span 2; position: relative; min-height: 320px; }
.factory-photo.is-offices img { position: absolute; inset: 0; }

.iso-badge { margin-top: 28px; display: inline-grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: center; padding: 22px 26px; border-radius: var(--radius-md); background: var(--hero); color: var(--hero-foreground); max-width: 360px; }
.iso-badge-icon { grid-row: 1 / span 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--foreground); }
.iso-badge-standard { font: 600 26px/1.1 var(--font-display); letter-spacing: -.01em; }
.iso-badge-label { font-size: 13px; line-height: 1.4; }
.iso-badge-body { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.certificate-band .wp-block-buttons.is-link-only { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.certificate-facts { margin: 24px 0 0; display: grid; gap: 14px; }
.certificate-facts div { border-top: 1px solid var(--border); padding-top: 12px; display: grid; grid-template-columns: 170px 1fr; gap: 16px; }
.certificate-facts dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-foreground); }
.certificate-facts dd { margin: 0; font-size: 15px; line-height: 1.6; }

.contact-details { margin-top: 14px; font-style: normal; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; }
.contact-details a { color: var(--foreground); text-underline-offset: 3px; }
.contact-details a:hover { color: var(--primary); }

/* Honeypot: off-screen for people, still in the form for bots. Turnstile slot collapses until keys are set. */
.form-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-turnstile:empty { display: none; }
.form-turnstile { margin-top: 20px; }

@media (max-width: 767px) {
	.factory-gallery { grid-template-columns: 1fr; }
	.factory-photo.is-offices { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; min-height: 0; }
	.certificate-facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* Editor only: product grid previews are not clickable, so a stray click can't navigate the editor canvas. */
.editor-styles-wrapper .product-grid a, .editor-styles-wrapper .factory-product-grid a, .editor-styles-wrapper .product-catalog a, .editor-styles-wrapper .product-catalog button { pointer-events: none; }
