/* ==========================================================================
   NEXTBATCH — Reusable components
   ========================================================================== */

/* ---- Buttons ---------------------------------------------------------- */

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--nb-s2);
  min-height: 46px;
  padding: 0.75rem 1.375rem;
  border-radius: var(--nb-r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  border: 1px solid transparent;
  transition: background-color var(--nb-dur) var(--nb-ease),
              border-color var(--nb-dur) var(--nb-ease),
              box-shadow var(--nb-dur) var(--nb-ease),
              color var(--nb-dur) var(--nb-ease);
}

/* Primary — the booking action, in the brand green. */
.nb-btn--primary {
  background-color: var(--nb-teal);
  color: #FFFFFF;
}

.nb-btn--primary:hover { background-color: var(--nb-cyan); }

/* Kept as a name the markup already uses; the same green action. */
.nb-btn--teal {
  background-color: var(--nb-teal);
  color: #FFFFFF;
}

.nb-btn--teal:hover { background-color: var(--nb-cyan); }

/* Ghost — the quieter action beside it. */
.nb-btn--ghost {
  background-color: #FFFFFF;
  border-color: var(--nb-line-dark-strong);
  color: var(--nb-ink);
}

.nb-btn--ghost:hover {
  border-color: var(--nb-teal);
  color: var(--nb-teal-ink);
  background-color: var(--nb-teal-soft);
}

.nb-btn--sm {
  min-height: 40px;
  padding: 0.5rem 1rem;
  font-size: var(--nb-fs-sm);
}

.nb-btn--block { width: 100%; }

.nb-btn[aria-disabled="true"] { cursor: default; opacity: 0.6; }

.nb-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--nb-s3);
}

/* Over a photograph the button needs its own ground, not the page's. The hero
   redefines the ink token to white for its light-on-dark text, which would
   otherwise leave a white label on the ghost button's white fill. */
.nb-hero .nb-btn--ghost,
.nb-on-media .nb-btn--ghost {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
}

.nb-hero .nb-btn--ghost:hover,
.nb-on-media .nb-btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ---- Badges, pills, chips --------------------------------------------- */

.nb-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--nb-s2);
  padding: 0.3125rem 0.625rem;
  border-radius: var(--nb-r-pill);
  font-size: var(--nb-fs-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  border: 1px solid transparent;
  background-color: var(--nb-ink-soft-wash);
  color: var(--nb-ink-soft);
}

/* Soft-filled pills rather than outlines: on a white page a tint reads as a
   label, while a thin outline reads as an empty box. */
.nb-badge--gold {
  color: var(--nb-gold-ink);
  background-color: var(--nb-gold-soft);
}

.nb-badge--teal {
  color: var(--nb-teal-ink);
  background-color: var(--nb-teal-soft);
}

.nb-badge--success {
  color: var(--nb-success-ink);
  background-color: var(--nb-success-soft);
}

.nb-badge--warning {
  color: var(--nb-gold-ink);
  background-color: var(--nb-warning-soft);
}

/* Neutral marker used for sample / illustrative data labels */
.nb-badge--muted {
  color: var(--nb-muted);
  border-color: var(--nb-line-dark-strong);
  background-color: rgba(100, 116, 139, 0.10);
}

.nb-section--light .nb-badge--muted,
.nb-section--light-alt .nb-badge--muted {
  color: var(--nb-ink-muted);
  border-color: var(--nb-line-light-strong);
  background-color: rgba(100, 120, 137, 0.10);
}

.nb-section--light .nb-badge,
.nb-section--light-alt .nb-badge {
  border-color: var(--nb-line-light-strong);
  color: var(--nb-ink-muted);
}

.nb-section--light .nb-badge--teal,
.nb-section--light-alt .nb-badge--teal {
  color: var(--nb-teal-ink);
  border-color: rgba(21, 128, 61, 0.38);
  background-color: rgba(21, 128, 61, 0.10);
}

.nb-section--light .nb-badge--gold,
.nb-section--light-alt .nb-badge--gold {
  color: var(--nb-gold-ink);
  border-color: rgba(245, 158, 11, 0.60);
  background-color: rgba(245, 158, 11, 0.22);
}

.nb-section--light .nb-badge--success,
.nb-section--light-alt .nb-badge--success {
  color: var(--nb-success-ink);
  border-color: rgba(22, 163, 74, 0.45);
  background-color: rgba(22, 163, 74, 0.14);
}

