/* ==========================================================================
   Naiella Core — shared styles of the Studio widgets (hs-w)
   Colours, fonts and radii are the --h-* tokens from the Naiella theme.
   With another theme, the salon tokens below apply.
   ========================================================================== */

/* Motion tokens (the Naiella 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-naiella_bg, #FAF8F5); --h-surface: var(--e-global-color-naiella_surface, #FFFFFF); --h-soft: var(--e-global-color-naiella_soft, #F2EFE9);
	--h-ink: var(--e-global-color-naiella_ink, #1A1918); --h-body: var(--e-global-color-naiella_body, #1A1918); --h-muted: var(--e-global-color-naiella_muted, #66635E);
	--h-line: var(--e-global-color-naiella_line, #E6E2DA); --h-line-2: #E6E2DA; --h-accent: var(--e-global-color-naiella_accent, #8B6F5E); --h-accent-ink: #FFFFFF;
	--h-tint: var(--e-global-color-naiella_tint, #F2EFE9); --h-btn: var(--e-global-color-naiella_btn, #1A1918); --h-btn-ink: #FFFFFF;
	--h-inv: var(--e-global-color-naiella_inv, #161514); --h-inv-ink: #F5F2ED; --h-inv-muted: #A8A29E; --h-inv-accent: #D6C3B5; --h-inv-btn: #FFFFFF; --h-inv-btn-ink: #1A1918;
	--h-inv-line: rgba(255, 255, 255, .14); --h-ph: #EFEAE2; --h-ph-2: #E6E0D6; --h-hero: #1A1918; --h-hero-btn: #FFFFFF; --h-hero-btn-ink: #1A1918; --h-star: #F59E0B;
	--h-font-head: inherit; --h-font-body: inherit; --h-head-weight: 700; --h-head-case: none; --h-sub-case: none; --h-head-track: -.025em;
	--h-r-xl: 24px; --h-r-lg: 20px; --h-r-md: 17px; --h-r-sm: 14px; --h-r-btn: 999px; --h-r-input: 14px;
}

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

.hs-w--space-l { padding-block: 96px; }
.hs-w--space-m { padding-block: 64px; }
.hs-w--space-s { padding-block: 40px; }
.hs-w--space-none { padding-block: 0; }
.hs-w--flush-top { padding-top: 0; }
@media (max-width: 639px) {
	.hs-w--space-l { padding-block: 64px; }
	.hs-w--space-m { padding-block: 48px; }
	.hs-w--flush-top { padding-top: 0; }
}
/* Soft sections are framed by a hairline, as on the mockup. */
.hs-w--bg-soft { border-block: 1px solid var(--h-line); }

.hs-w--bg-surface { background: var(--h-surface); }
.hs-w--bg-soft { background: var(--h-soft); }
.hs-w--bg-tint { background: var(--h-tint); }
/* Inverse: every token inside follows, so components need no special cases. */
.hs-w--bg-inverse, .hs-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 ---------- */
.hs-w__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.hs-w__intro { display: flex; flex-direction: column; gap: 8px; max-width: 720px; min-width: 0; }
.hs-w__aside { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.hs-w__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: -8px 0 40px; }
.hs-w__title, .hs-w h1, .hs-w h2, .hs-w h3, .hs-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;
}
.hs-w h3, .hs-w h4 { text-transform: var(--h-sub-case, var(--h-head-case)); }
.hs-w__title { font-size: 30px; line-height: 1.2; }
@media (min-width: 640px) { .hs-w__title { font-size: 36px; line-height: 1.11; } }
.hs-w__text { margin: 0; max-width: 448px; font-size: 14px; line-height: 1.43; color: var(--h-muted); text-wrap: pretty; }
.hs-w__text strong { color: var(--h-ink); }
.hs-w .h-eyebrow { display: inline-block; font-size: 12px; line-height: 1.33; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--h-ink) 60%, transparent); }
.hs-w .h-eyebrow--sm { font-size: 11px; letter-spacing: .15em; }
@media (max-width: 767px) { .hs-w__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 40px; } }
.hs-w a { color: var(--h-ink); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	.hs-w a:hover { color: var(--h-accent); }
}
.hs-w p { margin: 0; }
.hs-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; }
.hs-w .h-link-arrow { color: var(--h-ink); }

