/*
Theme Name: Cabin Mobile
Theme URI: https://yuepicks.com
Author: YuePicks
Author URI: https://yuepicks.com
Description: Product catalogue theme for mobile modular cabin and trailer manufacturers. Trilingual content model (EN / ES / ZH, no plugin required), product range taxonomy, specification tables and an inquiry form that stores every lead in the database. Ships empty — the company profile and catalogue are entered in the admin, with an optional one-click set of replaceable placeholder content for layout review.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ycabin
Tags: business, industrial, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   1. Design tokens
   Two palettes ship in the box. Switch with one class on <body>:
     <body class="palette-light">  (default, set in functions.php)
     <body class="palette-dark">
   Every colour below is a variable — nothing hard-codes a hue.
   ============================================================ */

:root,
.palette-teal {
	/* Reference palette — every value sampled from the benchmark site. */
	--bg:          #FFFFFF;
	--surface:     #F3F3F3;
	--surface-2:   #EDEDED;
	--plate:       #FFFFFF;
	--ink:         #323232;
	--ink-soft:    #505050;
	--ink-muted:   #8F8F8F;
	--line:        #E4E4E4;
	--line-strong: #C9C9C9;
	--accent:      #43ADA7;
	--accent-ink:  #FFFFFF;
	--accent-soft: #E6F4F3;
	--media-bg:    #F3F3F3;
	--footer-bg:   #F0F0F0;
}

.palette-light {
	--bg:          #FFFFFF;
	--surface:     #F1F4F7;
	--surface-2:   #E7ECF1;
	--plate:       #FFFFFF;
	--ink:         #16202B;
	--ink-soft:    #4A5764;
	--ink-muted:   #7A8794;
	--line:        #DCE3EA;
	--line-strong: #C3CDD8;
	--accent:      #0B5FCE;
	--accent-ink:  #FFFFFF;
	--accent-soft: #E8F0FC;
	--media-bg:    #F1F4F7;
}

.palette-dark {
	--bg:          #0E1012;
	--surface:     #16191D;
	--surface-2:   #1E2227;
	--plate:       #FFFFFF;
	--ink:         #F5F7F8;
	--ink-soft:    #A8B2BC;
	--ink-muted:   #7C8792;
	--line:        #262B31;
	--line-strong: #3A4148;
	--accent:      #FF6A00;
	--accent-ink:  #141414;
	--accent-soft: #2A1C10;
	--media-bg:    #16191D;
}

:root {
	--wrap: 1344px;         /* reference container width */
	--gap: 20px;
	--radius: 6px;
	--font: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", "Times New Roman", Georgia, Verdana, Tahoma, "Trebuchet MS", sans-serif;
	--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	/* Reference geometry */
	--banner-h: 708px;
	--title-size: 36px;
	--title-weight: 700;
	--card-radius: 0px;
	--card-shadow: 0 0 10px rgba(0, 0, 0, .15);
	--pill-radius: 36px;
}

/* ============================================================
   2. Reset / base
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 19px; }
p  { margin: 0 0 1em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; z-index: 99; }

/* ============================================================
   3. Header / nav
   ============================================================ */

.site-header {
	border-bottom: 1px solid var(--line);
	background: var(--bg);
	position: sticky; top: 0; z-index: 50;
}

.header-bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--ink-muted); letter-spacing: .06em; text-transform: uppercase; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav .current-menu-item > a { color: var(--accent); }

.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-switch a {
	padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--ink-soft);
	font-family: var(--mono); letter-spacing: .04em;
}
.lang-switch a:hover { background: var(--surface); text-decoration: none; }
.lang-switch a.is-active { background: var(--ink); color: var(--bg); }

.nav-toggle {
	display: none; margin-left: auto; background: none; border: 1px solid var(--line);
	color: var(--ink); border-radius: var(--radius); padding: 8px 12px; font-size: 18px; cursor: pointer;
}

/* ============================================================
   4. Buttons / bands
   ============================================================ */

.btn {
	display: inline-block; padding: 12px 22px; border-radius: var(--radius);
	font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

.section { padding: 72px 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: 48px 0; }

.eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink-muted); margin: 0 0 10px;
}
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ============================================================
   5. Hero
   ============================================================ */

