/* Topcut Woodworx: clean, modern. White space, hairlines, black buttons,
   one oak accent. The photos carry the colour. Tokens come from theme.json. */

/* Size-matched fallback so text does not reflow when the web font arrives (CLS).
   size-adjust measured in Chromium against the real woff2 file. */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 102.8%; }

:root {
	--tc-ink: var(--wp--preset--color--ink);
	--tc-muted: var(--wp--preset--color--muted);
	--tc-panel: var(--wp--preset--color--surface);
	--tc-line: var(--wp--preset--color--line);
	--tc-oak: var(--wp--preset--color--oak);
	--tc-oak-deep: var(--wp--preset--color--oak-deep);
	--tc-radius: 12px;
	--tc-radius-btn: 8px;
	--tc-bar-h: 64px;
	--tc-header-h: 72px;
	--tc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--tc-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
::selection { background: var(--tc-oak); color: var(--tc-ink); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--tc-oak-deep);
	outline-offset: 3px;
	border-radius: 4px;
}
.skip-link.screen-reader-text:focus {
	background: var(--tc-ink);
	color: #fff;
	clip-path: none;
	height: auto;
	width: auto;
	padding: .75rem 1rem;
	left: .5rem;
	top: .5rem;
	z-index: 1000;
	position: fixed;
	text-decoration: none;
	border-radius: 8px;
}
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }

.tc-eyebrow, .tc-label {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--tc-oak-deep);
	margin: 0 0 1rem;
}
.tc-eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--tc-oak); }
.tc-label { color: var(--tc-muted); }
.tc-label::before { content: none; }
.tc-lede { font-size: var(--wp--preset--font-size--large); line-height: 1.55; color: var(--tc-muted); max-width: 56ch; }
.tc-lede--left { margin-left: 0 !important; }
.tc-placeholder { background: #FFF1C2; color: var(--tc-ink); padding: 0 .3em; border-radius: 4px; }
.tc-ruler { display: none; }

/* ---------- Buttons ---------- */
.wp-block-button__link {
	min-height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	text-decoration: none;
	transition: background-color .2s var(--tc-ease), color .2s var(--tc-ease), box-shadow .2s var(--tc-ease);
}
.wp-block-button.is-style-whatsapp .wp-block-button__link::before,
.tc-mobile-bar .tc-wa::before,
.tc-mobile-bar .tc-call::before {
	content: "";
	width: 1.125em;
	height: 1.125em;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--tc-icon) center / contain no-repeat;
	mask: var(--tc-icon) center / contain no-repeat;
}
.wp-block-button.is-style-whatsapp .wp-block-button__link::before, .tc-mobile-bar .tc-wa::before { --tc-icon: url("../icons/whatsapp.svg"); }
.tc-mobile-bar .tc-call::before { --tc-icon: url("../icons/phone.svg"); }
/* Oak fill uses ink text: 6:1. */
.wp-block-button.is-style-timber .wp-block-button__link,
.wp-block-button.is-style-whatsapp .wp-block-button__link { background: var(--tc-oak); color: var(--tc-ink); }
.wp-block-button.is-style-timber .wp-block-button__link:hover,
.wp-block-button.is-style-whatsapp .wp-block-button__link:hover { background: #C29C6F; }
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--tc-ink); box-shadow: inset 0 0 0 1px #C9C7C1; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { box-shadow: inset 0 0 0 1px var(--tc-ink); background: transparent; color: var(--tc-ink); }
.wp-block-button.is-style-on-dark .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.wp-block-button.is-style-on-dark .wp-block-button__link:hover { box-shadow: inset 0 0 0 1px #fff; }

/* ---------- Header ---------- */
.tc-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--tc-line); }
.admin-bar .tc-header { top: var(--wp-admin--admin-bar--height, 0); }
.tc-logo { margin: 0; line-height: 1; }
.tc-logo a { display: inline-flex; align-items: center; gap: .625rem; color: var(--tc-ink); text-decoration: none; }
.tc-logo a::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--tc-oak); flex: none; }
.tc-logo b { font-weight: 600; font-size: 1.1875rem; letter-spacing: -.02em; }
.tc-logo small { display: none; }
.tc-header .wp-block-navigation a:not(.wp-block-button__link) { text-decoration: none; color: var(--tc-ink); padding-block: .5rem; }
.tc-header .wp-block-navigation a:not(.wp-block-button__link):hover,
.tc-header .wp-block-navigation .current-menu-item > a { color: var(--tc-oak-deep); }
.tc-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--tc-line) !important;
	border-radius: 12px;
	background: #fff !important;
	padding: .5rem !important;
	min-width: 240px !important;
	box-shadow: 0 12px 32px rgba(17, 17, 17, .08);
}
.tc-header .wp-block-navigation__submenu-container a { font-size: .9375rem; padding: .5rem .75rem !important; border-radius: 6px; }
.tc-header .wp-block-navigation__submenu-container a:hover { background: var(--tc-panel); }
.tc-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem 1rem; background: #fff; }
.tc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: .75rem; }
.tc-header .wp-block-navigation__responsive-container.is-menu-open a { font-size: 1.375rem; font-weight: 600; letter-spacing: -.02em; }
.tc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 0 0 .5rem !important; }
.tc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a { font-size: 1.0625rem; font-weight: 400; }
.tc-nav-cta .wp-block-navigation-item__content {
	background: var(--tc-ink);
	color: #fff !important;
	padding: .625rem 1.125rem !important;
	border-radius: var(--tc-radius-btn);
	font-weight: 600;
}
.tc-nav-cta .wp-block-navigation-item__content:hover { background: #2A2A2A; }

/* ---------- Breadcrumbs ---------- */
.tc-breadcrumbs { font-size: .875rem; color: var(--tc-muted); }
.tc-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .375rem; }
.tc-breadcrumbs li + li::before { content: "/"; margin-right: .375rem; color: #B5B3AD; }
.tc-breadcrumbs a { color: var(--tc-muted); text-decoration: none; }
.tc-breadcrumbs a:hover { color: var(--tc-ink); text-decoration: underline; }
.tc-breadcrumbs [aria-current] { color: var(--tc-ink); }

/* ---------- Home hero ---------- */
.tc-home-hero { background: #fff; }
.tc-home-hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); max-width: 13ch; margin-top: 0; }
.tc-home-hero .tc-lede { max-width: 42ch; }
.tc-hero-img { margin: 0; }
.tc-hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 16px; }
.tc-hero-img figcaption, .tc-hero-img .wp-element-caption { font-size: .875rem; color: var(--tc-muted); margin: .75rem 0 0; text-align: left; }
@media (max-width: 781px) {
	.tc-hero-img img { aspect-ratio: 4 / 3; }
}

