/* ==========================================================================
   Latin Tribe — sections & components (loaded after main.css)
   ========================================================================== */

.container--narrow { width: min(760px, 100% - 2 * var(--gutter)); }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--top { align-items: start; gap: clamp(40px, 6vw, 72px); }
.section__more { margin-top: 28px; font-family: var(--font-head); font-weight: 600; }
.empty-state { padding: 24px; border: 1px dashed var(--color-line-strong); border-radius: var(--radius); color: var(--color-muted); margin: 0; }
/* Home hero: full-width photo, soft dark fade, text at the bottom-left */
.hero {
	position: relative; overflow: hidden; display: flex; align-items: flex-end;
	min-height: clamp(560px, calc(100svh - var(--header-h)), 860px);
	padding-block: var(--space-6) clamp(var(--space-5), 6vw, 88px);
	background: var(--color-bg);
}
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__bg, .hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__video { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.hero__video.is-playing { opacity: 1; }
.hero__media::after {
	content: ''; position: absolute; inset: 0;
	background:
		linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .25) 62%, rgba(0, 0, 0, .35) 100%),
		linear-gradient(to right, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__inner > * { max-width: 680px; }
.hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.hero .lead { color: var(--color-white); font-size: 1.2em; margin-bottom: var(--space-3); }
.hero__next { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 var(--space-4); padding: 10px 16px; border-radius: var(--radius); background: rgba(0, 0, 0, .55); border: 1px solid var(--color-line-strong); color: var(--color-cream); font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.hero__next-label { color: var(--color-accent); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-eyebrow); }
@media (max-width: 899px) {
	/* Phones: tall crop, text sits above the sticky Book bar */
	.hero { min-height: calc(100svh - var(--header-h) - 76px); padding-block: var(--space-5) var(--space-4); }
	.hero__media picture, .hero__bg { object-position: center 30%; }
	.hero .lead { font-size: 1.05em; }
	.hero__next { font-size: .85rem; margin-bottom: var(--space-2); }
}

/* Cards */
.card { position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); }
.card > :last-child { margin-bottom: 0; }
.card--olive { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.card__meta { font-size: .95rem; }
.badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--color-bg); color: var(--color-cream); font-family: var(--font-head); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.badge--cream { background: var(--color-cream); color: var(--color-bg); }

/* Features */
.feature { text-align: center; padding: 8px 12px; }
.feature__icon { width: 44px; height: 44px; margin: 0 auto 14px; fill: var(--color-bg); }
.feature p { margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--color-line); background: linear-gradient(160deg, rgba(140, 149, 76, .16), transparent 60%); }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: var(--color-bg); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.step a { font-family: var(--font-head); font-weight: 600; text-decoration: none; }

/* Timetable */
.timetable { display: grid; gap: 28px; }
.timetable__day-name { color: var(--color-accent); text-transform: uppercase; letter-spacing: .1em; font-size: 1rem; margin-bottom: 12px; }
.timetable__list { display: grid; gap: 12px; }
.class-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--radius); background: var(--color-surface); border-left: 4px solid var(--color-accent); }
.class-card--soon { border-left-color: var(--color-cream); }
.class-card__title { font-family: var(--font-head); font-size: 1.2rem; margin: 6px 0 4px; }
.class-card__meta { margin: 0; color: var(--color-muted); }
.class-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 10px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-bg); font-size: .78rem; font-family: var(--font-head); font-weight: 600; }
.tag--outline { background: transparent; color: var(--color-cream); border: 1px solid var(--color-line-strong); }
.tag--soon { background: var(--color-cream); }

