/* SiSi Epoxy – SEO page section design system
   Scoped under .sx so nothing leaks into the rest of the theme. */

.sx {
	--sx-navy: #08415c;
	--sx-navy-deep: #062f42;
	--sx-accent: #31708e;
	--sx-accent-2: #5085a5;
	--sx-sky: #8fc1e3;
	--sx-sky-soft: #eaf3fa;
	--sx-ink: #1d2a32;
	--sx-muted: #55666f;
	--sx-line: #dbe6ee;
	--sx-surface: #ffffff;
	--sx-surface-2: #f5f9fc;
	--sx-radius: 14px;
	--sx-shadow: 0 1px 2px rgba(8, 65, 92, .06), 0 8px 24px rgba(8, 65, 92, .07);

	color: var(--sx-ink);
	line-height: 1.65;
	font-size: 16px;
}

.sx * { box-sizing: border-box; }

.sx > * + * { margin-top: 44px; }

.sx p { margin: 0 0 14px; color: var(--sx-muted); }
.sx p:last-child { margin-bottom: 0; }
.sx strong { color: var(--sx-ink); font-weight: 600; }
.sx a { color: var(--sx-navy); }

.sx h2 {
	font-size: 27px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--sx-navy);
	margin: 0 0 6px;
}

.sx h3 {
	font-size: 18px;
	line-height: 1.4;
	font-weight: 600;
	color: var(--sx-navy);
	margin: 0 0 6px;
}

/* Section head ------------------------------------------------------- */

.sx-head { margin-bottom: 22px; }
.sx-head p { max-width: 62ch; margin-bottom: 0; }

.sx-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: var(--sx-accent);
	margin-bottom: 8px;
}

/* Hero --------------------------------------------------------------- */

.sx-hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--sx-radius);
	background: var(--sx-navy-deep);
	color: #fff;
	padding: 52px 44px;
	margin-top: 0;
}

.sx-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(4, 34, 48, .97) 0%, rgba(6, 47, 66, .93) 42%, rgba(8, 65, 92, .84) 100%);
}

.sx-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.sx-hero__inner { position: relative; z-index: 2; max-width: 680px; }

.sx-hero h1 {
	color: #fff;
	font-size: 40px;
	line-height: 1.18;
	font-weight: 600;
	margin: 0 0 14px;
	letter-spacing: -.01em;
}

.sx p.sx-hero__lead {
	font-size: 18px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .93);
	margin: 0 0 26px;
	max-width: 58ch;
}

.sx-hero .sx-eyebrow { color: var(--sx-sky); }

/* The theme underlines all content links; components opt out. */
.sx a.sx-btn,
.sx a.sx-btn:hover,
.sx a.sx-btn:focus,
.sx .sx-pills a,
.sx .sx-pills a:hover,
.sx .sx-pills a:focus,
.sx a.sx-linkcard,
.sx a.sx-linkcard:hover,
.sx a.sx-linkcard:focus,
.sx-faq summary,
.sx-faq summary:hover {
	text-decoration: none !important;
	box-shadow: none;
}

.sx a.sx-linkcard strong,
.sx a.sx-linkcard span { text-decoration: none; }

/* Buttons ------------------------------------------------------------ */

.sx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sx-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.sx-btn:hover { transform: translateY(-1px); text-decoration: none; }

