/* ==========================================================================
   Acoustic Sanctuary - site stylesheet
   Purple stage, yellow headlines, dark menu - same look as before, no WordPress.
   ========================================================================== */

:root {
	--purple: #5e05b8;
	--purple-dark: #4a0493;
	--purple-light: #7c2be2;
	--yellow: #ffff00;
	--black: #000;
	--nav-bg: #222;
	--nav-hover: #3f3f3f;
	--nav-sub: #3f3f3f;
	--text: #fff;
	--link: #8ebfff;
	--link-visited: #aacdff;
	--link-hover: #ffdada;
	--content-width: 900px;
	--font: Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--black);
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0 auto;
	max-width: var(--content-width);
	background: var(--purple);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--link);
	text-decoration: none;
}

a:visited {
	color: var(--link-visited);
}

a:hover,
a:focus {
	color: var(--link-hover);
}

a[href^="tel:"] {
	color: var(--yellow);
}

h1,
h2,
h3,
h4,
h5 {
	margin: 0.6em 0 0.4em;
	line-height: 1.2;
}

h1 {
	color: var(--yellow);
	font-size: 40px;
	font-weight: 600;
}

h2 {
	font-size: 30px;
	font-weight: 400;
}

h3 {
	font-size: 20px;
}

h4 {
	color: var(--yellow);
	font-size: 1.3em;
	margin: 10px 0 0;
}

h5 {
	color: var(--yellow);
	font-size: 1em;
	font-weight: 600;
	line-height: 1.4em;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

strong {
	font-weight: 700;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.yellow {
	color: var(--yellow);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: var(--yellow);
	color: var(--black);
}

/* ---------- Header ---------- */

.site-header {
	background: var(--yellow);
}

.inside-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 10px 20px;
}

.header-badge {
	flex: 0 1 45%;
}

.site-logo {
	flex: 0 1 49%;
}

.header-badge img,
.site-logo img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------- Navigation ---------- */

.main-navigation {
	position: relative;
	background: var(--nav-bg);
	font-size: 15px;
}

.inside-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border: 0;
	background: none;
	color: var(--yellow);
	font: inherit;
	cursor: pointer;
}

.menu-toggle-bars {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu .menu-item {
	position: relative;
}

.menu-link {
	display: flex;
	align-items: center;
	padding: 0 9px;
	line-height: 48px;
	border: 0;
	background: none;
	color: var(--yellow);
	font: inherit;
	white-space: nowrap;
	cursor: pointer;
}

.menu-link:visited {
	color: var(--yellow);
}

.menu-item:hover > .menu-link,
.menu-item:focus-within > .menu-link,
.current-menu-item > .menu-link,
.current-menu-ancestor > .menu-link {
	background: var(--nav-hover);
	color: var(--yellow);
}

.dropdown-arrow {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 7px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	transition: transform 0.2s;
}

.has-children.open > .menu-link .dropdown-arrow {
	transform: rotate(180deg);
}

.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	display: none;
	min-width: 190px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--nav-sub);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sub-menu .menu-link {
	width: 100%;
	padding: 0 16px;
	line-height: 42px;
	font-size: 14px;
}

.sub-menu .menu-item:hover > .menu-link,
.sub-menu .current-menu-item > .menu-link {
	background: #4f4f4f;
}

@media (hover: hover) and (min-width: 801px) {
	.has-children:hover > .sub-menu,
	.has-children:focus-within > .sub-menu {
		display: block;
	}
}

.has-children.open > .sub-menu {
	display: block;
}

/* ---------- Content ---------- */

.site-content {
	padding: 10px 50px 40px;
}

.site-main > * {
	margin: 0;
}

.entry-title {
	text-align: center;
}

.entry-content {
	margin-top: 1em;
}

.entry-content.text-center h1,
.entry-content.text-center h2,
.entry-content.text-center h3,
.entry-content.text-center h4 {
	text-align: center;
}

.lead {
	font-size: 1.1em;
}

.black-bar {
	display: block;
	margin: 20px 20% 1%;
	padding: 5px 0;
	background: var(--black);
	color: var(--yellow);
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}

.map-link {
	font-size: 30px;
	font-weight: 700;
}

.logo-oval {
	margin: 1em 0;
}

.logo-oval img {
	display: inline-block;
}

.instruments p {
	margin-bottom: 10px;
}

/* Buttons */

.btn {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid var(--yellow);
	border-radius: 4px;
	background: var(--black);
	color: var(--yellow);
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.btn:visited {
	color: var(--yellow);
}

.btn:hover,
.btn:focus {
	background: var(--yellow);
	color: var(--black);
}

.btn-small {
	padding: 6px 14px;
	font-size: 0.9em;
}

.btn-large {
	padding: 14px 28px;
	font-size: 1.3em;
}

.btn-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 1em 0;
}

/* Boxes / cards */

