/**
 * SEB Theme — Footer Styles
 * -------------------------
 * Clean, premium, responsive footer foundation for SEB Theme.
 * Controlled via Appearance → Customize → SEB Footer.
 *
 * Organized into 11 clear sections:
 * 1. Footer Base & Container
 * 2. Footer CTA Foundation
 * 3. Footer Main Area
 * 4. Footer Columns & Layout Presets (Style 01, Style 02, Style 03)
 * 5. Footer Logo & Brand
 * 6. Footer Widgets & Headings
 * 7. Footer Links & Menus
 * 8. Footer Contact Foundation
 * 9. Footer Social Foundation (Minimal, Circle, Outline)
 * 10. Footer Bottom Bar & Divider
 * 11. Footer Responsive & Accessibility
 *
 * All rules are scoped to .seb-site-footer to ensure complete isolation
 * and avoid any layout interference with Elementor or other page content.
 *
 * @package SEB_Theme
 */

/* =========================================================================
   1. Footer Base & Container
   ========================================================================= */
.seb-site-footer {
	position: relative;
	width: 100%;
	background-color: var(--seb-footer-background, var(--seb-primary, #003463));
	color: var(--seb-footer-text, #ffffff);
	font-family: var(--seb-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
	overflow-x: hidden;
	transition: background-color var(--seb-transition), color var(--seb-transition);
}

.seb-site-footer *,
.seb-site-footer *::before,
.seb-site-footer *::after {
	box-sizing: border-box;
}

.seb-site-footer .seb-container {
	max-width: var(--seb-footer-container-width, var(--seb-container-width, 1240px));
}

/* =========================================================================
   2. Footer CTA Foundation (Optional / Customizer Controlled)
   ========================================================================= */
.seb-footer-cta {
	background-color: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: var(--seb-space-2xl, 40px) 0;
}

.seb-footer-cta-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.seb-footer-cta-content {
	max-width: 680px;
}

.seb-footer-cta-title {
	font-family: var(--seb-font-display, serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--seb-footer-text, #ffffff);
	margin: 0 0 6px 0;
	letter-spacing: -0.01em;
}

.seb-footer-cta-desc {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	line-height: 1.5;
}

.seb-footer-cta-btn {
	white-space: nowrap;
	border-radius: var(--seb-radius-pill, 999px);
	padding: 12px 28px;
}

/* =========================================================================
   3. Footer Main Area
   ========================================================================= */
.seb-footer-main {
	padding-top: var(--seb-footer-padding-top, 64px);
	padding-bottom: var(--seb-footer-padding-bottom, 28px);
}

/* =========================================================================
   4. Footer Columns & Layout Presets
   ========================================================================= */
.seb-footer-grid {
	display: grid;
	gap: 48px;
	align-items: flex-start;
}

/* Preset: Style 01 — 4 Columns (Default) */
.seb-footer-layout-01 .seb-footer-grid,
.seb-footer-grid {
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

/* Preset: Style 02 — 3 Columns */
.seb-footer-layout-02 .seb-footer-grid {
	grid-template-columns: 1.5fr 1fr 1.2fr;
}

/* Preset: Style 03 — Minimal */
.seb-footer-layout-03 .seb-footer-grid {
	grid-template-columns: 1.4fr 1fr;
	align-items: center;
}

.seb-footer-col {
	display: flex;
	flex-direction: column;
}

.seb-footer-col-minimal-actions {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-end;
}

/* =========================================================================
   5. Footer Logo & Brand
   ========================================================================= */
.seb-footer-brand-widget {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.seb-footer-logo {
	display: inline-block;
}

.seb-footer-logo img,
.seb-footer-logo .custom-logo {
	max-width: var(--seb-footer-logo-width-desktop, 160px);
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.seb-footer-site-title {
	font-family: var(--seb-font-display, serif);
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
}

.seb-footer-site-title a {
	color: var(--seb-footer-text, #ffffff);
	text-decoration: none;
	transition: color var(--seb-transition);
}

.seb-footer-site-title a:hover {
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
}

.seb-footer-description {
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.875rem;
	line-height: 1.65;
	margin: 0;
	max-width: 320px;
}

/* =========================================================================
   6. Footer Widgets & Headings
   ========================================================================= */
.seb-footer-widget {
	width: 100%;
}

.seb-footer-widget-title {
	font-family: var(--seb-font-body, sans-serif);
	font-size: 1rem;
	font-weight: 700;
	color: var(--seb-footer-text, #ffffff);
	margin: 0 0 20px 0;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	position: relative;
	padding-bottom: 10px;
}

.seb-footer-widget-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 28px;
	height: 2px;
	background-color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
	border-radius: 1px;
}

/* Reset for native WordPress widgets loaded into footer */
.seb-footer-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.seb-footer-widget li {
	margin-bottom: 8px;
}

.seb-footer-widget li:last-child {
	margin-bottom: 0;
}

.seb-footer-widget a {
	color: var(--seb-footer-link, rgba(255, 255, 255, 0.85));
	text-decoration: none;
	transition: color var(--seb-transition);
}

.seb-footer-widget a:hover {
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
}

/* =========================================================================
   7. Footer Links & Menus
   ========================================================================= */
.seb-footer-links-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.seb-footer-links-list li {
	margin: 0;
	padding: 0;
}

.seb-footer-links-list a {
	color: var(--seb-footer-link, rgba(255, 255, 255, 0.85));
	font-size: 0.875rem;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: color var(--seb-transition), transform var(--seb-transition);
}

.seb-footer-links-list a:hover {
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
	transform: translateX(3px);
}

/* =========================================================================
   8. Footer Contact Foundation
   ========================================================================= */
.seb-footer-contact-list {
	list-style: none;
	margin: 0 0 20px 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.seb-footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

.seb-footer-contact-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
}

.seb-footer-contact-link {
	color: var(--seb-footer-link, rgba(255, 255, 255, 0.85));
	text-decoration: none;
	transition: color var(--seb-transition);
}

.seb-footer-contact-link:hover {
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
}

.seb-footer-contact-text {
	color: rgba(255, 255, 255, 0.8);
}

/* =========================================================================
   9. Footer Social Foundation (Minimal, Circle, Outline)
   ========================================================================= */
.seb-footer-social {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.seb-footer-social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	text-decoration: none;
	transition: all var(--seb-transition);
}

/* Style: Minimal (Clean, no background border) */
.seb-footer-social.is-minimal .seb-footer-social-btn {
	background-color: transparent;
	border: 1px solid transparent;
	color: var(--seb-footer-link, rgba(255, 255, 255, 0.85));
	border-radius: var(--seb-radius-sm, 6px);
}

.seb-footer-social.is-minimal .seb-footer-social-btn:hover {
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
	background-color: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

/* Style: Circle (Pill translucent background) */
.seb-footer-social.is-circle .seb-footer-social-btn {
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid transparent;
	color: #ffffff;
}

.seb-footer-social.is-circle .seb-footer-social-btn:hover {
	background-color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
	color: #ffffff;
	transform: translateY(-2px);
}

/* Style: Outline (Transparent with subtle border) */
.seb-footer-social.is-outline .seb-footer-social-btn {
	border-radius: 50%;
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

.seb-footer-social.is-outline .seb-footer-social-btn:hover {
	border-color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
	transform: translateY(-2px);
}

/* =========================================================================
   10. Footer Bottom Bar & Divider
   ========================================================================= */
.seb-footer-bottom {
	background-color: #00274c;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 20px 0;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.7);
}

/* Conditional Divider Rule */
.seb-site-footer.no-divider .seb-footer-bottom {
	border-top: none;
}

.seb-footer-bottom-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.seb-footer-copyright p {
	margin: 0;
	line-height: 1.5;
}

.seb-footer-copyright a {
	color: var(--seb-footer-link, rgba(255, 255, 255, 0.85));
	text-decoration: none;
	transition: color var(--seb-transition);
}

.seb-footer-copyright a:hover {
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
}

.seb-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.seb-footer-menu li {
	margin: 0;
	padding: 0;
}

.seb-footer-menu a {
	color: var(--seb-footer-link, rgba(255, 255, 255, 0.75));
	text-decoration: none;
	transition: color var(--seb-transition);
}

.seb-footer-menu a:hover {
	color: var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
}

/* =========================================================================
   11. Footer Responsive & Accessibility
   ========================================================================= */
@media (max-width: 980px) {
	.seb-footer-logo img,
	.seb-footer-logo .custom-logo {
		max-width: var(--seb-footer-logo-width-mobile, 130px);
		height: auto;
	}

	.seb-footer-main {
		padding-top: calc(var(--seb-footer-padding-top, 64px) * 0.75);
		padding-bottom: calc(var(--seb-footer-padding-bottom, 28px) * 0.9);
	}

	.seb-footer-layout-01 .seb-footer-grid,
	.seb-footer-layout-02 .seb-footer-grid,
	.seb-footer-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 36px;
	}

	.seb-footer-layout-03 .seb-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
		align-items: flex-start;
	}

	.seb-footer-layout-03 .seb-footer-col-minimal-actions {
		align-items: flex-start;
	}

	.seb-footer-cta-container {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.seb-footer-bottom-container {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
	}

	.seb-footer-menu {
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.seb-footer-main {
		padding-top: calc(var(--seb-footer-padding-top, 64px) * 0.6);
		padding-bottom: 24px;
	}

	.seb-footer-layout-01 .seb-footer-grid,
	.seb-footer-layout-02 .seb-footer-grid,
	.seb-footer-layout-03 .seb-footer-grid,
	.seb-footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.seb-footer-col {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		padding-bottom: 24px;
	}

	.seb-footer-col:last-child {
		border-bottom: none;
		padding-bottom: 0;
	}

	.seb-footer-links-list a {
		min-height: 36px;
	}

	.seb-footer-contact-item {
		min-height: 36px;
	}

	.seb-footer-social-btn {
		width: 40px;
		height: 40px;
	}
}

/* Accessibility Focus States */
.seb-site-footer a:focus-visible,
.seb-site-footer button:focus-visible {
	outline: 2px solid var(--seb-footer-link-hover, var(--seb-accent, #f8753a));
	outline-offset: 2px;
	border-radius: 2px;
}
