/* EasySite Pro – Main Styles */

:root {
	--easysite-main: #2563eb;
	--easysite-accent: #0ea5e9;
	--easysite-heading-font: 'Inter', system-ui, sans-serif;
	--easysite-body-font: system-ui, -apple-system, sans-serif;
	--easysite-text: #1f2937;
	--easysite-muted: #6b7280;
	--easysite-bg: #ffffff;
	--easysite-surface: #f9fafb;
	--easysite-border: #e5e7eb;
	--easysite-radius: 12px;
	--easysite-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--easysite-container: 1140px;
	--easysite-header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--easysite-body-font);
	color: var(--easysite-text);
	background: var(--easysite-bg);
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--easysite-heading-font);
	line-height: 1.2;
	margin-top: 0;
}

a { color: var(--easysite-main); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

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

.easysite-layout-boxed .easysite-main {
	max-width: var(--easysite-container);
	margin: 0 auto;
	box-shadow: var(--easysite-shadow);
}

/* Header */
.easysite-header {
	background: #fff;
	border-bottom: 1px solid var(--easysite-border);
	position: relative;
	z-index: 100;
}

.easysite-sticky-header .easysite-header {
	position: sticky;
	top: 0;
}

.easysite-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--easysite-header-height);
}

.easysite-header-logo-center .easysite-header-inner {
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
}

.easysite-site-title {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--easysite-text);
	text-decoration: none;
}

.easysite-tagline {
	margin: 0.25rem 0 0;
	color: var(--easysite-muted);
	font-size: 0.9rem;
}

.easysite-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.easysite-nav-menu a {
	color: var(--easysite-text);
	font-weight: 500;
	text-decoration: none;
}

.easysite-nav-menu a:hover,
.easysite-nav-menu .current-menu-item a {
	color: var(--easysite-main);
}

.easysite-menu-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.5rem;
}

.easysite-menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--easysite-text);
	margin: 5px 0;
}

/* Buttons */
.easysite-btn {
	display: inline-block;
	background: var(--easysite-main);
	color: #fff !important;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	border: 0;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
}

.easysite-gradient-buttons .easysite-btn {
	background: var(--easysite-gradient, linear-gradient(135deg, var(--easysite-main), var(--easysite-accent)));
	box-shadow: 0 4px 14px color-mix(in srgb, var(--easysite-gradient-from, var(--easysite-main)) 35%, transparent);
}

.easysite-gradient-buttons .easysite-btn:hover {
	box-shadow: 0 8px 24px color-mix(in srgb, var(--easysite-gradient-from, var(--easysite-main)) 45%, transparent);
}

.easysite-btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	text-decoration: none;
}

.easysite-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* Sections */
.easysite-section { padding: 4rem 0; }
.easysite-section-title { text-align: center; margin-bottom: 2rem; font-size: 2rem; }
.easysite-text-center { text-align: center; }

.easysite-hero {
	background-size: cover;
	background-position: center;
	color: #fff;
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
}

.easysite-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
}

.easysite-gradient-hero .easysite-hero::before {
	background: linear-gradient(135deg, color-mix(in srgb, var(--easysite-gradient-from) 85%, transparent), color-mix(in srgb, var(--easysite-gradient-to) 75%, transparent));
}

.easysite-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.easysite-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.easysite-hero-subtitle { font-size: 1.15rem; margin-bottom: 1.5rem; opacity: 0.95; }

.easysite-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
}

.easysite-about-image img { border-radius: var(--easysite-radius); box-shadow: var(--easysite-shadow); }

.easysite-services-grid,
.easysite-testimonials-grid,
.easysite-team-grid,
.easysite-values-grid,
.easysite-posts-grid,
.easysite-pricing-grid {
	display: grid;
	gap: 1.5rem;
}

.easysite-services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.easysite-testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.easysite-team-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.easysite-values-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.easysite-posts-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.easysite-pricing-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.easysite-service-card,
.easysite-testimonial-card,
.easysite-team-card,
.easysite-value-card,
.easysite-post-card,
.easysite-pricing-card,
.easysite-search-item {
	background: var(--easysite-surface);
	border: 1px solid var(--easysite-border);
	border-radius: var(--easysite-radius);
	padding: 1.5rem;
}

.easysite-service-icon svg { width: 40px; height: 40px; fill: var(--easysite-main); }
.easysite-service-price { font-weight: 700; color: var(--easysite-main); }

.easysite-testimonial-card cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; }
.easysite-stars { color: #f59e0b; margin-bottom: 0.5rem; }

.easysite-cta {
	background: linear-gradient(135deg, var(--easysite-main), var(--easysite-accent));
	color: #fff;
	text-align: center;
}

.easysite-gradients-on .easysite-cta {
	background: var(--easysite-gradient);
}

.easysite-cta-inner h2 { color: #fff; }

.easysite-page-hero {
	background: var(--easysite-surface);
	text-align: center;
}

/* Content area */
.easysite-content-area { padding: 3rem 0; }
.easysite-content-area.has-sidebar {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
}

.easysite-entry-content > *:first-child { margin-top: 0; }

/* Forms */
.easysite-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.easysite-form input,
.easysite-form textarea,
.easysite-form select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--easysite-border);
	border-radius: 8px;
	font: inherit;
	margin-bottom: 1rem;
}

