/* EasySite Page Builder – Frontend sections */

.easysite-pb-page {
	margin: 0;
}

.easysite-pb-page .easysite-container {
	width: min(100% - 2rem, var(--easysite-container, 1140px));
	margin-inline: auto;
}

.easysite-pb-section {
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.easysite-pb-section-title {
	text-align: center;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	margin: 0 0 2rem;
	letter-spacing: -0.02em;
}

.easysite-pb-narrow {
	max-width: 760px;
	margin-inline: auto;
}

.easysite-pb-lead {
	text-align: center;
	font-size: 1.1rem;
	color: var(--easysite-muted, #6b7280);
	margin-bottom: 1.5rem;
}

/* Hero */
.easysite-pb-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #fff;
	min-height: clamp(420px, 70vh, 640px);
	display: flex;
	align-items: center;
	padding: 0;
}

.easysite-pb-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(37, 99, 235, 0.35));
}

.easysite-pb-hero--gradient-overlay::before {
	background: linear-gradient(135deg, color-mix(in srgb, var(--easysite-section-gradient-from, var(--easysite-gradient-from, #2563eb)) 80%, transparent), color-mix(in srgb, var(--easysite-section-gradient-to, var(--easysite-gradient-to, #0ea5e9)) 70%, transparent));
}

.easysite-pb-hero--gradient-bg::before {
	display: none;
}

.easysite-pb-hero--gradient-bg {
	background-image: none !important;
}

.easysite-pb-hero--overlay-dark::before {
	background: rgba(0, 0, 0, 0.65);
}

.easysite-pb-hero--left::before {
	background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 40%, transparent);
}

.easysite-pb-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
}

.easysite-pb-hero--centered .easysite-pb-hero__inner {
	margin-inline: auto;
	text-align: center;
}

.easysite-pb-hero__title {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	line-height: 1.08;
	margin: 0 0 1rem;
	font-weight: 700;
}

.easysite-pb-hero__subtitle {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	margin-bottom: 1.75rem;
	opacity: 0.95;
	line-height: 1.6;
}

/* Split layouts */
.easysite-pb-split__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
}

.easysite-pb-split--right .easysite-pb-split__media {
	order: 2;
}

.easysite-pb-split__media img {
	border-radius: var(--easysite-radius, 16px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
	width: 100%;
}

.easysite-pb-split__content h2 {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin-bottom: 1rem;
}

/* Cards */
.easysite-pb-cards {
	display: grid;
	gap: 1.5rem;
}

.easysite-pb-cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.easysite-pb-cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.easysite-pb-card {
	background: #fff;
	border: 1px solid var(--easysite-border, #e5e7eb);
	border-radius: var(--easysite-radius, 16px);
	padding: 1.75rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.easysite-pb-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.easysite-pb-card.is-featured,
.easysite-pb-card--pricing.is-featured {
	border-color: var(--easysite-main, #2563eb);
	box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
	transform: scale(1.02);
}

.easysite-pb-card__icon svg {
	width: 44px;
	height: 44px;
	fill: var(--easysite-main, #2563eb);
	margin-bottom: 0.75rem;
}

.easysite-pb-price,
.easysite-pb-price-lg {
	font-weight: 700;
	color: var(--easysite-main, #2563eb);
	font-size: 1.25rem;
}

.easysite-pb-price-lg {
	font-size: 2rem;
	margin: 0.5rem 0 1rem;
}

.easysite-pb-quote {
	margin: 0;
	font-style: normal;
}

.easysite-pb-quote p {
	font-size: 1.05rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}

.easysite-pb-quote cite {
	font-weight: 600;
	color: var(--easysite-muted, #6b7280);
}

/* CTA */
.easysite-pb-cta {
	text-align: center;
	color: #fff;
}

.easysite-pb-cta--gradient {
	background: var(--easysite-gradient, linear-gradient(135deg, var(--easysite-main), var(--easysite-accent)));
}

.easysite-pb-cta.easysite-gradient-bg {
	background-image: none;
}

.easysite-pb-cta--dark {
	background: #0f172a;
}

.easysite-pb-cta--light {
	background: var(--easysite-surface, #f8fafc);
	color: var(--easysite-text, #1f2937);
}

.easysite-pb-cta h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin-bottom: 0.75rem;
}

.easysite-btn-white {
	background: #fff !important;
	color: var(--easysite-main, #2563eb) !important;
}

/* Stats */
.easysite-pb-stats {
	background: var(--easysite-surface, #f8fafc);
}

.easysite-pb-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 2rem;
	text-align: center;
}

.easysite-pb-stat strong {
	display: block;
	font-size: clamp(2rem, 4vw, 3rem);
	color: var(--easysite-main, #2563eb);
	line-height: 1;
	margin-bottom: 0.35rem;
}

/* Gallery */
.easysite-pb-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.easysite-pb-gallery__grid img {
	border-radius: 12px;
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

/* FAQ */
.easysite-pb-faq-item {
	border: 1px solid var(--easysite-border, #e5e7eb);
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	background: #fff;
}

.easysite-pb-faq-item summary {
	cursor: pointer;
	font-weight: 600;
}

/* Team */
.easysite-pb-card--team img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
	margin-bottom: 1rem;
}

/* Video */
.easysite-pb-video__embed {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Spacer */
.easysite-pb-spacer--small { height: 2rem; }
.easysite-pb-spacer--medium { height: 4rem; }
.easysite-pb-spacer--large { height: 6rem; }

/* Text align */
.easysite-text-align-center { text-align: center; }

.easysite-pb-prose p {
	font-size: 1.1rem;
	line-height: 1.75;
	color: var(--easysite-muted, #4b5563);
}

@media (max-width: 768px) {
	.easysite-pb-split__grid,
	.easysite-pb-split--right .easysite-pb-split__media {
		grid-template-columns: 1fr;
		order: unset;
	}
}
