:root {
	--hm-lagoon: #00626F;
	--hm-lagoon-deep: #00434B;
	--hm-room: #041E22;
	--hm-room-2: #06262B;
	--hm-gold: #EFA810;
	--hm-gold-ink: #1A1400;
	--hm-paper: #F3F6F5;
	--hm-ink: #102426;
	--hm-muted: #5E7578;
	--hm-line: #D5E3E4;
	--hm-mist: #C9D9DB;
	--hm-focus: #EFA810;
	--hm-radius: 2px;
	--hm-max: 1120px;
}

html {
	scroll-behavior: smooth;
}

body.hamaya-theme,
body.hamaya-theme button,
body.hamaya-theme input,
body.hamaya-theme textarea,
body.hamaya-theme select,
body.hamaya-theme .site-title,
body.hamaya-theme h1,
body.hamaya-theme h2,
body.hamaya-theme h3,
body.hamaya-theme h4 {
	font-family: Vazirmatn, Tahoma, sans-serif !important;
}

body.hamaya-theme {
	background: var(--hm-paper);
	color: var(--hm-ink);
	font-size: 16px;
	line-height: 1.75;
}

body.hamaya-theme a {
	color: var(--hm-lagoon);
	cursor: pointer;
}

body.hamaya-theme a:hover {
	color: var(--hm-lagoon-deep);
}

body.hamaya-theme :focus-visible {
	outline: 2px solid var(--hm-focus);
	outline-offset: 3px;
}

::selection {
	background: var(--hm-gold);
	color: var(--hm-gold-ink);
}

/* ——— Header: dark room chrome ——— */
body.hamaya-theme .main-header-bar,
body.hamaya-theme .ast-primary-header-bar,
body.hamaya-theme .ast-main-header-wrap,
body.hamaya-theme header#masthead,
body.hamaya-theme .ast-mobile-header-wrap {
	background: var(--hm-room) !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.hamaya-theme .main-header-bar {
	border-bottom: 1px solid rgba(239, 168, 16, 0.18) !important;
}

body.hamaya-theme .site-title,
body.hamaya-theme .site-title a,
body.hamaya-theme .site-title a:hover,
body.hamaya-theme .site-description {
	color: #F4FBFC !important;
}

body.hamaya-theme .main-header-menu .menu-item > .menu-link,
body.hamaya-theme .ast-builder-menu .menu-item > .menu-link {
	color: #E4F1F2 !important;
	font-weight: 600;
	padding-inline: 14px !important;
}

body.hamaya-theme .main-header-menu .menu-item > .menu-link:hover,
body.hamaya-theme .main-header-menu .current-menu-item > .menu-link,
body.hamaya-theme .ast-builder-menu .current-menu-item > .menu-link {
	color: var(--hm-gold) !important;
}

body.hamaya-theme .menu-toggle,
body.hamaya-theme .ast-mobile-menu-buttons,
body.hamaya-theme .ast-button-wrap button,
body.hamaya-theme .ast-mobile-menu-trigger {
	color: #F4FBFC !important;
}

body.hamaya-theme .ast-mobile-header-content,
body.hamaya-theme .ast-mobile-popup-drawer,
body.hamaya-theme .ast-mobile-popup-inner,
body.hamaya-theme #ast-mobile-popup {
	background: var(--hm-room) !important;
}

body.hamaya-theme .ast-mobile-header-content .menu-item > .menu-link,
body.hamaya-theme .ast-mobile-popup-drawer .menu-item > .menu-link {
	color: #F4FBFC !important;
	border-color: rgba(239, 168, 16, 0.18) !important;
}

/* logo size set below with header alignment */

body.hamaya-theme .custom-logo {
	max-height: 36px;
	width: auto;
	height: 36px;
}

body.hamaya-theme .site-header .ast-container {
	max-width: var(--hm-max);
}

body.hamaya-theme .ast-builder-grid-row-has-sides.ast-builder-grid-row-no-center,
body.hamaya-theme .ast-primary-header-bar .ast-builder-grid-row,
body.hamaya-theme #ast-mobile-header .ast-builder-grid-row {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center;
	gap: 12px;
	position: relative;
}

