/* ==========================================================================
   Bleib Studio — Footer
   Brand palette:
     --bleib-primary   #544134  (deep brown)
     --bleib-secondary #7ca4dd  (soft blue)
     --bleib-white     #ffffff
     --bleib-black     #000000
   ========================================================================== */

.bleib-footer {
	background-color: var(--bleib-white, #ffffff);
	color: var(--bleib-black, #000000);
	border-top: 1px solid var(--bleib-gray, #d4d3d3);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Full-width container (no centered max-width, minimal side gutter) */
.bleib-footer__container {
	max-width: 100%;
	margin: 0;
	padding: 0 2.5rem;
	box-sizing: border-box;
}

/* ---- Columns grid ------------------------------------------------------- */
.bleib-footer__grid {
	display: grid;
	/* minmax(0, 1fr) keeps tracks equal even when a cell holds a long,
	   unbreakable string (e.g. an email) — otherwise dividers drift off centre */
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	align-items: stretch;
}

.bleib-footer__col {
	padding: 2.5rem 2rem;
	border-right: 1px solid var(--bleib-gray, #d4d3d3);
}

/* First column hugs the left edge, last content column hugs the social divider */
.bleib-footer__col:first-child {
	padding-left: 0;
}

/* Avoid a double divider where the contact column meets the social column */
.bleib-footer__col--contact {
	border-right: none;
}

/* Social column sits at the far right — kept narrow */
.bleib-footer__social {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 1.5rem 0 1.5rem 1.5rem;
	border-left: 1px solid var(--bleib-gray, #d4d3d3);
}

/* ---- Titles ------------------------------------------------------------- */
.bleib-footer__title {
	margin: 0 0 1.5rem;
	color: var(--bleib-black, #000000);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* ---- Link lists --------------------------------------------------------- */
.bleib-footer__widget {
	margin: 0 0 1.5rem;
}

.bleib-footer__widget:last-child {
	margin-bottom: 0;
}

.bleib-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bleib-footer li {
	margin: 0 0 0.65rem;
}

.bleib-footer a {
	color: var(--bleib-black, #000000);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.bleib-footer a:hover,
.bleib-footer a:focus {
	color: var(--bleib-primary, #544134);
}

/* Nav-menu widget markup support */
.bleib-footer .menu,
.bleib-footer .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bleib-footer__hint {
	color: rgba(84, 65, 52, 0.55);
	font-size: 0.85rem;
	font-style: italic;
}

/* ---- Contact column ----------------------------------------------------- */
.bleib-footer__contact li {
	margin-bottom: 0.75rem;
}

/* Allow the long email address to wrap instead of stretching the column */
.bleib-footer__contact a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.bleib-footer__hours {
	display: flex;
	flex-direction: column;
	color: var(--bleib-black, #000000);
	margin-bottom: 1.25rem !important;
}

.bleib-footer__tagline {
	margin: 2rem 0 0;
	font-size: 1.15rem;
	line-height: 1.4;
	color: var(--bleib-black, #000000);
}

/* ---- Social icons (brand-coloured, no border) --------------------------- */
.bleib-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0.75rem 0;
	border: none;
	background-color: transparent;
	color: var(--bleib-primary, #544134);
	transition: color 0.2s ease, transform 0.15s ease;
}

.bleib-footer__social-link svg {
	width: 26px;
	height: 26px;
}

.bleib-footer__social-link:hover,
.bleib-footer__social-link:focus {
	color: var(--bleib-secondary, #7ca4dd);
	transform: translateY(-2px);
}

/* ---- Big brand banner --------------------------------------------------- */
.bleib-footer__brand {
	text-align: center;
	padding: 1.5rem 0.5rem;
	border-top: 1px solid var(--bleib-gray, #d4d3d3);
	overflow: hidden;
}

.bleib-footer__brand-text {
	display: block;
	color: var(--bleib-primary, #544134);
	font-family: var(--bleib-font-heading, 'Syne', sans-serif);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1;
	/* Fluid size that fits "BLEIB STUDIO" on one line down to small phones */
	font-size: clamp(2.0rem, 7.5vw, 12rem);
	white-space: nowrap;
}

/* ---- Bottom bar (full width) -------------------------------------------- */
.bleib-footer__bottom {
	background-color: var(--bleib-primary, #544134);
	border-top: 1px solid var(--bleib-gray, #d4d3d3);
	font-size: 0.85rem;
}

.bleib-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.bleib-footer__copy,
.bleib-footer__credit,
.bleib-footer__bottom a {
	margin: 0;
	color: var(--bleib-white, #ffffff);
}

.bleib-footer__bottom a:hover,
.bleib-footer__bottom a:focus {
	color: var(--bleib-secondary, #7ca4dd);
}

.bleib-footer__credit a {
	font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet & mobile: 2-column grid (Products | About, Help | Contact) */
@media (max-width: 992px) {
	.bleib-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bleib-footer__col {
		padding: 2rem 1.5rem;
		border-right: 1px solid var(--bleib-gray, #d4d3d3);
		border-bottom: 1px solid var(--bleib-gray, #d4d3d3);
	}

	/* Right-hand cells: no right border */
	.bleib-footer__col:nth-child(2n) {
		border-right: none;
	}

	.bleib-footer__col:first-child {
		padding-left: 1.5rem;
	}

	/* Social: full-width row split into two divided halves (IG | LinkedIn) */
	.bleib-footer__social {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: center;
		align-items: stretch;
		gap: 0;
		padding: 0;
		border-left: none;
	}

	.bleib-footer__social-link {
		flex: 1 1 50%;
		margin: 0;
		padding: 1.5rem 0;
		width: auto;
		height: auto;
		border: none;
		border-radius: 0;
		background-color: transparent;
		color: var(--bleib-primary, #544134);
	}

	/* Divider between the two social halves */
	.bleib-footer__social-link + .bleib-footer__social-link {
		border-left: 1px solid var(--bleib-gray, #d4d3d3);
	}

	.bleib-footer__social-link:hover,
	.bleib-footer__social-link:focus {
		background-color: transparent;
		color: var(--bleib-secondary, #7ca4dd);
		transform: none;
	}

	/* Bottom bar: keep copyright + credit on one row */
	.bleib-footer__bottom-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
		gap: 0.75rem;
	}
}

/* Small phones: tighten spacing, keep 2 columns */
@media (max-width: 576px) {
	.bleib-footer__container {
		padding: 4.5px 0.5rem;
	}

	.bleib-footer__col {
		padding: 1.5rem 1rem;
	}

	.bleib-footer__col:first-child {
		padding-left: 1rem;
	}

	/* Smaller nav-menu / contact text on phones */
	.bleib-footer {
		font-size: 0.82rem;
	}

	.bleib-footer a {
		font-size: 11px;
	}

	.bleib-footer__title {
		font-size: 0.72rem;
	}

	.bleib-footer__tagline {
		font-size: 0.95rem;
	}

	/* Bottom bar: 9px, both items kept on one line */
	.bleib-footer__bottom,
	.bleib-footer__bottom a {
		font-size: 9px;
	}

	.bleib-footer__bottom-inner {
		gap: 0.5rem;
	}
}
