/* ==========================================================================
   Hairiel Core — shared widget styles
   Colours, fonts and radii are the --h-* tokens from the Hairiel theme.
   With another theme, the salon tokens below apply.
   ========================================================================== */

/* Motion tokens (the Hairiel theme prints the same ones; :where keeps them overridable). */
:where(:root) { --h-ease-out: cubic-bezier(.23, 1, .32, 1); --h-ease-in-out: cubic-bezier(.77, 0, .175, 1); }

body:not([class*="h-look-"]) {
	--h-bg: var(--e-global-color-hairiel_bg, #FAF8F5); --h-surface: var(--e-global-color-hairiel_surface, #FFFFFF); --h-soft: var(--e-global-color-hairiel_soft, #F2EDE7);
	--h-ink: var(--e-global-color-hairiel_ink, #1A1614); --h-body: var(--e-global-color-hairiel_body, #4F4741); --h-muted: var(--e-global-color-hairiel_muted, #6A615B);
	--h-line: var(--e-global-color-hairiel_line, #E4DDD5); --h-line-2: #CFC6BF; --h-accent: var(--e-global-color-hairiel_accent, #7A4E5A); --h-accent-ink: #FFFFFF;
	--h-tint: var(--e-global-color-hairiel_tint, #F3E8EA); --h-btn: var(--e-global-color-hairiel_btn, #1A1614); --h-btn-ink: #FFFFFF;
	--h-inv: var(--e-global-color-hairiel_inv, #1F1A18); --h-inv-ink: #FFFFFF; --h-inv-muted: #CFC6BF; --h-inv-accent: #D9BFC6; --h-inv-btn: #FFFFFF; --h-inv-btn-ink: #1A1614;
	--h-inv-line: rgba(255, 255, 255, .14); --h-ph: #EFE8E1; --h-ph-2: #E4DBD2; --h-hero: #2A2321; --h-hero-btn: #FFFFFF; --h-hero-btn-ink: #1A1614; --h-star: #B8862E;
	--h-font-head: inherit; --h-font-body: inherit; --h-head-weight: 500; --h-head-case: none; --h-head-track: -.025em;
	--h-r-xl: 28px; --h-r-lg: 22px; --h-r-md: 16px; --h-r-sm: 12px; --h-r-btn: 999px;
}

/* ---------- Section ---------- */
.h-w { position: relative; width: 100%; color: var(--h-ink); font-family: var(--h-font-body); }
.h-w *, .h-w *::before, .h-w *::after { box-sizing: border-box; }
.h-w__container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .h-w__container { padding-inline: 20px; } }

.h-w--space-l { padding-block: 110px; }
.h-w--space-m { padding-block: 72px; }
.h-w--space-s { padding-block: 40px; }
.h-w--space-none { padding-block: 0; }
.h-w--flush-top { padding-top: 0; }
@media (max-width: 640px) {
	.h-w--space-l { padding-block: 72px; }
	.h-w--space-m { padding-block: 56px; }
	.h-w--flush-top { padding-top: 0; }
}

.h-w--bg-surface { background: var(--h-surface); }
.h-w--bg-soft { background: var(--h-soft); }
.h-w--bg-tint { background: var(--h-tint); }
/* Inverse: every token inside follows, so components need no special cases. */
.h-w--bg-inverse, .h-inv {
	background: var(--h-inv);
	--h-ink: var(--h-inv-ink);
	--h-body: var(--h-inv-muted);
	--h-muted: var(--h-inv-muted);
	--h-accent: var(--h-inv-accent);
	--h-line: var(--h-inv-line);
	--h-line-2: color-mix(in srgb, var(--h-inv-ink) 32%, transparent);
	--h-surface: color-mix(in srgb, var(--h-inv-ink) 6%, transparent);
	--h-soft: color-mix(in srgb, var(--h-inv-ink) 8%, transparent);
	--h-btn: var(--h-inv-btn);
	--h-btn-ink: var(--h-inv-btn-ink);
	--h-bg: var(--h-inv);
	color: var(--h-inv-ink);
}

/* ---------- Heading block ---------- */
.h-w__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.h-w__intro { display: flex; flex-direction: column; gap: 14px; max-width: 660px; }
.h-w__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.h-w__title, .h-w h1, .h-w h2, .h-w h3, .h-w h4 {
	margin: 0; color: var(--h-ink);
	font-family: var(--h-font-head); font-weight: var(--h-head-weight);
	text-transform: var(--h-head-case); letter-spacing: var(--h-head-track);
	text-wrap: balance;
}
.h-w__title { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.h-w__text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--h-muted); text-wrap: pretty; }
.h-w .h-eyebrow { display: inline-block; font-size: 13px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--h-accent); }
.h-w .h-eyebrow--sm { font-size: 12px; letter-spacing: .08em; }
.h-w a { color: var(--h-ink); text-underline-offset: 3px; }
.h-w a:hover { color: var(--h-accent); }
.h-w p { margin: 0; }
.h-w .h-icon { display: block; flex: none; }

.h-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.h-w .h-link-arrow { color: var(--h-ink); }

/* ---------- Buttons ---------- */
.h-w .h-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; max-width: 100%; padding: 8px 26px;
	border-radius: var(--h-r-btn); border: 1px solid transparent;
	font-family: var(--h-font-body); font-size: 15px; font-weight: 500; line-height: 1.2;
	/* One line unless a long (translated) label can't fit — then it wraps instead of overflowing. */
	text-decoration: none; text-align: center; white-space: normal; text-wrap: balance; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--h-ease-out);
	-webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.h-w .h-btn:active { transform: scale(.97); }
.h-w .h-btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.h-w .h-btn--lg { min-height: 56px; padding: 0 30px; }
.h-w .h-btn--block { display: flex; width: 100%; }
.h-w .h-btn--primary, .h-w .h-btn--primary:hover { background: var(--h-btn); color: var(--h-btn-ink); }
.h-w .h-btn--primary:hover { background: color-mix(in srgb, var(--h-btn) 86%, var(--h-bg)); }
.h-w .h-btn--outline { background: transparent; color: var(--h-ink); border-color: var(--h-line-2); }
.h-w .h-btn--outline:hover { color: var(--h-ink); border-color: var(--h-ink); }
.h-w .h-btn--on-accent, .h-w .h-btn--on-accent:hover { background: var(--h-accent-ink); color: var(--h-accent); }
.h-w .h-btn--outline-on-accent { background: transparent; color: var(--h-accent-ink); border-color: color-mix(in srgb, var(--h-accent-ink) 55%, transparent); }
.h-w .h-btn--outline-on-accent:hover { color: var(--h-accent-ink); border-color: var(--h-accent-ink); }
.h-w .h-btn--hero, .h-w .h-btn--hero:hover { background: var(--h-hero-btn); color: var(--h-hero-btn-ink); }
.h-w .h-btn--outline-hero { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .5); }
.h-w .h-btn--outline-hero:hover { color: #FFFFFF; border-color: #FFFFFF; }

.h-w .h-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 48px; height: 48px; padding: 0;
	border-radius: var(--h-r-btn); border: 1px solid var(--h-line); background: var(--h-surface); color: var(--h-ink);
	cursor: pointer; text-decoration: none; transition: border-color .2s ease;
}
.h-w .h-iconbtn:hover { border-color: var(--h-ink); color: var(--h-ink); }
.h-w .h-iconbtn--solid { background: var(--h-btn); border-color: var(--h-btn); color: var(--h-btn-ink); }
.h-w .h-iconbtn--solid:hover { color: var(--h-btn-ink); }

