/**
 * Construction Page Styles
 *
 * @package ToivoEstate
 */

/* ======================== SERVICE TYPES ======================== */
.te-service-types {
	padding: 100px 0;
}

.te-type-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	margin-bottom: 100px;
}

.te-type-block:last-child {
	margin-bottom: 0;
}

.te-type-block.te-reverse {
	direction: rtl;
}

.te-type-block.te-reverse > * {
	direction: ltr;
}

.te-type-visual {
	position: relative;
	border-radius: var(--te-radius-xl);
	overflow: hidden;
	aspect-ratio: 4/3;
	background: linear-gradient(135deg, var(--te-sand) 0%, var(--te-gray-100) 100%);
}

.te-type-visual-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.te-type-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	background: var(--te-copper);
	color: var(--te-white);
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.te-type-content .te-label {
	margin-bottom: 16px;
}

.te-type-content h2 {
	margin-bottom: 16px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.te-type-content > p {
	font-size: 0.95rem;
	margin-bottom: 28px;
	line-height: 1.8;
}

.te-type-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 28px;
}

.te-type-feat {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.te-type-feat .te-feat-check {
	width: 22px;
	height: 22px;
	min-width: 22px;
	background: var(--te-green-bg);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}

.te-type-feat .te-feat-check svg {
	width: 12px;
	height: 12px;
	color: var(--te-green);
}

.te-type-feat span {
	font-size: 0.85rem;
	color: var(--te-gray-600);
}

.te-type-builds {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.te-type-builds .te-build-tag {
	padding: 6px 14px;
	background: var(--te-sand);
	border-radius: 100px;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--te-gray-600);
}

/* ======================== INCLUDED ======================== */
.te-included {
	padding: 100px 0;
	background: var(--te-off-white);
}

.te-included-header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 60px;
}

.te-included-header h2 {
	margin-bottom: 16px;
}

.te-included-header p {
	font-size: 1rem;
}

.te-included-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.te-inc-card {
	background: var(--te-white);
	border: 1px solid var(--te-gray-200);
	border-radius: var(--te-radius-xl);
	padding: 32px 28px;
	transition: all 0.4s var(--te-ease);
	position: relative;
	overflow: hidden;
}

.te-inc-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--te-copper);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s var(--te-ease);
}

.te-inc-card:hover::before {
	transform: scaleX(1);
}

.te-inc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
	border-color: transparent;
}

.te-inc-icon {
	width: 52px;
	height: 52px;
	background: var(--te-copper-muted);
	border-radius: var(--te-radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	font-size: 1.4rem;
}

.te-inc-card h3 {
	font-size: 1.02rem;
	margin-bottom: 10px;
}

.te-inc-card p {
	font-size: 0.88rem;
	line-height: 1.75;
	margin: 0;
}

/* ======================== TIMELINE ======================== */
.te-timeline-section {
	padding: 100px 0;
}

.te-timeline-header {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 60px;
}

.te-timeline-header h2 {
	margin-bottom: 16px;
}

.te-timeline-header p {
	font-size: 1rem;
}

.te-build-timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
}

.te-build-timeline::before {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--te-gray-200);
}

.te-tl-item {
	display: flex;
	margin-bottom: 60px;
	position: relative;
}

.te-tl-item:last-child {
	margin-bottom: 0;
}

.te-tl-item:nth-child(odd) {
	justify-content: flex-start;
	padding-right: calc(50% + 40px);
}

.te-tl-item:nth-child(even) {
	justify-content: flex-end;
	padding-left: calc(50% + 40px);
}

.te-tl-dot {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	background: var(--te-charcoal);
	border: 3px solid var(--te-copper);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.te-tl-dot span {
	font-family: var(--te-serif);
	font-size: 0.92rem;
	color: var(--te-copper);
	font-weight: 400;
}

.te-tl-card {
	background: var(--te-white);
	border: 1px solid var(--te-gray-200);
	border-radius: var(--te-radius-lg);
	padding: 28px;
	transition: all 0.3s var(--te-ease);
	width: 100%;
}

.te-tl-card:hover {
	border-color: var(--te-copper);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.te-tl-phase {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--te-copper);
	margin-bottom: 8px;
}

.te-tl-card h4 {
	font-size: 1rem;
	margin-bottom: 8px;
}

.te-tl-card p {
	font-size: 0.85rem;
	margin: 0;
	line-height: 1.7;
}

.te-tl-duration {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	font-size: 0.75rem;
	color: var(--te-gray-400);
	font-weight: 500;
}

.te-tl-duration svg {
	width: 14px;
	height: 14px;
}

/* ======================== QUALITY ======================== */
.te-quality {
	padding: 100px 0;
	background: var(--te-charcoal);
	position: relative;
	overflow: hidden;
}

.te-quality::before {
	content: '';
	position: absolute;
	top: -100px;
	right: -100px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(184, 115, 51, 0.06) 0%, transparent 70%);
	border-radius: 50%;
}

.te-quality .te-container {
	position: relative;
	z-index: 1;
}

.te-quality-header {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 60px;
}

.te-quality-header h2 {
	font-family: var(--te-serif);
	font-weight: 400;
	color: var(--te-white);
	margin-bottom: 16px;
}

.te-quality-header h2 em {
	color: var(--te-copper);
	font-style: italic;
}

.te-quality-header p {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.5);
}

.te-quality-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.te-quality-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--te-radius-lg);
	padding: 28px;
	display: flex;
	gap: 18px;
	transition: all 0.3s var(--te-ease);
}

.te-quality-card:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(184, 115, 51, 0.2);
	transform: translateY(-2px);
}

