/* ==========================================================================
   CessTo Tailwind UI Components — Homepage Sections
   Styles for: Counter, About, Product Catalog, Advantage, Sectors,
               Featured Products, Commitment, Call To Action
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared / utility
   -------------------------------------------------------------------------- */

.twic-hp-section {
	box-sizing: border-box;
	position: relative;
}

.twic-hp-section *,
.twic-hp-section *::before,
.twic-hp-section *::after {
	box-sizing: inherit;
}

.twic-hp-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

.twic-hp-overlay {
	inset: 0;
	position: absolute;
	z-index: 0;
}

.twic-hp-eyebrow {
	align-items: center;
	display: flex;
	gap: 10px;
	margin: 0 0 12px;
}

.twic-hp-eyebrow-line {
	background: currentColor;
	display: inline-block;
	flex-shrink: 0;
	height: 3px;
	width: 20px;
}

.twic-hp-eyebrow-text {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.twic-hp-heading {
	line-height: 1.15;
	margin: 0 0 16px;
}

.twic-hp-description {
	line-height: 1.7;
	margin: 0 0 16px;
}

.twic-hp-icon-box {
	align-items: center;
	display: inline-flex;
	flex-shrink: 0;
	justify-content: center;
}

.twic-hp-icon-box svg {
	display: block;
}

/* --------------------------------------------------------------------------
   1. Counter Section
   -------------------------------------------------------------------------- */

.twic-hp-counter-section {
	overflow: hidden;
}

.twic-hp-counter-grid {
	display: grid;
	gap: 0;
}

.twic-hp-counter-item {
	padding: 24px 20px;
	position: relative;
	text-align: center;
}

.twic-hp-counter-item + .twic-hp-counter-item::before {
	background: rgba(255, 255, 255, .08);
	content: '';
	height: 60%;
	left: 0;
	position: absolute;
	top: 20%;
	width: 1px;
}

.twic-hp-counter-icon {
	margin-bottom: 10px;
}

.twic-hp-counter-number {
	display: block;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 6px;
}

.twic-hp-counter-label {
	display: block;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.twic-hp-counter-section-heading {
	margin-bottom: 32px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   2. About ProDril Section
   -------------------------------------------------------------------------- */

.twic-hp-about-grid {
	align-items: center;
	display: grid;
	gap: 48px;
	grid-template-columns: 1fr 1fr;
}

.twic-hp-about-grid.image-left {
	direction: rtl;
}

.twic-hp-about-grid.image-left > * {
	direction: ltr;
}

.twic-hp-about-content {
	max-width: 560px;
}

.twic-hp-about-features {
	list-style: none;
	margin: 20px 0 28px;
	padding: 0;
}

.twic-hp-about-feature {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.twic-hp-about-feature-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.twic-hp-about-cta {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 6px;
	text-decoration: none;
	transition: gap .2s;
}

.twic-hp-about-cta:hover {
	gap: 10px;
}

.twic-hp-about-image-wrap {
	position: relative;
}

.twic-hp-about-image-wrap img {
	display: block;
	height: auto;
	width: 100%;
}

.twic-hp-about-accent {
	bottom: -12px;
	height: 64px;
	position: absolute;
	right: -12px;
	width: 64px;
}

/* --------------------------------------------------------------------------
   3. Product Catalog Section
   -------------------------------------------------------------------------- */

.twic-hp-catalog-header {
	margin-bottom: 32px;
}

.twic-hp-catalog-grid {
	display: grid;
	gap: 20px;
}

.twic-hp-catalog-card {
	border-top: 3px solid transparent;
	padding: 28px 24px;
	position: relative;
	transition: background-color .25s, border-color .25s;
}

.twic-hp-catalog-card-icon {
	margin-bottom: 16px;
	transition: background .25s, color .25s;
}

.twic-hp-catalog-card-name {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
	transition: color .25s;
}

.twic-hp-catalog-card-desc {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 16px;
	transition: color .25s;
}

.twic-hp-catalog-card-link {
	align-items: center;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 4px;
	text-decoration: none;
	transition: color .25s, gap .2s;
}

.twic-hp-catalog-card-link:hover {
	gap: 8px;
}

/* --------------------------------------------------------------------------
   4. Our Advantage Section
   -------------------------------------------------------------------------- */

.twic-hp-advantage-layout {
	align-items: flex-start;
	display: grid;
	gap: 60px;
	grid-template-columns: 1fr 2fr;
}

.twic-hp-advantage-content {
	position: sticky;
	top: 80px;
}

.twic-hp-advantage-accent {
	height: 4px;
	margin-bottom: 16px;
	width: 40px;
}

.twic-hp-advantage-grid {
	display: grid;
	gap: 24px;
}

.twic-hp-advantage-item {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.twic-hp-advantage-item-icon {
	align-items: center;
	border: 2px solid currentColor;
	display: flex;
	justify-content: center;
	padding: 8px;
}

.twic-hp-advantage-item-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
}

/* --------------------------------------------------------------------------
   5. Sectors We Serve Section
   -------------------------------------------------------------------------- */

.twic-hp-sectors-header {
	margin-bottom: 32px;
}

.twic-hp-sectors-grid {
	display: grid;
}

.twic-hp-sector-tile {
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px 20px;
	text-align: center;
	transition: background-color .25s;
}

.twic-hp-sector-icon-box {
	align-items: center;
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
	transition: background .25s, color .25s;
}

.twic-hp-sector-name {
	display: block;
	font-weight: 600;
	transition: color .25s;
}

/* --------------------------------------------------------------------------
   6. Featured Products Section
   -------------------------------------------------------------------------- */

.twic-hp-featured-header {
	align-items: flex-end;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 32px;
}

.twic-hp-featured-cta {
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.twic-hp-featured-grid {
	display: grid;
}

.twic-hp-featured-card {
	overflow: hidden;
}

.twic-hp-featured-card-image {
	overflow: hidden;
	position: relative;
}

.twic-hp-featured-card-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.twic-hp-featured-card-body {
	padding: 20px 20px 24px;
}

.twic-hp-featured-card-category {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.twic-hp-featured-card-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 8px;
}

.twic-hp-featured-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 16px;
}

.twic-hp-featured-card-btn {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 18px;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.twic-hp-featured-empty {
	font-style: italic;
	opacity: .7;
	padding: 40px 0;
	text-align: center;
}

/* Card shadow utilities */
.twic-hp-shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); }
.twic-hp-shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06); }
.twic-hp-shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.07); }

