/* Shared building blocks for every hm-* section: containers, buttons, breadcrumb, form. */
[class*="hm-"] { box-sizing: border-box; }

/* Widths belong to Blocksy (Customizer > General > Layout): both classes have exactly the width and maximum of Blocksy's own
 * container, so every section lines up with the header and footer. */
.hm-container,
.hm-container-fluid { margin-inline: auto; padding-inline: 0; width: var(--theme-container-width, 90%); max-width: var(--theme-normal-container-max-width, 1290px); }

.hm-breadcrumb a { color: inherit; text-decoration: none; }
/* One breadcrumb everywhere, built by Blocksy (Customizer > General > Breadcrumbs) and sized here to the reference: page sections wrap it in .hm-breadcrumb, single posts and projects show it in Blocksy's hero. */
.hm-breadcrumb .ct-breadcrumbs, .hero-section .ct-breadcrumbs { margin: 0; font: 400 14px / 1.6 var(--hm-font-body, inherit); letter-spacing: normal; text-transform: none; color: inherit; }
.hero-section .ct-breadcrumbs { color: rgba(0, 0, 0, .55); }
.ct-breadcrumbs a { color: inherit; text-decoration: none; }
.ct-breadcrumbs a:hover { color: var(--hm-c-primary, var(--theme-palette-color-1)); }
.ct-breadcrumbs .ct-home-icon { width: 15px; height: 15px; fill: currentColor; vertical-align: -.1em; }

/* Buttons: core Buttons block with the hm-btn class on the button. */
.hm-btn .wp-block-button__link,
.hm-btn.wp-block-button__link {
	display: inline-flex; align-items: center; gap: .6em;
	min-height: calc(36 * var(--hm-m)); padding: 0 calc(8.75 * var(--hm-m));
	border: 1px solid var(--hm-c-ink); border-radius: calc(5.83 * var(--hm-m));
	background: var(--hm-c-paper); color: var(--hm-c-ink);
	font: 400 calc(13 * var(--hm-m)) / 1.3 var(--hm-font-body); text-transform: uppercase; text-decoration: none;
	transition: background-color var(--hm-t) var(--hm-ease), color var(--hm-t) var(--hm-ease), border-color var(--hm-t) var(--hm-ease);
}
.hm-btn .wp-block-button__link::after {
	content: ""; width: .7em; height: .7em; background: currentColor;
	-webkit-mask: var(--hm-icon-chevron) center / contain no-repeat;
	        mask: var(--hm-icon-chevron) center / contain no-repeat;
	transition: transform var(--hm-t) var(--hm-ease);
}
.hm-btn .wp-block-button__link:hover { background: var(--hm-c-ink); color: var(--hm-c-paper); }
.hm-btn .wp-block-button__link:hover::after { transform: translateX(.3em); }
.hm-btn .wp-block-button__link:focus-visible { outline: 2px solid var(--hm-c-primary); outline-offset: 2px; }

