/* Hauer theme: layout rules that theme.json can't express.
   Breakpoints as on the old Elementor site: mobile < 768, tablet 768-1024, desktop >= 1025. */

/* Same box model as the old theme (the page CSS of shop/presskit/pre-release relies on it). */
*, *::before, *::after { box-sizing: border-box; }

/* Page background photo (url set per page from the featured image in functions.php). */
body {
	background-color: #000;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: 100% auto;
}

/* ---------- Header: not sticky, 60% black bar ---------- */
.hauer-header { background: rgba(0, 0, 0, 0.6); }
.hauer-header__inner {
	max-width: 1200px;
	min-height: 65px;
	margin: 0 auto;
	padding: 0 10px;
}
.hauer-logo img { width: 70px; height: auto; display: block; }

.hauer-nav .wp-block-navigation__container { gap: 0; }
.hauer-nav .wp-block-navigation-item__content { padding: 10px 30px; color: #fff; }
.hauer-nav .wp-block-navigation-item__content:hover,
.hauer-nav .current-menu-item > .wp-block-navigation-item__content { color: #ecd65a; text-decoration: none; }

/* Hamburger below 1025px (core switches at 600px; extend that to the tablet range). */
@media (min-width: 600px) and (max-width: 1024px) {
	.hauer-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.hauer-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1024px) {
	.hauer-header__inner { max-width: none; min-height: 58px; }
	.hauer-logo { order: -1; }
	.hauer-nav .wp-block-navigation__responsive-container-open {
		color: #fff; background: rgba(0, 0, 0, 0.6); padding: 8px;
	}
}

@media (max-width: 767px) {
	.hauer-logo img { width: 38px; }
}

/* Open mobile menu: list with thin lines, small spaced capitals; current page white. */
.hauer-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 0; }
.hauer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 58px; align-items: stretch; gap: 0;
}
.hauer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%; gap: 0; border-top: 1px solid #333;
}
.hauer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%; border-bottom: 1px solid #333;
}
.hauer-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	padding: 6px 10px; font-size: 12px; line-height: 17px; color: #ecd65a;
}
.hauer-nav .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: #fff; }
.hauer-nav .wp-block-navigation__responsive-container-close { top: 17px; right: 18px; color: #fff; }

/* ---------- Content column: 15% left, 65% wide (like the old Elementor columns) ---------- */
/* margin 0: no root block gap between header and main. */
.hauer-main { margin-block-start: 0; padding: 210px calc(20% + 10px) 40px calc(15% + 10px); }
@media (max-width: 767px) {
	.hauer-main { padding: 110px 10px 40px; }
}

/* Page title: 10px to the next block (30px before the music list, see below). */
.hauer-main h1 + * { margin-top: 10px; }
.hauer-main h1 + .hauer-music-list { margin-top: 30px; }

/* ---------- Home: one centered line low on the photo ---------- */
.home .hauer-main { padding: 475px 10px 40px; }
@media (max-width: 767px) { .home .hauer-main { padding-top: 280px; } }

/* White links (contact page, music list); hover yellow. */
.hauer-white-links a, .hauer-music-list a { color: #fff; }
.hauer-white-links p { line-height: 1.5; }
.hauer-white-links a:hover, .hauer-music-list a:hover { color: #ecd65a; }

/* ---------- Music: list with megaphone icons ---------- */
.hauer-music-list { list-style: none; padding: 0; text-transform: uppercase; font-weight: 700; }
.hauer-music-list li {
	padding-left: 45px; min-height: 20px;
	background: url(../img/megafoon_geel.png) no-repeat 0 50% / 20px auto;
}
.hauer-music-list li + li { margin-top: 15px; }
.hauer-main .hauer-music-list + .hauer-music-list { margin-top: 34px; }

/* ---------- Agenda: one Columns block per gig (pattern "Agenda: optreden") ---------- */
.hauer-main .hauer-gig { margin-top: 30px; margin-bottom: 0; gap: 0; }
/* Date column = 15% of the viewport like the old site: 15/65 of the content column. */
@media (min-width: 782px) {
	.hauer-gig > .wp-block-column:first-child { flex: 0 0 23.4% !important; padding-right: 20px; box-sizing: border-box; }
	.hauer-gig > .wp-block-column:last-child { flex: 1 1 0 !important; }
}
@media (max-width: 781px) {
	.hauer-main .hauer-gig { gap: 8px; }
}

/* ---------- Wide pages (templates page-wide / page-no-header: shop, presskit, pre-release) ----------
   Like the old theme: 1200px container; side padding comes from each page's own <style>
   (.hauer-main--wide, 60/30/10-20px), content directly under the header. */
.hauer-main--wide {
	margin-block-start: 0; max-width: 1200px; margin-inline: auto;
	padding: 6px 60px 40px; font-size: 16px; letter-spacing: normal; line-height: 1.7;
}
.page-template-page-no-header .hauer-main--wide { padding-top: 0; }
.hauer-main--wide .wp-block-file a:not(.wp-block-file__button) { font-weight: 400; }

/* ---------- Contact Form 7 (shop order form): full-width fields as on the old theme ---------- */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="number"], .wpcf7 textarea {
	display: inline-block; width: 100%; padding: 13px 15px; border: 0; border-radius: 0;
	font: 500 16px/1 Barlow, sans-serif; background: #fff; color: #000;
}
.wpcf7 textarea { line-height: 1.4; }
.wpcf7 input[type="submit"] {
	padding: 14px 16px; border: 0; border-radius: 0; cursor: pointer;
	font: 700 16px/1 Barlow, sans-serif;
}
