/*
Theme Name: Himalix
Theme URI: https://himalix.io
Author: Himalix Digital Pvt. Ltd.
Author URI: https://himalix.io
Description: Custom theme for Himalix — faceless video production and AI website studio.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: himalix
*/

:root {
	--ink: #101216;
	--ink-2: #1a1d23;
	--ink-3: #262a32;
	--paper: #faf8f4;
	--white: #ffffff;
	--line: #e7e3da;
	--line-dark: rgba(255, 255, 255, 0.12);
	--text: #23262d;
	--muted: #5d626d;
	--muted-dark: #a9afbb;
	--brand: #e4472b;
	--brand-ink: #c63a20;
	--brand-soft: #fdece7;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--wrap: 1200px;
	--gap: clamp(1rem, 2.2vw, 1.75rem);
	--section: clamp(4rem, 9vw, 7rem);
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
	--shadow: 0 1px 2px rgba(16, 18, 22, 0.04), 0 12px 32px -16px rgba(16, 18, 22, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
	color: var(--ink);
	margin: 0 0 0.6em;
	line-height: 1.12;
	text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 999; width: auto; height: auto; clip: auto;
	background: var(--white); color: var(--ink); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
}

.hx-wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Buttons */
.hx-btn,
.wp-block-button__link,
.wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 48px; padding: 0.8rem 1.5rem;
	background: var(--brand); color: var(--white);
	border: 1px solid var(--brand); border-radius: 999px;
	font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.hx-btn:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--white); transform: translateY(-1px); }
.hx-btn--ghost,
.is-style-outline > .wp-block-button__link {
	background: transparent; color: var(--ink); border-color: rgba(16, 18, 22, 0.25);
}
.hx-btn--ghost:hover,
.is-style-outline > .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hx-on-dark .hx-btn--ghost,
.hx-on-dark .is-style-outline > .wp-block-button__link { color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.hx-on-dark .hx-btn--ghost:hover,
.hx-on-dark .is-style-outline > .wp-block-button__link:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.wp-block-button { margin: 0; }

/* Header */
.hx-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 248, 244, 0.92);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid var(--line);
	transition: background 0.2s ease, border-color 0.2s ease;
}
.hx-header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.hx-logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.hx-logo:hover { color: var(--ink); }
.hx-logo svg { width: 34px; height: 34px; flex: none; }
.hx-nav { margin-left: auto; }
.hx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.hx-nav li { position: relative; }
.hx-nav a { display: block; padding: 0.6rem 0.85rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; border-radius: 999px; }
.hx-nav a:hover,
.hx-nav .current-menu-item > a,
.hx-nav .current-menu-ancestor > a { background: rgba(16, 18, 22, 0.07); }
.hx-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.45em;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.2em) rotate(45deg);
}
.hx-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 270px; display: block;
	padding: 0.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.hx-nav li:hover > .sub-menu,
.hx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hx-nav .sub-menu a { color: var(--ink); border-radius: var(--radius-sm); }
.hx-nav .sub-menu a:hover { background: var(--paper); }
.hx-header__cta { flex: none; min-height: 44px; padding: 0.6rem 1.2rem; font-size: 0.95rem; }
.hx-burger { display: none; margin-left: auto; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid rgba(16, 18, 22, 0.2); border-radius: 12px; color: inherit; cursor: pointer; }
.hx-burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.hx-nav-open .hx-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hx-nav-open .hx-burger span:nth-child(2) { opacity: 0; }
.hx-nav-open .hx-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Transparent header over a hero */
.hx-has-hero .hx-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.hx-has-hero .hx-header:not(.is-stuck) .hx-logo,
.hx-has-hero .hx-header:not(.is-stuck) .hx-nav > ul > li > a,
.hx-has-hero .hx-header:not(.is-stuck) .hx-burger { color: var(--white); }
.hx-has-hero .hx-header:not(.is-stuck) .hx-burger { border-color: rgba(255, 255, 255, 0.4); }
.hx-has-hero .hx-header:not(.is-stuck) .hx-nav > ul > li > a:hover,
.hx-has-hero .hx-header:not(.is-stuck) .hx-nav > ul > .current-menu-item > a,
.hx-has-hero .hx-header:not(.is-stuck) .hx-nav > ul > .current-menu-ancestor > a { background: rgba(255, 255, 255, 0.14); }
.hx-has-hero .hx-header.is-stuck { background: rgba(250, 248, 244, 0.94); border-color: var(--line); backdrop-filter: saturate(140%) blur(12px); }
.admin-bar .hx-header { top: 32px; }

