/*
Theme Name: Supreme Woods
Theme URI: https://supremewoods.com
Author: Supreme Woods
Description: A premium, quote-led furniture catalogue theme for Supreme Woods — handcrafted teak furniture, Bengaluru. Includes a furniture catalogue, collections, enquiry form and one-click demo content (Appearance → Supreme Woods Setup).
Version: 1.2.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: supremewoods
*/

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */
:root {
	--ivory: #f5efe6;
	--paper: #fbf8f3;
	--stone: #ece3d6;
	--ink: #1e1611;
	--walnut: #2a1d15;
	--walnut-deep: #1c130d;
	--teak: #965323;          /* brand brown (logo) */
	--teak-dark: #7a421b;
	--teak-light: #c99a6b;
	--moss: #3f7314;          /* brand green (logo) — accent only */
	--muted: #74655a;
	--line: #ddd1c1;
	--line-dark: rgba(239, 227, 208, .14);
	--oak: #e3cfae;

	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--gutter: clamp(16px, 4vw, 48px);
	--grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.005 0.14' numOctaves='4' seed='3'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.06  0 0 0 0 0.03  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font: 400 16px/1.7 var(--sans);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
p { margin: 0 0 1em; color: var(--muted); }
address { font-style: normal; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.5rem; font-weight: 500; }
::selection { background: var(--teak); color: var(--paper); }

.container { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - var(--gutter) * 2); text-align: center; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.tone { background: var(--stone); }
.center { justify-content: center; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--walnut); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--teak); outline-offset: 3px; }

.eyebrow {
	display: inline-block;
	margin-bottom: 22px;
	font: 500 11px/1 var(--sans);
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--teak);
}
.eyebrow.light { color: var(--oak); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 30px;
	border: 1px solid transparent; border-radius: 0;
	font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
	cursor: pointer; white-space: nowrap;
	transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 11px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--walnut); color: var(--paper); }
.btn-dark:hover { background: var(--teak); }
.btn-light { background: var(--paper); color: var(--walnut); }
.btn-light:hover { background: var(--oak); }
.btn-ghost { border-color: rgba(251, 248, 243, .55); color: var(--paper); background: transparent; }
.btn-ghost:hover { background: var(--paper); color: var(--walnut); border-color: var(--paper); }
.btn-outline { border-color: var(--walnut); color: var(--walnut); background: transparent; }
.btn-outline:hover { background: var(--walnut); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 12px;
	padding-bottom: 6px; border-bottom: 1px solid currentColor;
	font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--teak); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow.light { color: var(--oak); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: 20ch; }

/* Unified warm treatment for mixed photography */
.collection-media img, .split-media img {
	filter: saturate(.86) sepia(.07) contrast(1.02);
	transition: transform 1.2s var(--ease), filter .6s var(--ease);
}

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(245, 239, 230, .94);
	backdrop-filter: saturate(1.2) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(30, 22, 17, .35); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 96px; transition: height .3s var(--ease); }
.is-scrolled .header-inner { height: 78px; }
.header-brand img, .header-brand .custom-logo { height: 64px; width: auto; transition: height .3s var(--ease); }
.is-scrolled .header-brand img { height: 52px; }
.nav-primary .menu { display: flex; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-primary a, .header-phone {
	position: relative;
	font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
	padding: 8px 0;
}
.nav-primary a::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--teak);
	transition: right .4s var(--ease);
}
.nav-primary a:hover::after, .nav-primary .current-menu-item > a::after, .nav-primary .current_page_item > a::after { right: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.header-phone { letter-spacing: .12em; }
.header-phone:hover { color: var(--teak); }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-toggle svg { width: 30px; height: 30px; }

.mobile-nav { position: fixed; inset: 0; z-index: 90; background: var(--ivory); overflow-y: auto; }
.mobile-nav-inner { padding: 28px var(--gutter) 40px; min-height: 100%; display: flex; flex-direction: column; }
.mobile-close { align-self: flex-end; background: none; border: 0; padding: 6px; cursor: pointer; }
.mobile-close svg { width: 30px; height: 30px; }
.mobile-nav .menu { list-style: none; margin: 32px 0; padding: 0; }
.mobile-nav .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 2.3rem/1.1 var(--serif); }
.mobile-nav-foot { margin-top: auto; display: grid; gap: 12px; }
.mobile-nav-foot p { margin-top: 8px; font-size: 14px; }

