/* ============================================================
   Ejada — base front-end stylesheet.
   Design system tokens below; component styles consume them.
   ============================================================ */

:root {
	/* ---- Brand colors (per design system) ---- */
	--color-primary:       #01a982;   /* Brand green */
	--color-primary-dark:  #018f6c;
	--color-primary-soft:  #e6f7f1;
	--color-text:          #1d1f27;   /* Text & dark surfaces */
	--color-dark:          #1d1f27;
	--color-bg:            #ffffff;
	--color-bg-alt:        #f7f7f7;   /* Neutral light */
	--color-border:        #d5d5d5;   /* Neutral border */
	--color-muted:         #6b7280;
	--color-secondary:     #f5b301;

	/* ---- Layout ---- */
	--container:           1280px;
	--radius:              6px;

	/* ---- Typography ---- */
	--font-body: 'HPE Graphik', 'Graphik', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* ---- Type scale (mobile defaults; scaled up via breakpoints).
	   Bumped from the design-system mobile spec (28/24/22/20/16/12) for
	   better readability on small screens. ---- */
	--fs-h1: 34px;
	--fs-h2: 28px;
	--fs-h3: 24px;
	--fs-h4: 22px;
	--fs-h5: 18px;
	--fs-p:  16px;

	/* ---- Section vertical padding (per side; total gap between sections = 2 × this).
	   Sized so the inter-section gap roughly matches the design-system spec at
	   each breakpoint (~56 / 100 / 120 / 150 px between sections). ---- */
	--section-pad: 28px;
}

/* 1280: small laptop */
@media (min-width: 1024px) {
	:root {
		--fs-h1: 52px;
		--fs-h2: 42px;
		--fs-h3: 28px;
		--fs-h4: 24px;
		--fs-h5: 16px;
		--fs-p:  14px;
		--section-pad: 50px;
	}
}

/* 1440: desktop */
@media (min-width: 1440px) {
	:root {
		--fs-h1: 64px;
		--fs-h2: 42px;
		--fs-h3: 32px;
		--fs-h4: 24px;
		--fs-h5: 20px;
		--fs-p:  16px;
		--section-pad: 60px;
	}
}

/* 1920: wide desktop */
@media (min-width: 1920px) {
	:root {
		--fs-h1: 82px;
		--fs-h2: 56px;
		--fs-h3: 42px;
		--fs-h4: 32px;
		--fs-h5: 24px;
		--fs-p:  20px;
		--section-pad: 75px;
	}
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

/* Respect users who ask for reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- Scroll-reveal: fade + lift sections into view ---- */
.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
	will-change: opacity, transform;
}
.reveal.is-in-view { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2)  { transition-delay: .05s; }
.reveal:nth-child(3)  { transition-delay: .1s; }

/* ---- Universal smooth-hover polish for common interactive bits ---- */
a {
	transition: color .2s ease;
}
button, .btn,
.home-resources__link, .home-press__link,
.site-footer__socials a,
.primary-menu a {
	transition: color .2s ease, background-color .2s ease,
	            border-color .2s ease, box-shadow .2s ease,
	            transform .15s ease, opacity .2s ease;
}
img { transition: opacity .2s ease, transform .35s ease; }

/* ---- Light hover lift on cards (purely decorative) ---- */
.home-resources__card { transition: transform .25s ease; }
.home-resources__card:hover { transform: translateY(-4px); }
.home-resources__media img { transition: transform .5s ease; }
.home-resources__card:hover .home-resources__media img { transform: scale(1.03); }
.home-featured__card { transition: transform .25s ease, box-shadow .25s ease; }
.home-featured__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

body {
	font-family: var(--font-body);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.55;
	font-size: var(--fs-p);
	-webkit-font-smoothing: antialiased;
}

h1, .h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.25; }
h5, .h5 { font-size: var(--fs-h5); line-height: 1.3; }
p       { font-size: var(--fs-p);  }

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

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: fixed; top: 10px; left: 10px; background:#000; color:#fff; padding:8px 12px; z-index:9999; clip:auto; width:auto; height:auto; }

