/* ==========================================================================
   SCIC Israel · site layer
   Tokens mirror the Elementor global variables so plugin-rendered blocks
   (reviews, collection index, kitchen gallery) match the builder styles.
   ========================================================================== */

:root {
	--scic-ink: #0e0d0c;
	--scic-charcoal: #383839;
	--scic-cream: #f5ede3;
	--scic-ivory: #fbf8f4;
	--scic-bronze: #a17d5c;       /* decorative, large text, text on dark */
	--scic-bronze-text: #7f5f43;  /* small text on cream: 5.0:1 */
	--scic-gold: #d9bb93;         /* accents on ink */
	--scic-taupe: #6b635c;        /* secondary text on cream: 5.1:1 */
	--scic-stone: #a29d97;        /* secondary text on ink: 7.2:1 */
	--scic-line: #cabeaf;         /* dividers only, never text */
	--scic-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--scic-gutter: clamp(1rem, 0.5rem + 3vw, 4rem);
}

html { -webkit-text-size-adjust: 100%; }

body {
	font-family: "Talent", system-ui, sans-serif;
	background: var(--scic-ivory);
	color: var(--scic-charcoal);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

/* --- Accessibility ------------------------------------------------------ */

.scic-skip-link {
	position: fixed;
	inset-inline-start: 1rem;
	top: 1rem;
	z-index: 10000;
	padding: 0.75rem 1.25rem;
	background: var(--scic-ink);
	color: var(--scic-cream);
	font-size: 1rem;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform 0.2s var(--scic-ease);
}
.scic-skip-link:focus { transform: none; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--scic-bronze-text);
	outline-offset: 3px;
}
.scic-on-dark :where(a, button, input, select, textarea, summary):focus-visible,
.fx-header :where(a, button):focus-visible { outline-color: var(--scic-gold); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* Italian and Latin fragments inside Hebrew text keep their own direction. */
[lang="it"], [lang="en"] { unicode-bidi: isolate; }

/* --- Scrolling ---------------------------------------------------------- */

/* Native scrolling only. Elementor's frontend.min.css sets html { scroll-behavior: smooth },
   which makes every scripted position change ease in and out; scripts need instant jumps. */
html { scroll-behavior: auto !important; }

/* Elementor kit (V3 widgets such as the nav menu) inherits Talent too. */
body[class*="elementor-kit-"] {
	--e-global-typography-primary-font-family: "Talent";
	--e-global-typography-secondary-font-family: "Talent";
	--e-global-typography-text-font-family: "Talent";
	--e-global-typography-accent-font-family: "Talent";
}
body, button, input, select, textarea, .elementor-widget-nav-menu .elementor-nav-menu { font-family: "Talent", system-ui, sans-serif; }

/* --- Header --------------------------------------------------------------- */

.fx-header .elementor-nav-menu--main .elementor-item {
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0.01em;
	color: var(--scic-cream);
	padding: 0.5rem 0.9rem;
}
.fx-header .elementor-nav-menu--main .elementor-item:hover,
.fx-header .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--scic-gold); }
.fx-header .elementor-nav-menu--main .elementor-item::after { background-color: var(--scic-gold) !important; height: 1px !important; }
.fx-header.is-scrolled .elementor-nav-menu--main .elementor-item:hover,
.fx-header.is-scrolled .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--scic-bronze-text) !important; }
.fx-header.is-scrolled .elementor-nav-menu--main .elementor-item::after { background-color: var(--scic-bronze) !important; }
.fx-header .elementor-menu-toggle { background: transparent; color: var(--scic-cream); font-size: 1.5rem; }
.fx-header.is-scrolled .elementor-menu-toggle { color: var(--scic-ink); }
.fx-header .elementor-nav-menu--dropdown { background: var(--scic-ink); }
.fx-header .elementor-nav-menu--dropdown a { color: var(--scic-cream) !important; font-size: 1.25rem; padding: 1rem var(--scic-gutter) !important; }
.fx-header .elementor-nav-menu--dropdown a:hover, .fx-header .elementor-nav-menu--dropdown a.elementor-item-active { background: transparent !important; color: var(--scic-gold) !important; }
.fx-header.is-scrolled .scic-header-cta { background-color: var(--scic-ink) !important; border-color: var(--scic-ink) !important; color: var(--scic-ivory) !important; }

