/*
 * Header, sticky bar, menu panel, search overlay — measured from live (ThemeREX layout 7460 + Customizer CSS).
 */

/* ── Header (absolute over the page, as live's "header_position_over") ── */
.sg-header { position: absolute; z-index: 999; top: 0; left: 0; right: 0; }
.admin-bar .sg-header { top: 32px; }

.sg-header__bar { display: flex; align-items: center; }

/* Desktop bar: logo · menu · search (hidden ≤1024). */
.sg-header__bar--full { padding: 20px 50px; justify-content: space-between; min-height: 118.5px; }
.sg-header__logo { display: block; flex: none; }
.sg-header__bar--full .sg-header__logo img { width: 300px; height: auto; }
.sg-header__nav { margin-left: auto; }
.sg-menu {
	--sg-menu-pad: 12px;
	display: flex; align-items: center; gap: 30px;
}
.sg-menu a {
	position: relative; display: block; padding: 12px var(--sg-menu-pad);
	color: var(--c-white); font-size: 17px; font-weight: 500; line-height: 25.5px;
	white-space: nowrap; /* Never wrap: the bar tightens instead (below). */
}
/* "Zoom line" hover: a 1px line grows from the centre. */
.sg-menu a::after {
	content: ""; position: absolute; left: var(--sg-menu-pad); right: var(--sg-menu-pad); bottom: 8px; height: 1px;
	background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease);
}
.sg-menu a:hover::after, .sg-menu a:focus-visible::after,
.sg-menu .current-menu-item > a::after, .sg-menu .current_page_parent > a::after { transform: scaleX(1); }
.sg-header__search { margin-left: 40px; width: 24px; height: 28px; display: grid; place-items: center; color: var(--c-white); }
.sg-header__search:hover { color: var(--c-grey); }
@media (max-width: 1440px) { .sg-header__bar--full { padding: 20px; } }
/*
 * Owner: the menu should stay on one line as long as possible. From 1340px up the bar is live's exact size;
 * between 1025 and 1339px the logo, type (17→15px), link padding and gaps shrink smoothly so all items fit.
 * Below 1100px, items with the menu class "sg-hide-tight" (Blog; set in Appearance → Menus) step out — they
 * stay in the menu panel and the footer.
 */
@media (min-width: 1025px) and (max-width: 1339px) {
	.sg-header__bar--full .sg-header__logo img { width: clamp(220px, calc(220px + (100vw - 1025px) * 80 / 315), 300px); }
	.sg-menu {
		--sg-menu-pad: clamp(8px, calc(8px + (100vw - 1025px) * 4 / 315), 12px);
		gap: clamp(12px, calc(12px + (100vw - 1025px) * 18 / 315), 30px);
	}
	.sg-menu a { font-size: clamp(15px, calc(15px + (100vw - 1025px) * 2 / 315), 17px); }
	.sg-header__search { margin-left: clamp(20px, calc(20px + (100vw - 1025px) * 20 / 315), 40px); }
}
@media (min-width: 1025px) and (max-width: 1099px) {
	.sg-menu .sg-hide-tight { display: none; }
}

/* Compact bar (≤1024): logo · ART · menu button on a 50% black band. */
.sg-header__bar--compact { display: none; padding: 10px 20px; background: rgba(0, 0, 0, .5); }
.sg-header__logo--compact img { width: 183px; height: auto; }
.sg-header__art { margin-left: auto; margin-right: 26px; }
.sg-header__bar--compact .sg-burger { margin-right: 10px; }
@media (max-width: 767px) { .sg-header__bar--compact .sg-burger { margin-right: 0; } }
.sg-header__bar--compact .sg-art-link img { width: 42px; }

@media (max-width: 1024px) {
	.sg-header__bar--full { display: none; }
	.sg-header__bar--compact { display: flex; }
}
/* 768–880 (Elementor "mobile extra"): ART 41px, tighter gap to the menu button. */
@media (min-width: 768px) and (max-width: 880px) {
	.sg-header__bar--compact .sg-art-link img { width: 41px; }
	.sg-header__art { margin-right: 14px; }
	.sg-header__bar--compact .sg-burger { margin-right: 7px; }
}
@media (max-width: 767px) {
	.sg-header__bar--compact .sg-art-link img { width: 39px; }
}

