/* ==========================================================
   Energex – custom homepage styles (child theme)
   Scoped to .egx-home so nothing else on the site changes.
   ========================================================== */

:root {
	--egx-orange: #F6640A;
	--egx-orange-dark: #D9530A;
	--egx-green: #4E9B54;
	--egx-green-dark: #3C7D42;
	--egx-ink: #0F1512;
	--egx-ink-2: #1B2420;
	--egx-text: #3E4843;
	--egx-muted: #6B756F;
	--egx-line: #E6E9E7;
	--egx-tint: #F5F7F5;
	--egx-radius: 14px;
	--egx-shadow: 0 1px 2px rgba(15,21,18,.06), 0 8px 24px rgba(15,21,18,.06);
}

/* --- Full-width pages (body.egx-full): neutralise WoodMart's container/grid --- */
body.egx-full .wd-page-wrapper { overflow-x: clip; }
body.egx-full .wd-page-content,
body.egx-full .main-page-wrapper { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.egx-full .wd-content-layout,
body.egx-full .content-layout-wrapper,
body.egx-full .main-page-wrapper > .container {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	grid-template-columns: none !important;
}
body.egx-full .wd-sidebar,
body.egx-full .sidebar-container,
body.egx-full .page-title,
body.egx-full .wd-page-title,
body.egx-catalogue .wd-shop-tools,
body.egx-catalogue .shop-loop-head { display: none !important; }

.egx-home {
	width: 100%;
	margin: 0;
	font-family: "Sora", "Helvetica Neue", Arial, sans-serif;
	color: var(--egx-text);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.egx-home *, .egx-home *::before, .egx-home *::after { box-sizing: border-box; }
.egx-home h1, .egx-home h2, .egx-home h3 {
	font-family: "Sora", "Helvetica Neue", Arial, sans-serif;
	color: var(--egx-ink);
	margin: 0;
	letter-spacing: -0.02em;
	text-transform: none;
}
.egx-home p { margin: 0; }
.egx-home img { max-width: 100%; display: block; }
.egx-home a { text-decoration: none; }
.egx-home svg { width: 1em; height: 1em; flex: none; }

.egx-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* --- Eyebrow / headings --- */
.egx-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--egx-orange);
	margin-bottom: 14px;
}
.egx-eyebrow--dark { color: var(--egx-green); }