body.hamaya-theme .site-header-primary-section-left,
body.hamaya-theme .site-header-primary-section-right,
body.hamaya-theme .ast-grid-right-section {
	width: auto !important;
	flex: 0 0 auto !important;
	justify-content: flex-start !important;
	margin-inline-start: 0 !important;
	margin-inline-end: 0 !important;
}

body.hamaya-theme .main-header-menu {
	justify-content: center !important;
}

@media (min-width: 922px) {
	body.hamaya-theme #ast-desktop-header .site-header-primary-section-right {
		position: absolute !important;
		left: 50%;
		right: auto !important;
		transform: translateX(-50%);
		justify-content: center !important;
	}
}

/* ——— Strip Astra chrome on marketing pages ——— */
body.home .entry-header,
body.page-id-19 .entry-header,
body.home .ast-archive-description,
body.page-id-19 .ast-archive-description,
body.home h1.entry-title,
body.page-id-19 h1.entry-title {
	display: none !important;
}

body.home #content.site-content,
body.home .ast-container,
body.home #primary,
body.home .entry-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100%;
}

body.home .site-content {
	background: var(--hm-room);
}

/* ——— Shared bits ——— */
.hm-wrap {
	width: min(100% - 40px, var(--hm-max));
	margin-inline: auto;
}

.hm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: var(--hm-radius);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hm-btn-gold {
	background: var(--hm-gold);
	color: var(--hm-gold-ink) !important;
	border: 1px solid var(--hm-gold);
}

.hm-btn-gold:hover {
	background: #ffbe2e;
	color: var(--hm-gold-ink) !important;
}

.hm-btn-ghost {
	background: transparent;
	color: #F4FBFC !important;
	border: 1px solid rgba(244, 251, 252, 0.45);
}

.hm-btn-ghost:hover {
	border-color: var(--hm-gold);
	color: var(--hm-gold) !important;
}

/* ——— Hero ——— */
.hm-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	gap: 48px;
	align-items: center;
	min-height: calc(100dvh - 80px);
	padding: 56px 0 72px;
	width: min(100% - 40px, var(--hm-max));
	margin-inline: auto;
	color: #F4FBFC;
}

.hm-hero-copy {
	position: relative;
	z-index: 2;
	text-align: right;
}

.hm-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--hm-gold);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.hm-shard {
	width: 10px;
	height: 14px;
	background: var(--hm-gold);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
	flex-shrink: 0;
}