/* "ART Collection" image link and menu button (shared by bars). */
.sg-art-link { display: block; flex: none; line-height: 0; }
.sg-art-link img { width: 64px; height: auto; }
.sg-art-link:hover { opacity: .75; }
.sg-burger { display: block; flex: none; width: 45px; height: 32px; color: var(--c-white); line-height: 0; }
.sg-burger__icon { width: 100%; height: 100%; fill: currentColor; transition: opacity .3s; }
.sg-burger:hover .sg-burger__icon { opacity: .7; }
@media (max-width: 1199px) { .sg-burger { width: 32px; height: 23px; } }
@media (max-width: 767px)  { .sg-burger { width: 28px; height: 20px; } }

/* ── Sticky bar: slides down after 500/400/350px of scroll (base.js sets .sg-sticky-on). ── */
.sg-sticky {
	position: fixed; z-index: 998; top: 0; left: 0; right: 0;
	display: flex; align-items: center; padding: 13px 50px;
	background: rgba(0, 0, 0, .5);
	transform: translateY(-150px); visibility: hidden;
	transition: transform .8s ease, visibility 0s .8s;
}
.sg-sticky-on .sg-sticky { transform: translateY(0); visibility: visible; transition: transform .8s ease; }
.admin-bar .sg-sticky { top: 32px; }
.sg-sticky__logo { display: block; line-height: 0; }
.sg-sticky__logo img { width: 107px; height: auto; }
.sg-sticky__art { margin-left: auto; margin-right: 34px; }
.sg-sticky__art img { width: 62px; }
.sg-sticky .sg-burger { margin-right: 5px; }
/* Live: ART and menu button sit 26px from the top on desktop (not centred). */
.sg-sticky__art, .sg-sticky .sg-burger { align-self: flex-start; margin-top: 16px; }
@media (max-width: 1440px) { .sg-sticky { padding: 10px 20px; } }
@media (max-width: 1024px) {
	.sg-sticky__logo img { width: 80px; }
	.sg-sticky__art { margin-right: 10px; }
	.sg-sticky__art img { width: 64px; }
	.sg-sticky .sg-burger { margin-right: 10px; }
	.sg-sticky__art, .sg-sticky .sg-burger { align-self: center; margin-top: 0; }
}
@media (min-width: 768px) and (max-width: 880px) {
	.sg-sticky__art { margin-right: 14px; }
	.sg-sticky__art img { width: 40px; }
	.sg-sticky .sg-burger { margin-right: 7px; }
}
@media (max-width: 767px) {
	.sg-sticky__logo img { width: 70px; }
	.sg-sticky__art { margin-right: 26px; }
	.sg-sticky__art img { width: 39px; }
	.sg-sticky .sg-burger { margin-right: 0; }
}

/* ── Menu panel (full screen; opens by growing its height, as live: .45s cubic-bezier(.5,1,.89,1)). ── */
.sg-panel {
	position: fixed; z-index: 100002; top: 0; left: 0; right: 0;
	height: 0; overflow: hidden;
	background: var(--c-bg);
	transition: height .45s cubic-bezier(.5, 1, .89, 1);
}
.sg-panel.is-open { height: 100vh; height: 100dvh; }
.sg-panel__main {
	position: absolute; inset: 0 370px 0 0;
	display: flex; flex-direction: column; padding: 50px 50px 34px;
}
.sg-panel__logo { align-self: flex-start; line-height: 0; }
.sg-panel__logo img { width: 150px; height: auto; }
.sg-panel__nav { flex: 1; display: flex; align-items: center; padding-left: 18px; }
.sg-panel__menu a {
	display: inline-block; padding: 5px 72px 5px 0;
	color: var(--c-light); font-size: 36px; font-weight: 500; line-height: 54px;
	transition: color .3s;
}
.sg-panel__menu a:hover, .sg-panel__menu a:focus-visible, .sg-panel__menu .current-menu-item > a { color: var(--c-white); }
.sg-panel__main .sg-social { padding: 40.8px 0 0 18px; }