/* ------------------------------------------------------------------ *
 * Hero
 * ------------------------------------------------------------------ */
.hero {
	position: relative; overflow: hidden;
	display: flex; align-items: flex-end;
	min-height: clamp(600px, calc(100vh - 96px), 920px);
	background: var(--walnut);
	color: var(--paper);
}
.hero-media {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	filter: saturate(.85) sepia(.08);
	animation: sw-drift 18s var(--ease) forwards;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(0deg, rgba(20, 13, 9, .82) 0%, rgba(20, 13, 9, .25) 55%, rgba(20, 13, 9, .1) 100%),
		linear-gradient(90deg, rgba(20, 13, 9, .55) 0%, rgba(20, 13, 9, 0) 60%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(64px, 9vw, 120px); }
.hero h1 { color: var(--paper); max-width: 22ch; }
.hero p { color: rgba(251, 248, 243, .9); max-width: 48ch; margin: 26px 0 0; font-size: 1.12rem; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 64px; background: rgba(251, 248, 243, .25); overflow: hidden; }
.hero-scroll::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: sw-scroll 2.4s var(--ease) infinite; }
@keyframes sw-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes sw-scroll { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

.values-strip { background: var(--walnut); color: var(--oak); border-top: 1px solid var(--line-dark); }
.values-inner { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; }
.values-inner span { font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 24px; }
.values-inner span + span::before { content: ""; width: 5px; height: 5px; background: var(--teak-light); transform: rotate(45deg); margin-right: 24px; }

/* ------------------------------------------------------------------ *
 * Intro statement
 * ------------------------------------------------------------------ */
.statement {
	margin: 0 auto 40px;
	font: 400 clamp(1.7rem, 3.2vw, 2.7rem)/1.3 var(--serif);
	color: var(--ink);
	letter-spacing: -.005em;
}

/* ------------------------------------------------------------------ *
 * Collections — editorial grid
 * ------------------------------------------------------------------ */
.collections { padding-top: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 28px; }
.collection-tile { display: flex; flex-direction: column; grid-column: span 4; }
.collection-tile.tile-1 { grid-column: 1 / 8; grid-row: 1 / 3; }
.collection-tile.tile-2, .collection-tile.tile-3 { grid-column: 8 / 13; }
.collection-media { position: relative; display: block; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 5; }
.tile-1 .collection-media { flex: 1; aspect-ratio: auto; min-height: 420px; }
.tile-2 .collection-media, .tile-3 .collection-media { aspect-ratio: 16 / 10; }
.collection-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-tile:hover .collection-media img { transform: scale(1.05); filter: saturate(1) sepia(0); }
.collection-grid.count-1 .collection-tile, .collection-grid.count-2 .collection-tile { grid-column: span 6; grid-row: auto; }
.collection-grid.count-1 .collection-tile { grid-column: 1 / -1; }
.collection-grid.count-1 .collection-media, .collection-grid.count-2 .collection-media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
.collection-grid.count-1 .collection-name, .collection-grid.count-2 .collection-name { font-size: 2.4rem; }
.collection-label { display: flex; align-items: baseline; gap: 16px; padding-top: 18px; }
.collection-index { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--teak); }
.collection-name { font: 400 1.9rem/1 var(--serif); flex: 1; }
.tile-1 .collection-name { font-size: 2.4rem; }
.collection-label svg { width: 22px; height: 22px; align-self: center; transition: transform .35s var(--ease); }
.collection-tile:hover .collection-label svg { transform: translateX(6px); color: var(--teak); }

