/* ==========================================================================
   Holovne Wood — design system
   Colors/type come from theme.json custom properties (--wp--preset--*).
   ========================================================================== */

:root {
	--c-walnut: var(--wp--preset--color--walnut, #3E2B23);
	--c-timber: var(--wp--preset--color--timber, #B8763B);
	--c-forest: var(--wp--preset--color--forest, #2F4A3C);
	--c-sawdust: var(--wp--preset--color--sawdust, #F2E8DA);
	--c-off-white: var(--wp--preset--color--off-white, #FAF7F2);
	--c-charcoal: var(--wp--preset--color--charcoal, #211812);
	--shadow-soft: 0 4px 24px rgba(33, 24, 18, 0.08);
	--shadow-lift: 0 16px 40px rgba(33, 24, 18, 0.16);
	--radius: 6px;
	--ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */

* { box-sizing: border-box; }

body {
	-webkit-font-smoothing: antialiased;
}

/* WordPress's default global styles add a 24px top margin to every
   direct child of .wp-site-blocks (including <main>), which shows as
   a visible gap/seam between the header and whatever comes next
   (e.g. the page title banner). Remove it so template parts and main
   sit flush against each other. */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-template-part {
	margin-block-start: 0 !important;
}

.page-title-bar + .breadcrumbs,
.breadcrumbs + .product-hero {
	margin-block-start: 0 !important;
}

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

.section {
	padding-top: clamp(2.25rem, 4vw, 3.5rem);
	padding-bottom: clamp(2.25rem, 4vw, 3.5rem);
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	background: var(--c-off-white);
}

.section + .section {
	padding-top: 0;
}

/* Alternate soft backgrounds so consecutive light sections read as
   distinct bands, unless a section sets its own background inline. */
main > div.section:nth-of-type(even) {
	background: var(--c-sawdust);
}

.section-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.section--tight { max-width: 720px; margin: 0 auto; }

.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-timber);
	margin-bottom: 0.75rem;
}

.section-heading {
	max-width: 640px;
	margin: 0 0 2.5rem;
}

.section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-heading h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin: 0 0 0.75rem;
}

.section-heading p { font-size: 1.1rem; opacity: 0.85; margin: 0; }

.section-heading .btn { margin-top: 1.5rem; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-soft);
}

.site-header .wp-block-navigation a {
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	font-weight: 600;
	text-decoration: none;
	font-size: 0.95rem;
	color: var(--c-charcoal);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: var(--c-timber);
}

.primary-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	background: none;
	cursor: pointer;
	padding: 0;
}

.mobile-menu-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--c-walnut);
}

@media (max-width: 860px) {
	.primary-menu {
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--c-off-white);
		padding: 1.5rem 2rem;
		box-shadow: var(--shadow-soft);
	}

	.primary-menu.is-open { display: flex; }

	.primary-menu .sub-menu {
		padding-left: 1rem;
		margin-top: 0.5rem;
	}

	.mobile-menu-toggle { display: flex; }
}

.quote-list-indicator {
	position: relative;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-size: 1.3rem;
	color: var(--c-walnut);
}

.quote-list-indicator__count {
	position: absolute;
	top: -0.4rem;
	right: -0.6rem;
	background: var(--c-timber);
	color: var(--c-charcoal);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	min-width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.15rem;
}

.quote-list-indicator__count[data-quote-count="0"] { display: none; }

/* -------------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------------- */

.breadcrumbs {
	background: var(--c-sawdust);
	border-bottom: 1px solid #e4d3b5;
}

.breadcrumbs__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0.85rem 1.5rem;
	font-size: 0.85rem;
	color: var(--c-walnut);
}

.breadcrumbs a {
	color: var(--c-walnut);
	text-decoration: none;
	opacity: 0.75;
}

.breadcrumbs a:hover { opacity: 1; text-decoration: underline; }

.breadcrumbs__sep {
	margin: 0 0.6rem;
	opacity: 0.5;
}

.breadcrumbs [aria-current="page"] {
	font-weight: 600;
	opacity: 1;
}

/* -------------------------------------------------------------------------
   Page title bar (banner-style, every non-home page)
   ------------------------------------------------------------------------- */