/* Hero (front page) */
.hx-hero {
	position: relative; isolation: isolate; display: flex; align-items: flex-end;
	min-height: 100vh; min-height: 100svh; padding: 9rem 0 clamp(3rem, 7vw, 5.5rem);
	background: var(--ink); color: var(--white); overflow: hidden;
}
.hx-hero__media { position: absolute; inset: 0; z-index: -2; }
.hx-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hx-hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(10, 11, 14, 0.72) 0%, rgba(10, 11, 14, 0.2) 30%, rgba(10, 11, 14, 0.55) 62%, rgba(10, 11, 14, 0.94) 100%),
		linear-gradient(90deg, rgba(10, 11, 14, 0.7) 0%, rgba(10, 11, 14, 0) 70%);
}
.hx-hero__in { max-width: 860px; }
.hx-eyebrow {
	display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem;
	font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink);
}
.hx-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--brand); }
.hx-hero .hx-eyebrow,
.hx-on-dark .hx-eyebrow { color: #ffb4a3; }
.hx-hero h1 { color: var(--white); font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: 1.02; margin-bottom: 0.35em; }
.hx-hero h1 em { font-style: italic; color: #ffcabd; }
.hx-hero__lead { max-width: 620px; font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: rgba(255, 255, 255, 0.86); margin-bottom: 2rem; }
.hx-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hx-hero__strip {
	display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 1.4rem 0 0;
	list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.86rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78);
}
.hx-hero__strip li { display: flex; align-items: center; gap: 0.6rem; }
.hx-hero__strip li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* Page hero (inner pages) */
.hx-pagehero {
	position: relative; isolation: isolate; padding: clamp(9rem, 15vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
	background: var(--ink); color: var(--white); overflow: hidden;
}
.hx-pagehero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 90% at 88% 0%, rgba(228, 71, 43, 0.34) 0%, rgba(228, 71, 43, 0) 60%),
		radial-gradient(50% 80% at 0% 100%, rgba(72, 96, 160, 0.3) 0%, rgba(72, 96, 160, 0) 60%);
}
.hx-pagehero h1 { color: var(--white); max-width: 22ch; margin-bottom: 0.3em; }
.hx-pagehero__lead { max-width: 640px; font-size: 1.15rem; color: rgba(255, 255, 255, 0.82); margin: 0; }
.hx-crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted-dark); }
.hx-crumbs a { color: var(--muted-dark); text-decoration: none; }
.hx-crumbs a:hover { color: var(--white); }
.hx-crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }

