/* =========================================================
   Heptix — main styles
   Palette taken from fiber-optic cable jackets:
   aqua (multimode) and yellow (single-mode) on a deep navy.
   ========================================================= */
:root {
	--ink: #06142a;
	--ink-2: #0b1f3d;
	--ink-3: #12305a;
	--aqua: #3fd2ff;
	--amber: #ffb43f;
	--amber-ink: #2a1a00;
	--paper: #edf2f8;
	--white: #ffffff;
	--slate: #8ea3bd;
	--text: #14233a;
	--muted: #4c5f78;
	--line-dark: rgba(142, 163, 189, 0.18);
	--line-light: #d3dde9;

	--f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
	--f-body: "Manrope", "Segoe UI", system-ui, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--sec: clamp(72px, 10vw, 128px);
	--r-s: 6px;
	--r-m: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .hx-hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}
.hx-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; }
.hx-skip:focus { top: 12px; }

.hx-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hx-ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type ---------- */
.hx-h2 {
	font-family: var(--f-display);
	font-weight: 600;
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	max-width: 20ch;
	text-wrap: balance;
}
.hx-lead { font-size: 1.125rem; color: var(--muted); margin: 0; max-width: 56ch; }
.hx-head { margin-bottom: clamp(36px, 5vw, 56px); }
.hx-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.hx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 24px;
	border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.hx-btn:active { transform: translateY(1px); }
