/* MamboRabat public site. Brand: paper beige, ink black, script red, burgundy hairlines. */
[hidden] { display: none !important; }

@font-face { font-family: 'Brand'; src: url('/fonts/outfit.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Brand'; src: url('/fonts/outfit-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Editorial'; src: url('/fonts/cormorant-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Editorial'; src: url('/fonts/cormorant.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f3e3d0;
  --paper-2: #ead5ba;
  --card: #fbf4ea;
  --ink: #1d1a1b;
  --ink-2: #463b36;
  --muted: #6b5a4b;
  --red: #c41e40;
  --red-dark: #9e1733;
  --wine: #6b2a25;
  --line: rgba(107, 42, 37, .32);
  --line-soft: rgba(107, 42, 37, .16);
  --night: #1b1416;
  --night-2: #261c1e;
  --cream: #f4e6d2;
  --cream-muted: #cdbba6;
  --good: #2f6b3a;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --head-h: 72px;
  --font: 'Brand', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Editorial', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--paper) url('/img/paper.webp') repeat; background-size: 600px;
  font-feature-settings: 'ss01' on;
}
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3, .h3 { font-size: 1.25rem; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow, .narrow { max-width: 780px; }

.eyebrow {
  font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .28em; color: var(--wine); margin-bottom: 1rem;
}
.eyebrow a { text-decoration: none; }
.eyebrow-h { font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .28em; color: var(--cream-muted); }
.sig { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--wine); }
.sig.big { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--ink); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--wine); }
.tagline.big { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* Ornament: hairline with a diamond, as on the brand posters. */
.rule { display: flex; align-items: center; gap: 14px; width: 200px; margin: 0 auto 1.4rem; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: var(--line); box-shadow: 0 3px 0 0 var(--line-soft); }
.rule > i, .diamond { width: 8px; height: 8px; flex: none; background: var(--wine); transform: rotate(45deg); display: inline-block; }
.rule-light::before, .rule-light::after { background: rgba(244, 230, 210, .35); box-shadow: none; }
.rule-light > i { background: #e3a0ac; }

/* Buttons: pills, outlined by default. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.5em;
  border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-size: .95rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--wine); background: var(--wine); color: var(--cream); }
.btn-ghost-light { border-color: rgba(244, 230, 210, .45); color: var(--cream); }
.btn-ghost-light:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.btn-sm { min-height: 40px; padding: .45em 1.1em; font-size: .88rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.actions.center { justify-content: center; }

/* Header */
.preprod { background: var(--night); color: var(--cream); font-size: .8rem; text-align: center; padding: 6px 12px; letter-spacing: .02em; }
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(243, 227, 208, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--head-h); }
.brand img { width: 132px; height: auto; }
.brand-light { display: none; }
/* Home with a background video: the header sits transparent on the video while it is in
   view (site.js drops .over-hero past it or when the phone menu opens). */
.site-head { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.site-head.over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff7ee; }
.over-hero .brand-dark { display: none; }
.over-hero .brand-light { display: block; }
.over-hero .main-nav a { color: #fff7ee; }
.over-hero .main-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.over-hero .main-nav a[aria-current='page'] { color: #ffd2d9; }
.over-hero .lang-menu summary, .over-hero .head-account, .over-hero .menu-btn { border-color: rgba(244, 230, 210, .5); color: #fff7ee; }
.over-hero .lang-menu summary:hover, .over-hero .lang-menu[open] summary { background: rgba(255, 255, 255, .14); border-color: #fff7ee; }
.over-hero .head-account:hover { background: #fff7ee; border-color: #fff7ee; color: var(--night); }
.over-hero .menu-lines, .over-hero .menu-lines::before, .over-hero .menu-lines::after { background: #fff7ee; }
.over-hero .menu-btn[aria-expanded='true'] .menu-lines { background: transparent; }
.lang-list { color: var(--ink); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a { display: block; white-space: nowrap; padding: .5em .66em; border-radius: 99px; text-decoration: none; font-size: .95rem; font-weight: 500; }
/* Seven menu items: the header may run wider than the page content. */
.site-head .head-row { width: min(1320px, 100% - 40px); }
/* Spanish labels are the longest: just above the burger breakpoint they need a tighter menu. */
@media (min-width: 1181px) and (max-width: 1279px) { html[lang='es'] .main-nav a { padding: .5em .5em; font-size: .9rem; } }
.main-nav a:hover { background: rgba(107, 42, 37, .08); color: var(--ink); }
.main-nav a[aria-current='page'] { color: var(--red); }
/* Header actions: language globe, account, free trial */
.head-account svg, .lang-menu svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.head-account.is-current { border-color: var(--wine); color: var(--red); }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; font-size: .82rem; font-weight: 500; letter-spacing: .06em; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--wine); background: rgba(107, 42, 37, .06); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 36px rgba(29, 26, 27, .14); }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.lang-list a:hover { background: rgba(107, 42, 37, .07); color: var(--ink); }
.lang-list a[aria-current='true'] { color: var(--red); font-weight: 600; }
.lang-list .lang-code { font-size: .72rem; letter-spacing: .12em; color: var(--muted); width: 22px; }
.lang-list a[aria-current='true'] .lang-code { color: var(--red); }
@media (max-width: 980px) {
  .head-account { width: 40px; padding: 0; }
  .head-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-menu summary { padding: 0 10px; }
}
@media (max-width: 380px) { .lang-menu .lang-code { display: none; } .lang-list .lang-code { display: inline; } }

/* Student account */
.auth-wrap { display: grid; place-items: center; }
.auth-box { width: min(480px, 100%); }
.auth-box .form { margin-top: 0; }
.auth-box p { margin: 0; }
.h-auth { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: .2em; }
.auth-switch { color: var(--muted); }
.auth-invite { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--muted); }
.auth-invite p { margin: 0; }
.auth-invite strong { color: var(--ink); }

/* Trial sent: the WhatsApp step, in WhatsApp's own green. */
.wa-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin: 22px 0; padding: 24px 26px; border-color: rgba(37, 211, 102, .45); }
.wa-step h2 { font-size: 1.2rem; margin: 0 0 6px; }
.wa-step p { margin: 0 0 16px; }
.wa-step-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; }
.wa-step-ico .ico-brand { fill: currentColor; stroke: none; width: 28px; height: 28px; }
.btn-wa { background: #1da851; border-color: #1da851; color: #fff; }
.btn-wa:hover { background: #168a42; border-color: #168a42; color: #fff; }
@media (max-width: 520px) { .wa-step { grid-template-columns: 1fr; } }
.acc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-level { margin-top: 22px; padding: 18px 22px; }
.acc-level .eyebrow { margin: 0 0 4px; }
.acc-level p:last-child { margin: 0; }
.acc-level-name { font-family: var(--serif); font-size: 1.35rem; color: var(--wine); }
.acc-list { display: grid; gap: 14px; margin-top: 18px; }
.acc-req { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 20px 24px; }
.acc-req h3 { margin: 0 0 .2em; }
.acc-req p { margin: 0; }
.acc-req-status { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) { .acc-req { grid-template-columns: 1fr; } .acc-req-status { justify-content: flex-start; } }
details.danger summary { cursor: pointer; color: var(--red-dark); font-weight: 500; }
details.danger[open] summary { margin-bottom: 8px; }
.form + .form, .card + details.danger { margin-top: 20px; }
.pill-st-new, .pill-st-pending { border-color: rgba(138, 90, 0, .35); color: #7a5200; }
.pill-st-refused, .pill-st-closed { color: var(--muted); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 99px; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; left: 13px; width: 18px; height: 1.5px; background: var(--ink); content: ''; transition: transform .2s; }
.menu-lines { top: 22px; }
.menu-lines::before { left: 0; top: -6px; }
.menu-lines::after { left: 0; top: 6px; }
.menu-btn[aria-expanded='true'] .menu-lines { background: transparent; }
.menu-btn[aria-expanded='true'] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Longer labels (Spanish, English) need the menu earlier than French would. */
@media (max-width: 1180px) {
  .js .menu-btn { display: inline-block; }
  .js .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper) url('/img/paper.webp'); border-bottom: 1px solid var(--line); padding: 12px 20px 24px; display: none; max-height: calc(100vh - 140px); overflow-y: auto; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: .9em .6em; font-size: 1.1rem; border-radius: 10px; }
  .head-row { flex-wrap: wrap; }
  html:not(.js) .main-nav { width: 100%; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; }
  .brand img { width: 112px; }
}

/* Sections */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band.tight { padding: clamp(36px, 5vw, 60px) 0; }
.page-head { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.theme-paper { background: transparent; }
.theme-card { background: rgba(251, 244, 234, .7); border-block: 1px solid var(--line-soft); }
.theme-night { background: var(--night); color: var(--cream); }
.theme-night .eyebrow { color: #e3a0ac; }
.theme-night .lead { color: var(--cream-muted); }
.theme-night a:hover { color: #fff; }
.muted-light { color: var(--cream-muted); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center .rule { margin-bottom: 1.2rem; }

.grid-2 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
/* A centred action under a card grid (home events) gets the same air as under the steps. */
:is(.grid-2, .grid-3) + p.center { margin: 2.5rem 0 0; }

/* Cards: rounded, hairline, small diamond notch on the top edge. */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }

/* Big content cards turn burgundy under the mouse (or with keyboard focus inside).
   The palette variables are redefined inside the card, so every line, label, tag and
   button follows and keeps its contrast (cream on #6b2a25 is about 9:1). Form and
   payment cards are left out on purpose. */
:is(.course, .style-card, .event-card, .price, .press-card, .principles > .card, .quote, .venue, .acc-req, .channel, .goal) {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
@media (hover: hover) {
  :is(.course, .style-card, .event-card, .price, .press-card, .principles > .card, .quote, .venue, .acc-req, .channel, .goal):hover {
    --card: #6b2a25;
    --ink: #f7ebdc;
    --ink-2: #ecdccb;
    --muted: #d6bfaa;
    --wine: #f0b3bd;
    --red: #ffd2d9;
    --red-dark: #ffd2d9;
    --line: rgba(247, 235, 220, .34);
    --line-soft: rgba(247, 235, 220, .2);
    --good: #cfe8c6;
    background: #6b2a25;
    border-color: #6b2a25;
    color: var(--ink);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(107, 42, 37, .22);
  }
}
:is(.course, .style-card, .event-card, .price, .press-card, .principles > .card, .quote, .venue, .acc-req, .channel, .goal):focus-within {
  --card: #6b2a25;
  --ink: #f7ebdc;
  --ink-2: #ecdccb;
  --muted: #d6bfaa;
  --wine: #f0b3bd;
  --red: #ffd2d9;
  --red-dark: #ffd2d9;
  --line: rgba(247, 235, 220, .34);
  --line-soft: rgba(247, 235, 220, .2);
  --good: #cfe8c6;
  background: #6b2a25;
  border-color: #6b2a25;
  color: var(--ink);
}
/* Inside a coloured card the red primary button would sit red on burgundy: make it cream. */
@media (hover: hover) {
  :is(.course, .style-card, .event-card, .price, .press-card, .acc-req):hover .btn-primary { background: #f7ebdc; border-color: #f7ebdc; color: #6b2a25; }
  :is(.course, .style-card, .event-card, .price, .press-card, .acc-req):hover .btn-primary:hover { background: #fff; border-color: #fff; color: #6b2a25; }
  :is(.course, .style-card, .event-card, .price, .press-card, .venue, .acc-req):hover .btn-ghost:hover { background: #f7ebdc; border-color: #f7ebdc; color: #6b2a25; }
}
:is(.course, .style-card, .event-card, .price, .press-card, .acc-req):focus-within .btn-primary { background: #f7ebdc; border-color: #f7ebdc; color: #6b2a25; }
@media (prefers-reduced-motion: reduce) {
  :is(.course, .style-card, .event-card, .price, .press-card, .principles > .card, .quote, .venue, .acc-req, .channel) { transition: none; }
  :is(.course, .style-card, .event-card, .price, .press-card, .principles > .card, .quote, .venue, .acc-req, .channel, .goal):hover { transform: none; }
}
.card.soft { background: rgba(251, 244, 234, .6); border-color: var(--line-soft); }
/* The ring hides the card border around the diamond, so it takes the colour of the section, not the card. */
.notch { position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; background: var(--wine); transform: rotate(45deg); box-shadow: 0 0 0 5px var(--notch-ring, #f6e9da); transition: background-color .3s ease; }
.theme-card { --notch-ring: #f8efe3; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.pillars { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .78rem; text-transform: uppercase; letter-spacing: .24em; color: var(--muted); }
.pillars li + li::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--wine); transform: rotate(45deg); margin-right: 20px; vertical-align: middle; position: relative; top: -2px; }
/* Hero with a background video: full bleed, dark gradient on the text side, cream text. */
/* It also slides up under the sticky header (head height + its 1px border) so the video fills it. */
.hero.hero-bg { position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: center; margin-top: calc(-1 * var(--head-h) - 1px); min-height: calc(clamp(540px, 82vh, 860px) + var(--head-h)); padding: calc(var(--head-h) + clamp(40px, 6vw, 90px)) 0 clamp(56px, 8vw, 110px); background: var(--night); color: var(--cream); }
.hero-bg-media { position: absolute; inset: 0; z-index: -1; }
.hero-bg-video { width: 100%; height: 100%; object-fit: cover; }
.hero-bg-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 20, 22, .55) 0, rgba(27, 20, 22, 0) 150px), linear-gradient(90deg, rgba(27, 20, 22, .9) 0%, rgba(27, 20, 22, .72) 38%, rgba(27, 20, 22, .25) 75%, rgba(27, 20, 22, .15) 100%); }
.hero-bg .hero-grid { grid-template-columns: minmax(0, 640px); }
.hero-bg h1 { color: #fff; }
.hero-bg .lead { color: #ecdccb; }
.hero-bg .eyebrow { color: #e3a0ac; }
.hero-bg .pillars { color: #d6bfaa; }
.hero-bg .pillars li + li::before { background: #e3a0ac; }
@media (max-width: 760px) {
  .hero.hero-bg { min-height: 100svh; align-items: end; padding-bottom: 40px; }
  .hero-bg-media::after { background: linear-gradient(180deg, rgba(27, 20, 22, .6) 0, rgba(27, 20, 22, .2) 130px, rgba(27, 20, 22, .55) 45%, rgba(27, 20, 22, .92) 100%); }
}
.hero-video, .hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); border: 1px solid var(--line); }
.arch { margin: 0; position: relative; border-radius: 240px 240px var(--radius) var(--radius); border: 1px solid var(--line); padding: 14px 14px 0; background: linear-gradient(180deg, rgba(251, 244, 234, .9), rgba(234, 213, 186, .6)); overflow: hidden; }
.arch img { width: 100%; height: auto; aspect-ratio: 1005 / 1100; object-fit: cover; object-position: top; border-radius: 226px 226px 0 0; }
.arch figcaption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .22em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.arch figcaption .diamond { width: 6px; height: 6px; }
.arch-night { background: linear-gradient(180deg, #3a2a2c, #241a1c); border-color: rgba(244, 230, 210, .2); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; margin: 0 auto; width: 100%; order: -1; }
  .hero .arch { max-width: 300px; margin: 0 auto; }
}

/* Steps */
.step-n { display: block; font-size: .8rem; letter-spacing: .24em; color: var(--red); font-weight: 600; margin-bottom: 8px; }
/* Home: "New to salsa?" as one simple centred card. */
.start-card { max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; text-align: center; padding: clamp(32px, 5vw, 52px) clamp(24px, 5vw, 56px); background: #fffaf3; }
.start-card h2 { margin: 0; }
.start-card .lead { margin: 0 0 10px; }
.mini-steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 10px; }
.mini-steps li { display: flex; gap: 12px; align-items: center; }
.mini-steps span { width: 30px; height: 30px; flex: none; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; font-size: .85rem; color: var(--wine); }

/* Classes */
.style-card h3 { font-size: 1.6rem; }
.level-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.level-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); text-decoration: none; }
.level-list a:hover span:first-child { color: var(--red); }
.price-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 24px 20px 32px; background: var(--red); border: 1px solid var(--red); border-radius: 99px; color: #fff; box-shadow: 0 14px 34px rgba(196, 30, 64, .2); }
.price-line p { margin: 0; color: #fff; }
.price-line strong { font-size: 1.15em; }
.price-line .btn { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.price-line .btn:hover { background: #fff; border-color: #fff; color: var(--red-dark); }
.price-line .btn:focus-visible { outline-color: #fff; }
@media (max-width: 640px) { .price-line { border-radius: var(--radius); } }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(251, 244, 234, .7); }
.style-intro p { margin: 0; }
.courses { margin-top: 28px; }
.course-head h3 { font-size: 1.45rem; }
.course-sum { color: var(--ink-2); }
.facts { display: grid; gap: 0; margin: 1rem 0; }
.facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.facts.card > div:first-child, .facts.card.soft > div:first-child { border-top: 0; padding-top: 0; }
.facts.card > div:last-child { padding-bottom: 0; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.slot { display: block; }
.course-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.pill-open, .pill-st-accepted, .pill-rc-validated, .pill-ev-open { border-color: rgba(47, 107, 58, .45); color: var(--good); }
.pill-waitlist, .pill-st-waitlist, .pill-ev-full { border-color: rgba(196, 30, 64, .45); color: var(--red-dark); }
.pill-soft { color: var(--muted); }
.note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.prices .price-n { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: .2em 0 .4em; }
.price-n small { font-size: .95rem; font-weight: 400; color: var(--muted); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--wine); border-bottom: 1.5px solid var(--wine); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
@media (hover: hover) { .faq summary:hover { color: var(--wine); } }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--head-h) + 32px); margin-bottom: 0; }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 1.4rem; color: var(--ink-2); }
.faq-groups { display: grid; gap: 36px; }
.faq-group h3 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--wine); margin: 0 0 6px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* Founder */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.founder .arch { max-width: 420px; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } .founder .arch { max-width: 320px; } }
.video-wrap { margin-top: 48px; }
.video-wrap video, .video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); border: 0; background: #000; }

/* Events */
.event-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.event-card .event-body { padding: 24px 26px 26px; }
.event-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event-card h3 a.stretch { text-decoration: none; }
.event-card h3 a.stretch::after { content: ''; position: absolute; inset: 0; }
.event-when { font-weight: 500; }
.feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 28px 0; border-top: 1px solid rgba(244, 230, 210, .18); }
.feature-title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.feature .tagline { color: #e3a0ac; }
.feature-img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.event-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.event-hero { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 860px) { .event-head { grid-template-columns: 1fr; } }
.event-detail { align-items: start; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.map { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 32px; }

/* About */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.principles p { margin: 0; }
/* Google reviews: the score on top, then one row of cards drifting slowly to the left.
   The row holds the cards twice and slides by half its width, so the loop has no seam. */
.rv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px 36px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.rv-head h2 { margin: 0; }
.rv-score { display: flex; align-items: center; gap: 14px; }
.rv-big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #fff7ee; }
.rv-score p { margin: 0; }
.rv-stars { color: #f5b942; letter-spacing: .08em; margin: 0; line-height: 1; }
.rv-stars-lg { font-size: 1.25rem; }
.rv-off { color: rgba(244, 230, 210, .25); }
.rv-count { color: var(--cream-muted); font-size: .95rem; margin-top: 6px !important; }
@media (max-width: 800px) { .rv-head { grid-template-columns: 1fr; align-items: start; } .rv-head .btn { justify-self: start; } }
.rv-marquee { overflow: hidden; padding: 6px 0 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; width: max-content; animation: rv-drift var(--rv-dur, 80s) linear infinite; }
.rv-marquee:hover .rv-track, .rv-marquee:focus-within .rv-track { animation-play-state: paused; }
@keyframes rv-drift { to { transform: translateX(calc(-50% - 10px)); } }
.rv-card { flex: none; width: min(360px, 82vw); display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 22px 24px; background: var(--night-2); border: 1px solid rgba(244, 230, 210, .14); border-radius: var(--radius); color: var(--cream); transition: border-color .25s ease; }
.rv-card:hover { border-color: rgba(240, 179, 189, .5); }
.rv-top { display: flex; align-items: center; gap: 12px; }
.rv-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }
.rv-who { display: grid; }
.rv-who strong { color: #fff7ee; font-size: 1rem; }
.rv-who span { color: var(--cream-muted); font-size: .85rem; }
.rv-text { margin: 0; font-size: .98rem; line-height: 1.55; color: var(--cream); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-src { font-size: .8rem; color: var(--cream-muted); text-decoration: none; }
a.rv-src:hover { color: #fff; text-decoration: underline; }
/* Visitors who asked for less motion get a row they scroll themselves, without the copies. */
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
  .rv-track { animation: none; padding: 0 20px; }
  .rv-card { scroll-snap-align: start; }
  .rv-card[aria-hidden='true'] { display: none; }
}

/* Private lessons: "What for?" as numbered cards, "Where and how" as one night card. */
/* "What for?" heads the section, centred; below it the four goals share the night card's
   full height, so the first starts at the card's top edge and the last ends at its bottom. */
.why-title { text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
.private-why { --where-pad: clamp(20px, 2.2vw, 28px); display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.why-col { display: grid; }
.goals { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 10px; }
.goal { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 8px 22px; background: #fffaf3; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.goal-num { font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1; color: var(--red); min-width: 1.4em; }
@media (max-width: 900px) {
  .private-why { grid-template-columns: 1fr; }
  .goals { grid-auto-rows: auto; }
  .goal { padding: 16px 20px; }
}
.goal p { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.where-card { background: var(--night); color: var(--cream); border-radius: var(--radius); padding: var(--where-pad); box-shadow: 0 24px 50px rgba(27, 20, 22, .16); }
.where-card h2 { color: var(--cream); font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 14px; }
.where-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.where-list > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.where-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(244, 230, 210, .28); color: #f0b3bd; }
.where-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.where-list dt, .where-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: var(--cream-muted); }
.where-list dd { margin: 0; font-size: 1.08rem; line-height: 1.3; font-weight: 600; color: #fff7ee; }
.where-label { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid rgba(244, 230, 210, .14); }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.pack { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px; gap: 0; padding: 8px 14px 9px; border: 1px solid rgba(244, 230, 210, .22); border-radius: var(--radius-sm); transition: border-color .25s ease, background-color .25s ease; }
.pack:hover { border-color: #f0b3bd; background: rgba(240, 179, 189, .08); }
.pack-n { font-size: .85rem; color: var(--cream-muted); }
.pack-n { grid-column: 1; grid-row: 1; white-space: nowrap; }
.pack-per { grid-column: 2; grid-row: 1; text-align: right; }
.pack-note { grid-column: 1 / -1; }
.pack-price { grid-column: 1 / -1; grid-row: 2; font-size: clamp(1.15rem, 1.8vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; color: #fff7ee; }
.pack-per { font-size: .8rem; color: #f0b3bd; }
.pack-price, .pack-per { white-space: nowrap; }
/* Narrower tiles: the price per session goes under the total instead of beside the name. */
@media (max-width: 1180px) { .pack-per { grid-column: 1 / -1; grid-row: 3; text-align: left; } }
.pack-note { font-size: .82rem; color: var(--cream-muted); margin-top: 4px; }
.packs-1 { grid-template-columns: 1fr; }
.where-sub { display: block; font-size: .9rem; font-weight: 400; color: var(--cream-muted); margin-top: 2px; }
@media (max-width: 480px) {
  .where-list { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr; }
}
.where-note { font-size: .92rem; color: var(--cream-muted); margin: -6px 0 20px; }
.where-card .btn-primary:hover { background: #fff7ee; border-color: #fff7ee; color: var(--red-dark); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line-soft); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 21px; width: 7px; height: 7px; background: var(--wine); transform: rotate(45deg); }

/* Quotes and press */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.4; }
.press-list { list-style: none; padding: 0; margin: 0; }
.press-list li { display: grid; grid-template-columns: 12em 1fr auto auto; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.press-outlet { font-weight: 700; }
@media (max-width: 760px) { .press-list li { grid-template-columns: 1fr; gap: 6px; } }
.press-card img { border-radius: var(--radius-sm); margin-bottom: 16px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* CTA band */
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.cta-band .btn { margin-top: 1rem; }

/* Forms */
.form-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }
.form { display: grid; gap: 18px; }
.form h2 { font-size: 1.4rem; }
.f { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.f label, .f legend { font-weight: 500; font-size: .95rem; padding: 0; }
.f-hint { font-size: .85rem; color: var(--muted); margin: 0; }
.f input[type='text'], .f input[type='email'], .f input[type='tel'], .f input[type='file'], .f input[type='password'], .f select, .f textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fffaf3; border: 1px solid rgba(107, 42, 37, .38); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.f textarea { resize: vertical; min-height: 110px; }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%), linear-gradient(135deg, var(--wine) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.f-bad input, .f-bad select, .f-bad textarea { border-color: var(--red); background: #fff4f4; }
.f-err { color: var(--red-dark); font-size: .88rem; margin: 0; font-weight: 500; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } }
.req { color: var(--red); }
.choices { display: grid; gap: 8px; }
.choices.inline { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400 !important; }
.choices .choice { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fffaf3; min-height: 46px; align-items: center; }
.choices .choice:has(input:checked) { border-color: var(--wine); background: #f7e8e2; }
.choice input { width: 18px; height: 18px; accent-color: var(--red); margin: 3px 0 0; flex: none; }
.choices .choice input { margin: 0; }
.f-check .choice span { font-size: .92rem; color: var(--ink-2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 12px; border: 1px solid; margin-bottom: 8px; }
.alert-bad { border-color: rgba(196, 30, 64, .5); background: #fff1f1; color: var(--red-dark); }
.alert-good { border-color: rgba(47, 107, 58, .45); background: #f1f7ef; color: var(--good); }
.form.done { place-content: center; min-height: 200px; text-align: center; }

/* Wide forms (private lessons, contact): on laptops the intro sits above and the card
   runs the full width, its fields side by side on a four-column grid. */
@media (min-width: 1100px) {
  .form-layout.form-wide { grid-template-columns: 1fr; gap: 28px; }
  .form-wide .form-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
  .form-wide .form-intro h2 { margin: 0; }
  .form-wide .form-intro .lead, .form-wide .form-intro .actions { margin: 0; }
  .form-wide .form-intro .lead { flex: 1 1 420px; max-width: 640px; }
  .form-wide .form { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 22px; padding: 36px 40px; }
  .form-wide .form > * { grid-column: span 2; }
  .form-wide .form > .f-row { display: contents; }
  .form-wide .form > .f-row > * { grid-column: span 1; }
  /* A label that wraps (long phone label) must not push its input below the neighbours'. */
  .form-wide .form > .f, .form-wide .form > .f-row > .f { align-content: end; }
  .form-wide .form > .f-hint, .form-wide .form > .alert, .form-wide .form > .f-check,
  .form-wide .form > .f:has(textarea), .form-wide .form > .f:has(.choice:nth-child(5)) { grid-column: 1 / -1; }
  .form-wide .form > .btn { grid-column: 3 / -1; }
  .form-wide .form > .f-row-flow { display: flex; grid-column: 1 / -1; gap: 22px 44px; }
  .form-wide .form > .f-ms { grid-column: span 1; }
}
/* A row of choice groups that sit side by side while they fit, then wrap. */
.f-row.f-row-flow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 32px; }

/* Checkbox dropdown (days, times) */
.ms { position: relative; }
.ms-btn { list-style: none; display: flex; align-items: center; min-height: 48px; padding: 12px 44px 12px 14px; font-size: 16px; background: #fffaf3; border: 1px solid rgba(107, 42, 37, .38); border-radius: 12px; cursor: pointer; position: relative; user-select: none; }
.ms-btn::-webkit-details-marker { display: none; }
.ms-btn::after { content: ''; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--wine); border-bottom: 1.5px solid var(--wine); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.ms[open] > .ms-btn { border-color: var(--wine); }
.ms[open] > .ms-btn::after { transform: translateY(-30%) rotate(225deg); }
.ms-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 0; }
.ms-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-value.is-empty { color: var(--muted); }
.f-bad .ms-btn { border-color: var(--red); background: #fff4f4; }
.ms-panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 40px)); display: grid; gap: 2px; padding: 8px; background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(27, 20, 22, .18); }
.ms-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 400; }
.ms-opt:hover { background: #f5e9dc; }
.ms-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); flex: none; }
.ms-opt:has(input:checked) { font-weight: 600; }
.ms-ok { justify-self: end; margin-top: 4px; }

/* Phone with country code */
.tel { position: relative; display: flex; }
.tel .tel-cc { width: 10.5rem; flex: none; border-radius: 12px 0 0 12px; border-right: 0; text-overflow: ellipsis; }
.tel input[type='tel'] { flex: 1; min-width: 0; border-radius: 0 12px 12px 0; }
.tel-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px 0 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fffaf3; border: 1px solid rgba(107, 42, 37, .38); border-right: 0; border-radius: 12px 0 0 12px; cursor: pointer; }
.tel-btn::after { content: ''; width: 7px; height: 7px; margin: -4px 0 0 2px; border-right: 1.5px solid var(--wine); border-bottom: 1.5px solid var(--wine); transform: rotate(45deg); transition: transform .15s; }
.tel-btn[aria-expanded='true']::after { transform: translateY(4px) rotate(225deg); }
.tel-btn:hover { background: #f7ece0; }
.tel-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 0; border-radius: 12px 0 0 12px; }
.tel-code { font-variant-numeric: tabular-nums; }
.f-bad .tel-btn { border-color: var(--red); background: #fff4f4; }
.tel-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(360px, calc(100vw - 40px)); background: #fffdf8; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(27, 20, 22, .18); padding: 10px; }
.f .tel-pop .tel-search { width: 100%; min-height: 42px; font: inherit; font-size: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tel-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; }
.tel-group { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--wine); padding: 10px 10px 4px; }
.tel-opt { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.tel-opt.is-active, .tel-opt:hover { background: #f5e9dc; }
.tel-opt[aria-selected='true'] { font-weight: 600; }
.tel-opt[aria-selected='true'] .tel-dial { color: var(--wine); }
.tel-dial { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.tel-none { padding: 12px 10px; color: var(--muted); }
.ref { font-size: 1.1rem; letter-spacing: .06em; }
.rib { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; background: #fffaf3; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-soft); word-break: break-all; }
.pay, .form, .receipts { margin-top: 28px; }
.receipts { list-style: none; padding: 0; }
.receipts li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.receipts li span:first-child { flex: 1; }
.level-fields { display: grid; gap: 18px; }

/* Gallery (home). Without JS every category shows with its heading; site.js adds .g-js,
   which turns the headings into tabs and shows one panel at a time. */
.g-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 clamp(24px, 3vw, 36px); }
.g-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; font: inherit; font-weight: 500; font-size: .95rem; color: var(--cream); background: transparent; border: 1px solid rgba(244, 230, 210, .32); border-radius: 99px; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.g-tab:hover { border-color: var(--cream); }
.g-tab[aria-selected='true'] { background: var(--cream); border-color: var(--cream); color: var(--night); }
.g-tab:focus-visible { outline-color: #e3a0ac; }
.g-count { font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 24px; padding: 1px 7px; border-radius: 99px; background: rgba(244, 230, 210, .14); }
.g-tab[aria-selected='true'] .g-count { background: rgba(27, 20, 22, .1); }
.g-panel + .g-panel { margin-top: 40px; }
.g-panel-h { font-size: 1.25rem; margin: 0 0 16px; color: var(--cream); }
.g-js .g-panel + .g-panel { margin-top: 0; }
.g-js .g-panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* One row per category that scrolls sideways (site.js advances it and wires the buttons).
   4 tiles in view on desktop, 3 on tablets, 1.6 on phones so the next one peeks in. */
.g-carousel { position: relative; }
.g-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track > li { flex: 0 0 calc((100% - 36px) / 4); scroll-snap-align: start; }
@media (max-width: 960px) { .g-track > li { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 640px) { .g-track { gap: 10px; } .g-track > li { flex-basis: 62%; } .g-nav { width: 40px; height: 40px; margin-top: -20px; } .g-nav svg { width: 18px; height: 18px; } }
.g-nav { position: absolute; z-index: 2; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(244, 230, 210, .45); background: rgba(27, 20, 22, .72); color: var(--cream); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: background-color .2s ease, color .2s ease; }
.g-nav:hover { background: var(--cream); color: var(--night); }
.g-nav:focus-visible { outline: 2px solid #e3a0ac; outline-offset: 2px; }
.g-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* The buttons sit beside the row, never on top of a picture: the row leaves them a gutter
   (only when it overflows, see .has-nav from site.js). On phones they move under the row. */
.g-carousel.has-nav { padding: 0 64px; }
.g-prev { left: 0; }
.g-next { right: 0; }
@media (max-width: 640px) {
  .g-carousel.has-nav { padding: 0 0 56px; }
  .g-nav { top: auto; bottom: 0; margin-top: 0; }
  .g-prev { left: calc(50% - 48px); }
  .g-next { right: calc(50% - 48px); }
}
@media (prefers-reduced-motion: reduce) { .g-track { scroll-behavior: auto; } }
.g-item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: var(--night-2); color: var(--cream); text-decoration: none; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter .3s ease; }
.g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(27, 20, 22, .72)); opacity: 0; transition: opacity .3s ease; }
.g-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-size: .9rem; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
@media (hover: hover) {
  .g-item:hover img, .g-item:hover video { transform: scale(1.04); }
  .g-item:hover::after, .g-item:hover .g-cap { opacity: 1; }
  .g-item:hover .g-cap { transform: none; }
}
.g-item:focus-visible { outline: 2px solid #e3a0ac; outline-offset: 3px; }
.g-item:focus-visible::after, .g-item:focus-visible .g-cap { opacity: 1; transform: none; }
.g-play { position: absolute; z-index: 1; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; display: grid; place-items: center; border-radius: 50%; background: rgba(27, 20, 22, .55); border: 1.5px solid rgba(255, 255, 255, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.g-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.g-empty { margin: 0; padding: 48px 20px; text-align: center; color: var(--cream-muted); border: 1px dashed rgba(244, 230, 210, .25); border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .g-item img, .g-item video, .g-cap { transition: none; } .g-item:hover img, .g-item:hover video { transform: none; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 11, 12, .94); color: var(--cream); }
.lightbox::backdrop { background: rgba(15, 11, 12, .6); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lb-stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px 8px; min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-cap { margin: 0; padding: 12px 24px 28px; min-height: 1.5em; text-align: center; color: var(--cream-muted); }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244, 230, 210, .35); background: rgba(27, 20, 22, .6); color: var(--cream); cursor: pointer; }
.lb-btn:hover { background: var(--cream); color: var(--night); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) { .lb-stage { padding: 64px 8px 8px; } .lb-prev, .lb-next { top: auto; bottom: 16px; margin-top: 0; } .lb-cap { padding-bottom: 80px; } }

/* Contact: one card per channel. Five fill two full rows on a 6-column grid (3 + 2). */
.channel-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.channel-grid > li { grid-column: span 2; display: grid; }
.channel-count-5 > li:nth-child(n + 4), .channel-count-4 > li { grid-column: span 3; }
@media (max-width: 960px) { .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .channel-grid > li, .channel-count-5 > li:nth-child(n + 4), .channel-count-4 > li { grid-column: span 1; } }
@media (max-width: 560px) { .channel-grid { grid-template-columns: 1fr; } }
.channel { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 18px; row-gap: 3px; align-items: center; padding: 24px 26px; text-decoration: none; color: var(--ink); }
.channel:hover { color: var(--ink); }
/* Icons in each channel's own colour: WhatsApp green, Instagram gradient, the school's red
   for phone and e-mail. Fixed values, so the burgundy hover does not repaint them. */
.channel-ico { grid-row: 1 / 4; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #c41e40; color: #fff; box-shadow: 0 6px 16px rgba(27, 20, 22, .12); transition: box-shadow .3s ease, transform .3s ease; }
.channel-wa .channel-ico { background: #25d366; }
.channel-ig .channel-ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.channel-ico .ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.channel-ico .ico-brand { fill: currentColor; stroke: none; width: 28px; height: 28px; }
.channel-kind { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.channel-value { font-size: 1.18rem; font-weight: 600; letter-spacing: -.005em; overflow-wrap: break-word; line-height: 1.3; }
@media (max-width: 560px) {
  .channel { padding: 20px; column-gap: 14px; }
  .channel-ico { width: 46px; height: 46px; }
  .channel-ico .ico { width: 22px; height: 22px; }
  .channel-value { font-size: 1.05rem; }
}
.channel-go { font-size: .9rem; color: var(--wine); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (hover: hover) { .channel:hover .channel-ico { box-shadow: 0 0 0 3px rgba(247, 235, 220, .35); } }
.channel:focus-visible .channel-ico { box-shadow: 0 0 0 3px rgba(247, 235, 220, .35); }

/* Venues: side by side, label on top, address beside a map pin. */
.venue-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.venue { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(26px, 3vw, 36px); }
.venue h3 { margin: 0; font-size: 1.5rem; }
.venue-tag { margin: 0; display: inline-block; padding: 4px 13px; border-radius: 99px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--red); background: rgba(196, 30, 64, .08); border: 1px solid rgba(196, 30, 64, .22); }
.venue-addr { margin: 0; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.venue-addr .ico { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--wine); stroke-width: 1.6; stroke-linejoin: round; }
.venue-note { margin: 0; color: var(--muted); }
.venue .btn { margin-top: auto; }
@media (hover: hover) { .venue:hover .venue-tag { background: rgba(255, 210, 217, .12); border-color: rgba(255, 210, 217, .4); } }

/* Footer */
.site-foot { padding: 64px 0 120px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand img { width: 150px; margin-bottom: 16px; }
.foot-brand p { color: var(--cream-muted); max-width: 34ch; }
.foot-brand .sig { color: #e3a0ac; }
.foot-social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 12px; }
.foot-social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(244, 230, 210, .4); color: var(--cream); transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.foot-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.foot-social svg .dot { fill: currentColor; stroke: none; }
.foot-social a:hover { background: var(--cream); border-color: var(--cream); color: var(--red); transform: translateY(-2px); }
.foot-social a:focus-visible { outline-color: var(--cream); }
@media (prefers-reduced-motion: reduce) { .foot-social a:hover { transform: none; } }
.foot-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .24em; font-weight: 500; color: var(--cream-muted); }
.foot-links { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(244, 230, 210, .15); font-size: .85rem; color: var(--cream-muted); }
.foot-palladium { white-space: normal; text-align: left; }
.foot-langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.foot-langs a { text-decoration: none; }
.foot-langs a:hover { text-decoration: underline; }
.foot-langs a[aria-current='true'] { color: #e3a0ac; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 981px) { .site-foot { padding-bottom: 64px; } }

/* Mobile quick bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: 10px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); background: rgba(243, 227, 208, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mobile-bar .btn { flex: 1; }
@media (max-width: 980px) { .mobile-bar { display: flex; } .head-cta { display: none; } }

/* Cookie banner */
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-inline: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 12px 40px rgba(29, 26, 27, .16); }
.cookie p { font-size: .92rem; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 980px) { .cookie { bottom: 84px; } }

/* Error page */
.error-box { padding: 12vh 0; }
.error-box img { width: 180px; margin: 0 auto 28px; }

/* Logo intro (public/js/intro.js): MAMBO rises, then the Rabat script is drawn left to right. */
.intro-splash { display: none; }
html.intro .intro-splash { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--paper) url('/img/paper.webp') repeat; background-size: 600px; transition: opacity .45s ease, visibility .45s; }
html.intro-out .intro-splash { opacity: 0; visibility: hidden; }
.intro-logo { position: relative; width: min(440px, 72vw); aspect-ratio: 1392 / 700; transition: transform .45s ease; }
.intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-word { opacity: 0; transform: translateY(22px); }
.intro-script { clip-path: inset(0 100% 0 0); }
html.intro-go .intro-word { animation: intro-word .7s cubic-bezier(.2, .7, .2, 1) forwards; }
html.intro-go .intro-script { animation: intro-script .9s cubic-bezier(.65, 0, .35, 1) .4s forwards; }
html.intro-out .intro-logo { transform: scale(.94); }
@keyframes intro-word { to { opacity: 1; transform: none; } }
@keyframes intro-script { to { clip-path: inset(0 0 0 0); } }

/* Discreet reveal: content is visible without JS; only hidden once the script has started. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
