/*
Theme Name: Homera
Theme URI: https://home-era.com/
Author: Abdelrhman Ibrahim
Description: Custom block theme for HOMEERA – Design Your Era. Dark, minimal, fully editable from the WordPress Site Editor (no page builder required).
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homera
*/

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > .hm-main { flex: 1 0 auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.hm-main p, .hm-main h1, .hm-main h2, .hm-main h3, .hm-main h4 { margin: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px !important; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
a { transition: color .3s, background .35s, border-color .35s; }
.wp-element-button, .wp-block-button__link { transition: all .35s ease; display: inline-block; }
:focus-visible { outline: 1px solid #fff; outline-offset: 3px; }

/* ---------- Header ---------- */
.hm-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .hm-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hm-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hm-site-header { top: 0; } }
/* Blur lives on a pseudo-element: backdrop-filter on .hm-header itself would trap the
 * fixed-position mobile menu overlay inside the header box. */
.hm-header { position: relative; padding: 14px var(--wp--custom--gutter); border-bottom: 1px solid var(--wp--custom--border); background: transparent; gap: 20px; }
.hm-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13, 13, 13, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.hm-header .hm-logo img { height: 54px; width: auto; }
.hm-nav .wp-block-navigation__container { gap: clamp(16px, 2.6vw, 38px); }
.hm-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--soft); font-size: 16px; font-weight: 300; letter-spacing: .06em; }
.hm-nav .wp-block-navigation-item__content:hover,
.hm-nav .current-menu-item > .wp-block-navigation-item__content { color: #fff; }
.hm-nav .wp-block-navigation__responsive-container-open svg,
.hm-nav .wp-block-navigation__responsive-container-close svg { fill: #fff; width: 26px; height: 26px; }
.hm-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 28px var(--wp--custom--gutter); }
.hm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 60px; }
.hm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 22px; align-items: center; width: 100%; }
.hm-nav .is-menu-open .wp-block-navigation-item__content { font-size: 20px; letter-spacing: .14em; text-transform: uppercase; }
.hm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: center; }
@media (max-width: 600px) { .hm-header .hm-logo img { height: 42px; } }

