/* ==========================================================================
   Senax content pages: shared design system
   Used by every Elementor content page built from server/build-*.php.
   Page root container gets class "sx" (+ "sx-<page>"). Sections are direct children with "sx-sec".
   Brand: red #FF0000 + black, font Montserrat (set in WoodMart options).
   Breakpoints: tablet ≤ 1024px, mobile ≤ 767px (Elementor defaults).
   ========================================================================== */

.sx {
	--sx-red: #ff0000;
	--sx-red-dark: #d90000;
	--sx-ink: #121212;
	--sx-ink-2: #3a3a3a;
	--sx-ink-3: #6b6b6b;
	--sx-line: #e2e2e2;
	--sx-soft: #f4f4f2;
	--sx-dark: #121212;
	--sx-dark-2: #1f1f1f;
	/* Align with WoodMart's .container (max-width --wd-container-w = 1400px, 15px side padding), so
	   page content lines up with the header logo/menu at every width. */
	--sx-max: calc(var(--wd-container-w, 1400px) - 30px);
	--sx-gutter: max(16px, calc((100% - var(--wd-container-w, 1400px)) / 2 + 15px));
	--sx-sec-y: clamp(64px, 8vw, 120px);
	--sx-radius: 2px;
	--sx-ease: cubic-bezier(.2, .7, .2, 1);
	font-family: 'Montserrat', sans-serif;
	color: var(--sx-ink);
}

/* Full-bleed: un-box WoodMart's main container on our pages (no 100vw, so no scrollbar shift). */
.main-page-wrapper:has(.sx.e-parent) { padding-top: 0; padding-bottom: 0; overflow-x: clip; }
.main-page-wrapper:has(.sx.e-parent) > .wd-content-layout { max-width: none; width: 100%; padding: 0; margin: 0; }
.sx.e-parent { width: 100%; max-width: 100%; }

/* Reset Elementor container defaults inside our pages: spacing comes from the classes below. */
.sx .e-con,
.sx.e-con {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--widgets-spacing: 0px;
	--widgets-spacing-row: 0px;
	--widgets-spacing-column: 0px;
	--margin-top: 0px;
	--margin-bottom: 0px;
	--border-radius: 0;
	min-height: 0;
}
.sx .elementor-widget:not(:last-child) { margin-block-end: 0; }
.sx .elementor-widget-container { margin: 0; padding: 0; }
.sx a { text-decoration: none; }

/* ---------------------------------------------------------------- sections */
.sx .sx-sec {
	position: relative;
	width: 100%;
	padding: var(--sx-sec-y) var(--sx-gutter);
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: clip; /* clip, not hidden: keeps position: sticky working inside sections */
}
.sx img { border-radius: 0; } /* WoodMart rounds images by default; our pages use square photos */
.sx .sx-sec > .sx-wrap { width: 100%; max-width: var(--sx-max); display: flex; flex-direction: column; }
.sx .sx-sec--soft { background: var(--sx-soft); }
.sx .sx-sec--dark { background: var(--sx-dark); color: #fff; }
.sx .sx-sec--tight { padding-top: calc(var(--sx-sec-y) * .55); padding-bottom: calc(var(--sx-sec-y) * .55); }

/* Chevron pattern (brand guidelines cover) as an optional texture on dark sections. */
.sx .sx-chevrons::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='72' viewBox='0 0 88 72'%3E%3Cpath d='M8 8h16l14 14-14 14H8l14-14z' fill='%23ffffff' fill-opacity='.045'/%3E%3Cpath d='M52 44h16l14 14-14 14H52l14-14z' fill='%23ffffff' fill-opacity='.035'/%3E%3C/svg%3E");
	pointer-events: none;
}
.sx .sx-sec--soft.sx-chevrons::before { filter: invert(1); opacity: .5; }
.sx .sx-chevrons > * { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- type */
.sx .sx-eyebrow,
.sx .sx-eyebrow .elementor-heading-title,
.sx .sx-eyebrow p {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--sx-ink-2);
}
.sx .sx-eyebrow .elementor-heading-title::before,
.sx .sx-eyebrow p::before {
	content: '';
	width: 18px;
	height: 12px;
	flex: none;
	background: var(--sx-red);
	clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}
.sx .sx-sec--dark .sx-eyebrow .elementor-heading-title,
.sx .sx-on-dark .sx-eyebrow .elementor-heading-title { color: rgba(255, 255, 255, .7); }

