/**
 * Signal Cjenik – front-end styles. Everything is scoped under .sgc.
 *
 * Tokens: the Elementor kit on this site still has Elementor's factory defaults (#6EC1E4 / Roboto),
 * which don't match the real design, so the tokens use the site's actual colours (blue price cards,
 * yellow top bar) and inherit the theme font. Override them on .sgc if the kit is ever set up.
 */

.sgc {
	--sgc-primary: #0062d7;          /* Site blue, darkened for AA with white (5.6:1). */
	--sgc-primary-hover: #0050b3;
	--sgc-primary-bright: #0285fa;   /* Original card blue, decorative only. */
	--sgc-primary-soft: #eef5ff;
	--sgc-accent: #ffdd44;           /* Top bar / footer yellow. */
	--sgc-text: #1f2937;
	--sgc-muted: #4b5563;            /* 7.5:1 on white. */
	--sgc-border: #e3e8ef;
	--sgc-surface: #ffffff;
	--sgc-bg-soft: #f4f7fb;
	--sgc-radius: 16px;
	--sgc-radius-sm: 10px;
	--sgc-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
	--sgc-font: inherit;
	--sgc-gap: clamp(16px, 2.2vw, 24px);

	color: var(--sgc-text);
	font-family: var(--sgc-font);
	font-size: 16px;
	line-height: 1.55;
}

.sgc *,
.sgc *::before,
.sgc *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ Layout (inside Elementor boxed section). */

.sgc .sgc-section {
	position: relative;
	padding: clamp(32px, 5vw, 64px) 0;
}

.sgc .sgc-section > .elementor-container {
	display: block; /* Elementor makes it flex for columns; we have a single child. */
}

.sgc .sgc-inner {
	width: 100%;
	padding: 0 10px; /* Same inset as Elementor's default column gap on other pages. */
}

@media (max-width: 767px) {
	.sgc .sgc-inner {
		padding: 0 16px;
	}
}

.sgc .sgc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: var(--sgc-gap);
	margin: 0;
}

.sgc .sgc-grid--branches {
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

/* ------------------------------------------------------------------ Typography. */

.sgc h1,
.sgc h2,
.sgc h3,
.sgc h4 {
	color: var(--sgc-text);
	font-family: var(--sgc-font);
	letter-spacing: 0;
	text-transform: none;
}

.sgc p {
	margin: 0 0 .75em;
}

.sgc a {
	color: var(--sgc-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sgc a:hover {
	color: var(--sgc-primary-hover);
}

.sgc .sgc-head {
	margin-bottom: clamp(20px, 3vw, 32px);
	max-width: 820px;
}

.sgc .sgc-eyebrow {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sgc .sgc-eyebrow a {
	color: var(--sgc-muted);
	text-decoration: none;
}

.sgc .sgc-eyebrow a:hover {
	color: var(--sgc-primary);
	text-decoration: underline;
}

.sgc .sgc-title {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.15;
}

.sgc .sgc-lead {
	margin: 0 0 6px;
	color: var(--sgc-muted);
	font-size: 17px;
}

.sgc .sgc-valid {
	display: inline-block;
	margin: 6px 0 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--sgc-accent);
	color: #111;
	font-size: 14px;
	font-weight: 600;
}

.sgc .sgc-muted {
	color: var(--sgc-muted);
}

.sgc .sgc-h3 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
}

.sgc .screen-reader-text {
	position: absolute !important; /* Must win over any theme display rule. */
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

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

.sgc .sgc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--sgc-radius-sm);
	background: var(--sgc-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .15s ease, transform .15s ease;
}

.sgc .sgc-btn:hover,
.sgc .sgc-btn:focus-visible {
	background: var(--sgc-primary-hover);
	color: #fff;
}

.sgc a:focus-visible,
.sgc button:focus-visible,
.sgc summary:focus-visible,
.sgc [tabindex="-1"]:focus-visible {
	outline: 3px solid var(--sgc-primary-bright);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ Filters. */

.sgc .sgc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 clamp(20px, 3vw, 28px);
}

.sgc .sgc-filters[hidden] {
	display: none;
}

.sgc .sgc-chip {
	min-width: 48px;
	min-height: 44px;
	margin: 0;
	padding: 8px 18px;
	border: 2px solid var(--sgc-border);
	border-radius: 999px;
	background: var(--sgc-surface);
	color: var(--sgc-text);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.sgc .sgc-chip:hover {
	border-color: var(--sgc-primary);
	background: var(--sgc-primary-soft);
	color: var(--sgc-text);
}

.sgc .sgc-chip[aria-pressed="true"] {
	border-color: var(--sgc-primary);
	background: var(--sgc-primary);
	color: #fff;
}

/* ------------------------------------------------------------------ Category groups. */

.sgc .sgc-group {
	margin: 0 0 clamp(32px, 4vw, 48px);
}

.sgc .sgc-group[hidden] {
	display: none;
}

.sgc .sgc-group__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-size: clamp(20px, 2.4vw, 24px);
	font-weight: 800;
}

.sgc .sgc-group__title::after {
	content: "";
	flex: 1;
	height: 2px;
	background: var(--sgc-border);
}

/* ------------------------------------------------------------------ Price card. */

.sgc .sgc-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--sgc-border);
	border-top: 4px solid var(--sgc-primary-bright);
	border-radius: var(--sgc-radius);
	background: var(--sgc-surface);
	box-shadow: var(--sgc-shadow);
}