/* ---------- Sections ---------- */
.tc-section { margin-top: var(--wp--preset--spacing--70) !important; }
.tc-section > .tc-eyebrow b { font-weight: 500; }
.tc-section > h2 { margin-top: 0; margin-bottom: 2.5rem; max-width: 20ch; }

/* ---------- Cards ---------- */
.tc-grid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.tc-grid.is-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tc-grid > * { margin-block: 0 !important; }
.tc-card { position: relative; display: flex; flex-direction: column; }
.tc-card__media { margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--tc-radius); background: var(--tc-panel); }
.tc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--tc-ease); }
.tc-card:hover .tc-card__media img { transform: scale(1.04); }
.tc-card__body { padding: 1rem 0 0; display: flex; flex-direction: column; gap: .375rem; flex: 1; }
.tc-card__title { font-size: 1.25rem; margin: 0; letter-spacing: -.015em; }
.tc-card__title a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--tc-ease); }
.tc-card:hover .tc-card__title a { background-size: 100% 1px; }
.tc-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tc-card__text { color: var(--tc-muted); margin: 0; font-size: .9375rem; }
.tc-card__meta { font-size: .8125rem; color: var(--tc-muted); margin: 0; }
.tc-card__meta a { color: var(--tc-oak-deep); position: relative; z-index: 2; text-decoration: none; }
.tc-card__more { display: none; }
.tc-card:not(:has(.tc-card__media))::before {
	content: "Photos coming soon";
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	border-radius: var(--tc-radius);
	background: var(--tc-panel);
	font-size: .875rem;
	color: var(--tc-muted);
}

.wp-block-group.is-style-card { background: var(--tc-panel); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.25rem); }

/* ---------- Gallery ---------- */
.tc-gallery.wp-block-gallery { gap: 1.5rem 1rem; }
.tc-gallery.wp-block-gallery figure.wp-block-image { flex-direction: column !important; }
.tc-gallery.wp-block-gallery figure.wp-block-image img { border-radius: var(--tc-radius); aspect-ratio: 1; object-fit: cover; }
.tc-gallery.wp-block-gallery figure.wp-block-image figcaption {
	position: static;
	background: none;
	color: var(--tc-muted);
	font-size: .875rem;
	padding: .625rem 0 0;
	text-align: left;
	text-shadow: none;
	max-height: none;
	overflow: visible;
}
.tc-gallery.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { display: none; }
.wp-lightbox-overlay .scrim { background-color: rgba(255, 255, 255, .97) !important; }

