/* ==========================================================================
   enigma IT — theme styles
   Colours, fonts and spacing live in theme.json; this file adds the
   component styling that theme.json can't express.
   ========================================================================== */

:root {
	--eit-ink: var(--wp--preset--color--ink);
	--eit-ink-2: var(--wp--preset--color--ink-2);
	--eit-primary: var(--wp--preset--color--primary);
	--eit-volt: var(--wp--preset--color--volt);
	--eit-surface: var(--wp--preset--color--surface);
	--eit-line: var(--wp--preset--color--line);
	--eit-muted: var(--wp--preset--color--muted);
	--eit-r-s: var(--wp--custom--radius--s, 10px);
	--eit-r-m: var(--wp--custom--radius--m, 16px);
	--eit-r-l: var(--wp--custom--radius--l, 28px);
	--eit-dark-line: rgba(255, 255, 255, 0.1);
	--eit-dark-muted: #A3ADC2;
	--eit-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--eit-volt); color: var(--eit-ink); }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.wp-site-blocks { overflow-x: clip; }
img { max-width: 100%; height: auto; }

/* ---------- Shared helpers ---------- */
.eit-eyebrow {
	display: flex; align-items: center; gap: 0.55rem;
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--eit-primary); margin: 0;
}
.eit-eyebrow::before {
	content: ""; width: 8px; height: 8px; border-radius: 2px;
	background: currentColor; transform: rotate(45deg);
}
.eit-dark .eit-eyebrow, .eit-hero .eit-eyebrow, .eit-page-hero .eit-eyebrow { color: var(--eit-volt); }
.eit-lead { font-size: var(--wp--preset--font-size--large); color: var(--eit-muted); line-height: 1.6; max-width: 46rem; }
.eit-dark .eit-lead, .eit-hero .eit-lead, .eit-page-hero .eit-lead { color: var(--eit-dark-muted); }
.eit-muted { color: var(--eit-muted); }
.eit-hl { color: var(--eit-volt); }
.eit-hl-blue { color: var(--eit-primary); }

/* Sections */
.eit-section { padding-block: var(--wp--preset--spacing--70); }
.eit-section--tight { padding-block: var(--wp--preset--spacing--60); }
.eit-section--surface { background: var(--eit-surface); }
.eit-dark { background: var(--eit-ink); color: #fff; }
.eit-dark h1, .eit-dark h2, .eit-dark h3, .eit-dark h4 { color: #fff; }
.eit-dark p { color: var(--eit-dark-muted); }

.eit-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: var(--wp--preset--spacing--50) !important; }
.eit-section-head > .wp-block-group { max-width: 44rem; }
.eit-section-head h2 { margin-block: 0.75rem 0; }
.eit-section-head p { margin: 1rem 0 0; }

/* ---------- Buttons ---------- */
.wp-block-button .wp-block-button__link { transition: background-color .2s, color .2s, transform .2s var(--eit-ease), box-shadow .2s; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(59, 91, 255, 0.6); }
.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor;
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: rgba(127, 127, 127, 0.1); box-shadow: inset 0 0 0 1.5px currentColor; }
.wp-block-button.eit-btn-volt .wp-block-button__link { background: var(--eit-volt); color: var(--eit-ink); }
.wp-block-button.eit-btn-volt .wp-block-button__link:hover { background: #fff; color: var(--eit-ink); box-shadow: 0 10px 24px -10px rgba(200, 245, 74, 0.6); }
.eit-arrow .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: 0.5rem; transition: transform .2s var(--eit-ease); }
.eit-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.eit-topbar { background: var(--eit-ink); color: var(--eit-dark-muted); font-size: 0.8rem; }
.eit-topbar p { margin: 0; }
.eit-topbar a { color: #fff; }
.eit-topbar a:hover { color: var(--eit-volt); }
.eit-topbar .wp-block-social-links { gap: 0.6rem; }
.eit-topbar .wp-social-link { color: var(--eit-dark-muted) !important; }
.eit-topbar .wp-social-link:hover { color: var(--eit-volt) !important; }

.eit-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .eit-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .eit-header-wrap { top: 0; } }
.eit-header {
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(10, 15, 30, 0.06);
}
.eit-header .wp-block-site-title a { color: var(--eit-ink); }
.eit-header .wp-block-site-title a::after { content: "."; color: var(--eit-primary); }
.eit-header .wp-block-navigation a { color: var(--eit-ink); position: relative; }
.eit-header .wp-block-navigation .wp-block-navigation-item__content { padding-block: 0.4rem; }
.eit-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--eit-primary);
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--eit-ease);
}
.eit-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.eit-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.eit-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
.eit-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
.eit-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 1.25rem; font-size: 1.4rem; }
@media (max-width: 600px) { .eit-header .eit-header-cta { display: none; } }