.page-title-bar {
	background: linear-gradient(135deg, var(--c-walnut) 0%, #2a1d17 100%);
	color: var(--c-off-white);
	padding: clamp(3rem, 7vw, 5rem) 1.5rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.page-title-bar::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% 20%, rgba(184, 118, 59, 0.3), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(47, 74, 60, 0.35), transparent 40%);
	pointer-events: none;
}

.page-title-bar__inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

.page-title-bar h1 {
	margin: 0;
	color: inherit;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

.site-footer {
	padding-top: 4rem;
	padding-bottom: 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 2.5rem;
	padding-top: 0;
	padding-bottom: 3rem;
	align-items: start;
}

.site-footer__col { min-width: 0; }

.site-footer__brand {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--c-off-white);
	margin: 0 0 1rem;
}

.site-footer__heading {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--c-timber);
	margin: 0 0 1.25rem;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.site-footer__links a {
	color: var(--c-off-white);
	text-decoration: none;
	opacity: 0.85;
	font-size: 0.95rem;
}

.site-footer__links a:hover { opacity: 1; text-decoration: underline; }

.site-footer p { opacity: 0.85; line-height: 1.6; }
.site-footer a { color: var(--c-timber); }
.site-footer a:hover { color: var(--c-off-white); }

.site-footer__bottom {
	border-top: 1px solid rgba(250, 247, 242, 0.15);
	padding-top: 1.5rem;
	padding-bottom: 2rem;
}

.site-footer__bottom p { opacity: 0.6; margin: 0; }

.site-footer .wp-block-navigation a {
	text-decoration: none;
	opacity: 0.85;
}

.site-footer .wp-block-navigation a:hover { opacity: 1; }

@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--small { padding: 0.55rem 1.25rem; font-size: 0.85rem; }

.btn--primary {
	background: var(--c-timber);
	color: var(--c-charcoal);
}
.btn--primary:hover { background: var(--c-off-white); color: var(--c-charcoal); box-shadow: var(--shadow-lift); }

.btn--dark {
	background: var(--c-walnut);
	color: var(--c-off-white);
}
.btn--dark:hover { background: var(--c-timber); color: var(--c-charcoal); box-shadow: var(--shadow-lift); }

.btn--outline {
	background: transparent;
	border-color: currentColor;
	color: var(--c-walnut);
}
.btn--outline:hover { background: var(--c-walnut); color: var(--c-off-white); }

.btn--on-dark.btn--outline { color: var(--c-off-white); }
.btn--on-dark.btn--outline:hover { background: var(--c-off-white); color: var(--c-charcoal); }

/* -------------------------------------------------------------------------
   Hero (homepage)
   ------------------------------------------------------------------------- */

.hero {
	position: relative;
	padding: clamp(4rem, 10vw, 7rem) 1.5rem clamp(4.5rem, 10vw, 8rem);
	overflow: hidden;
}

.hero--dark {
	background: linear-gradient(135deg, var(--c-walnut) 0%, #2a1d17 100%);
	color: var(--c-off-white);
}

.hero--light {
	background: linear-gradient(135deg, var(--c-sawdust) 0%, #ecdec2 100%);
	color: var(--c-charcoal);
}

.hero--dark::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% 20%, rgba(184, 118, 59, 0.35), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(47, 74, 60, 0.4), transparent 40%);
	pointer-events: none;
}

.hero--light .hero__eyebrow { color: var(--c-forest); }

.hero__inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
}

.hero__eyebrow {
	color: var(--c-timber);
}

.hero h1 {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.08;
	max-width: 780px;
	margin: 0 0 1.25rem;
}

.hero p {
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	max-width: 620px;
	opacity: 0.9;
	margin: 0 0 2.25rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.5rem;
}

/* -------------------------------------------------------------------------
   Stats / figures
   ------------------------------------------------------------------------- */

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1.5rem;
	text-align: center;
}

.stats__item {
	background: var(--c-sawdust);
	border-radius: var(--radius);
	padding: 2rem 1.25rem;
	box-shadow: var(--shadow-soft);
	border-top: 3px solid var(--c-timber);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.stats__item:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lift);
}