.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; align-items: stretch; }
.hero-copy { padding: 84px 40px 84px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-copy p.lede { font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-media { background: var(--media-bg); display: flex; align-items: center; justify-content: center; padding: 36px; }
.hero-media img { width: 100%; height: 420px; object-fit: contain; }

.stat-strip { border-top: 1px solid var(--line); background: var(--surface); }
.stat-strip ul {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(5, 1fr);
}
.stat-strip li { padding: 22px 18px; border-right: 1px solid var(--line); }
.stat-strip li:last-child { border-right: 0; }
.stat-value { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

/* ============================================================
   6. Cards / grids
   ============================================================ */

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
}
.card-media { background: var(--media-bg); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 17px; margin: 0 0 8px; }
.card-title a { color: var(--ink); }
.card-summary { font-size: 14px; color: var(--ink-soft); margin: 0 0 14px; flex: 1; }
.card-meta { display: flex; align-items: baseline; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink); }
.price-unit { font-size: 12px; color: var(--ink-muted); }
.moq { margin-left: auto; font-size: 12px; color: var(--ink-muted); }

/* product family tile */
.family { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.family-media { background: var(--media-bg); aspect-ratio: 3 / 2; overflow: hidden; }
.family-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.family:hover .family-media img { transform: scale(1.03); }
.family-body { padding: 16px 18px; border-top: 1px solid var(--line); }
.family-name { font-weight: 600; font-size: 15px; margin: 0; }
.family-count { font-size: 12px; color: var(--ink-muted); font-family: var(--mono); }

/* ============================================================
   7. Single product
   ============================================================ */

.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0; }
.product-gallery { background: var(--media-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.product-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.product-head h1 { margin-bottom: 12px; }
.product-summary { font-size: 16px; color: var(--ink-soft); }

.price-block { margin: 26px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-lead { font-family: var(--mono); font-size: 26px; font-weight: 600; }
.price-note { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--ink-soft); font-weight: 500; background: var(--surface); }
.spec-table td { font-family: var(--mono); }

/* ============================================================
   8. Inquiry form
   ============================================================ */

.inquiry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.inquiry h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-soft); }
.field input, .field textarea, .field select {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
	background: var(--bg); color: var(--ink); font-family: inherit; font-size: 15px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-note { font-size: 12px; color: var(--ink-muted); margin-top: 10px; }
.form-message { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; }
.form-message--ok { background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); }
.form-message--err { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); }

/* honeypot — never visible to people */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ============================================================
   9. Contact channels / footer
   ============================================================ */

.channel-list { list-style: none; margin: 0; padding: 0; }
.channel-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.channel-label { font-size: 12px; color: var(--ink-muted); min-width: 92px; text-transform: uppercase; letter-spacing: .06em; }
.channel-value { font-family: var(--mono); font-size: 14px; word-break: break-all; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 52px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-list li { margin-bottom: 8px; color: var(--ink-soft); }
.footer-list a { color: var(--ink-soft); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   10. Utilities / states
   ============================================================ */

.cta-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { margin: 0; }

.breadcrumb { font-size: 13px; color: var(--ink-muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--ink-muted); }

.empty-state { padding: 64px 0; text-align: center; color: var(--ink-muted); }

/* ============================================================
   11. Responsive
   ============================================================ */

@media (max-width: 1000px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-copy { padding: 56px 0 40px; }
	.hero-media { padding: 24px; }
	.hero-media img { height: 300px; }
	.product-top { grid-template-columns: 1fr; gap: 28px; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav ul li { border-bottom: 1px solid var(--line); }
	.nav ul li:last-child { border-bottom: 0; }
	.nav ul a { display: block; padding: 13px 0; }
	.header-bar { position: relative; flex-wrap: wrap; }
	.lang-switch { margin-left: auto; }
}

@media (max-width: 640px) {
	.section { padding: 52px 0; }
	.grid-3, .grid-2 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.stat-strip ul { grid-template-columns: repeat(2, 1fr); }
	.stat-strip li { border-right: 0; border-bottom: 1px solid var(--line); }
	.field-row { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============================================================
   12. WordPress core alignment
   ============================================================ */

.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--ink-muted); }

/* ============================================================
   13. Empty states
   The shell ships without imagery or catalogue entries, so the
   layout has to look deliberate when content is still missing.
   ============================================================ */

.hero--text-only .hero-inner { grid-template-columns: 1fr; }
.hero--text-only .hero-copy { padding-right: 0; max-width: 900px; }

.media-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	min-height: 100%;
	background: var(--surface-2);
	color: var(--ink-muted);
}

.media-placeholder-mark {
	display: block;
	width: 34px;
	height: 34px;
	border: 2px solid var(--line-strong);
	border-radius: var(--radius);
	position: relative;
}

.media-placeholder-mark::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top right,
		transparent calc(50% - 1px),
		var(--line-strong) calc(50% - 1px),
		var(--line-strong) calc(50% + 1px),
		transparent calc(50% + 1px)
	);
}

