/*
 * Hubka Theme
 *
 * Phase: 12I — Footer Expansion
 * Purpose: Site Footer container — identity + 4 link columns, divider,
 * bottom row, and social links. A footer-specific, quieter variant of
 * the same navigation link styling used in the Header (see
 * navigation.css).
 *
 * Revision note: the footer was previously a single identity+nav row.
 * It now has 4 independent columns (Shop/Discover/Help/Account), each
 * its own `wp:navigation` block bound via `ref` to a dedicated
 * `wp_navigation` post created for this phase — real, separately
 * editable menus via Appearance → Editor → Navigation, not one shared
 * generic menu the old single nav row and the Header currently both
 * fall back to by default.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

.hubka-footer {
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
	border-block-start: 1px solid var(--wp--preset--color--border);
}

.hubka-footer__top {
	gap: var(--wp--preset--spacing--50);
	align-items: flex-start;
	padding-block-end: var(--wp--preset--spacing--50);
}

.hubka-footer__identity {
	max-inline-size: 18rem;
}

.hubka-footer__brand {
	gap: var(--wp--preset--spacing--20);
	align-items: center;
	margin-block-end: var(--wp--preset--spacing--20);
}

.hubka-footer__title a {
	color: var(--wp--preset--color--muted);
}

.hubka-footer__tagline {
	line-height: 1.5;
}

.hubka-footer__column-label {
	font-weight: 600;
	margin-block-end: var(--wp--preset--spacing--20);
}

.hubka-footer__column .hubka-footer__nav {
	gap: var(--wp--preset--spacing--20);
}

/* Footer nav is a quieter variant of the same link — muted by default,
 * same brand-color feedback on hover/focus as the Header (navigation.css). */
.hubka-footer__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	padding: 0;
}

.hubka-footer__divider {
	border-color: var(--wp--preset--color--border);
	margin-block: 0;
}

.hubka-footer__bottom {
	gap: var(--wp--preset--spacing--40);
	align-items: center;
	padding-block-start: var(--wp--preset--spacing--40);
}

/* Social icons: core's default block style gives each icon a colored
 * circular background per platform; overridden to a quiet, monochrome
 * treatment consistent with the editorial, restrained footer. */
.hubka-footer__social .wp-block-social-link {
	background: none;
}

.hubka-footer__social .wp-block-social-link-anchor {
	color: var(--wp--preset--color--muted);
	fill: currentColor;
}

.hubka-footer__social .wp-block-social-link-anchor svg {
	fill: currentColor;
}

.hubka-footer__social .wp-block-social-link:hover .wp-block-social-link-anchor,
.hubka-footer__social .wp-block-social-link-anchor:focus-visible {
	color: var(--wp--preset--color--primary);
}

@media (max-width: 782px) {
	.hubka-footer__identity {
		max-inline-size: 100%;
		flex-basis: 100%;
	}

	.hubka-footer__column {
		flex-basis: calc(50% - var(--wp--preset--spacing--50) / 2);
	}
}
