/* ==========================================================================
   Dr Haj Mohammadi Clinic – main stylesheet (RTL-first)
   ========================================================================== */

:root {
	--hm-matcha: #667653;
	--hm-dark: #35483B;
	--hm-gold: #C5A46D;
	--hm-cream: #F5F0E4;
	--hm-gold-2: #e3cb9a;
	--hm-gold-3: #a98547;
	--hm-ink: #2a3a2f;
	--hm-white: #fff;
	--hm-radius: 18px;
	--hm-shadow: 0 10px 30px rgba(35, 52, 40, .14);
	--hm-font: "HM Estedad", Tahoma, system-ui, sans-serif;
	--hm-soft-1: #8a9a76;
	--hm-soft-2: #75865f;
	--hm-soft-3: #667653;
	--hm-soft-4: #5a6b49;
	--hm-ease: cubic-bezier(.22, .8, .24, 1);
	--hm-header-h: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.hm-body {
	margin: 0;
	font-family: var(--hm-font);
	font-size: 16px;
	line-height: 1.95;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--hm-ink);
	background: var(--hm-cream);
	overflow-x: hidden;
	direction: rtl;
	text-align: right;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
:focus-visible { outline: 2px solid var(--hm-gold); outline-offset: 3px; }
section[id], div[id] { scroll-margin-top: calc(var(--hm-header-h) - 20px); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hm-skip {
	position: absolute; top: -60px; right: 12px; z-index: 1000; background: var(--hm-gold); color: #1c2a20;
	padding: 8px 16px; border-radius: 8px; transition: top .2s;
}
.hm-skip:focus { top: 8px; }

.hm-container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.hm-ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.hm-btn {
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	padding: .75em 1.8em; border: 0; border-radius: 999px;
	font-weight: 700; font-size: 1rem; line-height: 1.4; color: #2a2412;
	background: linear-gradient(135deg, var(--hm-gold-2), var(--hm-gold) 45%, var(--hm-gold-3));
	box-shadow: 0 6px 18px rgba(169, 133, 71, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
	transition: transform .35s var(--hm-ease), box-shadow .35s var(--hm-ease);
}
.hm-btn::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	transform: translateX(120%); transition: transform .8s var(--hm-ease);
}
.hm-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(169, 133, 71, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.hm-btn:hover::after { transform: translateX(-120%); }
.hm-btn:active { transform: translateY(0); }
.hm-btn .hm-ic { transition: transform .35s var(--hm-ease); }
.hm-btn:hover .hm-ic { transform: translateX(-4px); }
.hm-btn--sm { padding: .55em 1.3em; font-size: .92rem; }
.hm-btn--lg { padding: .85em 2.6em; font-size: 1.08rem; }
.hm-btn--block { width: 100%; }
.hm-btn[disabled] { opacity: .65; pointer-events: none; }
.hm-btn--gold { animation: hm-glow 4.5s ease-in-out infinite; }
@keyframes hm-glow {
	0%, 100% { box-shadow: 0 6px 18px rgba(169, 133, 71, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
	50% { box-shadow: 0 8px 26px rgba(197, 164, 109, .6), inset 0 1px 0 rgba(255, 255, 255, .5); }
}

/* ---------- Header ---------- */
.hm-header { position: sticky; top: 0; z-index: 100; color: #fff; transition: box-shadow .3s, background .3s; }
.admin-bar .hm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hm-header { top: 46px; } }
.hm-topbar, .hm-navbar { background: rgba(90, 107, 73, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hm-topbar { border-bottom: 1px solid rgba(197, 164, 109, .18); transition: margin .35s var(--hm-ease), opacity .3s; }
.hm-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.hm-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .95rem; }
.hm-brand__logo { width: 38px; height: 38px; color: var(--hm-gold); display: grid; place-items: center; }
.hm-brand__logo .hm-ic { width: 34px; height: 34px; stroke-width: 1.3; transition: transform .6s var(--hm-ease); }
.hm-brand:hover .hm-ic { transform: rotate(8deg) scale(1.08); }
.hm-brand .custom-logo { max-height: 44px; width: auto; }
.hm-contact-mini { display: flex; align-items: center; gap: 14px; font-size: .85rem; }
.hm-contact-mini a { display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.hm-contact-mini a:hover { color: var(--hm-gold); }
.hm-contact-mini .hm-ic { width: 1.1em; height: 1.1em; color: var(--hm-gold); }
.hm-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .3); }

.hm-navbar { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.hm-navbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 8px; min-height: 58px; }
.hm-nav { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: flex-start; }
.hm-nav__cta { display: none; }
.hm-menu { display: flex; align-items: center; gap: 30px; }
.hm-menu li { position: relative; }
.hm-menu a { position: relative; display: block; padding: 8px 0; font-size: .95rem; transition: color .25s; }
.hm-menu a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; background: var(--hm-gold);
	transform: scaleX(0); transform-origin: center; transition: transform .35s var(--hm-ease);
}
.hm-menu a:hover, .hm-menu .current-menu-item > a, .hm-menu .current_page_item > a { color: var(--hm-gold); }
.hm-menu a:hover::after, .hm-menu .current-menu-item > a::after { transform: scaleX(1); }
.hm-menu .sub-menu {
	position: absolute; top: 100%; inset-inline-start: 0; min-width: 200px; padding: 10px 0;
	background: var(--hm-dark); border-radius: 12px; box-shadow: var(--hm-shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--hm-ease);
}
.hm-menu li:hover > .sub-menu, .hm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hm-menu .sub-menu a { padding: 8px 18px; }
.hm-navbar__cta { flex: none; }

.hm-burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(197, 164, 109, .5); border-radius: 12px; background: transparent; position: relative; }
.hm-burger span { position: absolute; inset-inline: 11px; height: 2px; background: var(--hm-gold); border-radius: 2px; transition: transform .35s var(--hm-ease), opacity .2s, top .35s var(--hm-ease); }
.hm-burger span:nth-child(1) { top: 14px; }
.hm-burger span:nth-child(2) { top: 21px; }
.hm-burger span:nth-child(3) { top: 28px; }
.hm-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hm-burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.hm-header.is-stuck .hm-topbar { margin-top: -57px; opacity: 0; pointer-events: none; }
.hm-header.is-stuck { box-shadow: 0 8px 28px rgba(0, 0, 0, .22); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--hm-ease), transform .9s var(--hm-ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }

/* ---------- Hero ---------- */
.hm-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(700px 380px at 12% 8%, rgba(255, 255, 255, .16), transparent 70%),
		radial-gradient(520px 320px at 55% 105%, rgba(197, 164, 109, .22), transparent 70%),
		linear-gradient(135deg, var(--hm-soft-1) 0%, var(--hm-soft-2) 45%, var(--hm-soft-3) 100%);
}
.hm-hero::before, .about-pattern::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
	background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1.2px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.hm-hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 30px; padding-block: 56px 70px; }
.hm-hero__media { order: -1; }
.hm-hero__content { text-align: center; padding-inline: 10px; }
.hm-hero__kicker { font-size: 1.5rem; font-weight: 500; color: #f1deb2; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 12px; }
.hm-hero__kicker::before, .hm-hero__kicker::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--hm-gold)); }
.hm-hero__kicker::after { transform: scaleX(-1); }
.hm-hero__title {
	font-size: clamp(2.7rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.35; margin-block: 6px 12px;
	color: var(--hm-gold);
	background: linear-gradient(105deg, #b8935a 0%, #e9d3a0 22%, var(--hm-gold) 40%, #f6e6bd 55%, var(--hm-gold) 72%, #b8935a 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	filter: drop-shadow(0 3px 10px rgba(40, 55, 30, .4));
	animation: hm-shine 9s ease-in-out infinite;
}
.hm-hero__sub { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 500; color: #f7f6ec; margin-bottom: 28px; }

.hm-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.hm-features li { display: grid; justify-items: center; gap: 10px; font-size: .88rem; color: #f0f1e4; }
.hm-features__ic {
	width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%;
	border: 1.5px solid var(--hm-gold); color: var(--hm-gold); background: rgba(197, 164, 109, .06);
	transition: transform .5s var(--hm-ease), background .4s, color .4s, box-shadow .4s;
}
.hm-features__ic .hm-ic { width: 30px; height: 30px; }
.hm-features li:hover .hm-features__ic { transform: translateY(-5px) rotate(-6deg); background: var(--hm-gold); color: var(--hm-dark); box-shadow: 0 10px 22px rgba(197, 164, 109, .35); }

.hm-hero__frame {
	position: relative; border-radius: 0 0 0 220px; overflow: hidden; aspect-ratio: 1 / .96;
	box-shadow: -12px 18px 50px rgba(0, 0, 0, .35);
}
.hm-hero__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(197, 164, 109, .55); pointer-events: none; }
.hm-hero__img { width: 100%; height: 112%; object-fit: cover; will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.04); transition: transform .12s linear; }

.hm-leaf { position: absolute; pointer-events: none; z-index: 0; animation: hm-sway 9s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes hm-sway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2.5deg; } }
.hm-leaf--h1 { width: 190px; inset-inline-start: -40px; top: 40px; }
.hm-leaf--s1 { width: 190px; inset-inline-end: -50px; top: -10px; transform: scaleX(-1); opacity: .9; }
.hm-leaf--a1 { width: 180px; inset-inline-end: -30px; bottom: -30px; }
.hm-leaf--c1 { width: 150px; inset-inline-start: -20px; bottom: -30px; opacity: .6; }
.hm-leaf--f1 { width: 170px; inset-inline-start: -30px; top: 10px; }
.hm-leaf--f2 { width: 160px; inset-inline-end: -30px; bottom: -20px; transform: scaleX(-1); }

/* ---------- Sections ---------- */
.hm-section { position: relative; padding-block: 56px; }
.hm-section__head { text-align: center; margin-bottom: 36px; }
.hm-section__ic { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--hm-gold); }
.hm-section__ic .hm-ic { width: 34px; height: 34px; animation: hm-float 5s ease-in-out infinite; }
@keyframes hm-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hm-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.005em; line-height: 1.5; color: var(--hm-dark); }
.hm-title--gold { color: var(--hm-gold); }
.hm-title--sm { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.hm-lead { color: #4b5a4d; }

.hm-services { background: var(--hm-cream); overflow: hidden; }
.hm-services .hm-section__head .hm-title::before, .hm-services .hm-section__head .hm-title::after { content: none; }

/* Services cards */
.hm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; z-index: 1; }
.hm-card { background: #fff; border-radius: var(--hm-radius); overflow: hidden; box-shadow: 0 6px 22px rgba(53, 72, 59, .1); transition: transform .5s var(--hm-ease), box-shadow .5s var(--hm-ease); }
.hm-card__link { display: block; height: 100%; }
.hm-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(53, 72, 59, .2); }
.hm-card__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: #e7e4d8; }
.hm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--hm-ease); }
.hm-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(53, 72, 59, .45)); opacity: 0; transition: opacity .5s; }
.hm-card:hover .hm-card__media img { transform: scale(1.1); }
.hm-card:hover .hm-card__media::after { opacity: 1; }
.hm-card__body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 18px; }
.hm-card__txt h3 { font-size: 1.1rem; color: var(--hm-dark); line-height: 1.5; }
.hm-card__txt p { font-size: .84rem; color: #6b776d; }
.hm-card__go {
	flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
	background: var(--hm-dark); color: var(--hm-gold); transition: background .4s, color .4s, transform .5s var(--hm-ease);
}
.hm-card:hover .hm-card__go { background: var(--hm-gold); color: var(--hm-dark); transform: translateX(-4px); }

/* ---------- About ---------- */
.hm-about {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(700px 320px at 75% 0%, rgba(255, 255, 255, .14), transparent 70%),
		linear-gradient(135deg, var(--hm-soft-2), var(--hm-soft-4));
}
.hm-about__grid { position: relative; display: grid; grid-template-columns: 230px 1fr 1.05fr; align-items: center; gap: 36px; padding-block: 0; }
.hm-about__feats { order: 1; display: grid; gap: 4px; padding-inline-start: 24px; border-inline-start: 1px solid rgba(197, 164, 109, .3); }
.hm-about__feats li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; font-size: .98rem; transition: transform .4s var(--hm-ease), color .3s; }
.hm-about__feats li .hm-ic { width: 32px; height: 32px; color: var(--hm-gold); transition: transform .5s var(--hm-ease); }
.hm-about__feats li:hover { color: var(--hm-gold); transform: translateX(-6px); }
.hm-about__feats li:hover .hm-ic { transform: scale(1.18) rotate(-6deg); }
.hm-about__content { order: 2; padding-block: 50px; }
.hm-about__text { margin-block: 12px 24px; max-width: 46ch; color: #eef1e6; }
.hm-about__media { order: 3; align-self: stretch; }
.hm-about__frame { position: relative; height: 100%; min-height: 280px; border-radius: 0 220px 220px 0; overflow: hidden; }
.hm-about__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(197, 164, 109, .5); pointer-events: none; }
.hm-about__frame img { position: absolute; top: -6%; left: 0; width: 100%; height: 112%; object-fit: cover; object-position: top; transform: translate3d(0, var(--py, 0px), 0); transition: transform .12s linear; }