/* ---------- Chips (filters, toggles) ---------- */
.h-w .h-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
	border-radius: var(--h-r-btn); border: 1px solid var(--h-line-2); background: transparent; color: var(--h-ink);
	font-family: inherit; font-size: 14px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.h-w .h-chip[aria-pressed="true"], .h-w .h-chip[aria-selected="true"], .h-w .h-chip.is-active {
	background: var(--h-btn); border-color: var(--h-btn); color: var(--h-btn-ink);
}

/* ---------- Cards, images, placeholders ---------- */
/* Cards lift on hover; the shadow is its own layer that fades in, so only
   transform and opacity animate. The card does not clip (that would clip the
   shadow): its first and last child carry the rounded corners instead. */
.h-w .h-card { position: relative; overflow: visible; overflow-wrap: break-word; transition: transform .25s var(--h-ease-out); }
.h-w .h-card > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.h-w .h-card > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.h-w .h-card::after {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35);
	opacity: 0; transition: opacity .25s ease;
}
@media (hover: hover) and (pointer: fine) {
	.h-w .h-card:hover { transform: translateY(-4px); }
	.h-w .h-card:hover::after { opacity: 1; }
	.h-w .h-chip:hover { border-color: var(--h-ink); }
}
.h-w .h-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-w .h-ph {
	display: flex; align-items: flex-end; gap: 8px; width: 100%; height: 100%; padding: 14px;
	background-color: var(--h-ph); color: var(--h-muted);
	background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--h-ink) 5%, transparent) 0 2px, transparent 2px 18px);
	font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.h-w .h-ph__label { line-height: 1.2; }

.h-w .h-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.h-w :focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }

.h-w .h-check { color: var(--h-accent); }

@media (prefers-reduced-motion: reduce) {
	.h-w .h-card, .h-w .h-btn, .h-w .h-chip { transition: none; }
	.h-w .h-btn:active { transform: none; }
	.h-w .h-card:hover { transform: none; }
}

/* Elementor: our widgets bring their own spacing. */
.elementor-widget[class*="elementor-widget-hairiel-"] > .elementor-widget-container { margin: 0; padding: 0; }
