/*
Theme Name: Unionwell Light
Theme URI: https://www.unionwellswitchs.com/
Author: Yibao
Description: Lightweight, dependency-free theme modelled on the Unionwell corporate style.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: unionwell
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--yw-blue: #0285c9;
	--yw-blue-dark: #026b9f;
	--yw-blue-light: #e6f4fb;
	--yw-red: #da2337;
	--yw-red-dark: #b81c2c;
	--yw-ink: #282828;
	--yw-muted: #6b7280;
	--yw-line: #e5e7eb;
	--yw-line-strong: #d6dbe1;
	--yw-bg: #f5f7fa;
	--yw-bg-alt: #eef4f8;
	--yw-dark: #1e2a33;
	--yw-white: #ffffff;
	--yw-radius: 4px;
	--yw-shadow: 0 2px 8px rgba(20, 40, 60, .06);
	--yw-shadow-lg: 0 12px 32px rgba(20, 40, 60, .12);
	--yw-container: 1480px;
	--yw-header-h: 76px;
	--yw-font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--yw-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--yw-ink);
	background: var(--yw-white);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--yw-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--yw-red); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .55em;
	line-height: 1.25;
	color: var(--yw-ink);
	font-weight: 800;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .3em; }

blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 3px solid var(--yw-blue); background: var(--yw-bg); color: var(--yw-muted); }

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
th, td { padding: .7em .9em; border: 1px solid var(--yw-line); text-align: left; vertical-align: top; }
th { background: var(--yw-bg); font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--yw-line); margin: 2em 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { padding: 1em; background: var(--yw-bg); border-radius: var(--yw-radius); overflow: auto; }
button { cursor: pointer; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; border-radius: 4px; }

/* =========================================================
   3. Layout
   ========================================================= */
.yw-container { width: 100%; max-width: var(--yw-container); margin: 0 auto; padding: 0 24px; }
.yw-section { padding: 76px 0; }
.yw-section--tight { padding: 52px 0; }
.yw-section--alt { background: var(--yw-bg); }
.yw-section--dark { background: var(--yw-dark); color: #fff; }
.yw-section--dark h2, .yw-section--dark h3 { color: #fff; }

.yw-section__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.yw-section__head p { color: var(--yw-muted); margin: 10px 0 0; font-size: 1.02rem; }
.yw-section__head--left { margin-left: 0; text-align: left; }

.yw-eyebrow { display: inline-block; margin-bottom: 10px; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--yw-blue); }
.yw-section--dark .yw-eyebrow { color: #7cc7ea; }

.yw-grid { display: grid; gap: 24px; }
.yw-grid--2 { grid-template-columns: repeat(2, 1fr); }
.yw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.yw-grid--4 { grid-template-columns: repeat(4, 1fr); }
.yw-grid--5 { grid-template-columns: repeat(5, 1fr); }

.yw-title-underline { position: relative; padding-bottom: 14px; }
.yw-title-underline::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 54px; height: 3px; margin-left: -27px; background: var(--yw-blue); }
.yw-section__head--left .yw-title-underline::after { left: 0; margin-left: 0; }

/* =========================================================
   4. Buttons
   ========================================================= */
.yw-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 28px;
	border: 1px solid transparent;
	border-radius: var(--yw-radius);
	font-size: .95rem; font-weight: 700; line-height: 1.2;
	background: var(--yw-blue); color: #fff;
	transition: background .18s ease, transform .15s ease, box-shadow .18s ease;
}
.yw-btn:hover { background: var(--yw-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(2, 133, 201, .22); }
.yw-btn--accent { background: var(--yw-red); }
.yw-btn--accent:hover { background: var(--yw-red-dark); box-shadow: 0 8px 20px rgba(218, 35, 55, .22); }
.yw-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .65); color: #fff; }
.yw-btn--ghost:hover { background: #fff; color: var(--yw-blue); border-color: #fff; box-shadow: none; }
.yw-btn--outline { background: transparent; border-color: var(--yw-blue); color: var(--yw-blue); }
.yw-btn--outline:hover { background: var(--yw-blue); color: #fff; }
.yw-btn--sm { padding: 9px 18px; font-size: .86rem; }

/* =========================================================
   5. Header
   ========================================================= */
.yw-topbar { position: relative; z-index: 950; background: var(--yw-bg-alt); color: var(--yw-muted); font-size: .82rem; border-bottom: 1px solid var(--yw-line); }
.yw-topbar .yw-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.yw-topbar a { color: var(--yw-muted); }
.yw-topbar a:hover { color: var(--yw-blue); }
.yw-topbar__meta { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.yw-topbar__meta span { display: inline-flex; align-items: center; gap: 6px; }

.yw-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid var(--yw-line); }
.yw-header__inner { display: flex; align-items: center; gap: 26px; min-height: var(--yw-header-h); }

.yw-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.yw-brand img { height: 46px; width: auto; max-width: 230px; object-fit: contain; display: block; }
.yw-brand--text { font-size: 1.2rem; font-weight: 800; color: var(--yw-ink); }
.yw-brand__name { font-size: 1.15rem; font-weight: 800; color: var(--yw-ink); }
.yw-brand__tag { display: none; }

.yw-nav { margin-left: auto; }
.yw-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.yw-nav > ul > li { position: relative; margin: 0; }
.yw-nav > ul > li > a {
	display: block; padding: 12px 14px;
	font-size: .93rem; font-weight: 700; color: var(--yw-ink);
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}
.yw-nav > ul > li > a:hover,
.yw-nav > ul > li.current-menu-item > a,
.yw-nav > ul > li.current_page_item > a { color: var(--yw-blue); border-bottom-color: var(--yw-blue); }
.yw-nav > ul > li > a::after { content: ""; }

.yw-nav .sub-menu {
	position: absolute; top: 100%; left: 0;
	min-width: 240px; padding: 10px 0;
	margin: 0; list-style: none;
	background: #fff; border: 1px solid var(--yw-line);
	border-top: 3px solid var(--yw-blue);
	box-shadow: var(--yw-shadow-lg);
	display: none; z-index: 20;
}
.yw-nav li:hover > .sub-menu, .yw-nav li:focus-within > .sub-menu { display: block; }
.yw-nav .sub-menu li { margin: 0; }
.yw-nav .sub-menu a { display: block; padding: 9px 20px; font-size: .9rem; font-weight: 600; color: var(--yw-ink); white-space: normal; }
.yw-nav .sub-menu a:hover { background: var(--yw-blue-light); color: var(--yw-blue); }
.yw-nav .sub-menu .sub-menu { top: -10px; left: 100%; }

/* Mega menu for products */
.yw-mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(1080px, 92vw); padding: 26px; background: #fff; border: 1px solid var(--yw-line); border-top: 3px solid var(--yw-blue); box-shadow: var(--yw-shadow-lg); display: none; z-index: 30; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.yw-nav li.yw-has-mega:hover > .yw-mega, .yw-nav li.yw-has-mega:focus-within > .yw-mega { display: grid; }
.yw-mega__col h4 { margin: 0 0 10px; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; color: var(--yw-blue); }
.yw-mega__col ul { list-style: none; margin: 0; padding: 0; }
.yw-mega__col li { margin-bottom: 6px; }
.yw-mega__col a { font-size: .88rem; color: var(--yw-ink); font-weight: 500; }
.yw-mega__col a:hover { color: var(--yw-blue); }

.yw-header__actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.yw-burger { display: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); }
.yw-burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--yw-ink); transition: transform .2s ease, opacity .2s ease; }
.yw-header.is-open .yw-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.yw-header.is-open .yw-burger span:nth-child(2) { opacity: 0; }
.yw-header.is-open .yw-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Language switcher */
.yibao-lang { position: relative; }
.yibao-lang__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: transparent; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); font-size: .82rem; font-weight: 700; color: var(--yw-ink); }
.yibao-lang__toggle svg { width: 14px; height: 14px; }
.yibao-lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 8px; margin: 0; list-style: none; background: #fff; border: 1px solid var(--yw-line); box-shadow: var(--yw-shadow-lg); display: none; z-index: 30; }
.yibao-lang.is-open .yibao-lang__menu { display: block; }
.yibao-lang__menu a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: .9rem; }
.yibao-lang__menu a:hover { background: var(--yw-blue-light); }
.yibao-lang__menu em { font-style: normal; font-size: .72rem; color: var(--yw-muted); }