.media-placeholder-text {
	font-size: 12px;
	letter-spacing: .04em;
}

.empty-panel {
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	padding: 48px 24px;
	text-align: center;
	background: var(--bg);
}

.empty-panel-text {
	color: var(--ink-soft);
	max-width: 62ch;
	margin: 0 auto 18px;
}

.post-content { max-width: 780px; }

/* ============================================================
   14. Reference layer
   Applies the benchmark site's visual language on top of the
   base system. Values are the measured ones (colour, geometry,
   typography) — the responsive behaviour is deliberately NOT
   copied, because the benchmark collapses badly below 768px.
   ============================================================ */

body {
	font-size: 14px;
	line-height: 1.7;
	color: var(--ink);
}

/* --- Section headings: teal block + teal 36/700 title --- */

.section-head {
	display: block;
	margin-bottom: 32px;
}

.section-head .eyebrow { display: none; }

.section-head h2,
.ref-title {
	position: relative;
	margin: 0;
	padding-left: 36px;
	font-size: var(--title-size);
	font-weight: var(--title-weight);
	line-height: 48px;
	color: var(--accent);
	text-transform: capitalize;
	letter-spacing: -.01em;
}

.section-head h2::before,
.ref-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	height: 48px;
	background: var(--accent);
	border-radius: 24px 0 0 24px;
}

.section-head p {
	margin: 10px 0 0;
	color: var(--ink-soft);
	max-width: 76ch;
}

.ref-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.ref-more {
	font-size: 14px;
	color: var(--ink);
	white-space: nowrap;
}

.ref-more:hover { color: var(--accent); }

/* --- Buttons: teal pills --- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 26px;
	border: 0;
	border-radius: var(--pill-radius);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.btn-primary {
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
}

.btn-primary:hover { filter: brightness(.94); }

.btn-ghost {
	background: transparent;
	color: var(--accent);
	border: 2px solid var(--accent);
	font-weight: 700;
}

.btn-ghost:hover { background: var(--accent-soft); }

/* --- Cards: white plate, 1:1 media, centred 2-line title --- */

.card {
	background: var(--plate);
	box-shadow: var(--card-shadow);
	border: 0;
	border-radius: var(--card-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.card-media {
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--media-bg);
	overflow: hidden;
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: scale-down;
}

.card-body {
	padding: 16px 12px 24px;
	text-align: center;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-title {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: var(--ink);
	height: 48px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-summary { display: none; }

.card-meta {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--ink-soft);
	font-size: 13px;
}

.card-meta .card-cta { margin-top: 8px; }

.card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 248px;
	height: 40px;
	border-radius: var(--pill-radius);
	background: var(--accent);
	color: var(--accent-ink);
	font-size: 14px;
	text-decoration: none;
}

.card-cta:hover { filter: brightness(.94); }

/* --- Banner: full-bleed image with the header over it --- */

.site-header.header--over {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 120;
	background: transparent;
	border-bottom: 0;
}

.site-header.header--over.is-stuck {
	position: fixed;
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.site-header.header--over .brand-name,
.site-header.header--over .brand-sub,
.site-header.header--over .nav a,
.site-header.header--over .lang-switch a,
.site-header.header--over .nav-toggle { color: #FFFFFF; }

.site-header.header--over.is-stuck .brand-name,
.site-header.header--over.is-stuck .brand-sub,
.site-header.header--over.is-stuck .nav a,
.site-header.header--over.is-stuck .lang-switch a,
.site-header.header--over.is-stuck .nav-toggle { color: var(--ink); }

.site-header.header--over .nav a:hover,
.site-header.header--over .nav .current-menu-item > a,
.site-header.header--over.is-stuck .nav a:hover,
.site-header.header--over.is-stuck .nav .current-menu-item > a { color: var(--accent); }

.banner {
	position: relative;
	min-height: var(--banner-h);
	display: flex;
	align-items: center;
	background: var(--surface-2);
	background-size: cover;
	background-position: center;
}

.banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .1));
}

