/* Components shared by templates, dynamic blocks and the block editor preview. */

/* ==========================================================================
   Shared components
   ========================================================================== */

.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--saffron-700);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--saffron); flex-shrink: 0; }
@media (min-width: 768px) { .eyebrow { font-size: .875rem; } .eyebrow::before { width: 32px; } }
.section--ink .eyebrow { color: var(--saffron); }

.lead { font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); max-width: 580px; margin: 0; }
@media (min-width: 768px) { .lead { font-size: 1.25rem; } }

.section-title { font-weight: 800; font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); line-height: 1.1; letter-spacing: -.015em; margin: 0; }
.section-title--xl { font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.25rem); }
.section-lead { margin: 0; font-size: 1.125rem; color: var(--text-2); }

.page-title { font-weight: 800; font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.page-title--xl { font-size: clamp(2.625rem, 1.5rem + 3.8vw, 4.5rem); }

.label { font-family: var(--font-body); font-size: .9375rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* Buttons */
.button,
.wpcf7-submit,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 28px;
	border: 2px solid var(--saffron);
	border-radius: 999px;
	background: var(--saffron);
	color: var(--ink);
	font: 600 1.0625rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.button:hover, .wpcf7-submit:hover, input[type="submit"]:hover { background: var(--saffron-600); border-color: var(--saffron-600); color: var(--ink); }
.button--outline { background: transparent; border-color: var(--ink); }
.button--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button--dark:hover { background: var(--ink-800); border-color: var(--ink-800); color: var(--paper); }
.button--block { width: 100%; }
.button-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .button-row { flex-direction: row; flex-wrap: wrap; gap: 16px; } }

.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; white-space: nowrap; }
.text-link--on-dark { color: var(--saffron); }
.text-link--on-dark:hover { color: var(--paper); }
.text-link--ink { color: var(--ink); white-space: normal; }

/* Icon badge: instrument icon in a circle */
.icon-badge {
	width: 64px; height: 64px;
	border-radius: 50%;
	background: var(--saffron-100);
	color: var(--saffron-700);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.icon-badge--sm { width: 48px; height: 48px; }
.icon-badge--dark { width: 72px; height: 72px; background: var(--ink); color: var(--saffron); }
.icon-badge--xl { width: 96px; height: 96px; }

/* Decorative staff (wavy lines) */
.staff { position: absolute; left: 0; width: 100%; height: 300px; fill: none; stroke: var(--line); stroke-width: 2; pointer-events: none; }
.staff path { vector-effect: non-scaling-stroke; }
.staff--hero { top: 46%; }
.staff--page { top: 30%; height: 220px; }
.staff--cta { top: 10%; stroke: #D26D41; }

/* Arch frame (from the curve of the logo wing) */
.arch { width: 100%; object-fit: cover; border-radius: 150px 150px var(--radius) var(--radius); }
@media (min-width: 1024px) { .arch { border-radius: 220px 220px var(--radius-lg) var(--radius-lg); } }

/* Grids */
.grid { display: grid; gap: 12px; }
.grid--courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--news { grid-template-columns: 1fr; gap: 24px; }
.grid--rows { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) {
	.grid { gap: 24px; }
	.grid--courses, .grid--teachers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.grid--courses, .grid--teachers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid--rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Cards */
.card {
	background: var(--white);
	color: var(--ink);
	border: 1.5px solid var(--line);
	border-radius: 16px;
	text-decoration: none;
	transition: border-color .15s;
}
.card:hover { border-color: var(--saffron-700); color: var(--ink); }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; margin: 0; color: inherit; }
.card__more { display: none; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--saffron-700); }

.course-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 150px; }
.course-card .icon-badge { width: 48px; height: 48px; }
.course-card .icon-badge svg { width: 26px; height: 26px; }
@media (min-width: 768px) {
	.card { border-radius: var(--radius); }
	.course-card { gap: 16px; padding: 24px; min-height: 216px; }
	.course-card .icon-badge { width: 64px; height: 64px; }
	.course-card .icon-badge svg { width: 34px; height: 34px; }
	.course-card .card__title { font-size: 1.4375rem; flex-grow: 1; }
	.course-card .card__more { display: inline-flex; }
}

.teacher-card { display: flex; flex-direction: column; overflow: hidden; }
.teacher-card__photo, .teacher-card .photo-fallback { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 25%; }
.teacher-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; }
.teacher-card__role { font-size: .875rem; color: var(--muted); line-height: 1.35; }
@media (min-width: 768px) {
	.teacher-card__body { padding: 20px 20px 22px; }
	.teacher-card .card__title { font-size: 1.3125rem; }
	.teacher-card__role { font-size: .9375rem; }
}

.photo-fallback { display: flex; align-items: center; justify-content: center; background: var(--sand); }

.teacher-row { display: flex; gap: 14px; align-items: center; padding: 12px; }
.teacher-row__photo, .teacher-row .photo-fallback { width: 96px; height: 120px; flex-shrink: 0; object-fit: cover; object-position: 50% 25%; border-radius: 12px; }
.teacher-row .photo-fallback .icon-badge--xl { width: 56px; height: 56px; }
.teacher-row__body { display: flex; flex-direction: column; gap: 4px; }
.teacher-row__role { font-size: .875rem; font-weight: 600; color: var(--saffron-700); }
.teacher-row__excerpt { display: none; color: var(--text-2); }
.teacher-row .card__more { display: inline-flex; color: var(--ink); }
@media (min-width: 768px) {
	.teacher-row { gap: 28px; align-items: stretch; padding: 0; overflow: hidden; }
	.teacher-row__photo, .teacher-row .photo-fallback { width: 220px; height: 280px; border-radius: 0; }
	.teacher-row__body { padding: 28px 28px 28px 0; justify-content: center; gap: 10px; }
	.teacher-row .card__title { font-size: 1.625rem; }
	.teacher-row__role { font-size: .9375rem; }
	.teacher-row__excerpt { display: block; }
}

/* Sections */
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .section-title, .section--ink h3 { color: var(--paper); }

.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.section-head__text { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
@media (min-width: 768px) {
	.section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: #8A8073; }
.crumbs a { display: inline-flex; min-height: 24px; align-items: center; }
.crumbs [aria-current] { color: var(--muted); }
@media (min-width: 768px) { .crumbs ol { font-size: .9375rem; } }

/* News card */
.news-card { display: flex; flex-direction: column; gap: 14px; }
.news-card__img, .news-card__cover { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius); object-fit: cover; }
.news-card__cover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--saffron); color: var(--ink); font-family: var(--font-display); }
.news-card:nth-child(3n+2) .news-card__cover { background: var(--ink); color: var(--saffron); }
.news-card__cover-cat { font-weight: 700; font-size: 1.5rem; }
.news-card__cover-date { font-weight: 800; font-size: 2.75rem; line-height: 1; }
.news-card__date { font-size: .875rem; font-weight: 600; color: var(--saffron-700); }
.news-card__title { font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin: 0; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { text-decoration: underline; }
@media (min-width: 768px) { .news-card__title { font-size: 1.5rem; } }