/* Pricing — styled after the Tribe Packs flyer */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: stretch; }
.price-card { position: relative; overflow: hidden; padding: 28px 24px; border-radius: var(--radius); background: var(--color-accent-dark); color: var(--color-white); border: 1px solid var(--color-line); }
.price-card--best { background: var(--color-cream); color: var(--color-bg); border-color: var(--color-cream); }
.price-card__name { font-size: 1.15rem; margin-bottom: 8px; padding-right: 64px; }
.price-card__price { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 4vw, 3.2rem); line-height: 1; margin: 12px 0 18px; }
.price-card--best .price-card__price { color: var(--color-accent-dark); }
.price-card__badge {
	position: absolute; top: 20px; right: 18px; display: grid; place-content: center; width: 64px; height: 64px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, var(--color-gold-light), var(--color-gold) 60%, var(--color-gold-dark)); color: var(--color-bg);
	font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1; text-align: center;
}
.price-card__badge small { display: block; font-size: .6rem; font-weight: 600; margin-top: 2px; }
.price-card--best .price-card__badge { top: auto; bottom: 20px; }
.price-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-small); }
.price-card--best .price-card__list { padding-right: 72px; }
.price-card__ribbon {
	position: absolute; top: 18px; right: -42px; transform: rotate(45deg); width: 160px; padding: 4px 0; text-align: center;
	background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light), var(--color-gold)); color: var(--color-bg);
	font-family: var(--font-head); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
}

/* Tribe Nights */
.tribe-banner {
	background:
		linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .85)),
		radial-gradient(circle at 20% 20%, rgba(140, 149, 76, .7), transparent 50%),
		radial-gradient(circle at 90% 80%, rgba(214, 214, 185, .25), transparent 45%),
		var(--color-ink);
	border-block: 1px solid var(--color-line);
}
.tribe-banner__inner { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: center; }
.tribe-banner__title, .page-hero .graffiti { font-size: clamp(3.2rem, 9vw, 6rem); color: var(--color-cream); line-height: .95; margin-bottom: .2em; }

/* Event card */
.event-card { border-radius: var(--radius); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-line); }
.event-card__flyer { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.event-card__body { display: flex; gap: 20px; padding: 24px; align-items: flex-start; }
.event-card__date { flex: none; display: grid; justify-items: center; width: 72px; padding: 10px 0; border-radius: var(--radius); background: var(--color-accent); color: var(--color-bg); font-family: var(--font-head); font-weight: 600; font-size: .78rem; text-transform: uppercase; line-height: 1.2; }
.event-card__date strong { font-size: 1.9rem; line-height: 1; }
.event-card__title { font-size: 1.2rem; margin-bottom: 6px; }
.event-card__meta { color: var(--color-muted); font-size: .95rem; }
.events { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* Testimonials */
.quote { margin: 0; padding: 28px; border-radius: var(--radius); background: var(--color-white); color: var(--color-bg); }
.quote__stars { color: var(--color-star); letter-spacing: 2px; margin-bottom: 8px; }
.quote blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.quote figcaption { font-family: var(--font-head); font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font-family: var(--font-head); font-weight: 600; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--color-accent); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__answer { padding: 0 20px 18px; color: var(--color-muted); }
.faq__answer > :last-child { margin-bottom: 0; }

/* Venues */
.venues { margin-top: 8px; }
.venue address { font-style: normal; color: var(--color-muted); margin-bottom: 10px; }
.venue__parking { font-size: .95rem; color: var(--color-muted); }

/* CTA band */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; }

/* Forms */
.lead-form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--color-cream); color: var(--color-bg); }
.lead-form__heading { font-size: clamp(1.5rem, 2.5vw + .8rem, 2.2rem); }
.lead-form a:not(.btn) { color: var(--color-accent-dark); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--color-field-border); border-radius: var(--radius);
	background: var(--color-white); color: var(--color-bg); font: inherit; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-accent-dark); box-shadow: 0 0 0 3px rgba(140, 149, 76, .45); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field--check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--color-accent-dark); }
