/* 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;
	width: 100%;
	overflow-x: clip;
}

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

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

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

video {
	max-width: 100%;
}

/* ----- 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-right .nav-item {
		width: 100%;
	}

	.nav-right .nav-item > a {
		display: flex;
		justify-content: center;
	}

	.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;
	min-height: 100dvh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
	overflow: hidden;
	width: 100%;
}

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

.hero-video-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: translateZ(0);
}

/* iOS Safari viewport height fallback */
@supports (-webkit-touch-callout: none) {
	html, body {
		height: -webkit-fill-available;
	}
	.hero {
		min-height: -webkit-fill-available;
	}
}

.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;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
}

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

.section-sub--tight {
	margin-bottom: 0.5rem;
}

.section-title--flush {
	margin: 0;
}

.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);
	width: 100%;
	min-height: 0;
}

.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: none;
	}
}

/* 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;
}

.program-card-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.25rem;
}

.btn-availability {
	display: inline-block;
	background: linear-gradient(145deg, #1a2744, #0f1729);
	color: var(--gold) !important;
	border: 1px solid rgba(201, 169, 98, 0.45);
	border-radius: 6px;
	padding: 0.5rem 0.85rem;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	font-family: inherit;
	cursor: pointer;
	transition: color 0.2s, background 0.2s, border-color 0.2s;
	text-align: center;
	line-height: 1.3;
	max-width: 100%;
}

.btn-availability:hover {
	color: var(--white) !important;
	background: #1a2744;
	border-color: var(--gold);
}

/* ----- Teacher available time (public) ----- */
.teacher-avail-main {
	background: #faf9f7;
	min-height: 100vh;
}

.teacher-avail-intro {
	max-width: 720px;
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 2rem;
}

.teacher-avail-filter {
	max-width: 420px;
}

.teacher-avail-select {
	width: 100%;
	max-width: 420px;
	padding: 0.7rem 0.9rem;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.teacher-avail-select:focus {
	outline: none;
	border-color: rgba(201, 169, 98, 0.8);
	box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.18);
}

.teacher-avail-error,
.teacher-avail-empty {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	background: #fff5f5;
	border: 1px solid #f0d0d0;
	color: #7a2a2a;
}

.teacher-directory {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.teacher-card-public {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.teacher-card-public__photo {
	flex: 0 0 120px;
	width: 120px;
	height: 120px;
	border-radius: 12px;
	overflow: hidden;
	background: #e8e6e1;
}

.teacher-card-public__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.teacher-card-public__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 2.5rem;
	color: var(--gold-dark);
	background: linear-gradient(145deg, #1a2744, #0f1729);
	color: var(--gold);
}

.teacher-card-public__body {
	flex: 1;
	min-width: 0;
}

.teacher-card-public__name {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	color: #1a1a1a;
}

.teacher-card-public__status {
	font-size: 0.85rem;
	margin: 0 0 1rem;
	line-height: 1.45;
}

.teacher-card-public__status--yes {
	color: #1e5f1e;
}

.teacher-card-public__status--no {
	color: var(--text-muted);
}

.btn-teacher-schedule {
	background: var(--gold-dark);
	color: var(--white);
	border: none;
	border-radius: 6px;
	padding: 0.55rem 1rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s, opacity 0.2s;
}

.btn-teacher-schedule:hover:not(:disabled) {
	background: #1a1a1a;
}

.btn-teacher-schedule:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.modal--wide {
	max-width: 520px;
}

.schedule-modal-list {
	margin-top: 0.75rem;
	max-height: min(60vh, 420px);
	overflow-y: auto;
	text-align: left;
}

.schedule-dl {
	margin: 0;
	font-size: 0.9rem;
}

.schedule-dl dt {
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 0.85rem;
	font-family: "Playfair Display", Georgia, serif;
}

.schedule-dl dt:first-child {
	margin-top: 0;
}

.schedule-dl dd {
	margin: 0.35rem 0 0 0;
	padding-left: 0.5rem;
	color: #444;
	border-left: 2px solid var(--gold);
}

@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;
}

.news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.news-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	align-items: stretch;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	min-width: 0;
}

.news-thumb img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

@media (max-width: 900px) {
	.news-card {
		grid-template-columns: 1fr;
	}
	.news-thumb img {
		max-height: none;
	}
}

/* Events — interactive gallery */
.events-interactive {
	max-width: 720px;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
	outline: none;
	overflow: hidden;
}

.events-interactive:focus-visible {
	box-shadow: 0 0 0 3px var(--gold);
	border-radius: 16px;
}

.events-stage-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.75rem;
}

.events-nav {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--white);
	color: var(--gold-dark);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	transition: background 0.2s, color 0.2s, transform 0.15s;
}

.events-nav:hover {
	background: var(--gold);
	color: var(--white);
}