/* Content sections (block content) */
.hx-content > * { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.hx-content > .hx-section,
.hx-content > .alignfull { width: 100%; max-width: none; }
.hx-section { padding: var(--section) 0; }
.hx-section > * { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.hx-section--white { background: var(--white); border-block: 1px solid var(--line); }
.hx-section--dark { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.hx-section--dark h2,
.hx-section--dark h3,
.hx-section--dark h4 { color: var(--white); }
.hx-section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.hx-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.hx-section > .hx-head { margin-inline: auto; width: min(100% - 2.5rem, var(--wrap)); max-width: var(--wrap); }
.hx-head > * { max-width: 760px; }
.hx-head p:not(.hx-eyebrow) { font-size: 1.12rem; color: var(--muted); margin-bottom: 0; }
.hx-section--dark .hx-head p:not(.hx-eyebrow) { color: var(--muted-dark); }
.hx-head--center { text-align: center; }
.hx-head--center > * { margin-inline: auto; }
.hx-head--center .hx-eyebrow { justify-content: center; }

/* Grids */
.hx-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Cards */
.hx-card {
	position: relative; display: flex; flex-direction: column; padding: clamp(1.4rem, 2.4vw, 2rem);
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d3c6; }
.hx-section--white .hx-card { background: var(--paper); }
.hx-card h3 { margin-bottom: 0.5rem; }
.hx-card h3 a { color: inherit; text-decoration: none; }
.hx-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hx-card p { color: var(--muted); font-size: 1rem; margin-bottom: 0; }
.hx-card p + p { margin-top: 0.9rem; }
.hx-card .hx-more { margin-top: auto; padding-top: 1.25rem; color: var(--brand-ink); font-weight: 600; font-size: 0.95rem; }
.hx-card .hx-more::after { content: " →"; }
.hx-card--feature { grid-column: span 2; background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, 0.8); }
.hx-section--white .hx-card--feature { background: var(--ink); }
.hx-card--feature h3 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.12; }
.hx-card--feature p { color: rgba(255, 255, 255, 0.76); max-width: 54ch; }
.hx-card--feature .hx-more { color: #ffb4a3; }
.hx-section--dark .hx-card { background: var(--ink-2); border-color: var(--line-dark); }
.hx-section--dark .hx-card:hover { border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
.hx-section--dark .hx-card p { color: var(--muted-dark); }

/* Icons (CSS masks so they stay editable as plain blocks) */
[class*="hx-ico-"]::before {
	content: ""; display: block; width: 46px; height: 46px; margin-bottom: 1.25rem; border-radius: 12px;
	background: var(--brand-soft) center / 24px 24px no-repeat;
}
.hx-card--feature[class*="hx-ico-"]::before,
.hx-section--dark [class*="hx-ico-"]::before { background-color: rgba(228, 71, 43, 0.18); }
.hx-ico-video::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m10 9 5 3-5 3z'/%3E%3C/svg%3E"); }
.hx-ico-phone::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='m10.5 9.5 4 2.5-4 2.5z'/%3E%3C/svg%3E"); }
.hx-ico-stack::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5z'/%3E%3Cpath d='m3 12.5 9 5 9-5'/%3E%3Cpath d='m3 17 9 5 9-5'/%3E%3C/svg%3E"); }
.hx-ico-web::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M3 9h18M7 6.5h.01M10 6.5h.01'/%3E%3C/svg%3E"); }
.hx-ico-spark::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M6 6l2.5 2.5M15.5 15.5 18 18M18 6l-2.5 2.5M8.5 15.5 6 18'/%3E%3C/svg%3E"); }
.hx-ico-target::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E"); }
.hx-ico-check::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v6c0 4.5 3.2 7.6 7.5 9 4.300-1.4 7.5-4.5 7.5-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.hx-ico-chart::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M21 20H3'/%3E%3C/svg%3E"); }
.hx-ico-pen::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='m13.500 6.500 4 4'/%3E%3C/svg%3E"); }
.hx-ico-mic::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5.500 11a6.500 6.500 0 0 0 13 0M12 17.500V21'/%3E%3C/svg%3E"); }
.hx-ico-clock::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.hx-ico-search::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.500'/%3E%3Cpath d='m20 20-4.200-4.200'/%3E%3C/svg%3E"); }
.hx-ico-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='m4 8 8 5.500L20 8'/%3E%3C/svg%3E"); }
.hx-ico-call::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.500 1.500a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.hx-ico-pin::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e4472b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.200 7-11.500a7 7 0 0 0-14 0C5 14.800 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.500' r='2.500'/%3E%3C/svg%3E"); }

/* Steps */
.hx-steps { counter-reset: step; }
.hx-step { counter-increment: step; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.hx-step::before {
	content: counter(step, decimal-leading-zero); display: block; margin-bottom: 0.9rem;
	font: 400 2.4rem/1 var(--font-display); color: var(--brand);
}
.hx-step p { color: var(--muted); font-size: 1rem; margin: 0; }
.hx-section--dark .hx-step { border-color: rgba(255, 255, 255, 0.3); }
.hx-section--dark .hx-step p { color: var(--muted-dark); }

/* Split (text + visual) */
.hx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hx-split > * { min-width: 0; }
.hx-split p { color: var(--muted); }
.hx-section--dark .hx-split p { color: var(--muted-dark); }
.hx-section--dark .hx-split p.hx-eyebrow { color: #ffb4a3; }

.hx-ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.8rem; }
.hx-ticks li { position: relative; padding-left: 2rem; }
.hx-ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
	background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.500 4 4 8-9'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.hx-ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 2rem; }

/* Decorative video wall */
.hx-wall {
	display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 78px; gap: 10px;
	grid-template-areas: "a a a b b c" "a a a b b d" "e e f b b g" "h h f i i i" "h h f i i i";
}
.hx-wall span {
	position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(135deg, var(--a, #39404f), var(--b, #171a21));
}
.hx-wall span::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%);
	border-left: 11px solid rgba(255, 255, 255, 0.85); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.hx-wall .a { grid-area: a; --a: #e4472b; --b: #7a1f10; }
.hx-wall .b { grid-area: b; --a: #3b5bdb; --b: #1b2559; }
.hx-wall .c { grid-area: c; }
.hx-wall .d { grid-area: d; --a: #f0a52b; --b: #7a4a0c; }
.hx-wall .e { grid-area: e; --a: #1f9d83; --b: #0b3d34; }
.hx-wall .f { grid-area: f; --a: #7b4bd6; --b: #2a1857; }
.hx-wall .g { grid-area: g; }
.hx-wall .h { grid-area: h; --a: #f0a52b; --b: #7a4a0c; }
.hx-wall .i { grid-area: i; --a: #e4472b; --b: #3a2a2a; }

/* Browser mock */
.hx-browser { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.hx-browser__bar { display: flex; gap: 6px; padding: 12px 14px; background: #f1eee8; border-bottom: 1px solid var(--line); }
.hx-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d3cec3; }
.hx-browser__body { display: grid; gap: 12px; padding: 20px; }
.hx-browser__body b { display: block; height: 12px; border-radius: 6px; background: #ebe7df; }
.hx-browser__body .h { height: 120px; border-radius: 10px; background: linear-gradient(135deg, #101216, #3a2a2a 60%, #e4472b); }
.hx-browser__body .r { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hx-browser__body .r b { height: 64px; border-radius: 10px; }
.hx-browser__body .w60 { width: 60%; }
.hx-browser__body .w40 { width: 40%; background: var(--brand); opacity: 0.85; }

/* FAQ */
.hx-faq { max-width: 860px; display: grid; gap: 0.75rem; }
.hx-section > .hx-faq { max-width: 860px; }
.wp-block-details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; }
.hx-section--white .wp-block-details { background: var(--paper); }
.wp-block-details summary { position: relative; padding: 1.15rem 3.25rem 1.15rem 1.4rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: ""; position: absolute; right: 1.4rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.45rem;
	border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform 0.2s ease, margin 0.2s ease;
}
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -0.15rem; }
.wp-block-details > :not(summary) { padding: 0 1.4rem; color: var(--muted); }
.wp-block-details > :last-child { padding-bottom: 1.25rem; margin-bottom: 0; }

/* Prose (plain pages + posts) */
.hx-prose { width: min(100% - 2.5rem, 760px); margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) 0; }
.hx-prose > * { width: auto; }
.hx-prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 2em; }
.hx-prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.hx-prose li { margin-bottom: 0.5em; }
.hx-prose img { border-radius: var(--radius); }
.hx-prose blockquote { margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--brand); font: 400 1.5rem/1.35 var(--font-display); color: var(--ink); }
.hx-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.98rem; }
.hx-prose th, .hx-prose td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.hx-prose th { color: var(--ink); }
.hx-table-wrap, .wp-block-table { overflow-x: auto; }

/* Blog */
.hx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.hx-post { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hx-post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hx-post__thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink), #3a2a2a 55%, var(--brand)); display: flex; align-items: flex-end; padding: 1rem; color: rgba(255, 255, 255, 0.9); font: 400 1.5rem/1.1 var(--font-display); }
.hx-post__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-post__thumb--img { position: relative; padding: 0; }
.hx-post__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.hx-post__meta { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.hx-post h3 { margin-bottom: 0.5rem; }
.hx-post h3 a { color: inherit; text-decoration: none; }
.hx-post h3 a::after { content: ""; position: absolute; inset: 0; }
.hx-post p { color: var(--muted); font-size: 0.98rem; margin: 0; }
.hx-article__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.25rem; font-size: 0.92rem; color: var(--muted-dark); }
.hx-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.hx-pagination .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; }
.hx-pagination .current { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Contact */
.hx-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hx-contact__list { display: grid; gap: 1rem; }
.hx-contact__item { padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.hx-contact__item::before { margin-bottom: 0.9rem; }
.hx-contact__item h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.hx-contact__item p { margin: 0; color: var(--muted); }
.hx-contact__item a { color: var(--ink); font-weight: 600; text-decoration: none; }
.hx-contact__item a:hover { color: var(--brand-ink); }
.hx-form { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hx-form h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 form p { margin: 0; }
.hx-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wpcf7 label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%; margin-top: 0.4rem; padding: 0.8rem 0.95rem; min-height: 48px;
	background: var(--paper); border: 1px solid #d8d2c5; border-radius: var(--radius-sm);
	font: 400 1rem/1.4 var(--font-body); color: var(--ink);
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.wpcf7-not-valid-tip { margin-top: 0.35rem; font-size: 0.86rem; color: #b3261e; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius-sm); border-width: 1px; font-size: 0.95rem; }
.hx-form__note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.hx-hp { position: absolute !important; left: -9999px !important; }

/* CTA band + footer */
.hx-cta { position: relative; isolation: isolate; padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--ink); color: rgba(255, 255, 255, 0.82); overflow: hidden; }
.hx-cta::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(60% 120% at 100% 0%, rgba(228, 71, 43, 0.4) 0%, rgba(228, 71, 43, 0) 60%);
}
.hx-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.hx-cta h2 { color: var(--white); max-width: 18ch; margin-bottom: 0.35em; }
.hx-cta p { margin: 0; max-width: 52ch; }
.hx-cta__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hx-footer { background: #0b0c0f; color: var(--muted-dark); font-size: 0.97rem; }
.hx-footer a { color: var(--muted-dark); text-decoration: none; }
.hx-footer a:hover { color: var(--white); }
.hx-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line-dark); }
.hx-footer .hx-logo { color: var(--white); margin-bottom: 1rem; }
.hx-footer h2 { font: 600 0.8rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 1.1rem; }
.hx-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.hx-footer address { font-style: normal; display: grid; gap: 0.6rem; }
.hx-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line-dark); font-size: 0.88rem; }
.hx-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* 404 */
.hx-404 { padding: clamp(4rem, 10vw, 8rem) 0; text-align: center; }
.hx-404 p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* Reveal on scroll */
.hx-js .hx-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hx-js .hx-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
	.hx-grid, .hx-grid--4, .hx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hx-footer__top { grid-template-columns: 1fr 1fr; }
	.hx-header__cta { display: none; }
}

@media (max-width: 900px) {
	.hx-burger { display: block; }
	.hx-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); margin: 0; padding: 1.25rem; background: var(--paper); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.hx-nav-open .hx-nav { opacity: 1; visibility: visible; transform: none; }
	.hx-nav-open { overflow: hidden; }
	.hx-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.hx-nav a,
	.hx-has-hero .hx-header:not(.is-stuck) .hx-nav > ul > li > a { color: var(--ink); padding: 0.95rem 0.5rem; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
	.hx-nav .sub-menu { position: static; opacity: 1; visibility: inherit; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 0 1rem; min-width: 0; }
	.hx-nav .sub-menu a { font-size: 1rem; color: var(--muted); }
	.hx-nav .menu-item-has-children > a::after { display: none; }
	.hx-nav-open .hx-header,
	.hx-has-hero.hx-nav-open .hx-header { background: var(--paper); border-color: var(--line); }
	.hx-has-hero.hx-nav-open .hx-header .hx-logo,
	.hx-has-hero.hx-nav-open .hx-header .hx-burger { color: var(--ink); border-color: rgba(16, 18, 22, 0.2); }
	.hx-split, .hx-contact { grid-template-columns: 1fr; }
	.hx-card--feature { grid-column: auto; }
}

@media (max-width: 680px) {
	body { font-size: 1rem; }
	.hx-grid, .hx-grid--2, .hx-grid--4, .hx-posts, .hx-ticks--2, .hx-form-row { grid-template-columns: 1fr; }
	.hx-footer__top { grid-template-columns: 1fr; }
	.hx-hero { padding-top: 7.5rem; }
	.hx-hero__strip { gap: 0.5rem 1.1rem; font-size: 0.76rem; }
	.hx-wall { grid-auto-rows: 56px; gap: 8px; }
	.hx-cta__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 782px) { .admin-bar .hx-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.hx-js .hx-reveal { opacity: 1; transform: none; }
}

/* Images inside sections */
.wp-block-image { margin: 0; }
.hx-split .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hx-section--white .hx-split .wp-block-image img,
.hx-section .hx-split .wp-block-image img { box-shadow: var(--shadow); }
.hx-section > .wp-block-buttons { margin-top: 2.5rem; }