/* ---------- Gallery + consult ---------- */
.hm-duo { background: var(--hm-cream); }
.hm-duo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.hm-consult { order: -1; }
.hm-section__head--line { margin-bottom: 22px; }
.hm-section__head--line .hm-title { display: inline-flex; align-items: center; gap: 16px; }
.hm-section__head--line .hm-title::before, .hm-section__head--line .hm-title::after { content: ""; width: 54px; height: 1px; background: var(--hm-gold); }

.hm-slider { position: relative; padding-inline: 4px; }
.hm-slider__viewport { overflow: hidden; border-radius: 14px; touch-action: pan-y; }
.hm-slider__track { display: flex; transition: transform .7s var(--hm-ease); transform: translate3d(calc(var(--i, 0) * 100%), 0, 0); }
.hm-slide { flex: 0 0 100%; min-width: 0; }
.hm-slider__btn {
	position: absolute; top: calc(50% - 20px); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: var(--hm-dark); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
	transition: background .3s, transform .3s var(--hm-ease), color .3s;
}
.hm-slider__btn:hover { background: var(--hm-gold); color: var(--hm-dark); transform: scale(1.1); }
.hm-slider__btn--prev { inset-inline-start: -14px; }
.hm-slider__btn--next { inset-inline-end: -14px; }
.hm-slider__btn[disabled] { opacity: .35; pointer-events: none; }
.hm-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hm-slider__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #c8c3b0; transition: width .4s var(--hm-ease), background .3s; }
.hm-slider__dots button[aria-selected="true"] { width: 26px; background: var(--hm-dark); }

