/*
Theme Name: HAQ C&F Limited
Author: WordPress Telex
Description: A deep water modernist WordPress block theme for HAQ C&F Limited, a customs clearing and forwarding agent in Chattogram, Bangladesh. Features a warm maritime aesthetic with copper and teal accents, strong typography, and geometric precision.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: haq-cf-limited
Tags: block-theme, full-site-editing, dark, modern, logistics

HAQ C&F Limited — Deep Water Modernist Theme
*/

/* ── Grid & Texture Overlay ── */
.dwm-grid-overlay {
	position: relative;
}
.dwm-grid-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 119px,
			rgba(154, 142, 130, 0.03) 119px,
			rgba(154, 142, 130, 0.03) 120px
		),
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 119px,
			rgba(154, 142, 130, 0.03) 119px,
			rgba(154, 142, 130, 0.03) 120px
		);
}

/* ── Hero Section ── */
.dwm-hero-section {
	position: relative;
	overflow: hidden;
}

.dwm-hero-section .wp-block-cover__inner-container {
	position: relative;
	z-index: 10;
}

.dwm-hero-marker {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.dwm-hero-marker::before {
	content: '';
	display: inline-block;
	width: 40px;
	height: 1px;
	background: #C4956A;
}

.dwm-tagline-outline {
	color: transparent !important;
	-webkit-text-stroke: 1.5px #9A8E82;
}

.dwm-ghost-text {
	position: absolute;
	right: 5%;
	bottom: 8%;
	font-size: clamp(100px, 16vw, 260px);
	line-height: 1;
	color: rgba(255, 248, 240, 0.025);
	pointer-events: none;
	z-index: 1;
	letter-spacing: -0.03em;
}

.dwm-coordinates {
	position: absolute;
	bottom: 2rem;
	left: 2rem;
	z-index: 10;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

/* ── Diagonal Accent Line ── */
.dwm-hero-section::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 300%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(196, 149, 106, 0.4) 20%, rgba(196, 149, 106, 0.7) 35%, rgba(196, 149, 106, 0.15) 65%, transparent);
	transform-origin: bottom left;
	transform: rotate(-12deg);
	bottom: 28%;
	z-index: 5;
	pointer-events: none;
}

/* ── CTA Button Offset Shadow ── */
.dwm-cta-offset .wp-block-button__link {
	position: relative;
}
.dwm-cta-offset .wp-block-button__link::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 1px solid #C4956A;
	transform: translate(4px, 4px);
	pointer-events: none;
}

/* ── Services Cards ── */
.dwm-services-grid .wp-block-column {
	border: 1px solid rgba(154, 142, 130, 0.12);
	transition: border-color 0.35s ease, transform 0.35s ease;
}
.dwm-services-grid .wp-block-column:hover {
	border-color: rgba(196, 149, 106, 0.4);
	transform: translateY(-4px);
}

.dwm-service-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(196, 149, 106, 0.3);
	margin-bottom: 1.25rem;
}

.dwm-service-number {
	position: absolute;
	top: -0.5rem;
	right: 1rem;
	font-size: 72px;
	line-height: 1;
	color: rgba(255, 248, 240, 0.03);
	pointer-events: none;
}

/* ── Stats Section ── */
.dwm-stats-bar {
	position: relative;
}
.dwm-stats-bar::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(196, 149, 106, 0.25), transparent);
}
.dwm-stats-bar::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(196, 149, 106, 0.25), transparent);
}

.dwm-stat-value {
	font-size: clamp(2rem, 4vw, 3rem) !important;
	line-height: 1.1 !important;
}

.dwm-stat-accent {
	color: #C4956A;
	font-size: 0.65em;
}

/* ── Equal Card Layout ── */
.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.equal-cards .cta-bottom {
	margin-top: auto;
	justify-content: center;
}

/* ── Footer ── */
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.dwm-footer-border-top {
	position: relative;
}
.dwm-footer-border-top::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 90%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(154, 142, 130, 0.2), transparent);
}

/* ── Animations ── */
@keyframes dwm-fade-up {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes dwm-line-grow {
	from { width: 0; }
	to { width: 40px; }
}

.dwm-animate-in {
	animation: dwm-fade-up 0.8s ease-out both;
}

.dwm-animate-delay-1 { animation-delay: 0.1s; }
.dwm-animate-delay-2 { animation-delay: 0.25s; }
.dwm-animate-delay-3 { animation-delay: 0.4s; }
.dwm-animate-delay-4 { animation-delay: 0.55s; }

/* ── Header Nav Styling ── */
.dwm-header-nav a {
	position: relative;
	padding-bottom: 2px;
}
.dwm-header-nav a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: #C4956A;
	transition: width 0.3s ease;
}
.dwm-header-nav a:hover::after {
	width: 100%;
}

/* ── Scroll indicator ── */
.dwm-scroll-line {
	width: 1px;
	height: 50px;
	background: linear-gradient(to bottom, #C4956A, transparent);
	margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 782px) {
	.dwm-ghost-text {
		display: none;
	}
	.dwm-coordinates {
		display: none;
	}
	.dwm-service-number {
		display: none;
	}
}