/* ---------- Process ---------- */
.tc-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tc-steps > li { counter-increment: step; padding: 1.5rem 1.5rem 1.75rem; background: var(--tc-panel); border-radius: var(--tc-radius); }
.tc-steps > li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	font-size: .875rem;
	font-weight: 600;
	color: var(--tc-oak-deep);
	margin-bottom: 2.5rem;
	font-variant-numeric: tabular-nums;
}
.tc-steps strong { display: block; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: .375rem; }
.tc-steps > li { color: var(--tc-muted); font-size: .9375rem; }
.tc-steps > li strong { color: var(--tc-ink); }

/* ---------- Reviews ---------- */
.tc-review { margin: 0; border: 0; padding: 1.75rem; background: var(--tc-panel); border-radius: var(--tc-radius); }
.tc-review p { font-size: 1.125rem; line-height: 1.5; }
.tc-review cite { display: block; margin-top: 1rem; font-style: normal; font-size: .875rem; color: var(--tc-muted); }

/* ---------- FAQ ---------- */
.wp-block-details.is-style-faq { border-bottom: 1px solid var(--tc-line); padding: 0; }
.wp-block-details.is-style-faq:first-of-type { border-top: 1px solid var(--tc-line); }
.wp-block-details.is-style-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 1.25rem 3rem 1.25rem 0;
	position: relative;
	font-weight: 600;
	font-size: 1.125rem;
	letter-spacing: -.01em;
	line-height: 1.4;
}
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after {
	content: "";
	position: absolute;
	right: .25rem;
	top: 50%;
	width: 12px;
	height: 12px;
	border-right: 1.5px solid var(--tc-ink);
	border-bottom: 1.5px solid var(--tc-ink);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .25s var(--tc-ease);
}
.wp-block-details.is-style-faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wp-block-details.is-style-faq > :not(summary) { margin-top: 0; padding-bottom: 1.25rem; color: var(--tc-muted); max-width: 68ch; }