.sx-btn--primary, .sx a.sx-btn--primary { background: var(--sx-sky); color: var(--sx-navy-deep); border-color: var(--sx-sky); }
.sx-btn--primary:hover { background: #a8d3ef; color: var(--sx-navy-deep); }

.sx-btn--ghost, .sx a.sx-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.sx-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.sx-btn--solid, .sx a.sx-btn--solid { background: var(--sx-navy); color: #fff; border-color: var(--sx-navy); }
.sx-btn--solid:hover { background: var(--sx-accent); color: #fff; border-color: var(--sx-accent); }

.sx-btn--line, .sx a.sx-btn--line { background: #fff; color: var(--sx-navy); border-color: var(--sx-line); }
.sx-btn--line:hover { border-color: var(--sx-accent); color: var(--sx-accent); }

.sx-btn svg { width: 16px; height: 16px; flex: none; }

/* Card grids --------------------------------------------------------- */

.sx-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.sx-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sx-grid--4 { grid-template-columns: repeat(4, 1fr); }

.sx-card {
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: 24px 22px;
	box-shadow: var(--sx-shadow);
	transition: border-color .18s ease, transform .18s ease;
}

.sx-card:hover { border-color: var(--sx-sky); transform: translateY(-2px); }

.sx-card p { margin: 0; font-size: 15px; }
.sx-card h3 { margin-bottom: 7px; }

.sx-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: var(--sx-sky-soft);
	color: var(--sx-accent);
	margin-bottom: 15px;
}

.sx-card__icon svg { width: 21px; height: 21px; }

/* Steps -------------------------------------------------------------- */

.sx-steps { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); counter-reset: sxstep; }
.sx-steps--2 { grid-template-columns: repeat(2, 1fr); }

.sx-step {
	position: relative;
	background: var(--sx-surface-2);
	border-radius: var(--sx-radius);
	padding: 22px 20px 20px;
	border-top: 3px solid var(--sx-sky);
}

.sx-step::before {
	counter-increment: sxstep;
	content: counter(sxstep);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sx-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 13px;
}

.sx-step h3 { font-size: 16px; margin-bottom: 5px; }
.sx-step p { margin: 0; font-size: 14.5px; }

/* Check / spec lists ------------------------------------------------- */

.sx-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; grid-template-columns: repeat(2, 1fr); }
.sx-checks--1 { grid-template-columns: 1fr; }

.sx-checks li {
	position: relative;
	padding: 0 0 0 30px;
	margin: 0;
	font-size: 15px;
	color: var(--sx-muted);
	line-height: 1.55;
}

.sx-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sx-sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2331708e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Spec rows ---------------------------------------------------------- */

.sx-specs { display: grid; gap: 10px; }

.sx-spec {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-left: 3px solid var(--sx-accent-2);
	border-radius: 10px;
	padding: 15px 20px;
}

.sx-spec__label {
	flex: 0 0 200px;
	font-weight: 600;
	color: var(--sx-navy);
	font-size: 15px;
}

.sx-spec__value { flex: 1 1 260px; color: var(--sx-muted); font-size: 15px; }

/* Split (text + media) ----------------------------------------------- */

.sx-split { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; align-items: center; }
.sx-split__media { margin: 0; }

.sx-split__media img,
.sx-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--sx-radius);
}

.sx-split__media figcaption,
.sx-figure figcaption {
	font-size: 13px;
	color: var(--sx-muted);
	margin-top: 9px;
	text-align: left;
}

/* Callout ------------------------------------------------------------ */

.sx-note {
	background: var(--sx-sky-soft);
	border-radius: var(--sx-radius);
	padding: 22px 26px;
	border-left: 4px solid var(--sx-accent);
}

.sx-note h3 { margin-bottom: 6px; }
.sx-note p { color: #3d525d; }

/* FAQ ---------------------------------------------------------------- */

.sx-faq { display: grid; gap: 10px; }

.sx-faq details {
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: 10px;
	overflow: hidden;
	transition: border-color .18s ease;
}

.sx-faq details[open] { border-color: var(--sx-sky); }

.sx-faq summary {
	cursor: pointer;
	list-style: none;
	padding: 17px 52px 17px 22px;
	position: relative;
	font-weight: 600;
	font-size: 16px;
	color: var(--sx-navy);
}

.sx-faq summary::-webkit-details-marker { display: none; }

.sx-faq summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 11px;
	height: 11px;
	margin-top: -6px;
	border-right: 2px solid var(--sx-accent);
	border-bottom: 2px solid var(--sx-accent);
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.sx-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }

.sx-faq__body { padding: 0 22px 19px; }
.sx-faq__body p { margin: 0; font-size: 15px; }

/* Link pills --------------------------------------------------------- */

.sx-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.sx-pills a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--sx-navy);
	text-decoration: none;
	transition: border-color .18s ease, background-color .18s ease;
}

.sx-pills a:hover { border-color: var(--sx-accent); background: var(--sx-sky-soft); text-decoration: none; }

.sx-pills a::after {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.6px solid var(--sx-accent);
	border-top: 1.6px solid var(--sx-accent);
	transform: rotate(45deg);
}

/* Link cards --------------------------------------------------------- */

.sx-linkcards { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }

.sx-linkcard {
	display: block;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: 20px;
	text-decoration: none;
	box-shadow: var(--sx-shadow);
	transition: border-color .18s ease, transform .18s ease;
}

.sx-linkcard:hover { border-color: var(--sx-sky); transform: translateY(-2px); text-decoration: none; }
.sx-linkcard strong { display: block; color: var(--sx-navy); font-size: 16px; margin-bottom: 5px; }
.sx-linkcard span { display: block; color: var(--sx-muted); font-size: 14px; line-height: 1.5; }

/* CTA band ----------------------------------------------------------- */

.sx-cta {
	background: linear-gradient(120deg, var(--sx-navy-deep) 0%, var(--sx-navy) 55%, var(--sx-accent) 100%);
	border-radius: var(--sx-radius);
	padding: 38px 42px;
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	align-items: center;
	justify-content: space-between;
}

.sx-cta__text { flex: 1 1 340px; }
.sx-cta h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.sx-cta p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 15px; }
.sx-cta .sx-actions { flex: 0 0 auto; }

/* Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
	.sx-grid, .sx-linkcards { grid-template-columns: repeat(2, 1fr); }
	.sx-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.sx-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.sx > * + * { margin-top: 34px; }
	.sx-hero { padding: 36px 24px; }
	.sx-hero h1 { font-size: 29px; }
	.sx-hero__lead { font-size: 16px; }
	.sx h2 { font-size: 23px; }
	.sx-grid, .sx-grid--2, .sx-grid--4, .sx-linkcards, .sx-steps, .sx-steps--2, .sx-checks, .sx-split {
		grid-template-columns: 1fr;
	}
	.sx-cta { padding: 30px 24px; }
	.sx-spec__label { flex: 1 1 100%; }
	.sx-actions .sx-btn { flex: 1 1 100%; justify-content: center; }
}

/* Icon link cards (card + icon + arrow) ------------------------------ */

.sx-iconcards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

a.sx-iconcard {
	display: block;
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: 24px 22px;
	box-shadow: var(--sx-shadow);
	text-decoration: none !important;
	transition: border-color .18s ease, transform .18s ease;
}

a.sx-iconcard:hover { border-color: var(--sx-sky); transform: translateY(-2px); }
a.sx-iconcard strong { display: block; color: var(--sx-navy); font-size: 17px; font-weight: 600; margin-bottom: 7px; }
a.sx-iconcard span { display: block; color: var(--sx-muted); font-size: 15px; line-height: 1.55; }

a.sx-iconcard .sx-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 13px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--sx-accent);
}

a.sx-iconcard .sx-more::after {
	content: "";
	width: 6px; height: 6px;
	border-right: 1.7px solid currentColor;
	border-top: 1.7px solid currentColor;
	transform: rotate(45deg);
}

/* Gallery preview grid ----------------------------------------------- */

.sx-gallery { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.sx-gallery--3 { grid-template-columns: repeat(3, 1fr); }

.sx-gallery a, .sx-gallery figure { display: block; margin: 0; overflow: hidden; border-radius: 12px; }

.sx-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .3s ease;
}

.sx-gallery a:hover img { transform: scale(1.04); }

/* Contact tiles ------------------------------------------------------ */

.sx-contact { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }

.sx-tile {
	background: var(--sx-surface);
	border: 1px solid var(--sx-line);
	border-radius: var(--sx-radius);
	padding: 26px 24px;
	box-shadow: var(--sx-shadow);
	display: flex;
	flex-direction: column;
}

.sx-tile h3 { font-size: 15px; margin-bottom: 10px; }
.sx-tile p { margin: 0 0 6px; font-size: 15px; }

.sx-tile__value {
	font-size: 19px;
	font-weight: 600;
	color: var(--sx-navy);
	line-height: 1.4;
	margin-bottom: 4px;
	display: block;
	text-decoration: none !important;
}

.sx-tile__value:hover { color: var(--sx-accent); }
.sx-tile .sx-btn { margin-top: auto; align-self: flex-start; }
.sx-tile .sx-actions { margin-top: 16px; }

/* Split variations --------------------------------------------------- */

.sx-split--reverse .sx-split__media { order: -1; }
.sx-split__body h2 { margin-bottom: 12px; }

/* Wider link-card grids ---------------------------------------------- */

.sx-linkcards--4 { grid-template-columns: repeat(4, 1fr); }
.sx-linkcards--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
	.sx-iconcards, .sx-contact, .sx-linkcards--4 { grid-template-columns: repeat(2, 1fr); }
	.sx-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
	.sx-iconcards, .sx-contact, .sx-linkcards--4, .sx-linkcards--2 { grid-template-columns: 1fr; }
	.sx-gallery, .sx-gallery--3 { grid-template-columns: repeat(2, 1fr); }
	.sx-split--reverse .sx-split__media { order: 0; }
}

/* Centred action row (used inside the home hero) ---------------------- */

.sx-actions--center { justify-content: center; }

/* When the sections sit inside an Elementor column, the theme may centre
   text; keep the components left-aligned unless asked otherwise. */
.sx { text-align: left; }
.sx-head--center { text-align: center; }
.sx-head--center p { margin-left: auto; margin-right: auto; }

/* Spec rows sitting in a half-width split column have no room for a
   200px label track — stack the label above the value there. */

.sx-split .sx-spec { display: block; }
.sx-split .sx-spec__label { display: block; margin-bottom: 3px; }
.sx-split .sx-spec__value { display: block; }
.sx-split .sx-checks { grid-template-columns: 1fr; }

/* ── Narrow-screen overflow guards ──────────────────────────────────
   Flex items default to min-width:auto, so a long unbreakable label
   (a phone number, an e-mail address) can push wider than its column.
   These keep every component inside the viewport down to 320px. */

.sx-btn { max-width: 100%; min-width: 0; }
.sx-pills a { max-width: 100%; overflow-wrap: anywhere; }
.sx-tile__value { overflow-wrap: anywhere; }
.sx-linkcard, .sx-iconcard, .sx-card, .sx-spec { min-width: 0; overflow-wrap: break-word; }
.sx-hero__inner { max-width: 100%; }

@media (max-width: 767px) {

	/* The CTA band's action row must be allowed to shrink, not sit at its
	   intrinsic width — that was the source of the sideways scroll. */
	.sx-cta .sx-actions,
	.sx-actions {
		flex: 1 1 100%;
		min-width: 0;
		flex-direction: column;
		align-items: stretch;
	}

	.sx-actions .sx-btn {
		width: 100%;
		min-width: 0;
		justify-content: center;
		text-align: center;
		padding: 14px 12px;
	}

	.sx-cta { display: block; }
	.sx-cta__text { margin-bottom: 22px; }
}

@media (max-width: 380px) {
	.sx-hero { padding: 30px 18px; }
	.sx-hero h1 { font-size: 26px; }
	.sx-btn { font-size: 13.5px; letter-spacing: 0; padding: 13px 10px; }
	.sx-card, .sx-iconcard, .sx-linkcard, .sx-tile { padding: 20px 16px; }
	.sx-note { padding: 18px 16px; }
	.sx-cta { padding: 26px 18px; }
	.sx-spec { padding: 14px 16px; }
}