/* ---------- Home hero ---------- */
.eit-hero-wrap { padding-top: 1rem; padding-bottom: 0; }
.eit-hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--eit-ink); color: #fff; border-radius: var(--eit-r-l);
	padding: clamp(2.5rem, 7vw, 6.5rem) clamp(1.5rem, 5vw, 4.5rem) !important;
}
.eit-hero::before { /* grid */
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.eit-hero::after { /* glow */
	content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -18rem;
	background: radial-gradient(circle, rgba(59, 91, 255, .55), rgba(59, 91, 255, 0) 65%);
	filter: blur(10px);
}
.eit-hero h1 { color: #fff; margin-block: 1.25rem 1.5rem; max-width: 13ch; }
.eit-hero .wp-block-columns { align-items: center !important; gap: clamp(2rem, 5vw, 4rem); }
.eit-hero .eit-lead { max-width: 34rem; }

.eit-chip {
	display: inline-flex !important; align-items: center; gap: .6rem;
	padding: .4rem .9rem .4rem .45rem; border-radius: 999px; margin: 0;
	background: rgba(255,255,255,.06); border: 1px solid var(--eit-dark-line);
	font-size: .82rem; color: #DCE2F0 !important;
}
.eit-chip strong { background: var(--eit-volt); color: var(--eit-ink); border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; letter-spacing: .04em; }

/* hero console card */
.eit-console {
	position: relative; border-radius: var(--eit-r-m);
	background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
	border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; color: #C9D1E4;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eit-console__bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.eit-console__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.eit-console__bar span { margin-left: auto; color: #8B95AD; font-size: .75rem; }
.eit-console__body { padding: 1.1rem 1.15rem 1.25rem; }
.eit-console__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.eit-console__row:last-of-type { border-bottom: 0; }
.eit-console__row b { color: #fff; font-weight: 500; }
.eit-ok { color: var(--eit-volt); white-space: nowrap; }
.eit-ok::before { content: "●"; margin-right: .4rem; font-size: .6rem; vertical-align: 2px; animation: eit-pulse 2s infinite; }
@keyframes eit-pulse { 50% { opacity: .35; } }
.eit-console__foot { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--eit-r-s); background: rgba(59, 91, 255, .16); border: 1px solid rgba(59, 91, 255, .35); display: flex; justify-content: space-between; gap: 1rem; color: #fff; }
.eit-console__foot em { font-style: normal; color: var(--eit-volt); }

/* ---------- Stats ---------- */
.eit-stats { border-top: 1px solid var(--eit-line); }
.eit-stat { border-left: 1px solid var(--eit-line); padding: 1.75rem 1.5rem 0.25rem; }
.eit-stat:first-child { border-left: 0; padding-left: 0; }
.eit-stat .eit-num { font-family: var(--wp--preset--font-family--display); font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0; color: var(--eit-ink); }
.eit-stat p:last-child { margin: .6rem 0 0; color: var(--eit-muted); font-size: .95rem; }
.eit-dark .eit-stats { border-color: var(--eit-dark-line); }
.eit-dark .eit-stat { border-color: var(--eit-dark-line); }
.eit-dark .eit-stat .eit-num { color: #fff; }
@media (max-width: 781px) {
	.eit-stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--eit-line); }
	.eit-dark .eit-stat { border-color: var(--eit-dark-line); }
	.eit-stats { border-top: 0; }
}

/* ---------- Cards ---------- */
.eit-card, .wp-block-group.is-style-card {
	position: relative; background: #fff; border: 1px solid var(--eit-line); border-radius: var(--eit-r-m);
	padding: clamp(1.5rem, 3vw, 2rem) !important;
	transition: transform .35s var(--eit-ease), box-shadow .35s var(--eit-ease), border-color .35s;
}
.eit-card:hover { transform: translateY(-4px); border-color: rgba(59, 91, 255, .35); box-shadow: 0 24px 48px -24px rgba(10, 15, 30, .25); }
.eit-card h3 { margin-block: 1.25rem .6rem; }
.eit-card p { margin: 0; color: var(--eit-muted); }
.eit-card .eit-card__num { position: absolute; top: 1.5rem; right: 1.6rem; font-family: var(--wp--preset--font-family--display); font-size: .85rem; color: #A9B1C3; margin: 0; }
.eit-icon {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
	background: rgba(59, 91, 255, .09); color: var(--eit-primary);
	transition: background .3s, color .3s;
}
.eit-icon svg { width: 26px; height: 26px; }
.eit-card:hover .eit-icon { background: var(--eit-primary); color: #fff; }
.eit-card ul { margin: 1.1rem 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--eit-ink); }
.eit-card li { padding: .35rem 0 .35rem 1.5rem; position: relative; }
.eit-card li::before { content: ""; position: absolute; left: 0; top: .85em; width: .65rem; height: 2px; background: var(--eit-primary); }

/* Dark cards (products) */
.eit-dark .eit-card { background: var(--eit-ink-2); border-color: var(--eit-dark-line); }
.eit-dark .eit-card:hover { border-color: rgba(200, 245, 74, .4); box-shadow: 0 24px 48px -24px rgba(0,0,0,.6); }
.eit-dark .eit-card p { color: var(--eit-dark-muted); }
.eit-product { display: flex; flex-direction: column; min-height: 100%; }
.eit-product .eit-mono {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.25rem; color: var(--eit-ink); background: var(--eit-volt);
}
.eit-product .eit-tag { display: inline-block; margin: 1.25rem 0 0 !important; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--eit-volt) !important; }
.eit-product h3 { margin-top: .4rem; font-size: 1.6rem; }
.eit-product .eit-link { margin-top: auto !important; padding-top: 1.5rem; }
.eit-link a { font-weight: 600; color: inherit; }
.eit-dark .eit-link a { color: #fff; }
.eit-link a::after { content: " ↗"; color: var(--eit-volt); }
.eit-section--surface .eit-product, .eit-product.is-light { background: #fff; }

/* ---------- Split / about ---------- */
.eit-split { align-items: center !important; gap: clamp(2rem, 6vw, 5rem) !important; }
.eit-visual {
	position: relative; aspect-ratio: 4 / 4.2; border-radius: var(--eit-r-l); overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 90% at 0% 0%, #2A44D9 0%, #0A0F1E 55%);
}
.eit-visual::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.5px); background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(160deg, transparent 15%, #000 85%); mask-image: linear-gradient(160deg, transparent 15%, #000 85%);
}
.eit-visual__big { position: absolute; left: 2rem; bottom: 1.5rem; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: clamp(6rem, 14vw, 11rem); line-height: .8; letter-spacing: -.06em; color: #fff; }
.eit-visual__big sup { font-size: .35em; color: var(--eit-volt); vertical-align: top; position: relative; top: .25em; }
.eit-visual__cap { position: absolute; left: 2rem; top: 2rem; right: 2rem; color: #C9D1E4; font-size: .9rem; max-width: 16rem; }
.eit-visual__badge {
	position: absolute; right: 1.5rem; top: 45%; padding: .9rem 1.1rem; border-radius: var(--eit-r-m);
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: .85rem;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eit-visual__badge b { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; color: var(--eit-volt); }

.eit-checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; }
.eit-checks li { position: relative; padding-left: 2rem; font-weight: 500; }
.eit-checks li::before {
	content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: var(--eit-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.eit-dark .eit-checks li { color: #fff; }
.eit-dark .eit-checks li::before { background-color: var(--eit-volt); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0F1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
@media (max-width: 520px) { .eit-checks { grid-template-columns: 1fr; } }

/* Pillars (numbered) */
.eit-pillar { border-top: 2px solid var(--eit-ink); padding-top: 1.25rem; }
.eit-dark .eit-pillar { border-color: var(--eit-volt); }
.eit-pillar .eit-pillar__num { font-family: var(--wp--preset--font-family--display); font-size: .85rem; color: var(--eit-primary); margin: 0; }
.eit-dark .eit-pillar .eit-pillar__num { color: var(--eit-volt); }
.eit-pillar h3 { margin: .5rem 0 .6rem; }
.eit-pillar p { margin: 0; color: var(--eit-muted); }
.eit-dark .eit-pillar p { color: var(--eit-dark-muted); }

/* ---------- Marquee (client locations / logos) ---------- */
.eit-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.eit-marquee__track { display: flex; width: max-content; gap: 3.5rem; animation: eit-scroll 38s linear infinite; }
.eit-marquee:hover .eit-marquee__track { animation-play-state: paused; }
.eit-marquee__track span { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; color: var(--eit-ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.eit-marquee__track span::after { content: "✦"; color: var(--eit-primary); font-size: .6em; }
.eit-marquee__track img { height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.eit-marquee__track img:hover { filter: none; opacity: 1; }
@keyframes eit-scroll { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.eit-cta {
	position: relative; overflow: hidden; isolation: isolate; border-radius: var(--eit-r-l);
	background: var(--eit-primary); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) !important;
}
.eit-cta::before {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background: radial-gradient(60% 120% at 100% 0%, rgba(200, 245, 74, .35), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(10, 15, 30, .45), transparent 70%);
}
.eit-cta h2 { color: #fff; margin: .75rem 0 0; max-width: 18ch; }
.eit-cta p { color: rgba(255,255,255,.82); }
.eit-cta .eit-eyebrow { color: var(--eit-volt); }
.eit-cta .wp-block-columns { align-items: end !important; }
.eit-cta .wp-block-button.is-style-ghost .wp-block-button__link { color: #fff; }

/* ---------- Inner page hero ---------- */
.eit-page-hero {
	position: relative; isolation: isolate; overflow: hidden; background: var(--eit-ink); color: #fff;
	border-radius: var(--eit-r-l); padding: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 5vw, 4.5rem) !important;
}
.eit-page-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 25%, transparent 70%); mask-image: radial-gradient(ellipse 70% 90% at 100% 0%, #000 25%, transparent 70%);
}
.eit-page-hero::after { content: ""; position: absolute; z-index: -1; width: 36rem; height: 36rem; right: -12rem; bottom: -20rem; background: radial-gradient(circle, rgba(59, 91, 255, .5), transparent 65%); }
.eit-page-hero h1 { color: #fff; margin: 1rem 0 1.25rem; max-width: 16ch; }
.eit-page-hero .eit-lead { margin: 0; }

/* ---------- Highlight / news ---------- */
.eit-highlight { border-radius: var(--eit-r-l); overflow: hidden; background: var(--eit-surface); padding: clamp(1.5rem, 4vw, 3.5rem) !important; }
.eit-highlight .wp-block-image img { border-radius: var(--eit-r-m); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.eit-highlight__placeholder { aspect-ratio: 4 / 3; border-radius: var(--eit-r-m); background: var(--eit-ink); display: grid; place-items: center; color: #fff; font-family: var(--wp--preset--font-family--display); text-align: center; padding: 2rem; position: relative; overflow: hidden; }
.eit-highlight__placeholder b { display: block; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; color: var(--eit-volt); letter-spacing: -.04em; }
.eit-highlight__placeholder::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.5px); background-size: 20px 20px; opacity: .6; }
.eit-highlight__placeholder > * { position: relative; }

/* ---------- Process steps ---------- */
.eit-step { position: relative; padding: 1.75rem !important; border-radius: var(--eit-r-m); background: var(--eit-ink-2); border: 1px solid var(--eit-dark-line); }
.eit-step .eit-step__n { width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--eit-volt); color: var(--eit-ink); font-weight: 700; font-family: var(--wp--preset--font-family--display); margin: 0 0 1.25rem; }
.eit-step h3 { margin: 0 0 .5rem; }
.eit-step p { margin: 0; }

/* ---------- Contact ---------- */
.eit-contact-card { background: #fff; border: 1px solid var(--eit-line); border-radius: var(--eit-r-m); padding: 1.75rem !important; }
.eit-contact-card h3 { margin: 1.1rem 0 .35rem; font-size: 1.05rem; }
.eit-contact-card p { margin: 0; color: var(--eit-muted); }
.eit-contact-card a { font-weight: 600; color: var(--eit-ink); }
.eit-contact-card a:hover { color: var(--eit-primary); }
.eit-map { border-radius: var(--eit-r-l); overflow: hidden; border: 1px solid var(--eit-line); min-height: 420px; background: var(--eit-surface); }
.eit-map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }
.eit-hours { border-radius: var(--eit-r-m); padding: 1.75rem !important; }
.eit-hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--eit-dark-line); margin: 0 !important; }
.eit-hours__row:last-child { border-bottom: 0; }
.eit-hours__row span:last-child { color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.eit-footer { background: var(--eit-ink); color: var(--eit-dark-muted); margin-top: var(--wp--preset--spacing--60) !important; }
.eit-footer .wp-block-site-title a { color: #fff; }
.eit-footer .wp-block-site-title a::after { content: "."; color: var(--eit-volt); }
.eit-footer h2, .eit-footer h3, .eit-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--wp--preset--font-family--body); font-weight: 600; margin-bottom: 1.1rem; }
.eit-footer p { margin: 0 0 .55rem; font-size: .95rem; }
.eit-footer a { color: var(--eit-dark-muted); }
.eit-footer a:hover { color: var(--eit-volt); }
.eit-footer .wp-block-list { list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.eit-footer .wp-block-list li { margin-bottom: .55rem; }
.eit-footer .eit-footer__big { font-family: var(--wp--preset--font-family--display); font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: #fff; margin: 0; max-width: 16ch; }
.eit-footer .eit-footer__big a { color: var(--eit-volt); }
.eit-footer .eit-footer__bottom { border-top: 1px solid var(--eit-dark-line); padding-top: 1.5rem; font-size: .85rem; }
.eit-footer .wp-social-link { background: rgba(255,255,255,.06) !important; color: #fff !important; }
.eit-footer .wp-social-link:hover { background: var(--eit-volt) !important; color: var(--eit-ink) !important; }

/* Floating WhatsApp */
.eit-wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; margin: 0 !important; }
.eit-wa a {
	display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem; border-radius: 999px;
	background: #25D366; color: #06331A; font-weight: 700; font-size: .9rem; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4);
	transition: transform .2s var(--eit-ease);
}
.eit-wa a:hover { transform: translateY(-3px); color: #06331A; }
.eit-wa svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .eit-wa a span { display: none; } .eit-wa a { padding: .85rem; } }

/* ---------- Blog / generic ---------- */
.eit-post-card { border: 1px solid var(--eit-line); border-radius: var(--eit-r-m); overflow: hidden; height: 100%; }
.eit-post-card .wp-block-post-featured-image img { aspect-ratio: 16/10; object-fit: cover; }
.eit-post-card > .wp-block-group { padding: 1.5rem !important; }
.eit-post-card .wp-block-post-title a { color: var(--eit-ink); }
.eit-post-card .wp-block-post-title a:hover { color: var(--eit-primary); }

/* ---------- Reveal on scroll (only when JS has run) ---------- */
.eit-js .eit-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--eit-ease), transform .8s var(--eit-ease); }
.eit-js .eit-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.eit-js .eit-reveal { opacity: 1; transform: none; transition: none; }
	.eit-marquee__track, .eit-ok::before { animation: none; }
	html { scroll-behavior: auto; }
}
/* Keep everything visible in the editor */
.editor-styles-wrapper .eit-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Misc additions ---------- */
.eit-page-hero .wp-block-post-date, .eit-page-hero .wp-block-post-terms a { color: var(--eit-dark-muted); }
.eit-page-hero .wp-block-post-terms a { color: var(--eit-volt); }
.eit-highlight__list { padding-left: 1.1rem; margin-top: 1.25rem; }
.eit-highlight__list li { margin-bottom: .6rem; color: var(--eit-muted); }
.eit-highlight__list li strong { color: var(--eit-ink); }
.eit-highlight h3 { font-size: var(--wp--preset--font-size--x-large); margin: .75rem 0 1rem; }
.eit-hours h3 { margin: .75rem 0 1.25rem; font-size: 1.5rem; }
.eit-hours .wp-block-buttons { margin-top: 1.5rem; }
.eit-contact-split { margin-top: 2rem !important; align-items: stretch !important; }
.eit-contact-split > .wp-block-column > .wp-block-html, .eit-contact-split .eit-map { height: 100%; }
.eit-section .wp-block-post-content > * + * { margin-block-start: 1.25em; }

.eit-locations + .eit-section { padding-top: 0; }
.eit-locations .eit-eyebrow { margin-bottom: 1.5rem; }
.eit-chip strong { white-space: nowrap; }
@media (max-width: 781px) {
	.eit-topbar .wp-block-social-links, .eit-topbar p:nth-child(3) { display: none; }
	.eit-topbar p { font-size: .75rem; }
	.wp-block-columns.eit-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
	.eit-stat { padding: 1.25rem 0 .5rem !important; }
}
@media (max-width: 420px) { .eit-topbar p:nth-child(2) { display: none; } }
.eit-contact-card a { overflow-wrap: anywhere; }

/* ---------- Logo ---------- */
.eit-logo { margin: 0 !important; line-height: 0; }
.eit-logo img { display: block; height: auto; }
.eit-header .eit-logo img { width: clamp(140px, 13vw, 172px) !important; }
.eit-header { padding-top: .6rem !important; padding-bottom: .6rem !important; }
.eit-footer .eit-logo { margin-bottom: 1.25rem !important; }

/* ---------- Business solutions carousel ---------- */
.eit-solutions { position: relative; isolation: isolate; overflow: hidden; }
.eit-solutions::before {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background: radial-gradient(50% 60% at 0% 0%, rgba(59, 91, 255, .22), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(200, 245, 74, .08), transparent 70%);
}
.eit-carousel__nav { display: flex; gap: .6rem; }
.eit-carousel__btn {
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.25);
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--eit-ease);
}
.eit-carousel__btn svg { width: 22px; height: 22px; }
.eit-carousel__btn:hover:not(:disabled) { background: var(--eit-volt); color: var(--eit-ink); border-color: var(--eit-volt); }
.eit-carousel__btn:active:not(:disabled) { transform: scale(.94); }
.eit-carousel__btn:disabled { opacity: .3; cursor: default; }
.eit-carousel__btn:focus-visible, .eit-carousel__track:focus-visible { outline: 2px solid var(--eit-volt); outline-offset: 3px; }

/* The track bleeds to the screen edges so the next slide peeks in. */
.eit-carousel { --eit-gutter: max(clamp(1rem, 4vw, 2.5rem), calc((100vw - 1200px) / 2)); }
.eit-carousel__track {
	position: relative; display: flex !important; gap: clamp(1rem, 2vw, 1.5rem);
	margin-inline: calc(50% - 50vw) !important; padding: .5rem var(--eit-gutter) 1rem;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--eit-gutter);
	scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none;
}
.eit-carousel__track::-webkit-scrollbar { display: none; }
.eit-carousel__track > * { margin: 0 !important; }
.eit-slide {
	flex: 0 0 min(1040px, 86vw); scroll-snap-align: start;
	display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch;
	background: var(--eit-ink-2); border: 1px solid var(--eit-dark-line); border-radius: var(--eit-r-l); overflow: hidden;
	transition: opacity .5s var(--eit-ease), transform .5s var(--eit-ease), border-color .3s;
}
.eit-js .eit-slide:not(.is-active) { opacity: .45; }
.eit-slide:hover { border-color: rgba(200, 245, 74, .3); }
.eit-slide > .wp-block-html { margin: 0; }
.eit-slide__visual {
	position: relative; height: 100%; min-height: 340px; display: grid; place-items: center; padding: 2rem;
	background: radial-gradient(100% 90% at 0% 100%, rgba(59, 91, 255, .45), transparent 60%), #0D1326;
}
.eit-slide__visual::before {
	content: ""; position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.5px); background-size: 20px 20px;
	-webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent);
}
.eit-slide__visual svg { position: relative; width: 100%; max-width: 380px; height: auto; transition: transform .8s var(--eit-ease); }
.eit-slide.is-active .eit-slide__visual svg { transform: scale(1.03); }
.eit-slide__body { padding: clamp(1.75rem, 4vw, 3.25rem) !important; display: flex; flex-direction: column; justify-content: center; }
.eit-slide__body > * { margin: 0; }
.eit-slide__tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--eit-dark-muted) !important; }
.eit-slide__tag span { color: var(--eit-volt); font-weight: 700; }
.eit-slide h3 { font-size: var(--wp--preset--font-size--x-large); line-height: 1.12; margin: .9rem 0 .9rem; color: #fff; }
.eit-slide .eit-checks { grid-template-columns: 1fr; gap: .6rem; margin: 1.4rem 0 0; font-size: .95rem; }
.eit-slide__link { margin-top: 1.75rem !important; }
.eit-slide__link a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--eit-volt); }
.eit-slide__link a::after { content: "→"; transition: transform .2s var(--eit-ease); }
.eit-slide__link a:hover { color: #fff; }
.eit-slide__link a:hover::after { transform: translateX(4px); }
.eit-carousel__progress { height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 1.5rem !important; }
.eit-carousel__progress span { display: block; height: 100%; width: 0; background: var(--eit-volt); border-radius: 3px; transition: width .4s var(--eit-ease); }
@media (max-width: 781px) {
	.eit-slide { grid-template-columns: 1fr; flex-basis: 86vw; }
	.eit-slide__visual { min-height: 0; aspect-ratio: 4 / 3; padding: 1.25rem; }
	.eit-carousel__btn { width: 44px; height: 44px; }
}
/* In the editor, show slides stacked so each one is easy to edit. */
.editor-styles-wrapper .eit-carousel__track { display: grid !important; margin-inline: 0 !important; padding-inline: 0; overflow: visible; }
.editor-styles-wrapper .eit-slide { opacity: 1 !important; }

/* ==========================================================================
   Responsive fixes (v1.3)
   ========================================================================== */

/* Hero cards never sit flush against a dark section below. */
.eit-hero-wrap { padding-bottom: 1rem !important; }

/* Fixed-count grids so 3 and 4 item rows never leave an orphan. */
.wp-block-group.eit-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.wp-block-group.eit-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .wp-block-group.eit-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 781px) { .wp-block-group.eit-grid-3 { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 560px) { .wp-block-group.eit-grid-4 { grid-template-columns: minmax(0, 1fr) !important; } }

/* Header: keep the menu on one line on tablets. */
.eit-header .wp-block-button__link { white-space: nowrap; }
.eit-header .wp-block-navigation .wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1080px) {
	.eit-header .wp-block-navigation { --navigation-layout-gap: 1.25rem; gap: 1.25rem !important; }
	.eit-header .wp-block-navigation__container { gap: 1.25rem !important; }
}
@media (max-width: 960px) { .eit-header .eit-header-cta { display: none; } }

/* Carousel: stop long text widening stacked slides; shorter artwork on small screens. */
@media (max-width: 781px) {
	.eit-slide { grid-template-columns: minmax(0, 1fr) !important; }
	.eit-slide__visual { aspect-ratio: 16 / 10; }
	.eit-slide__visual svg { max-width: 300px; }
}
@media (max-width: 480px) { .eit-slide__visual { aspect-ratio: 4 / 3; } }

/* Tall visuals get shorter once stacked. */
@media (max-width: 781px) {
	.eit-visual { aspect-ratio: 16 / 11; }
	.eit-visual__big { font-size: clamp(5rem, 22vw, 8rem); }
	.eit-highlight__placeholder { aspect-ratio: 16 / 9; }
}

/* Footer: two columns on tablets instead of one long stack; keep the email on one line. */
.eit-footer a[href^="mailto:"] { white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1100px) {
	.eit-footer .wp-block-columns { flex-wrap: wrap !important; row-gap: 2.5rem; }
	.eit-footer .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 1.5rem) !important; flex-grow: 0; }
}