.egx-section { padding: 96px 0; background: #fff; }
.egx-section--tint { background: var(--egx-tint); }
.egx-section--dark { background: var(--egx-ink); }
.egx-section--dark h2, .egx-section--dark h3 { color: #fff; }
.egx-section--dark .egx-head p { color: rgba(255,255,255,.7); }

.egx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.egx-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; line-height: 1.15; }
.egx-head p { margin-top: 12px; max-width: 560px; color: var(--egx-muted); font-size: 17px; }
.egx-head--center { flex-direction: column; align-items: center; text-align: center; }
.egx-head--center p { margin-left: auto; margin-right: auto; }

.egx-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--egx-green); font-size: 15px; }
.egx-link:hover { color: var(--egx-green-dark); }
.egx-link:hover svg { transform: translateX(3px); }
.egx-link svg { transition: transform .2s; }
.egx-link--light { color: #fff; }
.egx-link--light:hover { color: var(--egx-orange); }

/* --- Buttons --- */
.egx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	height: 52px; padding: 0 26px; border-radius: 10px;
	font-weight: 600; font-size: 15px; letter-spacing: .01em;
	transition: background .2s, color .2s, transform .2s, box-shadow .2s;
	border: 1.5px solid transparent; white-space: nowrap;
}
.egx-btn:hover { transform: translateY(-1px); }
.egx-btn--primary { background: var(--egx-orange); color: #fff !important; box-shadow: 0 6px 18px rgba(246,100,10,.28); }
.egx-btn--primary:hover { background: var(--egx-orange-dark); }
.egx-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff !important; }
.egx-btn--ghost:hover { background: #fff; color: var(--egx-ink) !important; }
.egx-btn--white { background: #fff; color: var(--egx-ink) !important; }
.egx-btn--white:hover { background: var(--egx-ink); color: #fff !important; }
.egx-btn--wa { background: transparent; border-color: rgba(255,255,255,.7); color: #fff !important; }
.egx-btn--wa:hover { background: #25D366; border-color: #25D366; }
.egx-btn--wa svg { width: 20px; height: 20px; }

/* ================= HERO ================= */
.egx-hero {
	position: relative; overflow: hidden; background: var(--egx-ink);
	min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff;
}
.egx-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.egx-hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(10,14,12,.88) 0%, rgba(10,14,12,.62) 45%, rgba(10,14,12,.2) 100%),
		linear-gradient(0deg, rgba(10,14,12,.6) 0%, rgba(10,14,12,0) 40%);
}
.egx-hero__inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 80px; }
.egx-hero h1 {
	color: #fff; font-size: clamp(36px, 5.2vw, 64px); font-weight: 600; line-height: 1.08;
	max-width: 820px; margin-bottom: 22px;
}
.egx-hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.82); max-width: 600px; }
.egx-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.egx-hero__proof {
	list-style: none; margin: 56px 0 0; padding: 26px 0 0; display: flex; gap: 48px; flex-wrap: wrap;
	border-top: 1px solid rgba(255,255,255,.18); max-width: 720px;
}
.egx-hero__proof li { margin: 0; }
.egx-hero__proof strong { display: block; color: #fff; font-size: 24px; font-weight: 600; line-height: 1.2; }
.egx-hero__proof span { color: rgba(255,255,255,.65); font-size: 14px; }

/* ================= LOGO STRIPS ================= */
.egx-clients, .egx-brands { padding: 44px 0; background: #fff; border-bottom: 1px solid var(--egx-line); }
.egx-brands { border-top: 1px solid var(--egx-line); border-bottom: 0; }
.egx-clients__label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--egx-muted); margin-bottom: 26px !important; }
.egx-logos { display: flex; align-items: center; justify-content: center; gap: 28px 64px; flex-wrap: wrap; }
.egx-logos img { height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.egx-logos img:hover { filter: none; opacity: 1; }
.egx-logos--brands img { height: 40px; }

/* ================= CATEGORIES ================= */
.egx-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.egx-cat {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--egx-line);
	border-radius: var(--egx-radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.egx-cat:hover { box-shadow: var(--egx-shadow); transform: translateY(-3px); border-color: transparent; }
.egx-cat__img { aspect-ratio: 4 / 3; background: var(--egx-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.egx-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.egx-cat:hover .egx-cat__img img { transform: scale(1.05); }
.egx-cat__ph { font-size: 44px; color: var(--egx-green); }
.egx-cat__body { padding: 18px 20px 20px; }
.egx-cat__body h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.egx-cat__body span { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--egx-muted); }
.egx-cat:hover .egx-cat__body span { color: var(--egx-orange); }

/* ================= SERVICES ================= */
.egx-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.egx-service { background: #fff; border-radius: var(--egx-radius); padding: 32px 28px; box-shadow: var(--egx-shadow); }
.egx-service h3, .egx-point h3 { font-size: 19px; font-weight: 600; margin: 20px 0 8px; line-height: 1.3; }
.egx-service p, .egx-point p { font-size: 15px; color: var(--egx-muted); }
.egx-ico {
	display: inline-flex; width: 52px; height: 52px; border-radius: 12px; align-items: center; justify-content: center;
	background: rgba(78,155,84,.12); color: var(--egx-green); font-size: 26px;
}

/* ================= PROJECTS ================= */
.egx-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.egx-project { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--egx-radius); overflow: hidden; background: var(--egx-ink-2); }
.egx-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.egx-project:hover img { transform: scale(1.06); }
.egx-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,12,0) 35%, rgba(10,14,12,.92) 100%); }
.egx-project__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; }
.egx-project h3 { color: #fff; font-size: 21px; font-weight: 600; line-height: 1.3; margin: 12px 0 14px; }
.egx-tag { display: inline-block; padding: 5px 12px; border-radius: 99px; background: var(--egx-orange); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.egx-project__more { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; }
.egx-project:hover .egx-project__more { color: var(--egx-orange); }

/* ================= WHY ================= */
.egx-why { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.egx-why__intro h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; line-height: 1.15; margin-bottom: 18px; }
.egx-why__intro p { font-size: 17px; color: var(--egx-muted); margin-bottom: 30px; }
.egx-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.egx-point { padding: 28px; border: 1px solid var(--egx-line); border-radius: var(--egx-radius); }

/* ================= CTA ================= */
.egx-cta { background: linear-gradient(120deg, var(--egx-green-dark) 0%, var(--egx-green) 100%); padding: 64px 0; }
.egx-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.egx-cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.egx-cta p { color: rgba(255,255,255,.85); font-size: 17px; margin-top: 8px; }
.egx-cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ================= PROJECTS PAGE ================= */
.egx-phero { position: relative; overflow: hidden; background: var(--egx-ink); color: #fff; }
.egx-phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.egx-phero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,12,.92) 0%, rgba(10,14,12,.7) 50%, rgba(10,14,12,.35) 100%); }
.egx-phero__inner { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 72px; }
.egx-phero h1 { color: #fff; font-size: clamp(34px, 4.8vw, 58px); font-weight: 600; line-height: 1.08; max-width: 760px; margin: 18px 0 18px; }
.egx-phero p { color: rgba(255,255,255,.8); font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; }
.egx-phero__stats { list-style: none; margin: 44px 0 0; padding: 24px 0 0; display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); max-width: 760px; }
.egx-phero__stats li { margin: 0; }
.egx-phero__stats strong { display: block; font-size: 28px; font-weight: 600; color: var(--egx-orange); line-height: 1.2; }
.egx-phero__stats span { font-size: 14px; color: rgba(255,255,255,.7); }
.egx-home .egx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.55); }
.egx-home .egx-crumbs a { color: rgba(255,255,255,.8); }
.egx-home .egx-crumbs a:hover { color: var(--egx-orange); }
.egx-home .egx-crumbs [aria-current] { color: #fff; }

.egx-pfilter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.egx-pfilter button {
	height: 42px; padding: 0 18px; border-radius: 99px; border: 1.5px solid var(--egx-line); background: #fff;
	font-family: inherit; font-size: 14px; font-weight: 600; color: var(--egx-text); cursor: pointer; transition: all .2s;
	text-transform: none; letter-spacing: 0; box-shadow: none;
}
.egx-pfilter button:hover { border-color: var(--egx-ink); color: var(--egx-ink); }
.egx-pfilter button.is-active { background: var(--egx-ink); border-color: var(--egx-ink); color: #fff; }

.egx-pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.egx-pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--egx-line); border-radius: var(--egx-radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.egx-pcard[hidden] { display: none; }
.egx-pcard:hover { box-shadow: var(--egx-shadow); transform: translateY(-4px); border-color: transparent; }
.egx-pcard__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--egx-ink-2); }
.egx-pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.egx-pcard:hover .egx-pcard__media img { transform: scale(1.05); }
.egx-pcard__media .egx-tag { position: absolute; top: 16px; left: 16px; }
.egx-pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.egx-pcard__where { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--egx-muted); }
.egx-pcard__where svg { width: 15px; height: 15px; color: var(--egx-green); }
.egx-pcard h2 { font-size: 20px !important; font-weight: 600; line-height: 1.3; margin: 10px 0 10px; letter-spacing: -0.01em; }
.egx-pcard p { font-size: 15px; color: var(--egx-muted); line-height: 1.6; }
.egx-pcard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 15px; font-weight: 600; color: var(--egx-green); }
.egx-pcard:hover .egx-pcard__more { color: var(--egx-orange); }
.egx-pcard:hover .egx-pcard__more svg { transform: translateX(3px); }
.egx-pcard__more svg { transition: transform .2s; }