.hm-hero h1 {
	margin: 0 0 18px;
	color: #F4FBFC;
	font-size: clamp(32px, 5vw, 58px);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.hm-lede {
	margin: 0 0 32px;
	max-width: 36em;
	color: #B7CDD0;
	font-size: 18px;
	line-height: 1.9;
}

.hm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hm-hero-visual {
	position: relative;
	z-index: 2;
	min-width: 0;
}

.hm-room {
	display: flex;
	flex-direction: column;
	height: 420px;
	max-width: 100%;
	overflow: hidden;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background:
		radial-gradient(130% 130% at 10% -10%, rgba(0, 189, 209, 0.5) 0%, rgba(0, 166, 187, 0.08) 38%, rgba(0, 166, 187, 0) 60%),
		radial-gradient(100% 100% at 105% 105%, rgba(239, 168, 16, 0.22) 0%, rgba(239, 168, 16, 0) 45%),
		linear-gradient(160deg, #0f2735 0%, #123244 40%, #081319 100%);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.hm-room-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 6px 10px;
	background: rgba(28, 38, 48, 0.72);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hm-room-logo {
	height: 26px;
	width: auto;
	display: block;
}

.hm-room-timer {
	flex-shrink: 0;
	min-width: 52px;
	padding: 2px 10px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.92);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.hm-dock {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.hm-room-grow { flex: 1; min-width: 4px; }

.hm-fab {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(16, 20, 28, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.96);
	flex-shrink: 0;
}

.hm-fab-on {
	background: var(--hm-lagoon);
	border-color: transparent;
}

.hm-fab-leave {
	background: #b42318;
	border-color: transparent;
}

.hm-room-body {
	flex: 1;
	display: flex;
	gap: 10px;
	padding: 10px;
	min-height: 0;
}

.hm-gallery {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	min-height: 0;
}

.hm-gallery-row {
	flex: 1;
	display: flex;
	justify-content: center;
	gap: 8px;
	min-height: 0;
}

.hm-tile {
	position: relative;
	flex: 1;
	min-width: 0;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(8, 22, 27, 0.92);
	border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.hm-tile-active {
	border: 2px solid var(--hm-gold);
	box-shadow: inset 0 0 0 2px #34d399;
}

.hm-person {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: rgba(255, 255, 255, 0.35);
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent);
}

.hm-name {
	position: absolute;
	inset-inline-start: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.45);
	color: #F4FBFC;
	font-size: 11px;
	font-weight: 600;
}

.hm-chat {
	width: 132px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
}

.hm-chat-head {
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
	font-weight: 700;
}

.hm-bubble {
	padding: 6px 8px;
	border-radius: 10px;
	background: rgba(0, 98, 111, 0.45);
	color: #E8F4F5;
	font-size: 11px;
	line-height: 1.5;
}

.hm-bubble-me {
	background: rgba(239, 168, 16, 0.22);
	color: #F8E7B8;
}

@keyframes hm-drift {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	50% { transform: translate3d(2%, -3%, 0) rotate(-3deg); }
}

/* ——— Features ——— */
.hm-features {
	background: var(--hm-paper);
	padding: 88px 0;
	color: var(--hm-ink);
}

.hm-features h2 {
	margin: 0 0 12px;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 800;
	color: var(--hm-ink);
	text-align: right;
}

.hm-features-lede {
	margin: 0 0 40px;
	max-width: 40em;
	color: var(--hm-muted);
	font-size: 17px;
	line-height: 1.85;
	text-align: right;
}

.hm-feature-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	border-top: 1px solid var(--hm-line);
}

.hm-feature-list li {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 28px 8px;
	border-bottom: 1px solid var(--hm-line);
}

.hm-feature-list li:nth-child(odd) {
	padding-inline-end: 28px;
	border-inline-end: 1px solid var(--hm-line);
}

.hm-feature-list li:nth-child(even) {
	padding-inline-start: 28px;
}

.hm-ico {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	color: var(--hm-lagoon);
	background: #e4eef0;
	clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hm-feature-list h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	color: var(--hm-ink);
}

.hm-feature-list p {
	margin: 0;
	color: var(--hm-muted);
	line-height: 1.85;
}

/* ——— Why points ——— */
.hm-points {
	background: #e7eeef;
	padding: 56px 0;
}

.hm-points-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.hm-points-grid article {
	padding: 8px 28px;
	border-inline-start: 3px solid var(--hm-gold);
}

.hm-points-grid h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	color: var(--hm-lagoon);
}

.hm-points-grid p {
	margin: 0;
	color: var(--hm-muted);
	line-height: 1.85;
}

/* ——— CTA ——— */
.hm-cta {
	background: var(--hm-lagoon);
	padding: 64px 0;
	color: #F4FBFC;
}

.hm-cta-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
}

.hm-cta h2 {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
	color: #F4FBFC;
}

.hm-cta p {
	margin: 0;
	color: #d5ecef;
}