.hx-btn--amber { background: var(--amber); color: var(--amber-ink); }
.hx-btn--amber:hover { background: #ffc767; }
.hx-btn--line { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.hx-btn--line:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.hx-btn--dark { background: var(--ink); color: var(--white); }
.hx-btn--dark:hover { background: var(--ink-3); }
.hx-btn--full { width: 100%; }

/* ---------- Header ---------- */
.hx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(6, 20, 42, .92);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	color: var(--white);
	border-bottom: 1px solid var(--line-dark);
	transition: background-color .3s, border-color .3s;
}
.hx-header--over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hx-header--over.is-scrolled { background: rgba(6, 20, 42, .92); border-color: var(--line-dark); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.admin-bar .hx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hx-header { top: 46px; } .admin-bar .hx-header.is-scrolled { top: 0; } }
.hx-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.hx-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hx-logo__img { width: auto; height: 44px; max-width: 180px; object-fit: contain; }
.hx-logo__name { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.wp-custom-logo .hx-logo__name { display: none; }

.hx-nav { display: flex; align-items: center; gap: 28px; }
.hx-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hx-nav__list a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: .98rem; color: rgba(255, 255, 255, .82); border-radius: 999px; transition: color .2s, background-color .2s; }
.hx-nav__list a:hover, .hx-nav__list .current-menu-item > a { color: var(--white); background: rgba(255, 255, 255, .08); }
.hx-nav__list .sub-menu { display: none; }
.hx-nav__cta { min-height: 44px; padding: 10px 20px; }
.hx-burger { display: none; background: none; border: 0; color: var(--white); padding: 10px; margin-right: -10px; cursor: pointer; }
.hx-burger .hx-ico { width: 26px; height: 26px; }
.hx-burger__close { display: none; }

@media (max-width: 900px) {
	.hx-burger { display: block; }
	.hx-nav {
		position: fixed; inset: 76px 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 28px;
		background: var(--ink); border-bottom: 1px solid var(--line-dark);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.hx-nav__list { flex-direction: column; }
	.hx-nav__list a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; }
	.hx-nav__list a:hover { background: none; }
	body.nav-open .hx-nav { opacity: 1; visibility: visible; transform: none; }
	body.nav-open .hx-header { background: var(--ink); }
	body.nav-open .hx-burger__open { display: none; }
	body.nav-open .hx-burger__close { display: block; }
}

/* ---------- Hero ---------- */
.hx-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 100svh;
	display: flex; flex-direction: column; justify-content: flex-end;
	background: var(--ink); color: var(--white);
	padding-top: 120px;
}
.hx-hero__img {
	position: absolute; inset: 0; z-index: -3;
	background-size: cover; background-position: center;
	opacity: .38; filter: saturate(1.15);
	transform: scale(1.06);
	animation: hx-drift 28s ease-in-out infinite alternate;
}
@keyframes hx-drift { to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hx-hero__net { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hx-hero__shade {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(6, 20, 42, .94) 0%, rgba(6, 20, 42, .7) 45%, rgba(6, 20, 42, .15) 100%),
		linear-gradient(0deg, var(--ink) 0%, rgba(6, 20, 42, 0) 35%);
}
.hx-hero__inner { padding-bottom: clamp(40px, 7vh, 72px); }
.hx-hero__kicker {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 24px; padding: 7px 14px 7px 12px;
	border: 1px solid var(--line-dark); border-radius: 999px;
	background: rgba(11, 31, 61, .6);
	font-weight: 600; font-size: .92rem; color: #cfe3f7;
}
.hx-led { width: 8px; height: 8px; border-radius: 50%; background: #39e58c; box-shadow: 0 0 0 0 rgba(57, 229, 140, .6); animation: hx-blink 2.4s infinite; }
@keyframes hx-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(57, 229, 140, .55); } 60% { box-shadow: 0 0 0 7px rgba(57, 229, 140, 0); } }
.hx-hero__title {
	font-family: var(--f-display);
	font-weight: 600;
	font-size: clamp(2.3rem, 6.2vw, 5rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	margin: 0 0 24px;
	max-width: 15ch;
	text-wrap: balance;
}
.hx-hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3d3e6; max-width: 52ch; margin: 0 0 20px; }
.hx-hero__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; }
.hx-hero__tags a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(120,200,255,.35); background: rgba(10,30,55,.55); color: #e6f1ff; font-size: .92rem; font-weight: 600; text-decoration: none; backdrop-filter: blur(4px); transition: background .2s, border-color .2s, transform .2s; }
.hx-hero__tags a:hover, .hx-hero__tags a:focus-visible { background: rgba(255,176,32,.18); border-color: #ffb020; transform: translateY(-2px); }
@media (max-width: 600px) { .hx-hero__tags { gap: 6px; margin-bottom: 24px; } .hx-hero__tags a { padding: 6px 11px; font-size: .85rem; } }
.hx-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hx-hero__stats {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	background: linear-gradient(var(--line-dark), var(--line-dark)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.hx-hero__stats .hx-stat { padding: 22px 0 28px; display: flex; align-items: baseline; gap: 14px; }
.hx-hero__stats .hx-stat + .hx-stat { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid var(--line-dark); }
.hx-hero__stats strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--amber); font-variant-numeric: tabular-nums; }
.hx-hero__stats span { color: var(--slate); font-weight: 600; font-size: .95rem; }
@media (max-width: 640px) {
	.hx-hero__stats { grid-template-columns: 1fr; }
	.hx-hero__stats .hx-stat { padding: 14px 0; }
	.hx-hero__stats .hx-stat + .hx-stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}

/* One orchestrated entrance for the hero only. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js.is-ready [data-reveal] { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js.is-ready [data-reveal]:nth-child(2) { transition-delay: .12s; }
.js.is-ready [data-reveal]:nth-child(3) { transition-delay: .24s; }
.js.is-ready [data-reveal]:nth-child(4) { transition-delay: .36s; }
.js.is-ready .hx-hero__stats[data-reveal] { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
	.js [data-reveal] { opacity: 1; transform: none; }
	.hx-hero__img, .hx-led { animation: none; }
}

/* ---------- Clients marquee ---------- */
.hx-clients { background: var(--ink); color: var(--slate); border-top: 1px solid var(--line-dark); }
.hx-clients__inner { display: flex; align-items: center; gap: 32px; padding-block: 26px; }
.hx-clients__label { margin: 0; font-weight: 600; font-size: .92rem; flex: none; }
.hx-marquee { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hx-marquee__track { display: flex; align-items: center; gap: 56px; list-style: none; margin: 0; padding: 0; width: max-content; }
.hx-marquee.is-moving .hx-marquee__track { animation: hx-scroll var(--dur, 40s) linear infinite; }
.hx-marquee:hover .hx-marquee__track { animation-play-state: paused; }
.hx-marquee__track img { height: 38px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) brightness(2.2); opacity: .7; transition: opacity .2s, filter .2s; }
.hx-marquee__track li:hover img { filter: none; opacity: 1; }
.hx-marquee__track span { font-family: var(--f-display); font-weight: 500; color: #b9c9dc; white-space: nowrap; }
@keyframes hx-scroll { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .hx-clients__inner { flex-direction: column; align-items: flex-start; gap: 16px; } .hx-marquee { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hx-marquee.is-moving .hx-marquee__track { animation: none; } .hx-marquee { overflow-x: auto; } }

/* ---------- Services: the rack ---------- */
.hx-services { background: var(--ink); color: var(--white); padding-block: var(--sec); }
.hx-services .hx-lead { color: var(--slate); }

.hx-rack {
	position: relative;
	border-radius: var(--r-m);
	background: linear-gradient(180deg, #0e2546, #0a1c38);
	border: 1px solid var(--line-dark);
	padding: 10px 44px;
}
/* Rack rails with mounting holes */
.hx-rack::before, .hx-rack::after {
	content: ""; position: absolute; top: 10px; bottom: 10px; width: 18px;
	background-image: radial-gradient(circle at 50% 50%, #04101f 3.5px, transparent 4px);
	background-size: 18px 30px;
	background-position: center 9px;
	border-left: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark);
}
.hx-rack::before { left: 13px; }
.hx-rack::after { right: 13px; }

.hx-unit { border-bottom: 1px solid var(--line-dark); }
.hx-unit:last-child { border-bottom: 0; }
.hx-unit__head {
	width: 100%; display: grid;
	grid-template-columns: auto auto minmax(0, 1fr) auto auto;
	align-items: center; gap: clamp(12px, 2vw, 24px);
	padding: 22px clamp(8px, 2vw, 20px);
	background: none; border: 0; text-align: left; cursor: pointer;
	color: var(--white);
	border-radius: var(--r-s);
	transition: background-color .2s;
}
.hx-unit__head:hover { background: rgba(63, 210, 255, .05); }
.hx-unit__ports { display: grid; grid-template-columns: repeat(3, 8px); gap: 4px; }
.hx-unit__ports i { width: 8px; height: 8px; border-radius: 2px; background: #1f3a62; transition: background-color .3s, box-shadow .3s; }
.hx-unit__head:hover .hx-unit__ports i:first-child,
.hx-unit__head[aria-expanded="true"] .hx-unit__ports i { background: var(--aqua); box-shadow: 0 0 8px rgba(63, 210, 255, .7); }
.hx-unit__head[aria-expanded="true"] .hx-unit__ports i:nth-child(2) { background: var(--amber); box-shadow: 0 0 8px rgba(255, 180, 63, .7); animation: hx-port 1.1s steps(2) infinite; }
@keyframes hx-port { 50% { opacity: .35; } }
.hx-unit__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(63, 210, 255, .08); color: var(--aqua); }
.hx-unit__icon .hx-ico { width: 26px; height: 26px; }
.hx-unit__title strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.05rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; line-height: 1.25; }
.hx-unit__title span { display: block; color: var(--slate); font-size: .98rem; margin-top: 4px; max-width: 62ch; }
.hx-unit__count { color: var(--slate); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.hx-unit__toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); transition: transform .3s, background-color .2s, color .2s; }
.hx-unit__head[aria-expanded="true"] .hx-unit__toggle { transform: rotate(45deg); background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }

.hx-unit__body { padding: 4px clamp(8px, 2vw, 20px) 28px calc(clamp(8px, 2vw, 20px) + 36px + 48px + 2 * clamp(12px, 2vw, 24px)); }
.hx-unit__body:not([hidden]) { animation: hx-open .35s ease-out; }
@keyframes hx-open { from { opacity: 0; transform: translateY(-6px); } }
.hx-unit__list { list-style: none; margin: 0 0 20px; padding: 0; columns: 2 260px; column-gap: 32px; }
.hx-unit__list li { break-inside: avoid; position: relative; padding: 7px 0 7px 22px; color: #d9e5f2; }
.hx-unit__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 2px; background: var(--aqua); border-radius: 2px; }
.hx-unit__ask { font-weight: 700; color: var(--amber); text-decoration: none; border-bottom: 1.5px solid rgba(255, 180, 63, .4); padding-bottom: 2px; }
.hx-unit__ask:hover { border-color: var(--amber); }

@media (max-width: 760px) {
	.hx-rack { padding: 6px 12px; }
	.hx-rack::before, .hx-rack::after { display: none; }
	.hx-unit__head { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px 4px; }
	.hx-unit__ports, .hx-unit__count { display: none; }
	.hx-unit__icon { width: 42px; height: 42px; }
	.hx-unit__title span { display: none; }
	.hx-unit__body { padding: 0 4px 24px; }
}
@media (prefers-reduced-motion: reduce) { .hx-unit__body:not([hidden]) { animation: none; } .hx-unit__head[aria-expanded="true"] .hx-unit__ports i:nth-child(2) { animation: none; } }

/* ---------- Projects ---------- */
.hx-work { padding-block: var(--sec); }
.hx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.hx-card {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: var(--r-m);
	background: var(--ink-2);
	text-decoration: none; color: var(--white);
}
.hx-card--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.hx-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.hx-card:hover .hx-card__img, a.hx-card:focus-visible .hx-card__img { transform: scale(1.05); }
.hx-card__meta {
	position: absolute; inset: auto 0 0 0;
	display: flex; flex-direction: column; gap: 4px;
	padding: 48px 20px 18px;
	background: linear-gradient(0deg, rgba(6, 20, 42, .92), rgba(6, 20, 42, 0));
}
.hx-card__cat { display: inline-block; align-self: flex-start; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--aqua); padding: 3px 10px; border-radius: 999px; margin: 0 0 6px; }
.hx-card__title { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; line-height: 1.25; }
.hx-card--big .hx-card__title { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.hx-card__sub { color: #c3d3e6; font-size: .92rem; }
.hx-grid--even .hx-card { aspect-ratio: 4 / 3.4; }
@media (max-width: 900px) {
	.hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-card--big { grid-row: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
	.hx-grid { grid-template-columns: 1fr; }
	.hx-card--big { grid-column: auto; aspect-ratio: 1 / 1; }
}

/* ---------- About ---------- */
.hx-about { background: var(--white); padding-block: var(--sec); }
.hx-about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hx-about__media { position: relative; }
.hx-about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-m); }
.hx-about__media::after {
	content: ""; position: absolute; inset: auto -14px -14px auto; width: 46%; height: 46%; z-index: -1;
	border: 2px solid var(--amber); border-radius: var(--r-m);
}
.hx-about__media { isolation: isolate; }
.hx-about__copy p { color: var(--muted); max-width: 58ch; margin: 0 0 16px; }
.hx-checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.hx-checks li { position: relative; padding-left: 34px; font-weight: 600; }
.hx-checks li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fd2ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.hx-checks--tight { margin-top: 12px; gap: 8px; }
.hx-checks--tight li { font-weight: 500; }
@media (max-width: 860px) { .hx-about__grid { grid-template-columns: 1fr; } .hx-about__media img { aspect-ratio: 16 / 11; } }

/* ---------- Process ---------- */
.hx-process { padding-block: var(--sec); }
.hx-steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.hx-steps li { counter-increment: step; position: relative; padding: 56px 24px 0 0; }
.hx-steps li::before {
	content: counter(step);
	position: absolute; top: 0; left: 0; z-index: 1;
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: var(--ink); color: var(--amber);
	font-family: var(--f-display); font-weight: 600; font-size: .95rem;
}
.hx-steps li::after { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 12px); }
.hx-steps li:last-child::after { display: none; }
.hx-steps strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; margin-bottom: 6px; }
.hx-steps span { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) {
	.hx-steps { grid-template-columns: 1fr; gap: 24px; }
	.hx-steps li { padding: 4px 0 0 56px; }
	.hx-steps li::after { top: 36px; bottom: -24px; left: 17px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ink-3) 0 6px, transparent 6px 12px); }
}

