/* Yalhem Sites shared components. Loaded for themes that declare add_theme_support( 'yalhem-components' ).
   Themes set the tokens below on :root and add their own section layouts. */
:root {
	--ys-bg: #fafafa; --ys-surface: #fff; --ys-ink: #1b1b1b; --ys-muted: #636363; --ys-line: #e5e5e5;
	--ys-accent: #333; --ys-on-accent: #fff; --ys-accent-hover: #000; --ys-soft: #f0f0f0; --ys-on-soft: #333;
	--ys-r: 10px; --ys-btn-r: 10px; --ys-wrap: 1180px; --ys-font: system-ui, sans-serif; --ys-display: var(--ys-font);
	--ys-hdr-h: 70px; --ys-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html.ys-locked { overflow: hidden; }
body { margin: 0; background: var(--ys-bg); color: var(--ys-ink); font-family: var(--ys-font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ys-accent); outline-offset: 2px; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.ys-main p, .ys-main h1, .ys-main h2, .ys-main h3, .ys-main h4, .ys-main figure, .ys-main ul { margin: 0; }
.ys-main h1, .ys-main h2, .ys-main h3 { font-family: var(--ys-display); }
.ys-main h1 em, .ys-main h2 em { font-style: normal; color: var(--ys-accent); }
.ys-wrap { max-width: var(--ys-wrap); margin-inline: auto; padding-inline: 20px; }
.ys-icon { font-style: normal; line-height: 1; }

/* buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-block-button__link, .ys-order-btn, .ys-send, .ys-orderbar__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--ys-btn-r);
	padding: 13px 22px; background: var(--ys-accent); color: var(--ys-on-accent); font: 700 15px/1 var(--ys-font);
	text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.wp-block-button__link:hover, .ys-order-btn:hover, .ys-send:hover, .ys-orderbar__btn:hover { background: var(--ys-accent-hover); color: var(--ys-on-accent); }
.wp-block-button__link:active, .ys-order-btn:active { transform: translateY(1px); }
.ys-btn-soft .wp-block-button__link { background: var(--ys-soft); color: var(--ys-on-soft); }
.ys-btn-line .wp-block-button__link { background: transparent; color: var(--ys-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.ys-btn-line .wp-block-button__link:hover { background: var(--ys-ink); color: var(--ys-bg); }
.ys-btn-white .wp-block-button__link { background: #fff; color: var(--ys-ink); }
.ys-btn-out .wp-block-button__link { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.ys-btn-ghost .wp-block-button__link { background: rgba(0, 0, 0, .55); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.wp-block-button__link::before { font-family: 'tabler-icons'; font-weight: 400; font-size: 19px; }
.ys-btn-book .wp-block-button__link::before { content: "\ea53"; }   /* calendar */
.ys-btn-phone .wp-block-button__link::before { content: "\eb09"; }  /* phone */
.ys-btn-map .wp-block-button__link::before { content: "\eae8"; }    /* map-pin */
.ys-btn-whatsapp .wp-block-button__link::before { content: "\ec74"; } /* brand-whatsapp */
.ys-btn-quote .wp-block-button__link::before { content: "\f028"; } /* file-description */
.ys-btn-arrow .wp-block-button__link::after { content: "\ea19"; font-family: 'tabler-icons'; font-weight: 400; font-size: 18px; } /* arrow-left (forward in RTL) */

/* header */
.ys-hdr { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ys-bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ys-line); }
.ys-hdr__in { max-width: var(--ys-wrap); margin-inline: auto; padding-inline: 20px; height: var(--ys-hdr-h); display: flex; align-items: center; gap: 22px; }
.ys-brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font: 700 21px/1 var(--ys-display); }
.ys-brand__icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--ys-accent); color: var(--ys-on-accent); border-radius: var(--ys-r); font-size: 20px; }
.ys-brand__logo { max-height: 46px; width: auto; display: block; }
.ys-nav { margin-inline-start: auto; gap: 22px; font-weight: 500; font-size: 15px; }
.ys-nav a { text-decoration: none; }
.ys-nav a:hover { color: var(--ys-accent); }
.ys-order-btn { position: relative; }
.ys-order-btn i { font-size: 19px; }
.ys-badge { position: absolute; top: -7px; inset-inline-start: -7px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ys-ink); color: var(--ys-bg); font: 700 12px/22px var(--ys-font); text-align: center; padding: 0 5px; }