.sg-panel__side {
	position: absolute; top: 0; right: 0; bottom: 0; width: 370px;
	display: flex; align-items: center; padding: 90px 50px;
	background: var(--c-panel);
}
.sg-panel__close {
	position: absolute; top: 85px; right: 50px;
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--c-light); font-size: 17px; line-height: 1;
}
.sg-panel__close:hover { color: var(--c-white); }
.sg-panel__heading { font-size: 35px; font-weight: 500; line-height: 1.03; margin: 0 0 25px; }
.sg-panel__talk .sg-btn { width: 250px; }

@media (max-width: 1024px) {
	.sg-panel__main { right: 303px; padding: 40px 20px 30px; }
	.sg-panel__logo { margin-left: 25px; }
	.sg-panel__logo img { width: 73px; }
	.sg-panel__nav { padding-left: 0; }
	.sg-panel__menu a { font-size: 30px; line-height: 45px; }
	.sg-panel__main .sg-social { padding-left: 0; }
	.sg-panel__main .sg-social::before { left: 0; }
	.sg-panel .sg-social__link { width: 40px; height: 40px; }
	.sg-panel__side { width: 303px; padding: 60px 45px; }
	.sg-panel__close { top: 55px; right: 45px; }
	.sg-panel__heading { font-size: 28px; }
	.sg-panel__talk .sg-btn { width: auto; white-space: nowrap; }
}
@media (max-width: 767px) {
	.sg-panel { overflow-y: auto; }
	.sg-panel__main { position: relative; inset: auto; min-height: 0; padding: 24px 20px 20px; }
	.sg-panel__logo { margin-left: 2px; }
	.sg-panel__logo img { width: 66px; }
	.sg-panel__nav { padding-block: 56px 8px; }
	.sg-panel__menu a { font-size: 22px; line-height: 33px; padding: 3px 20px 3px 0; }
	.sg-panel__main .sg-social { padding-top: 16px; }
	.sg-panel .sg-social { gap: 12px; }
	.sg-panel .sg-social__link { width: 33px; height: 33px; }
	.sg-panel .sg-social__link svg { width: 14px; height: 14px; }
	.sg-panel__side { position: relative; width: auto; padding: 16px 20px 30px; }
	.sg-panel__close { position: fixed; top: 38px; right: 22px; }
	.sg-panel__close-text { display: none; }
	.sg-panel__heading { font-size: 24px; margin-bottom: 18px; }
}

/* Social circles (menu panel + footer): 50px rings, #565656, white on hover. */
.sg-social { display: flex; flex-wrap: wrap; gap: 17px; }
.sg-social__link {
	width: 50px; height: 50px; border: 2px solid var(--c-line); border-radius: 50%;
	display: grid; place-items: center; color: var(--c-line);
	transition: color .3s, border-color .3s;
}
.sg-social__link svg { width: 18px; height: 18px; }
.sg-social__link:hover, .sg-social__link:focus-visible { color: var(--c-white); border-color: var(--c-white); }

/* ── Search overlay. ── */
.sg-search {
	position: fixed; inset: 0; z-index: 100003;
	display: grid; place-items: center; padding: 20px;
	background: rgba(255, 255, 255, .97); color: #0A0A0A;
	opacity: 0; transition: opacity .3s var(--ease);
}
.sg-search.is-open { opacity: 1; }
.sg-search__close { position: absolute; top: 40px; right: 50px; width: 44px; height: 44px; display: grid; place-items: center; }
.sg-search__form { position: relative; width: min(900px, 100%); }
.sg-search__field {
	width: 100%; padding: 14px 50px 14px 0; border: 0; border-bottom: 1px solid #0A0A0A;
	background: transparent; font-size: 34px; font-weight: 400; outline: none;
}
.sg-search__submit { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; }

