/*
Theme Name: Industria
Theme URI: https://industria.be
Author: Industria
Description: Block theme for the Industria WordPress site.
Version: 1.3.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: industria
*/

/* Global styles */

body {
	background-color: #fff;
	color: var(--wp--preset--color--foreground);
	font-family: "Inter", sans-serif;
	min-height: 100dvh;
}

/* Container for the page content */
.wp-site-blocks {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

/* Make main content take up remaining space */
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:not(.industria-header):not(.industria-footer) {
	flex: 1 1 auto;
}

/* Prevent header and footer from shrinking when main content stretches */
.industria-header,
.industria-footer {
	flex-shrink: 0;
}

/* Remove default margins between blocks for header and hero */
.wp-site-blocks > header.wp-block-template-part + .wp-block-template-part:has(.hero),
.wp-site-blocks > .wp-block-template-part:has(.hero) {
	margin-block-start: 0;
}

.industria-header {
	margin-block-end: 0;
}

/* Set headings to use different font */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
	font-family: "Montserrat", sans-serif;
	font-weight: 700;
}

/* Link styling */
a {
	color: var(--wp--preset--color--primary);
}

a:hover,
a:focus {
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-site-title a {
	text-decoration: none;
}

.wp-block-post-title a {
	text-decoration: none;
}

.wp-block-post-title a:hover,
.wp-block-post-title a:focus {
	text-decoration: underline;
}

/* Remove vertical gap between header, hero, and main only (not inherited by nested blocks). */
.wp-site-blocks.is-layout-flow {
	gap: 0;
}

@media screen and (max-width: 1023px) {
	.site-main.content {
		padding-left: 0.9375rem !important;
		padding-right: 0.9375rem !important;
		box-sizing: border-box;
	}
}