.sx .sx-h1 .elementor-heading-title {
	margin: 0;
	font-size: clamp(40px, 6.2vw, 92px);
	line-height: .98;
	font-weight: 900;
	letter-spacing: -.035em;
	color: inherit;
}
.sx .sx-h2 .elementor-heading-title {
	margin: 0;
	font-size: clamp(30px, 3.6vw, 54px);
	line-height: 1.04;
	font-weight: 900;
	letter-spacing: -.03em;
	color: var(--sx-ink);
}
.sx .sx-sec--dark .sx-h2 .elementor-heading-title,
.sx .sx-on-dark .sx-h2 .elementor-heading-title,
.sx .sx-on-dark .sx-h1 .elementor-heading-title { color: #fff; }
.sx .sx-h3 .elementor-heading-title {
	margin: 0;
	font-size: clamp(19px, 1.6vw, 24px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.01em;
	color: inherit;
}
.sx .sx-lead,
.sx .sx-lead p {
	margin: 0;
	font-size: clamp(16px, 1.25vw, 19px);
	line-height: 1.6;
	font-weight: 400;
	color: var(--sx-ink-2);
	max-width: 640px;
}
.sx .sx-sec--dark .sx-lead p,
.sx .sx-on-dark .sx-lead p { color: rgba(255, 255, 255, .78); }
.sx .sx-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--sx-ink-2); }
.sx .sx-body p:last-child { margin-bottom: 0; }
.sx .sx-sec--dark .sx-body p { color: rgba(255, 255, 255, .75); }

/* Section head: title + lead on the left, link(s) on the right. */
.sx .sx-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.sx .sx-head > .e-con { width: auto; --width: auto; }
.sx .sx-head > .sx-head__text { display: flex; flex-direction: column; gap: 14px; flex: 1 1 520px; }
.sx .sx-head > .sx-head__links { display: flex; flex-direction: row; gap: 28px; flex: 0 0 auto; }
.sx .sx-head--center { flex-direction: column; align-items: center; text-align: center; }
.sx .sx-head--center > .sx-head__text { align-items: center; flex-basis: auto; }

/* ---------------------------------------------------------------- buttons + links */
.sx .sx-btn .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 54px;
	padding: 0 28px;
	border-radius: var(--sx-radius);
	border: 2px solid var(--sx-red);
	background: var(--sx-red);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: background .25s var(--sx-ease), color .25s var(--sx-ease), border-color .25s var(--sx-ease), transform .25s var(--sx-ease);
}
.sx .sx-btn .elementor-button:hover { background: var(--sx-red-dark); border-color: var(--sx-red-dark); transform: translateY(-2px); }
.sx .sx-btn--dark .elementor-button { background: var(--sx-ink); border-color: var(--sx-ink); }
.sx .sx-btn--dark .elementor-button:hover { background: #000; border-color: #000; }
.sx .sx-btn--white .elementor-button { background: #fff; border-color: #fff; color: var(--sx-ink); }
.sx .sx-btn--white .elementor-button:hover { background: var(--sx-red); border-color: var(--sx-red); color: #fff; }
.sx .sx-btn--ghost .elementor-button { background: transparent; border-color: currentColor; color: var(--sx-ink); }
.sx .sx-btn--ghost .elementor-button:hover { background: var(--sx-ink); border-color: var(--sx-ink); color: #fff; }
.sx .sx-sec--dark .sx-btn--ghost .elementor-button,
.sx .sx-on-dark .sx-btn--ghost .elementor-button { color: #fff; }
.sx .sx-sec--dark .sx-btn--ghost .elementor-button:hover,
.sx .sx-on-dark .sx-btn--ghost .elementor-button:hover { background: #fff; color: var(--sx-ink); border-color: #fff; }
.sx .sx-btns { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; }

.sx .sx-link .elementor-heading-title,
.sx .sx-link p,
.sx a.sx-link {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .02em;
	color: var(--sx-ink);
}
.sx .sx-link .elementor-heading-title a,
.sx .sx-link p a { color: inherit; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--sx-ease), color .2s; }
.sx .sx-link .elementor-heading-title a:hover,
.sx .sx-link p a:hover { color: var(--sx-red); }
.sx .sx-sec--dark .sx-link .elementor-heading-title,
.sx .sx-on-dark .sx-link .elementor-heading-title { color: #fff; }

/* ---------------------------------------------------------------- grids + rails */
.sx .sx-grid { display: grid !important; gap: clamp(14px, 1.6vw, 24px); width: 100%; }
.sx .sx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sx .sx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx .sx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx .sx-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sx .sx-split { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; width: 100%; }
.sx .sx-stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------------------------------------------------------------- photo card
   Container with background image + .sx-card--photo; text sits at the bottom over a gradient. */
.sx .sx-card--photo {
	position: relative;
	display: flex !important;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	padding: clamp(20px, 2vw, 32px);
	min-height: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	color: #fff;
	background-color: var(--sx-dark-2);
	background-size: cover;
	background-position: center;
	isolation: isolate;
	transition: transform .5s var(--sx-ease);
}
.sx .sx-card--photo::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82) 100%);
	transition: opacity .4s var(--sx-ease);
}
.sx .sx-card--photo::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	width: 0;
	background: var(--sx-red);
	transition: width .45s var(--sx-ease);
}
.sx .sx-card--photo:hover::after { width: 100%; }
.sx .sx-card--photo .elementor-heading-title,
.sx .sx-card--photo p { color: #fff; }
.sx .sx-card--photo .sx-card__text p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .82); }

/* ---------------------------------------------------------------- outline card */
.sx .sx-card {
	display: flex !important;
	flex-direction: column;
	gap: 12px;
	padding: clamp(22px, 2.2vw, 34px);
	background: #fff;
	border: 1px solid var(--sx-line);
	transition: border-color .25s var(--sx-ease), box-shadow .25s var(--sx-ease), transform .25s var(--sx-ease);
}
.sx a.sx-card:hover,
.sx .sx-card--hover:hover { border-color: var(--sx-ink); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .35); transform: translateY(-3px); }
.sx .sx-card .sx-body p { font-size: 15px; }

