/*
 * Property Damage TX Repipe Widgets — frontend styles
 * Scoped under .pdtw-* classes so they coexist with theme styles.
 *
 * Font imports (include FontAwesome 6 and Google Fonts in your theme
 * or use Elementor's font control to add them via the editor.)
 */

.pdtw-section,
.pdtw-hero,
.pdtw-image-divider {
	font-family: 'Inter', sans-serif;
	color: #333;
	line-height: 1.6;
	box-sizing: border-box;
}

.pdtw-section *,
.pdtw-hero *,
.pdtw-image-divider * {
	box-sizing: border-box;
}

.pdtw-section h1,
.pdtw-section h2,
.pdtw-section h3,
.pdtw-section h4,
.pdtw-hero h1,
.pdtw-image-divider h2 {
	font-family: 'Outfit', sans-serif;
	margin-bottom: 20px;
}

.pdtw-section p,
.pdtw-hero p {
	font-size: 1.1rem;
	color: #555;
	margin-bottom: 1.5rem;
}

/* CONTAINER */
.pdtw-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
	position: relative;
}

/* HERO */
.pdtw-hero.pd-hero-new {
	background-color: #4a4543;
	background: linear-gradient(135deg, #3a3b3f 0%, #464442 100%);
	padding: 100px 5%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
	overflow: hidden;
	min-height: auto;
}

.pdtw-hero::before,
.pdtw-hero::after {
	content: '';
	position: absolute;
	background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
	border-radius: 20px;
	transform: rotate(-15deg) skewX(10deg);
	z-index: 0;
	box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.pdtw-hero::before {
	width: 25%; height: 100%;
	top: 0; right: -10%;
}

.pdtw-hero::after {
	width: 25%; height: 100%;
	bottom: 0; left: -10%;
}

.pdtw-hero .badge {
	display: inline-block;
	padding: 0.5rem 1.5rem;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 100px;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
}

.pdtw-hero h1 {
	margin-bottom: 30px;
}

.pdtw-hero .silver-text {
	color: #e5e5e5;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.pdtw-hero .gold-text {
	background: linear-gradient(180deg, #f2c786 0%, #c4863f 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 2px 2px 10px rgba(196,134,63,0.3);
}

.pdtw-hero .pdtw-hero-body p,
.pdtw-hero p {
	color: rgba(255,255,255,0.9);
	font-size: clamp(1rem, 2vw, 1.1rem);
	max-width: 900px;
	margin-bottom: 25px;
	line-height: 1.8;
}

/* SECTION TITLES */
.pdtw-section-title {
	text-align: center;
	font-size: clamp(2rem, 4vw, 2.5rem);
	color: #34373e;
	margin-bottom: 50px;
	position: relative;
	font-weight: 700;
	line-height: 1.2;
}

.pdtw-section-title::after {
	content: '';
	display: block;
	width: 80px;
	height: 4px;
	background: linear-gradient(to right, #da570a, #de9b53);
	margin: 15px auto 0;
	border-radius: 2px;
}

/* CLEAN CARDS (Section 1) */
.pdtw-clean-section {
	background: #f8f9fc;
}

.pdtw-clean-cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

.pdtw-clean-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.04);
	flex: 1;
	min-width: 320px;
	border-top: 4px solid #de9b53;
}

.pdtw-clean-card h3 {
	color: #da570a;
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.pdtw-clean-card .pdtw-card-intro p {
	font-size: 0.95rem;
	color: #666;
	line-height: 1.7;
	margin-bottom: 20px;
}

.pdtw-clean-list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 30px;
}

.pdtw-clean-list-item {
	background: #ffffff;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	padding: 18px 20px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #4a4a4a;
	display: flex;
	align-items: center;
	gap: 15px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.02);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdtw-clean-list-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* QUICK NAV SECTION (Section 2) */
.pdtw-quicknav-section {
	background: linear-gradient(135deg, #1e2025 0%, #2c2e35 50%, #1e2025 100%);
	padding: 90px 20px;
	position: relative;
	overflow: hidden;
}

.pdtw-quicknav-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 20% 50%, rgba(218,87,10,0.12) 0%, transparent 60%),
		radial-gradient(ellipse at 80% 50%, rgba(222,155,83,0.10) 0%, transparent 60%);
	pointer-events: none;
}

.pdtw-quicknav-label {
	text-align: center;
	font-family: 'Outfit', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #de9b53;
	margin-bottom: 18px;
}

.pdtw-quicknav-title {
	text-align: center;
	font-family: 'Outfit', sans-serif;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 800;
	color: #f0f0f0;
	margin-bottom: 14px;
	line-height: 1.2;
}

.pdtw-quicknav-title span {
	background: linear-gradient(90deg, #da570a, #de9b53);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.pdtw-quicknav-subtitle {
	text-align: center;
	color: #a0a4af;
	font-size: 1.05rem;
	max-width: 680px;
	margin: 0 auto 60px;
	line-height: 1.7;
}

.pdtw-quicknav-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	max-width: 1160px;
	margin: 0 auto;
}

a.pdtw-quicknav-card,
.pdtw-quicknav-card {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 18px;
	padding: 38px 28px 32px;
	text-align: center;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	position: relative;
	overflow: hidden;
	transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
		box-shadow 0.35s ease,
		background 0.35s ease,
		border-color 0.35s ease;
	cursor: pointer;
}

a.pdtw-quicknav-card:hover {
	transform: translateY(-10px) scale(1.02);
	box-shadow: 0 24px 50px rgba(218,87,10,0.25), 0 8px 20px rgba(0,0,0,0.4);
	border-color: rgba(222,155,83,0.35);
	background: rgba(255,255,255,0.07);
}

a.pdtw-quicknav-card:hover::before {
	transform: scaleX(1);
}

a.pdtw-quicknav-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, #da570a, #de9b53);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
	border-radius: 18px 18px 0 0;
}