.nb-section--light .nb-badge--warning,
.nb-section--light-alt .nb-badge--warning {
  color: var(--nb-gold-ink);
  border-color: rgba(245, 158, 11, 0.55);
  background-color: rgba(245, 158, 11, 0.18);
}

/* Placeholder marker — every unverified business value wears this
   (spec section 45). Deliberately visible so it cannot ship unnoticed. */
.nb-ph {
  display: inline;
  padding: 0.0625rem 0.4375rem;
  border-radius: 6px;
  /* scales with its context but never drops below a readable 12px */
  font-size: max(0.75rem, 0.85em);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-style: normal;
  color: var(--nb-warning);
  background-color: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.55);
}

.nb-section--light .nb-ph,
.nb-section--light-alt .nb-ph {
  color: var(--nb-gold-ink);
  background-color: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.75);
}

/* ---- Cards ------------------------------------------------------------ */

.nb-card {
  position: relative;
  padding: clamp(1.125rem, 2vw, 1.375rem);
  border-radius: var(--nb-r-lg);
  background-color: #FFFFFF;
  border: 1px solid var(--nb-line-dark);
  box-shadow: var(--nb-shadow-md);
  transition: transform var(--nb-dur) var(--nb-ease),
              border-color var(--nb-dur) var(--nb-ease),
              box-shadow var(--nb-dur) var(--nb-ease);
}

.nb-card--hover:hover {
  transform: translateY(-3px);
  border-color: var(--nb-teal-soft-strong);
  box-shadow: var(--nb-shadow-lg);
}

/* The light variant is the same card now that the page is light. Kept so the
   markup that asks for it keeps working. */
.nb-card--light {
  background-color: var(--nb-light-card);
  border-color: var(--nb-line-light);
}

.nb-card--light.nb-card--hover:hover {
  border-color: var(--nb-teal-soft-strong);
}

.nb-card__num {
  font-size: var(--nb-fs-label);
  font-weight: 800;
  letter-spacing: var(--nb-track-label);
  color: var(--nb-teal);
}

.nb-section--light .nb-card__num,
.nb-section--light-alt .nb-card__num { color: var(--nb-teal-ink); }

.nb-card__title { margin-top: var(--nb-s3); }

.nb-card__text {
  margin-top: var(--nb-s2);
  font-size: var(--nb-fs-sm);
  line-height: 1.62;
  color: var(--nb-muted);
}

.nb-section--light .nb-card__text,
.nb-section--light-alt .nb-card__text { color: var(--nb-ink-soft); }

/* ---- Disclaimer / note block ------------------------------------------ */

.nb-note {
  padding: var(--nb-s4) var(--nb-s5);
  border-radius: var(--nb-r-md);
  border: 1px solid var(--nb-line-dark);
  border-left: 3px solid var(--nb-gold);
  background-color: rgba(245, 158, 11, 0.06);
  font-size: var(--nb-fs-sm);
  line-height: 1.6;
  color: var(--nb-muted);
}

.nb-section--light .nb-note,
.nb-section--light-alt .nb-note {
  border-color: var(--nb-line-light);
  border-left-color: var(--nb-gold);
  background-color: rgba(245, 158, 11, 0.14);
  color: var(--nb-ink-soft);
}

.nb-note__label {
  display: block;
  margin-bottom: var(--nb-s2);
  font-size: var(--nb-fs-label);
  font-weight: 800;
  letter-spacing: var(--nb-track-label);
  text-transform: uppercase;
  color: var(--nb-gold);
}

.nb-section--light .nb-note__label,
.nb-section--light-alt .nb-note__label { color: var(--nb-gold-ink); }

/* ---- Checklists ------------------------------------------------------- */

.nb-ticks { display: grid; gap: var(--nb-s3); }

.nb-ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--nb-s3);
  align-items: start;
  font-size: var(--nb-fs-sm);
  line-height: 1.55;
}

.nb-ticks li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--nb-r-pill);
  font-size: 0.6875rem;
  font-weight: 800;
  color: var(--nb-success);
  background-color: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.34);
}

.nb-ticks--cross li::before {
  content: "\2715";
  color: var(--nb-coral);
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.34);
}

.nb-section--light .nb-ticks li::before,
.nb-section--light-alt .nb-ticks li::before { color: var(--nb-success-ink); }

.nb-section--light .nb-ticks--cross li::before,
.nb-section--light-alt .nb-ticks--cross li::before { color: var(--nb-coral-ink); }