.box {
	margin: 1.5em 0;
	padding: 20px 24px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.2);
}

.box > h2:first-child,
.box > h3:first-child {
	margin-top: 0;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin: 1.5em 0;
}

.card {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.2);
	text-align: center;
}

.card h2,
.card h3 {
	margin-top: 0;
	color: var(--yellow);
}

.card .card-photo {
	display: block;
	width: 100%;
	height: 180px;
	margin: 0 0 12px;
	object-fit: cover;
	border-radius: 4px;
}

.card .card-body {
	flex: 1;
}

.card .btn-group {
	margin-bottom: 0;
}

/* Schematic thumbnail (click to open pop-up) */

.schematic-thumb {
	display: inline-block;
	margin: 0.5em auto;
	padding: 6px;
	border: 0;
	border-radius: 4px;
	background: var(--yellow);
	cursor: zoom-in;
	transition: transform 0.15s;
}

.schematic-thumb:hover,
.schematic-thumb:focus {
	transform: scale(1.03);
}

.schematic-thumb img {
	display: block;
	width: 220px;
	height: auto;
}

/* Banner (Model T Theatre schematic on the truck) */

.schematic-banner {
	position: relative;
	display: block;
	width: 100%;
	margin: 1.5em 0;
	padding: 0;
	border: 2px solid var(--yellow);
	border-radius: 6px;
	background: var(--black);
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: zoom-in;
	overflow: hidden;
}

.schematic-banner img {
	display: block;
	width: 100%;
	height: 380px;
	object-fit: cover;
	object-position: center 15%;
}

.schematic-banner-copy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.92));
	color: #fff;
}

.schematic-banner strong {
	display: block;
	font-size: 1.3em;
	color: var(--yellow);
}

.schematic-banner .btn {
	flex-shrink: 0;
}

/* Tables (rates / clearances) */

.info-table {
	margin: 0.5em auto 1em;
	border-collapse: collapse;
	max-width: 420px;
	width: 100%;
}

.info-table td {
	padding: 6px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	vertical-align: bottom;
}

.info-table tr:hover td {
	background: #9058ff;
}

.info-table .price {
	color: var(--yellow);
	font-size: 1.2em;
	text-align: right;
	white-space: nowrap;
}

.info-table .measure {
	color: var(--yellow);
	font-size: 1.1em;
	white-space: nowrap;
}

/* Timeline (Bio) */

.timeline {
	text-align: right;
}

.timeline h2 {
	margin: 1em 0 0;
}

.timeline p {
	margin: 0 0 0.5em;
}

/* Galleries */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
	margin: 1.5em 0;
	padding: 0;
	list-style: none;
}

.gallery a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 4px;
	background: var(--black);
}

.gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}

.gallery a:hover img,
.gallery a:focus img {
	transform: scale(1.05);
}

/* Video embed */

.video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 1.5em 0;
	background: var(--black);
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Press / articles */

.press-item {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 2em 0;
	padding-bottom: 2em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.press-item:last-child {
	border-bottom: 0;
}

.press-item.has-image {
	grid-template-columns: 220px 1fr;
	align-items: start;
}

.press-item img {
	border-radius: 4px;
}

.press-item h2 {
	margin: 0 0 4px;
	font-size: 24px;
	color: var(--yellow);
}

.press-meta {
	margin-bottom: 0.6em;
	color: #ddd;
	font-size: 0.95em;
}

.press-item blockquote {
	margin: 0;
	padding-left: 16px;
	border-left: 3px solid var(--yellow);
	font-style: italic;
}

/* Song list (Musical Storytelling) */

.song-list h4 {
	margin-top: 1.2em;
}

.song-list h5 em {
	font-style: italic;
}

/* ---------- Contact ---------- */

.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 40px;
	margin-top: 1.5em;
}

.contact-info h3 {
	margin: 1.2em 0 0.2em;
	color: var(--yellow);
}

.contact-info h3:first-child {
	margin-top: 0;
}

.contact-info .big-email {
	font-size: 1.1em;
	word-break: break-all;
}

.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin: 0.5em 0 0;
	padding: 0;
	list-style: none;
}

.social-list a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
}

.social-list a:hover,
.social-list a:focus {
	color: var(--yellow);
}

.social-list .icon {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}

.social-list-vertical {
	flex-direction: column;
	gap: 10px;
}

.social-list-icons .icon {
	width: 32px;
	height: 32px;
}

/* Form */

.contact-form {
	padding: 24px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.25);
}

.contact-form h2 {
	margin-top: 0;
	color: var(--yellow);
	font-size: 24px;
}

.form-field {
	margin-bottom: 16px;
}

.form-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.form-field .optional {
	font-weight: 400;
	color: #ccc;
	font-size: 0.9em;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fafafa;
	color: #2a2a2a;
	font: inherit;
}

.form-field textarea {
	min-height: 150px;
	resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: 3px solid var(--yellow);
	outline-offset: 1px;
}

