/*
Theme Name: Quercus Import Export
Author: Quercus Import Export Ltd.
Description: Custom block theme for Quercus Import Export Ltd., a family-owned oak timber company in Sevlievo, Bulgaria. One-page company website with products, wood species, quality, logistics and an enquiry form.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quercus
*/

/* ---------- Fonts (bundled locally, no external requests) ---------- */
@font-face { font-family: "Lora"; src: url(assets/fonts/lora-variable.woff) format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(assets/fonts/lora-italic-variable.woff) format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(assets/fonts/inter-400.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(assets/fonts/inter-500.woff) format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(assets/fonts/inter-600.woff) format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
	--q-green-900: #16260D;
	--q-green: #223B13;
	--q-green-600: #3A5A26;
	--q-oak: #A8743C;
	--q-oak-light: #D9BC8F;
	--q-cream: #F4EFE5;
	--q-paper: #FBF9F4;
	--q-ink: #1E211B;
	--q-muted: #5B6255;
	--q-line: #E3DCCD;
	--q-serif: "Lora", Georgia, "Times New Roman", serif;
	--q-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--q-pad: clamp(20px, 4vw, 48px);
	--q-section: clamp(72px, 10vw, 128px);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body .wp-site-blocks { padding: 0; }
body .wp-site-blocks > * + * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }

.q-page .q-container,
.q-site-header .q-container,
.q-topbar .q-container,
.q-footer .q-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: var(--q-pad);
	box-sizing: border-box;
}

/* ---------- Shared type ---------- */
.q-page .q-eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	margin: 0 0 18px;
	font-family: var(--q-sans); font-size: 0.75rem; font-weight: 600;
	letter-spacing: 0.18em; text-transform: uppercase; color: var(--q-oak);
}
.q-page .q-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.q-page .q-h2 {
	margin: 0 0 24px;
	font-family: var(--q-serif); font-weight: 500;
	font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.15; letter-spacing: -0.01em;
	color: var(--q-green);
}
.q-page .q-intro { margin: 0; max-width: 640px; font-size: 1.125rem; line-height: 1.7; color: var(--q-muted); }
.q-page .q-text { margin: 0 0 18px; color: var(--q-ink); line-height: 1.75; }
.q-page .q-section__head { margin-bottom: clamp(40px, 5vw, 64px); }
.q-page .q-section__head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }

/* ---------- Buttons ---------- */
.q-page .wp-block-buttons.q-actions,
.q-site-header .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.q-page .q-btn .wp-block-button__link,
.q-site-header .q-btn .wp-block-button__link {
	display: inline-block;
	padding: 15px 28px;
	border: 1px solid transparent; border-radius: 2px;
	font-family: var(--q-sans); font-size: 0.8125rem; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; line-height: 1.2;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.q-page .q-btn--solid .wp-block-button__link,
.q-site-header .q-btn--solid .wp-block-button__link { background: var(--q-green); color: #fff; }
.q-page .q-btn--solid .wp-block-button__link:hover,
.q-site-header .q-btn--solid .wp-block-button__link:hover { background: var(--q-oak); color: #fff; }
.q-page .q-btn--light .wp-block-button__link { background: var(--q-cream); color: var(--q-green); }
.q-page .q-btn--light .wp-block-button__link:hover { background: var(--q-oak-light); color: var(--q-green-900); }
.q-page .q-btn--ghost .wp-block-button__link { background: transparent; color: var(--q-cream); border-color: rgba(244, 239, 229, 0.55); }
.q-page .q-btn--ghost .wp-block-button__link:hover { border-color: var(--q-cream); background: rgba(244, 239, 229, 0.08); color: #fff; }

/* ---------- Top bar ---------- */
.q-topbar { background: var(--q-green-900); color: rgba(244, 239, 229, 0.82); font-family: var(--q-sans); font-size: 0.8125rem; }
.q-topbar .q-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.q-topbar .q-topbar__note,
.q-topbar .q-topbar__contact { margin: 0; letter-spacing: 0.02em; }
.q-topbar .q-topbar__contact { display: flex; gap: 28px; }
.q-topbar a { color: rgba(244, 239, 229, 0.9); text-decoration: none; }
.q-topbar a:hover { color: var(--q-oak-light); }

/* ---------- Header ---------- */
.q-site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, 0.97); backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--q-line); transition: box-shadow .25s ease; }
.admin-bar .q-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .q-site-header { top: 46px; } }
.q-site-header.is-scrolled { box-shadow: 0 6px 24px rgba(22, 38, 13, 0.08); }
.q-site-header .q-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 84px; }
.q-site-header .q-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--q-green); flex-shrink: 0; }
.q-site-header .q-brand img { width: 56px; height: 56px; display: block; }
.q-site-header .q-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.q-site-header .q-brand__name { font-family: var(--q-serif); font-size: 1.375rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.q-site-header .q-brand__sub { margin-top: 4px; font-family: var(--q-sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--q-muted); }
.q-site-header .q-nav { margin-left: auto; font-family: var(--q-sans); }
.q-site-header .q-nav .wp-block-navigation__container { gap: 32px; }
.q-site-header .q-nav .wp-block-navigation-item__content { color: var(--q-ink); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; padding: 6px 0; position: relative; }
.q-site-header .q-nav .wp-block-navigation-item__content:hover { color: var(--q-oak); }
.q-site-header .q-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--q-paper); padding: 32px; }
.q-site-header .q-nav .is-menu-open .wp-block-navigation__container { gap: 20px; }
.q-site-header .q-nav .is-menu-open .wp-block-navigation-item__content { font-family: var(--q-serif); font-size: 1.75rem; color: var(--q-green); }
.q-site-header .q-nav .wp-block-navigation__responsive-container-open svg,
.q-site-header .q-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; fill: var(--q-green); }

