/* =========================================================================
   TIEVERA — Home & Brand
   Everything is scoped under .tv-root so it cannot leak into the theme.
   Resets use :where() (specificity 0) so component classes always win.
   ========================================================================= */

.tv-root {
	/* --- Brand palette ------------------------------------------------- */
	--tv-black: #2b1219;
	--tv-ink: #1d0d12;
	--tv-surface: #38181f;
	--tv-surface-2: #45222a;
	/* Amber band: the yellow half of the mix, alternated with the wine. */
	--tv-warm: #362314;
	--tv-warm-2: #44301c;
	/* Matched to the TIEVERA logo: crimson-mehroon wordmark, warm leaf gold. */
	--tv-maroon: #6e0820;
	--tv-maroon-deep: #4a0516;
	--tv-maroon-lift: #a81438;
	--tv-gold: #d6a64a;
	--tv-gold-soft: #ecc878;
	--tv-gold-dim: #9c7730;
	--tv-paper: #f3efe8;
	--tv-muted: #bdb2a1;
	--tv-line: rgba(214, 166, 74, 0.26);
	--tv-line-soft: rgba(243, 239, 232, 0.11);

	/* --- Scale ---------------------------------------------------------- */
	--tv-wrap: 1240px;
	--tv-gutter: clamp(20px, 5vw, 64px);
	--tv-section: clamp(64px, 7.6vw, 112px);
	--tv-radius: 3px;

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

	background: var(--tv-black);
	color: var(--tv-paper);
	font-family: var(--tv-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Zero-specificity reset: never outranks a .tv-* component rule. */
.tv-root :where(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure) {
	margin: 0;
	padding: 0;
}

/*
 * Goya prints `h1,h2,h3,h4,h5,h6 { color:#282828 }` inline in wp_head. An
 * explicit colour on the element always beats an inherited one, however low
 * its specificity, so every heading here rendered near-black on black. These
 * two rules (0,1,0 via .tv-root) outrank it and hand colour back to the
 * cascade; component classes further down still win on source order.
 */
.tv-root :where(h1, h2, h3, h4, h5, h6) {
	color: var(--tv-paper);
}

.tv-root :where(p, li, dt, dd, span, strong, em) {
	color: inherit;
}

.tv-root :where(ul, ol) {
	list-style: none;
}

.tv-root :where(a) {
	color: inherit;
	text-decoration: none;
}

.tv-root :where(svg) {
	display: block;
}

.tv-root :where(img) {
	max-width: 100%;
	height: auto;
}

.tv-root :where(*, *::before, *::after) {
	box-sizing: border-box;
}

.tv-root :where(a, button):focus-visible {
	outline: 2px solid var(--tv-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

/* --- Layout -------------------------------------------------------------- */

.tv-wrap {
	width: min(var(--tv-wrap), 100% - (var(--tv-gutter) * 2));
	margin-inline: auto;
}

/* --- Type ---------------------------------------------------------------- */

.tv-eyebrow {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--tv-gold);
	margin-bottom: 1.15rem;
}

.tv-eyebrow--light {
	color: var(--tv-gold-soft);
}

.tv-h2 {
	font-family: var(--tv-serif);
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

.tv-h3 {
	font-family: var(--tv-serif);
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	font-weight: 500;
	line-height: 1.15;
}

.tv-h4 {
	font-family: var(--tv-sans);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.4;
}

.tv-lead {
	color: var(--tv-muted);
	font-size: 1.0625rem;
	line-height: 1.78;
	font-weight: 300;
	max-width: 62ch;
}

.tv-note {
	color: var(--tv-muted);
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
	margin-top: 1.75rem;
}

.tv-head {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tv-head--center {
	text-align: center;
}

.tv-head--center .tv-lead {
	margin-inline: auto;
}

.tv-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

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

.tv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: 2.25rem;
}

.tv-actions--center {
	justify-content: center;
}

.tv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	min-height: 54px;
	padding: 0 1.9rem;
	font-family: var(--tv-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	border: 1px solid transparent;
	border-radius: var(--tv-radius);
	cursor: pointer;
	transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.tv-btn__arrow {
	transition: transform 240ms ease;
	flex: none;
}

.tv-btn:hover .tv-btn__arrow {
	transform: translateX(4px);
}

.tv-btn--gold {
	background: var(--tv-gold);
	color: #1a1206;
	border-color: var(--tv-gold);
}

.tv-btn--gold:hover {
	background: var(--tv-gold-soft);
	border-color: var(--tv-gold-soft);
}

.tv-btn--ghost {
	color: var(--tv-gold);
	border-color: var(--tv-gold-dim);
	background: transparent;
}

.tv-btn--ghost:hover {
	background: rgba(214, 166, 74, 0.12);
	border-color: var(--tv-gold);
}

.tv-btn--link {
	min-height: 0;
	padding: 0;
	color: var(--tv-gold);
	border: 0;
	border-bottom: 1px solid var(--tv-line);
	border-radius: 0;
	padding-bottom: 0.4rem;
}

.tv-btn--link:hover {
	border-bottom-color: var(--tv-gold);
}

/* --- 1. Announcement bar -------------------------------------------------- */

.tv-announce {
	background: var(--tv-maroon-deep);
	border-bottom: 1px solid rgba(214, 166, 74, 0.28);
}

.tv-announce__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem 2.25rem;
	padding: 0.8rem 0;
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #e9dcc9;
	text-align: center;
}

.tv-announce__list li {
	position: relative;
}

.tv-announce__list li + li::before {
	content: "";
	position: absolute;
	left: -1.15rem;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--tv-gold);
	opacity: 0.7;
}

/* --- 2. Hero -------------------------------------------------------------- */

.tv-hero {
	position: relative;
	padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 8vw, 116px);
	background:
		radial-gradient(60% 70% at 78% 35%, rgba(110, 8, 32, 0.42), transparent 70%),
		radial-gradient(40% 50% at 12% 12%, rgba(214, 166, 74, 0.09), transparent 70%),
		var(--tv-black);
}

.tv-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	align-items: center;
	gap: clamp(2.5rem, 5vw, 5rem);
}

.tv-hero__title {
	font-family: var(--tv-serif);
	font-size: clamp(3rem, 8.2vw, 6.4rem);
	font-weight: 300;
	line-height: 0.96;
	letter-spacing: -0.005em;
	margin-bottom: 1.6rem;
}

.tv-hero__line {
	display: block;
}

.tv-hero__line--accent {
	color: var(--tv-gold);
	font-style: italic;
	font-weight: 400;
}

.tv-lead--hero {
	font-size: clamp(1.0625rem, 1.4vw, 1.18rem);
	max-width: 52ch;
}

.tv-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--tv-line);
}

