/* ════════════════════════════════════════════════════════════════════
   COMPONENTS — package meta, FAQ accordion, sticky mobile CTA
   Part of the rene-kurzok stylesheet. Load order matters (cascade).
   ════════════════════════════════════════════════════════════════════ */

/* ── PACKAGE META ─────────────────────────────────────────────────────── */
.pkg-meta {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .04em;
  margin-bottom: 28px !important;
  margin-top: -12px !important;
}
.pkg-card:not(.dark) .pkg-meta { color: var(--text-3); }
.pkg-card.dark       .pkg-meta { color: rgba(255,255,255,.6); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
#faq {
  background: var(--cream);
  padding: var(--sec) 0;
}

.faq-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.faq-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 300;
  color: var(--text-1);
  margin-top: 10px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--cream-2);
}

.faq-item:first-child {
  border-top: 1px solid var(--cream-2);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 500;
  color: var(--text-1);
  transition: color .25s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
  color: var(--accent);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

.faq-icon::before {
  width: 14px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px; height: 14px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding-bottom: 22px;
  font-size: .94rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-2);
}

/* ── BACK TO TOP ───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 140;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(238, 132, 32, .4);
  background: rgba(12, 27, 46, .9);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .3s, color .3s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 880px) {
  /* Lift above the sticky mobile CTA bar */
  .back-to-top { bottom: 84px; right: 16px; }
}

/* ── STICKY MOBILE CTA ─────────────────────────────────────────────────── */
.sticky-cta {
  display: none;
}
@media (max-width: 880px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: var(--cta);
    color: var(--cta-text);
    text-align: center;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: 18px 24px;
    transition: opacity .3s, transform .3s;
    border-top: 2px solid rgba(0,0,0,.08);
  }
  .sticky-cta.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
  }
  /* Make room so footer isn't hidden behind CTA */
  footer { padding-bottom: 72px; }
}
