/* ==========================================================================
   Latin Tribe — base styles
   Palette from the Tribe Packs flyer. Normal-size text on olive is black (white on olive is 3.2:1).
   ========================================================================== */

@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Glacial Indifference'; font-weight: 400; font-display: swap; src: url('../fonts/glacial-regular.woff2') format('woff2'); }
@font-face { font-family: 'Glacial Indifference'; font-weight: 700; font-display: swap; src: url('../fonts/glacial-bold.woff2') format('woff2'); }
@font-face { font-family: 'Sprite Graffiti'; font-weight: 400; font-display: swap; src: url('../fonts/sprite-graffiti.woff2') format('woff2'); }

:root {
	/* Colours (one place to change the palette) */
	--color-bg: #000;               /* page background */
	--color-ink: #0d0d0a;           /* alternate dark sections */
	--color-surface: #15160f;       /* cards on dark */
	--color-accent: #8c954c;        /* brand olive: black text on it (white on olive is only 3.2:1) */
	--color-accent-dark: #3f4422;
	--color-cream: #d6d6b9;         /* brand cream: black text on it */
	--color-white: #fff;
	--color-text: #fff;
	--color-text-soft: #d6d6c6;     /* intro text on dark (14.3:1) */
	--color-muted: #b9b9a3;         /* small print on dark (10.5:1) */
	--color-on-cream-soft: #3a3a2c;
	--color-line: rgba(214, 214, 185, .15);
	--color-line-soft: rgba(214, 214, 185, .08);
	--color-line-strong: rgba(214, 214, 185, .4);
	--color-field-border: #8a8a74;
	--color-gold: #c9a43d;
	--color-gold-light: #f3dc8a;
	--color-gold-dark: #a7832a;
	--color-star: #8a6a1c;
	--color-error: #5c1414;
	--color-cta: var(--color-cream);        /* primary button: black text 14.2:1 */
	--color-cta-hover: var(--color-accent); /* primary button hover: black text 6.5:1 */

	/* Type */
	--font-head: 'Poppins', system-ui, sans-serif;
	--font-body: 'Glacial Indifference', system-ui, sans-serif;
	--font-graffiti: 'Sprite Graffiti', 'Poppins', sans-serif;
	--fs-body: clamp(1.0625rem, 1.1vw + .75rem, 1.1875rem);
	--fs-h1: clamp(2rem, 6vw, 3.5rem);
	--fs-h2: clamp(1.5rem, 4vw, 2.25rem);
	--fs-h3: clamp(1.15rem, 1vw + .95rem, 1.4rem);
	--fs-lead: 1.15em;
	--fs-small: .9rem;
	--fs-eyebrow: .8rem;

	/* Spacing, shape, depth */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 16px;
	--space-4: 24px;
	--space-5: 40px;
	--space-6: 64px;
	--section: clamp(3rem, 8vw, 6rem);
	--gutter: clamp(16px, 4vw, 24px);
	--radius: 14px;
	--radius-pill: 999px;
	--shadow-1: 0 18px 40px rgba(0, 0, 0, .5);
	--shadow-2: 0 30px 60px rgba(0, 0, 0, .55);
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-white);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.6;
	overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-cream); text-underline-offset: 3px; }