.field--check label { font-family: var(--font-body); font-weight: 400; font-size: .95rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; margin: 0; color: var(--color-on-cream-soft); }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-weight: 700; }
.notice ul { margin: 6px 0 0; padding-left: 20px; font-weight: 400; }
.notice p { margin: 0; }
.notice--ok { background: var(--color-accent); color: var(--color-bg); }
.notice--error { background: var(--color-error); color: var(--color-white); }
.notice--error a { color: var(--color-white); }

/* Inner pages */
.mt { margin-top: clamp(40px, 6vw, 64px); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checklist li { position: relative; padding-left: 36px; color: var(--color-muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); }
.checklist strong { display: block; color: var(--color-white); font-family: var(--font-head); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list span { display: block; font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--color-accent); }
.contact-list a { font-size: 1.15rem; word-break: break-word; }
.page-hero .lead p { margin-bottom: .5em; }

/* Meet the teachers */
.meet__inner { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.meet__img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

/* Inner page header photo */
.page-hero__inner { display: grid; gap: 32px; align-items: center; }
.page-hero--photo .page-hero__inner { grid-template-columns: 1.2fr 1fr; }
/* Scale the whole photo to fit (never crop): tall portraits and wide shots both show in full. */
.page-hero__photo { display: flex; justify-content: center; }
.page-hero__img { width: auto; max-width: 100%; height: auto; max-height: 520px; border-radius: var(--radius); }
@media (max-width: 899px) {
	.page-hero--photo .page-hero__inner { grid-template-columns: 1fr; }
	.page-hero__img { max-height: 420px; }
}

/* Photos and galleries added in the editor (About page etc.) */
.entry img { border-radius: var(--radius); }
.entry figure { margin: 2em 0; }
.entry figcaption { color: var(--color-muted); font-size: .9rem; margin-top: .5em; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.entry .wp-block-gallery figure { margin: 0; }
.entry .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }

/* About: three-photo banner, title over a dark fade at the bottom-left */
.about-hero { position: relative; background: var(--color-bg); }
.about-hero__grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 4px; height: clamp(440px, 62vh, 660px); }
.about-hero__cell { margin: 0; overflow: hidden; }
/* Crop anchored near the top so heads and faces stay in frame. */
.about-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.about-hero::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 32%, rgba(0, 0, 0, 0) 60%);
}
.about-hero__cell--main { position: static; }
.about-hero__title { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 56px); z-index: 1; }
.about-hero__title h1 { margin: 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
/* Page titles everywhere share one look: cream small heading, big title, short olive line underneath. */
.hero h1::after, .page-hero h1::after, .about-hero__title h1::after {
	content: ''; display: block; width: 72px; height: 5px; margin-top: 14px; border-radius: 3px; background: var(--color-accent);
}
.hero .eyebrow, .page-hero .eyebrow, .about-hero__title .eyebrow { color: var(--color-cream); }
.page-hero h1 { margin-bottom: .55em; }
@media (max-width: 899px) {
	.about-hero::after { content: none; }
	.about-hero__grid { grid-template-columns: 1fr 1fr; grid-template-areas: 'main main' 'left right'; grid-template-rows: 340px 220px; height: auto; }
	.about-hero__cell--main { grid-area: main; position: relative; }
	.about-hero__cell--left { grid-area: left; }
	.about-hero__cell--right { grid-area: right; }
	.about-hero__cell--main::after {
		content: ''; position: absolute; inset: 0; pointer-events: none;
		background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 55%);
	}
	.about-hero__title { bottom: 20px; }
}

.pricing--three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.price-card__unit { font-size: .9rem; font-weight: 600; opacity: .8; }
.pricing--three .price-card__name { padding-right: 0; }
.steps--four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wedding-note { text-align: center; margin: 0 auto 28px; }