/* ---------- CTA band: a dark rounded panel ---------- */
.tc-cta-band {
	background: var(--tc-ink);
	color: #fff;
	border-radius: 20px;
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem) !important;
	max-width: var(--wp--style--global--wide-size) !important;
	margin-inline: auto !important;
}
.tc-cta-band :where(h2, h3) { color: #fff; }
.tc-cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 16ch; margin-top: 0; }
.tc-cta-band p { color: #A9A7A1; }
.tc-cta-band .tc-eyebrow { color: var(--wp--preset--color--oak-light) !important; }
.tc-cta-band .tc-label { color: #A9A7A1 !important; }
.tc-cta-band a:not(.wp-block-button__link) { color: #fff; }
.tc-cta-band .tc-phone { font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; letter-spacing: -.03em; margin: 0; font-variant-numeric: tabular-nums; }
.tc-cta-band .tc-phone a { text-decoration: none; color: #fff; }
.tc-cta-band .tc-phone a:hover { color: var(--wp--preset--color--oak-light); }
.tc-cta-band .wp-block-button:not([class*="is-style-"]) .wp-block-button__link { background: #fff; color: var(--tc-ink); }
.tc-cta-band .wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover { background: #ECEBE7; }
@media (max-width: 781px) {
	.tc-cta-band { border-radius: 0; }
}

/* ---------- Facts ---------- */
.tc-facts { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; margin: 0; }
.tc-facts dt, .tc-facts dd { margin: 0; padding: .875rem 0; border-bottom: 1px solid var(--tc-line); }
.tc-facts dt { color: var(--tc-muted); padding-right: 2rem; font-size: .9375rem; }
.tc-facts dd { color: var(--tc-ink); }
.tc-facts > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 520px) {
	.tc-facts { grid-template-columns: 1fr; }
	.tc-facts dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Project filters ---------- */
.tc-filters ul { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tc-filters a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: .5rem .875rem;
	border-radius: 8px;
	background: var(--tc-panel);
	color: var(--tc-ink);
	text-decoration: none;
	font-size: .9375rem;
	font-weight: 500;
	transition: background-color .2s var(--tc-ease);
}
.tc-filters a span { color: var(--tc-muted); margin-left: .375rem; font-variant-numeric: tabular-nums; }
.tc-filters a:hover { background: #E8E7E3; }
.tc-filters a[aria-current] { background: var(--tc-ink); color: #fff; }
.tc-filters a[aria-current] span { color: #A9A7A1; }

/* ---------- Footer ---------- */
.tc-footer { background: var(--tc-panel); color: var(--tc-muted); margin-top: var(--wp--preset--spacing--70); }
.tc-footer h2 { font-size: .9375rem; font-weight: 600; letter-spacing: -.005em; color: var(--tc-ink); margin: 0 0 1rem; }
.tc-footer a { color: var(--tc-ink); text-decoration: none; }
.tc-footer a:hover { color: var(--tc-oak-deep); text-decoration: underline; }
.tc-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .625rem; font-size: .9375rem; }
.tc-footer .tc-legal { font-size: .875rem; color: var(--tc-muted); border-top: 1px solid #E1E0DB; }
.tc-footer .tc-legal a { color: var(--tc-muted); }
.tc-footer .tc-big { display: none; }

/* ---------- Sticky mobile action bar (≤768px) ---------- */
.tc-mobile-bar { display: none; }
@media (max-width: 768px) {
	.tc-footer { padding-bottom: calc(var(--tc-bar-h) + env(safe-area-inset-bottom) + 1.5rem) !important; }
	.tc-mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1.3fr 1fr;
		gap: .5rem;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .94);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-top: 1px solid var(--tc-line);
		transition: transform .25s var(--tc-ease);
	}
	/* Slide away while a form field has focus so it never covers inputs. */
	body.tc-typing .tc-mobile-bar { transform: translateY(110%); }
	.tc-mobile-bar a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: .5rem;
		min-height: 48px;
		border-radius: 10px;
		font-weight: 600;
		font-size: .9375rem;
		text-decoration: none;
		color: var(--tc-ink);
		background: var(--tc-panel);
	}
	.tc-mobile-bar .tc-wa { background: var(--tc-ink); color: #fff; }
	.tc-mobile-bar .tc-quote { background: var(--tc-oak); color: var(--tc-ink); }
}

/* ---------- Quote form ---------- */
.tc-form { background: #fff; border: 1px solid var(--tc-line); border-radius: 16px; padding: clamp(1.25rem, 4vw, 2.5rem); }
.tc-form fieldset { border: 0; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.125rem; }
.tc-form legend { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; margin-bottom: 1rem; padding: 0; }
.tc-field { margin: 0; display: grid; gap: .375rem; }
.tc-field label { font-size: .9375rem; font-weight: 500; }
.tc-optional, .tc-hint { font-weight: 400; color: var(--tc-muted); font-size: .875rem; }
.tc-form :is(input, select, textarea) { box-sizing: border-box; max-width: 100%; }
.tc-form :is(input[type=text], input[type=tel], input[type=email], select, textarea) {
	width: 100%;
	min-height: 50px;
	padding: .75rem .875rem;
	font: inherit;
	font-size: 1rem;
	color: var(--tc-ink);
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	transition: border-color .15s, box-shadow .15s;
}
.tc-form :is(input, select, textarea):hover { border-color: var(--tc-ink); }
.tc-form :is(input, select, textarea):focus-visible { outline: none; border-color: var(--tc-ink); box-shadow: 0 0 0 3px rgba(176, 138, 94, .45); }
.tc-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tc-ink) 50%), linear-gradient(135deg, var(--tc-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.tc-form input[type=file] { font: inherit; font-size: .9375rem; padding: .5rem 0; }
.tc-field--check { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.tc-field--check input { width: 22px; height: 22px; margin-top: .125rem; accent-color: var(--tc-ink); }
.tc-field--check label { font-weight: 400; }
.tc-form button { border: 0; cursor: pointer; width: 100%; }
@media (min-width: 600px) { .tc-form button { width: auto; } }
.tc-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tc-form__error { background: #FDECEA; color: #8A1C12; border-radius: 10px; padding: .875rem 1rem; margin-bottom: 1.5rem; font-weight: 500; }
.tc-form--done h2 { margin-top: 0; }

/* ---------- Page headings ---------- */
.page-template-page-product h1, .page-template-page-hub h1 { font-size: clamp(2.375rem, 5vw, 4rem); max-width: 18ch; }
.page-template-default h1, .single h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); }
main:has(> .tc-cta-band:last-child), main:has(> .wp-block-post-content > .tc-cta-band:last-child) { padding-bottom: 0 !important; }
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.wp-block-group.is-style-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-top: 0; margin-bottom: 1.25rem; }
.tc-form fieldset { min-width: 0; } .tc-form input[type=file] { width: 100%; }