/* ------------------------------------------------------------------ *
 * Product tiles
 * ------------------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px 28px; }
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 64px 32px; }
.product-media { position: relative; display: block; overflow: hidden; background: #fff; aspect-ratio: 1; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s var(--ease); }
.product-media .img-hover { opacity: 0; }
.product-card.has-hover:hover .img-hover { opacity: 1; }
.product-card:hover .product-media img { transform: scale(1.04); }
.badge {
	position: absolute; top: 16px; left: 16px;
	background: var(--paper); color: var(--ink);
	padding: 7px 10px; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.product-cta {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 16px; text-align: center;
	background: rgba(251, 248, 243, .94); color: var(--ink);
	font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
	transform: translateY(101%); transition: transform .5s var(--ease);
}
.product-card:hover .product-cta, .product-media:focus-visible .product-cta { transform: none; }
.product-meta { padding-top: 20px; display: grid; gap: 6px; }
.product-col { font: 500 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.product-meta h3 { font-size: 1.6rem; font-weight: 500; }
.product-meta h3 a:hover { color: var(--teak); }
.product-wood { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * Split / craft
 * ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split-media { overflow: hidden; background: var(--stone); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-body h2 { margin-bottom: 28px; }
.split-body > p { max-width: 54ch; }
.steps { list-style: none; counter-reset: step; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 6px; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--teak); }
.steps strong { font: 500 1.4rem/1.1 var(--serif); }
.steps span { font-size: 15px; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * Dark sections & finishes
 * ------------------------------------------------------------------ */
.dark { position: relative; background: var(--walnut); color: var(--oak); overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .4; pointer-events: none; }
.dark > * { position: relative; }
.dark h2, .dark h3 { color: var(--paper); }
.dark p { color: rgba(227, 207, 174, .78); }
.dark .eyebrow { color: var(--teak-light); }

