/* TRI-VONAR Concepts — custom theme styles */

:root {
	--tv-ink: #12100e;
	--tv-champagne: #bfa57a;
	--tv-ivory: #faf8f5;
	--tv-sand: #e8e0d4;
	--tv-stone: #8a8279;
	--tv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: var(--tv-ivory);
	background-image:
		radial-gradient(ellipse 80% 50% at 100% 0%, rgba(191, 165, 122, 0.08), transparent 55%),
		radial-gradient(ellipse 60% 40% at 0% 100%, rgba(18, 16, 14, 0.04), transparent 50%);
	background-attachment: fixed;
}

/* ——— Header ——— */
.tv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: rgba(250, 248, 245, 0.88);
	border-bottom: 1px solid rgba(18, 16, 14, 0.08);
	transition: background 0.35s var(--tv-ease);
}

.tv-header .wp-block-group {
	min-height: 4.25rem;
}

.tv-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none !important;
	color: inherit;
}

.tv-logo-img {
	height: 44px;
	width: auto;
	max-width: min(200px, 55vw);
	display: block;
	object-fit: contain;
}

@media (max-width: 600px) {
	.tv-logo-img {
		height: 34px;
		max-width: 150px;
	}

	.tv-header .wp-block-group {
		min-height: 3.5rem;
	}

	.tv-header .alignwide {
		gap: 0.75rem !important;
		width: 100%;
	}

	.tv-logo-link {
		min-width: 0;
		flex: 1 1 auto;
	}

	.tv-hero {
		min-height: min(88vh, 760px);
	}

	.tv-hero__brand {
		font-size: clamp(2.35rem, 12vw, 3.25rem);
	}

	.tv-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.tv-btn {
		width: 100%;
		text-align: center;
	}
}

.tv-brand-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	line-height: 1.1;
}

.tv-brand-name {
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-size: clamp(0.95rem, 1.6vw, 1.15rem);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tv-ink);
}

.tv-brand-tag {
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.62rem;
	font-weight: 450;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tv-champagne);
}

/* ——— Navigation (custom, works desktop + mobile) ——— */
.tv-header__row {
	width: 100%;
	gap: 1rem !important;
}

.tv-nav {
	position: relative;
	margin-left: auto;
	z-index: 120;
}

.tv-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tv-nav__link {
	display: inline-block;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 450;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--tv-ink) !important;
	padding: 0.35rem 0;
	position: relative;
	z-index: 2;
	pointer-events: auto;
	transition: color 0.25s var(--tv-ease);
}

.tv-nav__link:hover,
.tv-nav__item.is-current .tv-nav__link {
	color: var(--tv-champagne) !important;
}

.tv-nav__toggle {
	display: none;
	align-items: center;
	gap: 0.4rem;
	background: transparent;
	border: 1px solid rgba(18, 16, 14, 0.18);
	color: var(--tv-ink);
	padding: 0.45rem 0.7rem;
	cursor: pointer;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tv-nav__toggle-icon {
	width: 18px;
	height: 12px;
	position: relative;
	display: inline-block;
}

.tv-nav__toggle-icon::before,
.tv-nav__toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 1.5px;
	background: currentColor;
}

.tv-nav__toggle-icon::before {
	top: 1px;
	box-shadow: 0 5px 0 currentColor;
}

.tv-nav__toggle-icon::after {
	bottom: 1px;
}

.tv-nav.is-open .tv-nav__toggle-icon::before {
	top: 5px;
	box-shadow: none;
	transform: rotate(45deg);
}

.tv-nav.is-open .tv-nav__toggle-icon::after {
	bottom: 5px;
	transform: rotate(-45deg);
}