/* -------- Header -------- */
.site-header {
	background: #fff;
	position: sticky; top: 0; z-index: 50;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 108px; gap: 32px;
	/* keep .container's horizontal padding (0 20px); only add vertical padding */
	padding-top: 12px;
	padding-bottom: 12px;
}
.site-header__brand-link { display: inline-flex; align-items: center; gap: 22px; }
.site-header__brand .site-logo { max-height: 84px; width: auto; display: block; }
.site-header__brand .site-logo--sub { max-height: 56px; }
.site-header__brand .site-logo--text { font-weight: 700; font-size: 1.25rem; color: var(--color-primary); }
.site-header__divider {
	display: inline-block;
	width: 1px; height: 50px;
	background: var(--color-border);
}

@media (max-width: 860px) {
	.site-header__inner { min-height: 96px; padding-top: 10px; padding-bottom: 10px; }
	.site-header__brand .site-logo { max-height: 68px; }
	.site-header__brand .site-logo--sub { max-height: 48px; }
	.site-header__divider { height: 44px; }
}
@media (max-width: 540px) {
	.site-header__inner { min-height: 78px; }
	.site-header__brand-link { gap: 14px; }
	.site-header__brand .site-logo { max-height: 52px; }
	.site-header__brand .site-logo--sub { max-height: 38px; }
	.site-header__divider { height: 34px; }
}

.site-header__toggle {
	display: none; flex-direction: column; gap: 6px;
	background: none; border: 1.5px solid var(--color-border);
	border-radius: 6px; padding: 10px; cursor: pointer;
	width: 44px; height: 44px; align-items: center; justify-content: center;
	position: relative; transition: border-color .2s ease;
}
.site-header__toggle:hover { border-color: var(--color-primary); }
.site-header__toggle span {
	width: 22px; height: 2px; background: var(--color-text); display: block;
	border-radius: 2px;
	transition: transform .25s ease, opacity .15s ease, background .2s ease;
	transform-origin: center;
}
/* Open state → morph the 3 bars into an X */
.site-header__toggle[aria-expanded="true"] { border-color: var(--color-primary); }
.site-header__toggle[aria-expanded="true"] span                { background: var(--color-primary); }
.site-header__toggle[aria-expanded="true"] span:nth-child(1)   { transform: translateY(8px)  rotate(45deg);  }
.site-header__toggle[aria-expanded="true"] span:nth-child(2)   { opacity: 0; }
.site-header__toggle[aria-expanded="true"] span:nth-child(3)   { transform: translateY(-8px) rotate(-45deg); }

.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; align-items: center; }
.primary-menu a, .footer-menu a {
	color: var(--color-text);
	font-weight: 500;
	font-size: 16px;
	position: relative;
	padding: 6px 0;
	transition: color .2s ease;
}
.primary-menu a:hover { color: var(--color-primary); text-decoration: none; }

/* Active / current menu state — matches the green "Home" in the design */
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_parent > a {
	color: var(--color-primary);
	font-weight: 600;
}

@media (max-width: 860px) {
	.site-header__toggle { display: inline-flex; }

	.site-header__nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff;
		border-top: 1px solid var(--color-border);
		box-shadow: 0 14px 28px rgba(0, 0, 0, .15);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	.site-header__nav.is-open { display: block; }

	.primary-menu {
		flex-direction: column;
		padding: 8px 20px 18px;
		gap: 0;
		align-items: stretch;
	}
	.primary-menu li { border-bottom: 1px solid var(--color-border); }
	.primary-menu li:last-child { border-bottom: 0; }
	.primary-menu a {
		display: block;
		padding: 16px 4px;
		font-size: 18px;
		font-weight: 600;
		color: var(--color-dark);
	}
	.primary-menu a:hover { color: var(--color-primary); }
	.primary-menu .current-menu-item > a,
	.primary-menu .current_page_item > a { color: var(--color-primary); }
	/* Brand-coloured dot trailing the active item */
	.primary-menu .current-menu-item > a::after,
	.primary-menu .current_page_item > a::after {
		content: ''; float: right;
		width: 8px; height: 8px; margin-top: 10px;
		border-radius: 50%; background: var(--color-primary);
	}
}