/* ---------- Hero ---------- */
.q-page .q-hero {
	position: relative;
	min-height: min(88vh, 860px);
	display: flex; flex-direction: column; justify-content: flex-end;
	color: var(--q-cream);
	background-color: var(--q-green-900);
	background-image:
		linear-gradient(90deg, rgba(22, 38, 13, 0.94) 0%, rgba(22, 38, 13, 0.78) 42%, rgba(22, 38, 13, 0.28) 100%),
		linear-gradient(0deg, rgba(22, 38, 13, 0.85) 0%, rgba(22, 38, 13, 0) 40%),
		url(assets/images/hero-oak-logs.jpg);
	background-size: cover; background-position: center 55%;
}
.q-page .q-hero__content { padding-top: clamp(96px, 14vh, 160px); padding-bottom: clamp(56px, 8vh, 88px); }
.q-page .q-hero .q-eyebrow { color: var(--q-oak-light); }
.q-page .q-hero__title {
	margin: 0 0 28px; max-width: 760px;
	font-family: var(--q-serif); font-weight: 500;
	font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.06; letter-spacing: -0.015em;
	color: #fff;
}
.q-page .q-hero__title em { font-style: italic; color: var(--q-oak-light); }
.q-page .q-hero__lead { margin: 0 0 40px; max-width: 600px; font-size: 1.1875rem; line-height: 1.7; color: rgba(244, 239, 229, 0.88); }
.q-page .q-hero__facts { border-top: 1px solid rgba(244, 239, 229, 0.18); background: rgba(22, 38, 13, 0.55); backdrop-filter: blur(2px); }
.q-page .q-hero__facts-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.q-page .q-fact { padding: 28px 28px 28px 0; }
.q-page .q-fact + .q-fact { padding-left: 28px; border-left: 1px solid rgba(244, 239, 229, 0.14); }
.q-page .q-fact__title { margin: 0 0 4px; font-family: var(--q-serif); font-size: 1.1875rem; font-weight: 500; color: #fff; }
.q-page .q-fact__text { margin: 0; font-size: 0.875rem; line-height: 1.5; color: rgba(244, 239, 229, 0.7); }

/* ---------- Sections ---------- */
.q-page .q-section { padding-block: var(--q-section); }
.q-page .q-section--paper { background: var(--q-paper); }
.q-page .q-section--cream { background: var(--q-cream); }
.q-page .q-section--green { background: var(--q-green); color: var(--q-cream); }
.q-page .q-section--green .q-h2 { color: #fff; }
.q-page .q-section--green .q-eyebrow { color: var(--q-oak-light); }
.q-page .q-section--green .q-intro { color: rgba(244, 239, 229, 0.78); }

/* Split layout */
.q-page .q-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.q-page .q-split--reverse .q-split__media { order: 2; }
.q-page .q-split__media { position: relative; margin: 0; }
.q-page .q-split__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.q-page .q-split__media--frame::after { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--q-oak-light); z-index: -1; border-radius: 2px; }
.q-page .q-split__media--frame { z-index: 0; }
.q-page .q-split--reverse .q-split__media--frame::after { inset: 22px 22px -22px -22px; }

/* Company */
.q-page .q-signature { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--q-line); }
.q-page .q-signature__mark { width: 52px; height: 52px; flex-shrink: 0; }
.q-page .q-signature__mark img { width: 52px; height: 52px; display: block; }
.q-page .q-signature__name { margin: 0; font-family: var(--q-serif); font-size: 1.1875rem; color: var(--q-green); line-height: 1.3; }
.q-page .q-signature__role { margin: 0; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--q-muted); }
.q-page .q-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--q-line); }
.q-page .q-pillar { padding: 32px 32px 0 0; }
.q-page .q-pillar + .q-pillar { padding-left: 32px; border-left: 1px solid var(--q-line); }
.q-page .q-pillar__title { margin: 0 0 10px; font-family: var(--q-serif); font-size: 1.25rem; font-weight: 500; color: var(--q-green); }
.q-page .q-pillar__text { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--q-muted); }