/* ---- Progress bar ----------------------------------------------------- */

.nb-bar {
  position: relative;
  height: 10px;
  border-radius: var(--nb-r-pill);
  background-color: rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

.nb-bar--thin { height: 6px; }

.nb-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--nb-r-pill);
  background-image: linear-gradient(90deg, var(--nb-teal), var(--nb-cyan));
  transition: width 900ms var(--nb-ease);
}

.nb-bar__fill--success {
  background-image: linear-gradient(90deg, var(--nb-success), var(--nb-cyan));
}

.nb-section--light .nb-bar,
.nb-section--light-alt .nb-bar { background-color: rgba(15, 23, 42, 0.10); }

/* ---- Navbar ----------------------------------------------------------- */

/* A white header from the first pixel rather than one that fades in over a
   dark hero: the page below it is light, so a transparent bar would leave the
   logo and links floating on the photograph. */
.nb-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--nb-z-nav);
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--nb-line-dark);
  transition: box-shadow var(--nb-dur) var(--nb-ease);
}

.nb-nav.is-stuck { box-shadow: var(--nb-shadow-md); }

.nb-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--nb-s5);
  min-height: 72px;
}

.nb-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex: none;
}

.nb-logo__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-image: linear-gradient(135deg, var(--nb-teal), var(--nb-cyan));
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 800;
}

.nb-nav__links {
  display: none;
  align-items: center;
  gap: clamp(0.5rem, 1.3vw, 1.125rem);
  margin-left: auto;
}

.nb-nav__link {
  position: relative;
  padding: 0.5rem 0.125rem;
  font-size: var(--nb-fs-sm);
  font-weight: 500;
  color: var(--nb-muted);
  white-space: nowrap;
  transition: color var(--nb-dur) var(--nb-ease);
}

.nb-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.125rem;
  width: 100%;
  height: 1px;
  background-color: var(--nb-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--nb-dur) var(--nb-ease);
}

.nb-nav__link:hover { color: var(--nb-white); }

/* The primary nav leads with what is for sale. Below a wide desktop the
   secondary links step aside rather than pushing the purchase button off the
   edge — they are still in the mobile menu and the footer. */
@media (max-width: 1400px) {
  .nb-nav__link--minor { display: none; }
}
.nb-nav__link:hover::after { transform: scaleX(1); }

/* The account link is a destination, not a page anchor, so it reads a shade
   brighter than the section links beside it. */
.nb-nav__link--account { color: var(--nb-cyan); font-weight: 600; }

.nb-nav__cta { display: none; flex: none; }

.nb-burger {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border-radius: var(--nb-r-sm);
  border: 1px solid var(--nb-line-dark-strong);
  background-color: rgba(15, 23, 42, 0.04);
  flex: none;
}

.nb-burger__bars,
.nb-burger__bars::before,
.nb-burger__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--nb-white);
  transition: transform var(--nb-dur) var(--nb-ease),
              background-color var(--nb-dur-fast) var(--nb-ease);
}

.nb-burger__bars { position: relative; }

.nb-burger__bars::before,
.nb-burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nb-burger__bars::before { top: -6px; }
.nb-burger__bars::after { top: 6px; }

.nb-burger[aria-expanded="true"] .nb-burger__bars { background-color: transparent; }
.nb-burger[aria-expanded="true"] .nb-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.nb-burger[aria-expanded="true"] .nb-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.nb-menu {
  position: fixed;
  inset: 72px 0 0 0;
  z-index: var(--nb-z-menu);
  padding: var(--nb-s5) var(--nb-gutter) var(--nb-s8);
  background-color: var(--nb-navy-900);
  border-top: 1px solid var(--nb-line-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nb-menu__list { display: grid; gap: 0; }

.nb-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-bottom: 1px solid var(--nb-line-dark);
}

.nb-menu__link::after {
  content: "\2192";
  color: var(--nb-teal);
  font-size: 0.9375rem;
}

.nb-menu__cta { margin-top: var(--nb-s6); }

.nb-menu__meta {
  margin-top: var(--nb-s4);
  text-align: center;
  font-size: var(--nb-fs-xs);
  color: var(--nb-muted);
}

.nb-menu__meta strong { color: var(--nb-gold); }

/* ---- Price display ---------------------------------------------------- */

.nb-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.0625rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--nb-gold);
}