.stats__figure {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--c-walnut);
	font-weight: 700;
	line-height: 1;
	margin-bottom: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.stats__label {
	font-size: 0.95rem;
	opacity: 0.8;
}

/* -------------------------------------------------------------------------
   Card grid — category / product / testimonial cards
   ------------------------------------------------------------------------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.category-card,
.product-card,
.feature-card,
.testimonial-card {
	background: var(--c-off-white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
	text-decoration: none;
	color: inherit;
	display: block;
}

.category-card:hover,
.product-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lift);
}

.category-card__media,
.product-card__media {
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, var(--c-sawdust), #e4d3b5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-card__image,
.category-card__image { width: 100%; height: 100%; object-fit: cover; }

.product-card__placeholder {
	font-size: 0.85rem;
	color: var(--c-walnut);
	opacity: 0.6;
}

.category-card__body,
.product-card__body {
	padding: 1.75rem;
}

.category-card__title,
.product-card__title {
	margin: 0 0 0.6rem;
	font-size: 1.35rem;
}

.category-card__description,
.product-card__excerpt {
	margin: 0 0 1.25rem;
	opacity: 0.85;
	font-size: 0.98rem;
}

/* -------------------------------------------------------------------------
   Feature grid ("Why Choose Us")
   ------------------------------------------------------------------------- */

.card-grid--features {
	grid-template-columns: repeat(var(--feature-columns, 4), 1fr);
}

@media (max-width: 1024px) {
	.card-grid--features { grid-template-columns: repeat(min(var(--feature-columns, 4), 2), 1fr); }
}

@media (max-width: 560px) {
	.card-grid--features { grid-template-columns: 1fr; }
}

.feature-card {
	background: var(--c-off-white);
	box-shadow: var(--shadow-soft);
	border-radius: var(--radius);
	border-top: 3px solid var(--c-timber);
	padding: 2rem 1.75rem;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lift);
}

.feature-card__icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--c-walnut), var(--c-timber));
	color: var(--c-off-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	box-shadow: var(--shadow-soft);
}

.feature-card__title { margin: 0 0 0.6rem; font-size: 1.2rem; }
.feature-card__text { margin: 0; opacity: 0.85; }

/* -------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------- */

.carousel--testimonials .carousel__slide {
	flex-basis: calc(50% - 0.75rem);
	height: auto;
}

@media (max-width: 700px) {
	.carousel--testimonials .carousel__slide { flex-basis: 90%; }
}

.testimonial-card {
	padding: 2.25rem;
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #e4d3b5;
}

.testimonial-card__mark {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4rem;
	line-height: 1;
	color: var(--c-timber);
	opacity: 0.3;
}

.testimonial-card__quote {
	font-size: 1.1rem;
	line-height: 1.65;
	margin: 0 0 1.5rem;
	font-style: italic;
	position: relative;
	flex: 1;
}

.testimonial-card__byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.testimonial-card__avatar {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--c-walnut);
	color: var(--c-off-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
}

.testimonial-card__name { font-weight: 700; }
.testimonial-card__role { opacity: 0.7; font-size: 0.9rem; }

/* -------------------------------------------------------------------------
   CTA banner
   ------------------------------------------------------------------------- */

.cta-banner {
	background: linear-gradient(135deg, var(--c-walnut) 0%, #2a1d17 100%);
	color: var(--c-off-white);
	border-radius: var(--radius);
	padding: clamp(2.5rem, 5vw, 4rem);
	text-align: center;
}

.cta-banner h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.cta-banner p { max-width: 560px; margin: 0 auto 2rem; opacity: 0.9; }
.cta-banner .btn { margin-top: 0.5rem; }

/* -------------------------------------------------------------------------
   Product page — hero + gallery
   ------------------------------------------------------------------------- */

.product-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}

.product-hero__eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-timber);
	text-decoration: none;
	margin-bottom: 0.75rem;
}

.product-hero__title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0 0 1rem;
}

.product-hero__lede {
	font-size: 1.15rem;
	opacity: 0.85;
	margin: 0 0 1.75rem;
	max-width: 46ch;
}

.product-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.product-hero__actions .btn[disabled] { opacity: 0.7; cursor: default; }

.product-gallery__carousel {
	padding: 0;
	margin: 0;
}

