/*
Theme Name: Astral Tiling
Theme URI: https://www.astraltiling.com.au
Author: Astral Tiling
Description: Custom theme for Astral Tiling — tile & supplies catalogue, project gallery, quote requests and social links.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: astral
*/

/* ---------- Design tokens ---------- */
:root {
	--ink: #1c1a18;
	--ink-soft: #4a4540;
	--muted: #7a726a;
	--line: #e3ddd4;
	--paper: #ffffff;
	--stone: #f5f1eb;
	--sand: #ebe3d7;
	--brass: #a8834f;
	--brass-dark: #8a6a3d;
	--night: #1f2126;

	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 4px;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-dark); }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

.icon { flex: none; vertical-align: -4px; }

.kicker {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brass-dark);
	margin-bottom: 0.9em;
}
.kicker a { text-decoration: none; }

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: 500 0.82rem/1 var(--sans);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone); color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
	text-decoration: none; color: var(--ink);
}
.link-arrow:hover { color: var(--brass-dark); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--night); color: #d9d4cc; font-size: 0.82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-links { display: flex; gap: 22px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; vertical-align: 0; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 26, 24, 0.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { max-height: 54px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--brass); color: var(--brass); transform: rotate(45deg); }
.brand-mark .icon { transform: rotate(-45deg); width: 18px; height: 18px; vertical-align: 0; }
.brand-name { font: 600 1.55rem/1 var(--serif); letter-spacing: 0.02em; white-space: nowrap; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a {
	font-size: 0.84rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
	text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent;
}
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a { border-bottom-color: var(--brass); color: var(--ink); }
.primary-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform 0.2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1320px) and (min-width: 1201px) {
	.primary-nav, .primary-nav .menu { gap: 18px; }
}
@media (max-width: 1200px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; top: var(--nav-top, 116px); right: 0; bottom: 0; left: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; padding: 12px var(--gutter) 32px;
		overflow-y: auto;
		transform: translateX(100%); visibility: hidden;
		transition: transform 0.25s, visibility 0.25s;
	}
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
	.header-cta { margin-top: 24px; justify-content: center; }
	.topbar-inner > span:first-child { display: none; }
	.topbar-inner { justify-content: center; }
}
@media (max-width: 520px) {
	.topbar-links { gap: 14px; font-size: 0.78rem; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	background-color: var(--night);
	background-image:
		linear-gradient(100deg, rgba(20, 20, 22, 0.86) 0%, rgba(20, 20, 22, 0.55) 55%, rgba(20, 20, 22, 0.25) 100%),
		var(--hero, linear-gradient(135deg, #3a3631 0%, #24262b 100%));
	background-size: cover;
	background-position: center;
	min-height: clamp(460px, 72vh, 720px);
	display: flex; align-items: center;
	overflow: hidden;
}
.hero:not(.has-image)::after {
	/* subtle tile grid when no photo is set */
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 120px 120px;
	mask-image: linear-gradient(90deg, transparent 20%, #000 90%);
	-webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 90%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { max-width: 14ch; font-size: clamp(2.8rem, 6.5vw, 5.2rem); }
.hero .kicker { color: #d8b98a; }
.hero .lead { color: rgba(255, 255, 255, 0.85); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tint { background: var(--stone); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar {
	display: block; padding: 36px 32px 36px 0; text-decoration: none;
	border-right: 1px solid var(--line);
}
.pillar + .pillar { padding-left: 32px; }
.pillar:last-child { border-right: 0; }
.pillar-num { font: 600 0.8rem var(--sans); letter-spacing: 0.16em; color: var(--brass); }
.pillar h2 { font-size: 1.9rem; margin: 14px 0 10px; }
.pillar p { color: var(--ink-soft); }
.pillar .more { display: inline-flex; gap: 8px; align-items: center; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.pillar:hover .more { color: var(--brass-dark); }
@media (max-width: 820px) {
	.pillars { grid-template-columns: 1fr; }
	.pillar, .pillar + .pillar { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Builders band, spec band ---------- */
.builders-band { border-bottom: 1px solid var(--line); padding: 36px 0 30px; }
.builders-band .builders { margin-top: 0; }
.pillar h3 { font-size: 1.9rem; margin: 14px 0 10px; }
.section-dark { background: var(--night); color: #e9e4dc; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: #d8b98a; }
.section-dark .lead { color: rgba(255, 255, 255, 0.82); }
.spec-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.spec-band .btn { margin-top: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ticks li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.ticks li::before {
	content: ""; position: absolute; left: 4px; top: 22px; width: 14px; height: 8px;
	border-left: 2px solid #d8b98a; border-bottom: 2px solid #d8b98a; transform: rotate(-45deg);
}
@media (max-width: 820px) { .spec-band { grid-template-columns: 1fr; } }

/* ---------- About teaser & builders ---------- */
.section-about { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-grid.has-photo { grid-template-columns: 1fr 1.1fr; }
.about-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.stats { margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); }
.stats div { padding: 20px 0 0; }
.stats dd { font-size: 1.6rem; }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } .stats div { padding-top: 14px; } }

.pillar-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); margin-bottom: 22px; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pillar:hover .pillar-media img { transform: scale(1.04); }
.stats dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 4px 0 0; font: 600 2rem/1.1 var(--serif); }
.builders { margin-top: clamp(48px, 7vw, 80px); text-align: center; }
.builders ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.builders li { font: 600 1.35rem/1.2 var(--serif); color: var(--ink-soft); }
@media (max-width: 820px) { .about-grid, .about-grid.has-photo { grid-template-columns: 1fr; } .about-photo { aspect-ratio: 4 / 3; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 480px) { .grid-3 { grid-template-columns: 1fr; } .grid-4 { gap: 14px; } }

.card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.card-project .card-media { aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding-top: 14px; }
.card-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.card-title { font-size: 1.35rem; margin: 0; }
.card-title a { text-decoration: none; }
.card-price, .card-meta { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.card-meta .icon { width: 15px; height: 15px; color: var(--brass); }

.placeholder {
	width: 100%; height: 100%; min-height: 100%;
	background-color: var(--sand);
	background-image:
		linear-gradient(var(--paper) 2px, transparent 2px),
		linear-gradient(90deg, var(--paper) 2px, transparent 2px);
	background-size: 33.333% 33.333%;
	background-position: -1px -1px;
}

/* ---------- Page hero ---------- */
.page-hero { background: var(--stone); padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero.has-image {
	color: #fff;
	background-color: var(--night);
	background-image: linear-gradient(100deg, rgba(20, 20, 22, 0.82) 0%, rgba(20, 20, 22, 0.5) 60%, rgba(20, 20, 22, 0.3) 100%), var(--hero);
	background-size: cover;
	background-position: center;
	padding-top: clamp(80px, 12vw, 150px);
	padding-bottom: clamp(56px, 8vw, 96px);
}
.page-hero.has-image .kicker { color: #d8b98a; }
.page-hero.has-image .lead { color: rgba(255, 255, 255, 0.88); }

/* ---------- Catalogue filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 40px; align-items: center; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
	display: inline-block; padding: 8px 16px;
	border: 1px solid var(--line); border-radius: 999px;
	font-size: 0.86rem; text-decoration: none; color: var(--ink-soft);
	transition: border-color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-parent { font-weight: 600; color: var(--ink); }

/* ---------- Product page ---------- */
.breadcrumbs { display: flex; gap: 10px; font-size: 0.85rem; color: var(--muted); padding: 28px 0; }
.breadcrumbs a { text-decoration: none; }
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: 56px; }
.product-media { aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-price { font-size: 1.15rem; color: var(--brass-dark); font-weight: 500; }
.stock { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 0.95rem; font-weight: 500; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.stock-in { color: #2e7d32; }
.stock-low { color: #a35f00; }
.stock-out { color: #b3261e; }
.stock-small { font-size: 0.82rem; margin-top: 6px; }
.spec-block h2 { font: 600 0.78rem var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.size-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.size-list li { border: 1px solid var(--line); padding: 6px 12px; font-size: 0.9rem; }
.spec-list, .project-details { margin: 28px 0 0; border-top: 1px solid var(--line); }
.spec-list div, .project-details div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list dt, .project-details dt { color: var(--muted); font-size: 0.9rem; }
.spec-list dd, .project-details dd { margin: 0; }
.spec-link { margin-top: 22px; }
.buy-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.buy-option {
	display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
	border: 1px solid var(--ink); border-radius: var(--radius); text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.buy-option:first-child { background: var(--brass); border-color: var(--brass); color: #fff; }
.buy-option strong { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.buy-option span { font-size: 0.9rem; opacity: 0.85; }
.buy-option:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.sample-link { margin-top: 18px; margin-right: 24px; }
.spec-note { margin-top: 22px; padding: 14px 16px; background: var(--stone); font-size: 0.92rem; color: var(--ink-soft); border-left: 3px solid var(--brass); }
@media (max-width: 480px) { .buy-options { grid-template-columns: 1fr; } }
.product-content { margin-bottom: 56px; }
.related { padding: 48px 0 var(--section); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

.project-details { max-width: 640px; }
.project-cover { margin: 0 0 40px; }

/* ---------- Prose (page content) ---------- */
.prose { max-width: 760px; margin-bottom: var(--section); }
.prose h2 { margin-top: 1.6em; }
.prose img { margin: 1.5em 0; }
.prose .wp-block-gallery { max-width: none; }
.prose ul, .prose ol { padding-left: 1.3em; }
.alignwide { max-width: calc(var(--container) - 2 * var(--gutter)); }
.prose .wp-block-image { margin: 2.2em 0; }
.prose .wp-block-image img { width: 100%; height: auto; margin: 0; aspect-ratio: 16 / 10; object-fit: cover; }
.prose .wp-element-caption { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }
.prose .wp-block-buttons { margin: 2em 0 0; }
.prose .wp-block-button__link {
	display: inline-flex; padding: 14px 26px; border-radius: var(--radius);
	background: var(--brass); color: #fff;
	font: 500 0.82rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.prose .wp-block-button__link:hover { background: var(--brass-dark); color: #fff; }
.prose li { margin-bottom: 0.35em; }

/* ---------- Quote form ---------- */
.quote-wrap { scroll-margin-top: 140px; }
.quote-form { background: var(--stone); padding: clamp(22px, 4vw, 40px); margin: 1.5em 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.form-grid .full { grid-column: 1 / -1; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; font-weight: 500; }
.quote-form input,
.quote-form select,
.quote-form textarea {
	font: inherit; font-weight: 400; font-size: 1rem;
	padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
	background: #fff; color: var(--ink); width: 100%;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168, 131, 79, 0.18); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.notice { padding: 14px 18px; margin: 1em 0; border-left: 3px solid; }
.notice-success { background: #eef6ee; border-color: #3c8a4a; }
.notice-error { background: #fbeeee; border-color: #b23b3b; }

/* ---------- Social ---------- */
.social { display: flex; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.social a {
	display: grid; place-items: center; width: 40px; height: 40px;
	border: 1px solid currentColor; border-radius: 50%;
	text-decoration: none; opacity: 0.85; transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.social a:hover { opacity: 1; }
.social .icon { vertical-align: 0; }
.section-social { background: var(--stone); }
.social-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.social-inner h2 { margin: 0; }
.social-large a { width: 54px; height: 54px; color: var(--ink); }
.social-large a:hover { background: var(--ink); color: #fff; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--brass); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.9; }

.site-footer { background: var(--night); color: #cbc5bc; padding: clamp(48px, 7vw, 80px) 0 0; font-size: 0.95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-col h3 { font: 600 0.78rem var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer:hover { color: #fff; }
.footer-about p { max-width: 38ch; }
.contact-list, .footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 12px; }
.contact-list .icon { color: var(--brass); margin-top: 3px; }
.footer-menu li, .site-footer .menu li { margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; padding-bottom: 22px; font-size: 0.84rem; color: #9a948b; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.empty { padding: 48px 0 var(--section); text-align: center; color: var(--ink-soft); }
.pagination { padding: 40px 0 var(--section); }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalogue-grid { margin-bottom: 0; }
.post-list { display: grid; gap: 36px; margin-bottom: var(--section); max-width: 900px; }
.post-item { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.post-item h2 { font-size: 1.7rem; }
.post-item h2 a { text-decoration: none; }
@media (max-width: 600px) { .post-item { grid-template-columns: 1fr; } }

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

/* =====================================================================
   HIGH-END LAYER: refined typography, motion and interactive sections.
   Everything below overrides the base styles above.
   ===================================================================== */
:root {
	--night: #141518;
	--brass: #b08a55;
	--brass-dark: #8f6c3d;
	--section: clamp(80px, 10vw, 148px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body { font-size: 17.5px; letter-spacing: 0.005em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.05; }
.lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); line-height: 1.7; }
::selection { background: var(--brass); color: #fff; }

.kicker-line { display: inline-flex; align-items: center; gap: 14px; }
.kicker-line::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.8; }

/* Buttons: arrow slides, gentle lift */
.btn { padding: 17px 30px; transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.btn .icon, .link-arrow .icon, .service-more .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon, .link-arrow:hover .icon, .service-card:hover .service-more .icon { transform: translateX(5px); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(176, 138, 85, 0.7); }
.link-arrow { position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0.3); transform-origin: left; transition: transform 0.4s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }

/* Header: slimmer on scroll, animated underlines */
.header-inner { transition: min-height 0.35s var(--ease); min-height: 86px; }
.site-header.is-scrolled .header-inner { min-height: 66px; }
.brand-logo { transition: max-height 0.35s var(--ease); }
.site-header.is-scrolled .brand-logo { max-height: 42px; }
.primary-nav .menu a { position: relative; border-bottom: 0; }
.primary-nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
.primary-nav .menu a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

/* Home hero: full height, slow zoom, stats panel */
.hero-home { min-height: calc(100vh - 124px); min-height: calc(100svh - 124px); background-image: none; flex-direction: column; justify-content: flex-end; align-items: stretch; }
.hero-home::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(14, 14, 16, 0.92) 0%, rgba(14, 14, 16, 0.62) 50%, rgba(14, 14, 16, 0.35) 100%), linear-gradient(0deg, rgba(14, 14, 16, 0.85) 0%, transparent 45%); }
.hero-home::after { z-index: 1; }
.hero-bg { position: absolute; inset: -3%; background-size: cover; background-position: center; animation: kenburns 26s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-home .hero-inner { z-index: 2; padding-top: clamp(80px, 14vh, 160px); padding-bottom: 48px; }
.hero-title { font-size: clamp(3rem, 7.2vw, 6.4rem); line-height: 0.98; max-width: 13ch; margin-bottom: 0.35em; }
.hero-home .lead { max-width: 54ch; }
.hero-home .container { position: relative; z-index: 2; }
.hero-stats { margin: 0 0 56px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.hero-stats div { padding: 24px 24px 0 0; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.hero-stats dt { order: 2; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); margin-top: 6px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dd { order: 1; margin: 0; font: 500 clamp(2rem, 3.6vw, 3.2rem)/1 var(--serif); color: #fff; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 820px) {
	.hero-stats { grid-template-columns: 1fr 1fr; }
	.hero-stats div, .hero-stats div + div { padding: 18px 0 0; border-left: 0; }
	.hero-stats div:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
	.scroll-cue { display: none; }
}

/* Builders marquee */
.marquee { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--paper); }
.marquee-label { flex: none; margin: 0 0 0 var(--gutter); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-dark); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 72px; padding: 0 36px; margin: 0; list-style: none; }
.marquee li { white-space: nowrap; font: 500 1.55rem/1 var(--serif); color: var(--ink-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Intro statement */
.intro-statement { max-width: 880px; margin-bottom: clamp(48px, 6vw, 80px); }
.intro-statement h2 { font-size: clamp(2.4rem, 4.8vw, 4rem); }

/* Service cards: immersive image cards */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; display: block; min-height: 560px; overflow: hidden; color: #fff; text-decoration: none; background: var(--night); isolation: isolate; }
.service-card:hover { color: #fff; }
.service-media { position: absolute; inset: 0; z-index: -1; }
.service-media img, .service-media .placeholder { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.1s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.09); }
.service-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 14, 16, 0.1) 20%, rgba(14, 14, 16, 0.88) 78%); transition: background 0.6s var(--ease); }
.service-card:hover::before { background: linear-gradient(180deg, rgba(14, 14, 16, 0.3) 0%, rgba(14, 14, 16, 0.94) 70%); }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; padding: 34px 32px; }
.service-num { font-size: 0.78rem; letter-spacing: 0.18em; color: #d8b98a; }
.service-title { font: 500 2.1rem/1.05 var(--serif); }
.service-text { color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s var(--ease); }
.service-card:hover .service-text, .service-card:focus-visible .service-text { max-height: 140px; opacity: 1; }
.service-more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d8b98a; }
@media (hover: none) { .service-text { max-height: none; opacity: 1; } }
@media (max-width: 960px) { .service-cards { grid-template-columns: 1fr; } .service-card { min-height: 440px; } .service-text { max-height: none; opacity: 1; } }

/* Dark spec band */
.section-dark { position: relative; overflow: hidden; }
.section-dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 96px 96px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.spec-band { position: relative; z-index: 1; }
.ticks li { transition: padding-left 0.4s var(--ease), color 0.4s var(--ease); }
.ticks li:hover { padding-left: 42px; color: #fff; }

/* Project showcase */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: 18px; }
.showcase-item { position: relative; overflow: hidden; display: block; color: #fff; text-decoration: none; background: var(--night); }
.showcase-item:first-child { grid-column: span 2; grid-row: span 2; }
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.showcase-item:hover img { transform: scale(1.07); }
.showcase-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(14, 14, 16, 0.86)); transition: opacity 0.5s var(--ease); }
.showcase-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; transform: translateY(8px); transition: transform 0.5s var(--ease); }
.showcase-item:hover .showcase-info { transform: none; }
.showcase-type { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #d8b98a; }
.showcase-title { font: 500 1.7rem/1.1 var(--serif); }
.showcase-item:first-child .showcase-title { font-size: clamp(2rem, 3vw, 2.8rem); }
.showcase-loc { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }
.showcase-item:hover { color: #fff; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; grid-auto-rows: 300px; } .showcase-item:first-child { grid-column: auto; grid-row: span 1; } }

/* Process timeline */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.process-step { position: relative; padding-top: 34px; border-top: 1px solid var(--line); }
.process-step::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--brass); transition: width 1.2s var(--ease) 0.2s; }
.process-step.is-visible::before, html:not(.js) .process-step::before { width: 100%; }
.process-num { display: block; font: 500 2.6rem/1 var(--serif); color: var(--brass); margin-bottom: 16px; }
.process-step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.process-step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* About */
.about-photo { position: relative; }
.about-photo img { transition: transform 1.2s var(--ease); }
.about-photo:hover img { transform: scale(1.04); }
.about-photo::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 45%; border: 1px solid var(--brass); z-index: -1; }
.about-grid { position: relative; z-index: 0; }

/* Catalogue cards */
.card-media { position: relative; }
.card { transition: transform 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); }

/* CTA band with photo */
.cta-band { position: relative; padding: clamp(80px, 11vw, 150px) 0; background-color: var(--night); }
.cta-band.has-image { background-image: linear-gradient(100deg, rgba(14, 14, 16, 0.9) 10%, rgba(14, 14, 16, 0.55)), var(--hero); background-size: cover; background-position: center; background-attachment: fixed; }
.cta-band h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; margin-bottom: 14px; }
.cta-band p { max-width: 52ch; font-size: 1.1rem; }
.cta-band .kicker { color: #d8b98a; }
.cta-band .btn-light:hover { background: var(--brass); color: #fff; }
@media (hover: none), (max-width: 820px) { .cta-band.has-image { background-attachment: scroll; } }

/* Inner page heroes */
.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; }
.page-hero.has-image { min-height: 52vh; display: flex; align-items: flex-end; padding-top: clamp(120px, 16vw, 220px); }
.page-hero.has-image .container { width: 100%; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.5rem; margin-top: 1.4em; }
.prose { font-size: 1.04rem; }
.prose ol li::marker { color: var(--brass); font-weight: 600; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--brass); }

/* Footer polish */
.site-footer { padding-top: clamp(64px, 8vw, 110px); }
.footer-grid { gap: 56px; }
.site-footer a { transition: color 0.3s var(--ease); }

/* Mobile menu: full-screen overlay */
@media (max-width: 1200px) {
	.primary-nav { background: var(--night); padding-top: 28px; }
	.primary-nav .menu a { color: #fff; font: 500 1.9rem/1.2 var(--serif); letter-spacing: 0; text-transform: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; }
	.primary-nav .menu a::after { display: none; }
	.primary-nav .menu li { opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
	.nav-open .primary-nav .menu li { opacity: 1; transform: none; }
	.nav-open .primary-nav .menu li:nth-child(2) { transition-delay: 0.04s; }
	.nav-open .primary-nav .menu li:nth-child(3) { transition-delay: 0.08s; }
	.nav-open .primary-nav .menu li:nth-child(4) { transition-delay: 0.12s; }
	.nav-open .primary-nav .menu li:nth-child(5) { transition-delay: 0.16s; }
	.nav-open .primary-nav .menu li:nth-child(6) { transition-delay: 0.2s; }
	.nav-open .primary-nav .menu li:nth-child(7) { transition-delay: 0.24s; }
	.nav-open { overflow: hidden; }
}

/* Scroll reveal (only when JavaScript is running) */
html.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.hero-bg, .marquee-track, .scroll-cue span { animation: none !important; }
	.marquee-track { width: auto; }
	.marquee ul[aria-hidden] { display: none; }
	html.js .reveal { opacity: 1; transform: none; }
	.cta-band.has-image { background-attachment: scroll; }
}

/* =====================================================================
   REFINED MODERN LAYER: clean sans display type, warm greys,
   translucent header, alternating project features.
   ===================================================================== */
:root {
	--serif: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--stone: #ece8e2;
	--sand: #e1dbd2;
	--line: #ddd7ce;
}
h1, h2, h3, .hero-title, .service-title, .showcase-title, .feature-title, .brand-name, .stats dd, .hero-stats dd, .process-num, .marquee li, .builders li, .page-hero h1 {
	font-family: var(--serif);
	font-weight: 300;
	letter-spacing: -0.035em;
}
h1 strong, h2 strong, h3 strong { font-weight: 500; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.06; }
.hero-title { font-weight: 300; font-size: clamp(3rem, 7vw, 6.2rem); line-height: 0.98; letter-spacing: -0.045em; }
.page-hero h1 { font-weight: 300; letter-spacing: -0.04em; }
.service-title { font-size: 2rem; font-weight: 400; }
.process-num { font-weight: 300; font-size: 3rem; }
.process-step h3 { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.01em; }
.marquee li { font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; color: #6c665f; }
.hero-stats dd { font-weight: 300; }
.prose h2 { font-weight: 400; }
.prose h3 { font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; }
.card-title { font-weight: 400; font-size: 1.25rem; letter-spacing: -0.01em; }
.lead { font-weight: 300; }
.kicker { letter-spacing: 0.22em; font-weight: 500; }

/* Translucent header */
.site-header { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); border-bottom-color: rgba(0, 0, 0, 0.06); }
.primary-nav .menu a { font-weight: 400; letter-spacing: 0.08em; text-transform: lowercase; font-size: 0.95rem; }
@media (max-width: 1200px) { .primary-nav .menu a { text-transform: none; letter-spacing: -0.01em; font-weight: 300; font-size: 2rem; } }

/* Alternating project features */
.features { display: grid; gap: clamp(28px, 4vw, 56px); }
.feature { display: grid; grid-template-columns: 1.45fr 1fr; background: var(--stone); min-height: 520px; overflow: hidden; }
.feature:nth-child(even) { grid-template-columns: 1fr 1.45fr; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media { display: block; overflow: hidden; background: var(--sand); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.05); }
.feature-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 72px); }
.feature-type { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 18px; }
.feature-title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 400; line-height: 1.05; margin-bottom: 10px; }
.feature-title a { text-decoration: none; }
.feature-meta { font-size: 1rem; color: var(--ink-soft); margin-bottom: 22px; }
.feature-text { color: var(--ink-soft); font-weight: 300; font-size: 1.05rem; line-height: 1.7; margin-bottom: 30px; max-width: 42ch; }
.feature .link-arrow { align-self: flex-start; }
@media (max-width: 900px) {
	.feature, .feature:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
	.feature:nth-child(even) .feature-media { order: 0; }
	.feature-media { aspect-ratio: 16 / 10; }
}

/* Fix: keep the dark gradient above the card photo so text stays readable */
.service-media { z-index: -2; }
.service-card::before { background: linear-gradient(180deg, rgba(14, 14, 16, 0.05) 25%, rgba(14, 14, 16, 0.9) 82%); }

/* Brand logo strip ("Systems we trust") */
.brand-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2em 0 0.6em; }
.brand-tile { display: grid; place-items: center; min-height: 150px; padding: 28px; background: #fff; text-decoration: none; transition: background 0.4s var(--ease); }
.brand-tile img { max-width: 170px; max-height: 64px; width: auto; height: auto; margin: 0; aspect-ratio: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.brand-tile:hover { background: var(--stone); }
.brand-tile:hover img { filter: none; opacity: 1; transform: scale(1.04); }
.brand-word { font: 500 1.35rem/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink-soft); text-align: center; transition: color 0.4s var(--ease); }
.brand-tile:hover .brand-word { color: var(--ink); }
.brand-note { font-size: 0.78rem; color: var(--muted); }
.prose .brand-tile img { aspect-ratio: auto; }
@media (max-width: 600px) { .brand-strip { grid-template-columns: 1fr; } .brand-tile { min-height: 110px; } }

/* Technical library cards */
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 1.5em 0 1em; }
.prose .sys-grid { max-width: none; }
.sys-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.sys-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(20, 20, 22, 0.35); }
.sys-media { aspect-ratio: 1 / 1; background: #f7f5f2; display: grid; place-items: center; padding: 22px; overflow: hidden; }
.sys-media img, .prose .sys-media img { width: 100%; height: 100%; object-fit: contain; margin: 0; aspect-ratio: auto; transition: transform 0.6s var(--ease); }
.sys-card:hover .sys-media img { transform: scale(1.05); }
.sys-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; }
.sys-meta { margin: 0; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-dark); }
.sys-title, .prose .sys-title { margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.sys-text { margin: 0; font-size: 0.92rem; color: var(--ink-soft); font-weight: 300; }
.sys-docs { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; }
.doc-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.doc-btn .icon { width: 16px; height: 16px; color: var(--brass); }
.doc-btn small { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.14em; color: var(--muted); }
.doc-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.doc-btn:hover .icon, .doc-btn:hover small { color: #d8b98a; }
.prose .doc-btn { text-decoration: none; }
.prose .sys-grid ul, .prose .sys-card li::before { content: none; }
.sys-more { margin: 0.5em 0; }

/* Screed calculator */
.calc { background: var(--night); color: #e9e4dc; padding: clamp(26px, 4vw, 48px); margin: 2em 0; }
.calc h3, .prose .calc h3 { color: #fff; font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 18px; }
.calc .kicker { color: #d8b98a; }
.calc-type { border: 0; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.calc-type legend { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.calc-type label { position: relative; cursor: pointer; }
.calc-type input { position: absolute; opacity: 0; }
.calc-type span { display: inline-block; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.25); font-size: 0.92rem; transition: all 0.3s var(--ease); }
.calc-type input:checked + span { background: var(--brass); border-color: var(--brass); color: #fff; }
.calc-type input:focus-visible + span { outline: 2px solid #d8b98a; outline-offset: 2px; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.calc-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.calc-grid label[hidden] { display: none; }
.calc input[type=number], .calc select { font: inherit; font-size: 1.05rem; padding: 11px 12px; background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); }
.calc select option { color: #000; }
.calc input:focus, .calc select:focus { outline: none; border-color: #d8b98a; }
.calc-error { color: #ffb4a8; margin: 12px 0 0; font-size: 0.9rem; }
.calc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.12); margin: 26px 0 16px; }
.calc-results > div { background: var(--night); padding: 18px 4px 18px 0; display: flex; flex-direction: column; gap: 6px; }
.calc-results > div + div { padding-left: 18px; }
.calc-results > div[hidden] { display: none; }
.calc-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.calc-value { font: 300 1.6rem/1.2 var(--serif); color: #fff; }
.calc-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin: 0 0 20px; }

/* Comparison table */
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; background: var(--stone); }
.prose .wp-block-table { overflow-x: auto; margin: 0; }

/* Eight menu items: switch to the burger menu a little earlier */
@media (max-width: 1360px) and (min-width: 1281px) { .primary-nav, .primary-nav .menu { gap: 16px; } .primary-nav .menu a { font-size: 0.9rem; } }
@media (max-width: 1280px) {
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; top: var(--nav-top, 116px); right: 0; bottom: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); padding: 28px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform 0.25s, visibility 0.25s; }
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { display: block; color: #fff; font: 300 2rem/1.2 var(--serif); letter-spacing: -0.01em; text-transform: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 0; }
	.primary-nav .menu a::after { display: none; }
	.header-cta { margin-top: 24px; justify-content: center; }
	.nav-open .primary-nav .menu li:nth-child(8) { transition-delay: 0.28s; }
}

/* Fix: product photos sit centred inside their square frame */
.sys-media { position: relative; display: block; padding: 0; }
.sys-media img, .prose .sys-media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; }
.sys-media .placeholder { position: absolute; inset: 0; }

/* Fix: the frosted header must not trap the full-screen mobile menu */
html, body { overflow-x: clip; }
.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }

/* Technical library: one section per brand */
.sys-brand { margin: 0 0 clamp(56px, 7vw, 96px); scroll-margin-top: 120px; }
.sys-brand-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--ink); }
.sys-brand-logo { display: grid; place-items: center; width: 92px; height: 56px; }
.sys-brand-logo img, .prose .sys-brand-logo img { max-width: 92px; max-height: 52px; width: auto; height: auto; margin: 0; aspect-ratio: auto; object-fit: contain; }
.sys-brand-name, .prose .sys-brand-name { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: -0.03em; }
.sys-brand-count { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.sys-brand-link { margin-left: auto; }
.prose .sys-brand { margin-bottom: 48px; }
.prose .sys-brand-name { font-size: 1.7rem; }
@media (max-width: 600px) { .sys-brand-link { margin-left: 0; } }

/* Three-column brand table: Mapei | Ardex | Dribond side by side */
.sys-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); background: #fff; margin: 1.6em 0 1em; }
.prose .sys-columns { width: min(1160px, calc(100vw - 2 * var(--gutter))); max-width: none; }
.sys-col { border-right: 1px solid var(--line); min-width: 0; }
.sys-col:last-child { border-right: 0; }
.sys-col-head { position: sticky; top: 66px; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--stone); border-bottom: 1px solid var(--ink); }
.sys-col-head img, .prose .sys-col-head img { width: auto; height: auto; max-width: 84px; max-height: 36px; margin: 0; aspect-ratio: auto; object-fit: contain; }
.sys-col-name { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.sys-col-count { margin-left: auto; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); }
.sys-rows, .prose .sys-rows { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.sys-row, .prose .sys-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); margin: 0; transition: background 0.3s var(--ease); }
.prose .sys-row::before { content: none; }
.sys-row:last-child { border-bottom: 0; }
.sys-row:hover { background: #faf8f5; }
.sys-row-media { width: 64px; height: 64px; display: grid; place-items: center; background: #f7f5f2; }
.sys-row-media img, .prose .sys-row-media img { width: 56px; height: 56px; object-fit: contain; margin: 0; aspect-ratio: auto; }
.sys-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sys-row-title { font-weight: 500; font-size: 1rem; line-height: 1.25; }
.sys-row-type { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-dark); }
.sys-row-text { font-size: 0.84rem; line-height: 1.45; color: var(--ink-soft); font-weight: 300; }
.sys-row-docs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sys-row-docs a, .prose .sys-row-docs a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid var(--line); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-decoration: none; color: var(--ink); transition: all 0.25s var(--ease); }
.sys-row-docs .icon { width: 13px; height: 13px; color: var(--brass); }
.sys-row-docs a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 960px) {
	.sys-columns { grid-template-columns: 1fr; }
	.sys-col { border-right: 0; border-bottom: 1px solid var(--line); }
	.sys-col:last-child { border-bottom: 0; }
	.sys-col-head { position: static; }
}

/* ---------- Polish pass ---------- */
/* Four service cards */
.service-cards-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-cards-4 .service-card { min-height: 520px; }
.service-cards-4 .service-title { font-size: 1.75rem; }
.service-cards-4 .service-body { padding: 28px 24px; }
@media (max-width: 1200px) { .service-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-cards-4 { grid-template-columns: 1fr; } .service-cards-4 .service-card { min-height: 420px; } }

/* Footer: four columns */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brass); color: #fff; }

/* Single project */
.project-hero { margin-bottom: 0; }
.project-hero .lead { max-width: 60ch; }
.project-cover { margin: clamp(-40px, -3vw, -20px) 0 clamp(40px, 5vw, 64px); overflow: hidden; background: var(--sand); }
.project-cover img { width: 100%; max-height: 72vh; object-fit: cover; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.project-body { margin-bottom: 0; }
.project-body p:first-child { font-size: 1.2rem; line-height: 1.7; font-weight: 300; }
.project-panel { position: sticky; top: 100px; background: var(--stone); padding: 30px; }
.project-panel .project-details { margin: 0 0 24px; }
.project-panel .project-details div { grid-template-columns: 1fr; gap: 2px; }
.project-panel .btn { width: 100%; justify-content: center; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: clamp(56px, 7vw, 96px) 0 var(--section); border-top: 1px solid var(--ink); padding-top: 28px; }
.project-nav-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.project-nav-link.is-next { text-align: right; align-items: flex-end; }
.project-nav-title { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -0.02em; transition: color 0.3s var(--ease); }
.project-nav-link:hover .project-nav-title { color: var(--brass-dark); }
@media (max-width: 860px) { .project-layout { grid-template-columns: 1fr; } .project-panel { position: static; } }

/* Forms: a touch more refined */
.quote-form { border-top: 3px solid var(--brass); }
.quote-form label { font-weight: 500; letter-spacing: 0.01em; }

/* Tighter, consistent focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Catalogue: show the whole tile in proportion on a soft stone background */
.card:not(.card-project) .card-media { background: #efebe5; display: grid; place-items: center; padding: 12%; }
.card:not(.card-project) .card-media img { width: 100%; height: 100%; object-fit: contain; box-shadow: 0 14px 30px -14px rgba(20, 20, 22, 0.35); }
.card:not(.card-project):hover .card-media img { transform: scale(1.03); }
.product-media { background: #efebe5; display: grid; place-items: center; padding: 10%; }
.product-media img { width: 100%; height: 100%; object-fit: contain; box-shadow: 0 24px 50px -20px rgba(20, 20, 22, 0.35); }
.card:not(.card-project) .card-media .placeholder, .product-media .placeholder { box-shadow: none; }

/* Fix: let the tile photo size itself so the shadow hugs the photo, not a square box */
.card:not(.card-project) .card-media img,
.product-media img { width: auto; height: auto; max-width: 100%; max-height: 100%; }

/* Product stickers ("Low Stock", "New", "Sale"...) */
.card-media, .product-media { position: relative; }
.sticker {
	position: absolute; z-index: 2; top: 14px; left: 14px;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 12px 7px 10px;
	font: 600 0.68rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
	color: #fff; background: var(--ink);
	box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
	transform: rotate(-3deg);
	pointer-events: none;
}
.sticker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.sticker-low-stock, .sticker-last-few { background: #c2410c; }
.sticker-new { background: var(--brass); }
.sticker-sale { background: #b3261e; }
.sticker-out-of-stock { background: #57534e; }
.product-media .sticker { top: 22px; left: 22px; font-size: 0.78rem; padding: 9px 15px 9px 12px; }