.te-quality-icon {
	width: 48px;
	height: 48px;
	min-width: 48px;
	background: rgba(184, 115, 51, 0.1);
	border-radius: var(--te-radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
}

.te-quality-card h4 {
	color: var(--te-white);
	font-size: 0.95rem;
	margin-bottom: 6px;
}

.te-quality-card p {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
	line-height: 1.7;
}

/* ======================== GALLERY ======================== */
.te-gallery {
	padding: 100px 0;
}

.te-gallery-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 48px;
}

.te-gallery-header-left {
	max-width: 480px;
}

.te-gallery-header-left h2 {
	margin-bottom: 12px;
}

.te-gallery-header-left p {
	font-size: 0.95rem;
}

.te-gallery-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 32px;
}

.te-g-tab {
	padding: 8px 20px;
	font-size: 0.82rem;
	font-weight: 600;
	border-radius: 100px;
	background: var(--te-gray-100);
	color: var(--te-gray-500);
	border: none;
	cursor: pointer;
	transition: all 0.3s var(--te-ease);
}

.te-g-tab:hover {
	background: var(--te-gray-200);
	color: var(--te-charcoal);
}

.te-g-tab.active {
	background: var(--te-charcoal);
	color: var(--te-white);
}

.te-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.te-gallery-card {
	position: relative;
	border-radius: var(--te-radius-xl);
	overflow: hidden;
	aspect-ratio: 4/3;
	background: linear-gradient(135deg, var(--te-sand) 0%, var(--te-gray-100) 100%);
	cursor: pointer;
	transition: all 0.4s var(--te-ease);
}

.te-gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.te-gallery-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.te-gallery-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.85) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 22px;
}

.te-gallery-tag {
	display: inline-flex;
	background: var(--te-copper);
	color: var(--te-white);
	padding: 3px 8px;
	border-radius: 100px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
	width: fit-content;
}

.te-gallery-overlay h4 {
	color: var(--te-white);
	font-size: 0.95rem;
	margin-bottom: 4px;
}

.te-gallery-overlay p {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

/* ======================== PRICING ======================== */
.te-pricing {
	padding: 100px 0;
	background: var(--te-off-white);
}

.te-pricing-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: start;
}

.te-pricing-content .te-label {
	margin-bottom: 16px;
}

.te-pricing-content h2 {
	margin-bottom: 16px;
}

.te-pricing-content > p {
	font-size: 0.95rem;
	margin-bottom: 28px;
	line-height: 1.8;
}

.te-pricing-note {
	background: var(--te-white);
	border-left: 3px solid var(--te-copper);
	padding: 20px 24px;
	border-radius: 0 var(--te-radius) var(--te-radius) 0;
	margin: 0;
}

.te-pricing-note p {
	font-family: var(--te-serif);
	font-size: 1rem;
	color: var(--te-charcoal);
	font-style: italic;
	line-height: 1.7;
	margin: 0;
}

.te-pricing-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.te-price-card {
	background: var(--te-white);
	border: 1px solid var(--te-gray-200);
	border-radius: var(--te-radius-lg);
	padding: 24px 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s var(--te-ease);
}

.te-price-card:hover {
	border-color: var(--te-copper);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.te-price-card-info h4 {
	font-size: 0.95rem;
	margin-bottom: 4px;
}

.te-price-card-info p {
	font-size: 0.82rem;
	margin: 0;
}

.te-price-card-range {
	text-align: right;
}

.te-price-card-range strong {
	display: block;
	font-family: var(--te-serif);
	font-size: 1.2rem;
	color: var(--te-copper-dark);
	font-weight: 400;
}

.te-price-card-range small {
	font-size: 0.72rem;
	color: var(--te-gray-400);
}

/* ======================== CTA (centered) ======================== */
/* Shared via section-cta template part — overrides below for construction page */
.te-cta-centered {
	padding: 100px 0;
	background: var(--te-charcoal);
	position: relative;
	overflow: hidden;
	text-align: center;
}

.te-cta-centered::before {
	content: '';
	position: absolute;
	top: -100px;
	right: -100px;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(184, 115, 51, 0.06) 0%, transparent 70%);
	border-radius: 50%;
}

.te-cta-centered .te-container {
	position: relative;
	z-index: 1;
	max-width: 700px;
}

.te-cta-centered h2 {
	font-family: var(--te-serif);
	font-weight: 400;
	color: var(--te-white);
	margin-bottom: 16px;
	font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.te-cta-centered h2 em {
	color: var(--te-copper);
	font-style: italic;
}

.te-cta-centered p {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 32px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.8;
}

.te-cta-buttons {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
	.te-type-block,
	.te-type-block.te-reverse {
		grid-template-columns: 1fr;
		gap: 40px;
		direction: ltr;
	}

	.te-type-block.te-reverse > * {
		direction: ltr;
	}

	.te-included-grid {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}

	.te-build-timeline::before {
		left: 20px;
	}

	.te-tl-dot {
		left: 20px;
	}

	.te-tl-item,
	.te-tl-item:nth-child(odd),
	.te-tl-item:nth-child(even) {
		justify-content: flex-start;
		padding: 0 0 0 72px;
	}

	.te-quality-grid {
		grid-template-columns: 1fr;
	}

	.te-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.te-pricing-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}
}

@media (max-width: 768px) {
	.te-type-features {
		grid-template-columns: 1fr;
	}

	.te-gallery-grid {
		grid-template-columns: 1fr;
	}

	.te-gallery-tabs {
		flex-wrap: wrap;
	}

	.te-gallery-header {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
	}
}