/* ——— Footer ——— */
body.hamaya-theme .site-footer,
body.hamaya-theme footer.site-footer,
body.hamaya-theme .ast-small-footer,
body.hamaya-theme .ast-footer-copyright,
body.hamaya-theme .ast-builder-footer-grid,
body.hamaya-theme .site-below-footer-wrap,
body.hamaya-theme .ast-footer-row-container,
body.hamaya-theme footer .ast-builder-grid-row-container-inner {
	background: var(--hm-room) !important;
	color: #9BB5B8 !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.hamaya-theme .site-footer a,
body.hamaya-theme .ast-footer-copyright a {
	color: var(--hm-gold) !important;
}

body.hamaya-theme .site-footer nav,
body.hamaya-theme .footer-adv,
body.hamaya-theme .ast-footer-overlay,
body.hamaya-theme .site-footer .widget,
body.hamaya-theme .ast-footer-widget-area,
body.hamaya-theme footer .menu,
body.hamaya-theme .ast-builder-grid-row[data-section="section-fb-menu"],
body.hamaya-theme .ast-footer-copyright a[href*="wpastra"],
body.hamaya-theme .site-footer a[href*="wpastra"] {
	display: none !important;
}

body.hamaya-theme .ast-small-footer,
body.hamaya-theme .site-below-footer-wrap {
	border-top: 1px solid rgba(239, 168, 16, 0.16) !important;
	padding-block: 22px !important;
}

body.hamaya-theme .ast-footer-copyright,
body.hamaya-theme .ast-footer-copyright p {
	color: #9BB5B8 !important;
	text-align: center;
}

body.hamaya-theme .ast-scroll-top,
body.hamaya-theme #ast-scroll-top {
	background: var(--hm-lagoon) !important;
	color: #fff !important;
	border-radius: var(--hm-radius) !important;
}

/* ——— Pricing page ——— */
body.page-id-19 #content.site-content,
body.page-id-19 .site-content {
	background: var(--hm-paper);
}

body.page-id-19 #primary {
	margin: 0;
}

body.page-id-19 .entry-content {
	padding-top: 12px;
}

body .hamaya-plans-wrap {
	--hamaya-teal: var(--hm-lagoon);
	--hamaya-teal-dark: var(--hm-lagoon-deep);
	--hamaya-gold: var(--hm-gold);
	--hamaya-ink: var(--hm-ink);
	--hamaya-muted: var(--hm-muted);
	padding: 28px 16px 88px !important;
}

body .hamaya-plans-intro {
	max-width: 640px;
	margin: 0 auto 48px;
	text-align: center;
}

body .hamaya-plans-eyebrow {
	border-radius: var(--hm-radius) !important;
	background: transparent !important;
	border: 1px solid var(--hm-lagoon);
	color: var(--hm-lagoon) !important;
	padding: 4px 12px !important;
}

body .hamaya-plans-intro h1,
body .hamaya-plans-intro h2 {
	font-size: clamp(26px, 4vw, 36px) !important;
	font-weight: 800 !important;
	color: var(--hm-ink) !important;
}

body .hamaya-plans-grid {
	max-width: 760px !important;
	margin: 0 auto !important;
}

body .hamaya-plan-features {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 12px 22px !important;
}

body .hamaya-plan-card--featured .hamaya-check circle {
	fill: #efa810;
	fill-opacity: 0.22;
}

body .hamaya-plan-card--featured .hamaya-check path {
	stroke: #efa810;
}

body .hamaya-plan-card {
	border-radius: var(--hm-radius) !important;
	box-shadow: none !important;
	border: 1px solid var(--hm-line) !important;
	background: #fff !important;
	overflow: visible !important;
	transform: none !important;
}

body .hamaya-plan-card::before {
	display: none !important;
}

body .hamaya-plan-card:hover {
	transform: none !important;
	box-shadow: none !important;
	border-color: var(--hm-lagoon) !important;
}

body .hamaya-plan-card--featured {
	background: var(--hm-room) !important;
	border-color: var(--hm-gold) !important;
}

body .hamaya-plan-card--featured h3,
body .hamaya-plan-card--featured .hamaya-plan-price,
body .hamaya-plan-card--featured .hamaya-plan-features li {
	color: #F4FBFC !important;
}

body .hamaya-plan-badge {
	border-radius: var(--hm-radius) !important;
	background: var(--hm-gold) !important;
	color: var(--hm-gold-ink) !important;
	top: -12px !important;
	left: 18px !important;
}

body .hamaya-plan-cta {
	border-radius: var(--hm-radius) !important;
	background: var(--hm-gold) !important;
	color: var(--hm-gold-ink) !important;
	transform: none !important;
	filter: none !important;
}