.product-gallery__viewport { gap: 0; }

.product-gallery__slide {
	flex: 0 0 100%;
	min-width: 0;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.product-gallery__image { width: 100%; height: 100%; object-fit: cover; }

.product-gallery__carousel .carousel__btn--prev { left: 0.75rem; }
.product-gallery__carousel .carousel__btn--next { right: 0.75rem; }

.product-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.product-gallery__thumb-btn {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: none;
	cursor: pointer;
	line-height: 0;
	transition: border-color 0.25s var(--ease);
}

.product-gallery__thumb-btn:hover,
.product-gallery__thumb-btn.is-active { border-color: var(--c-timber); }

.product-gallery__thumb {
	border-radius: 2px;
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
}

.product-gallery--placeholder {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	background: repeating-linear-gradient(135deg, var(--c-sawdust), var(--c-sawdust) 12px, #ebdcc2 12px, #ebdcc2 24px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-walnut);
	font-weight: 600;
	text-align: center;
	padding: 2rem;
}

/* -------------------------------------------------------------------------
   Accordion
   ------------------------------------------------------------------------- */

.accordion {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
}

.accordion__item {
	border-bottom: 1px solid #e4d9c8;
}

.accordion__item:first-child { border-top: 1px solid #e4d9c8; }

.accordion__trigger {
	list-style: none;
	cursor: pointer;
	padding: 1.5rem 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--c-walnut);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.accordion__trigger::-webkit-details-marker { display: none; }

.accordion__trigger::after {
	content: "+";
	font-size: 1.5rem;
	font-weight: 400;
	transition: transform 0.3s var(--ease);
	flex-shrink: 0;
	margin-left: 1rem;
}

.accordion__item[open] > .accordion__trigger::after { transform: rotate(45deg); }

.accordion__panel {
	padding: 0 0 1.75rem;
	overflow: hidden;
	transition: height 0.3s var(--ease);
}

.accordion__panel > *:first-child { margin-top: 0; }

/* -------------------------------------------------------------------------
   Modal
   ------------------------------------------------------------------------- */

.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.modal.is-open { visibility: visible; opacity: 1; }

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(33, 24, 18, 0.6);
	backdrop-filter: blur(2px);
}

.modal__dialog {
	position: relative;
	background: var(--c-off-white);
	border-radius: var(--radius);
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2.5rem;
	box-shadow: var(--shadow-lift);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.3s var(--ease);
}

.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }

.modal__dialog h2 { margin-top: 0; margin-bottom: 1.5rem; }

.modal__close {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--c-walnut);
}

body.modal-open { overflow: hidden; }

/* -------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.btn:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   Specs table (shared by accordion + standalone shortcode)
   ------------------------------------------------------------------------- */

.holovne-product-specs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
}

.holovne-product-specs__row {
	display: grid;
	grid-template-columns: minmax(160px, 240px) 1fr;
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e4d9c8;
}

.holovne-product-specs__row dt { font-weight: 700; color: var(--c-walnut); margin: 0; }
.holovne-product-specs__row dd { margin: 0; }

/* -------------------------------------------------------------------------
   Contact Form 7
   ------------------------------------------------------------------------- */

.wpcf7-form label { display: block; margin-bottom: 1rem; font-weight: 600; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid #c9b89a;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	background: #fff;
	line-height: 1.4;
}

.wpcf7-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%233E2B23'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1.1rem;
	padding-right: 2.5rem;
	cursor: pointer;
}

.wpcf7-form textarea { min-height: 110px; }

.wpcf7-form .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	margin-top: 0.75rem;
	padding: 0.85rem 1.75rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	background: var(--c-timber);
	color: var(--c-charcoal);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.wpcf7-form .wpcf7-submit:hover {
	background: var(--c-walnut);
	color: var(--c-off-white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lift);
}

.wpcf7-form .wpcf7-submit.wpcf7-submit-disabled,
.wpcf7-form .wpcf7-submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.wpcf7-form-control-wrap { display: block; }

.wpcf7-not-valid-tip {
	color: #b3261e;
	font-size: 0.85rem;
	margin-top: 0.35rem;
}

