/*
Theme Name: Torvex Child
Template: astra
Version: 1.0.0
Description: Child theme for the Torvex demo site, built on Astra. All custom styling lives here.
Text Domain: torvex-child
*/

:root {
	--tv-navy: #0b1f33;
	--tv-navy-2: #102a44;
	--tv-orange: #e36414;
	--tv-orange-dark: #c2540e;
	--tv-head: #0f1f33;
	--tv-text: #475569;
	--tv-muted: #64748b;
	--tv-light: #f3f6f9;
	--tv-border: #e2e8f0;
	--tv-radius: 8px;
	--tv-shadow: 0 12px 32px rgba(15, 31, 51, 0.08);
}

/* ---------- Sections & layout ---------- */

.tv-section {
	padding: 88px 24px;
}

.tv-light {
	background: var(--tv-light);
}

.tv-dark {
	background: var(--tv-navy);
	color: #cbd5e1;
}

.tv-dark h1,
.tv-dark h2,
.tv-dark h3,
.tv-dark h4 {
	color: #fff;
}

.tv-wrap {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.tv-section h2.wp-block-heading,
.tv-cta h2.wp-block-heading {
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.tv-section h3.wp-block-heading {
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
}

.tv-head {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

.tv-head h2.wp-block-heading {
	margin: 0 0 16px;
}

.tv-head p:last-child {
	margin-bottom: 0;
}

.tv-eyebrow {
	color: var(--tv-orange);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 12px !important;
}

.tv-grid {
	display: grid;
	gap: 28px;
}

.tv-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.tv-grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.tv-grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

.tv-grid > *,
.tv-stats > * {
	margin: 0 !important;
}

.tv-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.tv-split-contact {
	grid-template-columns: 5fr 7fr;
	align-items: start;
}

.tv-split > * {
	margin: 0 !important;
}

.tv-split .wp-block-image img {
	width: 100%;
	border-radius: var(--tv-radius);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	box-shadow: var(--tv-shadow);
	display: block;
}

.tv-split h2.wp-block-heading {
	margin: 0 0 18px;
}

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

.tv-btns {
	gap: 14px;
}

.tv-btn-primary .wp-block-button__link,
.tv-btn-ghost .wp-block-button__link,
.tv-btn-outline .wp-block-button__link,
.tv-btn-whatsapp .wp-block-button__link {
	padding: 15px 30px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tv-btn-primary .wp-block-button__link {
	background: var(--tv-orange);
	color: #fff;
	border: 2px solid var(--tv-orange);
}

.tv-btn-primary .wp-block-button__link:hover {
	background: var(--tv-orange-dark);
	border-color: var(--tv-orange-dark);
	color: #fff;
}

.tv-btn-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.7);
}

.tv-btn-ghost .wp-block-button__link:hover {
	background: #fff;
	color: var(--tv-navy);
	border-color: #fff;
}

.tv-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--tv-head);
	border: 2px solid var(--tv-head);
}

.tv-btn-outline .wp-block-button__link:hover {
	background: var(--tv-head);
	color: #fff;
}

.tv-btn-whatsapp .wp-block-button__link {
	background: #25d366;
	color: #fff;
	border: 2px solid #25d366;
}

.tv-btn-whatsapp .wp-block-button__link:hover {
	background: #1ebe5b;
	border-color: #1ebe5b;
	color: #fff;
}

/* ---------- Hero, page banners, call to action ---------- */

.wp-block-cover.tv-hero {
	min-height: 640px;
	padding: 96px 24px;
}

.tv-hero .wp-block-cover__background,
.tv-banner .wp-block-cover__background {
	background: linear-gradient(90deg, rgba(11, 31, 51, 0.94) 0%, rgba(11, 31, 51, 0.78) 50%, rgba(11, 31, 51, 0.35) 100%) !important;
	opacity: 1 !important;
}

.tv-hero-inner {
	max-width: 680px;
}

.tv-hero h1.wp-block-heading {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.12;
	font-weight: 800;
	color: #fff;
	margin: 0 0 22px;
	letter-spacing: -0.015em;
}

.tv-lead {
	font-size: 19px;
	line-height: 1.7;
	color: #e2e8f0;
	margin: 0 0 34px !important;
}

/* Astra colors every paragraph inside a cover block with the body text color; keep ours. */
body .wp-block-cover .tv-lead,
body .wp-block-cover .tv-cta p,
body .wp-block-cover.tv-cta p {
	color: #e2e8f0 !important;
}

body .wp-block-cover p.tv-eyebrow {
	color: var(--tv-orange) !important;
}