/* Photo breaks & pinned backgrounds: the photo stays still while the page scrolls over it (desktop). */
.photo-break, .tribe-banner--photo { background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
.photo-break { position: relative; display: grid; place-items: center; min-height: clamp(320px, 58vh, 600px); text-align: center; }
.photo-break::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .6)); }
.photo-break .container { position: relative; }
.photo-break__text { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--color-white); font-size: clamp(1.6rem, 3.5vw + .8rem, 3.2rem); line-height: 1.15; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.photo-break__text::after { content: ''; display: block; width: 72px; height: 5px; margin: 18px auto 0; border-radius: 3px; background: var(--color-accent); }
.tribe-banner--photo { position: relative; }
.tribe-banner--photo::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.tribe-banner--photo .container { position: relative; }


/* Phones/tablets (iOS can't pin backgrounds) and reduced motion: photos scroll normally. */
@media (hover: none), (max-width: 899px), (prefers-reduced-motion: reduce) {
	.photo-break, .tribe-banner--photo { background-attachment: scroll; }
}

/* Highlight the form after "Book this class" */
@keyframes lt-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(140, 149, 76, 0); } 30% { box-shadow: 0 0 0 8px rgba(140, 149, 76, .7); } }
.lead-form--flash { animation: lt-flash 1.6s ease-out 1; }
.lead-form--flash select[name="free_class_id"] { border-color: var(--color-accent-dark); box-shadow: 0 0 0 3px rgba(140, 149, 76, .45); }

/* About: the story */
.story__inner { max-width: 46rem; }
.story__inner > p:first-child {
	position: relative; margin-bottom: var(--space-5); padding-top: var(--space-5);
	font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw + .6rem, 2rem); line-height: 1.25; color: var(--color-cream);
}
.story__inner > p:first-child::before {
	content: '\201C'; position: absolute; top: -.15em; left: -.05em;
	font-size: 4.5rem; line-height: 1; color: var(--color-accent);
}
.story__inner > p { color: var(--color-text-soft); }
.story__inner > p:last-child:not(:first-child) {
	margin-top: var(--space-5); padding-left: var(--space-4); border-left: 4px solid var(--color-accent);
	font-size: 1.15em; color: var(--color-white);
}

/* About: one section per teacher, photo and text alternating sides on desktop */
.teachers .container { display: grid; gap: clamp(var(--space-6), 8vw, 112px); }
.teacher { display: grid; gap: clamp(var(--space-4), 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.teacher--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.teacher--flip .teacher__photo { order: 2; }
.teacher__photo { position: relative; margin: 0; }
.teacher__photo::after {
	content: ''; position: absolute; inset: auto -12px -12px auto; width: 60%; height: 60%; z-index: 0;
	border: 3px solid var(--color-accent); border-radius: var(--radius);
}
.teacher--flip .teacher__photo::after { inset: auto auto -12px -12px; }
.teacher__img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); }
.teacher__name { font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; margin-bottom: var(--space-3); }
.teacher__name::after { content: ''; display: block; width: 72px; height: 5px; margin-top: 12px; border-radius: 3px; background: var(--color-accent); }
.teacher__tags { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; }
.teacher__tags li { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--color-line-strong); color: var(--color-cream); font-family: var(--font-head); font-weight: 600; font-size: .85rem; }
.teacher__bio p { color: var(--color-text-soft); }
.teacher__bio p:last-child { margin-bottom: 0; }
@media (max-width: 899px) {
	.teacher, .teacher--flip { grid-template-columns: 1fr; }
	.teacher--flip .teacher__photo { order: 0; }
	.teacher__photo { max-width: 420px; }
}