/* ---------- Testimonials ---------- */
.hx-quotes { padding-block: 0 var(--sec); }
.hx-quotes__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 32px; }
.hx-quote { margin: 0; padding: 28px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-m); display: flex; flex-direction: column; }
.hx-quote__stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: 14px; }
.hx-quote__stars .hx-ico { width: 18px; height: 18px; fill: currentColor; }
.hx-quote blockquote { margin: 0 0 20px; flex: 1; }
.hx-quote blockquote p { margin: 0; font-size: 1.05rem; }
.hx-quote figcaption { display: flex; align-items: center; gap: 12px; }
.hx-quote__img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.hx-quote figcaption span { display: flex; flex-direction: column; color: var(--muted); font-size: .92rem; }
.hx-quote figcaption strong { color: var(--text); font-size: 1rem; }

/* ---------- Contact ---------- */
.hx-contact { background: var(--ink); color: var(--white); padding-block: var(--sec); }
.hx-contact .hx-lead { color: var(--slate); }
.hx-contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.hx-contact__list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
.hx-contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.hx-contact__list .hx-ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(63, 210, 255, .08); color: var(--aqua); }
.hx-contact__list span { display: block; color: var(--slate); font-size: .9rem; font-weight: 600; }
.hx-contact__list a, .hx-contact__list p { margin: 0; font-weight: 700; font-size: 1.08rem; text-decoration: none; }
.hx-contact__list a:hover { color: var(--aqua); }
.hx-map { width: 100%; height: 220px; border: 0; border-radius: var(--r-m); margin-top: 28px; filter: grayscale(.4); }