body .wp-block-cover.tv-banner p {
	color: #cbd5e1 !important;
}

body .wp-block-cover.tv-banner p.tv-crumbs {
	color: #94a3b8 !important;
}

.wp-block-cover.tv-banner {
	min-height: 340px;
	padding: 80px 24px;
}

.tv-banner h1.wp-block-heading {
	color: #fff;
	font-size: clamp(32px, 4.4vw, 50px);
	font-weight: 800;
	margin: 0 0 12px;
}

.tv-banner p {
	color: #cbd5e1;
	font-size: 18px;
	margin: 0;
	max-width: 680px;
}

.tv-banner p.tv-crumbs {
	font-size: 14px;
	color: #94a3b8;
	margin: 0 0 14px;
}

.tv-crumbs a {
	color: #e2e8f0;
	text-decoration: none;
}

.tv-crumbs a:hover {
	color: var(--tv-orange);
}

.wp-block-cover.tv-cta {
	min-height: 420px;
	padding: 80px 24px;
	text-align: center;
}

.tv-cta h2.wp-block-heading {
	color: #fff;
	margin: 0 0 16px;
}

.tv-cta p {
	color: #e2e8f0;
	font-size: 18px;
	max-width: 640px;
	margin: 0 auto 32px;
}

.tv-cta .wp-block-buttons {
	justify-content: center;
}

/* ---------- Stats bar ---------- */

.tv-statsbar {
	background: var(--tv-navy-2);
	padding: 44px 24px;
}

.tv-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.tv-stat {
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-stat:last-child {
	border-right: 0;
}

.tv-stats .tv-stat h3.wp-block-heading,
.tv-stat-num {
	font-size: 40px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 6px;
	line-height: 1.1;
}

.tv-stat p {
	color: #94a3b8;
	margin: 0;
	font-size: 15px;
}

/* ---------- Product cards ---------- */

.tv-card {
	background: #fff;
	border: 1px solid var(--tv-border);
	border-radius: var(--tv-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s, box-shadow 0.25s;
}

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

.tv-card .wp-block-image {
	margin: 0;
}

.tv-card .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.tv-card-body {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tv-card-body h3.wp-block-heading {
	margin: 0 0 10px;
}

.entry-content .tv-card-body h3 a,
.entry-content .tv-more a,
.entry-content ul.tv-contact-list a {
	color: var(--tv-head);
	text-decoration: none;
}

.entry-content .tv-crumbs a {
	color: #e2e8f0;
	text-decoration: none;
}

.tv-card-body h3 a:hover {
	color: var(--tv-orange);
}

.tv-card-body p {
	font-size: 15px;
	color: var(--tv-text);
	margin: 0 0 16px;
}

.tv-card-body p.tv-more {
	margin: auto 0 0;
}

.tv-more a {
	font-weight: 700;
	color: var(--tv-orange);
	text-decoration: none;
}

.tv-more a:hover {
	color: var(--tv-orange-dark);
}

/* ---------- Feature boxes, process steps ---------- */

.tv-feature {
	background: #fff;
	border: 1px solid var(--tv-border);
	border-radius: var(--tv-radius);
	padding: 32px 28px;
	transition: box-shadow 0.25s, border-color 0.25s;
}

.tv-feature:hover {
	box-shadow: var(--tv-shadow);
	border-color: transparent;
}

.tv-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: rgba(227, 100, 20, 0.1);
	color: var(--tv-orange);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.tv-icon svg {
	width: 26px;
	height: 26px;
}

.tv-feature h3.wp-block-heading {
	margin: 0 0 10px;
}

.tv-feature p {
	font-size: 15px;
	margin: 0;
}

.tv-steps {
	counter-reset: tvstep;
}

.tv-step {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--tv-radius);
	padding: 28px;
}

.tv-step::before {
	counter-increment: tvstep;
	content: "0" counter(tvstep);
	display: block;
	font-size: 34px;
	font-weight: 800;
	color: var(--tv-orange);
	line-height: 1;
	margin-bottom: 16px;
}

.tv-step h3.wp-block-heading {
	margin: 0 0 8px;
	font-size: 19px;
}

.tv-step p {
	font-size: 15px;
	margin: 0;
	color: #94a3b8;
}

.tv-light .tv-step {
	background: #fff;
	border-color: var(--tv-border);
}

.tv-light .tv-step p {
	color: var(--tv-text);
}

/* ---------- Lists ---------- */

ul.tv-check {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
}

ul.tv-check li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 12px;
	color: var(--tv-head);
	font-weight: 500;
}

ul.tv-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--tv-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

ul.tv-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

ul.tv-chips.tv-chips-left {
	justify-content: flex-start;
}

ul.tv-chips li {
	background: #fff;
	border: 1px solid var(--tv-border);
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 600;
	color: var(--tv-head);
	font-size: 15px;
	margin: 0;
}

.tv-light ul.tv-chips li {
	box-shadow: 0 2px 6px rgba(15, 31, 51, 0.04);
}

/* ---------- FAQ ---------- */

.tv-faq {
	max-width: 860px;
	margin: 0 auto;
}

.tv-faq .wp-block-details {
	border: 1px solid var(--tv-border);
	border-radius: var(--tv-radius);
	padding: 20px 24px;
	margin: 0 0 14px;
	background: #fff;
}

.tv-faq summary {
	font-weight: 700;
	color: var(--tv-head);
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 32px;
	font-size: 17px;
}

.tv-faq summary::-webkit-details-marker {
	display: none;
}

.tv-faq summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 26px;
	line-height: 1;
	color: var(--tv-orange);
	font-weight: 400;
}

