/* ==========================================================================
   Channell Test — main stylesheet
   ========================================================================== */

:root {
	--c-ink: #33373d;        /* body / slate */
	--c-ink-soft: #6b6b6b;
	--c-black: #1a1a1a;      /* buttons */
	--c-tan: #b38f69;        /* logo / accent */
	--c-tan-dark: #8f6f4d;
	--c-line: #dcdcdc;
	--c-alt: #f3f2ef;        /* alt section bg */
	--c-white: #fff;
	--c-footer: #1f2226;

	--font: "Roboto", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
	--header-h: 108px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; color: var(--c-black); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.screen-reader-text { 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: 8px; z-index: 100; background: var(--c-black); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--c-tan); outline-offset: 3px; }

.eyebrow {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-tan-dark);
	margin-bottom: .6em;
}
.eyebrow--light { color: #e6d3bd; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.6em;
	border: 2px solid var(--c-black);
	border-radius: 999px;
	background: var(--c-black);
	color: #fff;
	font: 500 .78rem/1 var(--font);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--c-tan-dark); border-color: var(--c-tan-dark); }
.btn--sm { padding: .55em 1.1em; font-size: .7rem; }
.btn--outline { background: transparent; color: var(--c-black); }
.btn--outline:hover { background: var(--c-black); color: #fff; border-color: var(--c-black); }
.btn--dark { background: rgba(26, 26, 26, .9); border-color: transparent; }

.text-link { color: var(--c-tan-dark); font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }

.site-logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; gap: 4px; }
.site-logo img { height: 72px; width: auto; max-width: 240px; object-fit: contain; }
.site-logo__mark { width: 84px; height: auto; }
.site-logo__word {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
	letter-spacing: .28em;
	color: var(--c-black);
	margin-right: -.28em;
}

.site-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.utility-bar { display: flex; align-items: center; gap: 16px; font-size: .72rem; color: var(--c-ink-soft); }
.utility-bar a { text-decoration: none; }
.utility-bar a:hover { color: var(--c-black); }
.utility-menu { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }

.primary-nav .menu,
.primary-nav > div > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a {
	display: block;
	padding: 8px 12px;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-ink);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--c-tan-dark); }
.primary-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px; height: 5px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.primary-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	list-style: none;
	margin: 0;
	padding: 10px 0;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-tan);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 400; padding: 8px 18px; }
.primary-nav .sub-menu a:hover { background: var(--c-alt); }

.nav-toggle { display: none; }

/* ---------- Bands (hero + feature) ---------- */
.band,
.banner {
	position: relative;
	display: flex;
	align-items: center;
	color: #fff;
	background-color: #2a2e33;
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 60%, rgba(0, 0, 0, .1) 100%),
		var(--bg, none);
	background-size: cover;
	background-position: center;
}
.band { min-height: clamp(360px, 52vw, 560px); }
.band--hero { min-height: clamp(420px, 60vw, 620px); }
.band--no-image,
.banner--no-image {
	background-image:
		radial-gradient(ellipse at 80% 20%, rgba(179, 143, 105, .35), transparent 55%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px),
		linear-gradient(135deg, #2b3036 0%, #15181b 100%);
}
.band:nth-of-type(odd).band--no-image:not(.band--hero) {
	background-image:
		radial-gradient(ellipse at 15% 80%, rgba(96, 140, 104, .35), transparent 55%),
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 22px),
		linear-gradient(135deg, #1f2a24 0%, #121614 100%);
}
.band--hero.band--no-image {
	background-image:
		radial-gradient(ellipse at 75% 40%, rgba(120, 170, 120, .45), transparent 60%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 64px),
		linear-gradient(120deg, #24382b 0%, #3f6b4a 55%, #2b4a35 100%);
}
.band__inner { padding-block: 72px; max-width: var(--container); }
.band__heading { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.8rem); max-width: 16ch; }
.band--hero .band__heading { max-width: 18ch; }
.band__text { max-width: 52ch; font-size: 1.05rem; opacity: .92; margin-bottom: 1.6em; }

.banner { min-height: 280px; }
.banner__inner { padding-block: 64px; }
.banner__title { color: #fff; margin: 0; }
.banner__subtitle { max-width: 60ch; margin: .75em 0 0; font-size: 1.05rem; opacity: .9; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: 40px 72px; }
.section--alt { background: var(--c-alt); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__title { margin-bottom: .4em; }
.section__lede { color: var(--c-ink-soft); font-size: 1.05rem; margin: 0; }

.intro__grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.intro__copy { max-width: 680px; }
.intro__badge {
	width: 180px;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 2px solid var(--c-tan);
	display: grid;
	place-items: center;
	text-align: center;
	padding: 24px;
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-tan-dark);
	box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 9px var(--c-tan);
}

/* Product line tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 220px;
	padding: 22px;
	border-radius: var(--radius);
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background-color: #33373d;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .75) 100%), var(--bg, none);
	background-size: cover;
	background-position: center;
	transition: transform .2s, box-shadow .2s;
}
.tile--no-image { background-image: linear-gradient(160deg, #3d434a 0%, #1f2226 100%); }
.tile--no-image::before {
	content: "";
	position: absolute;
	top: 22px; right: 22px;
	width: 44px; height: 24px;
	border-radius: 50%;
	background: var(--c-tan);
	opacity: .9;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .18); }
.tile__name { font-size: 1.2rem; font-weight: 500; }
.tile__desc { font-size: .85rem; opacity: .8; margin-top: 4px; line-height: 1.45; }

/* CTA */
.cta { border-top: 1px solid var(--c-line); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta__inner > div { max-width: 640px; }

/* ---------- Prose ---------- */
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--c-tan-dark); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--c-line); }
.prose th { font-weight: 500; color: var(--c-black); }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--c-tan); color: var(--c-ink-soft); }