.hx-form-wrap { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: clamp(22px, 3.5vw, 40px); }
.hx-form { display: grid; gap: 18px; }
.hx-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hx-field { display: grid; gap: 8px; }
.hx-field > span { font-weight: 600; font-size: .95rem; color: #cfe0f2; }
.hx-field input, .hx-field select, .hx-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	background: var(--ink); border: 1.5px solid #23406b; border-radius: 10px; color: var(--white);
	transition: border-color .2s, box-shadow .2s;
}
.hx-field textarea { resize: vertical; min-height: 120px; }
.hx-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238ea3bd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.hx-field input::placeholder, .hx-field textarea::placeholder { color: #5e7491; }
.hx-field input:focus, .hx-field select:focus, .hx-field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(63, 210, 255, .2); }
.hx-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: .98rem; }
.hx-notice--ok { background: rgba(57, 229, 140, .12); border: 1px solid rgba(57, 229, 140, .4); color: #c9f7dd; }
.hx-notice--err { background: rgba(255, 99, 99, .12); border: 1px solid rgba(255, 99, 99, .45); color: #ffd3d3; }
@media (max-width: 860px) { .hx-contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hx-form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.hx-footer { background: #040e1e; color: var(--slate); padding-top: 64px; font-size: .98rem; }
.hx-footer__grid { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.hx-footer__brand .hx-logo { color: var(--white); margin-bottom: 16px; }
.hx-footer__brand p { margin: 0 0 20px; max-width: 34ch; }
.hx-footer__h { font-family: var(--f-display); font-weight: 500; font-size: 1rem; color: var(--white); margin: 0 0 16px; }
.hx-footer__links, .hx-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx-footer a { text-decoration: none; }
.hx-footer a:hover { color: var(--white); }
.hx-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.hx-footer__contact .hx-ico { color: var(--aqua); margin-top: 3px; }
.hx-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hx-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark); color: #c3d3e6; transition: background-color .2s, color .2s; }
.hx-social a:hover { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
.hx-social .hx-ico { width: 18px; height: 18px; }
.hx-footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; background: linear-gradient(var(--line-dark), var(--line-dark)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: .9rem; }
@media (max-width: 900px) { .hx-footer__grid { grid-template-columns: 1fr 1fr; } .hx-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .hx-footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp button ---------- */
.hx-wa {
	position: fixed; right: 20px; bottom: 20px; z-index: 60;
	display: inline-flex; align-items: center; gap: 10px;
	height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
	background: #25d366; color: #052e16; text-decoration: none; font-weight: 700;
	box-shadow: 0 10px 30px rgba(4, 14, 30, .35);
	transition: transform .2s;
}
.hx-wa:hover { transform: translateY(-2px); }
.hx-wa .hx-ico { width: 26px; height: 26px; }
@media (max-width: 560px) { .hx-wa { width: 56px; padding: 0; justify-content: center; } .hx-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- Inner pages ---------- */
.hx-page .hx-pagehead { background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); }
.hx-pagehead .hx-lead { color: var(--slate); }
.hx-pagehead__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; max-width: 20ch; }
.hx-pagehead__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(63, 210, 255, .1); color: var(--aqua); margin-bottom: 20px; }
.hx-pagehead__icon .hx-ico { width: 30px; height: 30px; }
.hx-back { display: table; color: var(--slate); text-decoration: none; font-weight: 600; margin-bottom: 20px; }
.hx-back::before { content: "‹ "; }
.hx-back:hover { color: var(--white); }
.hx-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.hx-filter a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-dark); color: #c3d3e6; text-decoration: none; font-weight: 600; font-size: .95rem; }
.hx-filter a:hover { border-color: var(--slate); }
.hx-filter a[aria-current] { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.hx-work--page { padding-top: clamp(40px, 6vw, 64px); }
.hx-section-pad { padding-block: clamp(40px, 6vw, 72px); }

.hx-project { padding-block: clamp(32px, 5vw, 56px) var(--sec); }
.hx-project__cover { margin: 0 0 clamp(32px, 5vw, 56px); }
.hx-project__cover img { width: 100%; border-radius: var(--r-m); aspect-ratio: 16 / 9; object-fit: cover; }
.hx-project__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.hx-project__facts { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-m); padding: 24px; display: grid; gap: 12px; }
.hx-project__facts dl { margin: 0; display: grid; gap: 12px; }
.hx-project__facts dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-light); padding-bottom: 12px; }
.hx-project__facts dt { color: var(--muted); }
.hx-project__facts dd { margin: 0; font-weight: 700; text-align: right; }
.hx-project__facts p { margin: 0 0 8px; color: var(--muted); }
.hx-project__h { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; margin: 8px 0 0; }
.hx-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 56px; }
.hx-gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-m); }
@media (max-width: 860px) { .hx-project__grid { grid-template-columns: 1fr; } .hx-project__facts { position: static; } }