.tv-stats__k {
	display: block;
	font-family: var(--tv-serif);
	font-size: 2rem;
	font-weight: 500;
	line-height: 1;
	color: var(--tv-gold);
}

.tv-stats__v {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.7rem;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--tv-muted);
}

.tv-hero__media {
	display: flex;
	justify-content: center;
}

.tv-hero__art {
	width: 100%;
	max-width: 420px;
	height: auto;
	filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

/* --- 3. Signature strip --------------------------------------------------- */

.tv-sig {
	border-top: 1px solid var(--tv-line-soft);
	border-bottom: 1px solid var(--tv-line-soft);
	background: var(--tv-surface);
}

.tv-sig__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
}

.tv-sig__item {
	padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.4vw, 2.25rem);
	border-left: 1px solid var(--tv-line-soft);
}

.tv-sig__item:first-child {
	border-left: 0;
}

.tv-sig__icon {
	display: inline-flex;
	color: var(--tv-gold);
	margin-bottom: 1.25rem;
}

.tv-sig__item p {
	margin-top: 0.6rem;
	color: var(--tv-muted);
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.7;
}

/* --- 4. Categories -------------------------------------------------------- */

.tv-cats {
	padding: var(--tv-section) 0;
}

.tv-cats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1px;
	background: var(--tv-line-soft);
	border: 1px solid var(--tv-line-soft);
}

.tv-cat__link {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: 100%;
	background: var(--tv-black);
	transition: background-color 260ms ease;
}

.tv-cat__link:hover {
	background: var(--tv-surface-2);
}

/* The photograph. A 4:5 frame matches the product shots. */
.tv-cat__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--tv-surface);
}

.tv-cat__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 700ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.tv-cat__link:hover .tv-cat__media img {
	transform: scale(1.06);
}

/* A wash over the photo so the gold text below never fights the image. */
.tv-cat__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(43, 18, 25, 0) 40%, rgba(43, 18, 25, 0.55) 100%);
	pointer-events: none;
}

/* No photo yet: keep the line drawing, centred in the same frame. */
.tv-cat__media.is-blank {
	display: grid;
	place-items: center;
	color: var(--tv-gold);
	background: linear-gradient(150deg, var(--tv-surface) -10%, var(--tv-black) 95%);
}

.tv-cat__media.is-blank::after { content: none; }

.tv-cat__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: clamp(0.9rem, 1.6vw, 1.15rem) clamp(0.9rem, 1.6vw, 1.2rem) clamp(1.1rem, 1.8vw, 1.35rem);
}

.tv-cat__count {
	margin-top: 0.15rem;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tv-gold-dim);
}