.banner .banner-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 120px;
	padding-bottom: 60px;
}

.banner h1 {
	margin: 0 0 14px;
	font-size: 44px;
	line-height: 1.25;
	font-weight: 700;
	color: #FFFFFF;
	max-width: 22ch;
}

.banner .lede {
	margin: 0 0 26px;
	font-size: 18px;
	color: rgba(255, 255, 255, .92);
	max-width: 46ch;
}

.banner .eyebrow { color: rgba(255, 255, 255, .85); }

@media (max-width: 900px) {
	.banner { min-height: 0; }
	.banner h1 { font-size: 28px; }
	.banner .lede { font-size: 15px; }
	.banner .banner-inner { padding-top: 100px; padding-bottom: 40px; }
}

/* --- Marquee --- */

.marquee {
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	padding: 14px 0;
	background: var(--plate);
}

.marquee-track {
	display: flex;
	gap: 48px;
	white-space: nowrap;
	width: max-content;
	animation: ycabin-marquee 34s linear infinite;
}

.marquee-track a,
.marquee-track span {
	color: var(--ink-soft);
	text-decoration: none;
	font-size: 14px;
}

.marquee-track a:hover { color: var(--accent); }

@keyframes ycabin-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.marquee-track { animation: none; }
}

/* --- News --- */

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.news-card {
	background: var(--plate);
	box-shadow: var(--card-shadow);
	display: flex;
	flex-direction: column;
}

.news-card-media {
	aspect-ratio: 16 / 9;
	background: var(--media-bg);
	overflow: hidden;
}

.news-card-media img { width: 100%; height: 100%; object-fit: cover; }

.news-card-body { padding: 16px 18px 22px; }

.news-card-date {
	font-size: 13px;
	color: var(--ink-muted);
	margin: 0 0 6px;
}

.news-card-title {
	margin: 0;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
}

.news-card-title a { color: var(--ink); text-decoration: none; }
.news-card-title a:hover { color: var(--accent); }

@media (max-width: 900px) {
	.news-grid { grid-template-columns: 1fr; }
}

/* --- Footer: 3 columns on a light band --- */

.site-footer {
	background: var(--footer-bg, var(--surface));
	border-top: 0;
}

.site-footer .footer-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--ink-soft);
	margin-bottom: 14px;
}

.footer-bottom {
	margin-top: 40px;
	padding: 12px 0;
	border-top: 1px solid var(--line);
	color: var(--ink-muted);
	font-size: 14px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

/* --- Floating WhatsApp --- */

.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 200;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25D366;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}

.wa-float svg { width: 30px; height: 30px; fill: #FFFFFF; }
.wa-float:hover { filter: brightness(.95); }

/* --- Container padding matches the reference (0 side padding at 1344) --- */

.wrap { padding-left: 20px; padding-right: 20px; }

/* --- Four-column product grid (benchmark uses 4 across) --- */

.grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--gap);
}

@media (max-width: 1100px) {
	.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 520px) {
	.grid-4 { grid-template-columns: 1fr; }
}

/* --- Banner with no photograph yet: keep it readable, drop the overlay --- */

.banner--plain {
	background: var(--surface-2);
	min-height: 0;
}

