/* ==========================================================================
   OIB Footer — brand + 2 link columns + newsletter + bottom bar
   ========================================================================== */

.oib-footer {
	--oib-footer-pt: 64px;
	--oib-footer-pb: 32px;

	position: relative;
	padding: var(--oib-footer-pt) 24px var(--oib-footer-pb);
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	font-family: var(--oib-font, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	-webkit-font-smoothing: antialiased;
	color: #475569;
}

/* ---- Container widths ---- */
.oib-footer__inner {
	margin: 0 auto;
}

.oib-footer__inner--narrow { max-width: 1080px; }
.oib-footer__inner--wide   { max-width: 1280px; }
.oib-footer__inner--full   { max-width: calc(100% - 32px); }

/* ==========================================================================
   Top: 4 columns
   ========================================================================== */

.oib-footer__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 48px;
	align-items: start;
	margin-bottom: 40px;
}

.oib-footer__col {
	min-width: 0;
}

/* ---- Brand column ---- */
.oib-footer__brand-logo-link {
	display: inline-block;
	margin: 0 0 16px;
	line-height: 0; /* prevent extra whitespace under inline-block image */
	transition: opacity 0.2s ease;
}

.oib-footer__brand-logo-link:hover,
.oib-footer__brand-logo-link:focus-visible {
	opacity: 0.85;
	outline: none;
}

.oib-footer__brand-logo {
	display: block;
	max-width: 160px;
	height: auto;
	width: auto;
}

.oib-footer__brand-name {
	margin: 0 0 16px;
	color: #0f172a;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

.oib-footer__brand-desc {
	margin: 0 0 22px;
	color: #475569;
	font-size: 14.5px;
	line-height: 1.7;
}

/* ---- Socials ---- */
.oib-footer__socials {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.oib-footer__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: transparent !important;
	color: #334155;
	border: 1px solid #ddd;
	text-decoration: none;
	font-size: 15px;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.oib-footer__social:hover,
.oib-footer__social:focus-visible {
	background: #7E5D74 !important;
	color: white !important;
	transform: translateY(-2px);
	outline: none;
}

.oib-footer__social svg {
	width: 1em;
	height: 1em;
	display: block;
	fill: currentColor;
}

.oib-footer__social i {
	font-size: inherit;
	line-height: 1;
}

/* ---- Column titles ---- */
.oib-footer__col-title {
	margin: 0 0 18px;
	color: #0f172a;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.3;
}

/* ---- Link list ---- */
.oib-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.oib-footer__link {
	color: #475569;
	font-size: 14.5px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.18s ease;
}

.oib-footer__link:hover,
.oib-footer__link:focus-visible {
	color: #0f172a;
	outline: none;
}

/* ---- Newsletter ---- */
.oib-footer__newsletter-desc {
	margin: 0 0 18px;
	color: #475569;
	font-size: 14.5px;
	line-height: 1.6;
}

.oib-footer__newsletter {
	display: block;
}

.oib-footer__newsletter-field {
	position: relative;
	display: flex;
	align-items: center;
	background: white;
	border-radius: 14px;
	padding: 6px;
	border: 1px solid #dbddde;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	transition: box-shadow 0.2s ease, background 0.2s ease;
}

/* Override theme rule that may add border to inputs.
   Two classes (.oib-footer__newsletter + .oib-footer__newsletter-input)
   give specificity (0,2,0) which beats global input[type=email] (0,1,1). */
.oib-footer__newsletter .oib-footer__newsletter-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: none;
	background: transparent;
	color: #0f172a;
	font-family: inherit;
	font-size: 16px; /* ≥16px prevents iOS auto-zoom on focus */
	line-height: 1.4;
	outline: none;
	-webkit-appearance: none;
			appearance: none;
	box-sizing: border-box;
}

.oib-footer__newsletter .oib-footer__newsletter-input::placeholder {
	color: #94a3b8;
	opacity: 1;
	font-size: 16px;
}

.oib-footer__newsletter-field:focus-within {
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(126, 93, 116, 0.22);
}

.oib-footer__submit {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 10px;
	background: #7E5D74;
	color: #ffffff;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 6px -2px rgba(126, 93, 116, 0.5);
}

/* Chained selectors so we beat any theme/Elementor `svg path { fill: ... }`
   global rule (typical specificity 0,0,2). */
.oib-footer__submit .oib-footer__submit-icon {
	width: 22px;
	height: 22px;
	display: block;
	fill: currentColor;
	color: #ffffff;
}

.oib-footer__submit .oib-footer__submit-icon path {
	fill: currentColor;
}

.oib-footer__submit:hover,
.oib-footer__submit:focus-visible {
	background: #6A4960;
	transform: translateX(1px);
	outline: none;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.oib-footer__divider {
	height: 1px;
	background: #e2e8f0;
	margin: 8px 0 24px;
}

/* ==========================================================================
   Bottom bar
   ========================================================================== */

.oib-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.oib-footer__copyright {
	margin: 0;
	color: #94a3b8;
	font-size: 13.5px;
	line-height: 1.55;
}

.oib-footer__tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
}

.oib-footer__tag {
	color: #94a3b8;
	font-size: 13.5px;
	font-weight: 500;
}

/* Screen-reader only utility */
.screen-reader-text {
	border: 0 !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	height: 1px !important;
	width: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap !important;
}

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

/* Wide tablet — 2 columns + 2 columns split */
@media (max-width: 1024px) {
	.oib-footer__cols {
		grid-template-columns: 1fr 1fr;
		gap: 36px 32px;
	}
}

/* Phone landscape */
@media (max-width: 640px) {
	.oib-footer {
		padding: clamp(48px, 10vw, 64px) 18px clamp(24px, 6vw, 32px);
	}

	.oib-footer__cols {
		grid-template-columns: 1fr;
		gap: 32px;
		margin-bottom: 28px;
	}

	.oib-footer__col-title,
	.oib-footer__brand-name {
		margin-bottom: 14px;
	}

	.oib-footer__bottom {
		justify-content: flex-start;
		gap: 12px 24px;
	}

	.oib-footer__copyright,
	.oib-footer__tag {
		font-size: 13px;
	}

	.oib-footer__tags {
		gap: 16px;
	}
}

/* ==========================================================================
   A11y / motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.oib-footer__social,
	.oib-footer__submit,
	.oib-footer__link { transition: none !important; }
	.oib-footer__social:hover,
	.oib-footer__submit:hover { transform: none; }
}