/* Products */
.q-page .q-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.q-page .q-card { background: #fff; border: 1px solid var(--q-line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.q-page .q-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 38, 13, 0.1); }
.q-page .q-card__img { margin: 0; }
.q-page .q-card__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.q-page .q-card__body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.q-page .q-card__num { margin: 0 0 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--q-oak); }
.q-page .q-card__title { margin: 0 0 12px; font-family: var(--q-serif); font-size: 1.5rem; font-weight: 500; color: var(--q-green); }
.q-page .q-card__text { margin: 0 0 24px; font-size: 0.9375rem; line-height: 1.7; color: var(--q-muted); }
.q-page .q-card__for { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--q-line); font-size: 0.8125rem; color: var(--q-ink); }
.q-page .q-card__for strong { font-weight: 600; color: var(--q-green); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; margin-right: 6px; }
.q-page .q-note { margin: 40px 0 0; padding: 22px 28px; background: var(--q-cream); border-left: 3px solid var(--q-oak); font-size: 0.9375rem; color: var(--q-ink); }

/* Species */
.q-page .q-species { border-top: 1px solid rgba(244, 239, 229, 0.2); }
.q-page .q-species__row { display: grid; grid-template-columns: 1.1fr 1fr 1.6fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid rgba(244, 239, 229, 0.2); }
.q-page .q-species__latin { margin: 0; font-family: var(--q-serif); font-style: italic; font-size: clamp(1.375rem, 2.4vw, 1.75rem); color: #fff; }
.q-page .q-species__common { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--q-oak-light); }
.q-page .q-species__desc { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: rgba(244, 239, 229, 0.78); }
.q-page .q-species__more { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.q-page .q-species__label { margin: 0 0 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--q-oak-light); }
.q-page .q-species__value { margin: 0; font-size: 1rem; line-height: 1.7; color: rgba(244, 239, 229, 0.88); }

/* Quality */
.q-page .q-steps { margin: 32px 0 0; counter-reset: qstep; }
.q-page .q-step { position: relative; padding: 0 0 26px 64px; margin: 0; }
.q-page .q-step::before { counter-increment: qstep; content: "0" counter(qstep); position: absolute; left: 0; top: 2px; font-family: var(--q-serif); font-size: 1.125rem; color: var(--q-oak); }
.q-page .q-step::after { content: ""; position: absolute; left: 34px; top: 12px; width: 16px; height: 1px; background: var(--q-oak-light); }
.q-page .q-step__title { margin: 0 0 4px; font-family: var(--q-serif); font-size: 1.1875rem; font-weight: 500; color: var(--q-green); }
.q-page .q-step__text { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--q-muted); }
.q-page .q-certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.q-page .q-cert { padding: 32px; background: #fff; border: 1px solid var(--q-line); border-top: 3px solid var(--q-green); border-radius: 2px; }
.q-page .q-cert__name { margin: 0 0 6px; font-family: var(--q-serif); font-size: 1.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--q-green); }
.q-page .q-cert__label { margin: 0 0 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--q-oak); }
.q-page .q-cert__text { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--q-muted); }

/* Logistics */
.q-page .q-gallery { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.q-page .q-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 2px; }
.q-page .q-gallery img { display: block; width: 100%; height: clamp(300px, 36vw, 480px); object-fit: cover; }
.q-page .q-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 24px 18px; background: linear-gradient(0deg, rgba(22, 38, 13, 0.85), rgba(22, 38, 13, 0)); color: #fff; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; }
.q-page .q-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }
.q-page .q-feature { border-top: 1px solid var(--q-line); padding-top: 24px; }
.q-page .q-feature__title { margin: 0 0 8px; font-family: var(--q-serif); font-size: 1.25rem; font-weight: 500; color: var(--q-green); }
.q-page .q-feature__text { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--q-muted); }
.q-page .q-markets { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin-top: 56px; padding: 28px 32px; background: var(--q-cream); border-radius: 2px; }
.q-page .q-markets__label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--q-oak); }
.q-page .q-markets__list { margin: 0; font-family: var(--q-serif); font-size: 1.25rem; color: var(--q-green); word-spacing: 0.1em; }