/* --------------------------------------------------------------------------
   7. Our Commitment Section
   -------------------------------------------------------------------------- */

.twic-hp-commitment-section {
	overflow: hidden;
}

.twic-hp-commitment-inner {
	position: relative;
	z-index: 1;
}

.twic-hp-commitment-accent {
	bottom: 0;
	left: 0;
	position: absolute;
	top: 0;
	width: 4px;
}

.twic-hp-commitment-content {
	padding-left: 24px;
}

.twic-hp-commitment-list {
	list-style: none;
	margin: 24px 0 28px;
	padding: 0;
}

.twic-hp-commitment-item {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.twic-hp-commitment-item-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.twic-hp-commitment-cta {
	display: inline-block;
	font-weight: 600;
	padding: 12px 28px;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

/* --------------------------------------------------------------------------
   8. Call To Action Section
   -------------------------------------------------------------------------- */

.twic-hp-cta-section {
	overflow: hidden;
}

.twic-hp-cta-pattern {
	inset: 0;
	position: absolute;
	z-index: 0;
}

.twic-hp-cta-inner {
	align-items: center;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	position: relative;
	z-index: 1;
}

.twic-hp-cta-inner.is-centered {
	align-items: center;
	flex-direction: column;
	text-align: center;
}

.twic-hp-cta-content {
	flex: 1;
	min-width: 0;
}

.twic-hp-cta-buttons {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 12px;
	flex-wrap: wrap;
}

.twic-hp-cta-inner.is-centered .twic-hp-cta-buttons {
	justify-content: center;
}

.twic-hp-cta-btn {
	display: inline-block;
	font-weight: 700;
	padding: 13px 28px;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
	white-space: nowrap;
}

.twic-hp-cta-btn-secondary {
	background: transparent;
	border: 2px solid currentColor;
}

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

@media (max-width: 1024px) {
	.twic-hp-about-grid {
		gap: 32px;
		grid-template-columns: 1fr;
	}
	.twic-hp-about-grid.image-left {
		direction: ltr;
	}
	.twic-hp-advantage-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.twic-hp-advantage-content {
		position: static;
	}
	.twic-hp-cta-inner {
		flex-direction: column;
		gap: 24px;
	}
	.twic-hp-cta-buttons {
		flex-shrink: unset;
	}
}

@media (max-width: 768px) {
	.twic-hp-container {
		padding: 0 16px;
	}
	.twic-hp-counter-item + .twic-hp-counter-item::before {
		display: none;
	}
	.twic-hp-featured-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.twic-hp-cta-inner {
		text-align: center;
	}
	.twic-hp-cta-buttons {
		justify-content: center;
	}
	.twic-hp-sectors-header,
	.twic-hp-catalog-header {
		text-align: center;
	}
}