/* Featured first card spans 2 columns (only when showing all) */
.egx-pgrid:not(.is-filtered) .egx-pcard--feature { grid-column: span 2; flex-direction: row; }
.egx-pgrid:not(.is-filtered) .egx-pcard--feature .egx-pcard__media { aspect-ratio: auto; flex: 1.2; min-height: 340px; }
.egx-pgrid:not(.is-filtered) .egx-pcard--feature .egx-pcard__body { flex: 1; padding: 32px; justify-content: center; }
.egx-pgrid:not(.is-filtered) .egx-pcard--feature h2 { font-size: 26px !important; }
.egx-pgrid:not(.is-filtered) .egx-pcard--feature .egx-pcard__more { margin-top: 12px; }

.egx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.egx-steps li { margin: 0; background: #fff; border-radius: var(--egx-radius); padding: 28px 26px; box-shadow: var(--egx-shadow); }
.egx-steps span { display: inline-block; font-size: 14px; font-weight: 700; color: var(--egx-orange); letter-spacing: .08em; }
.egx-steps h3 { font-size: 19px; font-weight: 600; margin: 12px 0 8px; }
.egx-steps p { font-size: 15px; color: var(--egx-muted); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
	.egx-pgrid, .egx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.egx-pgrid:not(.is-filtered) .egx-pcard--feature { flex-direction: column; }
	.egx-pgrid:not(.is-filtered) .egx-pcard--feature .egx-pcard__media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
	.egx-pgrid:not(.is-filtered) .egx-pcard--feature .egx-pcard__body { padding: 24px; }
	.egx-cats, .egx-services { grid-template-columns: repeat(2, 1fr); }
	.egx-why { grid-template-columns: 1fr; gap: 40px; }
	.egx-projects { grid-template-columns: repeat(2, 1fr); }
	.egx-projects .egx-project:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
	.egx-pgrid, .egx-steps { grid-template-columns: 1fr; }
	.egx-pgrid:not(.is-filtered) .egx-pcard--feature { grid-column: auto; }
	.egx-phero__inner { padding-top: 56px; padding-bottom: 48px; }
	.egx-phero__stats { gap: 18px 28px; }
	.egx-phero__stats strong { font-size: 22px; }
	.egx-pfilter { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
	.egx-pfilter button { flex: none; }
	.egx-wrap { padding: 0 16px; }
	.egx-section { padding: 64px 0; }
	.egx-hero { min-height: 0; }
	.egx-hero__inner { padding-top: 80px; padding-bottom: 56px; }
	.egx-hero__ctas .egx-btn { flex: 1 1 100%; }
	.egx-hero__proof { gap: 20px 28px; margin-top: 40px; }
	.egx-hero__proof strong { font-size: 20px; }
	.egx-head { margin-bottom: 28px; }
	.egx-cats { gap: 12px; }
	.egx-cat__body { padding: 14px; }
	.egx-cat__body h3 { font-size: 15px; }
	.egx-services, .egx-why__grid { grid-template-columns: 1fr; }
	.egx-projects { grid-template-columns: 1fr; }
	.egx-projects .egx-project:nth-child(3) { display: block; }
	.egx-project { aspect-ratio: 4 / 3; }
	.egx-logos { gap: 20px 36px; }
	.egx-logos img { height: 34px; max-width: 110px; }
	.egx-cta__btns, .egx-cta__btns .egx-btn { width: 100%; }
}
