/* Euphony Music Atelier — landing page */
:root {
	--bg-dark: #0d1117;
	--bg-navy: #121a2b;
	--gold: #c9a962;
	--gold-dark: #8b7355;
	--text-light: #f5f0e8;
	--text-muted: #9ca3af;
	--white: #ffffff;
	--card-bg: #ffffff;
	--header-h: 88px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Outfit", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #1a1a1a;
	background: #faf9f7;
}

h1, h2, h3, .font-serif {
	font-family: "Playfair Display", Georgia, serif;
}

/* ----- Header ----- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	height: var(--header-h);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 1.25rem;
	background: rgba(13, 17, 23, 0.35);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
	width: 100%;
	max-width: 1280px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 1rem;
}

.nav-left,
.nav-right {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.nav-right {
	justify-content: flex-end;
}

.nav-left a,
.nav-right > a,
.nav-right .nav-item > a {
	color: var(--text-light);
	text-decoration: none;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.5rem 0.65rem;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
}

.nav-left a:hover,
.nav-right > a:hover,
.nav-right .nav-item > a:hover {
	color: var(--gold);
	background: rgba(255, 255, 255, 0.06);
}

.logo-link {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.5rem;
}

.logo-link img {
	height: 48px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

/* Dropdown (Registration) */
.nav-item {
	position: relative;
}

.nav-item > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
	border: none;
	background: transparent;
	font: inherit;
	color: var(--text-light);
}

.nav-item > a::after {
	content: "";
	border: 4px solid transparent;
	border-top-color: currentColor;
	margin-top: 4px;
	opacity: 0.8;
}

.nav-item.is-open > a,
.nav-item:hover > a {
	color: var(--gold);
}

.dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	margin-top: 0.35rem;
	padding: 0.5rem 0;
	background: rgba(18, 26, 43, 0.95);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav-item.is-open .dropdown,
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown a {
	display: block;
	padding: 0.65rem 1.25rem;
	color: var(--text-light);
	text-decoration: none;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: none;
	font-weight: 500;
}

.dropdown a:hover {
	background: rgba(201, 169, 98, 0.15);
	color: var(--gold);
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 1002;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background: rgba(13, 17, 23, 0.6);
	color: var(--text-light);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: currentColor;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

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

	.site-header {
		height: auto;
		min-height: 72px;
		padding: 0.75rem 1rem;
	}

	.header-inner {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.nav-left,
	.nav-right {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-header.is-open .nav-left,
	.site-header.is-open .nav-right {
		display: flex;
	}

	.nav-left a,
	.nav-right > a,
	.nav-right .nav-item > a {
		width: 100%;
		text-align: center;
		border-radius: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.nav-item .dropdown {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		margin-top: 0;
		border: none;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.25);
	}

	.nav-item.is-open .dropdown {
		display: block;
	}

	.logo-link {
		order: -1;
	}

	.logo-link img {
		height: 40px;
	}
}

/* ----- Hero (Home) ----- */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
	overflow: hidden;
}

.hero-video-wrap {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--bg-navy);
}

.hero-video-wrap video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(13, 17, 23, 0.55) 0%,
		rgba(18, 26, 43, 0.75) 50%,
		rgba(13, 17, 23, 0.85) 100%
	);
	z-index: 1;
}

.hero-fallback {
	position: absolute;
	inset: 0;
	background: var(--bg-navy)
		url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23ffffff08' stroke-width='1'/%3E%3C/svg%3E");
	z-index: 0;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	text-align: center;
	color: var(--text-light);
}

.hero-content h1 {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.25;
	margin: 0 0 1.25rem;
	color: var(--gold);
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero-content p {
	font-size: clamp(1rem, 2vw, 1.2rem);
	margin: 0;
	opacity: 0.95;
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* ----- Sections ----- */
.section {
	padding: 5rem 1.5rem;
}

.section--alt {
	background: #f3f2ef;
}

.section-inner {
	max-width: 1140px;
	margin: 0 auto;
}

.section-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--gold-dark);
	margin: 0 0 0.5rem;
}

.section-sub {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 2.5rem;
}

/* About — Vision / Mission */
.vm-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.vm-image {
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: linear-gradient(145deg, #1e2a45, #121a2b);
	min-height: 320px;
}

.vm-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm-block h2 {
	font-size: 1.75rem;
	color: #1a1a1a;
	margin: 0 0 1rem;
}

.vm-block + .vm-block {
	margin-top: 2.5rem;
}

.vm-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.vm-list li {
	position: relative;
	margin-bottom: 1rem;
	padding-left: 2.5rem;
}

.vm-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0.1rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	background: var(--gold-dark);
	color: #fff;
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

@media (max-width: 900px) {
	.vm-grid {
		grid-template-columns: 1fr;
	}

	.vm-image {
		aspect-ratio: 16 / 10;
		max-height: 280px;
	}
}

/* Program grid */
.program-head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: start;
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e5e2dc;
}

.program-head h2 {
	margin: 0;
}

.program-intro {
	border-left: 2px solid var(--gold-dark);
	padding-left: 1.5rem;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.program-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.program-card {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 1.75rem 1.25rem;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.program-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: linear-gradient(145deg, #1a2744, #0f1729);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
}

.program-card h3 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.15rem;
	margin: 0 0 0.65rem;
	color: #1a1a1a;
}

.program-card p {
	font-size: 0.82rem;
	color: var(--text-muted);
	margin: 0 0 1rem;
	line-height: 1.5;
	min-height: 3.6em;
}

.btn-detail {
	background: none;
	border: none;
	color: var(--gold-dark);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
	font-family: inherit;
}

.btn-detail:hover {
	color: #1a1a1a;
}

@media (max-width: 1100px) {
	.program-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.program-head {
		grid-template-columns: 1fr;
	}

	.program-intro {
		border-left: none;
		padding-left: 0;
		border-top: 2px solid var(--gold-dark);
		padding-top: 1rem;
	}

	.program-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.program-grid {
		grid-template-columns: 1fr;
	}
}

/* Events */
.no-event {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--text-muted);
	font-size: 1.1rem;
}

/* Contact */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

.contact-block h3 {
	margin-top: 0;
	font-size: 1.25rem;
}

.contact-block p,
.contact-block a {
	margin: 0.5rem 0;
	color: inherit;
}

.contact-block a {
	color: var(--gold-dark);
	font-weight: 600;
}

.map-wrap {
	border-radius: 12px;
	overflow: hidden;
	min-height: 320px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.map-wrap iframe {
	width: 100%;
	height: 360px;
	border: 0;
	display: block;
}

@media (max-width: 768px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(13, 17, 23, 0.75);
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.modal-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.modal {
	background: #fff;
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	position: relative;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	transform: scale(0.95);
	transition: transform 0.25s;
}

.modal-backdrop.is-open .modal {
	transform: scale(1);
}

.modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	background: #f0eeeb;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

.modal-body {
	padding: 2rem 1.75rem 1.75rem;
}

.modal-body h3 {
	font-family: "Playfair Display", Georgia, serif;
	margin: 0 0 1rem;
	color: var(--gold-dark);
}

.modal-body p {
	margin: 0;
	color: #444;
	line-height: 1.65;
}

/* Footer strip */
.site-footer {
	background: var(--bg-navy);
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	padding: 1.5rem 1rem;
	font-size: 0.85rem;
}

.site-footer a {
	color: var(--gold);
}