.wpcf7-response-output {
	margin-top: 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--radius);
	border: 1px solid #c9b89a;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------
   Section heading with an action (e.g. "View All Products" top-right)
   ------------------------------------------------------------------------- */

.section-heading-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 2.5rem;
}

.section-heading-row .section-heading {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Carousel (card carousels: recent/related products)
   ------------------------------------------------------------------------- */

.carousel {
	position: relative;
	padding: 0 1.5rem;
	margin: 0 -1.5rem;
}

.carousel__viewport {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}

.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
	flex: 0 0 calc(25% - 1.125rem);
	scroll-snap-align: start;
	min-width: 240px;
}

.carousel__btn {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: none;
	background: var(--c-off-white);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	color: var(--c-walnut);
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.carousel__btn:hover:not([disabled]) { background: var(--c-timber); color: var(--c-charcoal); }
.carousel__btn--prev { left: -0.25rem; }
.carousel__btn--next { right: -0.25rem; }
.carousel__btn[disabled] { opacity: 0.3; cursor: default; }

@media (max-width: 1024px) {
	.carousel__slide { flex-basis: calc(50% - 0.75rem); }
}

@media (max-width: 600px) {
	.carousel__slide { flex-basis: 85%; }
	.carousel__btn { display: none; }
}

.category-products__heading {
	margin: 0 0 2rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

/* -------------------------------------------------------------------------
   Product card (recent/related products)
   ------------------------------------------------------------------------- */

.product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.product-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.product-card__media { position: relative; }

.product-card__icon-actions {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: flex;
	gap: 0.5rem;
	z-index: 2;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.product-card:hover .product-card__icon-actions,
.product-card:focus-within .product-card__icon-actions {
	opacity: 1;
	transform: translateY(0);
}

@media (hover: none) {
	.product-card__icon-actions { opacity: 1; transform: none; }
}

.product-card__icon-btn {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: none;
	background: var(--c-off-white);
	color: var(--c-walnut);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--shadow-soft);
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.product-card__icon-btn:hover {
	transform: translateY(-2px) scale(1.05);
}

.product-card__icon-btn--primary {
	background: var(--c-timber);
	color: var(--c-charcoal);
}

.product-card__icon-btn--primary:hover { background: var(--c-walnut); color: var(--c-off-white); }

.product-card__icon-btn.wpcf7-submit-disabled,
.product-card__icon-btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.product-card__footer {
	margin-top: auto;
	padding: 1.25rem 1.75rem 1.75rem;
	border-top: 1px solid #e4d3b5;
	text-align: center;
}

.product-card__view-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.5rem 1.25rem;
	border-radius: 999px;
	border: 1.5px solid var(--c-walnut);
	color: var(--c-walnut);
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.product-card__view-btn:hover {
	background: var(--c-walnut);
	color: var(--c-off-white);
	transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
   Lightbox (product gallery quick view)
   ------------------------------------------------------------------------- */

.lightbox-trigger { cursor: zoom-in; position: relative; }

.lightbox-trigger::after {
	content: "⤢";
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: rgba(250, 247, 242, 0.9);
	color: var(--c-walnut);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	pointer-events: none;
}

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.lightbox.is-open { visibility: visible; opacity: 1; }

.lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(33, 24, 18, 0.85);
}

.lightbox__image {
	position: relative;
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lift);
}

.lightbox__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	border: none;
	background: var(--c-off-white);
	color: var(--c-charcoal);
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 2;
}

/* -------------------------------------------------------------------------
   Story split layout (title left / text right)
   ------------------------------------------------------------------------- */

.story-split {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.story-split__title h2 { margin: 0; }
.story-split__text p:first-child { margin-top: 0; }

@media (max-width: 782px) {
	.story-split { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Media + Text split (interior pages)
   ------------------------------------------------------------------------- */

.media-text {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.media-text--right { direction: rtl; }
.media-text--right > * { direction: ltr; }
.media-text--right .media-text__media { order: 2; }

.media-text__frame {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
}

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

.media-text__frame--rounded { border-radius: var(--radius); }
.media-text__frame--circle { border-radius: 50%; aspect-ratio: 1; }
.media-text__frame--blob { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }

.media-text__frame--placeholder {
	background: repeating-linear-gradient(135deg, var(--c-sawdust), var(--c-sawdust) 12px, #ebdcc2 12px, #ebdcc2 24px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--c-walnut);
	font-weight: 600;
}

.media-text__copy .btn { margin-top: 1rem; }

/* -------------------------------------------------------------------------
   Standalone quote form (Request a Quote page)
   ------------------------------------------------------------------------- */

.quote-form--centered {
	text-align: center;
}

.quote-form--centered .wpcf7-form {
	text-align: left;
}

.quote-form__prefill-note {
	background: var(--c-sawdust);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

.quote-form__list-notice {
	background: #fdf1de;
	border: 1px solid var(--c-timber);
	border-radius: var(--radius);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	text-align: left;
}

.quote-form__list-notice p { margin-top: 0; }

.quote-form__list-note {
	margin-top: 2rem;
	font-size: 0.9rem;
	opacity: 0.8;
}

/* -------------------------------------------------------------------------
   Quote List (multi-product RFQ)
   ------------------------------------------------------------------------- */

.quote-list-empty {
	background: var(--c-sawdust);
	border-radius: var(--radius);
	padding: 1.5rem;
	margin-top: 1.5rem;
}

.quote-list-items {
	margin: 1.5rem 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.quote-list-item {
	background: var(--c-off-white);
	border: 1px solid #e4d3b5;
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
}

.quote-list-item__row {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.quote-list-item__title {
	font-weight: 700;
	flex: 1;
}

.quote-list-item__toggle-notes {
	background: none;
	border: none;
	color: var(--c-timber);
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
	padding: 0.35rem 0;
}

.quote-list-item__remove {
	background: none;
	border: none;
	color: var(--c-walnut);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.quote-list-item__notes {
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid #c9b89a;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.9rem;
	min-height: 70px;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.media-text,
	.media-text--right {
		grid-template-columns: 1fr;
		direction: ltr;
	}
	.media-text--right .media-text__media { order: 0; }
}

@media (max-width: 782px) {
	.product-hero { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------------------
   Contact details row
   ------------------------------------------------------------------------- */

.contact-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.contact-details__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: var(--c-off-white);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow-soft);
}

.contact-details__icon {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--c-walnut), var(--c-timber));
	color: var(--c-off-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

.contact-details__label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.65;
	margin-bottom: 0.2rem;
}

.contact-details__value {
	font-weight: 700;
	color: var(--c-charcoal);
	text-decoration: none;
}

a.contact-details__value:hover { color: var(--c-timber); }

/* -------------------------------------------------------------------------
   Landscape contact form
   ------------------------------------------------------------------------- */

.contact-form-landscape .wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 1.5rem;
}

/* Full-width fields, matched by field name rather than DOM position —
   CF7's hidden-fields fieldset is an extra (invisible) sibling that
   throws off simple :nth-child counting. */
.contact-form-landscape .wpcf7-form > p:has([data-name="your-subject"]),
.contact-form-landscape .wpcf7-form > p:has([data-name="your-message"]),
.contact-form-landscape .wpcf7-form > p:has(.wpcf7-submit) {
	grid-column: 1 / -1;
}

@media (max-width: 700px) {
	.contact-form-landscape .wpcf7-form { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   WhatsApp button / scroll-to-top / cookie banner
   ------------------------------------------------------------------------- */

.whatsapp-button {
	position: fixed;
	left: 1.5rem;
	bottom: 1.5rem;
	z-index: 90;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	text-decoration: none;
	box-shadow: var(--shadow-lift);
	transition: transform 0.25s var(--ease);
}

.whatsapp-button:hover { transform: scale(1.08); }

.scroll-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 90;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: none;
	background: var(--c-walnut);
	color: var(--c-off-white);
	font-size: 1.4rem;
	cursor: pointer;
	box-shadow: var(--shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
}

.scroll-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top:hover { background: var(--c-timber); color: var(--c-charcoal); }

.cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 100;
	max-width: 640px;
	margin: 0 auto;
	background: var(--c-charcoal);
	color: var(--c-off-white);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	box-shadow: var(--shadow-lift);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1 1 260px; }
.cookie-banner a { color: var(--c-timber); }