a:hover { color: var(--color-white); }
:focus-visible { outline: 3px solid var(--color-cream); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
/* Uppercase only for the page title (h1) and small eyebrow labels; section headings and card titles are sentence case. */
h1 { font-size: var(--fs-h1); text-transform: uppercase; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
.lead { font-size: var(--fs-lead); color: var(--color-text-soft); max-width: 40em; }
.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: var(--fs-eyebrow); color: var(--color-accent); margin-bottom: .75rem; display: block; }
.graffiti { font-family: var(--font-graffiti); font-weight: 400; text-transform: none; letter-spacing: 0; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--color-cream); color: var(--color-bg); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 12px; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--olive, .section--accent { background: var(--color-accent); color: var(--color-bg); }
.section--olive a:not(.btn) { color: var(--color-bg); }
.section--olive .eyebrow { color: var(--color-bg); }
.section--cream { background: var(--color-cream); color: var(--color-bg); }
.section--cream a:not(.btn) { color: var(--color-accent-dark); }
.section--cream .eyebrow { color: var(--color-accent-dark); }
/* Section backgrounds: add one modifier to switch a section (dark is the default). */
.section--dark { background: var(--color-bg); }
.section--ink, .section--alt { background: var(--color-ink); }
.section__head { max-width: 46rem; margin-bottom: clamp(var(--space-4), 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.prose { max-width: 46rem; }
.prose > :last-child { margin-bottom: 0; }

/* Buttons: three styles only.
   .btn            primary (filled)   cream, black text (14.2:1); olive on hover
   .btn--secondary outline            transparent with a cream outline
   .btn--text      text link          for a quiet second action
   On light surfaces (olive or cream sections, the form panel) the primary turns black with white text,
   because a cream button would disappear there. Never put two primaries side by side. */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .75em 1.5em;
	background: var(--color-cta); color: var(--color-bg);
	font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase;
	text-decoration: none; border: 2px solid var(--color-cta); border-radius: var(--radius-pill); cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); color: var(--color-bg); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--secondary { background: transparent; color: var(--color-cream); border-color: var(--color-cream); }
.btn--secondary:hover { background: var(--color-cream); border-color: var(--color-cream); color: var(--color-bg); }
.btn--text {
	min-height: 48px; padding: .75em .25em; background: none; border-color: transparent; color: var(--color-cream);
	text-transform: none; letter-spacing: 0; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px;
}
.btn--text::after { content: '→'; }
.btn--text:hover { background: none; border-color: transparent; color: var(--color-white); transform: none; }

/* Light surfaces */
:is(.section--olive, .section--accent, .section--cream, .card--olive, .lead-form) .btn:not(.btn--secondary, .btn--text) { background: var(--color-bg); border-color: var(--color-bg); color: var(--color-white); }
:is(.section--olive, .section--accent, .section--cream, .card--olive, .lead-form) .btn:not(.btn--secondary, .btn--text):hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--color-white); }
:is(.section--olive, .section--accent, .section--cream, .card--olive, .lead-form) :is(.btn--secondary, .btn--text) { color: var(--color-bg); border-color: currentColor; }
:is(.section--olive, .section--accent, .section--cream, .card--olive, .lead-form) .btn--text { border-color: transparent; }
:is(.section--olive, .section--accent, .section--cream, .card--olive, .lead-form) :focus-visible { outline-color: var(--color-bg); }

.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 599px) {
	/* Primary buttons go full width on phones in the hero and forms. */
	.hero .btn:not(.btn--secondary, .btn--text) { width: 100%; }
}

/* Announcement bar (Settings → Latin Tribe): thin, above the header on every page */
.announcement { background: var(--color-cream); color: var(--color-bg); font-size: var(--fs-small); }
.announcement__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; padding-block: 9px; text-align: center; }
.announcement p { margin: 0; font-weight: 700; }
.announcement__link { color: var(--color-bg); font-weight: 700; }
.announcement :focus-visible { outline-color: var(--color-bg); }
/* The same notice, prominent on the Free Class page above the dates */
.announcement-panel { margin-bottom: var(--space-5); padding: var(--space-4); border-radius: var(--radius); background: var(--color-cream); color: var(--color-bg); }
.announcement-panel__label { margin: 0 0 4px; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-eyebrow); letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent-dark); }
.announcement-panel__text { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.announcement-panel a { color: var(--color-bg); display: inline-block; margin-top: 6px; }
.announcement-panel :focus-visible { outline-color: var(--color-bg); }

/* Header: logo, menu, Book button (always visible), hamburger on phones */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-line);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-white); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { width: 44px; height: auto; }
.brand__name { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.site-nav { display: flex; align-items: center; }
.site-nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--color-white); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"], .site-nav__list a.is-section { color: var(--color-cream); border-bottom-color: var(--color-accent); }
.site-header__book { min-height: 44px; padding: .55em 1.2em; font-size: .85rem; white-space: nowrap; }
.nav-toggle { display: none; }

