/* ==========================================================================
   Palmgro Hero Section — base structural CSS
   Colors/fonts/spacing are controlled via Elementor's Style tab (inline per
   instance) — this file handles structure, the floating composition layout,
   and responsive collapse to a clean stacked layout on smaller screens.
   ========================================================================== */

.pgw-hero-wrapper {
	width: 100%;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}
.pgw-hero-wrapper * {
	box-sizing: border-box;
}

/* ---------- Nav ---------- */
.pgw-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 40px;
	border-bottom: 1px solid rgba(0,0,0,0.08);
	flex-wrap: wrap;
}
.pgw-nav-logo-text {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	display: inline-block;
}
.pgw-nav-logo-tagline {
	display: block;
	font-size: 8px;
	letter-spacing: 0.15em;
	opacity: 0.5;
	margin-top: 2px;
}
.pgw-nav-logo img {
	max-height: 40px;
	width: auto;
	display: block;
}
.pgw-nav-menu {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.pgw-nav-menu a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
}
.pgw-nav-cta {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 22px;
	border-radius: 30px;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---------- Hero Stage ---------- */
.pgw-hero-stage {
	position: relative;
	padding: 60px 24px 40px;
}
.pgw-glow {
	position: absolute;
	top: -10%;
	left: 50%;
	transform: translateX(-50%);
	width: 900px;
	max-width: 140%;
	height: 700px;
	background: radial-gradient(circle, rgba(139,197,63,0.25) 0%, rgba(139,197,63,0.08) 45%, rgba(255,255,255,0) 70%);
	pointer-events: none;
	z-index: 0;
}

.pgw-hero-text {
	position: relative;
	z-index: 2;
	max-width: 720px;
	margin: 0 auto 60px;
}
.pgw-eyebrow {
	margin: 0 0 18px;
	font-size: 14px;
	font-weight: 500;
	opacity: 0.7;
}
.pgw-title {
	margin: 0 0 20px;
	font-size: 64px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.pgw-title-accent {
	display: inline;
}
.pgw-subtitle {
	margin: 0 0 32px;
	font-size: 18px;
	line-height: 1.5;
	opacity: 0.65;
}
.pgw-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	padding: 16px 30px;
}
.pgw-cta-arrow {
	transition: transform 0.2s ease;
}
.pgw-cta:hover .pgw-cta-arrow {
	transform: translateX(4px);
}

/* ---------- Device Composition Area ---------- */
.pgw-device-area {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pgw-layout-style-2 .pgw-device-area {
	padding-bottom: 50px;
}

.pgw-bg-decoration {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	max-height: 420px;
	object-fit: contain;
	z-index: 1;
	opacity: 0.9;
	pointer-events: none;
}

/* Callout cards */
.pgw-callout {
	position: absolute;
	z-index: 4;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #ffffff;
	will-change: transform;
}
.pgw-callout--top-left     { top: 8%;   left: -2%; }
.pgw-callout--middle-left  { top: 40%;  left: -8%; }
.pgw-callout--bottom-left  { top: 68%;  left: -2%; }
.pgw-callout--top-right    { top: 8%;   right: -2%; }
.pgw-callout--middle-right { top: 40%;  right: -8%; }
.pgw-callout--bottom-right { top: 68%;  right: -2%; }

.pgw-callout-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pgw-callout-title {
	margin: 0 0 4px;
	font-weight: 700;
	font-size: 14px;
}
.pgw-callout-desc {
	margin: 0;
	font-size: 12.5px;
	opacity: 0.65;
	line-height: 1.4;
}

/* Laptop */
.pgw-laptop {
	--pgw-laptop-perspective: 0px;
	--pgw-laptop-rx: 0deg;
	--pgw-laptop-ry: 0deg;
	--pgw-laptop-rz: 0deg;
	position: relative;
	z-index: 3;
	margin: 0 auto;
	transform: perspective(var(--pgw-laptop-perspective)) rotateX(var(--pgw-laptop-rx)) rotateY(var(--pgw-laptop-ry)) rotateZ(var(--pgw-laptop-rz));
	transform-style: preserve-3d;
	filter: drop-shadow(0 40px 40px rgba(0,0,0,0.18));
}
.pgw-laptop-body {
	position: relative;
	border-radius: 16px 16px 8px 8px;
	padding: 14px 14px 22px;
	background-image: linear-gradient(155deg, #2c2c2c 0%, #1a1a1a 40%, #0f0f0f 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 -2px 4px rgba(0,0,0,0.4);
}
.pgw-laptop-body::before {
	/* webcam dot */
	content: '';
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: radial-gradient(circle, #444 0%, #111 70%);
	z-index: 2;
}
.pgw-laptop-screen {
	background: #f3f3f3;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	position: relative;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}
.pgw-laptop-screen::after {
	/* subtle glass reflection */
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 18%, rgba(255,255,255,0) 40%);
	pointer-events: none;
}
.pgw-laptop-screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pgw-laptop-screen-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
	font-size: 13px;
	color: #999;
}
.pgw-laptop-base {
	position: relative;
	height: 14px;
	width: 116%;
	margin-left: -8%;
	border-radius: 0 0 10px 10px;
	background-image: linear-gradient(180deg, #e2e2e2 0%, #b9b9b9 55%, #9a9a9a 100%);
	box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.pgw-laptop-base::before {
	/* trackpad notch */
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 5px;
	border-radius: 0 0 6px 6px;
	background: #8f8f8f;
}

/* Custom (image-based) laptop mockup */
.pgw-laptop-custom {
	position: relative;
	width: 100%;
}
.pgw-laptop-custom-frame {
	position: relative;
	z-index: 2;
	width: 100%;
	display: block;
	pointer-events: none;
}
.pgw-laptop-custom-screen {
	position: absolute;
	z-index: 1;
	overflow: hidden;
	background: #f3f3f3;
}
.pgw-laptop-custom-screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pgw-stat-badge {
	position: absolute;
	bottom: 18%;
	right: 6%;
	z-index: 5;
	border-radius: 14px;
	padding: 10px 16px;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	white-space: nowrap;
}
.pgw-stat-badge-label {
	font-size: 11px;
	opacity: 0.8;
}
.pgw-stat-badge-value {
	font-size: 16px;
	font-weight: 700;
}

/* Phone */
.pgw-phone {
	--pgw-phone-rz: 0deg;
	position: absolute;
	z-index: 4;
	left: 4%;
	bottom: -4%;
	border-radius: 32px;
	padding: 10px;
	aspect-ratio: 9 / 19;
	background-image: linear-gradient(155deg, #2c2c2c 0%, #1a1a1a 45%, #0f0f0f 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
	transform: rotate(var(--pgw-phone-rz));
	filter: drop-shadow(0 30px 30px rgba(0,0,0,0.2));
}
.pgw-phone::before {
	/* side volume/power buttons */
	content: '';
	position: absolute;
	top: 22%;
	right: -2px;
	width: 2px;
	height: 40px;
	background: #000;
	border-radius: 2px 0 0 2px;
}
.pgw-phone-screen {
	background: #ffffff;
	border-radius: 24px;
	height: 100%;
	width: 100%;
	overflow: hidden;
	position: relative;
	padding: 24px 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.pgw-phone-screen::before {
	/* notch/dynamic island */
	content: '';
	position: absolute;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 46%;
	height: 16px;
	border-radius: 12px;
	background: #0d0d0d;
	z-index: 3;
}
.pgw-phone-screen::after {
	/* glass reflection */
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 16%, rgba(255,255,255,0) 36%);
	pointer-events: none;
	z-index: 2;
}
.pgw-phone-screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}
.pgw-phone-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 20px;
}
.pgw-phone-line {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}
.pgw-phone-icon {
	position: relative;
	z-index: 3;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #111;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
}

/* Custom (image-based) phone mockup */
.pgw-phone-custom {
	position: relative;
	width: 100%;
	height: 100%;
}
.pgw-phone-custom-frame {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	pointer-events: none;
}
.pgw-phone-custom-screen {
	position: absolute;
	z-index: 1;
	overflow: hidden;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 16px;
}
.pgw-phone-custom-screen img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
}

/* Social proof card */
.pgw-social-proof {
	position: absolute;
	z-index: 5;
	right: -4%;
	bottom: -2%;
	padding: 20px 24px;
	min-width: 240px;
}
.pgw-social-proof-heading {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.pgw-social-proof-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.pgw-avatar-stack {
	display: flex;
}
.pgw-avatar {
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #fff;
	margin-left: -10px;
	display: inline-block;
}
.pgw-avatar:first-child {
	margin-left: 0;
}
.pgw-avatar--placeholder {
	background: #ddd;
}
.pgw-count-badge {
	border-radius: 50%;
	width: 76px;
	height: 76px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-shrink: 0;
}
.pgw-count-badge-number {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.1;
}
.pgw-count-badge-label {
	font-size: 8px;
	line-height: 1.2;
	max-width: 60px;
}

/* Trusted-by strip */
.pgw-trusted {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 1100px;
	margin: 40px auto 0;
	padding: 24px 24px 60px;
	border-top: 1px solid rgba(0,0,0,0.08);
}
.pgw-trusted-label {
	margin: 0 0 24px;
	font-size: 12px;
	letter-spacing: 0.1em;
	opacity: 0.5;
	text-transform: uppercase;
}
.pgw-trusted-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 40px;
}
.pgw-trusted-logo {
	font-size: 15px;
	font-weight: 600;
	opacity: 0.55;
	white-space: nowrap;
}
.pgw-trusted-logo img {
	display: block;
	filter: grayscale(1);
	opacity: 0.6;
}

/* Stats counter row */
.pgw-stats-row {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 900px;
	margin: 40px auto 0;
	padding: 24px 24px 60px;
	border-top: 1px solid rgba(0,0,0,0.08);
}
.pgw-stat-item {
	flex: 1 1 0;
	text-align: center;
	padding: 0 24px;
	border-left: 1px solid rgba(0,0,0,0.1);
}
.pgw-stat-item:first-child {
	border-left: none;
}
.pgw-stat-value {
	margin: 0 0 6px;
	font-size: 32px;
	font-weight: 800;
}
.pgw-stat-label {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.55;
}

/* ==========================================================================
   RESPONSIVE — collapse the floating composition into a clean stacked flow
   ========================================================================== */

@media (max-width: 1024px) {
	.pgw-callout--top-left, .pgw-callout--middle-left, .pgw-callout--bottom-left { left: 0; }
	.pgw-callout--top-right, .pgw-callout--middle-right, .pgw-callout--bottom-right { right: 0; }
	.pgw-social-proof { right: 0; }
	.pgw-phone { left: 0; }
}

@media (max-width: 900px) {
	.pgw-title {
		font-size: 44px;
	}
	.pgw-device-area {
		min-height: 0;
		display: flex !important;
		flex-direction: column !important;
		align-items: center;
		gap: 20px;
		padding-bottom: 40px;
	}
	.pgw-bg-decoration {
		display: none;
	}
	.pgw-callout,
	.pgw-laptop,
	.pgw-phone,
	.pgw-social-proof {
		position: static;
		margin: 0 auto;
		transform: none !important;
	}
	.pgw-stat-badge {
		position: absolute;
	}
	.pgw-stats-row {
		flex-direction: column !important;
		gap: 20px;
	}
	.pgw-stat-item {
		border-left: none;
		border-top: 1px solid rgba(0,0,0,0.1);
		padding: 16px 0 0;
	}
	.pgw-stat-item:first-child {
		border-top: none;
		padding-top: 0;
	}
}

@media (max-width: 600px) {
	.pgw-nav {
		padding: 14px 20px;
		justify-content: center;
	}
	.pgw-nav-menu {
		display: none;
	}
	.pgw-title {
		font-size: 34px;
	}
	.pgw-subtitle {
		font-size: 15px;
	}
	.pgw-hero-stage {
		padding: 40px 16px 24px;
	}
	.pgw-trusted-logos {
		gap: 24px;
	}
	/* On phones, drop the whole laptop/phone/callout-card composition —
	   too much detail to read at this width — and go straight from the
	   headline/CTA to the stats row (if enabled), matching the simplified
	   mobile design. "Show Laptop/Phone/Cards on Mobile" re-enables it. */
	.pgw-device-area {
		display: none !important;
	}
	.pgw-hero-wrapper.pgw-show-devices-mobile .pgw-device-area {
		display: flex !important;
		min-height: 0;
		flex-direction: column;
		align-items: center;
		gap: 16px;
		padding-bottom: 32px;
	}
}