.scic-footer-nav .elementor-nav-menu a { color: var(--scic-cream) !important; padding: 0.35rem 0 !important; font-size: 1.0625rem; }
.scic-footer-nav .elementor-nav-menu a:hover { color: var(--scic-gold) !important; }
.scic-footer-legal .elementor-nav-menu a { color: var(--scic-stone) !important; padding: 0.25rem 0 !important; font-size: 0.9375rem; }
.scic-on-dark a:not([class]) , .sec-ink a:not([class]) { color: inherit; text-underline-offset: 0.2em; }
.scic-on-dark a:not([class]):hover { color: var(--scic-gold); }

/* Header row: logo and CTA keep their size, the menu takes the middle. */
.fx-header > :first-child { flex: 0 0 auto !important; width: auto !important; }
.fx-header .elementor-widget-nav-menu { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.fx-header .elementor-widget-nav-menu > .elementor-widget-container { width: 100%; display: flex; justify-content: center; }
@media (max-width: 1024px) {
	.fx-header .elementor-widget-nav-menu { justify-content: flex-end; order: 3; flex: 0 0 auto; }
}

/* Background-video controls sit as a compact pill, not a bar. */
.e-background-video__controls { width: fit-content !important; right: auto !important; }

.fx-header {
	transition: background-color 0.5s var(--scic-ease), transform 0.5s var(--scic-ease), color 0.5s var(--scic-ease), box-shadow 0.5s var(--scic-ease);
}
.fx-header.is-scrolled {
	background-color: rgba(251, 248, 244, 0.92) !important;
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	box-shadow: 0 1px 0 rgba(161, 125, 92, 0.25);
}
.fx-header.is-hidden { transform: translateY(-100%); }
.fx-header.is-scrolled .scic-logo-light { display: none !important; }
.fx-header:not(.is-scrolled) .scic-logo-dark { display: none !important; }
.fx-header.is-scrolled :where(a, .e-paragraph-base, .elementor-item) { color: var(--scic-ink) !important; }
@media (prefers-reduced-transparency: reduce) {
	.fx-header.is-scrolled { background-color: var(--scic-ivory) !important; backdrop-filter: none; }
}

/* --- Motion helpers: initial states only exist when JS motion is live ---- */

.scic-motion .fx-reveal > * { opacity: 0; transform: translateY(1.5rem); }
.scic-motion .fx-img-reveal { clip-path: inset(0 0 100% 0); }
.scic-motion .fx-lines { visibility: hidden; }
.fx-text-fill .scic-word { color: var(--scic-fill-from, #cfc6bb); }
.scic-on-dark.fx-text-fill .scic-word, .scic-on-dark .fx-text-fill .scic-word { --scic-fill-from: #4a4541; }
.fx-hero-scale { overflow: clip; }
/* Desktop scroll stage: tall section, film pinned with native sticky (see scic-motion.js). */
.fx-hero-scale.is-sticky-hero { height: 230vh !important; min-height: 0 !important; }
.fx-hero-scale.is-sticky-hero > .fx-hero-media { position: sticky !important; top: 0; height: 100vh; min-height: 100vh !important; }
.fx-hero-media { will-change: clip-path; }
.fx-hex { will-change: transform; }

.fx-stack > * {
	position: sticky;
	top: calc(var(--scic-stack-top, 6rem) + var(--scic-stack-i, 0) * 1.25rem);
	transform-origin: 50% 0;
}

.fx-marquee { overflow: hidden; white-space: nowrap; display: flex !important; flex-wrap: nowrap !important; }
.fx-marquee > * { display: flex !important; flex: 0 0 auto !important; width: max-content !important; flex-wrap: nowrap !important; will-change: transform; }

/* --- Collection index (slot: kitchens) ---------------------------------- */

.scic-kindex {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(3rem, 2rem + 4vw, 7rem) clamp(1rem, 0.5rem + 2vw, 2.5rem);
}
.scic-kindex__item:nth-child(4n + 1) { grid-column: 1 / span 7; }
.scic-kindex__item:nth-child(4n + 2) { grid-column: 9 / span 4; margin-top: clamp(4rem, 10vw, 12rem); }
.scic-kindex__item:nth-child(4n + 3) { grid-column: 2 / span 5; }
.scic-kindex__item:nth-child(4n + 4) { grid-column: 7 / span 6; margin-top: clamp(2rem, 6vw, 8rem); }

.scic-kindex__link { display: block; color: inherit; text-decoration: none; }
.scic-kindex__media { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--scic-cream); }
.scic-kindex__item:nth-child(4n + 1) .scic-kindex__media,
.scic-kindex__item:nth-child(4n + 4) .scic-kindex__media { aspect-ratio: 16 / 11; }
.scic-kindex__media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transform: scale(1.02);
	transition: transform 1.2s var(--scic-ease), filter 1.2s var(--scic-ease);
}
.scic-kindex__link:hover img, .scic-kindex__link:focus-visible img { transform: scale(1.07); }
.scic-kindex__text { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 1.25rem; }
.scic-kindex__name {
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
	font-weight: 300;
	letter-spacing: -0.01em;
	line-height: 1.05;
	color: var(--scic-ink);
	direction: ltr;
	text-align: right;
}
.scic-kindex__line { font-size: 1rem; line-height: 1.6; color: var(--scic-taupe); max-width: 36ch; }
.scic-kindex__name::after {
	content: "";
	display: block;
	width: 2.5rem;
	height: 1px;
	margin-top: 0.9rem;
	margin-inline-start: auto;
	background: var(--scic-bronze);
	transform-origin: right;
	transition: width 0.8s var(--scic-ease);
}
.scic-kindex__link:hover .scic-kindex__name::after,
.scic-kindex__link:focus-visible .scic-kindex__name::after { width: 6rem; }

@media (max-width: 767px) {
	.scic-kindex { grid-template-columns: 1fr; gap: 3.5rem; }
	.scic-kindex__item:nth-child(n) { grid-column: auto; margin-top: 0; }
	.scic-kindex__media, .scic-kindex__item:nth-child(n) .scic-kindex__media { aspect-ratio: 4 / 5; }
}

/* --- Kitchen gallery (slot: kitchen-gallery) ----------------------------- */

.scic-kgallery {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
	align-items: start;
}
.scic-kgallery__item { margin: 0; overflow: hidden; background: var(--scic-cream); }
.scic-kgallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scic-kgallery__item--0 { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.scic-kgallery__item--1 { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.scic-kgallery__item--2 { grid-column: 7 / span 6; aspect-ratio: 5 / 4; margin-top: clamp(3rem, 8vw, 9rem); }
.scic-kgallery__item--3 { grid-column: 2 / span 6; aspect-ratio: 3 / 2; }
.scic-kgallery__item--4 { grid-column: 9 / span 4; aspect-ratio: 3 / 4; margin-top: clamp(2rem, 5vw, 6rem); }
@media (max-width: 767px) {
	.scic-kgallery { grid-template-columns: 1fr 1fr; }
	.scic-kgallery__item[class*="--"] { grid-column: auto; margin-top: 0; aspect-ratio: 4 / 5; }
	.scic-kgallery__item--0 { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; }
}

/* --- Kitchen specs (slot: kitchen-specs) --------------------------------- */

.scic-kspecs {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: clamp(2rem, 1rem + 4vw, 6rem);
	color: var(--scic-charcoal);
}
.scic-kspecs__title { font-size: 1.25rem; font-weight: 500; margin: 0 0 1.25rem; color: var(--scic-ink); }
.scic-kspecs__materials ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.scic-kspecs__materials li { font-size: 1.0625rem; line-height: 1.5; padding: 0.35rem 0; break-inside: avoid; }
.scic-kspecs__facts { margin: 0; display: grid; gap: 1.75rem; border-inline-start: 1px solid var(--scic-line); padding-inline-start: clamp(1.5rem, 3vw, 3rem); }
.scic-kspecs__facts dt { font-size: 0.875rem; color: var(--scic-bronze-text); font-weight: 500; letter-spacing: 0.02em; }
.scic-kspecs__facts dd { margin: 0.25rem 0 0; font-size: 1.375rem; font-weight: 300; color: var(--scic-ink); }
@media (max-width: 767px) {
	.scic-kspecs { grid-template-columns: 1fr; }
	.scic-kspecs__materials ul { columns: 1; }
	.scic-kspecs__facts { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--scic-line); padding-top: 2rem; }
}

/* --- Next kitchen (slot: kitchen-next) ----------------------------------- */

.scic-knext {
	position: relative;
	display: grid;
	align-content: end;
	min-height: min(80vh, 44rem);
	padding: var(--scic-gutter);
	color: var(--scic-cream);
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	background: var(--scic-ink);
}
.scic-knext__media { position: absolute; inset: 0; z-index: -1; }
.scic-knext__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 1.6s var(--scic-ease), opacity 1s var(--scic-ease); }
.scic-knext:hover .scic-knext__media img, .scic-knext:focus-visible .scic-knext__media img { transform: scale(1.05); opacity: 0.7; }
.scic-knext__label { font-size: 1rem; color: var(--scic-gold); }
.scic-knext__name { font-size: clamp(3rem, 1.5rem + 7vw, 9rem); font-weight: 200; line-height: 1; letter-spacing: -0.02em; direction: ltr; text-align: right; }

/* --- Reviews (slot: reviews) --------------------------------------------- */

.scic-reviews { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); }
.scic-reviews__track {
	list-style: none;
	margin: 0;
	padding: 0.5rem var(--scic-gutter) 1.5rem;
	display: flex;
	gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.scic-reviews__track::-webkit-scrollbar { display: none; }
.scic-review {
	flex: 0 0 clamp(17rem, 16rem + 12vw, 27rem);
	scroll-snap-align: start;
	background: var(--scic-ivory);
	border: 1px solid rgba(161, 125, 92, 0.28);
	padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
	transition: transform 0.6s var(--scic-ease), box-shadow 0.6s var(--scic-ease), border-color 0.6s var(--scic-ease);
}
.scic-review:nth-child(odd) { margin-top: 2.5rem; }
.scic-review:hover { transform: translateY(-0.4rem); border-color: var(--scic-bronze); box-shadow: 0 1.5rem 3rem rgba(127, 95, 67, 0.12); }
.scic-review figure { margin: 0; display: grid; gap: 1.25rem; height: 100%; align-content: space-between; }
.scic-review__stars { margin: 0; color: var(--scic-bronze); letter-spacing: 0.25em; font-size: 0.95rem; }
.scic-review__text { margin: 0; }
.scic-review__text p {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--scic-charcoal);
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.scic-review__text p::before { content: "\201D"; color: var(--scic-bronze); margin-inline-end: 0.15em; }
.scic-review__author { display: flex; gap: 0.85rem; align-items: center; font-size: 0.9375rem; }
.scic-review__author strong { display: block; font-weight: 500; color: var(--scic-ink); }
.scic-review__date { color: var(--scic-taupe); font-size: 0.875rem; }
.scic-review__initial {
	display: grid; place-items: center;
	width: 2.5rem; height: 2.5rem; flex: none;
	background: var(--scic-ink); color: var(--scic-gold);
	font-size: 1.05rem; font-weight: 500;
	clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}
.scic-review--video figure { align-content: start; }
.scic-review__media {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: calc(-1 * clamp(1.5rem, 1.25rem + 1vw, 2.25rem));
	margin-bottom: 0;
	background: var(--scic-ink);
	overflow: hidden;
}
.scic-review__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.scic-review__media.is-playing video { object-fit: contain; }
.scic-review__play {
	position: absolute; inset: 0;
	display: grid; place-items: center;
	border: 0; padding: 0; cursor: pointer;
	background: linear-gradient(to top, rgba(28, 24, 20, 0.45), rgba(28, 24, 20, 0) 55%);
}
.scic-review__play span {
	width: 4.5rem; height: 4.5rem;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	background: rgba(28, 24, 20, 0.35);
	backdrop-filter: blur(6px);
	transition: transform 0.6s var(--scic-ease), background-color 0.6s var(--scic-ease);
	position: relative;
}
.scic-review__play span::after {
	content: ""; position: absolute; inset: 0; margin: auto;
	width: 0; height: 0;
	border-block: 0.6rem solid transparent;
	border-left: 0.95rem solid #fff; /* play glyph points right in every direction */
	transform: translateX(0.12rem);
}
.scic-review__play:hover span, .scic-review__play:focus-visible span { transform: scale(1.08); background-color: var(--scic-bronze); }
.scic-review__play:focus-visible { outline: 2px solid var(--scic-gold); outline-offset: -4px; }
.scic-review__media.is-playing .scic-review__play { display: none; }
.scic-review--video .scic-review__text p { -webkit-line-clamp: 3; font-size: 1.0625rem; }
@media (max-width: 767px) {
	.scic-review:nth-child(odd) { margin-top: 0; }
}

/* --- Forms (Elementor V4 atomic form) ------------------------------------ */

.scic-form :where(input, select, textarea) {
	font: inherit;
	font-size: 1.0625rem;
	color: var(--scic-ink);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--scic-taupe);
	border-radius: 0;
	padding: 0.75rem 0;
	width: 100%;
}
.scic-form :where(input, select, textarea):focus { border-bottom-color: var(--scic-ink); outline: none; box-shadow: 0 1px 0 var(--scic-ink); }
.scic-form ::placeholder { color: var(--scic-taupe); opacity: 1; }

/* --- Reduced motion: everything static and visible ----------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.fx-stack > * { position: relative; top: auto; }
}

/* Sticky stacking is a desktop effect; on phones cards simply follow each other. */
@media (max-width: 767px) {
	.fx-stack > * { position: relative !important; top: auto !important; }
}

.scic-footer-legal .elementor-nav-menu { gap: 1.5rem; }

/* Hello theme paints every <button> pink (#c36) on hover/focus, with a pink border and rounded corners.
   Same specificity as the theme rule and loaded after it, so only the background is cancelled;
   text colour stays with each component (.scic-nav__link, .btn, .scic-burger...). */
button, [type="button"], [type="submit"] { border-radius: 0; }
button:hover, button:focus,
[type="button"]:hover, [type="button"]:focus,
[type="submit"]:hover, [type="submit"]:focus { background-color: transparent; }
.scic-nav .scic-nav__link:focus:not(:hover) { color: var(--scic-cream); }
.fx-header.is-scrolled:not(.is-mega):not(.is-overlay) .scic-nav .scic-nav__link:focus:not(:hover) { color: var(--scic-ink); }

/* Inline text links (footer, contact lines) get a comfortable 24px+ tap height. */
.sec-ink p a:not([class]), .scic-on-dark p a:not([class]) { display: inline-block; padding-block: 0.2em; }

/* Desktop horizontal strip: the section is as tall as the travel (set in JS), the track sticks
   and is itself a native horizontal scroller (scrollbar hidden). Page scroll and mouse drag both
   move it through scrollLeft, which the browser scrolls on the compositor without repainting. */
.fx-horizontal.is-sticky-h { overflow: clip !important; }
.fx-horizontal.is-sticky-h > :first-child {
	position: sticky !important; top: 0;
	width: 100% !important; height: 100vh; box-sizing: border-box;
	align-items: center !important;
	padding-top: 6rem !important; padding-bottom: 2rem !important;
	overflow-x: auto !important; overflow-y: hidden !important;
	scrollbar-width: none; overscroll-behavior-x: contain;
	scroll-snap-type: none !important;
	touch-action: pan-y;
	user-select: none; -webkit-user-select: none;
	transform: none !important;
}
.fx-horizontal.is-sticky-h > :first-child::-webkit-scrollbar { display: none; }
.fx-horizontal.is-sticky-h > :first-child > * { flex-shrink: 0 !important; }
.fx-horizontal.is-sticky-h > :first-child > a { flex-basis: min(clamp(17rem, 14rem + 12vw, 28rem), 40vh) !important; }
.fx-horizontal.is-sticky-h.is-pinned > :first-child { cursor: grab; }
.fx-horizontal.is-sticky-h.is-grabbing > :first-child { cursor: grabbing; }
.fx-horizontal.is-sticky-h.is-dragging a { pointer-events: none; }
.fx-horizontal.is-sticky-h img { -webkit-user-drag: none; }

/* Reduced motion on desktop: no scripted strip, so let it scroll sideways natively. */
@media (prefers-reduced-motion: reduce) and (min-width: 1025px) {
	.fx-horizontal > :first-child { width: auto !important; overflow-x: auto; scroll-snap-type: x proximity; }
	.fx-horizontal > :first-child > * { scroll-snap-align: start; }
}