/* small building blocks */
.ys-fact { display: flex; align-items: center; gap: 8px; }
.ys-fact .ys-icon { color: var(--ys-accent); font-size: 20px; flex: none; }
.ys-info { text-decoration: none; color: inherit; }
.ys-point { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; }
.ys-point .ys-icon { grid-row: span 2; align-self: center; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--ys-r); background: var(--ys-soft); color: var(--ys-accent); font-size: 23px; }
.ys-point h3 { font: 700 17px/1.5 var(--ys-font); }
.ys-point p { color: var(--ys-muted); font-size: 15px; line-height: 1.6; }
.ys-hours { list-style: none; padding: 0; border-top: 1px solid var(--ys-line); }
.ys-hours li { padding-block: 10px; border-bottom: 1px solid var(--ys-line); }
.ys-map { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: var(--ys-r); display: block; }
.ys-empty, .ys-none { color: var(--ys-muted); text-align: center; padding: 28px 0; }
.ys-price { font-weight: 800; white-space: nowrap; }

/* menu: list layout */
.ys-scroll--tabs { position: sticky; top: var(--ys-hdr-h); z-index: 20; background: var(--ys-bg); border-bottom: 1px solid var(--ys-line); margin-top: 14px; --ys-scroll-btn-fg: var(--ys-ink); }
.ys-tabs { display: flex; gap: 6px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.ys-tabs::-webkit-scrollbar { display: none; }
.ys-tabs a { flex: none; padding: 8px 16px; border-radius: var(--ys-btn-r); text-decoration: none; font-weight: 700; color: var(--ys-muted); }
.ys-tabs a.is-active { background: var(--ys-accent); color: var(--ys-on-accent); }
.ys-cat { padding-top: 28px; scroll-margin-top: calc(var(--ys-hdr-h) + 70px); }
.ys-cat__title { font: 700 22px/1.3 var(--ys-display); display: flex; align-items: center; gap: 12px; margin: 0; }
.ys-cat__title::after { content: ""; flex: 1; height: 1px; background: var(--ys-line); }
.ys-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 8px; }
.ys-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px dashed var(--ys-line); }
.ys-row img, .ys-row .ys-noimg { width: 72px; height: 72px; object-fit: cover; border-radius: var(--ys-r); }
.ys-noimg { display: grid; place-items: center; background: var(--ys-soft); color: var(--ys-accent); font-size: 26px; }
.ys-row h4 { font: 700 17px/1.4 var(--ys-font); margin: 0; }
.ys-row p { font-size: 14px; color: var(--ys-muted); line-height: 1.5; margin: 2px 0 0; }
.ys-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* menu: cards layout */
.ys-bar { position: sticky; top: var(--ys-hdr-h); z-index: 20; background: var(--ys-bg); padding-block: 12px; border-bottom: 1px solid var(--ys-line); display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.ys-scroll--chips { flex: 1; --ys-scroll-btn-fg: var(--ys-ink); }
.ys-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ys-chips::-webkit-scrollbar { display: none; }
.ys-chip { flex: none; border: 1.5px solid var(--ys-line); background: var(--ys-surface); border-radius: var(--ys-btn-r); padding: 8px 15px; font: 500 14px/1 var(--ys-font); color: var(--ys-ink); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ys-chip i { font-size: 17px; color: var(--ys-accent); }
.ys-chip[aria-pressed="true"] { background: var(--ys-accent); border-color: var(--ys-accent); color: var(--ys-on-accent); }
.ys-chip[aria-pressed="true"] i { color: inherit; }
.ys-search { position: relative; flex: 0 0 230px; }
.ys-search input { width: 100%; border: 1.5px solid var(--ys-line); border-radius: var(--ys-btn-r); padding: 9px 38px 9px 12px; font: 400 14px var(--ys-font); background: var(--ys-surface); color: var(--ys-ink); }
.ys-search input:focus { outline: 0; border-color: var(--ys-accent); }
.ys-search i { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--ys-muted); }
.ys-menu .ys-menu__heading { display: none; } /* the section heading already names the list */
.ys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.ys-card { background: var(--ys-surface); border-radius: var(--ys-r); overflow: hidden; box-shadow: var(--ys-shadow); display: flex; flex-direction: column; }
.ys-card__img { position: relative; aspect-ratio: 16/10; background: var(--ys-soft); margin: 0; overflow: hidden; }
.ys-card__img img, .ys-card__img .ys-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ys-card__tag { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--ys-surface); color: var(--ys-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--ys-btn-r); }
.ys-card__in { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.ys-card h3 { font: 700 17px/1.4 var(--ys-font); margin: 0; }
.ys-card p { font-size: 14px; color: var(--ys-muted); line-height: 1.6; margin: 4px 0 0; flex: 1; }
.ys-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }

/* add / stepper */
.ys-add { width: 40px; height: 40px; border: 0; border-radius: var(--ys-btn-r); background: var(--ys-soft); color: var(--ys-accent); font-size: 21px; cursor: pointer; display: grid; place-items: center; }
.ys-add:hover { background: var(--ys-accent); color: var(--ys-on-accent); }
.ys-step { display: flex; align-items: center; background: var(--ys-accent); color: var(--ys-on-accent); border-radius: var(--ys-btn-r); }
.ys-step button { width: 34px; height: 38px; border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; }
.ys-step output { min-width: 18px; text-align: center; font-weight: 800; }

/* order bar + sheet */
.ys-orderbar { position: fixed; bottom: 16px; left: 50%; transform: translate(-50%, 150%); z-index: 40; transition: transform .25s; display: flex; align-items: center; gap: 12px; padding: 8px; padding-inline-start: 18px; border-radius: calc(var(--ys-btn-r) + 6px); background: var(--ys-ink); color: var(--ys-bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); white-space: nowrap; }
.ys-orderbar.is-open { transform: translate(-50%, 0); }
.ys-orderbar__btn i, .ys-send i { font-size: 19px; }
.ys-sheet { position: fixed; inset: 0; z-index: 50; }
.ys-sheet__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.ys-sheet__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(440px, 100%); background: var(--ys-surface); display: flex; flex-direction: column; }
.ys-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--ys-line); }
.ys-sheet__head h3 { font: 700 22px/1 var(--ys-display); margin: 0; }
.ys-sheet__x { border: 0; background: var(--ys-soft); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ys-ink); }
.ys-sheet__body { overflow: auto; padding: 4px 20px 20px; flex: 1; }
.ys-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--ys-line); }
.ys-line img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--ys-r); }
.ys-line__name { font-weight: 500; font-size: 15px; }
.ys-line__name small { display: block; color: var(--ys-muted); font-size: 13px; }
.ys-fld { display: block; margin-top: 14px; }
.ys-fld span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ys-fld input, .ys-fld textarea, .ys-fld select { width: 100%; border: 1.5px solid var(--ys-line); border-radius: var(--ys-r); padding: 11px 12px; font: 400 15px var(--ys-font); color: var(--ys-ink); background: var(--ys-bg); }
.ys-fld input:focus, .ys-fld textarea:focus, .ys-fld select:focus { outline: 0; border-color: var(--ys-accent); }
.ys-fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; align-items: end; }
.ys-fld-row .ys-fld { margin-top: 0; }
.ys-quote .ys-fld-row:first-child { margin-top: 0; }
.ys-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
.ys-seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border: 1.5px solid var(--ys-line); border-radius: var(--ys-r); cursor: pointer; font-weight: 700; font-size: 14px; }
.ys-seg input { accent-color: var(--ys-accent); }
.ys-seg label:has(input:checked) { border-color: var(--ys-accent); background: var(--ys-soft); }
.ys-sheet__foot { padding: 14px 20px 18px; border-top: 1px solid var(--ys-line); }
.ys-sheet__total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.ys-send { width: 100%; padding-block: 15px; font-size: 16px; }

/* footer */
.ys-ftr { padding: 26px max(20px, calc((100% - var(--ys-wrap)) / 2 + 20px)); border-top: 1px solid var(--ys-line); gap: 14px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ys-muted); }
.ys-ftr .ys-brand { font-size: 17px; }
.ys-ftr .ys-brand__icon { width: 30px; height: 30px; font-size: 16px; }
.ys-ftr .ys-brand__logo { max-height: 34px; }
.ys-credit { margin: 0; }
.ys-social { gap: 8px !important; }
.ys-social .wp-social-link { background: var(--ys-accent) !important; color: var(--ys-on-accent) !important; }