.hx-prose { max-width: 70ch; }
.hx-prose--page { margin-inline: auto; }
.hx-prose h2, .hx-prose h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 1.8em 0 .6em; }
.hx-prose p, .hx-prose ul, .hx-prose ol { margin: 0 0 1.1em; }
.hx-prose a { color: var(--ink-3); text-underline-offset: 3px; }
.hx-prose img { border-radius: var(--r-s); }
.hx-prose > :first-child { margin-top: 0; }

.hx-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.hx-post a { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--line-light); border-radius: var(--r-m); overflow: hidden; height: 100%; }
.hx-post img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.hx-post__date, .hx-post h2, .hx-post p { display: block; margin: 0; padding-inline: 22px; }
.hx-post__date { padding-top: 20px; color: var(--muted); font-size: .9rem; }
.hx-post h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; line-height: 1.3; margin: 8px 0; }
.hx-post p { color: var(--muted); padding-bottom: 22px; }
.hx-pager .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.hx-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-light); text-decoration: none; font-weight: 700; }
.hx-pager .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.hx-empty { color: var(--muted); }

.hx-404 { min-height: 70vh; display: flex; align-items: center; }
.hx-404__code { font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 18vw, 12rem); line-height: 1; margin: 0 0 8px; color: transparent; -webkit-text-stroke: 2px var(--aqua); letter-spacing: -0.05em; }

/* WordPress core alignment helpers */
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption.wp-element-caption { color: var(--muted); font-size: .9rem; }

/* =========================================================
   v1.1 — phone everywhere, SEO pages
   ========================================================= */
.hx-nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--white); white-space: nowrap; }
.hx-nav__phone .hx-ico { width: 18px; height: 18px; color: var(--amber); }
.hx-nav__phone:hover span { text-decoration: underline; text-underline-offset: 4px; }
.hx-head-call { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: var(--amber); color: var(--amber-ink); }
.hx-head-call .hx-ico { width: 20px; height: 20px; }
@media (max-width: 1100px) and (min-width: 901px) { .hx-nav__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 900px) {
	.hx-head-call { display: grid; }
	.hx-header__inner { gap: 12px; }
	.hx-nav__phone { font-size: 1.15rem; padding: 6px 0; }
}

/* Mobile call / WhatsApp bar */
.hx-callbar { display: none; }
@media (max-width: 760px) {
	.hx-callbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		display: grid; grid-template-columns: 1fr auto; gap: 8px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: rgba(6, 20, 42, .96); border-top: 1px solid var(--line-dark);
		backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	}
	.hx-callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
	.hx-callbar .hx-ico { width: 20px; height: 20px; }
	.hx-callbar__call { background: var(--amber); color: var(--amber-ink); }
	.hx-callbar__wa { background: #25d366; color: #052e16; }
	body:has(.hx-callbar) { padding-bottom: 76px; }
	body:has(.hx-callbar) .hx-wa { display: none; }
}

/* Rack: link to full service page */
.hx-unit__more { margin-left: 20px; font-weight: 600; color: #c3d3e6; text-decoration: underline; text-underline-offset: 4px; }
.hx-unit__more:hover { color: var(--white); }
@media (max-width: 560px) { .hx-unit__more { display: inline-block; margin: 14px 0 0; } }

/* Popular in Dubai */
.hx-popular { margin-top: 40px; }
.hx-popular__h { font-family: var(--f-display); font-weight: 500; font-size: 1.05rem; margin: 0 0 16px; color: var(--slate); }
.hx-popular ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hx-popular a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border: 1px solid var(--line-dark); border-radius: 999px; text-decoration: none; font-weight: 600; color: #d9e5f2; transition: border-color .2s, background-color .2s; }
.hx-popular a:hover { border-color: var(--aqua); background: rgba(63, 210, 255, .06); }
.hx-popular .hx-ico { width: 20px; height: 20px; color: var(--aqua); }

/* Service page */
.hx-crumbs { display: flex; gap: 8px; margin-bottom: 20px; font-size: .95rem; color: var(--slate); }
.hx-crumbs a { color: var(--slate); text-decoration: none; font-weight: 600; }
.hx-crumbs a:hover { color: var(--white); }
.hx-pagehead__actions { margin-top: 28px; }
.hx-pagehead__actions .hx-ico { width: 20px; height: 20px; }
.hx-faq { display: grid; gap: 10px; margin-bottom: 1.1em; }
.hx-faq details { background: var(--white); border: 1px solid var(--line-light); border-radius: 12px; padding: 0 20px; }
.hx-faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--ink-3); }
.hx-faq details[open] summary::after { content: "–"; }
.hx-faq details p { margin: 0 0 18px; color: var(--muted); }
.hx-phone-big { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; padding: 6px 0 4px; }
.hx-phone-big .hx-ico { width: 24px; height: 24px; color: var(--ink-3); }
.hx-sidelinks { list-style: none; margin: 0; padding: 0; display: grid; }
.hx-sidelinks a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line-light); text-decoration: none; color: var(--text); font-weight: 600; font-size: .96rem; }
.hx-sidelinks a:hover { color: var(--ink-3); }

/* Footer additions */
.hx-footer__areas { font-size: .92rem; }
.hx-footer__popular { padding-bottom: 36px; }
.hx-footer__popular ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }

.hx-nowrap { white-space: nowrap; }
@media (max-width: 760px) {
	.hx-callbar a { white-space: nowrap; font-size: .98rem; padding: 0 14px; }
}
@media (max-width: 400px) {
	.hx-callbar__wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hx-callbar__wa { width: 52px; padding: 0; }
}