.sgc .sgc-card__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.sgc .sgc-badge {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	height: 52px;
	padding: 0 8px;
	border-radius: 12px;
	background: var(--sgc-accent);
	color: #111;
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
}

.sgc .sgc-card__titles {
	flex: 1 1 auto;
	min-width: 0;
}

.sgc .sgc-card__title {
	margin: 2px 0 2px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.sgc .sgc-card__subtitle {
	margin: 0;
	color: var(--sgc-muted);
	font-size: 14px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.sgc .sgc-info {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -6px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sgc-primary);
	cursor: pointer;
	transition: background-color .15s ease;
}

.sgc .sgc-info:hover {
	background: var(--sgc-primary-soft);
	color: var(--sgc-primary-hover);
}

/* Price component (card + modal). */
.sgc .sgc-price {
	padding: 16px;
	border-radius: var(--sgc-radius-sm);
	background: var(--sgc-primary-soft);
}

.sgc .sgc-price__label {
	margin: 0;
	color: var(--sgc-muted);
	font-size: 14px;
	font-weight: 600;
}

.sgc .sgc-price__amount {
	margin: 2px 0 6px;
	color: var(--sgc-primary);
	font-size: clamp(30px, 3.4vw, 34px);
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* Anchor line: always visible, body colour, >= 14px. */
.sgc .sgc-anchor {
	margin: 0;
	color: var(--sgc-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.sgc .sgc-offer-badge {
	display: inline-block;
	margin: 0 0 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--sgc-accent);
	color: #111;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.sgc .sgc-card__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.sgc .sgc-card__meta li {
	margin: 0 0 6px;
	padding: 0;
}

.sgc .sgc-meta-label {
	color: var(--sgc-muted);
}

.sgc .sgc-check {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sgc .sgc-check svg {
	flex: 0 0 auto;
	color: #15803d;
}

.sgc .sgc-card .sgc-btn {
	width: 100%;
	margin-top: auto;
}

/* ------------------------------------------------------------------ Notes, footnotes, CSV. */

.sgc .sgc-after {
	max-width: 820px;
	color: var(--sgc-muted);
	font-size: 15px;
}

.sgc .sgc-notes p:last-child {
	margin-bottom: 0;
}

.sgc .sgc-footnote {
	font-size: 14px;
}

.sgc .sgc-csv-link {
	margin-top: 16px;
	font-size: 15px;
}

.sgc .sgc-csv-box {
	margin-top: clamp(32px, 5vw, 56px);
	padding: clamp(20px, 3vw, 28px);
	border-radius: var(--sgc-radius);
	background: var(--sgc-bg-soft);
}

.sgc .sgc-csv-latest {
	margin: 0 0 12px;
	padding-left: 20px;
}

.sgc .sgc-details summary {
	cursor: pointer;
	font-weight: 700;
}

.sgc .sgc-details[open] summary {
	margin-bottom: 12px;
}

.sgc .sgc-csv-branch {
	margin: 0 0 28px;
}

.sgc .sgc-csv-branch__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
}

.sgc .sgc-table-wrap {
	overflow-x: auto;
}

.sgc .sgc-table {
	width: 100%;
	margin: 0 0 12px;
	border-collapse: collapse;
	font-size: 15px;
}

.sgc .sgc-table th,
.sgc .sgc-table td {
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid var(--sgc-border);
	text-align: left;
	vertical-align: top;
}

.sgc .sgc-table tbody th,
.sgc .sgc-table tfoot th {
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none; /* OceanWP uppercases th. */
}

.sgc .sgc-table td:last-child {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.sgc .sgc-table thead th {
	color: var(--sgc-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.sgc .sgc-table tfoot th,
.sgc .sgc-table tfoot td {
	border-bottom: 0;
	font-weight: 800;
}

.sgc .sgc-table--files td:last-child {
	color: var(--sgc-muted);
}

.sgc .sgc-file-name {
	overflow-wrap: anywhere;
}

.sgc abbr[title] {
	border: 0;
	text-decoration: underline dotted;
	cursor: help;
}

.sgc .sgc-fallback {
	padding: 16px;
	border-radius: var(--sgc-radius-sm);
	background: var(--sgc-bg-soft);
}

/* ------------------------------------------------------------------ Branch card. */

.sgc .sgc-branch {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--sgc-border);
	border-radius: var(--sgc-radius);
	background: var(--sgc-surface);
	box-shadow: var(--sgc-shadow);
}

.sgc .sgc-branch__media {
	aspect-ratio: 16 / 9;
	background: var(--sgc-accent);
}

.sgc .sgc-branch__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sgc .sgc-branch__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #111;
}

.sgc .sgc-branch__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	padding: 22px;
}

.sgc .sgc-branch__title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 800;
}

.sgc .sgc-branch__line {
	margin: 0;
}

.sgc .sgc-branch__text {
	margin: 8px 0 0;
	color: var(--sgc-muted);
}

.sgc .sgc-branch .sgc-valid {
	align-self: flex-start;
	margin: 12px 0 18px;
}

.sgc .sgc-branch .sgc-btn {
	margin-top: auto;
}

/* ------------------------------------------------------------------ Modal. */

html.sgc-modal-open {
	overflow: hidden;
}

.sgc-modal {
	width: min(560px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0; /* Panel fills the dialog, so a click on the dialog itself is a backdrop click. */
	border: 0;
	border-radius: var(--sgc-radius);
	background: var(--sgc-surface);
	box-shadow: 0 24px 64px rgba(16, 24, 40, .3);
	overflow: auto;
	overscroll-behavior: contain;
}

.sgc-modal::backdrop {
	background: rgba(17, 24, 39, .55);
}

.sgc-modal.sgc-modal--fallback {
	position: fixed;
	inset: 0;
	z-index: 100000;
	box-shadow: 0 0 0 100vmax rgba(17, 24, 39, .55);
}

.sgc-modal .sgc-modal__panel {
	position: relative;
	padding: 24px;
}

.sgc-modal .sgc-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sgc-bg-soft);
	color: var(--sgc-text);
	cursor: pointer;
}

.sgc-modal .sgc-modal__close:hover {
	background: var(--sgc-border);
	color: var(--sgc-text);
}

.sgc-modal .sgc-details-head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 48px 16px 0;
}

.sgc-modal .sgc-modal__title {
	margin: 2px 0 2px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.sgc-modal .sgc-modal__title:focus {
	outline: none;
}

.sgc-modal .sgc-modal__title:focus-visible {
	outline: 3px solid var(--sgc-primary-bright);
}

.sgc-modal .sgc-modal__subtitle {
	margin: 0;
	color: var(--sgc-muted);
	font-size: 15px;
}

.sgc-modal .sgc-modal__h {
	margin: 20px 0 6px;
	font-size: 16px;
	font-weight: 800;
}

.sgc-modal .sgc-price {
	margin-bottom: 4px;
}

.sgc-modal .sgc-offer-info,
.sgc-modal .sgc-total {
	font-weight: 700;
}

.sgc-modal .sgc-row-note {
	padding: 10px 12px;
	border-left: 4px solid var(--sgc-accent);
	background: var(--sgc-bg-soft);
}

.sgc-modal .sgc-btn {
	width: 100%;
	margin-top: 8px;
}

/* ------------------------------------------------------------------ Motion. */

@media (prefers-reduced-motion: reduce) {
	.sgc *,
	.sgc-modal * {
		transition: none !important; /* Respect the user's setting over any theme transition. */
		animation: none !important;
	}
}
