/*
Theme Name: DALESH Astra Child
Theme URI: https://dalesh.org
Author: DALESH deployment
Description: Astra child theme with DALESH B2B styling for Elementor-built pages.
Version: 1.0.1
Template: astra
Requires at least: 6.0
Requires PHP: 8.1
Text Domain: dalesh-astra-child
*/

:root {
	--dalesh-red: #c81d1d;
	--dalesh-red-dark: #8f1116;
	--dalesh-ink: #161b22;
	--dalesh-slate: #3b4656;
	--dalesh-muted: #667085;
	--dalesh-line: #e5e7eb;
	--dalesh-bg: #f6f7f9;
	--dalesh-teal: #0f766e;
	--dalesh-gold: #b7791f;
	--dalesh-white: #ffffff;
	--dalesh-shadow: 0 18px 45px rgba(22, 27, 34, 0.08);
}

body {
	color: var(--dalesh-ink);
	background: var(--dalesh-white);
	font-family: Inter, Arial, Helvetica, sans-serif;
	overflow-x: hidden;
}

.dalesh-page *,
.dalesh-page *::before,
.dalesh-page *::after {
	box-sizing: border-box;
	min-width: 0;
}

a {
	color: var(--dalesh-red);
}

a:hover,
a:focus {
	color: var(--dalesh-red-dark);
}

.ast-primary-header-bar {
	border-bottom-color: rgba(22, 27, 34, 0.08);
	box-shadow: 0 8px 30px rgba(22, 27, 34, 0.04);
}

.site-title a,
.ast-site-title-wrap .site-title a {
	color: var(--dalesh-ink);
	font-weight: 800;
	letter-spacing: 0;
}

.ast-site-title-wrap {
	display: none;
}

.site-logo-img img {
	width: auto;
	max-width: 240px;
	height: auto;
}

.site-description {
	color: var(--dalesh-muted);
}

.main-header-menu .menu-link {
	color: var(--dalesh-slate);
	font-weight: 650;
}

@media (min-width: 922px) {
	.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
		padding-right: 12px;
		padding-left: 12px;
		font-size: 0.94rem;
	}
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
	color: var(--dalesh-red);
}

.ast-custom-button,
.ast-builder-button-wrap .ast-custom-button {
	border-radius: 6px;
	background: var(--dalesh-red);
	border-color: var(--dalesh-red);
	font-weight: 750;
}

.ast-custom-button:hover,
.ast-builder-button-wrap .ast-custom-button:hover {
	background: var(--dalesh-red-dark);
	border-color: var(--dalesh-red-dark);
}

.dalesh-page {
	max-width: 100vw;
	overflow-x: hidden;
}

.dalesh-shell {
	width: min(1180px, 100%);
	max-width: 100%;
	margin: 0 auto;
	padding-right: 20px;
	padding-left: 20px;
}

.dalesh-hero {
	padding: clamp(54px, 8vw, 96px) 0 clamp(42px, 7vw, 84px);
	background:
		linear-gradient(120deg, rgba(200, 29, 29, 0.10), transparent 32%),
		linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.dalesh-hero-grid,
.dalesh-split {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.dalesh-eyebrow {
	margin: 0 0 12px;
	color: var(--dalesh-red);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dalesh-hero h1,
.dalesh-section h2,
.dalesh-final h2 {
	margin: 0;
	color: var(--dalesh-ink);
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.04;
}

.dalesh-hero h1 {
	font-size: clamp(2.35rem, 5vw, 4.8rem);
	max-width: 880px;
}

.dalesh-hero h1,
.dalesh-section h2,
.dalesh-card h3,
.dalesh-eyebrow,
.dalesh-lede,
.dalesh-section p,
.dalesh-card p,
.dalesh-contact-card p,
.dalesh-fact p,
.dalesh-asset-hero-caption strong,
.dalesh-btn,
.dalesh-link-btn {
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: normal !important;
	word-break: break-word;
}

.dalesh-section h2,
.dalesh-final h2 {
	font-size: clamp(1.75rem, 3vw, 3rem);
}

.dalesh-lede,
.dalesh-section p,
.dalesh-card p,
.dalesh-product-note,
.dalesh-proof p {
	color: var(--dalesh-muted);
	font-size: 1rem;
	line-height: 1.75;
}

.dalesh-lede {
	max-width: 740px;
	margin: 22px 0 0;
	font-size: clamp(1.04rem, 1.5vw, 1.22rem);
}

.dalesh-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.dalesh-btn,
.dalesh-link-btn,
	.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 6px;
	border: 1px solid var(--dalesh-red);
	background: var(--dalesh-red);
	color: #ffffff;
	font-weight: 800;
	text-decoration: none;
	line-height: 1.1;
}

.dalesh-btn:hover,
.dalesh-btn:focus,
.dalesh-link-btn:hover,
.dalesh-link-btn:focus,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--dalesh-red-dark);
	border-color: var(--dalesh-red-dark);
	color: #ffffff;
}