/* CTA band */
.q-page .q-cta {
	padding-block: clamp(72px, 9vw, 112px);
	background-color: var(--q-green-900);
	background-image: linear-gradient(90deg, rgba(22, 38, 13, 0.97) 0%, rgba(22, 38, 13, 0.92) 55%, rgba(22, 38, 13, 0.84) 100%), url(assets/images/oak-texture.jpg);
	background-size: cover; background-position: center;
	color: var(--q-cream);
}
.q-page .q-cta__inner { display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: center; }
.q-page .q-cta .q-h2 { color: #fff; margin-bottom: 14px; }
.q-page .q-cta .q-intro { color: rgba(244, 239, 229, 0.8); }
.q-page .q-cta .q-eyebrow { color: var(--q-oak-light); }

/* Contact */
.q-page .q-contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.q-page .q-details { margin-top: 36px; }
.q-page .q-detail { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--q-line); margin: 0; }
.q-page .q-detail:last-child { border-bottom: 1px solid var(--q-line); }
.q-page .q-detail__label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--q-oak); padding-top: 3px; }
.q-page .q-detail__value { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--q-ink); }
.q-page .q-detail__value a { color: var(--q-green); text-decoration: none; border-bottom: 1px solid var(--q-oak-light); }
.q-page .q-detail__value a:hover { color: var(--q-oak); }

/* Form */
.q-form { background: #fff; border: 1px solid var(--q-line); border-radius: 2px; padding: clamp(28px, 4vw, 48px); font-family: var(--q-sans); }
.q-form__title { margin: 0 0 6px; font-family: var(--q-serif); font-size: 1.625rem; font-weight: 500; color: var(--q-green); }
.q-form__sub { margin: 0 0 28px; font-size: 0.9375rem; color: var(--q-muted); }
.q-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.q-form__field { display: flex; flex-direction: column; gap: 7px; }
.q-form__field--full { grid-column: 1 / -1; }
.q-form label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--q-ink); }
.q-form label .q-req { color: var(--q-oak); }
.q-form input[type="text"], .q-form input[type="email"], .q-form input[type="tel"], .q-form select, .q-form textarea {
	width: 100%; box-sizing: border-box; padding: 13px 14px;
	font: inherit; font-size: 0.9375rem; color: var(--q-ink);
	background: var(--q-paper); border: 1px solid var(--q-line); border-radius: 2px;
	transition: border-color .2s ease, background-color .2s ease;
}
.q-form textarea { min-height: 150px; resize: vertical; }
.q-form input:focus, .q-form select:focus, .q-form textarea:focus { outline: none; border-color: var(--q-green-600); background: #fff; box-shadow: 0 0 0 3px rgba(58, 90, 38, 0.12); }
.q-form__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; font-size: 0.8125rem; line-height: 1.55; color: var(--q-muted); }
.q-form__consent input { margin-top: 3px; accent-color: var(--q-green); }
.q-form__consent label { font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--q-muted); }
.q-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.q-form__submit { margin-top: 8px; padding: 16px 32px; border: 0; border-radius: 2px; cursor: pointer; background: var(--q-green); color: #fff; font: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; transition: background-color .2s ease; }
.q-form__submit:hover { background: var(--q-oak); }
.q-form__notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 2px; font-size: 0.9375rem; }
.q-form__notice--ok { background: #EAF1E3; color: var(--q-green); border-left: 3px solid var(--q-green-600); }
.q-form__notice--error { background: #F8E9E4; color: #7A2E1B; border-left: 3px solid #B2532F; }

/* ---------- Footer ---------- */
.q-footer { background: var(--q-green-900); color: rgba(244, 239, 229, 0.72); font-family: var(--q-sans); font-size: 0.9375rem; }
.q-footer .q-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-block: 80px 56px; }
.q-footer .q-footer__brand img { width: 88px; height: 88px; display: block; margin-bottom: 22px; }
.q-footer .q-footer__about { margin: 0; max-width: 320px; line-height: 1.7; }
.q-footer .q-footer__heading { margin: 0 0 18px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--q-oak-light); }
.q-footer .q-footer__list { margin: 0; line-height: 2; }
.q-footer a { color: rgba(244, 239, 229, 0.85); text-decoration: none; }
.q-footer a:hover { color: #fff; }
.q-footer .q-footer__bottom { border-top: 1px solid rgba(244, 239, 229, 0.12); }
.q-footer .q-footer__bottom-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; font-size: 0.8125rem; color: rgba(244, 239, 229, 0.55); }
.q-footer .q-footer__bottom-inner p { margin: 0; }