.events-nav:active {
	transform: scale(0.96);
}

.events-stage {
	margin: 0;
	flex: 1;
	min-width: 0;
	background: var(--white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.events-stage__open {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	line-height: 0;
}

.events-stage__open img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
	transition: opacity 0.25s ease;
}

.events-stage__open:hover img {
	opacity: 0.96;
}

.events-caption {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	padding: 1rem 1.1rem;
	font-size: 1rem;
	color: #333;
}

.events-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
	color: var(--white);
}

.events-caption__text {
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 600;
	color: var(--gold-dark);
}

.events-hint {
	text-align: center;
	font-size: 0.85rem;
	color: var(--text-muted);
	margin: 0 0 1rem;
}

.events-hint kbd {
	font-family: inherit;
	font-size: 0.8em;
	padding: 0.12rem 0.4rem;
	border-radius: 4px;
	background: #eee;
	border: 1px solid #ccc;
}

/* Preview strip: equal columns (supports 2+ thumbnails without horizontal overflow) */
.events-thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	width: 100%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.events-thumb {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	gap: 0.35rem;
	padding: 0.35rem 0.28rem;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--white);
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.events-thumb:hover {
	border-color: rgba(201, 169, 98, 0.45);
}

.events-thumb.is-active {
	border-color: var(--gold);
	box-shadow: 0 4px 20px rgba(201, 169, 98, 0.25);
}

.events-thumb:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.5);
}

.events-thumb__img {
	min-width: 0;
	max-width: 100%;
	height: clamp(52px, 15vw, 88px);
	border-radius: 6px;
	overflow: hidden;
	line-height: 0;
	background: #f0eeeb;
	flex-shrink: 0;
}

.events-thumb__img img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
	aspect-ratio: unset;
}

.events-thumb__label {
	min-width: 0;
	max-width: 100%;
	font-size: 0.65rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--gold-dark);
	padding: 0 0.08rem;
	word-break: break-word;
	hyphens: auto;
}

/* Wider screens: keep thumbnails compact, not second hero cards */
@media (min-width: 600px) {
	.events-thumbs {
		max-width: 520px;
	}
	.events-thumb__img {
		height: clamp(64px, 9vw, 92px);
	}
	.events-thumb__label {
		font-size: 0.7rem;
	}
	.events-hint {
		font-size: 0.8rem;
	}
}

@media (max-width: 599px) {
	.events-hint {
		font-size: 0.72rem;
		padding: 0 0.25rem;
	}
}

@media (max-width: 600px) {
	.events-stage-wrap {
		gap: 0.2rem;
	}
	.events-nav {
		width: 38px;
		height: 38px;
		font-size: 1.25rem;
	}
}

/* Lightbox for event posters */
.modal-backdrop--lightbox {
	padding: 1rem;
}

.modal-backdrop--lightbox .modal {
	max-width: min(96vw, 920px);
	width: 100%;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.modal-backdrop--lightbox .modal-close {
	background: rgba(255, 255, 255, 0.95);
	z-index: 1;
}

.modal-lightbox-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

/* 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);
}

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 1500;
	width: 56px;
	height: 56px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #25d366;
	color: #ffffff;
	font-size: 0;
	line-height: 0;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wa-float:hover {
	transform: translateY(-2px);
	filter: brightness(1.02);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.wa-float:focus-visible {
	outline: 3px solid rgba(201, 169, 98, 0.7);
	outline-offset: 3px;
}

.wa-float__icon {
	width: 30px;
	height: 30px;
	display: block;
	flex: 0 0 auto;
}

@media (max-width: 480px) {
	.wa-float {
		right: 1rem;
		bottom: 1rem;
		width: 52px;
		height: 52px;
	}
	.wa-float__icon {
		width: 28px;
		height: 28px;
	}
}

.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;
}

/* Cookie consent banner */
.cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 1600;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #121a2b;
	color: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(201, 169, 98, 0.35);
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden] {
	display: none;
}

.cookie-banner__text {
	margin: 0;
	flex: 1 1 220px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.cookie-banner__text a {
	color: var(--gold);
}

.cookie-banner__btn {
	flex: 0 0 auto;
	border: 0;
	border-radius: 6px;
	padding: 0.55rem 1rem;
	background: var(--gold);
	color: #1a1a1a;
	font-weight: 600;
	cursor: pointer;
}

.cookie-banner__btn:hover {
	filter: brightness(1.05);
}

/* Contact form */
.contact-form {
	margin-top: 1rem;
	display: grid;
	gap: 0.65rem;
	max-width: 420px;
}

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

.contact-form__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #333;
}