/* Contact form (shortcode [hm_contact_form]). */
.hm-form { display: grid; gap: calc(35 * var(--hm-m)); }
.hm-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(40 * var(--hm-m)) calc(18 * var(--hm-m)); }
.hm-form input[type="text"], .hm-form input[type="email"], .hm-form input[type="tel"] {
	width: 100%; min-height: 44px; padding: calc(8.75 * var(--hm-m)) 0; border: 0; border-bottom: 1px solid var(--hm-c-ink); border-radius: 0;
	background: transparent; color: var(--hm-c-ink); font: 400 var(--hm-fs-md) / 1.5 var(--hm-font-body);
}
.hm-form__field label { display: block; font-size: var(--hm-fs-sm); }
.hm-form input:focus-visible { outline: 2px solid var(--hm-c-primary); outline-offset: 2px; }
.hm-form__actions { display: flex; align-items: flex-end; justify-content: flex-start; min-height: calc(126 * var(--hm-m)); }
.hm-form__submit {
	min-height: 44px; padding: 0 calc(8.75 * var(--hm-m)); border: 1px solid var(--hm-c-ink); border-radius: calc(5.83 * var(--hm-m));
	background: var(--hm-c-paper); color: var(--hm-c-ink); font: 400 calc(13 * var(--hm-m)) / 1.3 var(--hm-font-body); text-transform: uppercase; cursor: pointer;
	transition: background-color var(--hm-t) var(--hm-ease), color var(--hm-t) var(--hm-ease);
}
.hm-form__submit { display: inline-flex; align-items: center; gap: .6em; }
.hm-form__submit::after { content: ""; width: .8em; height: .8em; background: currentColor; -webkit-mask: var(--hm-icon-arrow-ur) center / contain no-repeat; mask: var(--hm-icon-arrow-ur) center / contain no-repeat; }
.hm-form__submit:hover { background: var(--hm-c-ink); color: var(--hm-c-paper); }
.hm-form__submit[disabled] { opacity: .6; cursor: progress; }
.hm-form__message:empty { display: none; }
.hm-form__message { margin: 0; font-size: calc(14 * var(--hm-m)); }
.hm-form__message.is-error { color: #b32d2e; }
.hm-form__download { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }

@container hm (min-width: 1200px) {
	.hm-btn .wp-block-button__link,
	.hm-btn.wp-block-button__link { min-height: calc(46 * var(--hm-u)); padding: 0 calc(24 * var(--hm-u)); border-radius: calc(8 * var(--hm-u)); font-size: var(--hm-fs-sm); }
	.hm-form { gap: calc(52 * var(--hm-u)); }
	.hm-form__grid { gap: calc(53 * var(--hm-u)) calc(24 * var(--hm-u)); }
	.hm-form input[type="text"], .hm-form input[type="email"], .hm-form input[type="tel"] { padding: calc(11 * var(--hm-u)) 0; font-size: var(--hm-fs-md); line-height: 1.5; }
	.hm-form__actions { align-items: center; justify-content: flex-end; min-height: calc(104 * var(--hm-u)); }
	.hm-form__submit { min-height: max(44px, calc(46 * var(--hm-u))); padding: 0 calc(24 * var(--hm-u)); border-radius: calc(8 * var(--hm-u)); font-size: var(--hm-fs-sm); }
	.hm-form__message { font-size: var(--hm-fs-sm); }
}

@media (prefers-reduced-motion: reduce) {
	[class*="hm-"], [class*="hm-"]::before, [class*="hm-"]::after { animation: none !important; transition-duration: .001ms !important; }
}

/* Endless marquee (hm-ui.js clones the items and sets --hm-loop). */
.hm-marquee { --hm-marquee-duration: calc(var(--hm-marquee-duration-n, 40) * 1s); }
.hm-marquee-run { animation: hm-marquee var(--hm-marquee-duration, 40s) linear infinite; will-change: translate; }
.hm-marquee[data-reverse="1"] .hm-marquee-run, .hm-marquee-run.hm-marquee[data-reverse="1"] { animation-direction: reverse; }
@keyframes hm-marquee { from { translate: 0 0; } to { translate: calc(var(--hm-loop) * -1) 0; } }

.hm-form__field { margin: 0; }


/* Legacy shell: pages that open with a hero handle the header offset themselves (hero padding-top). */
.hm-page:has(> .hm-hero:first-child) { --normal-main-pt: 0px; }

/* Ghost button (outline on photos). */
.hm-btn--ghost .wp-block-button__link { background: rgba(0, 0, 0, .2); border-color: #fff; color: #fff; }
.hm-btn--ghost .wp-block-button__link:hover { background: #fff; color: #000; }

/* Carousel: scroll-snap track; hm-ui.js adds arrows, dots and autoplay. Columns come from --hm-cols. */
.hm-carousel { --hm-cols: var(--hm-cols-m, 1); --hm-gap: calc(var(--hm-gap-m, 16) * var(--hm-m)); display: flex; flex-wrap: nowrap; gap: var(--hm-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hm-carousel::-webkit-scrollbar { display: none; }
@container hm (min-width: 768px) { .hm-carousel { --hm-cols: var(--hm-cols-t, 2); } }
@container hm (min-width: 1024px) { .hm-carousel { --hm-cols: var(--hm-cols-d, 3); } }
@container hm (min-width: 1200px) { .hm-carousel { --hm-gap: calc(var(--hm-gap-d, 24) * var(--hm-u)); } }
.hm-carousel:not(.hm-swiper) > * { flex: 0 0 calc((100% - (var(--hm-cols) - 1) * var(--hm-gap)) / var(--hm-cols)); min-width: 0; scroll-snap-align: start; }
.hm-carousel.hm-swiper { display: block; width: 100%; overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
.hm-swiper .swiper-slide { height: auto; min-width: 0; }
.hm-carousel-wrap { position: relative; display: flex; flex-wrap: wrap; justify-content: center; column-gap: calc(8 * var(--hm-m)); }
.hm-carousel-wrap > .hm-carousel { flex: 0 0 100%; min-width: 0; }
.hm-carousel__dots { display: flex; flex: 0 0 100%; flex-wrap: wrap; justify-content: center; }
.hm-carousel__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--hm-c-primary); cursor: pointer; }
:is(.hm-solutions, .hm-hover, .hm-featured, .hm-pgal) .hm-carousel__dot { width: 24px; }
.hm-carousel__dot::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.hm-carousel__dot[aria-current="true"]::before { background: currentColor; }
.hm-carousel__dot:focus-visible { outline: 2px solid var(--hm-c-ink); outline-offset: 2px; }
.hm-carousel__arrow { display: inline-flex; align-items: center; justify-content: center; width: calc(41 * var(--hm-m)); height: calc(41 * var(--hm-m)); min-width: 44px; min-height: 44px; margin-top: calc(23 * var(--hm-m)); padding: 0; border: 1px solid var(--hm-c-ink); border-radius: 50%; background: #fff; color: var(--hm-c-ink); cursor: pointer; transition: opacity var(--hm-t) var(--hm-ease), background-color var(--hm-t) var(--hm-ease), color var(--hm-t) var(--hm-ease); }
.hm-carousel__arrow svg { width: 46%; height: auto; }
.hm-carousel__arrow[hidden], .hm-carousel__dots[hidden] { display: none !important; }
.hm-carousel__arrow:hover { background: var(--hm-c-primary); border-color: var(--hm-c-primary); color: #fff; }
.hm-carousel__arrow[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.hm-carousel__arrow:focus-visible { outline: 2px solid var(--hm-c-primary); outline-offset: 2px; }
@container hm (min-width: 1200px) {
	:is(.hm-solutions, .hm-hover, .hm-featured, .hm-pgal) .hm-carousel-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
	:is(.hm-solutions, .hm-hover, .hm-featured, .hm-pgal) .hm-carousel-wrap > .hm-carousel { grid-row: 1; grid-column: 1; }
	:is(.hm-solutions, .hm-hover, .hm-featured, .hm-pgal) .hm-carousel__arrow { grid-row: 1 / 2; grid-column: 1 / 2; }
	:is(.hm-solutions, .hm-hover, .hm-featured, .hm-pgal) .hm-carousel__dots { grid-row: 2; grid-column: 1; }
	.hm-carousel__arrow { position: absolute; top: 50%; z-index: 2; width: calc(41 * var(--hm-u)); height: calc(41 * var(--hm-u)); margin: 0; transform: translateY(-50%); }
	/* Fully outside the cards, with a small gap (the 44px minimum touch size included). */
	.hm-carousel__arrow--prev { left: calc(-1 * (max(44px, 41 * var(--hm-u)) + 12px)); }
	.hm-carousel__arrow--next { right: calc(-1 * (max(44px, 41 * var(--hm-u)) + 12px)); }
}
.hm-carousel:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

/* Reveal on scroll (hm-ui.js adds the classes and .is-in); only when scripts run and motion is allowed. */
.hm-js .hm-reveal--up { opacity: 0; transform: translateY(calc(24 * var(--hm-m))); transition: opacity .5s cubic-bezier(.25, 1, .5, 1), transform .5s cubic-bezier(.25, 1, .5, 1); }
.hm-js .hm-reveal--up.is-in { opacity: 1; transform: none; }
.hm-js .hm-reveal--photo { opacity: 0; transform: translateY(45%); transition: opacity .9s var(--hm-ease), transform 1.1s var(--hm-ease); }
.hm-js .hm-reveal--photo.is-in { opacity: 1; transform: none; }
.hm-js .hm-reveal--side { opacity: 0; transform: translateX(-60%); transition: opacity .9s var(--hm-ease), transform 1.1s var(--hm-ease); }
.hm-js [data-reverse="1"] .hm-reveal--side { transform: translateX(60%); }
.hm-js .hm-reveal--side.is-in { opacity: 1; transform: none !important; }
.hm-js .hm-reveal--fade { opacity: 0; transition: opacity .2s ease; }
.hm-js .hm-reveal--fade.is-in { opacity: 1; }
.hm-js .hm-reveal--clip { opacity: 0; transform: translateY(calc(40 * var(--hm-m))); transition: opacity 1s var(--hm-ease), transform 1s var(--hm-ease); }
.hm-js .hm-reveal--clip.is-in { opacity: 1; transform: none; }
/* Titles: a wipe from the left over the whole heading. The clip box extends past the text so Vietnamese marks are never cut. */
.hm-js .hm-reveal--wipe { opacity: 0; transform: translateX(-3%); clip-path: inset(-.5em calc(100% - 2px) -.5em -.15em); transition: clip-path 1s var(--hm-ease), transform 1s var(--hm-ease), opacity .6s ease; }
.hm-js .hm-reveal--wipe.is-in { opacity: 1; transform: none; clip-path: inset(-.5em -.15em); }
.hm-js .hm-reveal:focus-within { opacity: 1; transform: none; clip-path: none; transition: none; }

/* Base text of block pages (the theme/builder defaults differ from the reference design). */
.hm-page { font-family: var(--hm-font-body); font-size: calc(15 * var(--hm-m)); line-height: 1.5; color: #000; }
@container hm (min-width: 1200px) { .hm-page { font-size: max(14px, calc(18.67 * var(--hm-u))); } }
/* Blocksy adds a content-spacing margin below flow-layout children; sections set their own spacing. */
.hm-page :is(.is-layout-flow, .is-layout-constrained) > * { margin-block-end: 0; }
/* Display titles never break inside a word (the builder default would split long words). */
.hm-page :is(h1, h2, h3) { overflow-wrap: normal; word-break: normal; }
.hm-page .hm-btn .wp-block-button__link { min-height: 44px; }