/* ---------- Generic pages (privacy policy etc.) ---------- */
.q-generic { padding-block: clamp(56px, 8vw, 104px); }
.q-generic .wp-block-post-title { font-family: var(--q-serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); color: var(--q-green); margin: 0 0 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.q-site-header .q-header__cta { display: none; }
	.q-page .q-hero__facts-inner { grid-template-columns: repeat(2, 1fr); }
	.q-page .q-fact:nth-child(3) { padding-left: 0; border-left: 0; }
	.q-page .q-fact:nth-child(n+3) { border-top: 1px solid rgba(244, 239, 229, 0.14); }
	.q-footer .q-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.q-page .q-split, .q-page .q-contact, .q-page .q-section__head--split, .q-page .q-cta__inner { grid-template-columns: 1fr; }
	.q-page .q-section__head--split { gap: 8px; }
	.q-page .q-split--reverse .q-split__media { order: 0; }
	.q-page .q-split__media img { aspect-ratio: 4 / 3; }
	.q-page .q-split__media--frame::after { display: none; }
	.q-page .q-cards, .q-page .q-certs, .q-page .q-features, .q-page .q-pillars { grid-template-columns: 1fr; }
	.q-page .q-pillar, .q-page .q-pillar + .q-pillar { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--q-line); }
	.q-page .q-species__row { grid-template-columns: 1fr; gap: 6px; }
	.q-page .q-species__more { grid-template-columns: 1fr; gap: 28px; }
	.q-page .q-gallery { grid-template-columns: 1fr; }
	.q-topbar .q-topbar__note { display: none; }
	.q-topbar .q-topbar__inner { justify-content: center; }
}
@media (max-width: 600px) {
	.q-page .q-hero__facts-inner { grid-template-columns: 1fr; }
	.q-page .q-fact, .q-page .q-fact + .q-fact { padding: 18px 0; border-left: 0; }
	.q-page .q-fact + .q-fact { border-top: 1px solid rgba(244, 239, 229, 0.14); }
	.q-form .q-form__grid { grid-template-columns: 1fr; }
	.q-page .q-detail { grid-template-columns: 1fr; gap: 4px; }
	.q-footer .q-footer__top { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 40px; }
	.q-footer .q-footer__bottom-inner { flex-direction: column; gap: 6px; }
	.q-topbar .q-topbar__contact { gap: 18px; font-size: 0.75rem; }
	.q-site-header .q-brand__sub { display: none; }
	.q-site-header .q-brand img { width: 46px; height: 46px; }
	.q-site-header .q-header__inner { min-height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.q-page .q-card, .q-page .q-card:hover { transition: none; transform: none; }
}

/* ---------- v1.1: languages list and certification icons ---------- */
.q-page .q-langs__label { margin: 6px 0 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--q-oak); }
.q-page .q-langs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 28px; }
.q-page .q-langs li { position: relative; margin: 0; padding-left: 16px; font-size: 0.9375rem; color: var(--q-ink); }
.q-page .q-langs li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--q-oak); }
.q-page .q-cert__icon { margin: 0 0 20px; }
.q-page .q-cert__icon img { display: block; width: 56px; height: 56px; object-fit: contain; }
@media (max-width: 600px) { .q-page .q-langs { grid-template-columns: repeat(2, auto); } }

/* ---------- v1.2: two certification cards, PEFC logo, phone labels ---------- */
.q-page .q-certs { grid-template-columns: repeat(2, 1fr); }
.q-page .q-cert__icon--logo img { width: auto; height: 88px; border-radius: 2px; }
.q-page .q-phone__country { display: inline-block; min-width: 72px; font-size: 0.8125rem; color: var(--q-muted); }
@media (max-width: 900px) { .q-page .q-certs { grid-template-columns: 1fr; } }

/* ---------- v1.3: language flags ---------- */
.q-page .q-langs li { display: flex; align-items: center; gap: 9px; padding-left: 0; }
.q-page .q-langs li::before { display: none; }
.q-page .q-flag { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(30, 33, 27, 0.12); flex-shrink: 0; }
.q-page .q-langs--compact { grid-template-columns: repeat(2, auto); gap: 8px 28px; }