.tv-faq details[open] summary::after {
	content: "\2212";
}

.tv-faq details p {
	margin: 14px 0 0;
}

/* ---------- Spec table ---------- */

.wp-block-table.tv-spec {
	margin: 0;
}

.tv-spec table {
	border-collapse: collapse;
	width: 100%;
	background: #fff;
	border: 1px solid var(--tv-border);
}

.tv-spec td {
	border: 0;
	border-bottom: 1px solid var(--tv-border);
	padding: 16px 20px;
	font-size: 15px;
	vertical-align: top;
}

.tv-spec tr:last-child td {
	border-bottom: 0;
}

.tv-spec td:first-child {
	width: 32%;
	font-weight: 700;
	color: var(--tv-head);
	background: #f8fafc;
}

/* ---------- Contact & inquiry form ---------- */

.tv-form-card {
	background: #fff;
	border: 1px solid var(--tv-border);
	border-radius: 12px;
	padding: 40px;
	box-shadow: var(--tv-shadow);
}

.tv-form-card h2.wp-block-heading,
.tv-form-card h3.wp-block-heading {
	margin: 0 0 8px;
}

.tv-form-card > p {
	margin-bottom: 24px;
}

.tv-narrow {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.tv-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 20px;
	margin-bottom: 0 !important;
}

.wpcf7 form p {
	margin: 0 0 18px;
}

.wpcf7 label {
	display: block;
	font-weight: 600;
	color: var(--tv-head);
	font-size: 14px;
}

.wpcf7 .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 12px 14px;
	font-size: 15px;
	background: #fff;
	color: var(--tv-head);
	box-shadow: none;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: var(--tv-orange);
	outline: none;
	box-shadow: 0 0 0 3px rgba(227, 100, 20, 0.15);
}

.wpcf7 textarea {
	height: 140px;
}

.wpcf7 input[type="file"] {
	font-size: 14px;
}

.wpcf7 input[type="submit"] {
	background: var(--tv-orange);
	color: #fff;
	border: 0;
	border-radius: 4px;
	padding: 15px 38px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	background: var(--tv-orange-dark);
}

.wpcf7 .wpcf7-spinner {
	vertical-align: middle;
}

.tv-form-note {
	font-size: 13px !important;
	color: var(--tv-muted);
}

.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	border-radius: 6px;
	padding: 12px 16px;
}

ul.tv-contact-list {
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
}

ul.tv-contact-list li {
	padding: 16px 0;
	border-bottom: 1px solid var(--tv-border);
	margin: 0;
	color: var(--tv-head);
}

ul.tv-contact-list li:first-child {
	padding-top: 0;
}

ul.tv-contact-list strong {
	display: block;
	color: var(--tv-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 4px;
}

/* ---------- Image gallery with captions ---------- */

.tv-gallery .wp-block-image {
	margin: 0;
}

.tv-gallery .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--tv-radius);
	display: block;
}

.tv-gallery .wp-element-caption {
	text-align: left;
	font-weight: 600;
	color: var(--tv-head);
	font-size: 15px;
	margin-top: 12px;
}

/* ---------- Latest posts ---------- */

.tv-section .wp-block-latest-posts.is-grid {
	margin: 0;
	padding: 0;
}

.tv-section .wp-block-latest-posts.is-grid li {
	background: #fff;
	border: 1px solid var(--tv-border);
	border-radius: var(--tv-radius);
	overflow: hidden;
	padding: 0 0 22px;
}