body .hamaya-plan-card--featured .hamaya-plan-cta {
	background: var(--hm-gold) !important;
	color: var(--hm-gold-ink) !important;
}

body .hamaya-plan-cta:hover {
	background: #ffbe2e !important;
	color: var(--hm-gold-ink) !important;
	filter: none !important;
	transform: none !important;
}

body .hamaya-plan-cta-arrow {
	display: none;
}

/* ——— WooCommerce (checkout / account) ——— */
body.woocommerce-page .site-content,
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-account .site-content {
	background: var(--hm-paper);
}

body.woocommerce-page .woocommerce,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-account .woocommerce {
	background: #fff;
	border: 1px solid var(--hm-line);
	padding: 28px 24px;
	margin: 32px auto 64px;
	max-width: 920px;
	border-radius: var(--hm-radius);
}

body.woocommerce a.button,
body.woocommerce button.button,
body.woocommerce input.button,
body.woocommerce #place_order {
	background: var(--hm-lagoon) !important;
	color: #fff !important;
	border-radius: var(--hm-radius) !important;
	min-height: 44px;
	font-weight: 700 !important;
	cursor: pointer;
}

body.woocommerce a.button:hover,
body.woocommerce button.button:hover,
body.woocommerce #place_order:hover {
	background: var(--hm-lagoon-deep) !important;
}

body.woocommerce input.input-text,
body.woocommerce textarea,
body.woocommerce select,
body.woocommerce .select2-selection {
	border-radius: var(--hm-radius) !important;
	min-height: 44px;
	border-color: var(--hm-line) !important;
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
	.hm-hero {
		grid-template-columns: 1fr;
		min-height: unset;
		padding: 36px 0 56px;
		gap: 28px;
		overflow: visible;
	}

	.hm-hero-visual {
		min-height: unset;
		order: 2;
	}

	.hm-room {
		height: 360px;
	}

	.hm-chat,
	.hm-room-grow,
	.hm-room-bar .hm-fab:not(.hm-fab-on):not(.hm-fab-leave) {
		display: none;
	}

	.hm-dock {
		display: none;
	}

	.hm-feature-list,
	.hm-points-grid,
	.hm-cta-row {
		grid-template-columns: 1fr;
		display: grid;
	}

	.hm-feature-list li,
	.hm-feature-list li:nth-child(odd),
	.hm-feature-list li:nth-child(even) {
		padding: 22px 0;
		border-inline-end: 0;
	}

	.hm-points-grid article {
		padding: 18px 0 18px 0;
		padding-inline-start: 16px;
	}

	.hm-cta-row {
		justify-items: start;
		gap: 20px;
	}
}

@media (max-width: 640px) {
	body .hamaya-plan-features {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hm-hero h1 {
		font-size: 30px;
	}

	.hm-lede {
		font-size: 16px;
	}

	.hm-btn {
		width: 100%;
	}

	.hm-actions {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.hm-btn,
	body .hamaya-plan-card,
	body .hamaya-plan-cta {
		transition: none !important;
	}
}

/* About + legal */
.hm-about{padding:56px 0}
.hm-about .hm-wrap,.hm-legal-page{max-width:860px;margin:0 auto;padding:0 20px}
.hm-about h2{margin-bottom:16px}
.hm-about p,.hm-legal-page p,.hm-legal-page li{line-height:2;margin:0 0 14px}
.hm-legal{text-align:center;padding:16px 20px;font-size:14px}
.hm-legal a{text-decoration:underline}
.hm-trust{display:block;margin-top:12px}
.hm-trust a{display:inline-block}
.hm-trust img{display:block;width:84px;height:auto}
.hm-legal-page{padding-top:48px;padding-bottom:64px}
.hm-legal-page h1{margin-bottom:8px}
.hm-legal-page h2{margin:32px 0 12px;font-size:1.25rem}
.hm-legal-page{overflow-wrap:anywhere}
.hm-legal-page code{overflow-wrap:anywhere;word-break:break-all}
.hm-legal-page .hm-en{direction:ltr;text-align:left;border-top:1px solid rgba(128,128,128,.3);margin-top:48px;padding-top:8px}