.contact-form__input {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.contact-form__textarea {
	resize: vertical;
	min-height: 6rem;
}

.contact-form__check {
	font-size: 0.88rem;
	line-height: 1.45;
	color: #444;
}

.contact-form__check a {
	color: var(--gold-dark, #8b6914);
}

.contact-form__submit {
	margin-top: 0.35rem;
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: 4px;
	background: var(--gold-dark, #8b6914);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	width: fit-content;
}

.contact-form__submit:hover {
	filter: brightness(1.05);
}

.contact-form-notice {
	padding: 0.65rem 0.85rem;
	border-radius: 4px;
	font-size: 0.92rem;
}

.contact-form-notice--ok {
	background: #e8f5e9;
	color: #1b5e20;
}

.contact-form-notice--err {
	background: #ffebee;
	color: #b71c1c;
}

.modal-body .btn-link {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.55rem 1rem;
	background: var(--gold-dark, #8b6914);
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
}

/* New student registration */
.reg-page__main {
	padding: calc(var(--header-h, 88px) + 2rem) 1.25rem 3.5rem;
	max-width: 920px;
	margin: 0 auto;
}

.reg-page__hero {
	text-align: center;
	margin-bottom: 2rem;
}

.reg-page__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-dark, #8b6914);
}

.reg-page__hero h1 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	color: #1a1a1a;
}

.reg-page__lead {
	margin: 0 auto;
	max-width: 640px;
	color: #444;
	line-height: 1.6;
}

.reg-req {
	color: #c62828;
}

.reg-notice {
	padding: 0.85rem 1rem;
	border-radius: 6px;
	margin-bottom: 1.25rem;
	line-height: 1.5;
}

.reg-notice--ok {
	background: #e8f5e9;
	color: #1b5e20;
}

.reg-notice--err {
	background: #ffebee;
	color: #b71c1c;
}

.reg-form {
	display: grid;
	gap: 1.5rem;
}

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

.reg-section {
	background: #fff;
	border: 1px solid #e8e4dc;
	border-radius: 8px;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.reg-section__title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	color: #1a1a1a;
	border-bottom: 2px solid var(--gold, #c9a962);
	padding-bottom: 0.45rem;
}

.reg-section--declaration {
	background: #faf8f3;
}

.reg-field {
	margin-bottom: 0.85rem;
}

.reg-field:last-child {
	margin-bottom: 0;
}

.reg-field--hidden {
	display: none;
}

.reg-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #333;
}

.reg-input {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	background: #fff;
}

.reg-textarea {
	resize: vertical;
	min-height: 5rem;
}

.reg-name-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
}

.reg-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.reg-hint {
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: #666;
}

.reg-hint--block {
	margin-bottom: 0.85rem;
}

.reg-interest-table-wrap {
	overflow: visible;
	margin-top: 0.25rem;
}

body.reg-chosen-open .reg-section,
body.reg-chosen-open .reg-interest-table-wrap,
body.reg-chosen-open .reg-interest-table,
body.reg-chosen-open .reg-interest-table td {
	overflow: visible;
}

.reg-interest-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #d4cfc4;
	background: #fff;
}

.reg-interest-table th,
.reg-interest-table td {
	border: 1px solid #e8e4dc;
	padding: 0.65rem 0.75rem;
	vertical-align: middle;
}

.reg-interest-table th {
	background: #faf8f3;
	font-size: 0.9rem;
	font-weight: 700;
	color: #444;
	text-align: left;
}

.reg-interest-table__instrument {
	width: 38%;
}

.reg-interest-table__program {
	width: 62%;
	min-height: 2.75rem;
}

.reg-interest-table__program:empty::before {
	content: '\00a0';
}

.reg-check--instrument {
	margin: 0;
}

.reg-program-block {
	margin: 0;
}

.reg-check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.92rem;
	cursor: pointer;
}

.reg-check input {
	margin-top: 0.2rem;
}

.reg-check--block {
	align-items: flex-start;
	line-height: 1.45;
}

.reg-page .chosen-container {
	font-size: 0.92rem;
}

.reg-page .chosen-container.chosen-with-drop {
	position: relative;
	z-index: 2000;
}

.reg-page .chosen-container-single .chosen-single {
	height: auto;
	min-height: 38px;
	line-height: 1.4;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
}

.reg-page .chosen-container-active.chosen-with-drop .chosen-single {
	border-color: var(--gold-dark, #8b6914);
}

.reg-page .chosen-container .chosen-drop {
	border-color: #ccc;
	border-radius: 0 0 4px 4px;
	z-index: 2001;
}

.reg-actions {
	display: flex;
	justify-content: flex-end;
}

.reg-submit {
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: 4px;
	background: var(--gold-dark, #8b6914);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	font-size: 1rem;
}

.reg-submit:hover {
	filter: brightness(1.05);
}

@media (max-width: 768px) {
	.reg-name-row,
	.reg-grid-2 {
		grid-template-columns: 1fr;
	}
}