.banner--plain::after { display: none; }

.banner--plain h1 { color: var(--ink); }

.banner--plain .lede { color: var(--ink-soft); }

.banner--plain .eyebrow { color: var(--ink-muted); }

.banner--plain .banner-inner { padding-top: 150px; padding-bottom: 70px; }

@media (max-width: 900px) {
	.banner--plain .banner-inner { padding-top: 110px; padding-bottom: 44px; }
}

/* --- Header call to action --- */

.header-cta {
	flex: 0 0 auto;
	margin-left: 20px;
}

@media (max-width: 900px) {
	.header-cta { display: none; }
}

/* --- Floating WhatsApp needs the same palette-independent treatment --- */

.palette-dark .card,
.palette-dark .news-card { background: var(--surface); }

.post-content h2 { margin-top: 1.6em; }
.post-content ul, .post-content ol { padding-left: 22px; }
.post-content blockquote { border-left: 3px solid var(--accent); margin: 1.4em 0; padding-left: 18px; color: var(--ink-soft); }

/* ============================================================
   15. Content blocks
   Hero slideshow, product-range tiles, the application row and
   the About photograph. Same measured language as section 14.
   ============================================================ */

/* --- Hero slideshow --- */

.banner::after { z-index: 1; }

.banner-slides {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.banner-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1.1s ease;
}

.banner-slide.is-active { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.banner-slide { transition: none; }
}

/* --- Section intro line --- */

.section-lede {
	margin: 0 0 26px;
	color: var(--ink-soft);
	max-width: 70ch;
}

/* --- About photograph --- */

.about-media { margin: 34px 0 0; }

.about-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
}

/* --- Product range tiles --- */

.range-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.range-tile {
	display: block;
	background: #FFFFFF;
	box-shadow: var(--card-shadow);
	text-decoration: none;
	color: inherit;
	padding: 0 0 20px;
	transition: box-shadow .2s ease, transform .2s ease;
}

.range-tile:hover {
	box-shadow: 0 0 16px rgba(0, 0, 0, .22);
	transform: translateY(-2px);
}

.range-tile-media {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--surface-2);
}

.range-tile-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.range-tile-name {
	display: block;
	margin: 18px 16px 6px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 700;
	color: var(--ink);
	text-align: center;
}

.range-tile-count {
	display: block;
	margin: 0 16px;
	font-size: 13px;
	color: var(--ink-muted);
	text-align: center;
}

/* --- Application row --- */

.app-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.app-card {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
	background: var(--surface-2);
}

.app-card img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

@media (max-width: 1100px) {
	.range-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.app-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
	.range-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 520px) {
	.range-grid { grid-template-columns: 1fr; }
}

/* --- Footer logo ---
   The supplied lockup is wide (about 1.45:1) and drawn for light
   backgrounds, so it is capped to the width of its footer column and never
   scaled up past its natural size. */

.footer-logo {
	margin: 0;
}

.footer-logo img,
.site-footer .custom-logo {
	display: block;
	width: 100%;
	max-width: 250px;
	height: auto;
}

/* --- WordPress admin bar clearance ---
   The header is absolutely positioned against the initial containing block,
   which does not move when the admin bar adds its margin to <html>. Without
   this offset a signed-in administrator never sees the brand name, because
   the fixed admin bar covers the top of the header. */

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* --- Product gallery ---
   The featured image stays the main photograph; the attachments picked in the
   Product gallery box form a thumbnail strip underneath. Without JavaScript the
   thumbnails are still plain links to the full-size image. */

.product-gallery-main img {
	display: block;
	width: 100%;
	height: auto;
}

.product-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.product-gallery-thumbs li {
	margin: 0;
}

.product-gallery-thumbs a {
	display: block;
}

.product-gallery-thumbs img {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: cover;
	background: #FFFFFF;
	border: 1px solid rgba(0, 0, 0, .12);
}

.product-gallery-thumbs a:hover img,
.product-gallery-thumbs a:focus img {
	border-color: var(--accent);
}

@media (max-width: 520px) {
	.product-gallery-thumbs img {
		width: 60px;
		height: 60px;
	}
}