.nb-price__cur {
  font-size: 0.52em;
  transform: translateY(-0.52em);
}

.nb-price--xl { font-size: clamp(3.25rem, 9vw, 4.75rem); }
.nb-price--lg { font-size: clamp(2.5rem, 6vw, 3.25rem); }

.nb-section--light .nb-price,
.nb-section--light-alt .nb-price { color: var(--nb-gold-ink); }

/* ---- Big stat number -------------------------------------------------- */

.nb-stat {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.nb-stat--teal { color: var(--nb-cyan); }

.nb-section--light .nb-stat--teal,
.nb-section--light-alt .nb-stat--teal { color: var(--nb-teal-ink); }

/* ---- FAQ accordion (native details — accessible without JS) ----------- */

.nb-acc {
  border-radius: var(--nb-r-md);
  border: 1px solid var(--nb-line-light);
  background-color: var(--nb-light-card);
  box-shadow: var(--nb-shadow-light);
  overflow: hidden;
}

.nb-acc + .nb-acc { margin-top: var(--nb-s3); }

.nb-acc__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nb-s4);
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2.2vw, 1.5rem);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--nb-ink);
  cursor: pointer;
  list-style: none;
  transition: color var(--nb-dur) var(--nb-ease);
}

.nb-acc__q::-webkit-details-marker { display: none; }
.nb-acc__q:hover { color: var(--nb-teal-ink); }

.nb-acc__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: var(--nb-r-pill);
  background-color: rgba(21, 128, 61, 0.12);
  border: 1px solid rgba(21, 128, 61, 0.32);
}

.nb-acc__icon::before,
.nb-acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--nb-teal-ink);
  transform: translate(-50%, -50%);
  transition: transform var(--nb-dur) var(--nb-ease);
}

.nb-acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.nb-acc[open] .nb-acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.nb-acc__a {
  padding: var(--nb-s4) clamp(1rem, 2.2vw, 1.5rem) clamp(1rem, 2vw, 1.375rem);
  font-size: var(--nb-fs-sm);
  line-height: 1.68;
  color: var(--nb-ink-soft);
  border-top: 1px solid var(--nb-line-light);
}

.nb-acc__a > * + * { margin-top: var(--nb-s3); }

.nb-acc__a .nb-answer {
  font-weight: 800;
  color: var(--nb-ink);
}

/* ---- Sticky mobile CTA (spec section 35) ------------------------------ */

.nb-sticky {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--nb-z-sticky);
  display: flex;
  align-items: center;
  gap: var(--nb-s4);
  padding: 0.75rem var(--nb-gutter);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background-color: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--nb-line-dark);
  box-shadow: 0 -6px 24px -12px rgba(15, 23, 42, 0.3);
  transform: translateY(110%);
  /* visibility keeps the hidden bar out of the tab order */
  visibility: hidden;
  transition: transform var(--nb-dur) var(--nb-ease),
              visibility var(--nb-dur) var(--nb-ease);
}

.nb-sticky.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.nb-sticky__info { min-width: 0; }

.nb-sticky__label {
  font-size: var(--nb-fs-xs);
  font-weight: 600;
  color: var(--nb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nb-sticky__price {
  display: flex;
  align-items: baseline;
  gap: var(--nb-s2);
  flex-wrap: wrap;
}

.nb-sticky__price .nb-price { font-size: 1.5rem; }

.nb-sticky__req {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--nb-gold);
}

.nb-sticky__btn { margin-left: auto; flex: none; }

@media (min-width: 900px) {
  .nb-sticky { display: none; }
}

/* ---- Pending-link treatment (no verified URL supplied) ---------------- */

.nb-link-pending {
  border-bottom: 1px dashed rgba(245, 158, 11, 0.55);
  cursor: default;
}

/* ---- Desktop navigation breakpoint ------------------------------------ */

@media (min-width: 1120px) {
  .nb-nav__links { display: flex; }
  .nb-nav__cta { display: inline-flex; margin-left: var(--nb-s3); }
  .nb-burger { display: none; }
  .nb-menu { display: none !important; }
}

/* Price sized by its heading context (hero / final CTA) */
.nb-price--inherit {
  font-size: inherit;
  letter-spacing: inherit;
}

/* Single flex child inside a button / accordion summary: keeps the label's
   own words and inline spans in normal inline flow, so flex spacing never
   opens gaps between a label and the price or count it contains. */
.nb-btn__label,
.nb-acc__text { min-width: 0; }