.tv-cat__link:hover .tv-cat__count {
	color: var(--tv-gold);
}

.tv-cat__name {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.35;
}

.tv-cat__note {
	font-size: 0.775rem;
	font-weight: 300;
	color: var(--tv-muted);
	line-height: 1.5;
}

/* --- 5. Featured ---------------------------------------------------------- */

.tv-featured {
	padding: var(--tv-section) 0;
	background: var(--tv-surface);
	border-top: 1px solid var(--tv-line-soft);
	border-bottom: 1px solid var(--tv-line-soft);
}

.tv-showcase {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1rem, 1.8vw, 1.5rem);
}

.tv-showcase__item a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	height: 100%;
	padding: clamp(2rem, 3.5vw, 3rem) 1.25rem clamp(1.5rem, 2.5vw, 2rem);
	text-align: center;
	background: var(--tv-black);
	border: 1px solid var(--tv-line-soft);
	border-radius: var(--tv-radius);
	transition: border-color 260ms ease, transform 260ms ease;
}

.tv-showcase__item a:hover {
	border-color: var(--tv-line);
	transform: translateY(-4px);
}

.tv-showcase__art {
	display: inline-flex;
	color: var(--tv-gold);
	margin-bottom: 1.4rem;
}

.tv-showcase__name {
	font-size: 0.95rem;
	font-weight: 600;
}

.tv-showcase__price {
	font-size: 0.85rem;
	font-weight: 300;
	color: var(--tv-muted);
	font-variant-numeric: tabular-nums;
}

/* WooCommerce grid, when the real catalogue is live. */
.tv-woo .woocommerce ul.products,
.tv-woo ul.products {
	margin: 0;
}

.tv-woo .woocommerce-loop-product__title,
.tv-woo .price {
	color: var(--tv-paper);
}

.tv-woo .price del {
	color: var(--tv-muted);
}

.tv-woo .price ins {
	color: var(--tv-gold);
	text-decoration: none;
}

/* --- 6. Signature product ------------------------------------------------- */

.tv-signature {
	padding: var(--tv-section) 0;
}

.tv-signature__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5.5rem);
}

.tv-plate {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 5;
	background: linear-gradient(160deg, var(--tv-maroon) 0%, var(--tv-maroon-deep) 100%);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius);
	overflow: hidden;
}

.tv-plate__mark {
	position: relative;
	z-index: 1;
	color: var(--tv-gold-soft);
	width: min(52%, 190px);
	height: auto;
}

.tv-plate__ring {
	position: absolute;
	inset: 12%;
	border: 1px solid rgba(214, 166, 74, 0.3);
	border-radius: 50%;
}

.tv-specs {
	margin-top: 2.25rem;
	border-top: 1px solid var(--tv-line-soft);
}

.tv-specs__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--tv-line-soft);
}

.tv-specs dt {
	font-size: 0.7rem;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--tv-muted);
}

.tv-specs dd {
	font-size: 1rem;
	font-weight: 500;
	color: var(--tv-paper);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

/* --- 7. Two doors --------------------------------------------------------- */

.tv-doors {
	padding: var(--tv-section) 0;
	background: var(--tv-surface);
	border-top: 1px solid var(--tv-line-soft);
}

.tv-doors__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.tv-door {
	display: flex;
	flex-direction: column;
	padding: clamp(2rem, 4vw, 3.25rem);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius);
}

.tv-door--retail {
	background: var(--tv-black);
}

.tv-door--trade {
	background: linear-gradient(155deg, var(--tv-maroon) -10%, var(--tv-maroon-deep) 85%);
}

.tv-door__kicker {
	display: inline-block;
	align-self: flex-start;
	padding: 0.35rem 0.7rem;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--tv-gold);
	border: 1px solid var(--tv-line);
	border-radius: 2px;
	margin-bottom: 1.25rem;
}

.tv-door__lead {
	margin-top: 0.9rem;
	color: var(--tv-muted);
	font-weight: 300;
	line-height: 1.75;
}

.tv-door--trade .tv-door__lead {
	color: rgba(255, 255, 255, 0.86);
}

/* Base gold on mehroon is only ~4.2:1; the softer gold clears AA at 5.7:1. */
.tv-door--trade .tv-door__kicker {
	color: var(--tv-gold-soft);
	border-color: rgba(242, 212, 136, 0.45);
}

.tv-door .tv-actions {
	margin-top: auto;
	padding-top: 2.25rem;
}

.tv-door--trade .tv-btn--ghost {
	color: var(--tv-gold-soft);
	border-color: var(--tv-gold-soft);
}

.tv-door--trade .tv-btn--ghost:hover {
	background: rgba(223, 197, 131, 0.16);
}

.tv-ticks {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.85rem;
}