/* Contact form: WhatsApp + email buttons */
.hx-form__send { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hx-btn--wa { background: #25d366; color: #052e16; }
.hx-btn--wa:hover { background: #3be07a; }
.hx-btn--wa .hx-ico { width: 22px; height: 22px; }
.hx-form__note { margin: -4px 0 0; color: var(--slate); font-size: .9rem; }
@media (max-width: 520px) { .hx-form__send { grid-template-columns: 1fr; } }

/* =========================================================
   Chat assistant
   ========================================================= */
.hx-has-bot .hx-wa { display: none; } /* the assistant offers WhatsApp itself */
.hx-bot { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--f-body); }
.hx-bot__launch {
	position: relative; display: grid; place-items: center;
	width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--ink); color: var(--aqua);
	box-shadow: 0 0 0 1.5px rgba(63, 210, 255, .35), 0 12px 30px rgba(4, 14, 30, .4);
	transition: transform .2s, background-color .2s;
}
.hx-bot__launch:hover { transform: translateY(-2px); background: var(--ink-3); }
.hx-bot__launch .hx-ico { width: 28px; height: 28px; grid-area: 1 / 1; transition: opacity .2s, transform .25s; }
.hx-bot__launch .hx-ico:last-child { opacity: 0; transform: rotate(-90deg); }
.hx-bot.is-open .hx-bot__launch .hx-ico:first-child { opacity: 0; transform: rotate(90deg); }
.hx-bot.is-open .hx-bot__launch .hx-ico:last-child { opacity: 1; transform: none; }
.hx-bot__launch::after { content: ""; position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%; background: #39e58c; border: 2px solid var(--ink); }
.hx-bot.is-open .hx-bot__launch::after { display: none; }

.hx-bot__teaser {
	max-width: 240px; padding: 12px 16px; border: 0; border-radius: 16px 16px 4px 16px; cursor: pointer;
	background: var(--white); color: var(--text); font-weight: 700; font-size: .95rem; text-align: left;
	box-shadow: 0 10px 30px rgba(4, 14, 30, .25);
	opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.hx-bot__teaser.is-shown { opacity: 1; transform: none; pointer-events: auto; }

.hx-bot__panel {
	width: 370px; height: min(580px, calc(100vh - 120px)); display: flex; flex-direction: column;
	background: var(--paper); border-radius: 18px; overflow: hidden;
	box-shadow: 0 24px 60px rgba(4, 14, 30, .45), 0 0 0 1px rgba(6, 20, 42, .08);
	transform-origin: bottom right; animation: hx-bot-in .25s cubic-bezier(.2, .7, .2, 1);
}
.hx-bot__panel[hidden] { display: none; }
@keyframes hx-bot-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.hx-bot__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; background: var(--ink); color: var(--white); }
.hx-bot__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hx-bot__avatar { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(63, 210, 255, .12); color: var(--aqua); flex: none; }
.hx-bot__avatar .hx-ico { width: 22px; height: 22px; }
.hx-bot__avatar::after { content: ""; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #39e58c; border: 2px solid var(--ink); }
.hx-bot__names { display: flex; flex-direction: column; min-width: 0; }
.hx-bot__names strong { font-family: var(--f-display); font-weight: 500; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-bot__names span { color: var(--slate); font-size: .84rem; }
.hx-bot__close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #c3d3e6; cursor: pointer; }
.hx-bot__close:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.hx-bot__close .hx-ico { width: 20px; height: 20px; }

.hx-bot__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.hx-bot__msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .96rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.hx-bot__msg--bot { align-self: flex-start; background: var(--white); color: var(--text); border-bottom-left-radius: 4px; box-shadow: 0 1px 0 rgba(6, 20, 42, .06); }
.hx-bot__msg--user { align-self: flex-end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.hx-bot__msg + .hx-bot__msg--user { margin-top: 4px; }
.hx-bot__typing { display: flex; gap: 4px; padding: 14px 16px; }
.hx-bot__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); animation: hx-dot 1s infinite; }
.hx-bot__typing i:nth-child(2) { animation-delay: .15s; }
.hx-bot__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hx-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.hx-bot__dock { padding: 10px 14px 14px; border-top: 1px solid var(--line-light); background: var(--paper); }
.hx-bot__dock:empty { display: none; }
.hx-bot__choices { display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow-y: auto; }
.hx-bot__choices--grid { display: grid; grid-template-columns: 1fr 1fr; }
.hx-bot__choices--grid .hx-bot__chip { border-radius: 12px; min-height: 48px; font-size: .88rem; line-height: 1.25; padding: 8px 12px; }
.hx-bot__chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
	border: 1.5px solid var(--ink-3); border-radius: 999px; background: var(--white); color: var(--ink);
	font: inherit; font-weight: 600; font-size: .93rem; text-align: left; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s;
}
@media (hover: hover) { .hx-bot__chip:hover { background: var(--ink); color: var(--white); } }
.hx-bot__chip .hx-ico { width: 18px; height: 18px; }
.hx-bot__chip--main { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
@media (hover: hover) { .hx-bot__chip--main:hover { background: #ffc767; color: var(--amber-ink); } }
.hx-bot__chip--wa { background: #25d366; border-color: #25d366; color: #052e16; }
@media (hover: hover) { .hx-bot__chip--wa:hover { background: #3be07a; color: #052e16; } }

.hx-bot__form { display: flex; gap: 8px; }
.hx-bot__input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1.5px solid #c4d0de; border-radius: 999px; background: var(--white); color: var(--text); font: inherit; font-size: 1rem; }
.hx-bot__input:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 3px rgba(18, 48, 90, .15); }
.hx-bot__send { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--amber); color: var(--amber-ink); cursor: pointer; }
.hx-bot__send .hx-ico { width: 20px; height: 20px; }
.hx-bot__err { margin: 6px 4px 0; color: #b42318; font-size: .88rem; }
.hx-bot__err:empty { display: none; }
.hx-bot__skip { margin-top: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }

@media (max-width: 760px) {
	body:has(.hx-callbar) .hx-bot { bottom: 86px; right: 12px; }
	.hx-bot__launch { width: 54px; height: 54px; }
	.hx-bot.is-open, body:has(.hx-callbar) .hx-bot.is-open { inset: 0; right: 0; bottom: 0; gap: 0; z-index: 90; }
	html:has(.hx-bot.is-open) { overflow: hidden; }
	.hx-bot.is-open .hx-bot__launch, .hx-bot.is-open .hx-bot__teaser { display: none; }
	.hx-bot__panel { width: 100%; height: 100%; border-radius: 0; }
	.hx-bot__dock { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.hx-bot__panel { animation: none; }
	.hx-bot__typing i { animation: none; }
}

/* ---------- Waving robot launcher ---------- */
.hx-bot__launch { width: 84px; height: 100px; padding: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; }
.hx-bot__launch:hover { transform: none; background: none; }
.hx-bot__launch::after { display: none; }
.hx-bot__launch:focus-visible { outline-offset: 0; border-radius: 16px; }
.hx-robot { width: 84px; height: 100px; overflow: visible; filter: drop-shadow(0 10px 16px rgba(4, 14, 30, .35)); }
.hx-robot__body { animation: hx-float 3.4s ease-in-out infinite; }
.hx-robot__shadow { fill: rgba(4, 14, 30, .28); animation: hx-shadow 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hx-robot__head { fill: #0b1f3d; stroke: var(--aqua); stroke-width: 2; }
.hx-robot__visor { fill: #06142a; }
.hx-robot__eyes { fill: var(--aqua); transform-box: fill-box; transform-origin: center; animation: hx-blink 5s infinite; }
.hx-robot__smile { fill: none; stroke: var(--aqua); stroke-width: 2.5; stroke-linecap: round; }
.hx-robot__ear { fill: #12305a; stroke: var(--aqua); stroke-width: 1.5; }
.hx-robot__stroke { stroke: var(--aqua); stroke-width: 2.5; stroke-linecap: round; }
.hx-robot__led { fill: var(--amber); animation: hx-led 1.8s ease-in-out infinite; }
.hx-robot__torso, .hx-robot__limb { fill: #12305a; stroke: var(--aqua); stroke-width: 1.5; }
.hx-robot__core { fill: var(--amber); }
.hx-robot__hand { fill: #0b1f3d; stroke: var(--aqua); stroke-width: 2; }
.hx-robot__arm { transform-box: view-box; transform-origin: 62.5px 66px; }
.hx-bot.is-waving .hx-robot__arm { animation: hx-wave 1.7s ease-in-out; }
.hx-bot__launch:hover .hx-robot__eyes { animation: none; transform: scaleY(.55); } /* happy squint */

@keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes hx-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.85); opacity: .7; } }
@keyframes hx-blink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes hx-led { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes hx-wave { 0% { transform: rotate(0); } 14% { transform: rotate(24deg); } 28% { transform: rotate(-8deg); } 42% { transform: rotate(24deg); } 56% { transform: rotate(-8deg); } 72% { transform: rotate(18deg); } 100% { transform: rotate(0); } }

/* Open state: the robot steps aside for a close button */
.hx-bot__x { display: none; }
.hx-bot.is-open .hx-bot__launch { width: 60px; height: 60px; }
.hx-bot.is-open .hx-robot { display: none; }
.hx-bot.is-open .hx-bot__x { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: var(--aqua); box-shadow: 0 0 0 1.5px rgba(63, 210, 255, .35), 0 12px 30px rgba(4, 14, 30, .4); }
.hx-bot__launch .hx-bot__x .hx-ico { opacity: 1; transform: none; width: 26px; height: 26px; }

/* Greeting bubble */
.hx-bot__teaser {
	position: relative; max-width: 280px; padding: 16px 16px 14px; margin-right: 18px;
	border-radius: 18px 18px 6px 18px; background: var(--white); color: var(--text); text-align: left; cursor: default;
	box-shadow: 0 14px 40px rgba(4, 14, 30, .28), 0 0 0 1px rgba(6, 20, 42, .06);
	opacity: 0; transform: translateY(10px) scale(.92); transform-origin: bottom right; pointer-events: none;
	transition: opacity .3s, transform .35s cubic-bezier(.2, 1.3, .4, 1);
}
.hx-bot__teaser.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.hx-bot__teaser::after { content: ""; position: absolute; right: -7px; bottom: 10px; width: 14px; height: 14px; background: var(--white); transform: rotate(45deg); border-radius: 2px; }
.hx-bot__teaser-text { display: block; padding: 0 22px 0 0; margin: 0 0 12px; border: 0; background: none; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.4; color: var(--text); text-align: left; cursor: pointer; }
.hx-bot__teaser-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hx-bot__teaser-yes, .hx-bot__teaser-no { min-height: 38px; padding: 6px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.hx-bot__teaser-yes { border: 0; background: var(--amber); color: var(--amber-ink); }
.hx-bot__teaser-no { border: 1.5px solid #c4d0de; background: transparent; color: var(--muted); }
.hx-bot__teaser-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.hx-bot__teaser-x:hover { background: var(--paper); }
.hx-bot__teaser-x .hx-ico { width: 16px; height: 16px; }

@media (max-width: 760px) {
	.hx-bot__launch, .hx-robot { width: 68px; height: 81px; }
	.hx-bot__teaser { max-width: 250px; margin-right: 10px; padding: 14px 14px 12px; }
	.hx-bot__teaser-text { font-size: .93rem; }
	body:has(.hx-callbar) .hx-bot { bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
	.hx-robot__body, .hx-robot__shadow, .hx-robot__eyes, .hx-robot__led { animation: none; }
	.hx-bot.is-waving .hx-robot__arm { animation: none; }
	.hx-bot__teaser { transition: opacity .2s; transform: none; }
}
/* bigger robot on desktop, bubble tail points down at it */
@media (min-width: 761px) {
	.hx-bot__launch, .hx-robot { width: 98px; height: 116px; }
}
.hx-bot__teaser { margin-right: 0; border-radius: 18px 18px 6px 18px; }
.hx-bot__teaser::after { right: 34px; bottom: -6px; }
@keyframes hx-wave { 0% { transform: rotate(0); } 14% { transform: rotate(30deg); } 28% { transform: rotate(-10deg); } 42% { transform: rotate(30deg); } 56% { transform: rotate(-10deg); } 72% { transform: rotate(22deg); } 100% { transform: rotate(0); } }

/* =========================================================
   Chat box always fits the screen (v1.7)
   ========================================================= */
/* The greeting floats above the robot and never takes up space. */
.hx-bot__teaser { position: absolute; right: 0; bottom: calc(100% + 10px); width: max-content; }
.hx-bot.is-open .hx-bot__teaser { display: none; }

/* Desktop: panel height = visible screen minus launcher, gaps and admin bar. */
.hx-bot__panel {
	--hx-room: 112px;
	height: min(600px, calc(100vh - var(--hx-room)));
	height: min(600px, calc(100dvh - var(--hx-room)));
	max-height: calc(var(--hx-vvh, 100dvh) - var(--hx-room));
	min-height: 0;
}
.admin-bar .hx-bot__panel { --hx-room: 144px; }
.hx-bot__log { min-height: 0; }
.hx-bot__choices { max-height: min(260px, 34vh); max-height: min(260px, 34dvh); }

/* Mobile: full screen that follows the keyboard (visualViewport sets the vars). */
@media (max-width: 760px) {
	.hx-bot.is-open, body:has(.hx-callbar) .hx-bot.is-open {
		inset: auto 0 auto 0; top: var(--hx-vvt, 0px);
		height: var(--hx-vvh, 100dvh);
	}
	.hx-bot.is-open .hx-bot__panel { height: 100%; max-height: none; }
	.admin-bar .hx-bot.is-open { top: var(--hx-vvt, 0px); }
}

/* ---------- Mobile polish (v1.7) ---------- */
@media (max-width: 760px) {
	/* no light strip under the footer: the call bar space belongs to the footer */
	body:has(.hx-callbar) { padding-bottom: 0; }
	body:has(.hx-callbar) .hx-footer { padding-bottom: 76px; }
	body.nav-open .hx-bot { display: none; }
}
@media (max-width: 480px) {
	.hx-hero__actions .hx-btn { flex: 1 1 100%; }
}

/* ---------- Logo size (v1.8): set in Website settings → Logo size ---------- */
.wp-custom-logo .hx-logo__name { display: inline; }
.hx-logo__img { height: var(--hx-logo-h, 58px); width: auto; max-width: 260px; object-fit: contain; }
.hx-header__inner { min-height: calc(var(--hx-logo-h, 58px) + 24px); }
.hx-footer__brand .hx-logo__img { height: calc(var(--hx-logo-h, 58px) * 1.1); max-width: 280px; }
@media (max-width: 900px) {
	.hx-logo__img { height: var(--hx-logo-hm, 44px); max-width: 170px; }
	.hx-header__inner { min-height: 72px; }
	.hx-nav { inset: 72px 0 auto 0; }
	.hx-logo__name { font-size: .95rem; line-height: 1.15; }
}
.hx-nav__cta, .hx-logo__name { white-space: nowrap; }
.hx-logo { flex: none; }
@media (max-width: 1320px) and (min-width: 901px) {
	.hx-nav { gap: 16px; }
	.hx-nav__list a { padding: 10px 10px; }
	.hx-header .hx-logo__name { display: none; } /* logo alone on mid-size screens */
}
@media (max-width: 480px) {
	.hx-header .hx-logo__name { display: none; } /* logo alone on phones; name stays in the footer */
}
@media (max-width: 900px) {
	.hx-header__inner { min-height: calc(var(--hx-logo-hm, 50px) + 22px); }
	.hx-nav { inset: calc(var(--hx-logo-hm, 50px) + 22px) 0 auto 0; }
	.hx-logo__img { max-width: 200px; }
}
.hx-logo__img { max-width: 280px; }

/* Guides, areas, post CTA (1.14) */
.hx-guides { padding-block: 0 var(--sec); }
.hx-guides__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hx-guides__head .hx-h2 { margin: 0; }
.hx-guides__all { font-weight: 600; text-decoration: none; color: inherit; }
.hx-post h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; line-height: 1.3; margin: 8px 0; padding-inline: 22px; color: var(--ink, #0b1b2e); }
.hx-areas { padding-block: 0 var(--sec); }
.hx-areas__h { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0 0 10px; }
.hx-areas p { color: var(--muted); max-width: 80ch; margin: 0; }
.hx-postfaq details { border-bottom: 1px solid var(--line-light); padding: 12px 0; }
.hx-postfaq summary { cursor: pointer; font-weight: 600; }
.hx-postcta { margin: 48px auto 0; max-width: 760px; padding: 28px; border-radius: var(--r-m); background: #0b1b2e; color: #e6f1ff; }
.hx-postcta h2 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; color: #fff; }
.hx-postcta p { margin: 0 0 18px; color: #c3d3e6; }
.hx-postcta .hx-btn--line { color: #fff; }
.hx-moreguides { margin-top: 56px; }