/* Mobile menu: the blur must live on a pseudo-element. A backdrop-filter on the
   header itself would trap the full-screen menu overlay inside the header bar. */
.eit-header { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; position: relative; isolation: auto; }
.eit-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
}
.eit-header-wrap { z-index: 50; }
.eit-header .wp-block-navigation__responsive-container.is-menu-open { z-index: 100000; }
.eit-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { color: var(--eit-ink); }
.eit-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.5rem !important; }
.eit-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; font-weight: 600; }
.has-modal-open .eit-wa { display: none; }

/* Carousel on phones: size the artwork panel from the slide width, not its height,
   so the illustration stays centred instead of being pushed off the right edge. */
@media (max-width: 781px) {
	.eit-slide > .wp-block-html, .eit-slide > .eit-slide__visual { width: 100%; min-width: 0; }
	.eit-slide__visual { height: auto !important; width: 100%; box-sizing: border-box; }
}

/* ==========================================================================
   Video slideshow hero (v1.5)
   ========================================================================== */
.eit-vhero {
	min-height: min(82vh, 760px); display: flex !important; flex-direction: column; justify-content: center;
	background: #0A0F1E;
}
.eit-vhero::before, .eit-vhero::after { display: none; } /* drop the static grid + glow */
.eit-vhero > .wp-block-html { margin: 0 !important; }
.eit-vhero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(80% 90% at 80% 20%, #2A44D9 0%, #0A0F1E 60%); }
.eit-vhero__slide {
	position: absolute; inset: 0; opacity: 0; background-size: cover; background-position: center;
	transition: opacity 1.2s var(--eit-ease);
}
.eit-vhero__slide.is-active { opacity: 1; }
.eit-vhero__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.eit-vhero__slide.is-active video { animation: eit-kenburns 9s ease-out both; }
@keyframes eit-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.eit-vhero__shade {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(10,15,30,.94) 0%, rgba(10,15,30,.78) 38%, rgba(10,15,30,.35) 70%, rgba(10,15,30,.25) 100%),
		linear-gradient(0deg, rgba(10,15,30,.75) 0%, rgba(10,15,30,0) 40%);
}
.eit-vhero .wp-block-columns.eit-vhero__cols { align-items: flex-end !important; margin: 0; }
.eit-vhero .eit-lead { color: #D3D9E8; }
.eit-vhero__side { display: flex; justify-content: flex-end; }
.eit-vhero__side > .wp-block-html { width: 100%; max-width: 360px; margin: 0; }

.eit-vhero__panel {
	width: 100%; padding: 1.1rem 1.2rem 1rem; border-radius: var(--eit-r-m); color: #fff;
	background: rgba(10, 15, 30, .55); border: 1px solid rgba(255,255,255,.14);
	-webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
}
.eit-vhero__bars { display: flex; gap: 6px; margin-bottom: 1rem; }
.eit-vhero__bar { flex: 1; height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.eit-vhero__bar span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; position: relative; }
.eit-vhero__bar span::after { content: ""; position: absolute; inset: 0; background: var(--eit-volt); transform: scaleX(0); transform-origin: left; }
.eit-vhero__bar.is-done span::after { transform: scaleX(1); }
.eit-vhero__bar.is-active span::after { transform: scaleX(var(--p, 0)); }
.eit-vhero__bar:focus-visible { outline: 2px solid var(--eit-volt); outline-offset: 2px; border-radius: 4px; }
.eit-vhero__label { margin: 0 !important; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #A3ADC2 !important; }
.eit-vhero__label span { color: var(--eit-volt); font-weight: 700; }
.eit-vhero__title { margin: .45rem 0 0 !important; font-family: var(--wp--preset--font-family--display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: #fff !important; min-height: 3em; }
.eit-vhero__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; }
.eit-vhero__link { color: var(--eit-volt) !important; font-weight: 600; font-size: .92rem; }
.eit-vhero__link::after { content: " →"; }
.eit-vhero__link:hover { color: #fff !important; }
.eit-vhero__pause {
	width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3);
}
.eit-vhero__pause svg { width: 14px; height: 14px; fill: currentColor; }
.eit-vhero__pause .i-play { display: none; }
.eit-vhero__pause[aria-pressed="true"] .i-play { display: block; }
.eit-vhero__pause[aria-pressed="true"] .i-pause { display: none; }
.eit-vhero__pause:hover, .eit-vhero__pause:focus-visible { background: var(--eit-volt); color: var(--eit-ink); border-color: var(--eit-volt); outline: none; }
.eit-vhero__title.is-swapping, .eit-vhero__label.is-swapping { opacity: 0; transform: translateY(6px); }
.eit-vhero__title, .eit-vhero__label { transition: opacity .35s, transform .35s; }

@media (max-width: 781px) {
	.eit-vhero { min-height: 0; padding-top: 2.25rem !important; padding-bottom: 1.5rem !important; }
	.eit-vhero__shade { background: linear-gradient(180deg, rgba(10,15,30,.72) 0%, rgba(10,15,30,.86) 55%, rgba(10,15,30,.95) 100%); }
	.eit-vhero__side { justify-content: stretch; margin-top: 1.5rem; }
	.eit-vhero__side > .wp-block-html { max-width: none; }
	.eit-vhero__title { min-height: 0; font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
	.eit-vhero__slide { transition: none; }
	.eit-vhero__slide.is-active video { animation: none; }
}
.eit-vhero > .eit-vhero__media, .eit-vhero > .eit-vhero__shade, .eit-vhero .eit-vhero__shade, .eit-vhero .eit-vhero__media { margin: 0 !important; }
@media (max-width: 781px) { .eit-vhero__shade { background: linear-gradient(180deg, rgba(10,15,30,.8) 0%, rgba(10,15,30,.88) 55%, rgba(10,15,30,.96) 100%); } }

/* Video-only hero (v1.6): clips fade in once they're actually playing; no still images. */
.eit-vhero__slide { background: none !important; }
.eit-vhero__slide video { opacity: 0; transition: opacity .9s var(--eit-ease); }
.eit-vhero__slide.is-ready video { opacity: 1; }
.eit-vhero.is-reduced-motion .eit-vhero__slide.is-active video { animation: none; }

/* HD photo slideshow (v1.7) */
.eit-vhero__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
	opacity: 0; transition: opacity .9s var(--eit-ease); transform-origin: 60% 40%;
}
.eit-vhero__slide.is-ready .eit-vhero__img { opacity: 1; }
.eit-vhero__slide.is-active .eit-vhero__img { animation: eit-photo-zoom 9s ease-out both; }
@keyframes eit-photo-zoom { from { transform: scale(1.1); } to { transform: scale(1.0); } }
.eit-vhero.is-paused .eit-vhero__slide.is-active .eit-vhero__img { animation-play-state: paused; }
.eit-vhero.is-reduced-motion .eit-vhero__slide.is-active .eit-vhero__img { animation: none; }
/* first slide shows even before the script runs */
.eit-vhero__slide.is-active:first-child .eit-vhero__img[src] { opacity: 1; }
/* Phones: the photo shows clearly as a band across the top; the headline sits below on solid ink. */
@media (max-width: 781px) {
	.eit-vhero--photos { padding-top: calc(56vw + 1.25rem) !important; }
	.eit-vhero--photos .eit-vhero__shade {
		background: linear-gradient(180deg, rgba(10,15,30,.05) 0, rgba(10,15,30,.2) 30vw, rgba(10,15,30,.92) 56vw, #0A0F1E calc(56vw + 3rem)) !important;
	}
	.eit-vhero--photos .eit-vhero__img { height: calc(56vw + 3rem); }
}
.eit-highlight__photo { margin: 0; }
.eit-highlight__photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--eit-r-m); }