/* ---------- Business sites: inner page header, projects, gallery dialog, quote form ---------- */
.ys-page-hero { padding-block: 56px 36px; border-bottom: 1px solid var(--ys-line); }
.ys-page-hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.2; }
.ys-page-hero__in > p { color: var(--ys-muted); font-size: 18px; margin-top: 10px; max-width: 60ch; }
.ys-projects .ys-scroll--chips { margin-top: 18px; }
.ys-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.ys-project { min-width: 0; }
.ys-project__open { display: block; width: 100%; padding: 0; border: 0; background: var(--ys-soft); cursor: zoom-in; position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--ys-r); }
.ys-project__open img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ys-project__open:hover img { transform: scale(1.04); }
.ys-project__count { position: absolute; bottom: 10px; inset-inline-end: 10px; display: inline-flex; gap: 4px; align-items: center; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; padding: 4px 9px; border-radius: 999px; }
.ys-project__in { padding-top: 12px; }
.ys-project__cat { color: var(--ys-accent); font-size: 13px; font-weight: 700; }
.ys-project h3 { font: 700 18px/1.4 var(--ys-display); margin: 2px 0 0; }
.ys-project p { color: var(--ys-muted); font-size: 14px; margin: 2px 0 0; }
.ys-pdlg { width: min(1000px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--ys-r); background: var(--ys-surface); color: var(--ys-ink); display: none; overflow: hidden; }
.ys-pdlg[open] { display: grid; grid-template-columns: 1.6fr 1fr; }
.ys-pdlg::backdrop { background: rgba(0, 0, 0, .7); }
.ys-pdlg__media { position: relative; background: #000; min-height: 320px; }
.ys-pdlg__media img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; display: block; }
.ys-pdlg__nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #111; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.ys-pdlg__nav--prev { inset-inline-start: 12px; }
.ys-pdlg__nav--next { inset-inline-end: 12px; }
.ys-pdlg__pos { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: #fff; background: rgba(0, 0, 0, .55); font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.ys-pdlg__body { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.ys-pdlg__body h3 { font: 700 24px/1.3 var(--ys-display); margin: 0; }
.ys-pdlg__meta { color: var(--ys-accent); font-weight: 700; margin: 0; }
.ys-pdlg__body p { margin: 0; color: var(--ys-muted); }
.ys-pdlg__body .ys-send { margin-top: auto; }
.ys-pdlg__x { position: absolute; top: 10px; inset-inline-end: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ys-surface); color: var(--ys-ink); font-size: 20px; cursor: pointer; box-shadow: var(--ys-shadow); }
.ys-quote-link { display: inline-flex; align-items: center; gap: 4px; color: var(--ys-accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.ys-quote-link:hover { text-decoration: underline; }
.ys-quote { background: var(--ys-surface); border: 1px solid var(--ys-line); border-radius: var(--ys-r); padding: 24px; }
.ys-quote .ys-fld:first-child { margin-top: 0; }
.ys-quote .ys-send { margin-top: 18px; }
.ys-quote__err { color: #B42318; font-size: 14px; margin: 10px 0 0; }
@media (max-width: 860px) {
	.ys-project-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
	.ys-pdlg[open] { grid-template-columns: 1fr; }
	.ys-pdlg__media { min-height: 240px; max-height: 55vh; }
	.ys-quote { padding: 18px; }
	.ys-fld-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .ys-project-grid { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
	.ys-nav { display: none; }
	.ys-hdr .ys-order-btn { margin-inline-start: auto; }
	.ys-rows { grid-template-columns: 1fr; }
	.ys-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ys-bar { flex-direction: column; align-items: stretch; gap: 10px; }
	.ys-search { flex: none; }
	.ys-card__in { padding: 12px; }
	.ys-card p { display: none; }
	.ys-card__foot { flex-wrap: wrap; }
	.ys-sheet__panel { inset-block: auto 0; inset-inline: 0; width: 100%; max-height: 90vh; border-radius: 18px 18px 0 0; }
}
@media (max-width: 420px) { .ys-grid { grid-template-columns: 1fr; } .ys-card p { display: block; } }
/* small phones: long business names + header button must fit one row */
@media (max-width: 480px) {
	.ys-hdr__in { gap: 10px; }
	.ys-brand { min-width: 0; flex: 1 1 auto; }
	.ys-brand__name { overflow: hidden; text-overflow: ellipsis; }
	.ys-brand__icon { flex: none; }
	.ys-hdr__cta, .ys-hdr .ys-order-btn { flex: none; }
	.ys-hdr__cta .wp-block-button__link, .ys-hdr .ys-order-btn { padding: 10px 13px; font-size: 14px; }
	.ys-hdr__cta .wp-block-button__link::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
