/* =========================================================
   Homepage sections (Elementor page, CSS classes set on containers)
   ========================================================= */
.home .site-content > .ast-container { max-width: 100%; padding: 0; }
.home .elementor-widget-shortcode .elementor-shortcode > p:empty { display: none; }

/* Generic section spacing / headings */
.elx-section { padding-top: 96px !important; padding-bottom: 32px !important; }
.elx-section-head { margin-bottom: 44px; }
.elx-section-head .elementor-heading-title { margin: 0; }
.elx-eyebrow-w .elementor-heading-title, .elx-section-head .elx-eyebrow-w .elementor-heading-title {
	font-family: var(--elx-body); font-size: 12px; font-weight: 500; letter-spacing: .32em; color: var(--elx-gold);
	margin-bottom: 14px;
}
.elx-section-head h2.elementor-heading-title { font-size: clamp(24px, 2.6vw, 36px); }
.elx-link-all .elementor-heading-title, .elx-link-all .elementor-heading-title a {
	font-family: var(--elx-body); font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--elx-black);
	text-decoration: none; border-bottom: 1px solid var(--elx-black); padding-bottom: 4px;
}
.elx-link-all .elementor-heading-title a:hover { color: var(--elx-gold); border-color: var(--elx-gold); }

/* Grid rows (layout kept in CSS so it stays tidy on every screen) */
.e-con.elx-tiles { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.e-con.elx-editorial-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; }
.e-con.elx-services-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 56px 0 64px !important; }
.elx-tiles > .e-con, .elx-editorial-row > .e-con, .elx-services-grid > .e-con { width: auto !important; max-width: none; }
.elx-services.elx-section { padding-top: 96px !important; padding-bottom: 0 !important; }
.elx-services > .e-con-inner { border-top: 1px solid var(--elx-line); }
.elx-services { border-top: 0 !important; }
.elx-editorial-img .elementor-widget-image, .elx-editorial-img .elementor-widget-image a { height: 100%; display: block; }

/* Category tiles */
.elx-tile {
	position: relative; overflow: hidden; text-decoration: none !important; isolation: isolate;
	background-size: cover !important; background-position: center !important;
}
.elx-tile::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(15, 15, 16, 0) 45%, rgba(15, 15, 16, .55) 100%);
}
.elx-tile::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: inherit;
	transition: transform 1.2s var(--elx-ease);
}
.elx-tile:hover::before { transform: scale(1.05); }
.elx-tile > .e-con-inner, .elx-tile > .elementor-element { position: relative; z-index: 1; }
.elx-tile .elementor-heading-title { color: #fff !important; }
.elx-tile h3.elementor-heading-title { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .14em; margin: 0 0 10px; }
.elx-tile .elx-tile-cta .elementor-heading-title {
	font-family: var(--elx-body); font-size: 11px; font-weight: 500; letter-spacing: .28em;
	display: inline-block; padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .7);
}

/* Editorial split */
.elx-editorial-text .elementor-widget-text-editor { max-width: 460px; }
.elx-editorial-text .elementor-widget-text-editor p { margin: 0 0 16px; }
.elx-editorial-img { overflow: hidden; }
.elx-editorial-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; display: block; }

/* Service strip */
.elx-services { border-top: 1px solid var(--elx-line); }
.elx-service, .elx-service .elementor-heading-title { text-align: center !important; }
.elx-service h4.elementor-heading-title {
	font-family: var(--elx-body); font-size: 12px; font-weight: 500; letter-spacing: .26em; margin: 0 0 10px;
}
.elx-service .elementor-widget-text-editor { font-size: 14px; color: var(--elx-muted); }
.elx-service .elementor-widget-text-editor p { margin: 0; }

/* Product grids inside the homepage */
.home .elx-products .woocommerce { margin: 0; }
.home .elx-products ul.products { margin-bottom: 0 !important; }

@media (max-width: 1024px) {
	.elx-section { padding-top: 72px !important; }
	.e-con.elx-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 767px) {
	.e-con.elx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.elx-tile h3.elementor-heading-title { font-size: 15px; letter-spacing: .12em; margin-bottom: 8px; }
	.elx-tile .elx-tile-cta .elementor-heading-title { font-size: 10px; letter-spacing: .22em; }
	.e-con.elx-editorial-row { grid-template-columns: 1fr; }
	.e-con.elx-services-grid { gap: 28px 16px; padding: 44px 0 52px !important; }
	.elx-services.elx-section { padding-top: 64px !important; }
	.elx-section { padding-top: 56px !important; padding-bottom: 16px !important; }
	.elx-section-head { margin-bottom: 28px; }
	.elx-editorial-img img { aspect-ratio: 4 / 4.2; }
}
