/*
Theme Name: TSD Theme
Theme URI: https://example.com/
Author: TSD
Author URI: https://example.com/
Description: A custom child theme for Twenty Twenty-Five tailored for the TSD website.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0.1
Template: twentytwentyfive
Text Domain: tsd-theme
*/

.wp-site-blocks {
	min-height: 100vh;
}

body:not(.page-template-page-wide) main > .wp-block-group.alignfull > .wp-block-post-content.alignfull {
	max-width: none;
	width: 100%;
}

body.page-template-page-wide main > .wp-block-group.alignfull > .wp-block-post-content {
	max-width: 1280px;
	width: min(100%, 1280px);
	margin-right: auto !important;
	margin-left: auto !important;
}

body.page-template-page-wide .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 1280px;
}

body.home main > .wp-block-group.alignfull {
	padding-top: 0 !important;
}

body.home main .is-layout-constrained > * {
	margin-block-start: 0 !important;
}

body.home main .is-layout-constrained > * + * {
	margin-block-start: 0 !important;
}

.tsd-font-bold {
	font-weight: 700 !important;
}

.tsd-items-start {
	align-items: flex-start !important;
}

.tsd-language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1;
}

.tsd-language-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(12, 42, 53, 0.18);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.tsd-language-switcher__link:hover,
.tsd-language-switcher__link:focus-visible,
.tsd-language-switcher__link.is-active {
	border-color: #0c2a35;
	background: #0c2a35;
	color: #ffffff;
	outline: none;
}

.tsd-whatsapp-widget {
	position: fixed;
	right: clamp(16px, 2vw, 28px);
	bottom: clamp(16px, 2vw, 28px);
	z-index: 1000;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: #25d366;
	color: #ffffff;
	box-shadow: 0 18px 38px rgba(8, 23, 31, 0.24);
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.tsd-whatsapp-widget:hover,
.tsd-whatsapp-widget:focus-visible {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 22px 42px rgba(8, 23, 31, 0.3);
	outline: none;
}

.tsd-whatsapp-widget__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
}

.tsd-whatsapp-widget__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

@media (max-width: 640px) {
	body.page-template-page-wide .wp-site-blocks {
		padding-right: 0;
		padding-left: 0;
	}

	body.page-template-page-wide main > .wp-block-group.alignfull {
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.wp-block-columns.tsd-columns-mobile-2 {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.wp-block-columns.tsd-columns-mobile-2 > .wp-block-column {
		flex-basis: auto !important;
		margin: 0 !important;
		min-width: 0;
	}

	.tsd-whatsapp-widget {
		width: 68px;
		height: 68px;
	}

	.tsd-whatsapp-widget__icon {
		width: 32px;
		height: 32px;
	}
}

@media (min-width: 783px) {
	footer.wp-block-template-part .wp-block-columns,
	.wp-site-blocks > .wp-block-template-part:last-child .wp-block-columns {
		align-items: flex-start !important;
	}

	footer.wp-block-template-part .wp-block-column,
	.wp-site-blocks > .wp-block-template-part:last-child .wp-block-column {
		align-self: flex-start !important;
	}

	footer.wp-block-template-part .wp-block-column.is-vertically-aligned-center,
	.wp-site-blocks > .wp-block-template-part:last-child .wp-block-column.is-vertically-aligned-center {
		align-self: flex-start !important;
	}

	footer.wp-block-template-part .wp-block-columns .wp-block-column:first-child,
	.wp-site-blocks > .wp-block-template-part:last-child .wp-block-columns .wp-block-column:first-child {
		display: flex;
		justify-content: flex-start;
	}
}