/* Panel entrance, as live's Convex fullscreen menu: logo/close fade, items cascade from .5s (+.1s each),
   the divider grows then settles at 14% white, socials cascade, the side widget fades in over .8s. */
.sg-panel__main .sg-social { position: relative; }
.sg-panel__main .sg-social::before {
	content: ""; position: absolute; top: 0; left: 18px; right: 0; height: 1px;
	background: var(--c-white); opacity: .14; transform-origin: left center;
}
.sg-panel.is-open .sg-panel__logo,
.sg-panel.is-open .sg-panel__close-text { animation: sgFadeIn .6s both; }
.sg-panel.is-open .sg-panel__close svg { animation: sgFadeInScale .6s backwards; transform-origin: 50% 54%; }
.sg-panel.is-open .sg-panel__menu > li { animation: sgFadeIn .6s .5s both; }
.sg-panel.is-open .sg-panel__menu > li:nth-child(2) { animation-delay: .6s; }
.sg-panel.is-open .sg-panel__menu > li:nth-child(3) { animation-delay: .7s; }
.sg-panel.is-open .sg-panel__menu > li:nth-child(4) { animation-delay: .8s; }
.sg-panel.is-open .sg-panel__menu > li:nth-child(5) { animation-delay: .9s; }
.sg-panel.is-open .sg-panel__menu > li:nth-child(6) { animation-delay: 1s; }
.sg-panel.is-open .sg-panel__menu > li:nth-child(7) { animation-delay: 1.1s; }
.sg-panel.is-open .sg-panel__menu > li:nth-child(8) { animation-delay: 1.2s; }
.sg-panel.is-open .sg-panel__main .sg-social { animation: sgFadeIn .6s .5s both; }
.sg-panel.is-open .sg-panel__main .sg-social::before { animation: sgFadeInMove .7s .5s both; }
.sg-panel.is-open .sg-panel__main .sg-social > li { animation: sgFadeIn .6s .5s both; }
.sg-panel.is-open .sg-panel__main .sg-social > li:nth-child(2) { animation-delay: .6s; }
.sg-panel.is-open .sg-panel__main .sg-social > li:nth-child(3) { animation-delay: .7s; }
.sg-panel.is-open .sg-panel__main .sg-social > li:nth-child(4) { animation-delay: .8s; }
.sg-panel.is-open .sg-panel__main .sg-social > li:nth-child(5) { animation-delay: .9s; }
.sg-panel.is-open .sg-panel__main .sg-social > li:nth-child(6) { animation-delay: 1s; }
.sg-panel.is-open .sg-panel__main .sg-social > li:nth-child(7) { animation-delay: 1.1s; }
.sg-panel.is-open .sg-panel__talk { animation: sgFadeIn .8s .5s both; }
@keyframes sgFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sgFadeInScale { 0% { opacity: 0; transform: scale(.2) rotate(0); } 100% { opacity: 1; transform: scale(1) rotate(180deg); } }
@keyframes sgFadeInMove { 0% { opacity: 0; transform: scale3d(0, 1, 1); } 10% { opacity: 1; transform: scale3d(.1, 1, 1); } 100% { opacity: .14; transform: scale3d(1, 1, 1); } }

/* Phones: 44px touch areas for the small header, menu-close and carousel controls (prelaunch QA, 2026-12-04).
   Invisible hit areas only: nothing moves or changes look. Carousel arrows grow outwards so neighbours never overlap. */
@media (max-width: 767px) {
	.sg-burger, .sg-art-link { position: relative; }
	.sg-burger::after, .sg-art-link::after, .sg-panel__close::after,
	.sg-tiles__arrow::after, .sg-reviews__arrow::after {
		content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
	}
	.sg-slider__prev.sg-tiles__arrow::after, .sg-slider__prev.sg-reviews__arrow::after { left: auto; right: 0; transform: translateY(-50%); }
	.sg-slider__next.sg-tiles__arrow::after, .sg-slider__next.sg-reviews__arrow::after { left: 0; transform: translateY(-50%); }
}