@media (max-width: 767px) {
	.tv-nav__toggle {
		display: inline-flex;
	}

	.tv-nav__panel {
		display: none;
		position: absolute;
		top: calc(100% + 0.75rem);
		right: 0;
		min-width: min(280px, 85vw);
		background: var(--tv-ivory);
		border: 1px solid var(--tv-sand);
		box-shadow: 0 16px 40px rgba(18, 16, 14, 0.12);
		padding: 0.5rem 1rem;
		z-index: 200;
	}

	.tv-nav.is-open .tv-nav__panel {
		display: block;
	}

	.tv-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.tv-nav__link {
		display: block;
		padding: 0.95rem 0.15rem;
		border-bottom: 1px solid var(--tv-sand);
		font-size: 0.85rem;
	}

	.tv-nav__item:last-child .tv-nav__link {
		border-bottom: none;
	}
}

@media (min-width: 768px) {
	.tv-nav__panel {
		display: block !important;
		position: static;
		border: 0;
		box-shadow: none;
		padding: 0;
		background: transparent;
		min-width: 0;
	}

	.tv-nav__toggle {
		display: none !important;
	}
}

/* Remove obsolete block-nav overrides */
.tv-header .wp-block-navigation {
	display: none !important;
}

/* ——— Hero ——— */
.tv-hero {
	position: relative;
	min-height: min(92vh, 900px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin-block: 0 !important;
	color: var(--tv-ivory);
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.tv-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.tv-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
	display: block;
	transform: scale(1.04);
	animation: tv-hero- ken 18s var(--tv-ease) forwards;
}

@keyframes tv-hero-ken {
	to {
		transform: scale(1);
	}
}

.tv-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(18, 16, 14, 0.35) 0%, rgba(18, 16, 14, 0.15) 35%, rgba(18, 16, 14, 0.72) 100%),
		linear-gradient(90deg, rgba(18, 16, 14, 0.55) 0%, transparent 55%);
	pointer-events: none;
}

.tv-hero__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.tv-hero__brand {
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-size: clamp(2.6rem, 7.5vw, 5.5rem);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 0.95;
	text-transform: uppercase;
	margin: 0 0 0.35rem;
	color: var(--tv-ivory);
	animation: tv-rise 0.9s var(--tv-ease) both;
}

.tv-hero__subbrand {
	font-family: "Outfit", system-ui, sans-serif;
	font-size: clamp(0.7rem, 1.2vw, 0.85rem);
	font-weight: 450;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--tv-champagne);
	margin: 0 0 1.75rem;
	animation: tv-rise 0.9s var(--tv-ease) 0.12s both;
}

.tv-hero__line {
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-size: clamp(1.25rem, 2.4vw, 1.75rem);
	font-weight: 400;
	font-style: italic;
	line-height: 1.35;
	max-width: 28ch;
	margin: 0 0 2rem;
	color: rgba(250, 248, 245, 0.9);
	animation: tv-rise 0.9s var(--tv-ease) 0.22s both;
}

.tv-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	animation: tv-rise 0.9s var(--tv-ease) 0.34s both;
}

@keyframes tv-rise {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.tv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.75rem;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: background 0.3s var(--tv-ease), color 0.3s var(--tv-ease), border-color 0.3s var(--tv-ease);
}

.tv-btn--primary {
	background: var(--tv-champagne);
	color: var(--tv-ink) !important;
	border-color: var(--tv-champagne);
}

.tv-btn--primary:hover {
	background: var(--tv-ivory);
	border-color: var(--tv-ivory);
	color: var(--tv-ink) !important;
}

.tv-btn--ghost {
	background: transparent;
	color: var(--tv-ivory) !important;
	border-color: rgba(250, 248, 245, 0.45);
}

.tv-btn--ghost:hover {
	background: rgba(250, 248, 245, 0.1);
	border-color: var(--tv-ivory);
}

.tv-btn--dark {
	background: var(--tv-ink);
	color: var(--tv-ivory) !important;
	border-color: var(--tv-ink);
}

.tv-btn--dark:hover {
	background: var(--tv-champagne);
	border-color: var(--tv-champagne);
	color: var(--tv-ink) !important;
}