/* Home: social proof strip (cream) */
.proof { padding-block: clamp(2.5rem, 6vw, 4rem); }
.proof__eyebrow { text-align: center; }
.proof__list { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.proof__item { margin: 0; text-align: center; }
.proof__item blockquote { margin: 0 0 8px; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.4; color: var(--color-bg); }
.proof__item blockquote p { margin: 0; }
.proof__item figcaption { color: var(--color-on-cream-soft); font-size: var(--fs-small); }
.proof__item .quote__stars { margin-bottom: 6px; }

/* Home: Value Pack spotlight */
.value__inner { display: grid; gap: var(--space-5); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.value .section__head { margin-bottom: 0; }
.pricing--spotlight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.value .section__more { grid-column: 1 / -1; margin-top: 0; }

/* Tribe Packs: the best seller comes first on phones */
@media (max-width: 899px) {
	.pricing .price-card--best { order: -1; }
}

/* Free Class: photo hero with the form beside it (desktop) or straight underneath (phones) */
.free-hero { position: relative; overflow: hidden; padding-block: clamp(var(--space-5), 6vw, 88px); background: var(--color-bg); }
.free-hero .hero__media::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, .45) 100%), linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 40%);
}
.free-hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(var(--space-4), 4vw, 56px); align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
.free-hero__copy { padding-top: var(--space-4); }
.free-hero__copy .lead { color: var(--color-white); }
.free-hero__copy .lead p:last-child { margin-bottom: var(--space-4); }
.free-hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
@media (max-width: 899px) {
	.free-hero { padding-top: var(--space-5); }
	.free-hero__inner { grid-template-columns: 1fr; }
	.free-hero__copy { padding-top: 0; }
	/* The photo sits behind the heading; the form continues on black below it. */
	.free-hero .hero__media { bottom: auto; height: 520px; }
	.free-hero .hero__media::after { background: linear-gradient(to top, var(--color-bg) 0%, rgba(0, 0, 0, .75) 35%, rgba(0, 0, 0, .55) 100%); }
}

/* Free Class: what happens in the class */
.class-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.class-steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-3); align-items: start; }
.class-steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-accent); color: var(--color-bg); font-family: var(--font-head); font-weight: 700; }
.class-steps strong { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.class-steps p { margin: 0; color: var(--color-text-soft); }

/* Free Class: meet your teachers (compact) */
.mini-teachers { display: grid; gap: var(--space-5); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.mini-teachers .section__head { margin-bottom: 0; }
.mini-teachers__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.mini-teachers__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); margin-bottom: var(--space-2); }
.mini-teachers__list strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--color-white); }
.mini-teachers__list span { color: var(--color-muted); font-size: var(--fs-small); }

/* Classes: pack rules */
.pack-rules { margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius); border: 1px solid var(--color-line-strong); max-width: 46rem; }
.pack-rules h3 { margin-bottom: var(--space-2); }
.pack-rules p { color: var(--color-text-soft); }
.pack-rules p:last-child { margin-bottom: 0; }

/* Tribe Nights: what to expect in a row, gallery grid */
.checklist--row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); }
.gallery { display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* About: intro video */
.intro-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--color-ink); }
.intro-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ page groups */
.faq-group__heading { margin-top: var(--space-5); }
.faq-groups > .faq-group__heading:first-child { margin-top: 0; }

/* Form errors sit under their own field */
.field__error { margin: 0; color: var(--color-error); font-size: .9rem; font-weight: 700; }
.field [aria-invalid="true"] { border-color: var(--color-error); }

/* Free class thank-you page */
.booked__card { margin: var(--space-4) 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--color-cream); color: var(--color-bg); }
.booked__card h2 { margin-top: 0; }
.booked__card h3 { margin: var(--space-3) 0 4px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.booked__card p { margin: 0; }
.booked__card a:not(.btn) { color: var(--color-accent-dark); }
.booked__when { font-size: 1.15rem; }
.booked__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-4); }
.booked__card .btn { background: var(--color-bg); border-color: var(--color-bg); color: var(--color-white); }
.booked__card .btn--secondary { background: transparent; color: var(--color-bg); }
.booked__follow { margin-top: var(--space-5); font-size: 1.3rem; }

/* Portrait class videos: a swipeable row on phones, three across on desktop */
.video-strip__row { display: grid; grid-auto-flow: column; grid-auto-columns: min(70%, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.video-strip__video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); background: #111; scroll-snap-align: center; }
@media (min-width: 900px) {
	.video-strip__row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: 960px; margin-inline: auto; }
}