/* -------- Hero -------- */
.hero { background: var(--color-bg-alt) center/cover no-repeat; color: var(--color-text); padding: var(--section-pad) 0; }
.hero__inner { max-width: 760px; }
.hero__heading { font-size: var(--fs-h1); margin: 0 0 16px; line-height: 1.1; }
.hero__subheading { font-size: var(--fs-h5); margin: 0 0 24px; color: var(--color-muted); }

/* -------- Buttons -------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: 0; transition: background .2s ease, transform .1s ease; font-family: inherit; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }

/* -------- Generic blocks -------- */
.block { padding: var(--section-pad) 0; }
.block:nth-of-type(even) { background: var(--color-bg-alt); }
.block__title { font-size: var(--fs-h2); margin: 0 0 16px; }
.block__lede  { font-size: var(--fs-h5); color: var(--color-muted); margin: 0 0 24px; }

.block--image-text__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.block--image-right .block--image-text__grid { direction: rtl; }
.block--image-right .block--image-text__grid > * { direction: ltr; }
@media (max-width: 760px) { .block--image-text__grid { grid-template-columns: 1fr; } }

.block--cta { background: var(--color-primary); color: #fff; text-align: center; }
.block--cta .block__title, .block--cta .block__lede { color: #fff; }
.block--cta .btn-primary { background: #fff; color: var(--color-primary); }
.block--cta .btn-primary:hover { background: var(--color-bg-alt); }

/* -------- Forms (styled select + inputs) -------- */
.ejada-contact-form .form-row { margin-bottom: 18px; }
.ejada-contact-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.ejada-contact-form .req { color: #d33; }
.ejada-contact-form input[type=text],
.ejada-contact-form input[type=email],
.ejada-contact-form input[type=tel],
.ejada-contact-form textarea,
.styled-select select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font: inherit;
	background: #fff;
}
.ejada-contact-form textarea { resize: vertical; }

/* Custom styled select — progressive enhancement.
   Native <select> is kept in the DOM (hidden visually) for form submission and
   a11y; .styled-select__trigger + .styled-select__menu replace the browser's
   dropdown UI so we get full control over hover/selected/focus styling. */
.styled-select { position: relative; }

/* Native select stays for form submission & a11y, but is hidden from view once enhanced. */
.styled-select.is-enhanced select {
	position: absolute; inset: 0;
	opacity: 0;
	pointer-events: none;
	width: 100%; height: 100%;
}

/* Trigger button — matches the look of a regular input */
.styled-select__trigger {
	display: flex; align-items: center; justify-content: space-between;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 0;
	background: #fff;
	color: var(--color-dark);
	font: inherit;
	cursor: pointer;
	text-align: left;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.styled-select.is-open .styled-select__trigger,
.styled-select__trigger:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(1, 169, 130, .25);
}
.styled-select__value { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.styled-select__value:empty::before { content: attr(data-placeholder); color: #9aa3af; }

/* Chevron — pure CSS triangle that rotates when the menu is open */
.styled-select__chevron {
	flex: 0 0 auto;
	width: 10px; height: 10px;
	margin-left: 12px;
	border-right: 2px solid var(--color-dark);
	border-bottom: 2px solid var(--color-dark);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform .2s ease;
}
.styled-select.is-open .styled-select__chevron {
	transform: rotate(-135deg) translate(-2px, -2px);
}

/* Dropdown panel */
.styled-select__menu {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0;
	margin: 0; padding: 6px 0;
	list-style: none;
	background: #fff;
	color: var(--color-dark);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	max-height: 240px;
	overflow-y: auto;
	z-index: 20;
}
.styled-select__option {
	padding: 10px 14px;
	cursor: pointer;
	font: inherit;
	color: var(--color-dark);
	line-height: 1.3;
	transition: background .12s ease, color .12s ease;
}
.styled-select__option:hover { background: var(--color-bg-alt); }
.styled-select__option.is-selected {
	background: var(--color-primary);
	color: #fff;
	font-weight: 600;
}
.styled-select__option[aria-disabled="true"] {
	color: #9aa3af; cursor: not-allowed; background: transparent;
}

/* intl-tel-input overrides */
.iti { width: 100%; }
/* v28 computes its own padding-left based on prefix width (flag + caret +
   dial-code chip); don't override it — otherwise the placeholder overlaps. */

/* The phone input sits inside .home-contact (color:#fff), so the dial-code
   chip in the country selector inherits white text and disappears on the
   white input background. Force dark text on the selector. */
.iti .iti__selected-country,
.iti .iti__selected-country-primary,
.iti .iti__selected-dial-code {
	color: var(--color-dark);
}

/* intl-tel-input v20 dropdown — pinned width, country-search panel at top. */
.iti__dropdown-content {
	background: #fff;
	color: var(--color-dark);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	overflow: hidden;
	width: 340px;
	max-width: calc(100vw - 32px);
}
.iti__country-list {
	background: #fff;
	color: var(--color-dark);
	max-height: 260px;
	overflow-y: auto;
	text-align: left;
	white-space: nowrap;
}
.iti__country,
.iti__country-name { color: var(--color-dark); }
.iti__dial-code    { color: #5b6573; }
.iti__country      { padding: 8px 10px; }
.iti__country.iti__highlight,
.iti__country:hover { background: var(--color-bg-alt); }
.iti__divider { border-bottom: 1px solid var(--color-border); }
.iti__selected-flag, .iti__selected-country { outline: none; }

/* Search input row at the top of the v28 dropdown. Extra padding-left
   reserves space for the absolutely-positioned .iti__search-icon. */
.iti__search-input {
	width: 100%; box-sizing: border-box;
	padding: 10px 36px 10px 38px;
	border: 0; outline: 0;
	border-bottom: 1px solid var(--color-border);
	background: #fff;
	color: var(--color-dark);
	font: inherit;
	font-size: .95rem;
}
.iti__search-input::placeholder { color: #9aa3af; }
.iti__search-input:focus {
	box-shadow: inset 0 -2px 0 var(--color-primary);
}
/* Search-icon and clear-button sit at left/right inside the wrapper */
.iti__search-icon {
	left: 12px;
	color: #9aa3af;
}
.iti__search-clear { right: 8px; }

.form-status { margin-top: 12px; font-weight: 500; }
.form-status.is-success { color: #137333; }
.form-status.is-error   { color: #c5221f; }
.form-row.has-error input,
.form-row.has-error textarea { border-color: #c5221f; }

/* -------- Footer -------- */
.site-footer {
	background: #fff;
	color: var(--color-dark);
	padding: 80px 0;
	margin-top: 0;
	border-top: 0;
	position: relative;
}
.site-footer a { color: var(--color-dark); }
.site-footer a:hover { color: var(--color-primary); text-decoration: none; }

/* Three-column horizontal: brand | socials | copy */
.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-footer__brand-link { display: inline-flex; align-items: center; gap: 22px; }
.site-footer__brand .site-logo      { max-height: 72px; width: auto; display: block; }
.site-footer__brand .site-logo--sub { max-height: 50px; }
.site-footer__divider {
	display: inline-block;
	width: 1px; height: 50px;
	background: var(--color-border);
}

/* Social icons — dynamic from Theme Settings repeater.
   If the editor uploads an icon image it's used directly. Otherwise we render
   a coloured circle with the label's initial letter so the footer is never
   broken. Per-platform colours are applied via the data-platform attribute. */
.site-footer__socials {
	list-style: none; padding: 0; margin: 0;
	display: inline-flex; gap: 12px; align-items: center;
}
.site-footer__socials a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	transition: transform .15s ease, filter .2s ease;
	overflow: hidden;
	text-decoration: none;
}
.site-footer__socials a:hover { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }

/* Per-platform background colours (recognisable accents, not brand marks).
   For the official brand icons themselves, upload PNG/SVG files in
   Theme Settings → Footer → Social Media Icons; they override the colour. */
.site-footer__socials a[data-platform="facebook"]  { background: #1877f2; }
.site-footer__socials a[data-platform="linkedin"]  { background: #0a66c2; }
.site-footer__socials a[data-platform="instagram"] {
	background: linear-gradient(135deg, #fdcb52 0%, #fa1b66 50%, #5b51d8 100%);
}
.site-footer__socials a[data-platform="x"]         { background: #000; }
.site-footer__socials a[data-platform="youtube"]   { background: #ff0000; }

/* If the editor uploaded an icon image, let it fill the circle and remove the BG. */
.site-footer__socials img {
	width: 100%; height: 100%; display: block; border-radius: 50%;
	object-fit: cover;
}
.site-footer__socials li:has(img) a { background: transparent !important; }

.site-footer__socials-letter {
	font-weight: 700; font-size: .9rem; line-height: 1; letter-spacing: .02em;
}

.site-footer__copy {
	font-size: .9rem;
	color: var(--color-dark);
	text-align: right;
}

/* Optional secondary row when footer menu / widget areas are populated */
.site-footer__secondary {
	display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
	margin-top: 24px; padding-top: 20px;
	border-top: 1px solid var(--color-border);
}
.site-footer__nav .footer-menu { flex-wrap: wrap; }

@media (max-width: 760px) {
	.site-footer__inner { flex-direction: column; text-align: center; gap: 18px; }
	.site-footer__copy  { text-align: center; }
	.site-footer__brand .site-logo      { max-height: 40px; }
	.site-footer__brand .site-logo--sub { max-height: 28px; }
}

/* -------- Cookie consent banner -------- */
.cookie-consent {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 110;
	background: var(--color-dark);
	color: #fff;
	padding: 16px 20px;
	box-shadow: 0 -8px 24px rgba(0, 0, 0, .25);
	transform: translateY(110%);
	transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.cookie-consent.is-visible { transform: translateY(0); }
.cookie-consent__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.cookie-consent__msg {
	margin: 0;
	font-size: .95rem;
	line-height: 1.5;
	color: #e2e8f0;
}
.cookie-consent__msg p { margin: 0; }
.cookie-consent__msg a,
.cookie-consent__link {
	color: var(--color-primary);
	text-decoration: underline;
	font-weight: 600;
}
.cookie-consent__link { margin-left: 6px; }
.cookie-consent__actions {
	display: flex; gap: 12px; flex-shrink: 0;
}
.cookie-consent__btn {
	padding: 10px 22px;
	border: 1px solid transparent;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cookie-consent__btn--accept {
	background: var(--color-primary);
	color: #fff;
}
.cookie-consent__btn--accept:hover { background: var(--color-primary-dark); }
.cookie-consent__btn--reject {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .35);
}
.cookie-consent__btn--reject:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .08);
}
@media (max-width: 720px) {
	.cookie-consent { padding: 14px 16px 16px; }
	.cookie-consent__inner { flex-direction: column; align-items: stretch; gap: 14px; }
	.cookie-consent__actions { justify-content: flex-end; }
	.cookie-consent__btn { padding: 10px 18px; }
}

/* -------- Floating WhatsApp button -------- */
.whatsapp-float {
	position: fixed;
	left: 24px;
	bottom: 24px;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	display: inline-flex;
	align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	z-index: 70;
	transition: transform .15s ease, background .2s ease;
	overflow: hidden;
	text-decoration: none;
}
.whatsapp-float:hover {
	background: #1ebe5b;
	transform: translateY(-2px);
	text-decoration: none;
}
.whatsapp-float svg { width: 28px; height: auto; display: block; }
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

@media (max-width: 540px) {
	.whatsapp-float { left: 16px; bottom: 16px; width: 52px; height: 52px; }
	.whatsapp-float svg { width: 26px; }
}

/* -------- Scroll-to-top -------- */
/* Size + position mirror the WhatsApp button so the two corner buttons
   read as a matched pair (same bottom edge AND same centre). */
.scroll-top {
	position: fixed; right: 24px; bottom: 24px;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--color-primary); color: #fff; border: 0;
	display: none; align-items: center; justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	z-index: 70;
	transition: transform .15s ease, background .2s ease;
}
.scroll-top.is-visible { display: inline-flex; }
.scroll-top:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.scroll-top svg { width: 22px; height: 22px; }

@media (max-width: 540px) {
	.scroll-top { right: 16px; bottom: 16px; width: 52px; height: 52px; }
	.scroll-top svg { width: 20px; height: 20px; }
}

/* -------- Posts -------- */
.posts-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; padding: 48px 0; }
.post-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.post-card__thumb img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card__title { font-size: var(--fs-h5); margin: 16px; }
.post-card__excerpt { padding: 0 16px 16px; color: var(--color-muted); }

/* -------- 404 -------- */
.error-404 { text-align: center; padding: var(--section-pad) 0; }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* -------- Home Hero Slider -------- */
.home-hero {
	position: relative; overflow: hidden;
	background: var(--color-dark);
}
.home-hero__slider {
	display: flex;
	transition: transform .7s cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}
/* Used for the silent snap-back when the cloned first slide finishes. */
.home-hero__slider.is-snapping { transition: none !important; }
.home-hero__slide {
	flex: 0 0 100%;
	min-height: 580px;
	background-color: var(--color-dark);
	background-image: var(--hero-bg, none);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	display: flex; align-items: center;
	position: relative;
}
/* Swap to the mobile image at small screens; falls back to desktop if not set. */
@media (max-width: 768px) {
	.home-hero__slide {
		background-image: var(--hero-bg-mobile, var(--hero-bg, none));
	}
}
/* Inner uses .container's max-width + horizontal padding, so the heading's
   left edge aligns precisely with the logo's left edge in the header.
   width:100% forces the flex item to span the slide (otherwise it shrinks to
   the heading's intrinsic width and margin:0 auto pushes it to the centre). */
.home-hero__inner {
	position: relative; z-index: 2;
	width: 100%;
	padding-top: 96px;
	padding-bottom: 96px;
}
.home-hero__heading {
	font-size: var(--fs-h1);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 18px;
	color: #fff;
}
.home-hero__sub {
	font-size: var(--fs-h5);
	color: #e2e8f0;
	margin: 0;
	max-width: 600px;
	line-height: 1.5;
}
.home-hero__cta { margin-top: 28px; }

/* Slider arrows — outlined circles, transparent fill, white chevron */
.home-hero__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px;
	border: 1.5px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 18px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	z-index: 4;
	transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.home-hero__nav:hover {
	background: transparent;
	border-color: var(--color-primary);
	color: var(--color-primary);
}
.home-hero__nav--prev { left: 28px; }
.home-hero__nav--next { right: 28px; }

@media (max-width: 860px) {
	.home-hero__slide { min-height: 420px; }
	.home-hero__inner { padding-top: 56px; padding-bottom: 56px; }
	.home-hero__nav { width: 36px; height: 36px; }
	.home-hero__nav--prev { left: 12px; }
	.home-hero__nav--next { right: 12px; }
}
/* Hide slider arrows on mobile — auto-advance still cycles slides */
@media (max-width: 768px) {
	.home-hero__nav { display: none; }
}

/* -------- Home About -------- */
.home-about { padding: 80px 0; background: #f5f7fa; }
.home-about__grid {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 800px) { .home-about__grid { grid-template-columns: 1fr; } }
.home-about { padding: var(--section-pad) 0; background: var(--color-bg-alt); }
.home-about__heading { font-size: var(--fs-h2); margin: 0 0 16px; color: var(--color-dark); }
.home-about__content { color: #4a5568; line-height: 1.7; }
.home-about__content p { margin: 0 0 14px; }
.home-about__media img { border-radius: 0; }

/* -------- Featured Solutions -------- */
.home-featured { padding: var(--section-pad) 0; text-align: center; }
.home-featured__heading { font-size: var(--fs-h2); margin: 0 0 12px; color: var(--color-dark); }
.home-featured__intro   { color: #4a5568; max-width: 720px; margin: 0 auto 28px; }
.home-featured__tabs-label { display: block; color: var(--color-dark); font-weight: 700; margin: 12px 0 18px; }

/* Tabs row — standalone pills, centered, no container background */
.home-featured__tabs {
	display: inline-flex; gap: 14px;
	margin-bottom: 36px; flex-wrap: wrap;
	justify-content: center;
}

.home-featured__tab {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 26px;
	border: 1.5px solid var(--color-primary);
	border-radius: 999px;
	background: #fff;
	color: var(--color-dark);
	font-family: inherit;
	font-weight: 600;
	font-size: var(--fs-h5);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

/* Check mark — green by default, white on the active tab */
.home-featured__tab::before {
	content: '';
	display: inline-block;
	width: 16px; height: 16px;
	flex: 0 0 16px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2301a982' d='M9 16.17 4.83 12l-1.42 1.41L9 19l12-12-1.41-1.42z'/></svg>") no-repeat center/contain;
}

/* Hover state — works on every viewport. On desktop this is the only thing
   that turns the pill green; on mobile the .is-active rule below also turns
   it green so the user can see which panel is currently being shown. */
.home-featured__tab:hover {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}
.home-featured__tab:hover::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffffff' d='M9 16.17 4.83 12l-1.42 1.41L9 19l12-12-1.41-1.42z'/></svg>");
}

/* Active state only paints green on mobile, where it indicates the visible panel.
   On desktop both panels are always shown, so .is-active stays visually neutral. */
@media (max-width: 768px) {
	.home-featured__tab.is-active {
		background: var(--color-primary);
		color: #fff;
		border-color: var(--color-primary);
	}
	.home-featured__tab.is-active::before {
		background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffffff' d='M9 16.17 4.83 12l-1.42 1.41L9 19l12-12-1.41-1.42z'/></svg>");
	}
}

/* Panels — side-by-side on desktop, single (tab-switched) on mobile */
.home-featured__panels {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left;
}
.home-featured__panel { display: block; }

@media (max-width: 768px) {
	.home-featured__panels { grid-template-columns: 1fr; }
	.home-featured__panel { display: none; }
	.home-featured__panel.is-active { display: block; }
}

.home-featured__card {
	background: var(--color-bg-alt); border-radius: 0; padding: 28px; height: 100%;
}
.home-featured__card-title { font-size: var(--fs-h4); margin: 0 0 8px; color: var(--color-dark); }
.home-featured__card-desc  { color: #5b6573; margin: 0 0 16px; }
.home-featured__card-media { margin: 12px 0 20px; }
.home-featured__card-media img { width: 100%; height: auto; }
.home-featured__list-heading { font-weight: 600; margin: 12px 0 8px; color: var(--color-dark); }
.home-featured__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.home-featured__list li { padding-left: 26px; position: relative; color: #4a5568; }
.home-featured__list li::before {
	content: ''; position: absolute; left: 0; top: 6px;
	width: 16px; height: 16px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2301a982' d='M9 16.17 4.83 12l-1.42 1.41L9 19l12-12-1.41-1.42z'/></svg>") no-repeat center/contain;
}

/* -------- Resources & Insights -------- */
.home-resources { padding: var(--section-pad) 0; }
.home-resources__heading { font-size: var(--fs-h2); margin: 0 0 28px; color: var(--color-dark); }
.home-resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .home-resources__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .home-resources__grid { grid-template-columns: 1fr; } }
.home-resources__card {}
.home-resources__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.home-resources__title { font-size: var(--fs-h5); margin: 14px 0 6px; color: var(--color-dark); }
.home-resources__link { color: var(--color-primary); font-weight: 600; }
.home-resources__link:hover { text-decoration: underline; }

/* -------- Press release card -------- */
.home-press { padding: var(--section-pad) 0; }
.home-press__card {
	background: var(--color-bg-alt); border-radius: 8px; padding: 32px;
}
.home-press__date {
	display: inline-block; padding: 4px 14px; border-radius: 999px;
	background: transparent;
	color: var(--color-primary);
	font-size: .85rem; font-weight: 600;
	border: 1px solid var(--color-primary);
	margin-bottom: 18px;
}
.home-press__text { font-size: var(--fs-h5); color: var(--color-dark); line-height: 1.55; margin: 0 0 14px; }
.home-press__link { color: var(--color-primary); font-weight: 600; }
.home-press__link:hover { text-decoration: underline; }

/* -------- Get in touch -------- */
.home-contact { background: var(--color-dark); color: #fff; padding: var(--section-pad) 0; }
.home-contact__heading { font-size: var(--fs-h2); text-align: center; margin: 0 0 32px; color: #fff; }
.home-contact__intro   { text-align: center; color: #cbd5e1; margin: 0 auto 24px; max-width: 560px; }

.ejada-enquiry-form {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}
.ejada-enquiry-form .form-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 28px 28px;
}
.ejada-enquiry-form .form-row--full { grid-column: 1 / -1; }
@media (max-width: 720px) {
	.ejada-enquiry-form { padding: 0 8px; }
	.ejada-enquiry-form .form-grid { grid-template-columns: 1fr; gap: 22px; }
}

.ejada-enquiry-form label {
	display: block; color: #fff; font-weight: 500; margin: 0 0 12px; font-size: .95rem;
}
.ejada-enquiry-form .req { color: #ff8080; }
.ejada-enquiry-form input[type=text],
.ejada-enquiry-form input[type=email],
.ejada-enquiry-form input[type=tel],
.ejada-enquiry-form textarea,
.ejada-enquiry-form .styled-select select {
	width: 100%; padding: 12px 14px;
	border: 1px solid transparent; border-radius: 0;
	/* background-color only — using the shorthand wipes the SVG arrow
	   that .styled-select select sets via background-image. */
	background-color: #fff;
	color: var(--color-dark);
	font: inherit;
}
.ejada-enquiry-form textarea { resize: vertical; min-height: 92px; }
.ejada-enquiry-form .styled-select select { color: var(--color-dark); }
.ejada-enquiry-form .styled-select select:focus,
.ejada-enquiry-form input:focus,
.ejada-enquiry-form textarea:focus {
	outline: none; box-shadow: 0 0 0 3px rgba(1,169,130,.4); border-color: var(--color-primary);
}
.ejada-enquiry-form .form-row.has-error input,
.ejada-enquiry-form .form-row.has-error textarea,
.ejada-enquiry-form .form-row.has-error .styled-select select {
	box-shadow: 0 0 0 2px #ff8080;
}

/* Per-field error message that sits directly below the input */
.ejada-enquiry-form .form-row__error {
	display: block;
	margin-top: 6px;
	color: #ff8080;
	font-size: .82rem;
	font-weight: 500;
	line-height: 1.3;
}

.ej-checkbox {
	display: inline-flex; gap: 10px; align-items: center;
	color: #cbd5e1; cursor: pointer;
	font-size: .92rem;
}
.ej-checkbox input { accent-color: var(--color-primary); margin: 0; }

/* Consent row sits left-aligned. Kept as a block so the inline-flex label
   and any subsequent .form-row__error stack vertically (error on its own line). */
.form-row--consent { margin-top: 4px; }
.form-row--submit  { display: flex; justify-content: center; margin-top: 16px; }
.home-contact .btn-primary {
	background: var(--color-primary); padding: 14px 40px; border-radius: 999px;
}
.home-contact .btn-primary:hover { background: var(--color-primary-dark); }

.home-contact .form-status { color: #fff; text-align: center; margin-top: 14px; }
.home-contact .form-status.is-success { color: #b9f5d4; }
.home-contact .form-status.is-error   { color: #ffb3b3; }