.tv-ticks li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.6;
}

.tv-ticks .tv-i {
	flex: none;
	margin-top: 0.22rem;
	color: var(--tv-gold);
}

.tv-door--trade .tv-ticks li {
	color: rgba(255, 255, 255, 0.9);
}

.tv-door--trade .tv-ticks .tv-i {
	color: var(--tv-gold-soft);
}

/* --- 8. Corporate gifting -------------------------------------------------- */

.tv-corp {
	padding: var(--tv-section) 0;
	background:
		radial-gradient(70% 120% at 15% 0%, rgba(138, 39, 51, 0.55), transparent 65%),
		var(--tv-ink);
	border-top: 1px solid var(--tv-line-soft);
	border-bottom: 1px solid var(--tv-line-soft);
}

.tv-corp__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
}

.tv-corp__points {
	display: grid;
	gap: 1rem;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-radius);
	background: rgba(43, 18, 25, 0.55);
}

.tv-corp__points li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	font-size: 0.9rem;
	font-weight: 300;
}

.tv-corp__points .tv-i {
	flex: none;
	margin-top: 0.22rem;
	color: var(--tv-gold);
}

/* --- 9. Guide -------------------------------------------------------------- */

.tv-guide {
	padding: var(--tv-section) 0;
}

.tv-guide__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.tv-guide__item {
	padding: clamp(1.75rem, 3vw, 2.5rem);
	background: var(--tv-surface);
	border: 1px solid var(--tv-line-soft);
	border-radius: var(--tv-radius);
	transition: border-color 260ms ease;
}

.tv-guide__item:hover {
	border-color: var(--tv-line);
}

.tv-guide__icon {
	display: inline-flex;
	color: var(--tv-gold);
	margin-bottom: 1.35rem;
}

.tv-guide__item p {
	margin-top: 0.6rem;
	color: var(--tv-muted);
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.72;
}

/* --- 10. Closing ----------------------------------------------------------- */

.tv-closing {
	padding: clamp(80px, 10vw, 150px) 0;
	background:
		radial-gradient(55% 100% at 50% 100%, rgba(110, 8, 32, 0.5), transparent 70%),
		var(--tv-black);
	border-top: 1px solid var(--tv-line-soft);
}

.tv-closing__inner {
	text-align: center;
}

.tv-closing__rule {
	width: 56px;
	height: 1px;
	margin: 0 auto 2rem;
	background: var(--tv-gold);
}

.tv-closing__title {
	font-family: var(--tv-serif);
	font-size: clamp(2.25rem, 5.5vw, 4.25rem);
	font-weight: 300;
	line-height: 1.05;
	margin-bottom: 1.1rem;
}

.tv-closing .tv-lead {
	margin-inline: auto;
}

/* --- Scroll reveal (progressive; only active when JS says so) -------------- */

.tv-js .tv-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.tv-js .tv-reveal.is-in {
	opacity: 1;
	transform: none;
}

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

@media (max-width: 1080px) {
	.tv-sig__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tv-sig__item:nth-child(odd) {
		border-left: 0;
	}

	.tv-sig__item:nth-child(n + 3) {
		border-top: 1px solid var(--tv-line-soft);
	}
}

@media (max-width: 900px) {
	.tv-hero__grid,
	.tv-signature__grid,
	.tv-corp__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.tv-hero__media {
		order: -1;
	}

	.tv-hero__art {
		max-width: 280px;
	}

	.tv-doors__grid,
	.tv-guide__grid,
	.tv-showcase {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tv-signature__media {
		max-width: 340px;
	}
}

@media (max-width: 640px) {
	.tv-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tv-doors__grid,
	.tv-guide__grid,
	.tv-showcase {
		grid-template-columns: minmax(0, 1fr);
	}

	.tv-stats {
		gap: 1.75rem;
	}

	.tv-btn {
		width: 100%;
	}

	.tv-head--split {
		align-items: flex-start;
	}
}

/* --- Motion preference ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.tv-root :where(*) {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.tv-js .tv-reveal {
		opacity: 1;
		transform: none;
	}
}

/* =========================================================================
   Host-theme accommodations.
   The homepage paints its own full-bleed background, so the theme's page
   chrome (title bar, container padding, light background) is neutralised
   only on this one page.
   ========================================================================= */

body.tievera-home-page {
	background: var(--tv-black, #2b1219);
}

body.tievera-home-page .site-content,
body.tievera-home-page .page-content,
body.tievera-home-page .entry-content {
	padding-top: 0;
	padding-bottom: 0;
}

body.tievera-home-page .page-header,
body.tievera-home-page .entry-header,
body.tievera-home-page .page-title,
body.tievera-home-page .breadcrumbs {
	display: none;
}
