/* =========================================================================
   Tango Burnaby — scoped design system + section styles
   Everything is scoped under .tb so nothing leaks into the theme / editor.
   Tokens map onto the site's Global Styles presets (single source of truth).
   Grows per section. Section: HERO.
   ========================================================================= */

/* ---------- Scope root: tokens + typography ONLY (no box props) ---------- */
.tb{
  --red: var(--wp--preset--color--red);
  --red-dark: var(--wp--preset--color--red-dark);
  --maroon: var(--wp--preset--color--maroon);
  --text: var(--wp--preset--color--text);
  --text-soft: var(--wp--preset--color--text-soft);
  --cream: var(--wp--preset--color--cream);
  --cream-2: var(--wp--preset--color--cream-2);
  --card: var(--wp--preset--color--card);
  --page: var(--wp--preset--color--page);
  --gold: var(--wp--preset--color--gold);
  --white: #ffffff;
  --serif: var(--wp--preset--font-family--quilon);
  --sans: var(--wp--preset--font-family--general-sans);
  --maxw: 1200px;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 24px rgba(90,20,20,.06);
  --shadow-md: 0 18px 50px rgba(90,20,20,.10);
  --shadow-lg: 0 30px 70px rgba(90,20,20,.14);
  --ease: cubic-bezier(.22,1,.36,1);

  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Reset within scope ---------- */
.tb *, .tb *::before, .tb *::after { box-sizing: border-box; }
.tb * { margin: 0; padding: 0; }
.tb img { max-width: 100%; display: block; }
.tb a { color: inherit; text-decoration: none; }
.tb ul { list-style: none; }
.tb h1, .tb h2, .tb h3, .tb h4 {
  font-family: var(--serif); font-weight: 400; color: var(--maroon);
  line-height: 1.15; letter-spacing: -.01em;
}

/* ---------- Buttons ---------- */
.tb .btn{
  --btn-bg: var(--red); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .5px;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--red); border-radius: 999px;
  padding: 14px 30px; line-height: 1;
  transition: transform .35s var(--ease), background .3s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.tb .btn:hover{ background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(161,13,16,.28); }
.tb .btn:active{ transform: translateY(-1px); }
.tb .btn--sm{ font-size: 16px; padding: 10px 24px; }

/* ---------- Flourish + stars (shared) ---------- */
.tb .flourish{ width: 80px; height: 25px; display: inline-block; color: var(--red); flex: 0 0 auto; }
.tb .flourish svg{ width: 100%; height: 100%; display: block; }
.tb .stars{ display: inline-flex; gap: 3px; }
.tb .stars svg{ width: 20px; height: 20px; color: var(--gold); }

/* =========================================================================
   HERO
   ========================================================================= */
.tb .hero{
  position: relative; min-height: 922px; padding: 192px 24px 64px;
  text-align: center; overflow: clip visible;
  /* 3-layer hero bg (restored from the design reference + warmed top so the blush
     reaches the very top behind the transparent header). The hero image
     (footer-bg-2) fades to transparent near its top, so the base gradient below
     is what shows up there — a flat var(--page) made it read as plain page white.
     Layer order (top-most first): blush glow at bottom-centre, the image, then a
     soft-blush base gradient (top -> deeper blush) that fills top-to-bottom. */
  background:
    linear-gradient(180deg, rgba(244, 205, 199, .5) 0%, rgba(244, 205, 199, 0) 42%),
    radial-gradient(120% 90% at 50% 110%, rgba(228, 170, 168, .55) 0%, rgba(255, 245, 239, 0) 60%),
    var(--tb-hero-bg, none) center bottom / cover no-repeat,
    linear-gradient(180deg, #fbe9e3 0%, #f1d4ce 100%);
}
.tb .hero__inner{ position: relative; z-index: 3; max-width: 720px; margin-inline: auto; }
.tb .hero h1{ font-size: clamp(2.6rem, 5.6vw, 4rem); line-height: 1.2; margin-bottom: 22px; }
.tb .hero__sub{ font-family: var(--sans); font-weight: 500; font-size: 1.25rem; line-height: 1.44; color: var(--text); max-width: 480px; margin: 0 auto 30px; }
.tb .hero__actions{ display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.tb .hero__rating{ display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.tb .hero__rating .label{ font-family: var(--sans); font-size: 18px; font-weight: 400; color: var(--text); }
.tb .hero__rating .label b{ font-weight: 700; }

/* Photo arc collage — flat editorial valley arc (matches live) */
.tb .hero__collage{ position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 1920px; z-index: 1; pointer-events: none; }
.tb .hero__photo{
  position: absolute; width: 14.72%; max-width: none; aspect-ratio: 205 / 274;
  border-radius: 5px; overflow: hidden;
}
.tb .hero__photo img{ width: 100%; height: 100%; object-fit: cover; }
.tb .hero__photo.p1{ left: 1.67%;  top: 532px; }
.tb .hero__photo.p2{ left: 18.06%; top: 612px; }
.tb .hero__photo.p3{ left: 34.44%; top: 744px; }
.tb .hero__photo.p4{ left: 50.83%; top: 744px; }
.tb .hero__photo.p5{ left: 67.21%; top: 612px; }
.tb .hero__photo.p6{ left: 83.60%; top: 532px; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px){
  .tb .hero{ min-height: auto; padding: 150px 24px 60px; }
  .tb .hero__collage{
    position: static; transform: none; pointer-events: auto; margin-top: 44px; display: flex; gap: 14px; overflow-x: auto;
    padding: 6px 4px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  }
  .tb .hero__collage::-webkit-scrollbar{ height: 6px; }
  .tb .hero__collage::-webkit-scrollbar-thumb{ background: rgba(161,13,16,.25); border-radius: 6px; }
  .tb .hero__photo{
    position: static !important; animation: none; flex: 0 0 auto;
    width: 170px; max-width: none; scroll-snap-align: center;
  }
}
@media (max-width: 560px){
  .tb .hero{ padding-top: 130px; }
  .tb .hero__actions{ flex-direction: column; align-items: stretch; }
  .tb .hero__actions .btn{ width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .tb .hero__photo{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* =========================================================================
   LAYOUT HELPERS (shared by every section below the hero)
   ========================================================================= */
.tb .container{ width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.tb .section{ padding: 88px 0; position: relative; }
.tb .section-head{ text-align: center; margin-bottom: 54px; }
.tb .section-head h2{ font-size: clamp(2.1rem, 3.6vw, 3rem); margin: 14px 0 10px; }
.tb .section-head .sub{ color: var(--text-soft); font-size: 1.05rem; }
.tb .section-head .flourish{ margin-inline: auto; }

/* =========================================================================
   CLASS SCHEDULE  (block: acf/tb-summer-classes)
   ========================================================================= */
.tb .schedule{ background: linear-gradient(180deg, var(--page) 0%, #fff6f0 100%); }
.tb .schedule__grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.tb .class-card{
  background: var(--card);
  border: 2px solid var(--cream);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.tb .class-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(161, 13, 16, .25); }
.tb .class-card__top{ display: flex; align-items: flex-start; gap: 18px; }
.tb .class-card__num{
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.5rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(161, 13, 16, .28);
}
.tb .class-card__title{ font-size: 1.4rem; line-height: 1.2; }
.tb .class-card__desc{ color: var(--text-soft); font-size: .98rem; }
.tb .class-card__meta{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 2px; }
.tb .meta-row{ display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text); }
.tb .meta-row .mi{ width: 20px; height: 20px; color: var(--red); flex: 0 0 auto; margin-top: 2px; }
.tb .meta-row .mi svg{ width: 100%; height: 100%; }
.tb .meta-row span b{ display: block; font-weight: 500; }
.tb .meta-row span small{ color: var(--text-soft); font-size: .82rem; }
.tb .class-card__teacher{ display: flex; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px dashed rgba(161, 13, 16, .18); margin-top: 2px; }
.tb .class-card__teacher img{ width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); }
.tb .class-card__teacher span{ font-size: .92rem; }
.tb .class-card__teacher span small{ display: block; color: var(--text-soft); font-size: .78rem; }
.tb .class-card__teacher span b{ font-weight: 500; color: var(--maroon); }
.tb .milonga-note{
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: auto;
}
.tb .milonga-note p{ font-size: .9rem; color: var(--maroon); flex: 1 1 200px; }
.tb .milonga-note .tag{ display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--red); }
.tb .milonga-note .tag svg{ width: 16px; height: 16px; }
.tb .schedule__cta{ text-align: center; margin-top: 46px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .tb .section{ padding: 64px 0; }
  .tb .schedule__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .tb .container{ padding-inline: 18px; }
  .tb .class-card__meta{ grid-template-columns: 1fr; }
}

/* ---------- Section: FEEL THE RHYTHM (ftr — Design 1 daylight cream card) ---------- */
.tb .ftr{ padding: 80px 24px; background: var(--page); }
.tb .ftr-card{
  position: relative; z-index: 0; overflow: hidden;
  max-width: 1276px; margin-inline: auto;
  padding: 48px 40px; border-radius: 40px 0 0 40px;
  background: linear-gradient(246deg, rgba(160, 13, 15, 0) 20%, var(--cream));
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 112px; align-items: start;
}
.tb .ftr-card::before{
  content: ""; position: absolute; top: 20%; left: 20%;
  width: 620px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 13, 16, .55) 0%, rgba(161, 13, 16, 0) 70%);
  filter: blur(50px); pointer-events: none; z-index: 0;
}
.tb .ftr-card > *{ position: relative; z-index: 1; }
.tb .ftr-left{ display: flex; flex-direction: column; gap: 32px; }
.tb .ftr-head{ display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tb .ftr-flourish{ width: 80px; height: 25px; color: var(--red); display: block; }
.tb .ftr-flourish svg{ width: 100%; height: 100%; display: block; }
.tb .ftr-title{ font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.3; letter-spacing: normal; color: var(--maroon); }
.tb .ftr-copy{ display: flex; flex-direction: column; gap: 16px; }
.tb .ftr-copy p{ font-family: var(--sans); font-size: 20px; line-height: 1.44; font-weight: 500; color: var(--text); margin: 0; }
.tb .ftr-copy strong{ font-weight: 700; color: var(--text); }
.tb .ftr-badge{ display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tb .ftr-badge__head{ display: flex; align-items: center; gap: 10px; }
.tb .ftr-badge__icon{ width: 28px; height: 28px; color: var(--red); flex: 0 0 auto; display: block; }
.tb .ftr-badge__icon svg{ width: 100%; height: 100%; display: block; }
.tb .ftr-badge__title{ font-family: var(--sans); font-size: 20px; font-weight: 500; line-height: 1.2; color: var(--maroon); margin: 0; }
.tb .ftr-badge__text{ font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 1.46; color: var(--text); margin: 0; }
.tb .ftr-media{ display: flex; gap: 24px; align-items: flex-start; }
.tb .ftr-media__item{ flex: 1 1 0; min-width: 0; margin: 0; }
.tb .ftr-media__item img{ width: 100%; height: auto; border-radius: 10px; display: block; }
.tb .ftr-media__item--offset{ margin-top: 64px; }

/* Desktop-only extra top padding so the hero's overhanging collage clears the heading */
@media (min-width: 1100px){ .tb .ftr{ padding-top: clamp(180px, calc(180px + (100vw - 1440px) * 0.104), 230px); } }

@media (max-width: 980px){
  .tb .ftr-card{ grid-template-columns: 1fr; column-gap: 0; row-gap: 40px; padding: 36px 28px; border-radius: 28px; }
  .tb .ftr-media{ max-width: 500px; }
  .tb .ftr-title{ font-size: 38px; }
}
@media (max-width: 560px){
  .tb .ftr{ padding: 48px 16px; }
  .tb .ftr-card{ padding: 28px 20px; }
  .tb .ftr-title{ font-size: 30px; }
  .tb .ftr-copy p{ font-size: 18px; }
  .tb .ftr-media__item--offset{ margin-top: 40px; }
}

/* ============================================================
   Testimonials — "What Our Members Say"  (decision 0007)
   ============================================================ */
.tb .testimonials{ background: linear-gradient(180deg, #fff6f0 0%, var(--page) 100%); }
.tb .tgrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tb .tcard{
  background: var(--card);
  border: 2px solid var(--cream);
  border-radius: var(--radius-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tb .tcard:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tb .tcard .stars svg{ width: 24px; height: 24px; }
.tb .tcard p{
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text);
}
.tb .tcard .name{
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--text);
}
@media (max-width: 900px){
  .tb .tgrid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .tb .tgrid{ grid-template-columns: 1fr; }
}


/* =========================================================================
   Section: WHY CHOOSE — matches live tangoburnaby.ca (filled red check, no box)
   ========================================================================= */
.tb .why__grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.tb .why__body{ display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.tb .why__head{ display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tb .why__title{ font-size: 44px; line-height: 1.3; margin: 0; }
.tb .why__lead{ font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--text); margin: 0; }
.tb .why__list{ list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.tb .why__list li{ display: flex; align-items: center; gap: 16px; }
.tb .why__check{ flex: 0 0 auto; width: 34px; height: 34px; color: var(--red); }
.tb .why__check svg{ width: 100%; height: 100%; display: block; }
.tb .why__list p{ font-family: var(--sans); font-size: 20px; font-weight: 500; color: var(--text); line-height: 1.65; margin: 0; }
.tb .why__media{ border-radius: var(--radius-sm); overflow: hidden; }
.tb .why__media img{ display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); }

@media (max-width: 900px){
  .tb .why__grid{ grid-template-columns: 1fr; gap: 40px; }
  .tb .why__media{ max-width: 520px; margin-inline: auto; }
  .tb .why__title{ font-size: 38px; }
}
@media (max-width: 560px){
  .tb .why__title{ font-size: 30px; }
  .tb .why__lead, .tb .why__list p{ font-size: 18px; }
  .tb .why__list li{ gap: 12px; }
  .tb .why__check{ width: 30px; height: 30px; }
}

/* =========================================================================
   Section: CTA — "Ready to Experience the Magic of Tango?" (block: acf/tb-cta)
   Matches live tangoburnaby.ca: 2-col grid (copy + large square photo),
   red flourish accent, pill button, red "no partner" note.
   ========================================================================= */
.tb .cta__grid{ display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: center; }
.tb .cta__body{ display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.tb .cta__head{ display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tb .cta__title{ font-size: clamp(2.1rem, 3.6vw, 2.75rem); line-height: 1.3; margin: 0; max-width: 18ch; }
.tb .cta__lead{ font-family: var(--sans); font-size: 1.125rem; font-weight: 500; line-height: 1.6; color: var(--text-soft); max-width: 42ch; margin: 0; }
.tb .cta__actions{ display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.tb .cta__note{ display: flex; flex-direction: column; gap: 4px; }
.tb .cta__note-1{ font-family: var(--sans); font-size: 1.125rem; font-weight: 700; color: var(--red); line-height: 1.4; margin: 0; }
.tb .cta__note-2{ font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; color: var(--text); line-height: 1.55; max-width: 42ch; margin: 0; }
.tb .cta__note-2 strong{ font-weight: 700; color: var(--text); }
.tb .cta__media{ position: relative; }
.tb .cta__media img{ width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(90,20,20,.16)); }

@media (max-width: 900px){
  .tb .cta__grid{ grid-template-columns: 1fr; gap: 40px; }
  .tb .cta__body{ align-items: center; text-align: center; }
  .tb .cta__head{ align-items: center; }
  .tb .cta__actions{ align-items: center; }
  .tb .cta__note{ align-items: center; text-align: center; }
  .tb .cta__title, .tb .cta__lead, .tb .cta__note-2{ max-width: 100%; }
  .tb .cta__media{ order: -1; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 560px){
  .tb .cta__title{ font-size: 30px; }
  .tb .cta__lead, .tb .cta__note-1{ font-size: 18px; }
}


/* =========================================================================
   Section: SITE HEADER (template part `header`)
   Transparent fixed overlay matching live tangoburnaby.ca: oval logo (left) ·
   centred Quilon nav · red pill CTA (right); collapses to a hamburger <=600px.
   ========================================================================= */
.tb-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 20px 24px;
  background: transparent;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease), transform .4s var(--ease);
}
.tb-header__inner{
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}

/* ---- logo ---- */
.tb-header .wp-block-site-logo{ line-height: 0; }
.tb-header .wp-block-site-logo img,
.tb-header .custom-logo{ width: 92px; height: auto; display: block; transition: width .3s var(--ease); }

/* ---- nav (centre column) ---- */
.tb-header__nav{ flex: 1 1 auto; }
.tb-header__nav .wp-block-navigation__container{
  gap: clamp(20px, 2.4vw, 40px);
  align-items: center;
}
.tb-header__nav .wp-block-navigation-item__content,
.tb-header__nav a{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .01em;
  color: var(--text);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.tb-header__nav .wp-block-navigation-item__content:hover,
.tb-header__nav a:hover{ color: var(--red); }

/* ---- CTA pill ---- */
.tb-header__cta{ margin: 0; flex: 0 0 auto; }
.tb-header__cta .wp-block-button__link{
  display: inline-block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .01em;
  line-height: 1;
  color: #fff;
  background: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 999px;
  padding: 13px 26px;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), padding .3s var(--ease), font-size .3s var(--ease);
}
.tb-header__cta .wp-block-button__link:hover{
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(161,13,16,.22);
}

/* ---- mobile hamburger + overlay ---- */
.tb-header .wp-block-navigation__responsive-container-open,
.tb-header .wp-block-navigation__responsive-container-close{ color: var(--maroon); }
.tb-header .wp-block-navigation__responsive-container.is-menu-open{ background: var(--page); }
.tb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{
  font-family: var(--serif);
  font-size: 26px;
  color: var(--maroon);
}
/* ---- Collapse to the hamburger below 900px. Core's Navigation block only
   collapses at <=600px, which left the logo squeezed to nothing (it's flex
   0 1 auto = shrinkable) and the rigid CTA pushed past the viewport edge in
   the ~600-900px band, where 5 Quilon links + logo + CTA can't share one
   no-wrap row. Move the collapse up to 900px: reveal the hamburger and hide
   the inline menu there (core's tap overlay isn't media-gated, so it still
   opens at these widths). ---- */
@media (max-width: 900px){
  /* Reveal the hamburger and hide the inline menu. Core only collapses the nav
     at <=600px; here we do it up to 900px (below 600 this simply reinforces
     core). The tap overlay isn't media-gated, so it still opens at these widths. */
  .tb-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown){ display: flex; }
  .tb-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){ display: none; }
  /* nav shrinks to just the hamburger; the inner's space-between drops it far right */
  .tb-header__nav{ flex: 0 0 auto; }
  /* the CTA is carried by the overlay menu here, so hide the in-bar pill */
  .tb-header__inner .tb-header__cta.wp-block-buttons{ display: none; }
}
@media (max-width: 600px){
  .tb-header{ padding: 13px 18px; }
  .tb-header .wp-block-site-logo img,
  .tb-header .custom-logo{ width: 66px; }
}

/* ---- Site-frame: clear the fixed header on pages without their own top hero.
   Interim safeguard for not-yet-rebuilt pages; the front page hero handles its
   own clearance (168px), so .home is excluded. Remove/override per page as each
   gets a full-bleed top section. ---- */
body:not(.home) main{ padding-top: 64px; }


/* =========================================================================
   Section: SITE HEADER — scroll state + WP admin-bar offset
   ========================================================================= */

/* ---- Scrolled state: tb.js adds `.is-scrolled` once the page is scrolled
   past the hero, fading in a frosted warm-white bar. Nav text (--text) and the
   red logo/CTA stay readable on it, so no colour switching is needed. The live
   site keeps the bar transparent (hide-on-scroll only); this bg is a
   deliberate readability improvement requested for the rebuild. ---- */
.tb-header.is-scrolled{
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(255, 252, 250, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(27, 0, 0, .07);
}
/* Compact the bar once scrolled: shrink the (dominant) logo + the CTA pill so the
   sticky header takes noticeably less vertical space than at the top. */
.tb-header.is-scrolled .wp-block-site-logo img,
.tb-header.is-scrolled .custom-logo{ width: 64px; }
.tb-header.is-scrolled .tb-header__cta .wp-block-button__link{ padding: 9px 22px; font-size: 15px; }
@media (max-width: 600px){
  .tb-header.is-scrolled{ padding-top: 7px; padding-bottom: 7px; }
  .tb-header.is-scrolled .wp-block-site-logo img,
  .tb-header.is-scrolled .custom-logo{ width: 48px; }
}

/* ---- Hide-on-scroll-down / reveal-on-scroll-up. tb.js adds `.is-hidden` when
   the visitor scrolls DOWN past the top zone and removes it the moment they
   scroll UP, so the bar slides out of the way while reading and returns the
   instant it's wanted (the live tangoburnaby.ca header behaves this way). It
   reveals WITH the frosted `.is-scrolled` bg, so nav stays readable over
   content. translateY(-100%) tucks it fully off the top (under the admin bar
   when `top` is offset). Honours reduced-motion by staying put. ---- */
.tb-header.is-hidden{ transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce){
  .tb-header.is-hidden{ transform: none; }
}

/* ---- Clear the WP admin toolbar when logged in. Core defines
   --wp-admin--admin-bar--height on <html> and already flips it 32px -> 46px at
   <=782px, so this one rule is correct at every width; it only applies when the
   body carries `.admin-bar` (i.e. the toolbar is showing). ---- */
.admin-bar .tb-header{ top: var(--wp-admin--admin-bar--height, 0px); }
/* =========================================================================
   Section: NEWSLETTER — "Join our mailing list"  (block: acf/tb-newsletter)
   Centered blush band over bg-3-1.webp. Fluent Forms (id 11) output is shaped
   into the design's white pill: email + "Join" inline, stacked on mobile.
   ========================================================================= */
.tb .newsletter{ padding: 76px 0; text-align: center; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--cream-2); }
.tb .newsletter__inner{ max-width: 640px; margin-inline: auto; }
.tb .newsletter__logo{ height: 74px; width: auto; margin: 0 auto 22px; display: block; }
.tb .newsletter__title{ font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 8px; }
.tb .newsletter__text{ color: var(--text-soft); max-width: 460px; margin: 0 auto 26px; }
.tb .newsletter__form{ max-width: 520px; margin-inline: auto; }

/* Fluent Forms (form 11) shaped into the pill */
.tb .newsletter .fluentform{ margin: 0; }
.tb .newsletter .ff-t-container.ff-column-container{ display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0; background: #fff; border-radius: 999px; padding: 7px 7px 7px 8px; box-shadow: var(--shadow-md); }
.tb .newsletter .ff-el-group{ margin: 0; }
.tb .newsletter .ff-el-input--content{ margin: 0; }
.tb .newsletter .ff-el-group .ff-el-input--content input.ff-el-form-control{ border: none; border-radius: 0; background: transparent; box-shadow: none; outline: none; font-family: var(--sans); font-size: 1rem; color: var(--text); padding: 10px 16px; height: auto; min-height: 44px; width: 100%; }
.tb .newsletter .ff-el-input--content input.ff-el-form-control::placeholder{ color: #b79c95; }
.tb .newsletter .ff_submit_btn_wrapper .ff-btn-submit{ font-family: var(--serif); font-weight: 500; font-size: 17px; padding: 12px 28px; border-radius: 999px; border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer; box-shadow: none; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.tb .newsletter .ff_submit_btn_wrapper .ff-btn-submit:hover{ background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.tb .newsletter .ff-el-is-error .ff-el-form-control{ box-shadow: none; }
.tb .newsletter .ff-message-success{ margin-top: 14px; color: var(--text); }

@media (max-width: 560px){
  .tb .newsletter .ff-t-container.ff-column-container{ flex-direction: column; background: transparent; box-shadow: none; border-radius: 0; padding: 0; gap: 12px; }
  .tb .newsletter .ff-t-cell{ flex-basis: 100% !important; max-width: 100% !important; width: 100%; }
  .tb .newsletter .ff-el-group .ff-el-input--content input.ff-el-form-control{ background: #fff; border-radius: 999px; padding: 15px 20px; box-shadow: var(--shadow-sm); min-height: 48px; }
  .tb .newsletter .ff_submit_btn_wrapper .ff-btn-submit{ width: 100%; min-width: 100%; }
}


/* ============================================================
   ABOUT PAGE  -  hero / founder / missions        2026-07-10
   ============================================================ */

/* Full-bleed hero band: neutralise the interim
   body:not(.home) main padding guard on pages carrying our own hero. */
body.tb-has-hero main{ padding-top: 0; }

/* --- About hero ------------------------------------------------ */
.tb .about-hero{
  padding: 168px 24px 116px;
  text-align: center;
  background: var(--tb-abouthero-bg, none) center/cover no-repeat, var(--cream-2);
  overflow: hidden;
}
.tb .about-hero__inner{
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.tb .about-hero__eyebrow{
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .01em;
  color: var(--red);
}
.tb .about-hero__title{
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  line-height: 1.18;
  color: var(--text);
  margin: 0;
}
@media (max-width: 900px){
  .tb .about-hero{ padding: 140px 24px 84px; }
}
@media (max-width: 560px){
  .tb .about-hero{ padding: 120px 18px 64px; }
  .tb .about-hero__title{ font-size: 34px; }
}

/* --- Founder bio ----------------------------------------------- */
.tb .founder__grid{
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 64px;
  align-items: center;
}
.tb .founder__media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.tb .founder__title{
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.15;
  color: var(--maroon);
  margin: 0 0 8px;
}
.tb .founder__subtitle{
  font-family: var(--sans);
  font-size: clamp(1.2rem, 1.9vw, 1.625rem);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 22px;
}
.tb .founder__text p{
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 16px;
}
.tb .founder__text p:last-child{ margin-bottom: 0; }
.tb .founder__actions{ margin-top: 26px; }
@media (max-width: 900px){
  .tb .founder__grid{ grid-template-columns: 1fr; gap: 34px; }
  .tb .founder__media{ max-width: 460px; margin-inline: auto; }
}
@media (max-width: 560px){
  .tb .founder__title{ font-size: 30px; }
  .tb .founder__subtitle{ font-size: 20px; }
}

/* --- Mission / Approach staggered cards ------------------------ */
.tb .missions{ overflow: hidden; }
.tb .missions__wrap{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 96px;
  align-items: start;
}
.tb .missions__card{
  position: relative;
  z-index: 0;
  padding: 40px 48px;
  border-radius: var(--radius-sm);
  background: var(--tb-missions-cardbg, var(--cream)) center/cover no-repeat;
  box-shadow: 0 24px 48px -32px rgba(27,0,0,.30);
}
.tb .missions__card--mission{ grid-column: 1; grid-row: 1; z-index: 2; }
.tb .missions__card--approach{ grid-column: 2; grid-row: 2; margin-top: -16px; z-index: 0; transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .55s ease; }
.tb .missions__card--approach.is-lifted{ z-index: 3; transform: translateY(-28px); box-shadow: 0 40px 72px -34px rgba(27,0,0,.45); }
@media (prefers-reduced-motion: reduce){
  .tb .missions__card--approach{ transition: none; }
  .tb .missions__card--approach.is-lifted{ transform: none; }
}
.tb .missions__card .flourish{ display: block; width: 70px; height: 22px; margin: 0 0 14px; }
.tb .missions__card h3{
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--maroon);
  margin: 0 0 16px;
}
.tb .missions__card p{
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 14px;
}
.tb .missions__card p:last-child{ margin-bottom: 0; }
.tb .missions__illus{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, 40%);
  aspect-ratio: 3 / 4;
  background: var(--tb-missions-illus, none) center/contain no-repeat;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 900px){
  .tb .missions__wrap{ display: flex; flex-direction: column; gap: 24px; }
  .tb .missions__card--approach{ margin-top: 0; }
  .tb .missions__card--approach.is-lifted{ transform: none; z-index: 0; box-shadow: 0 24px 48px -32px rgba(27,0,0,.30); }
  .tb .missions__illus{
    position: static;
    transform: none;
    width: 100%;
    max-width: 300px;
    aspect-ratio: auto;
    height: 280px;
    margin: 0 auto;
  }
}
@media (max-width: 560px){
  .tb .missions__card{ padding: 30px 26px; }
}


/* ============================================================
   CONTACT PAGE  -  hero / info + form            2026-07-10
   ============================================================ */

/* --- Contact hero (blush band, rounded bottom) ----------------- */
.tb .contact-hero{
  padding: 172px 24px 96px;
  text-align: center;
  background: var(--tb-contacthero-bg, none) center/cover no-repeat, var(--cream-2);
  border-radius: 0 0 44px 44px;
  overflow: hidden;
}
.tb .contact-hero__inner{
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tb .contact-hero__eyebrow{
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .01em;
  color: var(--red);
}
.tb .contact-hero__title{
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.16;
  color: var(--maroon);
  margin: 0;
}
@media (max-width: 900px){
  .tb .contact-hero{ padding: 140px 24px 72px; border-radius: 0 0 32px 32px; }
}
@media (max-width: 560px){
  .tb .contact-hero{ padding: 118px 18px 56px; }
  .tb .contact-hero__title{ font-size: 33px; }
}

/* --- Contact info + form grid ---------------------------------- */
.tb .contact{ padding: 76px 0 104px; }
.tb .contact__grid{
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 72px;
  align-items: start;
}
.tb .contact__info{ position: relative; padding-top: 18px; }
.tb .contact__heading{
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--maroon);
  margin: 0 0 34px;
}
.tb .contact__list{
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.tb .contact__row{ display: flex; flex-direction: column; gap: 2px; }
.tb .contact__label{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  color: var(--maroon);
}
.tb .contact__value{
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.tb a.contact__value:hover{ color: var(--red); }

/* Redesigned social buttons — red icon-badge pills.
   (Deliberately different from the reference's flat blush squares.) */
.tb .contact__socials{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.tb .contact__social{
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 7px 20px 7px 7px;
  background: var(--card);
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .3s var(--ease), background .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tb .contact__social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  flex: 0 0 auto;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.tb .contact__social-icon svg{ width: 19px; height: 19px; display: block; }
.tb .contact__social-label{
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  transition: color .3s var(--ease);
}
.tb .contact__social:hover{
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -12px rgba(161,13,16,.55);
}
.tb .contact__social:hover .contact__social-label{ color: #fff; }
.tb .contact__social:hover .contact__social-icon{ background: #fff; color: var(--red); }



/* --- Form card ------------------------------------------------- */
.tb .contact__card{
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 44px 40px;
}

/* Fluent Forms (form #1) scoped styling */
.tb .contact-form form.fluent_form_1{ margin: 0; }
.tb .contact-form .ff-el-group,
.tb .contact-form .ff-name-field-wrapper{ margin: 0 0 22px; }
.tb .contact-form .ff-el-group:last-child,
.tb .contact-form .ff-name-field-wrapper:last-child{ margin-bottom: 0; }

.tb .contact-form .ff-el-input--label{ margin-bottom: 9px; padding: 0; }
.tb .contact-form .ff-el-input--label label{
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--maroon);
  line-height: 1.3;
}
.tb .contact-form .ff-el-input--label.asterisk-right label:after,
.tb .contact-form .ff-el-input--label.ff-el-is-required.asterisk-right label:after{ color: var(--red); }

.tb .contact-form .ff-el-form-control{
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--page);
  border: 1px solid #e4d4cb;
  border-radius: 5px;
  padding: 13px 16px;
  width: 100%;
  height: auto;
  box-shadow: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tb .contact-form textarea.ff-el-form-control{ min-height: 150px; resize: vertical; }
.tb .contact-form .ff-el-form-control::placeholder{ color: #b79c95; opacity: 1; }
.tb .contact-form .ff-el-form-control:focus{
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(161,13,16,.12);
  outline: none;
}

/* First / Last name — two columns */
.tb .contact-form .ff-name-field-wrapper .ff-t-container{
  display: flex;
  gap: 20px;
  margin: 0;
}
.tb .contact-form .ff-name-field-wrapper .ff-t-cell{
  flex: 1 1 0;
  max-width: none;
  padding: 0;
  margin: 0;
}
.tb .contact-form .ff-name-field-wrapper .ff-t-cell .ff-el-group{ margin: 0; }

/* Submit — soft-cornered red rectangle (matches the reference form) */
.tb .contact-form .ff_submit_btn_wrapper{ margin-top: 8px; }
.tb .contact-form .wpf_has_custom_css.ff-btn-submit{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .3px;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: none;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.tb .contact-form .wpf_has_custom_css.ff-btn-submit:hover{
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
}
.tb .contact-form .ff-message-success{
  margin-top: 14px;
  font-family: var(--sans);
  color: var(--text);
}
.tb .contact-form .ff-el-is-error .ff-el-form-control{ border-color: var(--red); box-shadow: none; }
.tb .contact-form .error.text-danger,
.tb .contact-form .ff-el-is-error .error{ font-family: var(--sans); }

@media (max-width: 900px){
  .tb .contact{ padding: 56px 0 84px; }
  .tb .contact__grid{ grid-template-columns: 1fr; gap: 44px; }
  .tb .contact__info{ padding-top: 0; padding-left: 22px; }
}
@media (max-width: 560px){
  .tb .contact__heading{ text-align: center; }
  .tb .contact__card{ padding: 30px 22px; }
  .tb .contact-form .ff-name-field-wrapper .ff-t-container{ flex-direction: column; gap: 0; }
  .tb .contact-form .ff-name-field-wrapper .ff-t-cell{ margin-bottom: 22px; }
  .tb .contact-form .ff-name-field-wrapper .ff-t-cell:last-child{ margin-bottom: 0; }
  .tb .contact-form .wpf_has_custom_css.ff-btn-submit{ width: 100%; }
}


/* --- focus-visible: no box on mouse click --- */
.tb a:focus:not(:focus-visible),
.tb button:focus:not(:focus-visible),
.tb .wp-element-button:focus:not(:focus-visible),
.tb .wp-block-navigation-item__content:focus:not(:focus-visible),
.tb [tabindex]:focus:not(:focus-visible){
  outline: none;
}

/* ============================================================
   SINGLE CLASS (regular) — single-classes template
   2026-07-10
   ============================================================ */

/* Page frame: hero self-clears the fixed header; left-align all section heads
   on class singles (incl. the reused testimonials block) to match the live design. */
body.class-type-regular .tb .section-head { text-align: left; margin-bottom: 34px; }
body.class-type-regular .tb .section-head h2 { margin-inline: 0; margin-top: 0; }
body.class-type-regular .tb .section-head .sub { margin-inline: 0; }
body.class-type-regular .tb .section-head .flourish { margin-inline: 0; display: block; margin-bottom: 8px; }

/* ---------- 1. Hero ---------- */
.tb .class-hero { padding: 150px 0 76px; background: var(--cream-2); overflow: hidden; }
.tb .class-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.tb .class-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; color: var(--maroon); margin: 0 0 18px; }
.tb .class-hero__sub { color: var(--text-soft); font-weight: 500; font-size: 1.1rem; line-height: 1.6; margin: 0 0 20px; max-width: 34em; }
.tb .class-hero__tag { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--text); margin: 0 0 28px; }
.tb .class-hero__check { width: 20px; height: 20px; display: inline-flex; color: var(--red); flex: 0 0 auto; }
.tb .class-hero__check svg { width: 100%; height: 100%; }
.tb .class-hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tb .class-hero__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--red-dark); }
.tb .class-hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }
.tb .class-hero__badge.is-open { color: #2e7d4f; }
.tb .class-hero__badge.is-open .dot { background: #2e9b57; }
.tb .class-hero__media img { width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }

/* ---------- 2. About This Class ---------- */
.tb .class-about .section-head { margin-bottom: 24px; }
.tb .class-about__body { color: var(--text-soft); font-size: 1.02rem; line-height: 1.75; }
.tb .class-about__body p { margin: 0 0 18px; }
.tb .class-about__body p:last-child { margin-bottom: 0; }

/* ---------- Two-column body: content (left) + sticky booking sidebar (right) ---------- */
.tb.class-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 60px; align-items: start; max-width: var(--maxw); margin-inline: auto; padding: 60px 0 90px; }
.tb.class-body > * { margin-block: 0; }
.tb .class-body__main { grid-column: 1; min-width: 0; }
.tb .class-body__aside { grid-column: 2; align-self: stretch; }
/* each section fills the left column: drop its own frame + supply rhythm via sibling margins */
.tb.class-body .section { padding-block: 0; }
.tb.class-body .container { max-width: none; margin-inline: 0; padding-inline: 0; }
.tb .class-body__main > .tb + .tb { margin-top: 56px; }
/* testimonials reflow 3 -> 2 columns inside the narrower left column (sticky card stays put — see .class-price) */
.tb.class-body .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* price card */
.tb .class-price { background: var(--red); color: #fff; border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow-md); position: sticky; top: 96px; }
.tb .class-price__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.22); }
.tb .class-price__amount { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.tb .class-price__label { font-size: .9rem; opacity: .85; }
.tb .class-price__rows { list-style: none; margin: 20px 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tb .class-price__rows li { display: flex; flex-direction: column; gap: 3px; }
.tb .class-price__k { font-weight: 600; font-size: 1rem; }
.tb .class-price__v { font-size: .85rem; opacity: .82; }
.tb .class-price__btn { width: 100%; --btn-bg: #fff; --btn-fg: var(--red); border-color: #fff; }
.tb .class-price__btn:hover { background: var(--cream); border-color: var(--cream); color: var(--red-dark); box-shadow: 0 14px 30px rgba(0,0,0,.18); }

/* ---------- 3. What You'll Learn ---------- */
.tb .learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tb .learn-card { background: var(--card); border: 1px solid rgba(161,13,16,.12); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tb .learn-card__media { aspect-ratio: 16 / 10; background: var(--cream-2); }
.tb .learn-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb .learn-card__body { padding: 22px 24px 26px; }
.tb .learn-card__title { font-size: 1.25rem; color: var(--maroon); margin: 0 0 8px; }
.tb .learn-card__desc { color: var(--text-soft); font-size: .96rem; line-height: 1.65; }
.tb .learn-card__desc p { margin: 0; }

/* ---------- 4. Class Schedule ---------- */
.tb .sessions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tb .session-card { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid rgba(161,13,16,.12); border-radius: 16px; padding: 16px 20px; }
.tb .session-card__num { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--red); background: #f7dede; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tb .session-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb .session-card__date { font-weight: 700; color: var(--maroon); font-size: 1rem; }
.tb .session-card__time { color: var(--text-soft); font-size: .9rem; white-space: nowrap; }

/* ---------- 5. Instructor ---------- */
.tb .instructor-card { display: grid; grid-template-columns: 280px 1fr; gap: 42px; align-items: start; background: var(--card); border: 1px solid rgba(161,13,16,.12); border-radius: var(--radius); padding: 34px; }
.tb .instructor-card__media img { width: 100%; height: auto; border-radius: 16px; display: block; }
.tb .instructor-card__name { font-size: 1.7rem; color: var(--maroon); margin: 0 0 14px; }
.tb .instructor-card__bio { color: var(--text-soft); font-size: 1rem; line-height: 1.7; }
.tb .instructor-card__bio p { margin: 0 0 14px; }
.tb .instructor-card__bio p:last-child { margin-bottom: 0; }
.tb .instructor-card__pills { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tb .instructor-card__pills .tag { background: var(--cream); color: var(--red-dark); border: 1px solid rgba(161,13,16,.2); border-radius: 999px; padding: 7px 16px; font-size: .85rem; font-weight: 600; }

/* ---------- 6. Venue & Location ---------- */
.tb .class-venue__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(161,13,16,.1); }
.tb .class-venue__map iframe { display: block; width: 100%; height: 420px; border: 0; }
.tb .class-venue__info { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.tb .class-venue__place { display: flex; align-items: flex-start; gap: 12px; color: var(--text); line-height: 1.5; }
.tb .class-venue__pin { width: 22px; height: 22px; color: var(--red); flex: 0 0 auto; margin-top: 2px; }
.tb .class-venue__pin svg { width: 100%; height: 100%; }
.tb .class-venue__link { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; white-space: nowrap; }
.tb .class-venue__link:hover { color: var(--red-dark); }

/* ---------- 7. FAQ ---------- */
.tb .class-faq .container { max-width: 840px; }
.tb .faq-list { display: flex; flex-direction: column; gap: 14px; }
.tb .faq-item { background: var(--card); border: 1px solid rgba(161,13,16,.14); border-radius: 14px; overflow: hidden; }
.tb .faq-item__q:focus:not(:focus-visible) { outline: none; }
.tb .faq-item__q:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; border-radius: 12px; }
.tb .faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; font-family: var(--serif); font-size: 1.1rem; color: var(--maroon); list-style: none; }
.tb .faq-item__q::-webkit-details-marker { display: none; }
.tb .faq-item__icon { width: 18px; height: 18px; color: var(--red); flex: 0 0 auto; transition: transform .3s var(--ease); }
.tb .faq-item__icon svg { width: 100%; height: 100%; }
.tb .faq-item[open] .faq-item__icon { transform: rotate(180deg); }
.tb .faq-item__a { padding: 0 22px 20px; color: var(--text-soft); line-height: 1.7; }
.tb .faq-item__a p { margin: 0 0 12px; }
.tb .faq-item__a p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
/* Below 1024px the booking sidebar drops beneath the content (still styled, no longer sticky). */
@media (max-width: 1024px) {
  .tb.class-body { grid-template-columns: 1fr; row-gap: 52px; padding: 46px 0 72px; }
  .tb .class-body__main, .tb .class-body__aside { grid-column: auto; }
  .tb .class-body__aside { align-self: auto; }
  .tb .class-body__aside .class-price { position: static; }
}
@media (max-width: 900px) {
  .tb .class-hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .tb .instructor-card { grid-template-columns: 1fr; gap: 24px; max-width: 540px; padding: 28px; }
  .tb .instructor-card__media { max-width: 240px; }
}
@media (max-width: 680px) {
  .tb .class-hero { padding: 118px 0 56px; }
  .tb .class-hero__actions { gap: 14px; }
  .tb .learn-grid, .tb .sessions-grid { grid-template-columns: 1fr; }
  .tb.class-body .tgrid { grid-template-columns: 1fr; }
  .tb .class-venue__map iframe { height: 300px; }
  .tb .class-venue__info { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   STICKY MOBILE/TABLET BOOK BAR  (single-classes, <=1024px)
   A fixed bottom CTA that fills the gap where the desktop
   sticky price sidebar can't reach. Shown/hidden by tb.js via
   IntersectionObserver, between the hero and the real price
   card / footer. Rendered in wp_footer (see snippet 13). 0014.
   ============================================================ */
.tb-book-bar { display: none; }
@media (max-width: 1024px) {
  .tb-book-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 11px 18px calc(11px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 252, 250, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(90, 20, 20, .10);
    box-shadow: 0 -10px 34px rgba(90, 20, 20, .13);
    transform: translateY(125%); opacity: 0;
    transition: transform .42s var(--ease), opacity .3s var(--ease);
  }
  .tb-book-bar.is-visible { transform: none; opacity: 1; }
  .tb-book-bar__price { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .tb-book-bar__amount {
    font-family: var(--serif); font-size: 23px; font-weight: 600;
    color: var(--maroon); line-height: 1.1; letter-spacing: -.01em;
  }
  .tb-book-bar__price small {
    font-family: var(--sans); font-size: 12px; font-weight: 500;
    color: var(--text-soft); line-height: 1.2; letter-spacing: .2px;
  }
  .tb-book-bar__btn {
    flex: 0 0 auto;
    font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: .5px;
    color: #fff; background: var(--red);
    border: 2px solid var(--red); border-radius: 999px;
    padding: 12px 26px; line-height: 1; white-space: nowrap;
    transition: background .3s var(--ease), transform .3s var(--ease);
  }
  .tb-book-bar:active .tb-book-bar__btn { background: var(--red-dark); border-color: var(--red-dark); }
}
@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .tb-book-bar { transition: none; }
}

/* The book bar is an <a> that itself carries class="tb", so the .tb a reset
   (a descendant combinator) never reaches it -> kill the default UA underline. */
.tb-book-bar { text-decoration: none; }

/* =========================================================================
   CLASSES ARCHIVE  (block: acf/tb-classes-archive)  — /classes/
   Blush hero + a 2-col grid of Regular class cards. Scoped under .tb.
   ========================================================================= */

/* ---- Hero band: blush gradient, rounded bottom, centred flourish + title ---- */
.tb .classes-hero{
  padding: 168px 24px 92px;
  text-align: center;
  background:
    radial-gradient(140% 120% at 50% 100%, rgba(233,178,170,.45) 0%, rgba(253,238,231,0) 55%),
    linear-gradient(180deg, #fdeee8 0%, #f6dbd2 100%);
  border-radius: 0 0 40px 40px;
}
.tb .classes-hero__inner{
  max-width: 760px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.tb .classes-hero .flourish{ color: var(--red); }
.tb .classes-hero__title{
  font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.18;
  color: var(--maroon); margin: 0;
}

/* ---- Grid ---- */
.tb .classes-list{ background: var(--page); padding: 72px 0 96px; }
.tb .classes-grid{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.tb .classes-empty{ text-align: center; color: var(--text-soft); font-size: 1.1rem; }

/* ---- Card ---- */
.tb .class-card{
  background: var(--card);
  border: 1px solid var(--cream);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.tb .class-card__head{
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 16px;
}
.tb .class-card__title{ font-size: 1.6rem; line-height: 1.22; color: var(--maroon); margin: 0; }
.tb .class-card__price{
  flex: 0 0 auto; align-self: center;
  font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: .3px;
  color: #fff; background: var(--red);
  border-radius: 999px; padding: 8px 18px; line-height: 1; white-space: nowrap;
}
.tb .class-card__desc{ color: var(--text-soft); font-size: 1.02rem; line-height: 1.55; margin: 0 0 26px; }

/* ---- 2x2 meta grid ---- */
.tb .class-card__meta{
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px 28px; margin-bottom: 30px;
}
.tb .class-card__mi{ display: flex; align-items: flex-start; gap: 12px; }
.tb .class-card__ico{ flex: 0 0 auto; width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.tb .class-card__ico svg{ width: 100%; height: 100%; display: block; }
.tb .class-card__mt{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb .class-card__k{ font-weight: 600; color: var(--text); font-size: 1rem; line-height: 1.3; }
.tb .class-card__v{ color: var(--text-soft); font-size: .9rem; line-height: 1.35; }

/* ---- Actions ---- */
.tb .class-card__actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; }
.tb .btn--ghost{ background: transparent; color: var(--red); border-color: var(--red); }
.tb .btn--ghost:hover{ background: var(--red); color: #fff; border-color: var(--red); }
.tb .class-card__book.is-closed{ cursor: default; }
.tb .class-card__book.is-closed:hover{ transform: none; box-shadow: none; background: var(--red); border-color: var(--red); }

/* ---- Responsive ---- */
@media (max-width: 900px){
  .tb .classes-hero{ padding: 150px 22px 72px; }
  .tb .classes-list{ padding: 56px 0 72px; }
  .tb .classes-grid{ grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px){
  .tb .classes-hero{ padding: 122px 18px 60px; }
  .tb .classes-hero__title{ font-size: 34px; }
  .tb .class-card{ padding: 28px 22px; }
  .tb .class-card__title{ font-size: 1.4rem; }
  .tb .class-card__head{ gap: 14px; }
  .tb .class-card__meta{ grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   SUMMER CLASSES / FESTIVALITO PAGE  (page 2026)
   Blocks: acf/tb-festival-hero, acf/tb-festival-details
   Reuses: .container .section .section-head .flourish .btn + tokens
   ============================================================ */

/* ---- Hero (blush band, rounded bottom, flush under fixed header) ---- */
.tb .festival-hero{
	position:relative;
	text-align:center;
	padding:150px 0 66px;
	border-radius:0 0 44px 44px;
	overflow:hidden;
	background:
		linear-gradient(180deg, rgba(244,205,199,.55) 0%, rgba(244,205,199,0) 55%),
		radial-gradient(120% 90% at 50% -10%, rgba(228,170,168,.5) 0%, rgba(255,245,239,0) 60%),
		var(--tb-festivalhero-bg, none) center / cover no-repeat,
		linear-gradient(180deg,#fbe9e3 0%,#f6dcd6 100%);
}
.tb .festival-hero__inner{ position:relative; z-index:1; }
.tb .festival-hero__title{
	font-family:var(--serif); color:var(--maroon);
	font-size:clamp(2.1rem,5.2vw,3.5rem); line-height:1.12; margin:0 auto;
}
.tb .festival-hero__sub{
	font-family:var(--sans); color:var(--text); font-weight:500;
	font-size:clamp(1rem,1.4vw,1.15rem); line-height:1.6;
	max-width:640px; margin:18px auto 0;
}
.tb .festival-hero__sub p{ margin:0; }
.tb .festival-hero__cta{ margin-top:28px; }
.tb .festival-hero__prices{
	display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:26px;
}
.tb .price-pill{
	display:inline-flex; align-items:center; gap:9px;
	background:rgba(255,255,255,.62); border:1px solid rgba(161,13,16,.16);
	border-radius:999px; padding:9px 18px 9px 15px;
	font-family:var(--sans); font-size:.95rem; color:var(--text);
}
.tb .price-pill::before{
	content:""; width:10px; height:10px; border-radius:2px; background:var(--red); flex:0 0 auto;
}
.tb .price-pill strong{ font-family:var(--serif); color:var(--red); font-weight:600; }

/* ---- Venue + FAQ two-column row ---- */
.tb .festival-details__grid{
	display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;
}
.tb .festival-details .section-head{ display:block; text-align:left; margin-bottom:20px; }
.tb .festival-details .section-head .flourish{ display:block; width:70px; height:auto; color:var(--red); margin:0 0 6px; }
.tb .festival-details .section-head h2{
	font-family:var(--serif); color:var(--maroon);
	font-size:clamp(1.6rem,3vw,2.1rem); line-height:1.15; margin:0;
}

/* venue */
.tb .venue__map{
	border-radius:18px; overflow:hidden; background:var(--cream);
	aspect-ratio:16/10; box-shadow:0 10px 30px rgba(50,26,26,.08);
}
.tb .venue__map iframe{ width:100%; height:100%; border:0; display:block; }
.tb .venue__info{
	display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:16px;
}
.tb .venue__text{ display:flex; flex-direction:column; gap:3px; }
.tb .venue__text strong{ font-family:var(--serif); color:var(--maroon); font-size:1.05rem; }
.tb .venue__text span{ font-family:var(--sans); color:var(--text-soft); font-size:.9rem; }
.tb .venue__maps{
	display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
	font-family:var(--sans); font-weight:600; color:var(--red); text-decoration:none;
}
.tb .venue__maps svg{ width:14px; height:14px; }
.tb .venue__maps:hover{ text-decoration:underline; }

/* faq accordion (native <details>) */
.tb .faq__sub{ font-family:var(--sans); color:var(--text-soft); margin:0 0 18px; max-width:46ch; }
.tb .faq__list{ display:flex; flex-direction:column; gap:12px; }
.tb .faq__item{
	background:var(--card); border:1px solid rgba(50,26,26,.08); border-radius:14px; padding:0 18px;
}
.tb .faq__q{
	list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between;
	gap:14px; padding:16px 0; font-family:var(--serif); color:var(--maroon); font-size:1.02rem;
}
.tb .faq__q::-webkit-details-marker{ display:none; }
.tb .faq__chev{ flex:0 0 auto; color:var(--red); transition:transform .25s ease; display:inline-flex; }
.tb .faq__chev svg{ width:18px; height:18px; }
.tb .faq__item[open] .faq__chev{ transform:rotate(180deg); }
.tb .faq__a{ padding:0 0 18px; font-family:var(--sans); color:var(--text); line-height:1.6; }
.tb .faq__a p{ margin:0 0 .6em; }
.tb .faq__a p:last-child{ margin:0; }
.tb .faq__q:focus:not(:focus-visible){ outline:none; }
.tb .faq__q:focus-visible{ outline:2px solid var(--red); outline-offset:3px; border-radius:8px; }

/* ---- responsive ---- */
@media (max-width:900px){
	.tb .festival-details__grid{ grid-template-columns:1fr; gap:44px; }
	.tb .festival-hero{ padding:130px 0 52px; border-radius:0 0 32px 32px; }
}
@media (max-width:560px){
	.tb .venue__info{ flex-direction:column; align-items:flex-start; gap:10px; }
}


/* =========================================================================
   HOME: SUMMER TEASER FADE + ARGENTINE TANGO CLASSES section
   (blocks: acf/tb-summer-classes [max_cards teaser], acf/tb-home-classes-grid)
   ========================================================================= */

/* Summer teaser (home): show N cards and fade the grid out at the bottom so it
   reads as a peek into the full schedule; the CTA below is a view-all link. */
.tb .schedule--teaser .schedule__grid{
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 60%, rgba(0,0,0,0) 100%);
}
.tb .schedule--teaser .schedule__cta{ margin-top: 10px; }

/* Home "Argentine Tango Classes" section: reuses .classes-grid / .class-card
   (identical cards to /classes/). Continue the warm band seamlessly from the
   summer section (#fff6f0) back to the page colour. */
.tb .home-classes{ background: linear-gradient(180deg, #fff6f0 0%, var(--page) 100%); }

/* Home summer->classes seam: remove the constrained-layout block-gap so the two blush sections meet flush (no page-white strip between them). */
.tb.alignfull:has(> .home-classes){ margin-top: 0; }

/* === CLASSES DROPDOWN polish (2026-07-11): size-to-content + gap === */
@media (min-width: 901px){
  .tb-header .wp-block-navigation__submenu-container{
    width: max-content;
    max-width: 340px;
    margin-top: 10px; /* gap between 'Classes' and the card */
  }
  .tb-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
    white-space: nowrap;
  }
}

/* === CLASSES DROPDOWN: mobile overlay = tap-to-expand accordion (2026-07-11) === */
@media (max-width: 900px){
  /* collapsed by default: hide the submenu when its toggle is not expanded */
  .tb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="false"] ~ .wp-block-navigation__submenu-container{
    display: none;
  }
  /* when expanded, center the sub-items to match the rest of the overlay menu */
  .tb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container{
    align-items: center;
  }
  .tb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
    text-align: center;
    white-space: nowrap;
  }
}

/* Mobile overlay: visible tap-affordance chevron on the Classes toggle (2026-07-11) === */
@media (max-width: 900px){
  .tb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle::after{
    content: "";
    display: inline-block;
    width: .46em; height: .46em;
    margin-left: .55em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
  }
  .tb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle[aria-expanded="true"]::after{
    transform: translateY(1px) rotate(225deg);
  }
}

/* ============================================================ EVENTS PAGE
   Page 297 (/events/) — block acf/tb-events (snippet 17).
   Hero reuses .contact-hero (0013). Only the calendar section is new here. */

/* trim the hero's bottom a touch and pull the calendar up under it */
.tb .events-hero{ padding-bottom: 64px; }
.tb .events-cal{ padding-top: 56px; }

.tb .events-cal__card{
  max-width: 940px;
  margin-inline: auto;
  background: var(--card);
  border: 1.5px solid #e4d4cb;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 22px 50px -30px rgba(27, 0, 0, .35);
}

.tb .events-cal__frame{
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
  border-radius: 16px;
  background: var(--page);
}
.tb .events-cal__frame--agenda{ display: none; }

@media (max-width: 900px){
  .tb .events-cal{ padding-top: 44px; }
  .tb .events-cal__card{ padding: 10px; }
}

@media (max-width: 600px){
  .tb .events-cal__frame--month{ display: none; }
  .tb .events-cal__frame--agenda{ display: block; height: 560px; }
}

/* ============================================================
   PRIVATE LESSONS  (classes archive, below the course grid)
   Block: acf/tb-classes-archive -> tb_arc_private_section()
   Reuses: .container .section .section-head .flourish .btn
           .class-card__ico + tokens
   ============================================================ */

.tb .private-lessons{
  padding: 76px 0 96px;
}
.tb .private-lessons .section-head{ margin-bottom: 22px; }

/* ---- The single lead paragraph ---- */
.tb .private-lessons__intro{
  max-width: 620px; margin: 0 auto 44px;
  text-align: center; color: var(--text-soft);
  font-size: 1.125rem; line-height: 1.6;
}
.tb .private-lessons__intro p{ margin: 0 0 12px; }
.tb .private-lessons__intro p:last-child{ margin-bottom: 0; }

/* ---- Footnote BELOW the packages: answers "so how do I book?".
       Quieter than the lead so the stack under the heading stays a single
       block of body text. ---- */
.tb .private-lessons__foot{
  list-style: none; margin: 38px auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  max-width: 760px;
}
.tb .private-lessons__fi{
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--text-soft); font-size: .9rem; line-height: 1.45;
}
.tb .private-lessons__fi .class-card__ico{ width: 19px; height: 19px; margin-top: 1px; }

/* ---- Package grid: 3 across, then a single centred column.
       Deliberately NOT auto-fit -- at tablet widths that leaves the third
       package orphaned on its own row. ---- */
.tb .private-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 940px; margin-inline: auto;
}
@media (max-width: 860px){
  .tb .private-grid{
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
    gap: 22px;
  }
}

/* ---- One package ---- */
.tb .pkg{
  position: relative;
  background: var(--card);
  border: 1px solid var(--cream);
  border-radius: 24px;
  padding: 34px 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tb .pkg:hover{ transform: translateY(-4px); box-shadow: 0 16px 34px rgba(161,13,16,.12); }

/* Flagged package (has a badge) gets the accent border */
.tb .pkg--flag{ border-color: var(--red); }

.tb .pkg__badge{
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-family: var(--serif); font-size: .82rem; letter-spacing: .4px;
  border-radius: 999px; padding: 6px 16px; line-height: 1; white-space: nowrap;
}
.tb .pkg__label{
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.2;
  color: var(--maroon); margin: 0 0 10px;
}
.tb .pkg__price{
  font-family: var(--serif); font-weight: 500;
  font-size: 2.6rem; line-height: 1; color: var(--red);
  margin: 0 0 22px;
}
.tb .pkg__cur{ font-size: 1.15rem; vertical-align: super; margin-right: 2px; }

.tb .pkg__btn{ width: 100%; margin-top: auto; }
.tb .pkg__btn.is-closed{ cursor: default; opacity: .55; }
.tb .pkg__btn.is-closed:hover{
  transform: none; box-shadow: none;
  background: var(--red); border-color: var(--red);
}

/* ---- Responsive ---- */
@media (max-width: 900px){
  .tb .private-lessons{ padding: 58px 0 72px; }
  .tb .private-lessons__intro{ margin-bottom: 34px; }
  .tb .private-lessons__foot{ margin-top: 30px; gap: 10px 20px; }
}
@media (max-width: 560px){
  .tb .private-lessons{ padding: 48px 0 60px; }
  .tb .private-lessons__foot{ flex-direction: column; align-items: flex-start; text-align: left; }
  .tb .private-grid{ gap: 30px; }
  .tb .pkg{ padding: 30px 22px 26px; }
  .tb .pkg__price{ font-size: 2.3rem; }
}

/* ============================================================
   BUNDLE OFFER
   1. .bundle-card         — classes archive, between the course
      grid and Private Lessons.
      Block: acf/tb-classes-archive -> tb_arc_bundle_section()
   2. .class-price__bundle — upsell strip inside the price card
      on a class single.
      Block: acf/tb-class-booking -> tb_cls_booking()
   Reuses: .container .section .btn + tokens.
   The card is horizontal (copy left, price right) on purpose:
   it must not read as a fourth class card in the grid above it.
   ============================================================ */

.tb .bundle-offer{ padding: 0 0 10px; }

.tb .bundle-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--cream);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ---- Left: what you get ---- */
.tb .bundle-card__body{ padding: 34px 32px 32px; }

.tb .bundle-card__eyebrow{
  margin: 0 0 8px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--red);
}
.tb .bundle-card__title{
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.8rem; line-height: 1.2;
  color: var(--maroon);
}
.tb .bundle-card__sub{
  margin: 0 0 22px;
  color: var(--text-soft); font-size: 1.02rem; line-height: 1.55;
}

.tb .bundle-card__incl{ list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tb .bundle-card__ii{ display: flex; align-items: flex-start; gap: 10px; }
.tb .bundle-card__ico{
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; color: var(--red);
}
.tb .bundle-card__ico svg{ width: 100%; height: 100%; display: block; }
.tb .bundle-card__it{ display: flex; flex-direction: column; gap: 1px; }
.tb .bundle-card__it a{
  color: var(--maroon); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .18s ease;
}
.tb .bundle-card__it a:hover{ border-bottom-color: var(--red); }
.tb .bundle-card__it small{ color: var(--text-soft); font-size: .86rem; }

/* ---- Right: the price panel. Tinted so the eye lands on the
       number, not on the copy it just read. ---- */
.tb .bundle-card__buy{
  padding: 34px 28px 30px;
  background: var(--cream-2);
  border-left: 1px solid var(--cream);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tb .bundle-card__price{
  margin: 0;
  font-family: var(--serif); font-size: 3rem; line-height: 1;
  color: var(--maroon);
}
.tb .bundle-card__cur{ font-size: .5em; vertical-align: .55em; margin-right: 2px; }

.tb .bundle-card__was{
  margin: 10px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  font-size: .95rem;
}
.tb .bundle-card__was s{ color: var(--text-soft); }
.tb .bundle-card__save{
  background: var(--gold); color: var(--maroon);
  font-weight: 700; font-size: .82rem;
  padding: 3px 10px; border-radius: 999px;
}
.tb .bundle-card__plabel{
  margin: 10px 0 0; color: var(--text-soft); font-size: .88rem;
}
.tb .bundle-card__btn{ margin-top: 20px; width: 100%; }
.tb .bundle-card__note{
  margin: 14px 0 0; color: var(--text-soft); font-size: .8rem; line-height: 1.45;
}

@media (max-width: 860px){
  .tb .bundle-card{ grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .tb .bundle-card__body{ padding: 30px 24px 26px; }
  .tb .bundle-card__buy{
    border-left: 0; border-top: 1px solid var(--cream);
    padding: 28px 24px 26px;
  }
  .tb .bundle-card__title{ font-size: 1.6rem; }
  .tb .bundle-card__price{ font-size: 2.6rem; }
}

/* ---- Upsell strip in the single-class price card ----
   Separated by a rule rather than a box: it is a secondary offer
   and must not compete with the primary Book Online button. ---- */
.tb .class-price__bundle{
  margin-top: 20px; padding-top: 18px;
  border-top: 1px dashed var(--cream);
  text-align: left;
}
.tb .class-price__bundle-k{
  margin: 0 0 4px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--red);
}
.tb .class-price__bundle-v{
  margin: 0 0 10px;
  color: var(--text-soft); font-size: .92rem; line-height: 1.5;
}
.tb .class-price__bundle-v strong{ color: var(--maroon); }
.tb .class-price__bundle-btn{
  display: inline-block;
  color: var(--red); font-weight: 600; font-size: .92rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity .18s ease;
}
.tb .class-price__bundle-btn:hover{ opacity: .72; }