.finish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.finish h3 { margin: 24px 0 8px; font-size: 1.6rem; }
.finish p { font-size: 15px; max-width: 30ch; }
.swatch {
	display: block; position: relative; overflow: hidden;
	background-blend-mode: multiply, normal;
}
.swatch::after { content: ""; position: absolute; inset: 0; background: var(--grain); mix-blend-mode: multiply; opacity: .9; }
.finish .swatch { aspect-ratio: 1; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.swatch-natural { background: linear-gradient(160deg, #d3a46c, #b9824c 55%, #c99359); }
.swatch-honey { background: linear-gradient(160deg, #b8773a, #9a5d26 55%, #ad6b30); }
.swatch-walnut { background: linear-gradient(160deg, #7a4a28, #5c341a 55%, #6d4022); }
.swatch-espresso { background: linear-gradient(160deg, #4a3020, #2e1d12 55%, #3c271a); }

/* ------------------------------------------------------------------ *
 * Visit
 * ------------------------------------------------------------------ */
.visit { position: relative; padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.visit-media { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.85) sepia(.08); }
.visit-card {
	position: relative; z-index: 1;
	width: min(520px, 100% - var(--gutter) * 2);
	margin-left: max(var(--gutter), calc((100vw - 1320px) / 2));
	padding: clamp(36px, 5vw, 64px);
	background: var(--ivory);
}
.visit-card h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 24px; }
.visit-card address { font: 400 1.35rem/1.45 var(--serif); color: var(--ink); }
.visit-card .hours { margin: 16px 0 0; font-size: 15px; }
.visit.compact { padding: 0; height: clamp(320px, 50vh, 560px); }

/* ------------------------------------------------------------------ *
 * Inner pages
 * ------------------------------------------------------------------ */
.page-header { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 18ch; }
.page-header p { max-width: 58ch; margin: 24px 0 0; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--teak); }
.crumbs span { opacity: .5; }

.catalogue { padding-top: 48px; }
.catalogue-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.filter-bar { display: flex; gap: 36px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
	flex: none; padding: 0 0 18px; margin-bottom: -1px;
	border-bottom: 1px solid transparent;
	font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.filter-bar a:hover { color: var(--ink); }
.filter-bar a.is-active { color: var(--ink); border-color: var(--ink); }
.filter-bar sup { font-size: 9px; letter-spacing: 0; margin-left: 2px; color: var(--teak); }
.empty { text-align: center; padding: 60px 0; }

.bespoke-band { background: var(--stone); }
.bespoke-band h2 { margin-bottom: 20px; }

.prose p { font-size: 1.02rem; line-height: 1.85; }
.split-body .prose { max-width: 56ch; }
.post-row { padding: 32px 0; border-bottom: 1px solid var(--line); text-align: left; }

/* Lifestyle view switch (collection pages) */
.view-switch {
	flex: none; display: inline-flex; align-items: center; gap: 12px;
	margin-bottom: 12px; padding: 4px 0; background: none; border: 0; cursor: pointer;
	font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
	transition: color .3s var(--ease);
}
.view-switch:hover, .view-switch[aria-checked="true"] { color: var(--ink); }
.view-switch-track { position: relative; width: 38px; height: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); transition: background .35s var(--ease), border-color .35s var(--ease); }
.view-switch-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .35s var(--ease), background .35s var(--ease); }
.view-switch[aria-checked="true"] .view-switch-track { background: var(--walnut); border-color: var(--walnut); }
.view-switch[aria-checked="true"] .view-switch-knob { transform: translateX(18px); background: var(--paper); }

/* Lifestyle on: show the room photo, reveal the studio shot on hover */
.is-lifestyle .product-card.has-hover .img-hover { opacity: 1; }
.is-lifestyle .product-card.has-hover:hover .img-hover { opacity: 0; }

/* Product detail */
.product-detail { padding-top: 48px; }
.pd { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.pd-gallery { position: sticky; top: 110px; }
.pd-media { position: relative; overflow: hidden; background: #fff; aspect-ratio: 1; }
.pd-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.pd-slide.is-active { opacity: 1; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 10px; }
.pd-thumb { padding: 0; border: 1px solid transparent; background: #fff; cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .6; transition: opacity .3s var(--ease), border-color .3s var(--ease); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { opacity: 1; }
.pd-thumb.is-active { opacity: 1; border-color: var(--ink); }
.pd-info h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); margin-bottom: 24px; }
.pd-lead p { font-size: 1.05rem; line-height: 1.8; }
.specs { margin: 36px 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 500 11px/1.9 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-size: 15px; }
.pd-finishes .label, .info-block .label { display: block; margin-bottom: 14px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teak); }
.swatches { display: flex; gap: 12px; }
.swatches .swatch { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px var(--ivory) inset; }
.accordion { margin-top: 48px; border-bottom: 1px solid var(--line); }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font: 500 1.3rem/1.2 var(--serif); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion details p { padding-bottom: 20px; font-size: 15px; }

/* About */
.split.reverse .split-media { order: 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.numbers-grid div { padding: 8px 32px; border-left: 1px solid var(--line); }
.numbers-grid div:first-child { border-left: 0; padding-left: 0; }
.numbers-grid strong { display: block; font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); color: var(--teak); margin-bottom: 14px; }
.numbers-grid span { font: 500 11px/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service { border-top: 1px solid var(--line-dark); padding-top: 28px; }
.service-num { display: block; font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--teak-light); margin-bottom: 28px; }
.service h3 { font-size: 1.9rem; margin-bottom: 14px; }

/* Showroom */
.showroom-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.info-block { padding: 28px 0; border-top: 1px solid var(--line); }
.info-block:first-child { border-top: 0; padding-top: 0; }
.info-block address { font: 400 1.6rem/1.35 var(--serif); color: var(--ink); margin-bottom: 18px; }
.info-block p { font-size: 1.05rem; color: var(--ink); margin: 0 0 4px; }
.info-block a:hover { color: var(--teak); }
.map { min-height: 520px; background: var(--stone); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 520px; border: 0; filter: grayscale(.9) sepia(.25) contrast(.95); }

.error-404 { text-align: center; }
.error-404 h1 { margin-bottom: 20px; }

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
.site-footer { background: var(--walnut-deep); color: rgba(227, 207, 174, .75); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .35; pointer-events: none; }
.site-footer > * { position: relative; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; padding: clamp(72px, 9vw, 110px) 0 72px; }
.footer-brand img { height: 78px; width: auto; margin-bottom: 28px; }
.footer-brand p { max-width: 34ch; color: inherit; font-size: 15px; }
.site-footer h4 { margin-bottom: 24px; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--paper); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.site-footer p, .site-footer address { color: inherit; font-size: 15px; margin-bottom: 12px; }
.site-footer a:hover { color: var(--paper); }
.site-footer .btn { margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom .menu { display: flex; gap: 24px; grid-auto-flow: column; font-size: 13px; }

.wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 50;
	width: 54px; height: 54px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--walnut); color: var(--paper);
	box-shadow: 0 12px 30px -10px rgba(30, 22, 17, .6);
	transition: background .3s var(--ease), transform .3s var(--ease);
}
.wa-float:hover { background: #1f9e55; transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ *
 * Modal, form, toast
 * ------------------------------------------------------------------ */
.modal {
	position: fixed; inset: 0; z-index: 100;
	display: grid; place-items: center; padding: 16px;
	background: rgba(20, 13, 9, .55); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity .35s var(--ease);
}
.modal.is-open { opacity: 1; }
.modal-panel {
	position: relative; width: min(600px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
	background: var(--ivory); padding: clamp(32px, 5vw, 56px);
	transform: translateY(16px); transition: transform .45s var(--ease);
}
.modal.is-open .modal-panel { transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: 0; cursor: pointer; padding: 6px; }
.modal-close svg { width: 24px; height: 24px; }
.modal-panel h2 { font-size: clamp(2rem, 4vw, 2.6rem); }
.modal-intro { margin: 14px 0 28px; }
body.has-modal { overflow: hidden; }

.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label { display: grid; gap: 6px; }
.form label > span { font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
	width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
	background: transparent; color: var(--ink); font: 400 16px/1.4 var(--sans);
	transition: border-color .3s var(--ease);
	-webkit-appearance: none; appearance: none;
}
.form select { background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2374655a'/></svg>") right center no-repeat; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teak); }
.form .btn { margin-top: 8px; }
.form-alt { text-align: center; font-size: 14px; margin: 0; }
.form-alt a { color: var(--teak); border-bottom: 1px solid currentColor; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%);
	display: flex; align-items: center; gap: 16px;
	width: max-content; max-width: calc(100% - 32px);
	padding: 16px 20px; background: var(--walnut); color: var(--paper); font-size: 15px;
	border-left: 3px solid var(--moss);
	animation: sw-rise .5s var(--ease);
}
.toast.is-error { border-color: #b3261e; }
.toast button { background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; line-height: 1; }
@keyframes sw-rise { from { opacity: 0; transform: translate(-50%, 12px); } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* WordPress core */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wp-caption-text { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */
@media (max-width: 1180px) {
	.product-grid { grid-template-columns: repeat(3, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.nav-primary .menu { gap: 24px; }
	.header-phone { display: none; }
}
@media (max-width: 960px) {
	.header-inner { grid-template-columns: auto 1fr; height: 80px; }
	.is-scrolled .header-inner { height: 70px; }
	.nav-primary { display: none; }
	.header-brand img, .header-brand .custom-logo { height: 52px; }
	.is-scrolled .header-brand img { height: 46px; }
	.header-actions { gap: 12px; }
	.menu-toggle { display: block; }
	.values-inner { flex-wrap: wrap; justify-content: center; gap: 14px 0; }
	.values-inner span { width: 50%; justify-content: center; font-size: 10px; letter-spacing: .18em; text-align: center; }
	.values-inner span + span::before { display: none; }
	.split, .pd, .showroom-grid { grid-template-columns: 1fr; }
	.split.reverse .split-media { order: 0; }
	.pd-gallery { position: static; }
	.collection-tile.tile-1 { grid-column: 1 / -1; grid-row: auto; }
	.tile-1 .collection-media { aspect-ratio: 4 / 3; min-height: 0; }
	.collection-tile.tile-2, .collection-tile.tile-3 { grid-column: span 6; }
	.tile-2 .collection-media, .tile-3 .collection-media { aspect-ratio: 4 / 5; }
	.finish-grid { grid-template-columns: repeat(2, 1fr); }
	.numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
	.numbers-grid div:nth-child(3) { border-left: 0; padding-left: 0; }
	.service-grid { grid-template-columns: 1fr; }
	.product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
	.map, .map iframe { min-height: 400px; }
	.visit-card { margin: 0 auto; }
}
@media (max-width: 640px) {
	.header-actions .btn { display: none; }
	.catalogue-bar { gap: 16px; }
	.view-switch { gap: 8px; letter-spacing: .14em; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.collection-grid { gap: 36px 16px; }
	.collection-tile, .collection-tile.tile-2, .collection-tile.tile-3 { grid-column: span 6; }
	.collection-tile.tile-6 { grid-column: 1 / -1; }
	.collection-grid.count-2 .collection-tile { grid-column: 1 / -1; }
	.tile-6 .collection-media { aspect-ratio: 4 / 3; }
	.collection-name { font-size: 1.5rem; }
	.tile-1 .collection-name { font-size: 1.9rem; }
	.collection-label svg { display: none; }
	.product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 40px 14px; }
	.product-meta h3 { font-size: 1.3rem; }
	.badge { top: 10px; left: 10px; }
	.steps { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 40px; }
	.actions .btn { flex: 1 1 auto; }
	.wa-float { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
