/*
Theme Name: Hipersign ERP
Theme URI: https://www.hipersignerp.com
Author: Hipersign ERP
Description: Custom bilingual (English / Arabic RTL) block theme for the Hipersign ERP website. Includes section patterns for industry pages, a Polylang-aware header and footer, and a floating WhatsApp button.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hipersign
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(html[lang^="ar"]) body { font-family: var(--wp--preset--font-family--plex-arabic); }
html[lang^="ar"] :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0 !important; line-height: 1.3 !important; font-weight: 700; }
html[lang^="ar"] p, html[lang^="ar"] li { line-height: 1.85; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #0A6CD6; outline-offset: 2px; }
.screen-reader-text:focus { clip: auto !important; }
mark.hs-grad, .hs-grad {
	background: linear-gradient(90deg, #4A1FB8, #0A6CD6) !important;
	-webkit-background-clip: text !important; background-clip: text !important;
	color: transparent !important; padding: 0;
}
html[dir="rtl"] mark.hs-grad, html[dir="rtl"] .hs-grad { background: linear-gradient(270deg, #4A1FB8, #0A6CD6) !important; -webkit-background-clip: text !important; background-clip: text !important; }

/* ---------- Sections ---------- */
.hs-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.hs-section.hs-tight { padding-top: 56px; padding-bottom: 56px; }
.hs-ground { background: #F5F6FC; border-top: 1px solid #E3E5F2; border-bottom: 1px solid #E3E5F2; }
.hs-dark { background: #14123A; color: #fff; }
.hs-dark :is(h1, h2, h3, h4) { color: #fff; }
.hs-dark .hs-lead { color: #C9CBE6; }
.hs-dark .hs-eyebrow { color: #A99CF7; }
.hs-section > * + *, .hs-hero > * + * { margin-block-start: 44px; }
.hs-caps > * + * { margin-block-start: 88px; }
.hs-stack { display: flex; flex-direction: column; gap: 16px; }
.hs-intro > * { max-width: 760px; }
.hs-intro { gap: 16px !important; }
.hs-eyebrow { font-size: 13px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4A2BC2; margin: 0; }
html[lang^="ar"] .hs-eyebrow { letter-spacing: 0; font-size: 15px !important; text-transform: none; }
.hs-lead { font-size: 18px; line-height: 1.6; color: #4A4E6A; }
html[lang^="ar"] .hs-lead { line-height: 1.85; }
.hs-muted { color: #4A4E6A; }
.hs-breadcrumb { font-size: 14px; color: #5A5E7A; padding-top: 28px; margin: 0; }
.hs-breadcrumb a { color: #5A5E7A; }

/* ---------- Hero ---------- */
.hs-hero { background: #F5F6FC; border-bottom: 1px solid #E3E5F2; padding-top: 72px; padding-bottom: 88px; }
.hs-hero.hs-dark { background: #14123A; border-bottom: 0; }
.hs-hero h1 { margin: 0; }
.hs-hero .wp-block-columns { gap: 56px; align-items: center; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; margin: 0; }
.hs-chips li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #DADDF0; font-size: 14px; font-weight: 600; margin: 0; line-height: 1.4; }
.hs-dark .hs-chips li { background: #1F1B52; border-color: #2F2A6E; color: #D9DBF0; }
.hs-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0 !important; margin: 0; font-size: 14px; font-weight: 600; color: #3A3E5C; }
.hs-checks li { position: relative; padding-inline-start: 26px; margin: 0; }
.hs-checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 18px; height: 18px; background: no-repeat center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6CD6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* ---------- Buttons ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; box-sizing: border-box; transition: filter .15s, border-color .15s; }
.wp-block-button__link:hover { filter: brightness(1.08); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff !important; color: #14123A !important; border: 1.5px solid #CDD0E6 !important; padding: 12px 21px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: #4A2BC2 !important; filter: none; }
.hs-dark .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: #4A4785 !important; }
.wp-block-button.is-style-light > .wp-block-button__link { background: #fff !important; color: #14123A !important; }
.wp-block-button.is-style-whatsapp > .wp-block-button__link { background: #128C4A !important; color: #fff !important; }

/* ---------- Cards & grids ---------- */
.hs-card { background: #fff; border: 1px solid #E3E5F2; border-radius: 16px; padding: 26px; }
.hs-card > * { margin: 0; }
.hs-card > * + * { margin-block-start: 12px; }
.hs-card h3, .hs-card h4 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.hs-card p { font-size: 15px; line-height: 1.55; color: #4A4E6A; }
html[lang^="ar"] .hs-card p { font-size: 16px; line-height: 1.75; }
.hs-card .hs-card-link { font-weight: 700; color: #3B1FA8; }
.hs-card .hs-card-link a { text-decoration: none; }
a.hs-card, .hs-card.is-link { transition: border-color .15s, box-shadow .15s, transform .15s; }
.hs-card:has(.hs-card-link a):hover { border-color: #B9B0F0; box-shadow: 0 20px 40px -24px rgba(32,20,110,.3); transform: translateY(-2px); }
.hs-icon { width: 52px; height: 52px; border-radius: 14px; background: #EEEAFD; color: #4A2BC2; display: grid; place-items: center; }
.hs-icon.is-blue { background: #E5F0FD; color: #0A5BB5; }
.hs-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-problem .hs-label-bad { color: #9A3412; font-weight: 700; font-size: 15px; }
.hs-problem .hs-label-good { color: #166534; font-weight: 700; font-size: 15px; border-top: 1px solid #E3E5F2; padding-top: 14px; }
.hs-problem h3 { font-size: 18px; line-height: 1.4; }

/* ---------- Stats ---------- */
.hs-stat { border-inline-start: 3px solid #4A2BC2; padding: 6px 24px; }
.hs-stat > * { margin: 0; }
.hs-stat .hs-stat-num { font-size: 34px; font-weight: 800; line-height: 1.2; color: #14123A; }
.hs-stat .hs-stat-label { font-size: 15px; color: #4A4E6A; }
.hs-logos { border: 1.5px dashed #CDD0E6; border-radius: 14px; padding: 22px; color: #6A6E88; font-size: 14px; font-weight: 600; text-align: center; }

/* ---------- Steps / workflow ---------- */
.hs-stages { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: hs; }
.hs-stages li { counter-increment: hs; padding: 12px 16px; border-radius: 12px; background: #1F1B52; border: 1px solid #2F2A6E; font-weight: 600; font-size: 15px; color: #fff; margin: 0; }
.hs-stages li::before { content: counter(hs) " · "; color: #8FC1FF; }
.hs-stages li.is-current, .hs-stages li:has(strong) { background: #2C3FC0; border-color: #4A5CE0; }
.hs-stages li strong { font-weight: 700; }
.hs-lifecycle { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: lc; }
.hs-lifecycle li { counter-increment: lc; background: #1F1B52; border: 1px solid #2F2A6E; border-radius: 16px; padding: 22px; color: #B9BBDA; font-size: 14px; line-height: 1.5; margin: 0; }
.hs-lifecycle li::before { content: counter(lc, decimal-leading-zero); display: block; font-size: 13px; font-weight: 800; color: #8FC1FF; margin-bottom: 8px; }
.hs-lifecycle li strong { display: block; color: #fff; font-size: 18px; margin-bottom: 6px; }
.hs-steps { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: st; }
.hs-steps li { counter-increment: st; border-top: 3px solid #4A2BC2; padding-top: 18px; color: #4A4E6A; font-size: 15px; line-height: 1.55; margin: 0; }
.hs-steps li:nth-child(2) { border-color: #3B47C8; } .hs-steps li:nth-child(3) { border-color: #2A5ACF; } .hs-steps li:nth-child(4) { border-color: #1A64D3; } .hs-steps li:nth-child(5) { border-color: #0A6CD6; }
.hs-steps li strong { display: block; color: #14123A; font-size: 19px; margin: 8px 0; }

/* ---------- Feature rows ---------- */
.hs-feature { gap: 56px !important; align-items: center !important; }
.hs-feature-text > * { margin: 0; }
.hs-feature-text > * + * { margin-block-start: 18px; }
.hs-bullets { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; color: #3A3E5C; }
.hs-bullets li { position: relative; padding-inline-start: 18px; margin: 0; }
.hs-bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: #0A6CD6; }

/* ---------- UI mocks ---------- */
.hs-mock { background: #fff; border: 1px solid #DADDF0; border-radius: 16px; overflow: hidden; font-size: 13px; box-shadow: 0 20px 40px -24px rgba(32,20,110,.3); color: #14123A; }
.hs-mock.is-hero { border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(32,20,110,.35); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.hs-mock.is-pad { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hs-mock-title { padding: 14px 16px; font-weight: 800; display: flex; justify-content: space-between; gap: 10px; }
.hs-mock.is-pad .hs-mock-title, .hs-mock.is-hero .hs-mock-title { padding: 0; }
.hs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.hs-kpi { background: #FAFBFE; border: 1px solid #E3E5F2; border-radius: 12px; padding: 12px; }
.hs-kpi small { display: block; font-size: 11px; color: #5A5E7A; }
.hs-kpi b { font-size: 22px; font-weight: 800; }
.hs-table { width: 100%; border-collapse: collapse; }
.hs-table th { background: #F1F2FA; font-weight: 700; color: #3A3E5C; text-align: start; padding: 9px 14px; }
.hs-table td { padding: 9px 14px; border-top: 1px solid #EEF0F7; text-align: start; }
.hs-table .num { text-align: end; }
.hs-table tr.total td { background: #F5F3FF; font-weight: 800; }
.hs-mock .hs-scroll { overflow-x: auto; }
.hs-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.hs-tag.ok { background: #DCFCE7; color: #166534; } .hs-tag.info { background: #DBEAFE; color: #1E40AF; }
.hs-tag.warn { background: #FEF3C7; color: #92400E; } .hs-tag.alt { background: #EDE9FE; color: #5B21B6; }
.hs-tag.bad { background: #FEE2E2; color: #991B1B; } .hs-tag.risk { background: #FFEDD5; color: #9A3412; } .hs-tag.neutral { background: #F1F2FA; color: #3A3E5C; }
.hs-bar { display: block; height: 8px; background: #E6E8F3; border-radius: 4px; }
.hs-bar > span { display: block; height: 8px; border-radius: 4px; background: #0A6CD6; }
.hs-bar > span.ok { background: #15803D; } .hs-bar > span.alt { background: #4A2BC2; } .hs-bar > span.bad { background: #C2410C; }
.hs-progress { display: grid; grid-template-columns: 160px 1fr 72px; gap: 10px; align-items: center; }
.hs-flow { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 16px; border-top: 1px solid #EEF0F7; font-size: 11px; font-weight: 700; color: #3A3E5C; }
.hs-flow span { background: #F1F2FA; border-radius: 999px; padding: 3px 8px; }
.hs-flow span:not(:last-child)::after { content: "→"; margin-inline-start: 10px; color: #8A8EA8; }
html[dir="rtl"] .hs-flow span:not(:last-child)::after { content: "←"; }
.hs-mock-foot { padding: 12px 16px; border-top: 1px solid #EEF0F7; font-size: 12px; color: #5A5E7A; }

/* ---------- Quote, partner band, CTA ---------- */
.hs-quote { max-width: 860px; margin-inline: auto !important; text-align: center; border: 0 !important; padding: 0 !important; }
.hs-quote p { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; font-weight: 600; color: #14123A; }
.hs-quote cite { font-style: normal; color: #4A4E6A; font-size: 15px; }
.hs-band { border-radius: 24px; padding: clamp(28px, 5vw, 64px) !important; color: #fff; }
.hs-band :is(h2, h3, p) { color: #fff; }
.hs-band .hs-eyebrow { color: #D4CCFF; }
.hs-band .hs-lead { color: #E3E0FF; }
.hs-band .hs-chips li { background: rgba(255,255,255,.14); border: 0; color: #fff; }
.hs-band .hs-form-card { background: #fff; color: #14123A; border-radius: 18px; padding: 28px; }
.hs-contact-lines a { color: inherit; text-decoration: none; font-weight: 600; }
.hs-contact-lines p { margin: 0; }

/* ---------- Header ---------- */
.hs-topbar { background: #14123A; color: #D9DBF0; font-size: 13px; }
.hs-topbar-inner { max-width: 1240px; margin: 0 auto; padding: 9px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.hs-topbar a { color: #fff; text-decoration: none; }
.hs-topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.hs-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid #E3E5F2; }
.admin-bar .hs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hs-header { top: 0; position: relative; } }
.hs-header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hs-header .wp-block-site-logo img, .hs-logo img { height: 46px; width: auto; display: block; }
.hs-nav { display: flex; align-items: center; gap: 28px; }
.hs-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.hs-nav li { position: relative; }
.hs-nav a { color: #14123A; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; display: inline-block;  white-space: nowrap; }
.hs-nav a:hover, .hs-nav .current-menu-item > a, .hs-nav .current-menu-ancestor > a { color: #3B1FA8; }
.hs-nav .sub-menu { display: none; position: absolute; inset-inline-start: -16px; top: 100%; min-width: 260px; background: #fff; border: 1px solid #E3E5F2; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(32,20,110,.3); padding: 10px; flex-direction: column; gap: 0; }
.hs-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.hs-nav .sub-menu a:hover { background: #F5F6FC; }
.hs-nav li:hover > .sub-menu, .hs-nav li:focus-within > .sub-menu { display: flex; }
.hs-actions { display: flex; align-items: center; gap: 12px; }
.hs-lang { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #CDD0E6; color: #14123A !important; text-decoration: none; font-weight: 600; font-size: 15px; }
.hs-lang:hover { border-color: #4A2BC2; }
.hs-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; background: linear-gradient(90deg,#4A1FB8,#0A6CD6); color: #fff !important; }
html[dir="rtl"] .hs-btn { background: linear-gradient(270deg,#4A1FB8,#0A6CD6); }
.hs-btn:hover { filter: brightness(1.08); }
.hs-menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1.5px solid #CDD0E6; border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.hs-menu-toggle svg { width: 22px; height: 22px; stroke: #14123A; stroke-width: 2; fill: none; stroke-linecap: round; }
@media (max-width: 1080px) {
	.hs-menu-toggle { display: inline-flex; }
	.hs-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid #E3E5F2; padding: 12px 24px 20px; flex-direction: column; align-items: stretch; }
	.hs-header.is-open .hs-nav { display: flex; }
	.hs-nav ul { flex-direction: column; gap: 0; }
	.hs-nav a { padding: 12px 0; display: block; border-bottom: 1px solid #F1F2FA; }
	.hs-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.hs-actions .hs-btn { display: none; }
}
@media (max-width: 560px) { .hs-topbar-inner > span:first-child { display: none; } }

/* ---------- Footer ---------- */
.hs-footer { background: #0F0D2E; color: #B9BBDA; font-size: 14px; }
.hs-footer-inner { max-width: 1240px; margin: 0 auto; padding: 64px 24px 32px; }
.hs-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.hs-footer h2 { font-size: 15px; color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.hs-footer .hs-footer-brand { font-size: 22px; font-weight: 800; color: #fff; display: block; margin-bottom: 12px; }
.hs-footer a { color: #B9BBDA; text-decoration: none; }
.hs-footer a:hover { color: #fff; }
.hs-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hs-footer-bottom { border-top: 1px solid #2A2758; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }
.hs-footer-bottom ul { flex-direction: row; gap: 18px; }

/* ---------- Floating WhatsApp ---------- */
.hs-wa { position: fixed; right: 20px; left: auto; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #128C4A; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); }
.hs-wa svg { width: 30px; height: 30px; fill: #fff; }
.hs-wa:hover { filter: brightness(1.1); }

/* ---------- LTR islands inside RTL ---------- */
.hs-ltr { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .hs-contact-lines .hs-ltr, html[dir="rtl"] .hs-footer .hs-ltr { display: inline-block; }

/* ---------- Generic content pages ---------- */
.hs-page-title { padding-top: 64px; padding-bottom: 24px; }
.entry-content > p, .entry-content > ul { max-width: 760px; }
@media (max-width: 781px) { .hs-progress { grid-template-columns: 120px 1fr 44px; } .hs-hero { padding-top: 48px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.hs-footer-legal{display:flex;flex-wrap:wrap;gap:18px;align-items:center}.hs-footer-legal ul{flex-direction:row;gap:18px}

/* Readability on dark / brand backgrounds */
.hs-band .hs-form-card, .hs-band .hs-form-card :is(p, label, span) { color: #14123A; }
.hs-band .hs-form-card .hsl-note { color: #5A5E7A; }
.hs-band .hs-form-card .hsl-status.is-success { color: #166534; }
.hs-band .hs-form-card .hsl-status.is-error, .hs-band .hs-form-card .hsl-error { color: #991B1B; }
.hs-band mark.hs-grad, .hs-dark mark.hs-grad { background: linear-gradient(90deg, #C4B5FD, #93C5FD) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.hs-band .wp-block-columns { gap: 44px; }
.hs-band .wp-block-column > * + * { margin-block-start: 18px; }
.hs-hero .wp-block-column > * + * { margin-block-start: 24px; }
.hs-hero .hs-breadcrumb { padding-top: 0; }
.hs-related-title { font-size: 22px !important; }
.hs-stat .hs-stat-num { font-size: clamp(26px, 2.6vw, 34px); }
.wp-block-details summary { font-size: 18px; font-weight: 700; cursor: pointer; }
.wp-block-details[open] summary { margin-bottom: 12px; }
.wp-block-details p { color: #4A4E6A; margin: 0; }
.wp-block-details { width: 100%; box-sizing: border-box; }
.is-layout-flex.is-vertical > .wp-block-details { align-self: stretch; }

/* ---------- Product preview mocks (industry pages) ---------- */
.hs-pm { width: 100%; color: #14123A; }
.hs-pm > * { width: 100%; box-sizing: border-box; max-width: 100%; }
.hs-pm .card { background: #fff; border: 1px solid #E3E5F2; border-radius: 16px; }
.hs-pm .mock { overflow: hidden; font-size: 13px; box-shadow: 0 20px 40px -24px rgba(32,20,110,.3); }
html[lang^="ar"] .hs-pm .mock { font-size: 14px; }
.hs-pm .th { display: grid; gap: 8px; padding: 9px 14px; background: #F1F2FA; font-weight: 700; color: #3A3E5C; }
.hs-pm .row { display: grid; gap: 8px; padding: 9px 14px; align-items: center; border-top: 1px solid #EEF0F7; }
.hs-pm .tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
html[lang^="ar"] .hs-pm .tag { font-size: 12px; }
.hs-pm .bar { display: block; height: 8px; background: #E6E8F3; border-radius: 4px; }
.hs-pm .bar span { display: block; height: 8px; border-radius: 4px; background: #0A6CD6; }
.hs-pm .ltr { direction: ltr; unicode-bidi: isolate; }
.hs-pm [role="img"] { flex: none !important; }
.hs-dark .hs-pm { color: #14123A; }
@media (max-width: 600px) { .hs-pm .th, .hs-pm .row { font-size: 12px; padding: 8px 10px; } }

/* header: keep the call-to-action on one line and let the menu shrink gracefully */
.hs-header .wp-block-button__link, .hs-header .hs-cta, .hs-header-inner .wp-element-button { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) { .hs-nav, .hs-nav ul { gap: 18px; } .hs-nav a { font-size: 14px; } }
.hs-header .hs-btn { white-space: nowrap; }

/* sticky header: compact state after scrolling */
.hs-header { transition: box-shadow .2s ease; }
.hs-header-inner { transition: padding .2s ease; }
.hs-header .wp-block-site-logo img, .hs-logo img { transition: height .2s ease; }
.hs-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(32,20,110,.35); }
.hs-header.is-scrolled .hs-header-inner { padding-top: 6px; padding-bottom: 6px; }
.hs-header.is-scrolled .hs-logo img, .hs-header.is-scrolled .wp-block-site-logo img { height: 36px; }
.hs-header.is-scrolled .hs-btn { min-height: 40px; }
@media (prefers-reduced-motion: reduce) { .hs-header, .hs-header-inner, .hs-logo img { transition: none; } }

/* make the header truly sticky: the template-part wrapper must not be the sticky container */
header.wp-block-template-part { display: contents; }
