/* ──────────────────────────────────────────────
   SIA Contact Icons — frontend
   List of contact items: each item is an `<a>` (or `<div>` if no link)
   containing an icon-box + text (title + subtitle). The whole element is
   the click target — no stretched-link pattern needed because the item IS
   the anchor.

   Icon position (top vs left) and items per row are RESPONSIVE per device,
   driven by Elementor responsive controls emitting per-breakpoint CSS.
   ────────────────────────────────────────────── */

.sia-ci { display: block; }
.sia-ci * { box-sizing: border-box; }

.sia-ci__list {
	display: grid;
	grid-template-columns: 1fr;     /* default mobile-first: 1 column */
	gap: 16px;
}

.sia-ci__item {
	display: flex;
	flex-direction: row;            /* default: icon left of text */
	align-items: center;
	gap: 14px;
	padding: 8px;
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
	min-width: 0;                   /* allow flex item to shrink properly */
}

/* Icon box */
.sia-ci__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: color-mix(in srgb, var(--sia-color-secondary, #54595F), transparent 80%);
	color: var(--sia-color-primary, #c5ed3b);
	font-size: 20px;
	line-height: 0;
	flex-shrink: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.sia-ci__icon i,
.sia-ci__icon svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.sia-ci__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Text block (title + subtitle) */
.sia-ci__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;                   /* allow text to wrap */
	flex: 1;                        /* fill available width */
}
.sia-ci__title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
	color: var(--sia-color-text, #1A1718);
	transition: color 0.2s ease;
}
.sia-ci__subtitle {
	font-size: 14px;
	line-height: 1.5;
	color: var(--sia-color-text, #1A1718);
	opacity: 0.7;
	transition: color 0.2s ease;
	word-break: break-word;        /* long emails / URLs wrap instead of overflowing */
}

/* Hover effects only on linked items (anchor variant) */
a.sia-ci__item {
	cursor: pointer;
}
a.sia-ci__item:focus-visible {
	outline: 2px solid var(--sia-color-primary, #c5ed3b);
	outline-offset: 2px;
}

/* When stacked vertically (icon top), the text gets full width below */
.sia-ci__item[style*="flex-direction: column"] .sia-ci__text {
	width: 100%;
}