/* before/after */
.hm-ba { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 14px; user-select: none; background: #ddd; }
.hm-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.hm-ba__before { clip-path: inset(0 0 0 var(--pos, 50%)); }
.hm-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .4); touch-action: none; cursor: ew-resize; z-index: 2; }
.hm-ba__line::before { content: ""; position: absolute; inset: 0 -18px; }
.hm-ba__line i {
	position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
	background: var(--hm-gold); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.hm-ba__line i::before, .hm-ba__line i::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.hm-ba__line i::before { left: 7px; transform: rotate(-135deg); }
.hm-ba__line i::after { right: 7px; transform: rotate(45deg); }
.hm-ba__tag { position: absolute; top: 12px; z-index: 2; padding: 2px 12px; font-size: .78rem; color: #fff; background: rgba(53, 72, 59, .8); border-radius: 999px; pointer-events: none; }
.hm-ba__tag--before { right: 12px; }
.hm-ba__tag--after { left: 12px; }
.hm-ba__range { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.hm-ba:focus-within .hm-ba__line { box-shadow: 0 0 0 3px var(--hm-gold), 0 0 10px rgba(0, 0, 0, .4); }
.hm-ba--single { cursor: default; }

/* Consult form */
.hm-consult {
	position: relative; overflow: hidden; padding: 34px 30px; border-radius: 22px;
	background: linear-gradient(160deg, #f8f4ea, #efe8d6); border: 1px solid rgba(197, 164, 109, .35); box-shadow: 0 14px 40px rgba(53, 72, 59, .12);
}
.hm-consult__in { position: relative; z-index: 1; max-width: 420px; }
.hm-consult__face { position: absolute; inset-inline-end: 6px; top: 20px; width: 120px; height: auto; opacity: .8; animation: hm-float 7s ease-in-out infinite; }
.hm-consult .hm-lead { font-size: .9rem; margin-block: 4px 18px; }
.hm-form { display: grid; gap: 14px; }
.hm-field { position: relative; }
.hm-field .hm-ic { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--hm-matcha); pointer-events: none; transition: color .3s; }
.hm-field input {
	width: 100%; height: 52px; padding-block: 0; padding-inline: 48px 18px; border: 1.5px solid transparent; border-radius: 14px;
	background: #fff; font-size: 1rem; color: var(--hm-ink); direction: rtl; text-align: right;
	transition: border-color .3s, box-shadow .3s;
}
.hm-field input::placeholder { color: #8a948b; }
.hm-field input:focus { outline: none; border-color: var(--hm-gold); box-shadow: 0 0 0 4px rgba(197, 164, 109, .22); }
.hm-field:focus-within .hm-ic { color: var(--hm-gold-3); }
.hm-field input.is-bad { border-color: #b4553f; }
.hm-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hm-form__msg { min-height: 1.6em; font-size: .9rem; text-align: center; }
.hm-form__msg.is-ok, .hm-alert--ok { color: #2f6a3d; }
.hm-form__msg.is-err, .hm-alert--err { color: #a2412c; }
.hm-alert { padding: 10px 14px; border-radius: 12px; background: #fff; margin-bottom: 14px; font-size: .92rem; }

/* ---------- Footer ---------- */
.hm-footer { position: relative; overflow: hidden; color: #fff; background: radial-gradient(600px 240px at 80% 0%, rgba(255, 255, 255, .1), transparent 70%), linear-gradient(135deg, var(--hm-soft-3), #4d5e3f); }
.hm-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; padding-block: 44px 28px; }
.hm-footer__col { padding-inline: 30px; }
.hm-footer__col + .hm-footer__col { border-inline-start: 1px solid rgba(197, 164, 109, .3); }
.hm-footer__col h3 { font-size: 1.1rem; margin-bottom: 14px; color: #fff; }
.hm-footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 1.1rem; }
.hm-footer__logo .hm-ic { width: 40px; height: 40px; color: var(--hm-gold); }
.hm-footer__brand p { color: #e4e8d8; font-size: .92rem; }
.hm-footer__site { margin-top: 6px; }
.hm-footer__site a { color: var(--hm-gold); }
.hm-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .9rem; }
.hm-footer__links a:hover, .hm-line a:hover { color: var(--hm-gold); }
.hm-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .95rem; }
.hm-line .hm-ic { color: var(--hm-gold); }
.hm-social { display: flex; gap: 14px; }
.hm-social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(197, 164, 109, .6); color: #fff; transition: .4s var(--hm-ease); }
.hm-social a:hover { background: var(--hm-gold); color: var(--hm-dark); transform: translateY(-4px) rotate(-6deg); }
.hm-footer__insta { margin-top: 10px; color: var(--hm-gold); font-size: .9rem; text-align: right; }
.hm-footer__bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 14px; text-align: center; font-size: .85rem; color: #dfe4d2; }

.hm-totop {
	position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
	border: 2px solid var(--hm-gold); background: var(--hm-dark); color: var(--hm-gold); display: grid; place-items: center;
	opacity: 0; visibility: hidden; transform: translateY(14px); transition: .4s var(--hm-ease); box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}
.hm-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.hm-totop:hover { background: var(--hm-gold); color: var(--hm-dark); }

/* ---------- Inner pages ---------- */
.hm-page { padding-block: 50px 70px; }
.hm-page__in--narrow { max-width: 820px; }
.hm-page__head { margin-bottom: 30px; }
.hm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.hm-post { background: #fff; border-radius: var(--hm-radius); overflow: hidden; box-shadow: 0 6px 22px rgba(53, 72, 59, .1); }
.hm-post__thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hm-post__body { padding: 18px; }
.hm-post__title { font-size: 1.1rem; }
.hm-post__meta { font-size: .8rem; color: #7a867c; margin-block: 4px 8px; }
.hm-entry__content { margin-top: 20px; }
.hm-entry__content a { color: var(--hm-matcha); text-decoration: underline; }
.hm-entry__thumb { margin-block: 18px; border-radius: var(--hm-radius); overflow: hidden; }
.hm-comments { margin-top: 40px; }
.pagination { margin-top: 30px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; margin: 2px; }
.pagination .current { background: var(--hm-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hm-cards { grid-template-columns: repeat(2, 1fr); }
	.hm-about__grid { grid-template-columns: 1fr 1fr; }
	.hm-about__feats { grid-column: 1 / -1; order: 4; grid-template-columns: repeat(2, 1fr); border-inline-start: 0; padding: 0 0 36px; gap: 0 24px; }
	.hm-about__content { order: 1; }
	.hm-about__media { order: 2; }
	.hm-duo__grid { grid-template-columns: 1fr; }
	.hm-consult { order: 2; }
	.hm-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
	.hm-footer__brand { grid-column: 1 / -1; }
	.hm-footer__col:nth-child(2) { border-inline-start: 0; }
}

@media (max-width: 860px) {
	:root { --hm-header-h: 112px; }
	.hm-burger { display: block; order: 2; }
	.hm-navbar__in { flex-direction: row-reverse; }
	.hm-navbar__cta { display: inline-flex; order: 1; }
	.hm-nav {
		position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100dvh; z-index: 120; flex-direction: column; align-items: stretch; gap: 10px;
		padding: 90px 24px 30px; background: #536443; box-shadow: -20px 0 50px rgba(0, 0, 0, .4);
		transform: translateX(105%); transition: transform .5s var(--hm-ease); overflow-y: auto;
	}
	.hm-nav.is-open { transform: none; }
	.hm-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.hm-menu a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1.02rem; }
	.hm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding-inline-start: 14px; }
	.hm-nav__cta { display: inline-flex; margin-top: 16px; }
	.hm-burger { z-index: 130; }
	
.hm-topbar, .hm-navbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: #5a6b49; }
.hm-nav-backdrop { position: fixed; inset: 0; z-index: 99; background: rgba(10, 20, 14, .55); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.hm-nav-backdrop.is-on { opacity: 1; visibility: visible; }

	.hm-hero__grid { grid-template-columns: 1fr; padding-block: 0 44px; gap: 26px; }
	.hm-hero__media { order: -1; margin-inline: -20px; }
	.hm-hero__frame { border-radius: 0 0 120px 0; aspect-ratio: 1 / .8; box-shadow: none; }
	.hm-hero__kicker { font-size: 1.2rem; }
	.hm-features { gap: 8px; }
	.hm-features__ic { width: 54px; height: 54px; }
	.hm-features li { font-size: .78rem; }
	.hm-leaf--h1 { width: 120px; top: auto; bottom: 0; opacity: .7; }
	.hm-about__grid { grid-template-columns: 1fr; gap: 10px; }
	.hm-about__media { order: 1; margin-inline: -20px; }
	.hm-about__frame { min-height: 260px; border-radius: 0 0 0 140px; }
	.hm-about__content { order: 2; padding-block: 30px 10px; text-align: center; }
	.hm-about__text { margin-inline: auto; }
	.hm-about__feats { order: 3; }
	.hm-topbar__in { padding-block: 8px; }
	.hm-brand__name { font-size: .82rem; }
}

@media (max-width: 560px) {
	.hm-container { width: calc(100% - 32px); }
	.hm-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
	.hm-card__media { aspect-ratio: 4 / 3; }
	.hm-card__body { padding: 12px; flex-direction: row-reverse; }
	.hm-card__txt h3 { font-size: .95rem; }
	.hm-card__txt p { font-size: .75rem; line-height: 1.6; }
	.hm-card__go { width: 32px; height: 32px; }
	.hm-contact-mini { gap: 8px; font-size: .75rem; }
	.hm-contact-mini a span { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
	.hm-topbar__in { flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
	.hm-navbar__cta span { display: none; }
	.hm-navbar__cta { padding: .6em .8em; }
	.hm-hero__media { margin-inline: -16px; }
	.hm-about__media { margin-inline: -16px; }
	.hm-section { padding-block: 40px; }
	.hm-consult { padding: 26px 18px; }
	.hm-consult__face { display: none; }
	.hm-consult__in { max-width: none; }
	.hm-slider__btn--prev { inset-inline-start: 4px; }
	.hm-slider__btn--next { inset-inline-end: 4px; }
	.hm-section__head--line .hm-title::before, .hm-section__head--line .hm-title::after { width: 24px; }
	.hm-footer__grid { grid-template-columns: 1fr; }
	.hm-footer__col { padding-inline: 8px; }
	.hm-footer__col + .hm-footer__col { border-inline-start: 0; border-top: 1px solid rgba(197, 164, 109, .25); padding-top: 20px; }
	.hm-about__feats { grid-template-columns: 1fr 1fr; gap: 0 12px; }
	.hm-about__feats li { font-size: .85rem; gap: 8px; flex-direction: row-reverse; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Typography ornaments ---------- */
@keyframes hm-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hm-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px auto 6px; color: var(--hm-gold); }
.hm-orn::before, .hm-orn::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.hm-orn::after { transform: scaleX(-1); }
.hm-orn i { position: relative; width: 9px; height: 9px; rotate: 45deg; border: 1.5px solid currentColor; }
.hm-orn i::after { content: ""; position: absolute; inset: 1.5px; background: currentColor; }
.hm-orn--start { justify-content: flex-start; margin-inline: 0; }
.hm-orn--start::before { display: none; }
.hm-orn--start::after { transform: none; background: linear-gradient(90deg, currentColor, transparent); order: 2; }
.hm-orn--start i { order: 1; }
.hm-orn--hero { color: #f1deb2; margin-bottom: 22px; }
.hm-title--gold { background: linear-gradient(105deg, #b8935a, #ecd8a6 40%, var(--hm-gold) 60%, #b8935a); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: hm-shine 10s ease-in-out infinite; }
.hm-card__txt h3 { position: relative; display: inline-block; font-weight: 700; padding-bottom: 2px; }
.hm-card__txt h3::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px; background: var(--hm-gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--hm-ease); }
.hm-card:hover .hm-card__txt h3::after { transform: scaleX(1); }
.hm-lead { font-weight: 400; }
.hm-menu a, .hm-btn { font-weight: 500; }
.hm-btn { font-weight: 700; }
.hm-services { background: radial-gradient(500px 260px at 90% 0%, rgba(197, 164, 109, .14), transparent 70%), radial-gradient(500px 260px at 5% 100%, rgba(102, 118, 83, .12), transparent 70%), var(--hm-cream); }
.hm-footer__col h3 { font-weight: 700; position: relative; padding-bottom: 8px; }
.hm-footer__col h3::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 2px; background: var(--hm-gold); }
@media (max-width: 860px) { .hm-orn--start { justify-content: center; margin-inline: auto; } .hm-orn--start::before { display: block; } .hm-orn--start::after { order: 0; background: linear-gradient(90deg, transparent, currentColor); transform: scaleX(-1); } .hm-orn--start i { order: 0; } }