.easysite-form-notice { padding: 1rem; border-radius: 8px; }
.easysite-form-notice.easysite-success { background: #ecfdf5; color: #065f46; }
.easysite-form-notice.easysite-error { background: #fef2f2; color: #991b1b; }

.easysite-contact-layout {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 2rem;
}

.easysite-contact-details ul { list-style: none; padding: 0; }
.easysite-contact-details li { margin-bottom: 0.75rem; }

/* Footer */
.easysite-footer {
	background: #111827;
	color: #d1d5db;
	padding: 3rem 0 1.5rem;
	margin-top: 2rem;
}

.easysite-footer a { color: #fff; }
.easysite-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(255,255,255,.1);
	margin-top: 2rem;
	padding-top: 1.5rem;
}

.easysite-social-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.easysite-footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.easysite-footer-builder {
	display: grid;
	gap: 2rem;
	margin-bottom: 2rem;
}

.easysite-footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
.easysite-footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
.easysite-footer-cols-4 { grid-template-columns: repeat(4, 1fr); }

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

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

/* Pricing */
.easysite-pricing-card.is-featured {
	border-color: var(--easysite-main);
	box-shadow: var(--easysite-shadow);
	transform: scale(1.03);
}

.easysite-price { font-size: 2rem; font-weight: 700; color: var(--easysite-main); }

/* WooCommerce basics */
.easysite-woocommerce .products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.easysite-woocommerce .woocommerce-ordering,
.easysite-woocommerce .woocommerce-result-count { margin-bottom: 1rem; }

/* Mega menu */
.easysite-mega-menu-item { position: relative; }
.easysite-mega-menu-item > .easysite-mega-panel {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	min-width: 520px;
	background: #fff;
	border: 1px solid var(--easysite-border);
	box-shadow: var(--easysite-shadow);
	padding: 1.5rem;
	border-radius: var(--easysite-radius);
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	z-index: 200;
}

.easysite-mega-menu-item:hover > .easysite-mega-panel,
.easysite-mega-menu-item:focus-within > .easysite-mega-panel { display: grid; }

.easysite-mega-cols-2 > .easysite-mega-panel { grid-template-columns: repeat(2, 1fr); min-width: 360px; }
.easysite-mega-cols-4 > .easysite-mega-panel { grid-template-columns: repeat(4, 1fr); min-width: 680px; }

/* Popup */
.easysite-popup[hidden] { display: none !important; }
.easysite-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.easysite-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
}

.easysite-popup-content {
	position: relative;
	background: #fff;
	padding: 2rem;
	border-radius: var(--easysite-radius);
	max-width: 480px;
	width: calc(100% - 2rem);
	box-shadow: var(--easysite-shadow);
}

.easysite-popup-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: 0;
	font-size: 1.5rem;
	cursor: pointer;
}

/* Presets */
.easysite-preset-minimal .easysite-hero::before { background: rgba(0,0,0,.7); }
.easysite-preset-bold .easysite-btn { border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.easysite-preset-bold .easysite-hero h1 { text-transform: uppercase; }

/* Share */
.easysite-share { margin-top: 2rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }

/* 404 */
.easysite-404 { text-align: center; padding: 5rem 0; }

/* Responsive */
@media (max-width: 900px) {
	.easysite-split,
	.easysite-contact-layout,
	.easysite-content-area.has-sidebar,
	.easysite-footer-cols-3,
	.easysite-footer-cols-4 { grid-template-columns: 1fr; }

	.easysite-menu-toggle { display: block; }

	.easysite-primary-nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.easysite-primary-nav.is-open {
		display: block;
	}

	.easysite-nav-menu {
		flex-direction: column;
		padding: 1rem 0;
	}

	.easysite-mega-menu-item > .easysite-mega-panel {
		position: static;
		min-width: auto;
		box-shadow: none;
		border: 0;
		padding-left: 1rem;
	}
}

/* Premium enhancements */
.easysite-header.is-scrolled,
.easysite-sticky-header .easysite-header.is-scrolled {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.easysite-header-transparent .easysite-header {
	position: absolute;
	width: 100%;
	background: transparent;
	border-bottom-color: transparent;
}

.easysite-header-transparent .easysite-header:not(.is-scrolled) .easysite-nav-menu a,
.easysite-header-transparent .easysite-header:not(.is-scrolled) .easysite-site-title {
	color: #fff;
}

.easysite-btn-style-square .easysite-btn { border-radius: 6px; }
.easysite-btn-style-rounded .easysite-btn { border-radius: 10px; }
.easysite-btn-style-pill .easysite-btn { border-radius: 999px; }

.easysite-spacing-compact .easysite-section,
.easysite-spacing-compact .easysite-pb-section { padding: 2rem 0; }
.easysite-spacing-relaxed .easysite-section,
.easysite-spacing-relaxed .easysite-pb-section { padding: 5rem 0; }

.easysite-service-card,
.easysite-testimonial-card,
.easysite-pb-card {
	backdrop-filter: blur(8px);
}

.easysite-hero,
.easysite-pb-hero {
	overflow: hidden;
}

.easysite-page-builder-active {
	margin: 0;
}

.easysite-entry-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	letter-spacing: -0.02em;
}

.easysite-preset-luxury .easysite-btn { letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; }
.easysite-preset-startup .easysite-section-title { font-weight: 800; }
.easysite-preset-elegant .easysite-hero h1,
.easysite-preset-elegant .easysite-pb-hero__title { font-weight: 600; }

/* Gradient utilities */
.easysite-gradient-bg {
	color: #fff;
}

.easysite-pb-text.easysite-gradient-bg .easysite-pb-prose p,
.easysite-pb-text.easysite-gradient-bg h2 {
	color: #fff;
}

.easysite-gradient-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}

.easysite-gradient-swatch {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.easysite-mini-cart {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.6rem;
	color: inherit;
	text-decoration: none;
	border-radius: 6px;
}

.easysite-mini-cart:hover { background: rgba(0,0,0,.05); }

.easysite-mini-cart__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3rem;
	font-size: 0.75rem;
	font-weight: 700;
	border-radius: 999px;
	background: var(--easysite-main, #2563eb);
	color: #fff;
}