/* =========================================================
   6. Hero / banner
   ========================================================= */
.yw-hero {
	position: relative;
	padding: 92px 0 84px;
	background: linear-gradient(115deg, #026b9f 0%, #0285c9 55%, #31a3dd 100%);
	color: #fff;
	overflow: hidden;
}
.yw-hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(circle at 82% 30%, rgba(255, 255, 255, .18) 0, rgba(255, 255, 255, 0) 45%);
	pointer-events: none;
}
.yw-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.yw-hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(2rem, 3.8vw, 3.1rem); }
.yw-hero p { color: rgba(255, 255, 255, .9); font-size: 1.06rem; max-width: 560px; }
.yw-hero .yw-eyebrow { color: #bde5f7; }
.yw-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.yw-hero__media { position: relative; }
.yw-hero__media img { border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }

.yw-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.yw-hero__chips a { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 100px; color: #fff; font-size: .84rem; font-weight: 600; }
.yw-hero__chips a:hover { background: #fff; color: var(--yw-blue); }

/* =========================================================
   7. Cards
   ========================================================= */
.yw-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.yw-card:hover { transform: translateY(-3px); box-shadow: var(--yw-shadow-lg); border-color: var(--yw-line-strong); }
.yw-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--yw-bg); overflow: hidden; display: block; }
.yw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.yw-card:hover .yw-card__media img { transform: scale(1.04); }
.yw-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.yw-card__title { margin: 0 0 8px; font-size: 1rem; line-height: 1.4; }
.yw-card__title a { color: var(--yw-ink); }
.yw-card__title a:hover { color: var(--yw-blue); }
.yw-card__text { margin: 0; color: var(--yw-muted); font-size: .9rem; }
.yw-card__link { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }

/* Category blocks (reference-style lists) */
.yw-catblock { background: #fff; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); padding: 24px; transition: box-shadow .18s ease, border-color .18s ease; }
.yw-catblock:hover { box-shadow: var(--yw-shadow); border-color: var(--yw-line-strong); }
.yw-catblock h3 { margin: 0 0 14px; font-size: 1.05rem; padding-bottom: 12px; border-bottom: 2px solid var(--yw-blue-light); }
.yw-catblock h3 a { color: var(--yw-ink); }
.yw-catblock h3 a:hover { color: var(--yw-blue); }
.yw-catblock ul { list-style: none; margin: 0; padding: 0; }
.yw-catblock li { margin-bottom: 8px; font-size: .9rem; }
.yw-catblock li a { color: var(--yw-muted); }
.yw-catblock li a:hover { color: var(--yw-blue); }
.yw-catblock__more { display: inline-block; margin-top: 10px; font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* Application tiles */
.yw-app { position: relative; display: block; overflow: hidden; border-radius: var(--yw-radius); min-height: 190px; background: linear-gradient(135deg, #026b9f 0%, #31a3dd 100%); }
.yw-app img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .85; transition: transform .4s ease, opacity .3s ease; }
.yw-app:hover img { transform: scale(1.05); opacity: 1; }
.yw-app__label { position: absolute; inset: auto 0 0 0; padding: 16px; background: linear-gradient(to top, rgba(30, 42, 51, .92), rgba(30, 42, 51, 0)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.yw-app__label span { font-size: .78rem; font-weight: 500; opacity: .75; }

/* Stats band */
.yw-stats { background: var(--yw-blue); color: #fff; padding: 46px 0; }
.yw-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.yw-stat__num { font-size: 2.3rem; font-weight: 800; line-height: 1.1; }
.yw-stat__label { font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .82); margin-top: 6px; }

/* =========================================================
   8. Content
   ========================================================= */
.yw-main { padding-top: 48px; padding-bottom: 84px; }
.yw-breadcrumbs { font-size: .82rem; color: var(--yw-muted); margin-bottom: 18px; }
.yw-breadcrumbs a { color: var(--yw-muted); }
.yw-breadcrumbs a:hover { color: var(--yw-blue); }
.yw-breadcrumbs .yw-crumb-sep { margin: 0 8px; opacity: .5; }

.yw-page-head { margin-bottom: 30px; }
.yw-page-head h1 { margin-bottom: 10px; }
.yw-page-head p { color: var(--yw-muted); max-width: 780px; margin: 0; }

.yw-content { max-width: 880px; }
.yw-content > *:first-child { margin-top: 0; }
.yw-content img { border-radius: var(--yw-radius); }
.yw-content h2, .yw-content h3 { margin-top: 1.8em; }
.yw-content .alignleft { float: left; margin: 0 24px 20px 0; }
.yw-content .alignright { float: right; margin: 0 0 20px 24px; }
.yw-content .aligncenter { margin-left: auto; margin-right: auto; }
.yw-content::after { content: ""; display: table; clear: both; }
.yw-content--wide { max-width: none; }

.yw-product { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.yw-product__media img { width: 100%; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); }
.yw-product__summary { color: var(--yw-muted); }
.yw-spec { margin: 24px 0; }
.yw-spec th { width: 38%; }
.yw-post-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--yw-muted); font-size: .85rem; margin-bottom: 22px; }

/* CTA */
.yw-cta { background: linear-gradient(120deg, var(--yw-blue) 0%, #026b9f 100%); color: #fff; border-radius: var(--yw-radius); padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.yw-cta h2 { color: #fff; margin: 0 0 8px; }
.yw-cta p { margin: 0; color: rgba(255, 255, 255, .88); }
.yw-cta--red { background: linear-gradient(120deg, var(--yw-red) 0%, #b81c2c 100%); }

/* =========================================================
   9. Forms / pagination
   ========================================================= */
.yw-form input[type="text"], .yw-form input[type="email"], .yw-form input[type="tel"], .yw-form input[type="url"],
.yw-form select, .yw-form textarea,
.fluentform input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.fluentform select, .fluentform textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); background: #fff;
}
.yw-form input:focus, .yw-form textarea:focus, .fluentform input:focus, .fluentform textarea:focus { outline: 2px solid rgba(2, 133, 201, .2); border-color: var(--yw-blue); }
.fluentform .ff-btn-submit, .fluentform button[type="submit"] { padding: 13px 28px; background: var(--yw-blue); color: #fff; border: 0; border-radius: var(--yw-radius); font-weight: 700; }

.yw-pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.yw-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); color: var(--yw-ink); font-weight: 700; font-size: .9rem; }
.yw-pagination .page-numbers:hover { border-color: var(--yw-blue); color: var(--yw-blue); }
.yw-pagination .current { background: var(--yw-blue); border-color: var(--yw-blue); color: #fff; }

/* =========================================================
   10. Footer
   ========================================================= */
.yw-footer { background: var(--yw-dark); color: rgba(255, 255, 255, .72); padding: 64px 0 0; font-size: .9rem; }
.yw-footer h3 { color: #fff; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.yw-footer a { color: rgba(255, 255, 255, .72); }
.yw-footer a:hover { color: #fff; }
.yw-footer ul { list-style: none; margin: 0; padding: 0; }
.yw-footer li { margin-bottom: 9px; }
.yw-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 36px; }
.yw-footer__brand .yw-brand__name { color: #fff; }
.yw-footer__brand p { margin-top: 14px; }
.yw-footer__bottom { margin-top: 44px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* =========================================================
   11. Extras
   ========================================================= */
.yw-card__placeholder { display: block; width: 100%; height: 100%; min-height: 180px; background: linear-gradient(135deg, #eef2f6 25%, #e3e9f0 25%, #e3e9f0 50%, #eef2f6 50%, #eef2f6 75%, #e3e9f0 75%); background-size: 28px 28px; }
.yw-figure { margin: 1.5em 0; }
.yw-figure img { border-radius: var(--yw-radius); }
.yw-content .yw-figure:first-child { margin-top: 0; }
.yw-details { margin: 0 0 12px; padding: 14px 18px; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); background: #fff; }
.yw-details summary { cursor: pointer; font-weight: 700; color: var(--yw-ink); }
.yw-details[open] summary { margin-bottom: 10px; }
.yw-search-form { display: flex; gap: 8px; max-width: 520px; }
.yw-search-form input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--yw-line); border-radius: var(--yw-radius); }
.yw-menu { list-style: none; margin: 0; padding: 0; }

/* =========================================================
   12. Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.yw-grid--4, .yw-grid--5 { grid-template-columns: repeat(3, 1fr); }
	.yw-hero__inner { grid-template-columns: 1fr; }
	.yw-hero__media { display: none; }
	.yw-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
	.yw-mega { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.yw-nav { position: fixed; inset: var(--yw-header-h) 0 auto 0; max-height: calc(100vh - var(--yw-header-h)); overflow: auto; background: #fff; border-bottom: 1px solid var(--yw-line); padding: 10px 20px 26px; display: none; box-shadow: var(--yw-shadow-lg); }
	.yw-header.is-open .yw-nav { display: block; }
	.yw-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.yw-nav > ul > li > a { padding: 12px 4px; border-bottom: 1px solid var(--yw-line); }
	.yw-nav .sub-menu, .yw-mega { position: static; display: block; width: auto; transform: none; box-shadow: none; border: 0; border-top: 0; padding: 6px 0 6px 14px; grid-template-columns: 1fr; }
	.yw-burger { display: block; }
	.yw-grid--3, .yw-grid--4, .yw-grid--5 { grid-template-columns: repeat(2, 1fr); }
	.yw-product { grid-template-columns: 1fr; gap: 28px; }
	.yw-section { padding: 54px 0; }
	.yw-cta { padding: 32px; }
	.yw-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.yw-grid--2, .yw-grid--3, .yw-grid--4, .yw-grid--5 { grid-template-columns: 1fr; }
	.yw-footer__grid { grid-template-columns: 1fr; }
	.yw-topbar__meta span:nth-child(2) { display: none; }
	.yw-hero { padding: 62px 0; }
	.yw-header__actions .yw-btn { display: none; }
	.yw-brand img { height: 40px; }
}

/* =========================================================
   13. Top bar icons & larger contact line
   ========================================================= */
.yw-topbar { font-size: .95rem; }
.yw-topbar .yw-container { min-height: 46px; }
.yw-topbar__item { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.yw-topbar .yw-ico { width: 19px; height: 19px; color: var(--yw-blue); flex: 0 0 auto; }
.yw-topbar__meta a { color: var(--yw-ink); }
.yw-topbar__meta a:hover { color: var(--yw-blue); }

/* =========================================================
   14. Hero (light banner variant)
   ========================================================= */
.yw-hero {
	padding: 64px 0 0;
	background: linear-gradient(180deg, #f2f8fc 0%, #ffffff 100%);
	color: var(--yw-ink);
	overflow: hidden;
}
.yw-hero::before { display: none; }
.yw-hero__inner { display: block; }
.yw-hero__copy { max-width: 900px; }
.yw-hero h1 { color: var(--yw-ink); }
.yw-hero p { color: var(--yw-muted); }
.yw-hero .yw-eyebrow { color: var(--yw-blue); }
.yw-hero__banner { margin-top: 44px; }
.yw-hero__banner img { width: 100%; height: auto; display: block; }
.yw-hero__chips a { border-color: var(--yw-line-strong); color: var(--yw-ink); }
.yw-hero__chips a:hover { background: var(--yw-blue); border-color: var(--yw-blue); color: #fff; }

/* =========================================================
   15. Contact page
   ========================================================= */
#contact-form { scroll-margin-top: 110px; }
.yw-contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.yw-contact__form { background: #fff; border: 1px solid var(--yw-line); border-radius: 6px; padding: 34px; }
.yw-contact__form h2 { margin-top: 0; }
.yw-contact__info { background: var(--yw-bg); border-radius: 6px; padding: 34px; }
.yw-contact__info h2 { margin-top: 0; }
.yw-contact__item { display: flex; gap: 14px; margin-bottom: 24px; }
.yw-contact__item svg { width: 22px; height: 22px; color: var(--yw-blue); flex: 0 0 auto; margin-top: 4px; }
.yw-contact__item span { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--yw-muted); margin-bottom: 2px; }
.yw-contact__item a,
.yw-contact__item p { margin: 0; font-weight: 700; color: var(--yw-ink); }
.yw-contact__note { border-top: 1px solid var(--yw-line); padding-top: 18px; }
.yw-contact__note p { margin: 4px 0 0; color: var(--yw-muted); }

@media (max-width: 900px) {
	.yw-contact { grid-template-columns: 1fr; gap: 28px; }
	.yw-contact__form, .yw-contact__info { padding: 24px; }
}

/* =========================================================
   16. Hero as full background + wider desktop menu
   ========================================================= */
.yw-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 560px;
	padding: 84px 0;
	background-color: #f4f9fd;
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
}
.yw-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 34%, rgba(255, 255, 255, .45) 58%, rgba(255, 255, 255, 0) 78%);
	pointer-events: none;
}
.yw-hero .yw-container { position: relative; z-index: 1; }
.yw-hero__copy { max-width: 640px; }
.yw-hero__banner { display: none; }

@media (max-width: 900px) {
	.yw-hero { min-height: 0; padding: 56px 0; background-position: 68% center; }
	.yw-hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .92) 60%, rgba(255, 255, 255, .88) 100%); }
}

@media (min-width: 901px) {
	.yw-nav > ul { gap: 12px; }
	.yw-nav > ul > li > a { padding: 12px 18px; }
}

/* =========================================================
   17. FAQ accordion & About page blocks
   ========================================================= */
.yw-faq { max-width: 960px; }
.yw-faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.yw-faq__item { border: 1px solid var(--yw-line); border-radius: 6px; background: #fff; margin-bottom: 12px; }
.yw-faq__item summary { position: relative; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; color: var(--yw-ink); list-style: none; }
.yw-faq__item summary::-webkit-details-marker { display: none; }
.yw-faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.35rem; line-height: 1; color: var(--yw-blue); }
.yw-faq__item[open] summary { color: var(--yw-blue); }
.yw-faq__item[open] summary::after { content: "\2212"; }
.yw-faq__a { padding: 0 22px 20px; color: var(--yw-muted); }
.yw-faq__a p:last-child { margin-bottom: 0; }

.yw-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 18px 0 30px; }
.yw-values li { padding: 14px 16px; background: var(--yw-bg); border-left: 3px solid var(--yw-blue); font-weight: 700; color: var(--yw-ink); }

.yw-history { list-style: none; padding: 0; margin: 20px 0 0; }
.yw-history li { position: relative; padding: 0 0 22px 30px; border-left: 2px solid var(--yw-blue-light); margin: 0; }
.yw-history li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yw-blue); }
.yw-history strong { display: block; color: var(--yw-blue); font-size: 1.05rem; }
.yw-history span { color: var(--yw-muted); }

@media (max-width: 700px) {
	.yw-values { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   18. Larger desktop menu + clearer mega-menu hierarchy
   ========================================================= */
@media (min-width: 901px) {
	.yw-nav > ul { gap: 14px; }
	.yw-nav > ul > li > a { padding: 12px 20px; font-size: 1rem; }
}
.yw-mega { grid-template-columns: repeat(4, 1fr); gap: 26px 30px; }
.yw-mega__col h4 { margin: 0 0 10px; font-size: .95rem; letter-spacing: .03em; color: var(--yw-blue); border-bottom: 2px solid var(--yw-blue-light); padding-bottom: 8px; }
.yw-mega__col li { margin-bottom: 7px; }
.yw-mega__col a { font-size: .85rem; font-weight: 500; color: var(--yw-muted); line-height: 1.4; }
.yw-mega__col a:hover { color: var(--yw-blue); }

/* =========================================================
   19. Products overview page
   ========================================================= */
.yw-product-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin: 28px 0 44px; }
.yw-cat-section { background: #fff; border: 1px solid var(--yw-line); border-radius: 6px; padding: 26px; }
.yw-cat-section__head h3 { margin: 0 0 8px; font-size: 1.15rem; }
.yw-cat-section__head h3 a { color: var(--yw-ink); }
.yw-cat-section__head h3 a:hover { color: var(--yw-blue); }
.yw-cat-section__head p { color: var(--yw-muted); font-size: .92rem; margin: 0 0 14px; }
.yw-cat-section__list { list-style: none; padding: 0; margin: 0 0 14px; }
.yw-cat-section__list li { padding: 8px 0; border-bottom: 1px dashed var(--yw-line); font-size: .9rem; margin: 0; }
.yw-cat-section__list a { color: var(--yw-ink); }
.yw-cat-section__list a:hover { color: var(--yw-blue); }
.yw-cat-section__more { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 900px) {
	.yw-product-cats { grid-template-columns: 1fr; }
}

/* =========================================================
   20. Services page
   ========================================================= */
.yw-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0 12px; }
.yw-service { background: var(--yw-bg); border-radius: 6px; padding: 28px; border-top: 3px solid var(--yw-blue); }
.yw-service__num { display: block; font-size: 1.9rem; font-weight: 800; color: #b9dcf0; line-height: 1; margin-bottom: 10px; }
.yw-service h3 { margin: 0 0 10px; font-size: 1.05rem; }
.yw-service p { margin: 0; color: var(--yw-muted); font-size: .93rem; }

@media (max-width: 900px) {
	.yw-services { grid-template-columns: 1fr; }
}

/* =========================================================
   21. Applications page
   ========================================================= */
.yw-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 20px; }
.yw-app-card { background: #fff; border: 1px solid var(--yw-line); border-radius: 6px; padding: 28px; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.yw-app-card:hover { box-shadow: var(--yw-shadow-lg); transform: translateY(-3px); border-color: var(--yw-line-strong); }
.yw-app-card__num { display: inline-block; font-size: 1.6rem; font-weight: 800; color: #b9dcf0; line-height: 1; margin-bottom: 10px; }
.yw-app-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.yw-app-card p { margin: 0 0 16px; color: var(--yw-muted); font-size: .93rem; }
.yw-app-card__more { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 900px) {
	.yw-apps { grid-template-columns: 1fr; }
}

/* =========================================================
   22. Taller hero on desktop, app images, news thumbnails
   ========================================================= */
@media (min-width: 901px) {
	.yw-hero {
		min-height: clamp(620px, calc(100vw / 2.043), 920px);
		background-position: center center;
	}
}
.yw-app img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yw-card--post .yw-card__media { aspect-ratio: 16 / 10; }
.yw-card--post .yw-card__body { padding: 16px 18px 18px; }

/* =========================================================
   23. Product detail page
   ========================================================= */
.yw-pdetail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; }
.yw-pdetail__main { border: 1px solid var(--yw-line); border-radius: 8px; overflow: hidden; background: #fff; }
.yw-pdetail__main img { width: 100%; height: auto; display: block; }
.yw-pdetail__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.yw-pdetail__thumbs button { width: 76px; height: 76px; padding: 0; border: 2px solid var(--yw-line); border-radius: 6px; background: #fff; overflow: hidden; }
.yw-pdetail__thumbs button.is-active { border-color: var(--yw-blue); }
.yw-pdetail__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yw-pdetail__info h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.yw-pdetail__cat { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yw-blue); margin: 0 0 14px; }
.yw-pdetail__lead { color: var(--yw-muted); font-size: 1rem; }
.yw-pdetail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.yw-pdetail__points { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--yw-line); }
.yw-pdetail__points li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--yw-ink); font-size: .93rem; }
.yw-pdetail__points li::before { content: "\2713"; position: absolute; left: 0; color: var(--yw-blue); font-weight: 800; }
.yw-pdetail__specs { margin-top: 60px; }
.yw-pdetail__specs h2 { margin-bottom: 22px; }

@media (max-width: 900px) {
	.yw-pdetail { grid-template-columns: 1fr; gap: 28px; }
}

/* =========================================================
   24. Reduce empty space above the hero copy on desktop
   ========================================================= */
@media (min-width: 901px) {
	.yw-hero {
		align-items: flex-start;
		padding-top: 48px;
		padding-bottom: 24px;
	}
	.yw-hero__copy { max-width: 620px; }
}

/* =========================================================
   25. Keep the switch row anchored to the bottom of the hero
   ========================================================= */
@media (min-width: 901px) {
	.yw-hero {
		background-position: center bottom;
	}
}

/* =========================================================
   26. Trim the empty white strip at the bottom of the hero image
   ========================================================= */
@media (min-width: 901px) {
	.yw-hero {
		min-height: clamp(540px, calc(100vw / 2.18), 880px);
		background-position: center top;
		padding-bottom: 0;
	}
}

/* =========================================================
   27. Product thumbnails in the products page lists
   ========================================================= */
.yw-cat-section__list a { display: flex; align-items: center; gap: 12px; }
.yw-cat-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border: 1px solid var(--yw-line);
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.yw-cat-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.yw-cat-thumb__ph { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #f2f5f8, #f2f5f8 6px, #e9eef3 6px, #e9eef3 12px); }
.yw-cat-name { flex: 1 1 auto; }

/* =========================================================
   28. Mobile: right-side drawer menu + inner page spacing
   ========================================================= */
.yw-nav-backdrop { display: none; }

@media (max-width: 900px) {
	.yw-main { padding-top: 28px; padding-bottom: 56px; }

	.yw-nav {
		position: fixed;
		top: var(--yw-header-h);
		right: 0;
		bottom: 0;
		left: auto;
		width: min(86vw, 340px);
		max-height: none;
		padding: 18px 20px 32px;
		margin: 0;
		background: #fff;
		border-bottom: 0;
		box-shadow: -14px 0 34px rgba(14, 42, 71, .18);
		transform: translateX(102%);
		visibility: hidden;
		display: block;
		transition: transform .25s ease, visibility .25s ease;
		z-index: 890;
		overflow-y: auto;
	}
	.yw-header.is-open .yw-nav {
		display: block;
		visibility: visible;
		transform: translateX(0);
	}

	.yw-nav-backdrop {
		display: block;
		position: fixed;
		top: var(--yw-header-h);
		right: 0;
		bottom: 0;
		left: 0;
		background: rgba(10, 25, 40, .45);
		opacity: 0;
		visibility: hidden;
		transition: opacity .25s ease, visibility .25s ease;
		z-index: 880;
	}
	.yw-header.is-open .yw-nav-backdrop {
		opacity: 1;
		visibility: visible;
	}
}

/* =========================================================
   29. Product FAQ block
   ========================================================= */
.yw-faq--product { max-width: none; margin: 44px 0 0; }
.yw-faq--product .yw-faq__title { margin: 0 0 18px; font-size: 1.35rem; }
.yw-faq--product .yw-faq__item summary { padding: 16px 50px 16px 20px; }

/* =========================================================
   30. Language switcher: keep theme colours on hover
   ========================================================= */
.yw-topbar .yibao-lang__toggle,
.yw-topbar .yibao-lang__toggle:hover,
.yw-topbar .yibao-lang__toggle:focus {
	color: var(--yw-ink);
}
.yw-topbar .yibao-lang__toggle svg { color: var(--yw-blue); }
.yw-topbar .yibao-lang__chevron { color: var(--yw-muted) !important; }
.yw-topbar .yibao-lang__menu a { color: var(--yw-ink); }
.yw-topbar .yibao-lang__menu a:hover,
.yw-topbar .yibao-lang__menu a.is-active { color: var(--yw-blue); background: var(--yw-blue-light); }
.yw-topbar .yibao-lang__menu em { color: var(--yw-muted); }

/* =========================================================
   31. Mobile nav: tap to reveal the next level (accordion)
   ========================================================= */
@media (max-width: 900px) {
	.yw-nav .sub-menu,
	.yw-nav .yw-mega {
		display: none;
		position: static;
		width: auto;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 4px 0 8px 14px;
		grid-template-columns: 1fr;
	}
	.yw-nav li.is-open-sub > .sub-menu,
	.yw-nav li.is-open-sub > .yw-mega { display: block; }

	.yw-nav li.has-sub > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
	.yw-nav li.has-sub > a::after {
		content: "\203A";
		font-size: 1.15rem;
		line-height: 1;
		color: var(--yw-muted);
		transform: rotate(90deg);
		transition: transform .2s ease;
	}
	.yw-nav li.is-open-sub > a::after { transform: rotate(-90deg); color: var(--yw-blue); }

}

/* =========================================================
   32. Mobile: burger on the right, sub-levels collapsed
   ========================================================= */
@media (max-width: 900px) {
	.yw-header__actions { margin-left: auto; }
	.yw-nav .sub-menu,
	.yw-nav .yw-mega { display: none !important; }
	.yw-nav li.is-open-sub > .sub-menu,
	.yw-nav li.is-open-sub > .yw-mega { display: block !important; }
}

/* =========================================================
   33. About page: profile, certificates, factory
   ========================================================= */
.yw-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; }
.yw-about__block { margin-top: 56px; }
.yw-section__lead { color: var(--yw-muted); margin: -6px 0 24px; max-width: 800px; }
.yw-badges { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 18px 0 0; }
.yw-badges li { padding: 8px 14px; border: 1px solid var(--yw-line); border-radius: 4px; background: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .06em; color: var(--yw-blue); }

.yw-certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.yw-cert { margin: 0; background: #fff; border: 1px solid var(--yw-line); border-radius: 6px; padding: 12px; text-align: center; }
.yw-cert img { width: 100%; height: 300px; object-fit: contain; background: #fff; }
.yw-cert figcaption { margin-top: 10px; font-size: .85rem; font-weight: 700; color: var(--yw-ink); }

.yw-factory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.yw-factory__item { margin: 0; background: #fff; border: 1px solid var(--yw-line); border-radius: 6px; overflow: hidden; }
.yw-factory__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.yw-factory__item figcaption { padding: 12px 14px; font-size: .86rem; font-weight: 600; color: var(--yw-ink); }

@media (max-width: 1100px) {
	.yw-certs { grid-template-columns: repeat(3, 1fr); }
	.yw-factory { grid-template-columns: repeat(3, 1fr); }
	.yw-about__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
	.yw-certs { grid-template-columns: repeat(2, 1fr); }
	.yw-factory { grid-template-columns: repeat(2, 1fr); }
	.yw-cert img { height: 220px; }
}

/* =========================================================
   34. About page: factory image in the profile block
   ========================================================= */
.yw-about__grid { align-items: start; }
.yw-about__media img { width: 100%; height: auto; display: block; border: 1px solid var(--yw-line); border-radius: 6px; }
.yw-about__media .yw-badges { margin-top: 16px; }

/* =========================================================
   35. WhatsApp floating button + contact row
   ========================================================= */
.yw-whatsapp {
	position: fixed;
	right: 20px;
	bottom: 22px;
	z-index: 800;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
	transition: transform .18s ease, background .18s ease;
}
.yw-whatsapp:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.yw-whatsapp svg { width: 30px; height: 30px; display: block; }
.yw-contact__item--wa svg { color: #25d366; }
.yw-contact__item--wa a { color: var(--yw-ink); }

@media (max-width: 600px) {
	.yw-whatsapp { width: 50px; height: 50px; right: 14px; bottom: 16px; }
	.yw-whatsapp svg { width: 26px; height: 26px; }
}

/* =========================================================
   36. Company history: alternating timeline
   ========================================================= */
.yw-history { position: relative; max-width: 960px; margin: 44px auto 0; padding: 0; list-style: none; }
.yw-history::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 8px;
	bottom: 8px;
	width: 2px;
	margin-left: -1px;
	background: linear-gradient(180deg, #cfe8f6, var(--yw-blue), #cfe8f6);
	border-radius: 2px;
}
.yw-history li {
	position: relative;
	width: 50%;
	margin: 0 0 28px;
	padding: 0 46px 0 0;
	border: 0;
	text-align: right;
}
.yw-history li:nth-child(even) { margin-left: 50%; padding: 0 0 0 46px; text-align: left; }
.yw-history li::before {
	content: "";
	position: absolute;
	top: 12px;
	right: -8px;
	left: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--yw-blue);
	box-shadow: 0 0 0 4px rgba(2, 133, 201, .12);
}
.yw-history li:nth-child(even)::before { left: -8px; right: auto; }
.yw-history strong {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 14px;
	border-radius: 100px;
	background: var(--yw-blue);
	color: #fff;
	font-size: .92rem;
	line-height: 1.2;
}
.yw-history span {
	display: block;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--yw-line);
	border-radius: 8px;
	color: var(--yw-muted);
	font-size: .93rem;
	box-shadow: var(--yw-shadow);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.yw-history span:hover { border-color: var(--yw-blue); box-shadow: var(--yw-shadow-lg); }

@media (max-width: 900px) {
	.yw-history::before { left: 9px; margin-left: 0; }
	.yw-history li,
	.yw-history li:nth-child(even) { width: 100%; margin: 0 0 20px; padding: 0 0 0 38px; text-align: left; }
	.yw-history li::before,
	.yw-history li:nth-child(even)::before { left: 2px; right: auto; top: 8px; }
}

/* =========================================================
   37. Header search button + slide-down search panel
   ========================================================= */
.yw-search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--yw-line);
	border-radius: 6px;
	color: var(--yw-ink);
	transition: border-color .18s ease, color .18s ease;
}
.yw-search-toggle:hover,
.yw-header.is-search-open .yw-search-toggle { border-color: var(--yw-blue); color: var(--yw-blue); }
.yw-search-toggle svg { width: 18px; height: 18px; display: block; }

.yw-search-panel {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	padding: 16px 0;
	background: #fff;
	border-bottom: 1px solid var(--yw-line);
	box-shadow: var(--yw-shadow-lg);
	z-index: 5;
}
.yw-header.is-search-open .yw-search-panel { display: block; }
.yw-search-panel .yw-search-form { max-width: 760px; margin: 0 auto; }
.yw-search-panel .yw-search-form input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--yw-line); border-radius: 6px; }

@media (max-width: 600px) {
	.yw-search-toggle { width: 38px; height: 38px; }
}

/* =========================================================
   38. Back to top (above the WhatsApp button)
   ========================================================= */
.yw-to-top {
	position: fixed;
	right: 20px;
	bottom: 90px;
	z-index: 800;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--yw-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .18s ease;
}
.yw-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.yw-to-top:hover { background: var(--yw-blue-dark); }
.yw-to-top svg { width: 20px; height: 20px; display: block; }

@media (max-width: 600px) {
	.yw-to-top { width: 42px; height: 42px; right: 16px; bottom: 78px; }
}

/* =========================================================
   39. Application page intro block
   ========================================================= */
.yw-app-intro {
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	gap: 32px;
	align-items: center;
	margin: 4px 0 40px;
	padding: 30px;
	background: linear-gradient(135deg, #f2f8fc 0%, #ffffff 70%);
	border: 1px solid var(--yw-line);
	border-left: 4px solid var(--yw-blue);
	border-radius: 10px;
}
.yw-app-intro__text p { color: var(--yw-muted); margin: 0 0 14px; }
.yw-app-intro__text p:last-child { margin-bottom: 0; }
.yw-app-intro__lead { color: var(--yw-ink) !important; font-weight: 700; font-size: 1.08rem; }
.yw-app-intro__media { margin: 0; }
.yw-app-intro__media img { width: 100%; border-radius: 8px; border: 1px solid var(--yw-line); display: block; }

@media (max-width: 900px) {
	.yw-app-intro { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
	.yw-app-intro__media { order: -1; }
}

/* =========================================================
   40. Larger logo + aligned floating buttons
   ========================================================= */
.yw-brand img { height: 54px; max-width: 260px; }

.yw-whatsapp { width: 54px; height: 54px; right: 30px; bottom: 22px; }
.yw-whatsapp svg { width: 28px; height: 28px; }
.yw-to-top { width: 54px; height: 54px; right: 30px; bottom: 88px; }
.yw-to-top svg { width: 22px; height: 22px; }

@media (max-width: 600px) {
	.yw-brand img { height: 44px; }
	.yw-whatsapp { width: 48px; height: 48px; right: 20px; bottom: 16px; }
	.yw-whatsapp svg { width: 24px; height: 24px; }
	.yw-to-top { width: 48px; height: 48px; right: 20px; bottom: 74px; }
	.yw-to-top svg { width: 20px; height: 20px; }
}

/* =========================================================
   41. Specification tables + full-width application gallery
   ========================================================= */
.yw-content table {
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--yw-line);
	border-radius: 10px;
	overflow: hidden;
}
.yw-content th {
	background: var(--yw-blue);
	color: #fff;
	font-weight: 700;
	border-color: var(--yw-blue);
}
.yw-content tbody tr:nth-child(even) td { background: #f7fafc; }
.yw-content td { border-color: var(--yw-line); vertical-align: middle; }
.yw-content table tr:last-child td { border-bottom: 0; }

.yw-app-gallery table {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	overflow: visible;
}
.yw-app-gallery tbody { display: block; width: 100%; }
.yw-app-gallery tr {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	margin: 0 0 44px;
}
.yw-app-gallery td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent !important;
}
.yw-app-gallery td:has(img) { order: -1; }
.yw-app-gallery td img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 14px 34px rgba(14, 42, 71, .14);
}
.yw-app-gallery td h3 { margin: 0 0 12px; font-size: 1.3rem; }
.yw-app-gallery td p { color: var(--yw-muted); }
.yw-app-gallery td p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
	.yw-app-gallery tr { margin-bottom: 32px; }
	.yw-app-gallery td img { border-radius: 8px; }
}

/* =========================================================
   42. Application page product cards
   ========================================================= */
.yw-app-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 24px 0 42px;
}
.yw-app-product {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--yw-line);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.yw-app-product:hover { box-shadow: var(--yw-shadow-lg); transform: translateY(-2px); border-color: var(--yw-line-strong); }
.yw-app-product__media { display: flex; align-items: center; justify-content: center; padding: 12px; aspect-ratio: 4 / 3; background: #fff; }
.yw-app-product__media img { width: 100%; height: 100%; object-fit: contain; }
.yw-app-product__name { padding: 12px 14px; border-top: 1px solid var(--yw-line); font-weight: 700; font-size: .9rem; line-height: 1.35; color: var(--yw-ink); }
.yw-app-product:hover .yw-app-product__name { color: var(--yw-blue); }

@media (max-width: 900px) {
	.yw-app-products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 520px) {
	.yw-app-products { grid-template-columns: 1fr; }
}

/* =========================================================
   43. Compact spec tables + tighter application gallery
   ========================================================= */
.yw-content table { font-size: .9rem; }
.yw-content th,
.yw-content td { padding: .55em .75em; }
.yw-content h2 { margin-top: 1.4em; }
.yw-app-gallery { margin-top: 16px; }
.yw-app-gallery tr { margin-bottom: 30px; gap: 12px; }
.yw-app-gallery td:empty { display: none; }

/* =========================================================
   44. Homepage About Unionwell module + customer logos
   ========================================================= */
.yw-about-home { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.yw-about-home__text > p { color: var(--yw-muted); }
.yw-about-home__thumbs { display: flex; gap: 14px; margin: 18px 0 22px; }
.yw-about-home__thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--yw-line); background: #fff; }
.yw-about-home__media { margin: 0; position: relative; }
.yw-about-home__media img { width: 100%; border-radius: 10px; border: 1px solid var(--yw-line); display: block; }
.yw-about-home__media figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 18px; background: var(--yw-blue); color: #fff; font-weight: 700; border-radius: 0 8px 0 10px; }

.yw-customers { margin-top: 56px; }
.yw-customers__title { text-align: center; font-size: 1.2rem; margin: 0 0 26px; }
.yw-customers__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: center; }
.yw-customers__grid img { max-height: 52px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.yw-customers__grid img:hover { filter: none; opacity: 1; }

@media (max-width: 900px) {
	.yw-about-home { grid-template-columns: 1fr; gap: 26px; }
	.yw-customers { margin-top: 40px; }
	.yw-customers__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
	.yw-customers__grid img { max-height: 42px; }
}
@media (max-width: 520px) {
	.yw-customers__grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   45. Customer logos: full colour, larger, 6 / 3 per row
   ========================================================= */
.yw-customers__grid { gap: 26px 22px; }
.yw-customers__grid img {
	max-height: 84px;
	filter: none;
	opacity: 1;
	transition: none;
}
.yw-customers__grid img:hover { filter: none; opacity: 1; }

@media (max-width: 900px) {
	.yw-customers__grid { grid-template-columns: repeat(3, 1fr); gap: 20px 14px; }
	.yw-customers__grid img { max-height: 66px; }
}
@media (max-width: 520px) {
	.yw-customers__grid { grid-template-columns: repeat(3, 1fr); }
	.yw-customers__grid img { max-height: 58px; }
}

/* =========================================================
   46. Resources page
   ========================================================= */
.yw-res-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.yw-res-tabs a {
	padding: 10px 18px;
	border: 1px solid var(--yw-line);
	border-radius: 100px;
	font-size: .88rem;
	font-weight: 700;
	color: var(--yw-ink);
	background: #fff;
}
.yw-res-tabs a:hover { border-color: var(--yw-blue); color: var(--yw-blue); background: var(--yw-blue-light); }

.yw-res-section { margin-top: 52px; scroll-margin-top: 110px; }
.yw-res-section h2 { margin-bottom: 24px; }

.yw-res-pdfs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.yw-res-pdf {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--yw-line);
	border-radius: 8px;
	color: var(--yw-ink);
	transition: border-color .18s ease, box-shadow .18s ease;
}
.yw-res-pdf:hover { border-color: var(--yw-blue); box-shadow: var(--yw-shadow); color: var(--yw-ink); }
.yw-res-pdf__icon {
	flex: 0 0 auto;
	padding: 5px 8px;
	border-radius: 4px;
	background: #fdecec;
	color: #c62828;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .06em;
}
.yw-res-pdf__name { flex: 1 1 auto; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.yw-res-pdf__dl { flex: 0 0 auto; font-size: .78rem; font-weight: 700; color: var(--yw-blue); text-transform: uppercase; letter-spacing: .04em; }

.yw-res-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.yw-res-video {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	min-height: 90px;
	background: #fff;
	border: 1px solid var(--yw-line);
	border-radius: 8px;
	color: var(--yw-ink);
	font-weight: 600;
	font-size: .92rem;
	line-height: 1.35;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.yw-res-video:hover { border-color: var(--yw-blue); box-shadow: var(--yw-shadow); color: var(--yw-blue); }
.yw-res-video__play {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--yw-blue);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .8rem;
}

.yw-res-glossary { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.yw-res-glossary dt { padding: 14px 0 4px; font-weight: 700; color: var(--yw-blue); }
.yw-res-glossary dd { margin: 0 0 12px; padding: 0 0 14px; border-bottom: 1px dashed var(--yw-line); color: var(--yw-muted); }

.yw-res-case { background: #fff; border: 1px solid var(--yw-line); border-radius: 8px; padding: 26px; }
.yw-res-case h3 { margin: 0 0 12px; }
.yw-res-case h3 a { color: var(--yw-ink); }
.yw-res-case h3 a:hover { color: var(--yw-blue); }
.yw-res-case p { color: var(--yw-muted); }
.yw-res-case__more { font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 900px) {
	.yw-res-pdfs { grid-template-columns: 1fr; }
	.yw-res-videos { grid-template-columns: 1fr; }
	.yw-res-video { min-height: 0; }
}

/* =========================================================
   47. Video post embed + case list
   ========================================================= */
.yw-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin: 0 0 24px; background: #000; }
.yw-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yw-res-videos--posts .yw-res-video { min-height: 86px; }
.yw-res-cases { display: grid; gap: 18px; }

/* =========================================================
   48. Customized Micro Switch Solutions (homepage)
   ========================================================= */
.yw-solution {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--yw-line);
	border-radius: 8px;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.yw-solution:hover { transform: translateY(-3px); box-shadow: var(--yw-shadow-lg); border-color: var(--yw-line-strong); }

.yw-solution__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--yw-bg); }
.yw-solution__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.yw-solution:hover .yw-solution__media img { transform: scale(1.04); }

.yw-solution__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.yw-solution__title { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.35; color: var(--yw-ink); }
.yw-solution__text { margin: 0; color: var(--yw-muted); font-size: .94rem; }

@media (max-width: 900px) {
	.yw-solution__body { padding: 18px; }
}