/* Classes dropdown (desktop): opens on hover, keyboard focus, or the chevron button */
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { width: 26px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--color-white); cursor: pointer; }
.sub-toggle::before { content: ''; display: block; width: 7px; height: 7px; margin: -3px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg); margin-top: 3px; }
.sub-menu {
	position: absolute; top: 100%; left: -18px; z-index: 60; min-width: 220px; margin: 0; padding: 10px 0; list-style: none;
	background: var(--color-ink); border: 1px solid var(--color-line); border-top: 3px solid var(--color-accent); border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow-1); visibility: hidden; opacity: 0; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .sub-toggle[aria-expanded="true"] + .sub-menu { visibility: visible; opacity: 1; transform: none; }
.site-nav__list .sub-menu a { display: block; padding: 10px 18px; border-bottom: 0; font-size: .92rem; }
.site-nav__list .sub-menu a:hover, .site-nav__list .sub-menu a[aria-current="page"] { background: rgba(140, 149, 76, .18); }

@media (max-width: 899px) {
	.site-header__inner { gap: var(--space-2); }
	.site-header__book { padding: .5em 1em; font-size: .78rem; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; margin-right: -8px; background: transparent; border: 0; color: var(--color-white); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s;
	}
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -8px; }
	.nav-toggle__bars::after { top: 8px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: block;
		padding: var(--space-5) var(--gutter) var(--space-6); background: var(--color-bg);
		overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
	/* backdrop-filter makes the header the containing block for the fixed menu, clipping it. */
	.nav-open .site-header { backdrop-filter: none; background: var(--color-bg); }
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open { overflow: hidden; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: block; font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--color-line); }
	/* Phone menu: Classes opens its sub-pages with its own toggle (48px tap target). */
	.has-sub { display: grid; grid-template-columns: 1fr 48px; align-items: stretch; }
	.sub-toggle { width: 48px; height: auto; min-height: 48px; border-bottom: 1px solid var(--color-line); }
	.sub-menu { grid-column: 1 / -1; position: static; display: none; visibility: visible; opacity: 1; transform: none; min-width: 0; padding: 0 0 0 18px; background: none; border: 0; box-shadow: none; }
	.sub-toggle[aria-expanded="true"] + .sub-menu { display: block; }
	.site-nav__list .sub-menu a { font-size: 1.15rem; padding: 12px 0; color: var(--color-muted); border-bottom: 1px solid var(--color-line-soft); }
}
@media (max-width: 400px) {
	.brand__name { display: none; }
}

/* Page hero (inner pages) */
.page-hero {
	padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px);
	background:
		radial-gradient(ellipse at 85% 0%, rgba(140, 149, 76, .35), transparent 55%),
		var(--color-bg);
	border-bottom: 1px solid var(--color-line-soft);
}
.page-hero h1 { margin-bottom: .3em; }

/* Footer: brand + contact + socials, three link groups, venue addresses */
.site-footer { background: var(--color-ink); border-top: 4px solid var(--color-accent); padding-top: clamp(48px, 7vw, 80px); color: var(--color-muted); font-size: .95rem; }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.site-footer__brand img { width: 170px; margin-bottom: 16px; }
.site-footer__heading { margin: 0 0 14px; font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-cream); }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer__list a { display: inline-block; padding-block: 10px; }
.site-footer a { color: var(--color-muted); text-decoration: none; }
.site-footer a:hover { color: var(--color-cream); text-decoration: underline; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-3) 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-line-strong); color: var(--color-cream); }
.social a:hover { background: var(--color-cream); color: var(--color-bg); text-decoration: none; }
.site-footer__venues { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.site-footer__venues ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer__venues strong { display: block; color: var(--color-cream); font-family: var(--font-head); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: var(--space-5); padding-block: 24px; border-top: 1px solid var(--color-line); }
.site-footer__bottom p { margin: 0; }

/* Mobile sticky "Book free class" bar: phones only, hidden while the form is on screen */
.lt-cta-bar { display: none; }
@media (max-width: 899px) {
	.lt-cta-bar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
		background: linear-gradient(to top, rgba(0, 0, 0, .95) 60%, rgba(0, 0, 0, 0));
		transition: transform .25s, opacity .25s;
	}
	.lt-cta-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
	.nav-open .lt-cta-bar { display: none; }
	/* The sticky bar is the phone booking button, so the hero does not repeat it. */
	.hero .btn-row .btn:not(.btn--secondary, .btn--text) { display: none; }
}