/* "More about this page" sections */
.more-sections__item + .more-sections__item { margin-top: var(--space-5); }
.more-sections h2 { font-size: clamp(1.3rem, 2vw + .8rem, 1.75rem); }
.more-sections ul { padding-left: 1.2em; }
.more-sections li + li { margin-top: 6px; }

/* Timetable: Grid / Calendar switch */
[data-view-panel][hidden] { display: none; }
.view-switch { display: inline-flex; padding: 4px; margin-bottom: var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--color-line-strong); background: var(--color-surface); }
.view-switch button { min-height: 40px; padding: 0 20px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-cream); font-family: var(--font-head); font-weight: 600; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--color-cta); color: var(--color-bg); }

/* Timetable calendar (week view) */
.cal__bar { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.cal__label { margin: 0; min-width: 10ch; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--color-white); }
.cal__nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-line-strong); background: transparent; color: var(--color-cream); cursor: pointer; }
.cal__nav:hover:not(:disabled) { background: var(--color-cream); color: var(--color-bg); }
.cal__nav:disabled { opacity: .35; cursor: default; }
.cal__legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0 0 var(--space-4); padding: 0; font-size: .85rem; color: var(--color-muted); }
.cal-key::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--k); vertical-align: middle; }
.cal-key--salsa, .cal-item--salsa { --k: var(--color-accent); }
.cal-key--bachata, .cal-item--bachata { --k: var(--color-cream); }
.cal-key--free, .cal-item--free { --k: var(--color-white); }
.cal-key--tribe, .cal-item--tribe { --k: var(--color-accent); }
.cal-item--tribe { border-left-style: dashed; }
.cal-key--tribe::before { background: transparent; border: 2px dashed var(--k); width: 6px; height: 6px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.cal-week[hidden] { display: none; }
.cal-week__empty { grid-column: 1 / -1; margin: 0 0 var(--space-2); text-align: center; color: var(--color-muted); }
.cal-day { min-height: 190px; padding: 10px 8px; border-radius: var(--radius); background: var(--color-surface); border: 1px solid var(--color-line); }
.cal-day.is-past { opacity: .45; }
.cal-day__head { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
.cal-day__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; letter-spacing: 0; color: var(--color-white); }
.cal-day__month { display: none; }
.cal-day.is-today .cal-day__num { background: var(--color-accent); color: var(--color-bg); }
.cal-day__none { margin: 24px 0 0; text-align: center; font-size: .8rem; color: var(--color-muted); }
.cal-item { display: grid; gap: 2px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; border-left: 4px solid var(--k); background: rgba(255, 255, 255, .05); color: var(--color-white); font-size: .82rem; line-height: 1.3; text-decoration: none; }
a.cal-item:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.cal-item__label { color: var(--k); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.cal-item__time { font-weight: 700; }
.cal-item__title, .cal-item__venue { color: var(--color-muted); overflow-wrap: anywhere; }
.cal-item.is-cancelled { opacity: .6; }
.cal-item.is-cancelled .cal-item__time, .cal-item.is-cancelled .cal-item__title { text-decoration: line-through; }
/* Phones and tablets: a list of the days that have something on */
@media (max-width: 899px) {
	.cal-week { grid-template-columns: 1fr; }
	.cal-day.is-empty, .cal-day.is-past { display: none; }
	.cal-day { min-height: 0; display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; align-items: start; padding: 12px; }
	.cal-day__head { margin: 0; grid-row: span 9; }
	.cal-day__month { display: block; }
	.cal-item { margin-top: 0; font-size: .9rem; }
	.cal-item + .cal-item { margin-top: 8px; }
}

/* About: follow links (text + icon, so they read as links, not just icons) */
.follow-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: var(--space-3) 0 0; padding: 0; }
.follow-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid var(--color-line-strong); color: var(--color-cream); font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.follow-links a:hover { background: var(--color-cream); color: var(--color-bg); }
