/* Bámbula Studio minimal theme */
/* Color palette */
:root{
  --bg:#ffffff;
  --fg:#0b0b0b;
  --muted:#666;
  --mustard:#D9A324; /* mustard yellow */
  --accent:#000000;
  --card:#f7f7f7;
  --ring: rgba(217,163,36,0.45);
  --success:#1a7f37;      /* green for savings */
  --success-bg:#eaf6ec;   /* subtle green background */
  --header-offset: 72px;  /* anchor offset for sticky header */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg)}
/* Ensure in-page anchor jumps account for sticky header height */
html{scroll-padding-top: var(--header-offset)}
body{font-family:Montserrat,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,'Helvetica Neue',Arial,sans-serif;line-height:1.6}

.container{max-width:1100px;margin:0 auto;padding:0 20px}
.grid{display:grid;gap:2rem}
@media(min-width:900px){ .grid{grid-template-columns:1.2fr 1fr} }

/* --- Header --- */
.site-header{position:sticky;top:0;z-index: 10;background:rgba(255,255,255,0.92);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid #eee;z-index:10000;isolation:isolate}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding:2px 20px}
.brand{display:flex;align-items:center;gap:.75rem;font-weight:800}
.logo{height:84px;width:auto}
.wordmark{letter-spacing:.3px}
/* .wordmark { font-size: 1.25rem; font-weight: 800; } */
.wordmark { font-size: clamp(1rem, 2.4vw, 1.5rem); }

.nav{display:flex;gap:1rem;align-items:center}
.nav a{color:var(--fg);text-decoration:none;font-weight:600}
.nav a:hover{color:var(--mustard)}
.menu{display:none;border:1px solid #ddd;background:#fff;border-radius:20px;padding:.4rem .6rem;cursor:pointer;margin-right:.5rem;font-size:0;line-height:1}
.menu::before{content:"\2630"; /* hamburger */ font-size:1.25rem;}
.menu:hover{border-color:var(--mustard)}
.btn{display:inline-block;padding:.75rem 1rem;border:2px solid var(--mustard);background:var(--mustard);color:#000;text-decoration:none;font-weight:800;border-radius:8px;transition:transform .05s ease, box-shadow .2s ease}
.btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px -6px var(--ring)}
.btn--ghost{background:transparent;color:var(--fg)}
.btn--small{padding:.5rem .75rem;font-size:.9rem}

.lang{border:1px solid #ddd;background:#fff;border-radius:20px;padding:.4rem .6rem;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}
.lang:hover{border-color:var(--mustard)}

/* Blend white-backed logos into the header background */
.logo--blend{ mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark){
  /* In dark mode, avoid over-darkening the logo */
  .logo--blend{ mix-blend-mode: normal; }
}

/* Ensure third‑party iframes (e.g., PayPal buttons) scroll under the sticky header */
.book-page #paypalButtons{ position: relative; z-index: 1; }

/* --- Hero --- */
.hero{padding:72px 0 40px;border-bottom:1px solid #eee}
.hero .container{display:grid;grid-template-columns:1fr;gap:1.25rem;align-items:center}
.hero__text h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1;margin:.25rem 0}
.lead{color:#333;max-width:60ch}
.hero__art{position:relative;min-height:240px}
.hero__art .circle{position:absolute;right:10%;top:10%;width:220px;height:220px;border-radius:50%;background:var(--mustard);filter:contrast(110%) saturate(120%);opacity:.9}
.hero__art .drum{position:absolute;right:18%;top:18%;width:140px;height:140px;border-radius:14px;border:8px solid #000;background:#caa66b;transform:rotate(8deg)}

/* Hero art: image mode */
.hero__art--image{min-height:280px}
.hero__art--image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:14px}
/* Option: dim image slightly so text reads well */
.hero__art--image::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg, rgba(255,255,255,0.0), rgba(255,255,255,0.0));border-radius:14px}

/* Image at 50% size, centered */
.hero__art--image.hero__art--50{min-height:280px;display:grid;place-items:center}
.hero__art--image.hero__art--50 img{position:static;width:50%;height:auto;object-fit:contain;border-radius:12px}
/* Hide shape overlays when testing image-only at 50% */
.hero__art--image.hero__art--50 .circle,
.hero__art--image.hero__art--50 .drum{display:none}

/* Size just the PNG (keep hero art layout) */
.hero__art--image img.art-50{position:static;width:50%;height:auto;object-fit:contain;display:block;margin:0 auto;border-radius:12px}
/* Presets for quick A/B sizing */
.hero__art--image img.art-40{position:static;width:40%;height:auto;object-fit:contain;display:block;margin:0 auto;border-radius:12px}
.hero__art--image img.art-60{position:static;width:60%;height:auto;object-fit:contain;display:block;margin:0 auto;border-radius:12px}

/* CSS variable-based sizing for the PNG only */
.hero__art--image img.art{
  position: static;
  width: var(--art-size, 50%);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

/* --- Sections --- */
.section{padding:64px 0}
.section--alt{background:var(--card)}

h2{font-size:clamp(1.4rem,2.6vw,2rem);margin:0 0 12px 0}
h3{margin:0 0 8px 0}

/* Card */
.card{background:#fff;border:1px solid #eee;border-radius:12px;padding:20px;box-shadow:0 10px 26px -18px rgba(0,0,0,.25)}

/* Pricing */
.pricing{display:grid;gap:1rem;margin-top:1rem}
@media(min-width:900px){ .pricing{grid-template-columns:repeat(3, 1fr)}}
.price-card{background:#fff;border:1px solid #eee;border-radius:14px;padding:20px;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:10px}
.price{font-weight:800;font-size:1.6rem;margin:.25rem 0}
/* Optional: tweak note style inside cards */
.price-card .note{margin-top:.25rem}
/* Muted, compact note style under the button */
.price-card .note{
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid #eee;
}

/* Savings pill when moved into the note area */
.price-card .note .deal-pill{
  color: var(--success);
  background: var(--success-bg);
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 999px;
  display: inline-block;
}

/* Neutral info pill for one-time payment */
.price-card .note .info-pill{
  color: #333;
  background: #eee;
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 999px;
  display: inline-block;
}

.price-card .note .note-line{ margin-top: .35rem; }

/* Paused state microcopy under disabled buttons */
.price-card .note .disabled-msg{
  display: block;
  margin-top: .35rem;   /* match other note spacing */
  font-size: .9rem;     /* keep it compact */
  color: var(--muted);  /* subtle tone */
  line-height: 1.4;
}
.price-card .note .disabled-msg a{
  color: inherit;                 /* blend with text */
  text-decoration: underline;     /* clear affordance */
  text-underline-offset: 2px;
}
.price-card .note .disabled-msg a:hover{
  color: var(--mustard);          /* brand hover */
}

/* Ensure a tiny gap between button and note when disabled */
.price-card:has(.btn.is-disabled) .note{ margin-top: .5rem; }

/* Payment options layout on book.html */
.pay-grid{ display: grid; gap: 12px; grid-template-columns: 1fr; }
@media(min-width:700px){ .pay-grid:not(.pay-grid--single){ grid-template-columns: 1fr 1fr; } }

/* Hide initial Pay card immediately in inquiry mode to avoid flicker */
body[data-flow="inquiry"] #payCard{ display:none; }

/* --- Book page compaction --- */
.book-page .section{ padding: 40px 0; }
.book-page .grid{ gap: 1rem; }
.book-page .card{ padding: 16px; }
.book-page h1{ margin: 0 0 8px 0; }
.book-page h2{ margin: 0 0 8px 0; font-size: 1.2rem; }
.book-page h3{ margin: 0 0 6px 0; font-size: 1rem; }
.book-page .note{ margin-top: .35rem; }
.book-page .form{ gap: 10px; padding: 12px; }
.book-page .form input, .book-page .form textarea{ padding: .6rem; }
.book-page .form input.invalid{ border-color: #d33; outline: 2px solid rgba(211,51,51,.15); }
.book-page .btn.btn--small{ padding: .45rem .75rem; }
.book-page .pay-grid{ gap: 10px; }
.book-page #schedulerEmbed iframe{ height: 560px !important; }
@media(max-width:700px){
  .book-page #schedulerEmbed iframe{ height: 500px !important; }
}

/* Receipt styling (book.html) */
.book-page #payNowMount{ display:flex; justify-content:center; }
.book-page #payNowMount .receipt{ 
  background:#fff; border:1px solid #eee; border-radius:12px; padding:16px; 
  box-shadow:0 10px 26px -18px rgba(0,0,0,.25); max-width:560px; width:100%;
}
.book-page .receipt-title{ font-weight:800; margin:0 0 6px 0; }
.book-page .receipt-meta{ color: var(--muted); font-size:.95rem; margin-top:6px; }

/* Level switch (tabs) */
.level-switch, .plan-switch{ display:inline-flex; gap:0; border:1px solid #ddd; background:#fff; border-radius:999px; padding:4px; margin:.25rem 0 .5rem; }
.category-switch{ display:inline-flex; gap:0; border:1px solid #ddd; background:#fff; border-radius:999px; padding:4px; margin:.25rem 0 .75rem; }
.level-switch button, .plan-switch button, .category-switch button{
  border:0; background:transparent; padding:.5rem .9rem; border-radius:999px; font-weight:700; cursor:pointer; color:var(--fg);
}
.level-switch button[aria-selected="true"], .plan-switch button[aria-selected="true"], .category-switch button[aria-selected="true"]{ background:var(--mustard); color:#000; }
.level-switch button:focus, .plan-switch button:focus, .category-switch button:focus{ outline:2px solid var(--ring); }

/* Show plan switch only on mobile */
.plan-switch--mobile{ display:none; }
@media(max-width:900px){
  .plan-switch--mobile{ display:inline-flex; }
}

/* On mobile, show only the selected plan card */
/* @media(max-width:900px){
  #sharedPricing [data-card]{ display:none; }
  #sharedPricing[data-plan="single"] [data-card="single"]{ display:grid; }
  #sharedPricing[data-plan="monthly"] [data-card="monthly"]{ display:grid; }
  #sharedPricing[data-plan="full"] [data-card="full"]{ display:grid; }
} */

/* Show only the selected level's group */
#classes .class-group{ display:none; }
#classes[data-level="basic"] #group-basic{ display:block; }
#classes[data-level="intermediate"] #group-intermediate{ display:block; }
#classes[data-level="advanced"] #group-advanced{ display:block; }
/* Show Dance groups for matching level */
#classes[data-level="basic"] #dance-basic{ display:block; }
#classes[data-level="intermediate"] #dance-intermediate{ display:block; }
#classes[data-level="advanced"] #dance-advanced{ display:block; }

/* Category visibility */
#classes[data-category="percussion"] .category[data-cat="percussion"]{ display:block; }
#classes[data-category="percussion"] .category[data-cat="dance"]{ display:none; }
#classes[data-category="dance"] .category[data-cat="dance"]{ display:block; }
#classes[data-category="dance"] .category[data-cat="percussion"]{ display:none; }

/* Hide legacy per-level pricing grids; use shared grid */
#classes .class-group > .pricing{ display:none !important; }

/* Details/FAQ */
details{background:#fff;border:1px solid #eee;border-radius:10px;padding:14px;margin:10px 0}

/* Form */
.form{display:grid;gap:14px;background:#fff;border:1px solid #eee;border-radius:12px;padding:20px}
.form input,.form textarea{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:8px}
.form input:focus,.form textarea:focus{outline:2px solid var(--ring);border-color:var(--mustard)}
.form-note{color:var(--muted);font-size:.9rem}

/* Contact list */
.contact-list{list-style:none;padding:0;margin:0}
.contact-list li{margin:.25rem 0}

.note{margin-top:1rem;color:#333}

/* Captions: respect literal newlines and keep links styled like surrounding text */
figcaption, .caption { white-space: pre-line; }
figcaption a, .caption a { color: inherit; text-decoration: underline; }

/* Footer */
.site-footer{padding:28px 0;border-top:1px solid #eee;background:#fafafa}


/* --- About layout: tighter two-column grid --- */
#about .container.grid{
  /* text takes the rest; card uses its own width */
  grid-template-columns: 1fr auto;
  gap: 1.5rem;              /* was 2rem */
  align-items: start;       /* don't stretch the short column */
}

/* Owner row: place card (auto) first, text (1fr) second */
#about .about-owner{
  /* Fixed media column + flexible text column. Use minmax(0,1fr) to avoid Safari overflow. */
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
#about .about-owner .about-owner__media{ justify-self: start; max-width: 320px; width: 100%; }
#about .about-owner .about-owner__media img{ display:block; width:100%; height:auto; }
#about .about-owner .about-owner__text{ align-self: start; min-width: 0; }

#about .card{
  max-width: 320px;         /* keeps the box compact */
  width: 100%;
}

#about p{
  max-width: 60ch;          /* nice readable line length for the text */
}

#about ul{
  margin: 0.25rem 0 1rem 1.2rem;
  padding: 0;
  list-style-position: outside;
}
#about li{ margin-bottom: .6rem; line-height: 1.55; }

.subsection {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
  color: var(--fg);
}

/* Classes: tighten space between level switches and group titles */
#classes .group-head .subsection{ margin-top: .75rem; }

/* Two-column variant for smaller groups */
@media(min-width:900px){
  .hero .container{grid-template-columns:1.2fr 1fr;gap:2rem}
  .pricing--two { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile nav --- */
@media(max-width:899px){
  .menu{display:inline-block}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #eee;padding:10px 20px;flex-direction:column;gap:.5rem}
  .site-header.open .nav{display:flex}
  .nav a{padding:.5rem 0}
}

/* Small-screen hero tweaks */
@media(max-width:599px){
  .hero{padding:56px 0 28px}
  .hero__art .circle,.hero__art .drum{display:none}
}

/* --- Feature toggles --- */
/* Hide Workshops section and its nav link when opted out */
[data-hide-workshops="true"] #workshops{ display:none; }
[data-hide-workshops="true"] .nav a[href="#workshops"]{ display:none; }

/* About: stack on mobile so the card doesn't squeeze content */
@media(max-width:900px){
  #about .container.grid{ grid-template-columns: 1fr; }
  #about .card{ justify-self: center; }
}

/* About owner: on mobile, show text first, image second */
@media(max-width:900px){
  .about-owner__text{ order: 1; }
  .about-owner__media{ order: 2; }
}

/* Sticky group headers on mobile: keep the description visible while pricing scrolls */
@media(max-width:900px){
  .class-group{ position: relative; }
  /* Keep the description fixed and fully opaque so content underneath isn't visible */
  .class-group .group-head{
    position: sticky;
    top: calc(var(--header-offset) + 8px);
    z-index: 3;
    padding: 6px 0;
    box-shadow: 0 8px 14px -12px rgba(0,0,0,.35);
  }
  /* Solid backgrounds depending on section tone */
  .section--alt .class-group .group-head{ background: var(--card); }
  .section:not(.section--alt) .class-group .group-head{ background: var(--bg); }
  .class-group .pricing{ margin-top: .5rem; }
}

/* Title + info icon inline; syllabus sits below */
.class-group .group-head{
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap; /* allows the UL to move to the next line */
}
.class-group .group-head .subsection{
  margin: .75rem 0 .5rem; /* tighten spacing so the icon doesn't fall */
}
/* Ensure the level bullet list (when visible on desktop) flows onto the next line */
.class-group .group-head > ul{
  flex-basis: 100%;
  margin-top: .25rem;
}
/* Keep the icon compact so it doesn't push to a new line */
.level-info-btn{ line-height: 1; }

/* Desktop: hide the level info popover trigger (bullets are shown inline) */
@media (min-width: 901px){
  .level-info-btn{ display: none !important; }
}

/* Mobile type & header tweaks */
@media(max-width:600px){
  .logo{height:48px}
  .wordmark{font-size:clamp(1rem, 5vw, 1.25rem)}
  .lead{font-size:1rem; line-height:1.6}
  #classes ul li{line-height:1.6}
}

.classes-head{ display:flex; align-items:center; justify-content:flex-start; gap:.5rem; flex-wrap:wrap; }
.classes-head h2{ margin:0; }
.classes-head .category-switch{ margin:0 0 0 .5rem; }


/* Sticky selectors bar: stays under header while browsing classes */
.selectors-bar{
  position: sticky;
  top: calc(var(--header-offset) + 6px);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  background: var(--bg);
}
.section--alt .selectors-bar{ background: var(--card); }
.selectors-bar .category-switch, .selectors-bar .level-switch{ margin:0; }

/* Adjust sticky group heads to sit below selectors bar on mobile */
@media(max-width:900px){
  #classes .class-group .group-head{ top: calc(var(--header-offset) + 56px); }
}

/* --- Disabled booking buttons (kill-switch) ------------------------------ */
.price-card .btn.is-disabled{
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none; /* double safety */
  filter: grayscale(.15);
  box-shadow: none !important;
  transform: none !important; /* cancel any hover bump */
}
/* prevent hover/active recolor */
.price-card .btn.is-disabled:hover,
.price-card .btn.is-disabled:active,
.price-card .btn.is-disabled:focus{
  background: inherit;
}

/* small pill under disabled buttons */
.price-card .note .disabled-pill{
  display:inline-block;
  font-size:12px;
  line-height:1;
  padding:6px 10px;
  border-radius:999px;
  background:#eee;
  color:#444;
  border:1px solid #ddd;
  letter-spacing:.2px;
  vertical-align:middle;
  margin-right:.25rem;
}
@media (prefers-color-scheme: dark){
  .price-card .note .disabled-pill{
    background:#2b2b2b;
    border-color:#3a3a3a;
    color:#bbb;
  }
}

/* Optional: subtle corner ribbon on cards with a disabled button */
.price-card:has(.btn.is-disabled)::after{
  content:"Paused";
  position:absolute;
  top:10px;
  right:-28px;
  transform:rotate(45deg);
  background:#999;
  color:#fff;
  font-size:11px;
  padding:4px 36px;
  letter-spacing:.5px;
  opacity:.85;
  pointer-events:none;
}

/* --- Mobile pricing UX: sticky selectors + horizontal scroll-snap --- */
@media (max-width: 900px){
  /* Keep the plan/level/category selectors visible while scrolling */
  .selectors-bar{
    position: sticky; top: 0; z-index: 20;
    background: var(--bg); border-bottom: 1px solid rgba(0,0,0,.06);
  }

  /* Swipeable pricing rows; one (almost) per view */
  .pricing{
    display: grid;
    grid-auto-flow: column;
    /* Each card fills the container’s content box (same visual width as FAQ banners) */
    grid-auto-columns: 100%;
    overflow-x: auto;
    gap: 12px;
    /* Align to container edges: no extra negative margins or custom padding */
    margin: 0;
    padding: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .pricing::-webkit-scrollbar{ display: none; }
  .price-card{ scroll-snap-align: start; }

  /* Avoid equal-height forcing on small screens */
  .price-card > .note{ min-height: auto !important; }
}

/* Popover header — universal (all viewports) */
.level-info header{
  display:flex; align-items:center; gap:8px; padding:12px 16px;
  position:sticky; top:0; z-index:1;
  background: var(--mustard); color:#000;
  border:0;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.level-info h3{ margin:0; font-size:16px; color:#000; }

/* --- Mobile popover (<dialog>) for level info --- */
@media (max-width: 900px){
  .level-info-btn{
    appearance:none; border:0; background:transparent;
    font:inherit; line-height:1; padding:6px; border-radius:999px; cursor:pointer;
  }
  .level-info-btn:focus-visible{ outline:2px solid rgba(0,0,0,.35); }

  dialog.level-info{
    border:0; border-radius:16px; padding:0;
    width:min(92vw, 560px); max-height:80vh;
    box-shadow:0 24px 60px rgba(0,0,0,.35);
  }
  dialog.level-info::backdrop{ background:rgba(0,0,0,.45); }
  .level-info header{ display:flex; align-items:center; gap:8px; padding:12px 16px; position:sticky; top:0; z-index:1; background: var(--mustard); color:#000; border: 0; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
  .level-info h3{ margin:0; font-size:16px; color:#000; }
  .level-info .close{
    margin-left:auto; appearance:none; border:2px solid #000; background:#000; color:#fff;
    padding:8px 10px; border-radius:10px; cursor:pointer;
  }
  .level-info .sheet{ padding:16px 16px 12px; }
  .level-info ul{ margin:12px 16px 16px; padding-left:20px; }
}

/* Ensure hidden elements don't occupy layout */
[hidden]{ display: none !important; }
[hidden]{ display: none !important; }

/* Hide in-page level syllabi on mobile; popover shows the content */
@media (max-width: 900px){
  /* Only hide the level description lists living inside class groups.
     We do NOT touch feature lists inside pricing cards. */
  .class-group .group-head > ul,
  .class-group .syllabus{
    display: none !important;
  }
}

/* === Mobile pricing cards: match FAQ banner width & gutters === */
@media (max-width: 900px){
  /* Turn the row into a full-bleed horizontal scroller,
     but keep 20px gutters so cards align with the FAQ banners. */
  .pricing{
    display: grid;
    grid-auto-flow: column;

    /* Each card = viewport (container) width minus 20px left + 20px right gutters */
    grid-auto-columns: calc(100% - 40px);

    /* Full-bleed scroller so gutters visually match the rest of the page */
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;

    overflow-x: auto;
    column-gap: 12px; /* horizontal spacing between cards */

    /* Smooth swipe with proper snapping */
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;   /* first card aligns to left gutter */
    scroll-padding-right: 20px;  /* last card aligns to right gutter */
    -webkit-overflow-scrolling: touch;
  }

  .pricing::-webkit-scrollbar{ display: none; }

  /* Snap each card to the left gutter cleanly */
  .price-card{ scroll-snap-align: start; }

  /* Avoid forced equal-height notes on mobile */
  .price-card > .note{ min-height: auto !important; }
}

/* === Mobile pricing: match FAQ banner width exactly === */
@media (max-width: 900px){
  /* Use flex instead of grid to avoid track/gap math and trailing whitespace */
  .pricing{
    display: flex;                 /* replaces grid on mobile */
    flex-flow: row nowrap;
    gap: 12px;                     /* same visual spacing between cards */
    overflow-x: auto;
    margin: 0;                     /* align with FAQ details */
    padding: 0;                    /* container already has 20px side padding */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .pricing::-webkit-scrollbar{ display: none; }

  /* Each card is exactly the container content width (like FAQ banners) */
  .pricing > .price-card{
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  /* Prevent any forced equal-heights from desktop from affecting mobile */
  .price-card > .note{ min-height: auto !important; }
}

/* --- Mobile pricing: single, conflict-proof carousel fix --- */
@media (max-width: 900px){
  /* Make the row a horizontal flex scroller and neutralize earlier grid rules */
  .pricing{
    display: flex !important;
    flex-flow: row nowrap !important;
    gap: 12px !important;
    overflow-x: auto !important;
    margin: 0 !important;          /* line up with FAQ banners */
    padding: 0 !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Each card exactly fills the container content box */
  .pricing > .price-card{
    flex: 0 0 100% !important;
    scroll-snap-align: start !important;
  }

  /* Optional: perfect “kiss” on the right edge */
  .pricing::after{
    content: "";
    flex: 0 0 0;
  }

  /* Ensure notes aren’t equalized on mobile */
  .price-card > .note{ min-height: auto !important; }
}

/* tiny info button that appears inside price-card titles */
.card-info-btn{
  appearance:none; border:0; background:transparent; 
  font:inherit; line-height:1; cursor:pointer;
  margin-left:.35rem;
}

/* The little ℹ️ button that appears in each price-card title */
.price-card h3 {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.price-card .card-info-btn{
  font: inherit;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .8;
}
.price-card .card-info-btn:hover{ opacity: 1; }

/* Popover body spacing & list style */
dialog.level-info .sheet{
  padding: 12px 16px 16px;
}
dialog.level-info .sheet ul{
  margin: 0;
  padding-left: 1.1rem;  /* ensure bullets show even if your global ULs were tweaked */
}
dialog.level-info .sheet li{
  margin: .35rem 0;
}

.price-card .card-info-btn.card-info--text{
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: .85;
}
.price-card .card-info-btn.card-info--text:hover{ opacity: 1; }

.price-card .card-info-btn.card-info--text{
  display:inline-flex; align-items:center; gap:.35rem;
}
.price-card .card-info-btn.card-info--text svg{ display:block; }

/* Reuse pill style when the deal-pill is inside the title's button */
.price-card h3 .deal-pill{
  color: var(--success);
  background: var(--success-bg);
  font-weight: 700;
  padding: .15rem .6rem;
  border-radius: 999px;
  display: inline-block;
  line-height: 1.2;
}

/* Don't underline the pill when using the 'text' variant */
.price-card .card-info-btn.card-info--text .deal-pill{
  text-decoration: none;
}

/* 1) Make each card a positioning context */
.price-card{
  position: relative;  /* new: allows absolute child positioning */
}

/* 2) Reserve space on the right so the title never overlaps the pill */
.price-card h3{
  padding-right: 84px; /* ~pill width + gutter */
}

/* 3) Pin the info button in the top-right of the card */
.price-card .card-info-btn{
  position: absolute;
  top: 16px;
  right: 16px;
  margin-left: 0;      /* override previous auto-push */
  z-index: 2;          /* sit above title text */
}

/* Keep your desktop pill styling (when .card-info--text is on) */
.price-card .card-info-btn.card-info--text .deal-pill{
  text-decoration: none;
}

/* (Optional) Make the pill a touch target on mobile even with the ℹ️ icon */
@media (max-width: 900px){
  .price-card .card-info-btn{
    width: 36px; height: 36px;        /* comfortable target */
    display: grid; place-items: center;
    border-radius: 999px;
  }
}

/* (Optional) Slightly tighten the pill padding for title area */
.price-card h3 .deal-pill{
  padding: .12rem .5rem;  /* a bit smaller than note-area pill */
}

/* raise ribbon above corner UI */
.price-card:has(.btn.is-disabled)::after{
  z-index: 5;
}

/* Hide the top-right info trigger on paused cards */
.price-card:has(.btn.is-disabled) .card-info-btn{
  display: none;
}

/* textures design space */
/*
  How to use:
  1) For a repeating pattern (SVG/PNG), add to <body>:
       class="texture-host texture--pattern"
     and put your asset at assets/texture.svg (or change --texture-url).

  2) For a single full-bleed photo background, add to <body>:
       class="texture-host texture--photo"
     and put your image at assets/texture-photo.jpg (or change --photo-url).

  You can also apply these classes to a specific section instead of <body>.
*/

:root{
  /* Tweak globally if you like */
  --texture-opacity: .5;
  --texture-size: 200px 200px;           /* tile size for patterns */
  --texture-url: url("assets/bambula_patterns.png");
  --photo-url:   url("assets/barril_pretty.jpeg");
}

/* Base hook: any element that can host a texture layer */
.texture-host{ position: relative; }
.texture-host::before{
  content: "";
  position: fixed;          /* stays put while you scroll */
  inset: 0;
  pointer-events: none;     /* never blocks clicks */
  z-index: 0;               /* sits behind your content */
  opacity: var(--texture-opacity);
}

/* Mode: repeating pattern */
.texture--pattern::before{
  background:
    /* ultra‑subtle readability tint, adjust or remove */
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    var(--texture-url);
  background-repeat: repeat;
  background-size: var(--texture-size);
}

/* Mode: single photo */
.texture--photo::before{
  background:
    /* ultra‑subtle readability tint, adjust or remove */
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    var(--photo-url);
  background-repeat: no-repeat;
  background-size: cover;         /* fill the viewport */
  background-position: center;    /* keep subject centered */
  background-attachment: scroll;   /* tasteful parallax on desktop */
}

/* Mobile: avoid jank from fixed backgrounds */
@media (max-width: 900px){
  .texture--photo::before{ background-attachment: scroll; }
}

/* Legacy alias: keep existing class working (pattern mode) */
body.with-texture{ position: relative; }
body.with-texture::before{
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: var(--texture-opacity);
  background:
    linear-gradient(rgba(255,255,255,0.02), rgba(255,255,255,0.02)),
    var(--texture-url);
  background-repeat: repeat;
  background-size: var(--texture-size);
}

.card-info-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem; /* space under the title */
}

.card-info-btn .deal-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--mustard); /* your Bámbula mustard variable */
  color: #000;
}


/* contrast for text from image */
/* ABOUT: legibility scrim behind the left column text (no HTML changes) */
#about .container{ position: relative; }
#about .container > :first-child{
  position: relative; 
  z-index: 1;                  /* text above the scrim */
}

/* Soft white panel behind the text column */
#about .container > :first-child::before{
  content: "";
  position: absolute;
  inset: -10px -14px;          /* extends a bit around the text block */
  background: rgba(255,255,255,0.65); /* adjust 0.65–0.9 to taste */
  border-radius: 14px;
  box-shadow: 0 10px 26px -18px rgba(0,0,0,.35);
  z-index: -1;                 /* sits behind the text */
}

/* Mobile: tighten the margin so it fits nicely */
@media (max-width: 900px){
  #about .container > :first-child::before{
    inset: -8px -10px;
  }
}

/* Tiny heading shadow = extra clarity on busy spots (optional) */
#about h2{ text-shadow: 0 1px 0 rgba(255,255,255,.45); }

/* contrast for text from image */

/* === Reusable legibility scrim utility =================================== */
/* Add class="legibility-scrim" to any text block that sits on photos.       */
.legibility-scrim{ position: relative; z-index: 1; }
.legibility-scrim::before{
  content: "";
  position: absolute;
  inset: var(--scrim-inset, -10px -14px);
  background: var(--scrim-bg, rgba(255,255,255,0.65));
  border-radius: var(--scrim-radius, 16px);
  box-shadow: 0 10px 26px -18px rgba(0,0,0,.35);
  z-index: -1; /* sits behind the text */
}
@media (max-width: 900px){
  .legibility-scrim::before{ inset: var(--scrim-inset-mobile, -8px -10px); }
}
/* Optional darker variant for light-on-dark text blocks */
.legibility-scrim--dark{ --scrim-bg: rgba(0,0,0,.45); color: #fff; }


/* === Reusable legibility scrim utility =================================== */



/* Align the scrim’s visual top with the image */
#about .about-owner{
  align-items: start;           /* grid items start-aligned */
}
#about .about-owner .about-owner__media{ align-self: start; }
#about .about-owner .legibility-scrim{ align-self: start; }

/* Kill the heading’s top margin inside the scrim so the box sits flush */
#about .about-owner .legibility-scrim > *:first-child{
  margin-top: 0 !important;
}

/* Optional: tighten the subsection heading specifically in this block */
#about .about-owner .about-owner__text .subsection{
  margin-top: .25rem;           /* was larger globally */
}

/* (Nice-to-have) remove trailing gap at the bottom of the scrim */
#about .about-owner .legibility-scrim > *:last-child{
  margin-bottom: 0;
}
/* ======================================================================== */


/* // Ensure main content paints above the overlay */
.site-header{ position: sticky; top: 0; z-index: 10; }
main, .section, footer{ position: relative; z-index: 1; } /* ok */