/* ---------- Footer ---------- */
.hm-footer { gap: 18px; text-align: center; padding: clamp(40px, 6vw, 64px) 20px clamp(30px, 4vw, 40px); border-top: 1px solid var(--wp--custom--border); }
.hm-footer > * { margin: 0 !important; }
.hm-footer .hm-footer-logo img { height: 40px; width: auto; opacity: .9; }
.hm-footer-nav .wp-block-navigation__container { gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; justify-content: center; }
.hm-footer-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--muted); font-size: 14px; font-weight: 300; letter-spacing: .05em; }
.hm-footer-nav .wp-block-navigation-item__content:hover { color: #fff; }
.hm-copyright { color: var(--wp--preset--color--faint); font-size: 13px; letter-spacing: .08em; line-height: 1.6; }
.hm-credit { color: var(--wp--preset--color--faint); font-size: 12px; letter-spacing: .06em; line-height: 1.6; }
.hm-credit a { color: var(--wp--preset--color--muted); text-decoration: underline; text-underline-offset: 3px; }
.hm-credit a:hover { color: #fff; }

/* ---------- Social icons (editable Social Icons block) ---------- */
.hm-social.wp-block-social-links { gap: 16px; margin: 0; padding: 0; }
.hm-social.wp-block-social-links .wp-social-link { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04) !important; color: #fff !important; display: flex; align-items: center; justify-content: center; transition: all .35s ease; margin: 0; }
.hm-social.wp-block-social-links .wp-social-link a { padding: 0; color: inherit !important; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.hm-social.wp-block-social-links .wp-social-link svg { width: 18px; height: 18px; fill: currentColor; }
.hm-social.wp-block-social-links .wp-social-link:hover { background: #fff !important; border-color: #fff; color: #000 !important; transform: translateY(-2px); }
.hm-social--lg.wp-block-social-links { gap: 26px; }
.hm-social--lg.wp-block-social-links .wp-social-link { width: 52px; height: 52px; border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .07) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.hm-social--lg.wp-block-social-links .wp-social-link svg { width: 20px; height: 20px; }

/* ---------- Shared typography helpers ---------- */
.hm-eyebrow { font-size: 13px; letter-spacing: .28em; color: var(--wp--preset--color--dim); font-weight: 300; line-height: 1.6; }
.hm-label { font-size: 13px; letter-spacing: .24em; color: var(--wp--preset--color--dim); text-align: center; margin-bottom: 22px !important; }
.hm-center { text-align: center; }
.hm-breadcrumb { font-size: 13px; letter-spacing: .08em; color: #999; margin-bottom: 16px !important; }
.hm-breadcrumb a { color: #999; }
.hm-breadcrumb a:hover { color: #fff; }
.hm-btns { gap: 16px; margin-top: 26px !important; }
.hm-btns--sm .wp-element-button { font-size: 12px; padding: 9px 22px; }

/* ---------- Page title (Services / About / Blog) ---------- */
.hm-page-hero { text-align: center; padding: clamp(26px, 4vw, 44px) 20px clamp(24px, 3vw, 36px); }
.hm-page-hero h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: .42em; padding-left: .42em; color: #fff; }
.hm-page-hero p { margin-top: 14px !important; color: #a8a8a8; font-size: clamp(15px, 2vw, 19px); letter-spacing: .04em; max-width: 640px; margin-left: auto !important; margin-right: auto !important; line-height: 1.7; }
.hm-page-hero .wp-block-buttons { margin-top: 26px; }
.hm-404 { padding-top: clamp(60px, 10vw, 120px); padding-bottom: clamp(60px, 10vw, 120px); }

/* ---------- Sections ---------- */
.hm-section { padding: clamp(50px, 6vw, 80px) var(--wp--custom--gutter); max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--wp--custom--border); box-sizing: border-box; }
.hm-section--first { border-top: none; }
.hm-section--compact { padding: clamp(30px, 5vw, 60px) var(--wp--custom--gutter); border-top: none; }
.hm-section--compact + .hm-section--compact { border-top: 1px solid var(--wp--custom--border); }
.hm-section h2 { margin-top: 10px !important; font-size: clamp(22px, 3vw, 32px); letter-spacing: .1em; }
.hm-section p { margin-top: 16px !important; color: var(--wp--preset--color--muted); font-size: 15px; line-height: 1.9; max-width: 760px; }
.hm-section .hm-eyebrow { margin-top: 0 !important; color: var(--wp--preset--color--dim); font-size: 13px; line-height: 1.6; }
.hm-section .hm-eyebrow.hm-center { margin-bottom: clamp(30px, 4vw, 46px) !important; max-width: none; }
.hm-section--center h2, .hm-section--center .hm-lead { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.hm-section--center .hm-lead { max-width: 640px; }
.hm-section--center .hm-eyebrow.hm-center { margin-bottom: 0 !important; }

/* features (3 columns) */
.hm-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.hm-feature { border-top: 1px solid var(--wp--custom--borderStrong, rgba(255,255,255,.15)); border-top-color: rgba(255, 255, 255, .15); padding-top: 22px; }
.hm-feature h3 { font-size: clamp(15px, 2vw, 18px); letter-spacing: .12em; margin-top: 0 !important; }
.hm-feature p { margin-top: 12px !important; line-height: 1.8; }
.hm-feature .hm-btns { margin-top: 18px !important; justify-content: flex-start; }
.hm-contact-cards { margin-top: clamp(40px, 5vw, 60px); }

/* two columns / vision & mission */
.hm-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(30px, 4vw, 60px); }
.hm-col--rule { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 22px; }
.hm-vm h3 { font-size: clamp(16px, 2vw, 19px); letter-spacing: .22em; }
.hm-vm p { margin-top: 14px !important; }

/* process */
.hm-section .hm-process { margin-top: 26px; }
.hm-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(20px, 3vw, 30px); }
.hm-step { border: 1px solid rgba(255, 255, 255, .1); padding: 22px 18px; transition: border-color .3s; }
.hm-step:hover { border-color: rgba(255, 255, 255, .4); }
.hm-section .hm-step .hm-step-num { margin-top: 0 !important; font-size: 13px; letter-spacing: .1em; color: #666; }
.hm-step h3 { margin-top: 10px !important; font-size: 16px; letter-spacing: .12em; }
.hm-section .hm-step p:not(.hm-step-num) { margin-top: 8px !important; font-size: 13px; color: #8a8a8a; line-height: 1.6; }

/* call to action */
.hm-cta { text-align: center; padding: clamp(50px, 7vw, 90px) 20px; border-top: 1px solid var(--wp--custom--border); }
.hm-cta h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: .1em; }
.hm-cta p { margin-top: 12px !important; color: var(--wp--preset--color--muted); font-size: 15px; }

/* related services pills */
.hm-related { padding: 0 20px clamp(50px, 6vw, 80px); max-width: 1000px; margin: 0 auto; }
.hm-pills { gap: 16px; }
.hm-pills .wp-element-button { color: var(--wp--preset--color--soft); font-size: 14px; letter-spacing: .05em; border: 1px solid rgba(255, 255, 255, .2); padding: 10px 22px; background: transparent; }
.hm-pills .wp-element-button:hover { background: #fff; color: #000; }

/* ---------- Services grid & cards ---------- */
.hm-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(22px, 3vw, 40px); padding: 10px var(--wp--custom--gutter) clamp(50px, 7vw, 90px); max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.hm-card { display: flex; flex-direction: column; }
.hm-card-media.wp-block-cover { aspect-ratio: 1 / 1; min-height: 0; padding: 20px; border-radius: 2px; overflow: hidden; background: #1a1a1a; }
.hm-card-media .wp-block-cover__image-background { filter: grayscale(1) contrast(1.03); }
.hm-card-media .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .55) 100%) !important; opacity: 1 !important; }
.hm-card-media .wp-block-cover__inner-container { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hm-card-media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); transition: background .4s; z-index: 1; pointer-events: none; }
.hm-card:hover .hm-card-media::after { background: rgba(0, 0, 0, .32); }
.hm-card-media .wp-block-cover__inner-container { z-index: 2; }
.hm-card .hm-card-title { font-size: clamp(20px, 2.4vw, 27px); letter-spacing: .14em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hm-card .hm-card-sub { font-size: 14px; color: #e6e6e6; letter-spacing: .04em; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); line-height: 1.6; }
.hm-card .hm-btns { margin-top: 8px !important; }
.hm-card .hm-card-desc { margin-top: 18px; color: var(--wp--preset--color--muted); font-size: 15px; line-height: 1.9; }

/* ---------- Service detail hero ---------- */
.hm-svc-hero.wp-block-cover { min-height: 56vh; align-items: flex-end; padding: 0 20px clamp(40px, 6vw, 70px); }
.hm-svc-hero .wp-block-cover__image-background { filter: grayscale(1) contrast(1.03); }
.hm-svc-hero .wp-block-cover__background, .hm-post-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .8) 88%) !important; opacity: 1 !important; }
.hm-svc-hero-content, .hm-post-hero-content { max-width: 900px; margin: 0 auto; text-align: center; width: 100%; }
.hm-svc-hero .hm-eyebrow { color: #ccc; }
.hm-svc-hero h1 { margin-top: 14px !important; font-size: clamp(32px, 6vw, 58px); letter-spacing: .14em; color: #fff; }
.hm-hero-sub { margin-top: 16px !important; color: #d5d5d5; font-size: clamp(15px, 2vw, 19px); max-width: 640px; margin-left: auto !important; margin-right: auto !important; line-height: 1.7; }

/* ---------- Contact hero ---------- */
.hm-contact-hero { min-height: 42vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(50px, 7vw, 80px) 20px; text-align: center; border-bottom: 1px solid var(--wp--custom--border); box-sizing: border-box; }
.hm-contact-hero .hm-eyebrow { color: #ccc; }
.hm-contact-hero h1 { margin-top: 14px !important; font-size: clamp(32px, 6vw, 58px); letter-spacing: .14em; }

/* ---------- Blog ---------- */
.hm-blog { padding: 10px var(--wp--custom--gutter) clamp(50px, 7vw, 90px); max-width: 1400px; margin: 0 auto; box-sizing: border-box; }
.hm-blog-grid.wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: clamp(22px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.hm-post-card { display: flex; flex-direction: column; height: 100%; }
.hm-post-thumb { margin: 0; overflow: hidden; border-radius: 2px; background: #1a1a1a; aspect-ratio: 1 / 1; }
.hm-post-thumb a, .hm-post-thumb img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.hm-post-thumb img { filter: grayscale(1) contrast(1.03); transition: filter .5s ease, transform .6s ease; }
.hm-post-card:hover .hm-post-thumb img { filter: grayscale(0); transform: scale(1.04); }
.hm-thumb-placeholder a, .hm-thumb-placeholder > span { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; color: #555; font-size: 13px; letter-spacing: .42em; }
.hm-post-date { margin-top: 18px; font-size: 12px; letter-spacing: .14em; color: var(--wp--preset--color--dim); text-transform: uppercase; }
.hm-post-title { margin-top: 8px; font-size: clamp(17px, 2vw, 21px); letter-spacing: .06em; line-height: 1.45; }
.hm-post-title a { color: #fff; }
.hm-post-title a:hover { color: var(--wp--preset--color--soft); }
.hm-blog-empty { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) 20px; border-top: 1px solid var(--wp--custom--border); }
.hm-blog-empty h2 { margin-top: 10px !important; font-size: clamp(22px, 3vw, 30px); }
.hm-blog-empty p:not(.hm-eyebrow) { margin-top: 14px !important; color: var(--wp--preset--color--muted); }
.hm-pagination { margin-top: clamp(30px, 4vw, 50px); gap: 14px; font-size: 14px; letter-spacing: .08em; }
.hm-pagination a, .hm-pagination .page-numbers { color: var(--wp--preset--color--muted); }
.hm-pagination .current, .hm-pagination a:hover { color: #fff; }
.hm-related-posts { padding: clamp(40px, 6vw, 70px) 0 0; border-top: 1px solid var(--wp--custom--border); }
.hm-related-posts .hm-blog { padding-top: 0; }

/* single post */
.hm-post-hero.wp-block-cover { min-height: 56vh; align-items: flex-end; padding: 0 20px clamp(40px, 6vw, 70px); background: #141414; }
.hm-post-hero h1 { font-size: clamp(28px, 4.6vw, 48px); letter-spacing: .08em; line-height: 1.3; }
.hm-post-hero .hm-post-date { color: #bbb; margin-top: 14px; }
.hm-entry { padding: clamp(40px, 6vw, 70px) 20px clamp(50px, 7vw, 90px); }
.hm-entry .wp-block-post-content > * + * { margin-top: 1.3em !important; }
.hm-entry .wp-block-post-content { font-size: 17px; line-height: 1.9; color: #cfcfcf; }
.hm-entry .wp-block-post-content h2 { margin-top: 1.8em !important; font-size: clamp(22px, 3vw, 28px); letter-spacing: .06em; }
.hm-entry .wp-block-post-content h3 { margin-top: 1.6em !important; font-size: clamp(18px, 2.4vw, 22px); letter-spacing: .06em; }
.hm-entry .wp-block-post-content a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hm-entry .wp-block-post-content ul, .hm-entry .wp-block-post-content ol { padding-left: 1.3em; }
.hm-entry .wp-block-post-content blockquote { border-left: 1px solid rgba(255,255,255,.4); padding-left: 1.2em; margin-left: 0; color: #eee; }
.hm-entry .wp-block-post-content figure img { border-radius: 2px; }
.hm-entry .wp-block-post-content figcaption { color: var(--wp--preset--color--dim); font-size: 13px; text-align: center; }

/* ---------- Home splash ---------- */
body.page-template-splash { overflow: hidden; }
body.page-template-splash .wp-site-blocks { min-height: 0; }
.hm-splash { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; background: #000; overflow: hidden; z-index: 2147480000; }
.hm-splash > * { margin: 0 !important; }
.hm-splash .hm-splash-slides { position: absolute !important; inset: 0; margin: 0 !important; display: block !important; }
.hm-splash .hm-splash-slides > figure.wp-block-image { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; transition: opacity 2s ease-in-out; }
.hm-splash .hm-splash-slides > figure.wp-block-image:first-child, .hm-splash .hm-splash-slides > figure.is-active { opacity: 1; }
.hm-splash.is-ready .hm-splash-slides > figure.wp-block-image:first-child:not(.is-active) { opacity: 0; }
.hm-splash .hm-splash-slides img { width: 100% !important; height: 100% !important; object-fit: cover; filter: grayscale(1) contrast(1.02); transform: scale(1.05); animation: hmZoom 20s ease-in-out infinite alternate; }
@keyframes hmZoom { from { transform: scale(1.02); } to { transform: scale(1.13); } }
.hm-splash::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .6) 100%); pointer-events: none; z-index: 1; }
.hm-splash-top, .hm-splash-bottom, .hm-splash .hm-enter { position: absolute !important; z-index: 2; }
.hm-splash-top { top: 5vh; left: 0; right: 0; display: flex; justify-content: center; padding: 0 24px; }
.hm-splash-logo { margin: 0 !important; }
.hm-splash-logo img { width: min(360px, 62vw) !important; height: auto; display: block; filter: drop-shadow(0 2px 22px rgba(0, 0, 0, .65)); }
.hm-splash .hm-enter { top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0 !important; }
.hm-splash .hm-enter .wp-element-button { padding: 17px 56px 17px 60px; border: 1px solid rgba(255, 255, 255, .85); color: #fff; font-weight: 300; font-size: 15px; letter-spacing: .42em; text-transform: uppercase; background: rgba(0, 0, 0, .12); transition: all .45s ease; }
.hm-splash .hm-enter .wp-element-button:hover { background: #fff; color: #000; }
.hm-splash-bottom { bottom: 5vh; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 24px; }
.hm-splash-bottom > * { margin: 0 !important; }
.hm-splash-nav .wp-block-navigation__container { gap: 10px 22px; flex-wrap: wrap; justify-content: center; }
.hm-splash-nav .wp-block-navigation-item__content { color: rgba(255, 255, 255, .72); font-size: 12px; font-weight: 300; letter-spacing: .15em; text-transform: uppercase; }
.hm-splash-nav .wp-block-navigation-item__content:hover { color: #fff; }
.hm-follow { color: rgba(255, 255, 255, .72); font-size: 11px; letter-spacing: .42em; text-transform: uppercase; line-height: 1.4; }
@media (max-width: 600px) {
	.hm-splash .hm-enter .wp-element-button { padding: 14px 42px; font-size: 13px; }
	.hm-social--lg.wp-block-social-links .wp-social-link { width: 46px; height: 46px; }
	.hm-social--lg.wp-block-social-links .wp-social-link svg { width: 18px; height: 18px; }
	.hm-splash-bottom { bottom: 4vh; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .hm-splash .hm-splash-slides img { animation: none; } }

/* Editor: keep the splash usable inside the block editor */
.editor-styles-wrapper .hm-splash { position: relative; height: 80vh; z-index: 1; }

/* ---------- Project gallery (service pages) ----------
 * Editable Gallery block with class "hm-bento". Layout is driven by image order:
 * 1 = large square, 2 & 4 = small, 3 = tall, 5 & 6 = wide. Add/replace images in the editor.
 */
.hm-gallery-section .hm-eyebrow.hm-center { margin-bottom: 0 !important; }
.hm-gallery-section h2, .hm-gallery-section .hm-lead { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.hm-gallery-section .hm-lead { max-width: 640px; }
.wp-block-gallery.hm-bento { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 18px); margin: clamp(30px, 4vw, 46px) 0 0 !important; counter-reset: hmshot; }
.wp-block-gallery.hm-bento > figure.wp-block-image { width: auto !important; max-width: none !important; margin: 0 !important; position: relative; overflow: hidden; border-radius: 2px; background: #1a1a1a; counter-increment: hmshot; }
.wp-block-gallery.hm-bento > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transform: scale(1.001); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.wp-block-gallery.hm-bento > figure.wp-block-image:hover img { transform: scale(1.05); }
.wp-block-gallery.hm-bento > figure.wp-block-image::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, 0); transition: border-color .5s ease, inset .5s ease; pointer-events: none; z-index: 2; }
.wp-block-gallery.hm-bento > figure.wp-block-image:hover::after { border-color: rgba(255, 255, 255, .55); inset: 16px; }
.wp-block-gallery.hm-bento > figure.wp-block-image::before { content: counter(hmshot, decimal-leading-zero); position: absolute; left: 22px; bottom: 18px; z-index: 3; color: #fff; background: rgba(0, 0, 0, .45); padding: 3px 6px 3px 9px; font-size: 11px; line-height: 1.4; letter-spacing: .3em; pointer-events: none; }
.wp-block-gallery.hm-bento > figure:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.hm-bento > figure:nth-child(6n+3) { grid-row: span 2; }
.wp-block-gallery.hm-bento > figure:nth-child(6n+5),
.wp-block-gallery.hm-bento > figure:nth-child(6n+6) { grid-column: span 2; }
@media (hover: none) { .wp-block-gallery.hm-bento > figure.wp-block-image img { filter: none; } }
@media (max-width: 781px) {
	.wp-block-gallery.hm-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
	.wp-block-gallery.hm-bento > figure:nth-child(6n+5),
	.wp-block-gallery.hm-bento > figure:nth-child(6n+6) { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) { .wp-block-gallery.hm-bento img { transition: none; } }

/* ---------- Mobile polish ---------- */
.hm-nav .is-menu-open .wp-block-navigation-item__content:focus-visible { outline-offset: 6px; }
@media (max-width: 600px) {
	/* Keep the floating WhatsApp button from covering the footer credits; hide its text bubble. */
	.hm-footer { padding-bottom: 96px; }
	.wa__btn_popup .wa__btn_popup_txt { display: none !important; }
	.hm-page-hero h1 { letter-spacing: .3em; padding-left: .3em; }
	.hm-svc-hero h1, .hm-contact-hero h1 { letter-spacing: .1em; }
}
/* Hide the floating WhatsApp button while the mobile menu is open. */
.has-modal-open .wa__btn_popup, .has-modal-open .wa__popup_chat_box { display: none !important; }
