/*
Theme Name: CatalogHub Twenty Twenty-Five
Description: Child of Twenty Twenty-Five — CatalogHub baseline (footer credits removed, CatalogHub branding block).
Author: CatalogHub
Template: twentytwentyfive
Version: 1.0.9
Text Domain: cataloghub-twentytwentyfive
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.2
*/

/*
 * Header markup follows Twenty Twenty-Five pattern (parts/header from TT5)
 * + site-logo and WooCommerce customer-account / mini-cart. Parent theme handles layout/styling.
 */

/*
 * Footer: match header edge padding (spacing-40); wide columns fill content width.
 * Credits line comes from cataloghub-credits.php only (not duplicated in footer.html).
 */
.cataloghub-site-footer.alignfull {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
}

.cataloghub-site-footer .cataloghub-footer__main.wp-block-columns.alignwide {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, var(--wp--custom--layout--wide-size, 1200px));
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 782px) {
	.cataloghub-site-footer .cataloghub-footer__main.wp-block-columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(1.5rem, 4vw, 3rem);
		align-items: start;
	}

	.cataloghub-site-footer .cataloghub-footer__main.wp-block-columns > .wp-block-column {
		flex-basis: unset !important;
		width: 100% !important;
	}
}

/* Branding logo: up to 120×120 box (object-fit keeps aspect ratio). */
.cataloghub-footer__brand .cataloghub-branding__logo-wrap {
	line-height: 0;
	max-width: 120px;
	max-height: 120px;
}

.cataloghub-footer__brand .cataloghub-branding__logo-wrap img,
.cataloghub-footer__brand img.cataloghub-branding__logo {
	display: block;
	max-width: 120px;
	max-height: 120px;
	object-fit: contain;
}

/*
 * Footer store name: larger (x-large / large).
 * Legal links: smaller body scale (~20.4px at 16px root — was oversized at ~37px from x-large).
 */
.cataloghub-footer__brand .wp-block-site-title,
.cataloghub-footer__brand .wp-block-site-title a {
	font-size: var(--wp--preset--font-size--x-large, var(--wp--preset--font-size--large, clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem)));
	line-height: 1.3;
	font-weight: 600;
}

.cataloghub-footer__legal .wp-block-navigation .wp-block-navigation-item__content {
	font-size: 1.275rem;
	line-height: 1.55;
	font-weight: 400;
}

.cataloghub-footer__brand .cataloghub-branding__whatsapp-link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	line-height: 0;
	text-decoration: none;
	border: none;
	padding: 0;
}

.cataloghub-footer__brand .cataloghub-branding__whatsapp-icon {
	display: block;
	width: 40px;
	height: 40px;
}

.cataloghub-footer__legal {
	width: 100%;
	align-items: flex-end;
}

.cataloghub-footer__legal .wp-block-navigation .wp-block-navigation__container {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

@media (max-width: 781px) {
	.cataloghub-site-footer .cataloghub-footer__main.wp-block-columns {
		gap: 2rem;
	}

	.cataloghub-footer__brand {
		align-items: flex-start;
		text-align: left;
	}

	.cataloghub-footer__brand .wp-block-site-title,
	.cataloghub-footer__brand .wp-block-site-title a {
		text-align: left;
	}

	.cataloghub-footer__legal {
		width: 100%;
		align-items: flex-start;
	}
}