/* ---------- Cards / product archive ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter__item {
	padding: .55em 1.1em;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	font-size: .8rem;
	text-decoration: none;
	color: var(--c-ink);
}
.filter__item:hover { border-color: var(--c-black); }
.filter__item.is-active { background: var(--c-black); border-color: var(--c-black); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card__media { aspect-ratio: 4 / 3; background: var(--c-alt); display: grid; place-items: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: .06em;
	color: #c7c2b9;
}
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.15rem; margin-bottom: .35em; }
.card__text { font-size: .92rem; color: var(--c-ink-soft); margin-bottom: 1em; }
.card__more { margin-top: auto; font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--c-tan-dark); }

/* ---------- Single product ---------- */
.breadcrumbs { padding-top: 28px; font-size: .82rem; color: var(--c-ink-soft); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-black); }

.product-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.product__media img { border-radius: var(--radius); }
.product__placeholder {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	display: grid;
	place-items: center;
	background:
		radial-gradient(ellipse at 70% 30%, rgba(179, 143, 105, .25), transparent 60%),
		linear-gradient(160deg, #eceae6, #d9d6d0);
}
.product__placeholder span { font-size: 2.6rem; font-weight: 700; letter-spacing: .08em; color: rgba(51, 55, 61, .35); }
.product__title { margin-bottom: .25em; }
.product__tagline { font-size: 1.1rem; color: var(--c-ink-soft); }
.specs { margin: 28px 0; border-top: 1px solid var(--c-line); }
.specs > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.specs dt { font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--c-ink-soft); }
.specs dd { margin: 0; color: var(--c-black); }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.product-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--c-line); }
.checklist li::before {
	content: "";
	position: absolute;
	left: 4px; top: 16px;
	width: 12px; height: 7px;
	border-left: 2px solid var(--c-tan-dark);
	border-bottom: 2px solid var(--c-tan-dark);
	transform: rotate(-45deg);
}

/* ---------- Blog list ---------- */
.post-list { display: grid; gap: 40px; }
.post-item { padding-bottom: 40px; border-bottom: 1px solid var(--c-line); }
.post-item__title { font-size: 1.5rem; }
.post-item__title a { text-decoration: none; }
.post-item__title a:hover { color: var(--c-tan-dark); }

.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.page-numbers { padding: 6px 12px; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; }
.page-numbers.current { background: var(--c-black); color: #fff; border-color: var(--c-black); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); color: #b9bcc0; font-size: .92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.site-footer__company { color: #fff; font-weight: 500; letter-spacing: .12em; margin-bottom: 1em; }
.site-footer__label { color: var(--c-tan); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-menu, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .78rem; color: #8b8f94; }
.site-footer__bottom p { margin: 0; }
.site-footer__note { color: var(--c-tan); }

/* ---------- Forms (search, comments, plugin output) ---------- */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="password"], textarea, select {
	width: 100%;
	max-width: 100%;
	padding: .7em .9em;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	font: inherit;
	color: inherit;
	background: #fff;
}
input:focus, textarea:focus, select:focus { border-color: var(--c-tan); outline: none; box-shadow: 0 0 0 3px rgba(179, 143, 105, .2); }
button, input[type="submit"] { font: inherit; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-submit { padding: .7em 1.4em; border: 0; border-radius: 999px; background: var(--c-black); color: #fff; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	:root { --header-h: 76px; }
	.site-logo__mark { width: 60px; }
	.site-logo__word { font-size: .9rem; }
	.site-logo img { height: 52px; }
	.site-header__right { flex-direction: row-reverse; align-items: center; }
	.utility-bar__phone, .utility-menu { display: none; }

	.nav-toggle {
		display: inline-grid;
		place-items: center;
		width: 44px; height: 44px;
		border: 0;
		background: transparent;
		cursor: pointer;
	}
	.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
		display: block;
		width: 22px; height: 2px;
		background: var(--c-black);
		position: relative;
		transition: transform .2s, background .2s;
	}
	.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bar::before { top: -7px; }
	.nav-toggle__bar::after { top: 7px; }
	.nav-open .nav-toggle__bar { background: transparent; }
	.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

	.primary-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		background: #fff;
		overflow-y: auto;
		padding: 16px var(--gutter) 40px;
		display: none;
	}
	.nav-open .primary-nav { display: block; }
	.primary-nav .menu, .primary-nav > div > ul { flex-direction: column; gap: 0; }
	.primary-nav a { padding: 14px 0; font-size: .95rem; border-bottom: 1px solid var(--c-line); }
	.primary-nav .sub-menu {
		position: static;
		opacity: 1; visibility: visible; transform: none;
		border: 0; box-shadow: none; padding: 0 0 0 16px;
	}
	.primary-nav .menu-item-has-children > a::after { display: none; }

	.intro__grid, .product-hero, .product-detail { grid-template-columns: 1fr; gap: 40px; }
	.intro__badge { width: 140px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.btn--sm { padding: .5em .9em; }
	.specs > div { grid-template-columns: 1fr; gap: 2px; }
	.site-footer__grid { grid-template-columns: 1fr; }
}

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

/* ---------- Portal (Z Portals) ---------- */
.section--portal { padding-block: 48px 80px; }
.portal-content { max-width: var(--container); }
.portal-content input[type="submit"],
.portal-content button[type="submit"] { border-radius: 999px; }