.pdtw-qn-number {
	position: absolute;
	top: 18px; right: 22px;
	font-family: 'Outfit', sans-serif;
	font-size: 2.8rem;
	font-weight: 900;
	color: rgba(255,255,255,0.04);
	line-height: 1;
	pointer-events: none;
	z-index: 0;
}

.pdtw-qn-icon-wrap {
	width: 68px; height: 68px;
	border-radius: 50%;
	background: rgba(218,87,10,0.12);
	border: 2px solid rgba(222,155,83,0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.4s ease, transform 0.5s ease;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

a.pdtw-quicknav-card:hover .pdtw-qn-icon-wrap {
	background: linear-gradient(135deg, #da570a, #de9b53);
	transform: rotateY(180deg);
}

a.pdtw-quicknav-card:hover .pdtw-qn-icon-wrap i {
	color: #ffffff;
}

.pdtw-qn-icon-wrap i {
	font-size: 1.7rem;
	color: #de9b53;
	transition: color 0.3s ease;
}

.pdtw-qn-card-title {
	font-family: 'Outfit', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: #e8e8e8;
	line-height: 1.3;
	position: relative;
	z-index: 1;
}

.pdtw-qn-card-desc {
	font-size: 0.88rem;
	color: #8a8f9e;
	line-height: 1.6;
	position: relative;
	z-index: 1;
}

.pdtw-qn-card-desc p { margin-bottom: 0; color: #8a8f9e; font-size: 0.88rem; }

.pdtw-qn-arrow {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #da570a;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	position: relative;
	z-index: 1;
}

a.pdtw-quicknav-card:hover .pdtw-qn-arrow {
	opacity: 1;
	transform: translateY(0);
}

/* 3D CARDS */
.pdtw-3d-card {
	background: #ffffff;
	border-radius: 15px;
	padding: 40px 30px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,1);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	border-top: 5px solid #da570a;
	transform-style: preserve-3d;
	z-index: 1;
}

.pdtw-3d-card::before {
	content: '';
	position: absolute;
	top: 10px; left: 10px; right: -10px; bottom: -10px;
	background: linear-gradient(135deg, #da570a, #de9b53);
	border-radius: 15px;
	z-index: -1;
	opacity: 0;
	transition: all 0.4s ease;
}

.pdtw-3d-card:hover {
	transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
	box-shadow: 0 15px 40px rgba(218,87,10,0.2);
}

.pdtw-3d-card:hover::before {
	opacity: 0.1;
	transform: translate(5px, 5px);
}

.pdtw-3d-card h3 {
	color: #da570a;
	font-size: 1.6rem;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 15px;
}

.pdtw-3d-card h3 i {
	font-size: 2rem;
	background: linear-gradient(135deg, #da570a, #de9b53);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.pdtw-3d-card .pdtw-card-body p { font-size: 1rem; color: #555; margin-bottom: 1rem; }

/* 3D LIST (numbered items) */
.pdtw-3d-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 40px 0;
}

a.pdtw-3d-list-item,
.pdtw-3d-list-item {
	background: linear-gradient(to right, #ffffff, #fdfdfd);
	padding: 20px;
	border-radius: 10px;
	box-shadow: 5px 5px 15px rgba(0,0,0,0.05), -5px -5px 15px rgba(255,255,255,0.8);
	display: flex;
	align-items: center;
	font-weight: 600;
	font-family: 'Outfit', sans-serif;
	color: #34373e;
	transition: all 0.3s ease;
	border-left: 4px solid #de9b53;
	text-decoration: none;
}

a.pdtw-3d-list-item:hover {
	transform: translateX(10px);
	box-shadow: 8px 8px 20px rgba(218,87,10,0.15), -8px -8px 20px rgba(255,255,255,0.9);
	border-left-color: #da570a;
	color: #da570a;
}

/* TIMELINE */
.pdtw-timeline {
	position: relative;
	max-width: 900px;
	margin: 60px auto;
	padding: 20px;
}

.pdtw-timeline::before {
	content: '';
	position: absolute;
	width: 4px;
	background: linear-gradient(to bottom, #da570a, #de9b53);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -2px;
}

.pdtw-timeline-item {
	padding: 20px 40px;
	position: relative;
	background-color: inherit;
	width: 50%;
	box-sizing: border-box;
}

.pdtw-timeline-item:nth-child(odd) { left: 0; }
.pdtw-timeline-item:nth-child(even) { left: 50%; }

.pdtw-timeline-item::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background-color: #ffffff;
	border: 4px solid #da570a;
	top: 25px;
	border-radius: 50%;
	z-index: 1;
	box-shadow: 0 0 10px rgba(218,87,10,0.5);
}

.pdtw-timeline-item:nth-child(odd)::after { right: -10px; left: auto; }
.pdtw-timeline-item:nth-child(even)::after { left: -10px; right: auto; }

.pdtw-timeline-content {
	padding: 20px 30px;
	background-color: #ffffff;
	position: relative;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.06);
	transition: transform 0.3s ease;
	border-bottom: 3px solid #de9b53;
}

.pdtw-timeline-content:hover {
	transform: scale(1.05);
}

/* CALLOUT */
.pdtw-callout {
	background: linear-gradient(135deg, #34373e, #222428);
	color: #ffffff;
	padding: 60px 50px;
	border-radius: 20px;
	text-align: center;
	box-shadow: 0 20px 40px rgba(0,0,0,0.2);
	margin: 60px 0;
	position: relative;
	overflow: hidden;
}

.pdtw-callout-title {
	color: #de9b53;
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	margin-bottom: 20px;
	margin-top: 0;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
}

.pdtw-callout-body {
	color: #dddddd;
	font-size: 1.2rem;
	max-width: 800px;
	margin: 0 auto;
}

.pdtw-callout-body p { color: #dddddd; margin-bottom: 1rem; }
.pdtw-callout-body p:last-child { margin-bottom: 0; }

/* IMAGE DIVIDER */
.pdtw-image-divider { padding: 4rem 2rem; }
.pdtw-image-divider.bg-none { padding: 0; }
.pdtw-image-divider .pdtw-image-divider-inner { max-width: 1200px; margin: 0 auto; }
.pdtw-image-divider.layout-full-width .pdtw-image-divider-inner { max-width: 100%; }

.pdtw-image-figure { margin: 0; text-align: center; }

.pdtw-image-figure img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
	display: block;
	margin: 0 auto;
	box-shadow: 0 15px 40px rgba(52,55,62,0.12);
}

.pdtw-image-divider.layout-full-width .pdtw-image-figure img {
	border-radius: 0;
	width: 100%;
}

.pdtw-image-caption {
	margin-top: 1rem;
	font-size: 1rem;
	color: #555;
	font-style: italic;
}

/* REVEAL */
.pdtw-section.reveal,
.pdtw-image-divider.reveal,
.pdtw-hero.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.pdtw-section.reveal.active,
.pdtw-image-divider.reveal.active,
.pdtw-hero.reveal.active {
	opacity: 1;
	transform: translateY(0);
}

.elementor-editor-active .pdtw-section.reveal,
.elementor-editor-active .pdtw-image-divider.reveal,
.elementor-editor-active .pdtw-hero.reveal {
	opacity: 1;
	transform: none;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
	.pdtw-hero.pd-hero-new {
		padding: 4rem 1.2rem;
		display: block;
	}
	.pdtw-hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
	.pdtw-clean-cards-container { flex-direction: column; }
	.pdtw-3d-list { grid-template-columns: 1fr; }
	.pdtw-quicknav-title { font-size: 1.9rem; }
	.pdtw-quicknav-grid { grid-template-columns: 1fr 1fr; }
	.pdtw-callout { padding: 40px 20px; }
	.pdtw-timeline-item { width: 100%; left: 0 !important; }
	.pdtw-timeline-item::before { left: 31px !important; right: auto !important; }
	.pdtw-timeline::before { left: 31px; }
}

@media screen and (max-width: 500px) {
	.pdtw-quicknav-grid { grid-template-columns: 1fr; }
}