.tv-section .wp-block-latest-posts__featured-image {
	margin: 0 0 18px;
}

.tv-section .wp-block-latest-posts__featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.tv-section .wp-block-latest-posts__post-title {
	display: block;
	padding: 0 22px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.4;
	color: var(--tv-head);
	text-decoration: none;
}

.tv-section .wp-block-latest-posts__post-title:hover {
	color: var(--tv-orange);
}

.tv-section .wp-block-latest-posts__post-date,
.tv-section .wp-block-latest-posts__post-excerpt {
	padding: 0 22px;
	font-size: 14px;
}

.tv-section .wp-block-latest-posts__post-date {
	color: var(--tv-muted);
	margin-top: 6px;
}

.tv-section .wp-block-latest-posts__post-excerpt {
	margin: 10px 0 0;
}

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

.site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0);
	z-index: 99;
}

.ast-above-header-bar,
.ast-above-header-bar p,
.ast-above-header-bar a {
	color: #cbd5e1;
	font-size: 13.5px;
}

.ast-above-header-bar a {
	text-decoration: none;
}

.ast-above-header-bar a:hover {
	color: #fff;
}

.ast-primary-header-bar {
	box-shadow: 0 2px 14px rgba(15, 31, 51, 0.07);
}

.main-header-menu .menu-link {
	font-weight: 600;
	color: var(--tv-head);
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link {
	color: var(--tv-orange);
}

.ast-header-button-1 .ast-custom-button {
	background: var(--tv-orange);
	border-radius: 4px;
	font-weight: 700;
	padding: 12px 22px;
	color: #fff;
}

.ast-header-button-1 .ast-custom-button:hover {
	background: var(--tv-orange-dark);
	color: #fff;
}

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

.site-primary-footer-wrap {
	padding-top: 64px;
	padding-bottom: 40px;
}

.site-footer,
.site-footer p,
.site-footer li {
	color: #94a3b8;
	font-size: 15px;
}

.site-footer .wp-block-heading {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 18px;
}

.site-footer a {
	color: #cbd5e1;
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--tv-orange);
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer li {
	margin-bottom: 10px;
}

.site-below-footer-wrap {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ast-footer-copyright,
.ast-footer-copyright p {
	color: #64748b;
	font-size: 14px;
}

/* ---------- Blog posts ---------- */

.tv-archive-banner {
	background: var(--tv-navy) linear-gradient(120deg, #0b1f33 0%, #123a5c 100%);
	padding: 72px 24px;
}

.tv-archive-banner h1 {
	color: #fff;
	font-size: clamp(28px, 3.8vw, 44px);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 12px;
	max-width: 900px;
}

.tv-archive-banner p {
	color: #cbd5e1;
	font-size: 17px;
	margin: 0;
}

.tv-archive-banner p.tv-crumbs {
	color: #94a3b8;
	font-size: 14px;
	margin-bottom: 14px;
}

.tv-archive-banner .tv-crumbs a {
	color: #e2e8f0;
	text-decoration: none;
}

.tv-archive-banner .tv-crumbs a:hover {
	color: var(--tv-orange);
}

/* The banner already shows the post title and date. */
.single-post .entry-header .entry-title,
.single-post .entry-header .entry-meta {
	display: none;
}

.single-post .entry-content h2.wp-block-heading {
	font-size: 26px;
	margin-top: 36px;
}

.single-post .tv-post-cta {
	background: var(--tv-light);
	border-left: 4px solid var(--tv-orange);
	padding: 20px 24px;
	border-radius: 4px;
	margin-top: 36px;
}

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

@media (max-width: 1024px) {
	.tv-grid-3,
	.tv-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 921px) {
	.tv-section {
		padding: 64px 20px;
	}

	.wp-block-cover.tv-hero {
		min-height: 540px;
		padding: 72px 20px;
	}

	.tv-split,
	.tv-split-contact {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.tv-stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 32px;
	}

	.tv-stat:nth-child(2) {
		border-right: 0;
	}
}

@media (max-width: 640px) {
	.tv-grid-2,
	.tv-grid-3,
	.tv-grid-4,
	.tv-form-grid {
		grid-template-columns: 1fr;
	}

	.tv-form-card {
		padding: 24px;
	}

	.tv-lead {
		font-size: 17px;
	}

	.tv-stats .tv-stat h3.wp-block-heading {
		font-size: 26px;
		white-space: nowrap;
	}

	.tv-stat p {
		font-size: 13px;
	}

	.tv-spec td {
		padding: 12px 14px;
	}
}