.form-field.has-error input,
.form-field.has-error textarea {
	border-color: #ff6b6b;
}

.field-error {
	display: block;
	margin-top: 4px;
	color: #ffd1d1;
	font-size: 0.9em;
}

.form-note {
	color: #ddd;
	font-size: 0.9em;
}

.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.alert {
	margin: 1em 0;
	padding: 14px 18px;
	border-radius: 4px;
	border: 1px solid;
}

.alert-success {
	background: #0e4a2a;
	border-color: #1f8a4c;
}

.alert-error {
	background: #5c1414;
	border-color: #b33;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--purple-light);
	color: var(--text);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding: 30px 40px;
}

.footer-col h3 {
	margin: 0 0 10px;
	color: var(--yellow);
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.footer-col p {
	margin-bottom: 0.8em;
}

.footer-label {
	color: #e4d6ff;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.footer-venue strong {
	color: var(--yellow);
	font-size: 1.15em;
}

.site-info {
	padding: 16px 20px;
	background: var(--nav-bg);
	color: var(--text);
	font-size: 0.9em;
	text-align: center;
}

.site-info p {
	margin: 0;
}

.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 20px;
	line-height: 40px;
	text-align: center;
	opacity: 0;
	transform: translateY(100px);
	transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.back-to-top:hover {
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
}

/* ---------- Pop-ups (dialogs) ---------- */

.modal {
	max-width: min(1000px, 96vw);
	width: 100%;
	max-height: 94vh;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #1a1a1a;
	color: #fff;
	overflow: hidden;
}

.modal::backdrop {
	background: rgba(20, 5, 50, 0.85);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	background: var(--black);
}

.modal-title {
	margin: 0;
	font-size: 18px;
	color: var(--yellow);
}

.modal-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.modal-close {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--black);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.modal-pdf .modal-body {
	position: relative;
	height: calc(94vh - 62px);
	background: #ddd;
	overflow: auto;
}

.modal-pdf #pdf-modal-preview {
	display: block;
	width: 100%;
	height: auto;
	background: #fff;
}

.modal-pdf iframe {
	display: block;
	width: 100%;
	min-height: 70vh;
	border: 0;
	background: #fff;
}

.modal-fallback {
	margin: 0;
	padding: 8px 16px;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	font-size: 0.85em;
	text-align: center;
}

.modal-lightbox {
	display: none;
	max-width: 96vw;
	background: transparent;
	overflow: visible;
}

.modal-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-lightbox .modal-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 2;
}

.lightbox-figure {
	margin: 0;
	text-align: center;
}

.lightbox-figure img {
	display: block;
	max-width: 90vw;
	max-height: 84vh;
	margin: 0 auto;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-figure figcaption {
	margin-top: 10px;
	color: #eee;
}

.lightbox-figure figcaption:empty {
	display: none;
}

.lightbox-nav {
	position: fixed;
	top: 50%;
	z-index: 2;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: var(--yellow);
	font-size: 22px;
	cursor: pointer;
}

.lightbox-nav:hover {
	background: var(--yellow);
	color: var(--black);
}

.lightbox-prev {
	left: 16px;
}

.lightbox-next {
	right: 16px;
}

body.modal-open {
	overflow: hidden;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
	.menu-toggle {
		display: flex;
	}

	.inside-navigation {
		flex-direction: column;
		align-items: stretch;
	}

	.menu {
		display: none;
		flex-direction: column;
	}

	.menu.is-open {
		display: flex;
	}

	.menu-link {
		width: 100%;
		justify-content: center;
		line-height: 46px;
	}

	.sub-menu {
		position: static;
		box-shadow: none;
	}

	.sub-menu .menu-link {
		justify-content: center;
	}

	.site-content {
		padding: 10px 20px 30px;
	}

	.black-bar {
		margin: 20px 10% 1%;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
		padding: 24px 20px;
	}

	.contact-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.press-item.has-image {
		grid-template-columns: 1fr;
	}

	.schematic-banner img {
		height: 220px;
	}

	.schematic-banner-copy {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 16px;
	}

	h1 {
		font-size: 30px;
	}

	h2 {
		font-size: 25px;
	}

	.inside-header {
		flex-direction: column;
		gap: 6px;
		padding: 10px;
	}

	.header-badge,
	.site-logo {
		flex-basis: auto;
		width: 80%;
	}

	.site-content {
		padding: 10px 12px 30px;
	}

	.black-bar {
		margin: 20px 0 1%;
	}

	.map-link {
		font-size: 25px;
	}

	.modal-header {
		flex-wrap: wrap;
	}

	.modal-actions {
		flex-wrap: wrap;
	}

	.modal-actions .btn {
		padding: 5px 10px;
		font-size: 0.8em;
	}

	.modal-pdf .modal-body {
		height: calc(94vh - 110px);
	}
}