/* ---------- Buttons ---------- */
.hs-w .h-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; max-width: 100%; padding: 6px 24px;
	border-radius: var(--h-r-btn); border: 1px solid transparent;
	font-family: var(--h-font-body); font-size: 14px; font-weight: 600; line-height: 1.25;
	/* 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, opacity .2s ease, transform .16s var(--h-ease-out);
	-webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.hs-w .h-btn:active { transform: scale(.97); }
/* Controls, not content: no text selection or callout on a long press, no double-tap wait;
   pressed feedback the moment a finger lands. */
.hs-w :is(button, .h-chip, .h-seg__opt, .h-iconbtn) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.hs-w :is(.h-chip, .h-seg__opt, .h-iconbtn):active { transform: scale(.97); }
.hs-w .h-btn--sm { min-height: 40px; padding: 4px 20px; font-size: 14px; }
.hs-w .h-btn--xs { min-height: 40px; padding: 4px 14px; font-size: 12px; }
.hs-w .h-btn--lg { min-height: 52px; padding: 6px 28px; font-size: 16px; }
.hs-w .h-btn--block { display: flex; width: 100%; }
.hs-w .h-btn--primary { background: var(--h-btn); color: var(--h-btn-ink); }
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-btn--primary:hover { background: var(--h-btn); color: var(--h-btn-ink); }
}
.hs-w .h-btn--outline { background: transparent; color: var(--h-ink); border-color: var(--h-line); }
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-btn--outline:hover { color: var(--h-ink); background: var(--h-soft); }
}
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-btn--primary:hover, .hs-w .h-btn--hero:hover { opacity: .92; transform: translateY(-1px); }
	.hs-w .h-btn--primary:active, .hs-w .h-btn--hero:active { transform: scale(.97); }
}
.hs-w .h-btn--on-accent { background: var(--h-accent-ink); color: var(--h-accent); }
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-btn--on-accent:hover { background: var(--h-accent-ink); color: var(--h-accent); }
}
.hs-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); }
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-btn--outline-on-accent:hover { color: var(--h-accent-ink); border-color: var(--h-accent-ink); }
}
.hs-w .h-btn--hero { background: var(--h-hero-btn); color: var(--h-hero-btn-ink); }
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-btn--hero:hover { background: var(--h-hero-btn); color: var(--h-hero-btn-ink); }
}
.hs-w .h-btn--outline-hero { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .4); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-btn--outline-hero:hover { color: #FFFFFF; border-color: #FFFFFF; }
}

.hs-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, transform .16s var(--h-ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-iconbtn:hover { border-color: var(--h-ink); color: var(--h-ink); }
}
.hs-w .h-iconbtn--solid { background: var(--h-btn); border-color: var(--h-btn); color: var(--h-btn-ink); }
@media (hover: hover) and (pointer: fine) {
	.hs-w .h-iconbtn--solid:hover { color: var(--h-btn-ink); }
}

/* ---------- Chips (filters, toggles) ---------- */
.hs-w .h-chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
	border-radius: var(--h-r-btn); border: 1px solid var(--h-line); background: var(--h-surface); color: var(--h-ink);
	font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .16s var(--h-ease-out);
}
.hs-w .h-chip[aria-pressed="true"], .hs-w .h-chip[aria-selected="true"], .hs-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. */
.hs-w .h-card { position: relative; overflow: visible; overflow-wrap: break-word; transition: transform .25s var(--h-ease-out); }
.hs-w .h-card > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.hs-w .h-card > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.hs-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) {
	.hs-w .h-chip:hover { border-color: var(--h-ink); }
}

/* ---------- Mockup building blocks ---------- */
/* A surface panel: the white (Salon) / dark (Barber) card with a hairline. */
.hs-w .h-panel { background: var(--h-surface); border: 1px solid var(--h-line); border-radius: var(--h-r-xl); overflow-wrap: break-word; }
.hs-w .h-panel--soft { background: var(--h-soft); }
/* Solid badge: "Most popular", "Save €35". */
.hs-w .h-badge {
	display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--h-r-btn);
	background: var(--h-btn); color: var(--h-btn-ink);
	font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.hs-w .h-badge--lg { padding: 4px 12px; font-size: 12px; line-height: 1.33; }