/* ——— Sections ——— */
.tv-section {
	padding-block: clamp(3.5rem, 9vw, 7rem);
}

.tv-eyebrow {
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tv-champagne);
	margin: 0 0 0.85rem;
}

.tv-lead {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.7;
	color: var(--tv-stone);
	max-width: 42ch;
	margin: 0;
}

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

@media (min-width: 860px) {
	.tv-split {
		grid-template-columns: 1.05fr 0.95fr;
	}

	.tv-split--reverse .tv-split__media {
		order: 2;
	}

	.tv-split--reverse .tv-split__copy {
		order: 1;
	}
}

.tv-split__media img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	filter: saturate(0.92) contrast(1.02);
}

.tv-services {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border-top: 1px solid var(--tv-sand);
}

@media (min-width: 720px) {
	.tv-services {
		grid-template-columns: repeat(3, 1fr);
	}
}

.tv-service {
	padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
	border-bottom: 1px solid var(--tv-sand);
	transition: background 0.35s var(--tv-ease);
}

@media (min-width: 720px) {
	.tv-service {
		border-bottom: none;
		border-right: 1px solid var(--tv-sand);
	}

	.tv-service:last-child {
		border-right: none;
	}
}

.tv-service:hover {
	background: rgba(232, 224, 212, 0.35);
}

.tv-service__num {
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	color: var(--tv-champagne);
	margin: 0 0 1.25rem;
}

.tv-service h3 {
	font-family: "Cormorant Garamond", "Times New Roman", serif !important;
	font-size: clamp(1.5rem, 2.2vw, 1.85rem) !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em !important;
	text-transform: none !important;
	margin: 0 0 0.75rem;
}

.tv-service p {
	margin: 0;
	color: var(--tv-stone);
	font-size: 0.98rem;
	line-height: 1.65;
}

/* ——— CTA band ——— */
.tv-cta {
	background: var(--tv-ink);
	color: var(--tv-ivory);
	position: relative;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

.tv-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 80% at 85% 20%, rgba(191, 165, 122, 0.18), transparent 55%);
	pointer-events: none;
}

.tv-cta .tv-eyebrow {
	color: var(--tv-champagne);
}

.tv-cta__inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 var(--wp--preset--spacing--40);
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

@media (min-width: 860px) {
	.tv-cta__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}
}

.tv-cta__copy h2 {
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 500;
	margin: 0;
	line-height: 1.08;
	color: var(--tv-ivory);
	max-width: 16ch;
}

.tv-cta__copy p {
	margin: 1rem 0 0;
	color: rgba(250, 248, 245, 0.72);
	font-size: 1.05rem;
	line-height: 1.7;
	max-width: 48ch;
}

.tv-cta__actions {
	margin-top: 1.75rem;
}

.tv-cta__media {
	margin: 0;
	width: 100%;
}

.tv-cta__media img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 20%;
	filter: saturate(1.02) contrast(1.04);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 859px) {
	.tv-cta__media {
		order: -1;
	}
}

/* ——— Page hero (inner) ——— */
.tv-page-hero {
	padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--tv-sand);
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.tv-page-hero h1 {
	margin: 0 0 0.75rem;
}

.tv-page-hero p {
	margin: 0;
	color: var(--tv-stone);
	max-width: 42ch;
	font-size: 1.1rem;
}

/* ——— Contact ——— */
.tv-contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 780px) {
	.tv-contact-grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.tv-contact-item {
	margin-bottom: 1.75rem;
}

.tv-contact-item h3 {
	margin: 0 0 0.4rem;
	font-size: 0.72rem !important;
	color: var(--tv-champagne);
}

.tv-contact-item p,
.tv-contact-item a {
	margin: 0;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-size: 1.35rem;
	line-height: 1.4;
	text-decoration: none;
}

.tv-contact-item a:hover {
	color: var(--tv-champagne);
}

/* ——— Footer ——— */
.tv-footer {
	background: var(--tv-ink);
	color: rgba(250, 248, 245, 0.72);
	padding-block: clamp(2.5rem, 5vw, 3.5rem) !important;
	margin-top: 0 !important;
}

.tv-footer a {
	color: rgba(250, 248, 245, 0.85) !important;
	text-decoration: none;
	transition: color 0.25s var(--tv-ease);
}

.tv-footer a:hover {
	color: var(--tv-champagne) !important;
}

.tv-footer__brand {
	font-family: "Cormorant Garamond", "Times New Roman", serif;
	font-size: 1.25rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tv-ivory);
	margin: 0 0 0.35rem;
}

