/* =========================================================================
   BOSS CARPENTRY GROUP — Pricing & Styles explorer
   Extends style.css design tokens (--gold, --black, --cream, etc.)
   ========================================================================= */

/* ---------- Page hero ---------------------------------------------------- */
.pricing-hero {
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: 56px var(--edge) 40px;
  text-align: center;
}
.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 22px 22px;
  pointer-events: none;
}
.pricing-hero__inner { position: relative; max-width: var(--container); margin: 0 auto; }
.pricing-hero__title { color: var(--white); font-size: clamp(2rem, 7.5vw, 2.9rem); text-wrap: balance; }
.pricing-hero__subtitle {
  margin: 16px auto 0;
  max-width: 480px;
  color: var(--muted-on-dark);
  font-size: 1rem;
}

/* ---------- Category tabs ------------------------------------------------ */
.cat-tabs {
  margin: 28px auto 0;
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
}
.cat-tab {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted-on-dark);
  transition: background-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.cat-tab.is-active { background: var(--gold); color: var(--white); }
.cat-tab:not(.is-active):hover { color: var(--white); }

/* ---------- Explorer section --------------------------------------------- */
.pricing-explorer { background: var(--cream); padding: 56px 0 72px; }
.category-panel { max-width: var(--container); margin: 0 auto; padding: 0 var(--edge); }

/* ---------- Budget slider -------------------------------------------------- */
.budget-slider { text-align: center; }
.budget-slider__readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
}
.tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cream-deep);
  color: var(--gold-dim);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tier-pill[data-tier="enhanced"] { background: #eadfc4; color: #8a6b41; }
.tier-pill[data-tier="premium"] { background: var(--black); color: var(--gold-light); }
.price-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  transition: transform 0.2s ease;
}

.slider-track-wrap { position: relative; padding: 0 4px; }
.slider-track-bg {
  position: relative;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.slider-track-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: var(--radius-pill);
  transition: width 0.12s linear;
}
input[type="range"][data-slider] {
  position: relative;
  width: 100%;
  height: 32px;
  margin-top: -20px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
input[type="range"][data-slider]::-webkit-slider-runnable-track { height: 8px; background: transparent; }
input[type="range"][data-slider]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}
input[type="range"][data-slider]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"][data-slider]::-moz-range-track { height: 8px; background: transparent; }
input[type="range"][data-slider]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-soft);
}

.tier-bands {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.tier-band {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: border-color 0.18s ease, transform 0.12s ease;
}
.tier-band:hover { border-color: var(--gold); transform: translateY(-1px); }
.tier-band:active { transform: scale(0.98); }
.tier-band__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tier-band__range { font-size: 0.82rem; font-weight: 700; color: var(--ink); }

.tier-blurb {
  margin: 26px auto 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 0.96rem;
  text-align: center;
  min-height: 44px;
}

/* ---------- Style grid --------------------------------------------------- */
.style-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.style-grid.is-leaving .style-card { animation: cardOut 0.2s ease forwards; }
.style-grid.is-entering .style-card { animation: cardIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

.style-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.style-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.style-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.style-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.style-card:hover .style-card__media img { transform: scale(1.04); }
.style-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.style-card__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; }
.style-card__tagline { color: var(--gold-dim); font-size: 0.86rem; font-weight: 600; font-style: italic; margin-bottom: 14px; }
.style-card__elements { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.style-card__elements li {
  font-size: 0.86rem;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}
.style-card__elements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.style-card__ideal { font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; flex: 1; }
.style-card__ideal strong { color: var(--ink); }
.style-card__cta { margin-top: auto; }

/* ---------- Quality Jobs branding -------------------------------------- */
.site-header__logo { display: flex; align-items: center; gap: 10px; }
.site-header__logo img { height: 32px; width: auto; }
.site-header__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .site-header__logo img { height: 38px; }
  .site-header__wordmark { font-size: 1.2rem; }
}
.site-footer__logo img { height: 44px; width: auto; }

/* ---------- Desktop -------------------------------------------------------- */
@media (min-width: 640px) {
  .style-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  :root { --container: 940px; }
  .pricing-hero { padding: 80px var(--edge) 56px; }
  .style-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .tier-bands { max-width: 480px; margin-left: auto; margin-right: auto; }
}
