/* =============================================================================
   JL Contact Card Widget
   Rounded teal panel with heading + body on the left and three info tiles
   (phone, email, address) on the right. Mobile-first — tiles stack and panel
   columns stack until the chosen breakpoint, then rearrange side-by-side.
   Figma node 2118:28529.
   ========================================================================== */

/* ── Section wrapper ─────────────────────────────────────────────────────── */
.jl-contact-card {
	width: 100%;
	padding: var(--jl-contact-card-padding-y, 80px) 1.5rem;
	box-sizing: border-box;
}

.jl-contact-card__inner {
	max-width: 1280px;
	margin-inline: auto;
}

/* ── Panel (the rounded teal container) ──────────────────────────────────── */
.jl-contact-card__panel {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.5rem; /* 24px */
	background-color: #306d7a;
	border-radius: 16px;
	padding: 48px;
	overflow: hidden;
	box-sizing: border-box;
}

/* ── Left text column ────────────────────────────────────────────────────── */
.jl-contact-card__text {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	flex: 1 1 0;
	min-width: 0;
}

.jl-contact-card__heading {
	font-family: "Gotham Office", sans-serif;
	font-size: clamp(1.75rem, 3.5vw, 3rem); /* 28px → 48px */
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: 0.15em; /* tracking-7.2px on 48px */
	text-transform: uppercase;
	color: #fafafa;
	margin: 0;
}

.jl-contact-card__body {
	font-family: "Gotham Office", sans-serif;
	font-size: clamp(1rem, 1.25vw, 1.125rem); /* 16px → 18px */
	font-weight: 300;
	line-height: 1.66; /* 30px / 18px */
	color: #f1f1f1;
	margin: 0;
}

/* ── Divider (shared schema) ─────────────────────────────────────────────── */
.jl-contact-card__divider {
	width: var(--jl-contact-card-divider-width, 128px);
	height: var(--jl-contact-card-divider-thickness, 1px);
	border: none;
	margin: 0;
	background: linear-gradient(
		to right,
		transparent 0%,
		var(--jl-contact-card-divider-color, #ffffff) 50%,
		transparent 100%
	);
}

.jl-contact-card__divider--wide {
	background: linear-gradient(
		to right,
		transparent 0%,
		var(--jl-contact-card-divider-color, #ffffff) 25%,
		var(--jl-contact-card-divider-color, #ffffff) 75%,
		transparent 100%
	);
}

.jl-contact-card__divider--left {
	background: linear-gradient(
		to right,
		var(--jl-contact-card-divider-color, #ffffff) 0%,
		var(--jl-contact-card-divider-color, #ffffff) 60%,
		transparent 100%
	);
}

/* ── Right details column ────────────────────────────────────────────────── */
.jl-contact-card__details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24px */
	flex: 1 1 0;
	min-width: 0;
}

.jl-contact-card__row {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* ── Tile base ───────────────────────────────────────────────────────────── */
.jl-contact-card__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.625rem; /* 10px */
	padding: 1.5rem; /* 24px */
	border-radius: 12px;
	color: #ffffff;
	text-decoration: none;
	box-sizing: border-box;
	transition: filter 0.2s ease, transform 0.2s ease;
}

a.jl-contact-card__tile:hover,
a.jl-contact-card__tile:focus-visible {
	text-decoration: none;
	filter: brightness(1.1);
	transform: translateY(-1px);
}

a.jl-contact-card__tile:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

.jl-contact-card__tile--top {
	background-color: rgba(60, 136, 153, 0.7);
	min-height: 88px;
}

.jl-contact-card__tile--address {
	background-color: #388090;
	min-height: 151px;
}

.jl-contact-card__tile-icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
	color: inherit;
}

.jl-contact-card__tile-icon svg {
	width: 100%;
	height: 100%;
}

.jl-contact-card__tile-text {
	font-family: "Gotham Office", sans-serif;
	font-size: clamp(1rem, 1.38vw, 1.25rem); /* 16px → 20px */
	line-height: 1.25;
	color: inherit;
	text-align: center;
	word-break: break-word;
}

.jl-contact-card__tile-text--address {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.jl-contact-card__address-line {
	display: block;
}

/* ── Beat the global `a { color: slate !important }` reset (style.css) ──── */
.jl-contact-card a.jl-contact-card__tile,
.jl-contact-card a.jl-contact-card__tile:hover,
.jl-contact-card a.jl-contact-card__tile:focus {
	color: #ffffff !important;
}

/* ── Stack breakpoint variants ───────────────────────────────────────────── */
/* "mobile" = always stacked — no media query needed; the base styles already
   stack the panel since flex-direction: column is the mobile default. */

/* "tablet" = side-by-side at ≥ 768px (default) */
@media (min-width: 768px) {
	.jl-contact-card__panel--bp-tablet {
		flex-direction: row;
		align-items: stretch;
	}
	.jl-contact-card__panel--bp-tablet .jl-contact-card__row {
		flex-direction: row;
	}
	.jl-contact-card__panel--bp-tablet .jl-contact-card__row > .jl-contact-card__tile {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* "desktop" = side-by-side at ≥ 1024px */
@media (min-width: 1024px) {
	.jl-contact-card__panel--bp-desktop {
		flex-direction: row;
		align-items: stretch;
	}
	.jl-contact-card__panel--bp-desktop .jl-contact-card__row {
		flex-direction: row;
	}
	.jl-contact-card__panel--bp-desktop .jl-contact-card__row > .jl-contact-card__tile {
		flex: 1 1 0;
		min-width: 0;
	}
}