.tv-footer__meta {
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	line-height: 1.7;
}

.tv-footer__copy {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(250, 248, 245, 0.4);
	margin: 0;
}

.tv-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(250, 248, 245, 0.12);
}

.tv-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 1.15rem;
}

.tv-footer__legal a {
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(250, 248, 245, 0.65) !important;
}

.tv-footer__legal a:hover {
	color: var(--tv-champagne) !important;
}

.tv-footer__legal--bar {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
	margin-top: 0;
}

.tv-footer__sep {
	color: rgba(250, 248, 245, 0.28);
	font-size: 0.72rem;
}

@media (max-width: 781px) {
	.tv-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}

	.tv-footer__legal--bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
	}

	.tv-footer__legal--bar .tv-footer__sep {
		display: none;
	}
}

/* ——— Legal pages ——— */
.tv-legal {
	max-width: 720px;
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.tv-legal__updated {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tv-stone);
	margin: 0 0 2rem;
}

.tv-legal h2 {
	font-family: "Cormorant Garamond", "Times New Roman", serif !important;
	font-size: clamp(1.35rem, 2.4vw, 1.65rem) !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	margin: 2rem 0 0.75rem;
}

.tv-legal p,
.tv-legal li {
	color: var(--tv-stone);
	font-size: 1rem;
	line-height: 1.7;
}

.tv-legal ul {
	margin: 0 0 1rem;
	padding-left: 1.15rem;
}

.tv-legal li {
	margin-bottom: 0.4rem;
}

.tv-legal a {
	color: var(--tv-ink);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.tv-legal a:hover {
	color: var(--tv-champagne);
}

/* ——— Forms ——— */
.tv-form input[type="text"],
.tv-form input[type="email"],
.tv-form input[type="tel"],
.tv-form textarea {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--tv-sand);
	border-radius: 0;
	padding: 0.85rem 0;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 1rem;
	color: var(--tv-ink);
	margin-bottom: 1.25rem;
	outline: none;
	transition: border-color 0.25s var(--tv-ease);
}

.tv-form input:focus,
.tv-form textarea:focus {
	border-bottom-color: var(--tv-champagne);
}

.tv-form textarea {
	min-height: 140px;
	resize: vertical;
}

.tv-form label {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tv-stone);
	margin-bottom: 0.15rem;
}

.tv-form .wpcf7-submit,
.tv-form button[type="submit"],
.tv-form input[type="submit"] {
	margin-top: 0.5rem;
	cursor: pointer;
	appearance: none;
	border: 1px solid var(--tv-ink);
	background: var(--tv-ink);
	color: var(--tv-ivory);
	padding: 1rem 1.75rem;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background 0.3s var(--tv-ease), color 0.3s var(--tv-ease);
}

.tv-form .wpcf7-submit:hover,
.tv-form button[type="submit"]:hover,
.tv-form input[type="submit"]:hover {
	background: var(--tv-champagne);
	border-color: var(--tv-champagne);
	color: var(--tv-ink);
}

/* ——— Utilities ——— */
.tv-rule {
	width: 3rem;
	height: 1px;
	background: var(--tv-champagne);
	border: none;
	margin: 1.25rem 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.tv-hero__media img,
	.tv-hero__brand,
	.tv-hero__subbrand,
	.tv-hero__line,
	.tv-hero__actions {
		animation: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}