/* ---------------------------------------------------------------- post cards ([senax_posts]) */
.sx .sx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.sx .sx-post { display: flex; flex-direction: column; color: var(--sx-ink); }
.sx .sx-post__media { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--sx-soft); margin-bottom: 18px; }
.sx .sx-post__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--sx-ease); }
.sx .sx-post:hover .sx-post__img { transform: scale(1.05); }
.sx .sx-post__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sx-red); margin-bottom: 10px; }
.sx .sx-post__title { font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.sx .sx-post__more { margin-top: auto; font-size: 13px; font-weight: 800; }
.sx .sx-post:hover .sx-post__title { color: var(--sx-red); }

/* ---------------------------------------------------------------- newsletter ([senax_newsletter]) */
.sx .sx-news { width: 100%; max-width: 640px; margin: 0 auto; text-align: left; }
.sx .sx-news__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: 10px; }
.sx .sx-news__row { display: flex; gap: 10px; }
.sx .sx-news__row input { flex: 1; min-width: 0; height: 58px; padding: 0 20px; border: 2px solid #fff; background: #fff; color: var(--sx-ink); font: 500 16px 'Montserrat', sans-serif; border-radius: var(--sx-radius); }
.sx .sx-news__row button { height: 58px; padding: 0 30px; border: 2px solid var(--sx-red); background: var(--sx-red); color: #fff; font: 800 14px 'Montserrat', sans-serif; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--sx-radius); cursor: pointer; transition: background .25s; }
.sx .sx-news__row button:hover { background: var(--sx-red-dark); }
.sx .sx-news__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.sx .sx-news__consent input { margin-top: 3px; accent-color: var(--sx-red); }
.sx .sx-news__consent a { color: #fff; text-decoration: underline; }
.sx .sx-news__done { display: none; margin: 16px 0 0; font-weight: 700; color: #fff; }
.sx .sx-news.is-done .sx-news__done { display: block; }
.sx .sx-news.is-done .sx-news__row { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- logo boxes (placeholders) */
.sx .sx-logos { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; width: 100%; }
.sx .sx-logo .elementor-heading-title {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 76px;
	margin: 0;
	border: 1px solid var(--sx-line);
	background: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	color: #9a9a9a;
	transition: color .25s, border-color .25s;
}
.sx .sx-logo .elementor-heading-title:hover { color: var(--sx-ink); border-color: var(--sx-ink); }

/* ---------------------------------------------------------------- page-load reveal */
@media (prefers-reduced-motion: no-preference) {
	.sx .sx-reveal { animation: sx-rise .9s var(--sx-ease) both; }
	.sx .sx-reveal--2 { animation-delay: .12s; }
	.sx .sx-reveal--3 { animation-delay: .24s; }
	.sx .sx-reveal--4 { animation-delay: .36s; }
}
@keyframes sx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1024px) {
	.sx .sx-grid--4, .sx .sx-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sx .sx-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sx .sx-split { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- mobile */
@media (max-width: 767px) {
	.sx .sx-grid--2, .sx .sx-grid--3 { grid-template-columns: 1fr; }
	.sx .sx-head { margin-bottom: 28px; }
	.sx .sx-head > .sx-head__links { gap: 20px; flex-wrap: wrap; }
	.sx .sx-btns { flex-direction: column; align-items: stretch; }
	.sx .sx-btns .sx-btn .elementor-button { width: 100%; justify-content: center; }
	.sx .sx-posts { grid-template-columns: 1fr; gap: 28px; }
	.sx .sx-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sx .sx-news__row { flex-direction: column; }
	.sx .sx-news__row input, .sx .sx-news__row button { flex: none; width: 100%; }
	.sx .sx-head > .sx-head__links { flex: 1 1 100%; }

	/* Rails: card grids scroll sideways on phones instead of stacking into a very long page. */
	.sx .sx-rail {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin-right: calc(var(--sx-gutter) * -1);
		padding-right: var(--sx-gutter);
		scrollbar-width: none;
	}
	.sx .sx-rail::-webkit-scrollbar { display: none; }
	.sx .sx-rail > * { flex: 0 0 78% !important; max-width: 78%; scroll-snap-align: start; }
}