/* Soft pill with an icon: durations, tags. */
.hs-w .h-pill {
	display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--h-r-btn);
	background: var(--h-soft); color: var(--h-ink); font-size: 11px; font-weight: 500; line-height: 1.45; white-space: nowrap;
}
.hs-w .h-pill--tag { padding: 4px 12px; font-size: 12px; line-height: 1.33; }
/* "Available today 14:30" */
.hs-w .h-avail {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--h-r-btn);
	background: rgba(16, 185, 129, .15); color: #059669; font-size: 11px; font-weight: 600; line-height: 1.45; white-space: nowrap;
}
.h-look-chrome .hs-w .h-avail { color: #34D399; }
.hs-w .h-avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10B981; flex: none; }
/* Segmented control (hair length). */
.hs-w .h-seg {
	display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 6px; padding: 4px;
	background: var(--h-soft); border: 1px solid var(--h-line); border-radius: var(--h-r-input, 14px);
}
.hs-w .h-seg__opt {
	min-height: 30px; padding: 4px 6px; border: 0; border-radius: calc(var(--h-r-input, 14px) * .75);
	background: transparent; color: var(--h-ink); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .16s var(--h-ease-out);
}
.hs-w .h-seg__opt[aria-pressed="true"], .hs-w .h-seg__opt[aria-checked="true"] { background: var(--h-btn); color: var(--h-btn-ink); }
/* Form fields inside widgets (the Naiella theme styles them too; this keeps other themes in line). */
.hs-w .h-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hs-w .h-field > label, .hs-w .h-label { font-size: 12px; font-weight: 600; line-height: 1.33; color: var(--h-ink); }
.hs-w .h-input {
	width: 100%; min-height: 46px; padding: 0 16px; border: 1px solid var(--h-line); border-radius: var(--h-r-input, 14px);
	background: var(--h-surface); color: var(--h-ink); font-family: inherit; font-size: 14px; transition: border-color .2s ease;
}
.hs-w textarea.h-input { min-height: 112px; padding: 12px 16px; line-height: 1.6; resize: vertical; }
.hs-w .h-input:focus { outline: none; border-color: var(--h-accent); }

/* ---------- Modal (service details) ---------- */
.h-modal {
	position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(0, 0, 0, .65); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.h-modal.is-open { opacity: 1; pointer-events: auto; }
/* Closing answers faster than opening. */
.h-modal:not(.is-open), .h-modal:not(.is-open) .h-modal__panel { transition-duration: .18s; }
.h-modal[hidden] { display: none; }
.h-modal__panel {
	position: relative; width: 100%; max-width: 512px; max-height: 90vh; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain; padding: 32px;
	background: var(--h-surface); color: var(--h-ink); border: 1px solid var(--h-line); border-radius: var(--h-r-xl);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
	transform: translateY(16px) scale(.98); transition: transform .25s var(--h-ease-out);
}
.h-modal.is-open .h-modal__panel { transform: none; }
.h-modal__close {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0;
	border: 0; border-radius: 999px; background: transparent; color: var(--h-ink); cursor: pointer; transition: opacity .2s ease;
}
@media (hover: hover) and (pointer: fine) {
	.h-modal__close:hover { opacity: .7; }
}
@media (max-width: 639px) { .h-modal__panel { padding: 24px; } }
html.h-modal-open, html.h-modal-open body { overflow: hidden; }
.hs-w .h-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-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;
}
.hs-w .h-ph__label { line-height: 1.2; }

.hs-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; }

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

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

@media (prefers-reduced-motion: reduce) {
	.hs-w .h-card, .hs-w .h-btn, .hs-w .h-chip, .hs-w .h-seg__opt, .hs-w .h-iconbtn { transition: none; }
	.hs-w :is(.h-chip, .h-seg__opt, .h-iconbtn):active { transform: none; }
	.hs-w .h-btn:active, .hs-w .h-btn:hover { transform: none; }
	.h-modal__panel, .h-modal.is-open .h-modal__panel { transform: none; transition: none; }
}

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

/* A phone zooms into a field under 16px and stays zoomed. */
@media (pointer: coarse) { .hs-w .h-input { font-size: 16px; } }