.dalesh-btn-secondary {
	background: #ffffff;
	color: var(--dalesh-red);
}

.dalesh-visual {
	position: relative;
	min-height: 430px;
	padding: 22px;
	background: #ffffff;
	border: 1px solid var(--dalesh-line);
	border-radius: 8px;
	box-shadow: var(--dalesh-shadow);
}

.dalesh-visual::before,
.dalesh-visual::after {
	content: "";
	position: absolute;
	border-radius: 6px;
	background: var(--dalesh-red);
	opacity: 0.08;
}

.dalesh-visual::before {
	inset: 36px 44px auto auto;
	width: 170px;
	height: 170px;
}

.dalesh-visual::after {
	left: 30px;
	bottom: 34px;
	width: 120px;
	height: 120px;
	background: var(--dalesh-teal);
}

.dalesh-visual-main,
.dalesh-visual-small {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 255px;
	padding: 22px;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(22, 27, 34, 0.84), rgba(22, 27, 34, 0.54)),
		repeating-linear-gradient(45deg, #eef0f4, #eef0f4 10px, #ffffff 10px, #ffffff 20px);
	color: #ffffff;
}

.dalesh-visual-small {
	width: min(82%, 330px);
	min-height: 138px;
	margin: -46px 0 0 auto;
	background:
		linear-gradient(135deg, rgba(200, 29, 29, 0.92), rgba(143, 17, 22, 0.82)),
		repeating-linear-gradient(45deg, #f4d7d7, #f4d7d7 10px, #ffffff 10px, #ffffff 20px);
	box-shadow: 0 18px 40px rgba(143, 17, 22, 0.2);
}

.dalesh-visual span {
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.dalesh-visual strong {
	max-width: 320px;
	margin-top: 10px;
	font-size: 1.45rem;
	line-height: 1.15;
}

.dalesh-section {
	padding: clamp(46px, 7vw, 86px) 0;
}

.dalesh-muted-section {
	background: var(--dalesh-bg);
}

.dalesh-heading-row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: end;
	margin-bottom: 30px;
}

.dalesh-heading-row > div {
	max-width: 760px;
}

.dalesh-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.dalesh-card,
.dalesh-proof,
.dalesh-form-shell {
	padding: 24px;
	border: 1px solid var(--dalesh-line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(22, 27, 34, 0.05);
}

.dalesh-card h3 {
	margin: 0 0 10px;
	color: var(--dalesh-ink);
	font-size: 1.16rem;
	font-weight: 800;
}

.dalesh-card p {
	margin: 0;
}

.dalesh-card-accent {
	border-top: 4px solid var(--dalesh-red);
}

.dalesh-value-grid,
.dalesh-buyer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.dalesh-value-grid span,
.dalesh-buyer-grid span {
	display: flex;
	align-items: center;
	min-height: 54px;
	padding: 14px 16px;
	border: 1px solid rgba(22, 27, 34, 0.08);
	border-radius: 6px;
	background: #ffffff;
	color: var(--dalesh-slate);
	font-weight: 750;
}

.dalesh-fact-grid,
.dalesh-contact-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 26px 0;
}

.dalesh-fact,
.dalesh-contact-card,
.dalesh-source-note {
	padding: 20px;
	border: 1px solid var(--dalesh-line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 26px rgba(22, 27, 34, 0.04);
}

.dalesh-fact span,
.dalesh-contact-card span {
	display: block;
	margin-bottom: 8px;
	color: var(--dalesh-red);
	font-size: 0.74rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dalesh-fact strong,
.dalesh-contact-card strong {
	display: block;
	color: var(--dalesh-ink);
	font-size: 1.14rem;
	line-height: 1.25;
}

.dalesh-source-note {
	margin-top: 24px;
	border-color: rgba(200, 29, 29, 0.18);
	background: #fff8f8;
}

.dalesh-detail-table {
	width: 100%;
	margin: 24px 0;
	border-collapse: collapse;
	overflow: hidden;
	border: 1px solid var(--dalesh-line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 26px rgba(22, 27, 34, 0.04);
}

.dalesh-detail-table th,
.dalesh-detail-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--dalesh-line);
	text-align: left;
	vertical-align: top;
}

.dalesh-detail-table th {
	width: 28%;
	color: var(--dalesh-ink);
	font-weight: 850;
}

.dalesh-detail-table tr:last-child th,
.dalesh-detail-table tr:last-child td {
	border-bottom: 0;
}

.dalesh-page-content .dalesh-contact-card p,
.dalesh-page-content .dalesh-fact p {
	margin-bottom: 0;
}

.dalesh-red-band {
	background: linear-gradient(135deg, var(--dalesh-red), var(--dalesh-red-dark));
	color: #ffffff;
}

.dalesh-red-band h2,
.dalesh-red-band p,
.dalesh-red-band .dalesh-eyebrow {
	color: #ffffff;
}

.dalesh-red-band .dalesh-btn {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--dalesh-red);
}

.dalesh-proof-grid {
	display: grid;
	grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
	gap: clamp(24px, 5vw, 56px);
	align-items: center;
}

.dalesh-proof-visual {
	position: relative;
	display: flex;
	min-height: 320px;
	align-items: flex-end;
	padding: 24px;
	border-radius: 8px;
	background:
		linear-gradient(135deg, rgba(15, 118, 110, 0.80), rgba(22, 27, 34, 0.84)),
		repeating-linear-gradient(90deg, #e8ecef, #e8ecef 14px, #ffffff 14px, #ffffff 28px);
	color: #ffffff;
	font-weight: 800;
	box-shadow: var(--dalesh-shadow);
}

.dalesh-asset-hero {
	position: relative;
	overflow: hidden;
	min-height: 430px;
	border-radius: 8px;
	background: #111827;
	box-shadow: var(--dalesh-shadow);
}

.dalesh-asset-hero img,
.dalesh-proof-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dalesh-asset-hero img {
	position: absolute;
	inset: 0;
	opacity: 0.72;
}

.dalesh-asset-hero-caption {
	position: absolute;
	right: 22px;
	bottom: 22px;
	left: 22px;
	padding: 18px;
	border-radius: 8px;
	background: rgba(17, 24, 39, 0.78);
	color: #ffffff;
	backdrop-filter: blur(10px);
}

.dalesh-asset-hero-caption span {
	display: block;
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dalesh-asset-hero-caption strong {
	display: block;
	margin-top: 8px;
	font-size: 1.3rem;
	line-height: 1.2;
}

.dalesh-media-grid,
.dalesh-certificate-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 28px;
	margin-bottom: clamp(28px, 4vw, 48px);
}

.dalesh-media-card,
.dalesh-certificate-card {
	overflow: hidden;
	border: 1px solid var(--dalesh-line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(22, 27, 34, 0.05);
}

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

.dalesh-certificate-card {
	padding: 14px;
}

.dalesh-certificate-card img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--dalesh-line);
	border-radius: 6px;
	background: #ffffff;
}

.dalesh-media-card figcaption,
.dalesh-certificate-card figcaption {
	padding: 14px 16px 16px;
	color: var(--dalesh-slate);
	font-weight: 750;
	line-height: 1.35;
}

.dalesh-proof-visual {
	overflow: hidden;
	padding: 0;
}

.dalesh-proof-visual span {
	position: absolute;
	right: 20px;
	bottom: 20px;
	left: 20px;
	padding: 14px 16px;
	border-radius: 8px;
	background: rgba(17, 24, 39, 0.78);
	color: #ffffff;
}

.dalesh-faq details {
	padding: 18px 0;
	border-bottom: 1px solid var(--dalesh-line);
}

.dalesh-faq summary {
	cursor: pointer;
	color: var(--dalesh-ink);
	font-weight: 800;
}

.dalesh-final {
	padding: clamp(46px, 7vw, 78px) 0;
	background: #111827;
	color: #ffffff;
	text-align: center;
}

.dalesh-final h2,
.dalesh-final p {
	color: #ffffff;
}

.dalesh-final .dalesh-actions {
	justify-content: center;
}

.dalesh-page-content h2,
.dalesh-page-content h3 {
	color: var(--dalesh-ink);
	font-weight: 850;
	letter-spacing: 0;
}

.dalesh-page-content ul,
.dalesh-page-content ol {
	margin-left: 1.1rem;
}

.dalesh-page-content li {
	margin: 0.45rem 0;
}

.dalesh-form-shell .wpcf7 input,
.dalesh-form-shell .wpcf7 textarea,
.dalesh-form-shell .wpcf7 select {
	width: 100%;
	border: 1px solid var(--dalesh-line);
	border-radius: 6px;
	padding: 11px 12px;
}

.dalesh-form-shell .wpcf7-submit {
	width: auto;
	background: var(--dalesh-red);
	border-color: var(--dalesh-red);
	color: #ffffff;
	font-weight: 800;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	padding: 18px;
	border: 1px solid var(--dalesh-line);
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 28px rgba(22, 27, 34, 0.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--dalesh-ink);
	font-weight: 800;
}

.woocommerce .quote-required {
	display: inline-flex;
	margin: 4px 0 12px;
	color: var(--dalesh-muted);
	font-weight: 700;
}

.single-inquiry-box {
	margin-top: 24px;
	padding: 20px;
	border-radius: 8px;
	border: 1px solid rgba(200, 29, 29, 0.22);
	background: #fff6f6;
}

.ast-footer-copyright {
	color: var(--dalesh-muted);
}

@media (max-width: 921px) {
	.dalesh-shell {
		width: 100%;
		max-width: 100%;
	}

	.dalesh-hero-grid,
	.dalesh-split,
	.dalesh-proof-grid {
		grid-template-columns: 1fr;
	}

	.dalesh-visual {
		min-height: 330px;
	}

	.dalesh-grid,
	.dalesh-value-grid,
	.dalesh-buyer-grid,
	.dalesh-fact-grid,
	.dalesh-contact-grid,
	.dalesh-media-grid,
	.dalesh-certificate-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.dalesh-page .dalesh-shell {
		width: calc(100vw - 48px) !important;
		max-width: calc(100vw - 48px) !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.dalesh-page .dalesh-hero h1 {
		font-size: 1.9rem !important;
		line-height: 1.08 !important;
	}

	.dalesh-page .dalesh-section h2,
	.dalesh-page .dalesh-final h2 {
		font-size: 1.85rem !important;
		line-height: 1.12 !important;
	}

	.dalesh-page .dalesh-eyebrow {
		font-size: 0.68rem;
		letter-spacing: 0.06em;
	}

	.dalesh-page .dalesh-asset-hero {
		min-height: 360px;
	}

	.dalesh-page .dalesh-card,
	.dalesh-page .dalesh-contact-card,
	.dalesh-page .dalesh-fact,
	.dalesh-page .dalesh-form-shell {
		padding: 20px;
	}

	.dalesh-heading-row {
		display: block;
	}

	.dalesh-grid,
	.dalesh-value-grid,
	.dalesh-buyer-grid,
	.dalesh-fact-grid,
	.dalesh-contact-grid,
	.dalesh-media-grid,
	.dalesh-certificate-grid {
		grid-template-columns: 1fr;
	}

	.dalesh-actions {
		flex-direction: column;
	}

	.dalesh-btn,
	.dalesh-link-btn {
		width: 100%;
	}

	.site-logo-img img {
		max-width: min(220px, 66vw);
	}

	.dalesh-detail-table,
	.dalesh-detail-table tbody,
	.dalesh-detail-table tr,
	.dalesh-detail-table th,
	.dalesh-detail-table td {
		display: block;
		width: 100%;
	}

	.dalesh-detail-table th {
		border-bottom: 0;
		padding-bottom: 4px;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products,
	.ast-container .woocommerce ul.products:not(.elementor-grid),
	.woocommerce-page ul.products:not(.elementor-grid),
	.elementor-shortcode .woocommerce ul.products.columns-3 {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 16px;
	}

	.woocommerce ul.products[class*="columns-"] li.product,
	.woocommerce-page ul.products[class*="columns-"] li.product {
		float: none !important;
		width: 100% !important;
		margin: 0 !important;
		clear: none !important;
	}
}
