/* ============================================================
   Taiba public marketing polish
   Trust strip, FAQ, fade-up, reviews carousel, footer extras,
   blur-up images, accent refinements. Loaded after style.css.
   ============================================================ */

/* ---- Readable measure + type defaults ---- */
.tbx-prose,
.tbx-lead,
.tbx-lead-32,
.tbx-lead-center,
.page-hero-text,
.hero-text,
.section .text-center > p,
.package-desc {
  max-width: 68ch;
}
.tbx-lead,
.tbx-lead-32,
.tbx-lead-center,
.tbx-prose,
.section .text-center > p,
.package-desc,
.feature-text {
  font-size: 1.0625rem;
  line-height: 1.65;
}
.tbx-lead-center,
.section .text-center > p {
  margin-left: auto;
  margin-right: auto;
}

/* Keep chrome (nav / account) at original Manrope size — not display serif */
body {
  font-size: 1rem;
  line-height: 1.6;
}

.header .nav-link,
.mobile-nav-link,
.admin-mobile-nav-link {
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.header .btn,
.header .btn-sm,
.mobile-menu .btn,
.admin-mobile-menu .btn {
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.header .btn-sm {
  font-size: 0.875rem !important;
}

.header .nav-phone {
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Display serif only on real page headings — not UI chrome */
h1, h2, .hero-title, .page-hero-title, .section-title,
.tg-head-title, .package-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-title,
.card-title {
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.section-subtitle,
.tg-head-sub {
  color: var(--gold-ink);
}

.page-hero-title,
.page-hero-text {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.page-hero-subtitle {
  color: #f2d68a !important;
}

.text-gold {
  color: var(--gold-ink);
}
.bg-primary .text-gold,
.footer .text-gold,
.section-subtitle.text-gold,
.bg-primary .section-subtitle {
  color: var(--gold-light);
}

/* Gold buttons: dark ink on gold for WCAG AA */
.btn-gold {
  background-color: var(--gold);
  color: var(--gold-btn-fg);
  border-color: var(--gold);
}
.btn-gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--gold-btn-fg);
}

/* Accent underline / active states */
.nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--primary);
}
.cat-menu-pill.is-active,
.tg-filter-btn.active {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--gold), 0 8px 20px rgba(95, 37, 95, 0.28);
}

.package-section {
  scroll-margin-top: 110px;
}

/* ---- Fade-up on scroll ---- */
.tbx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 550ms ease-out, transform 550ms ease-out;
  will-change: opacity, transform;
}
.tbx-reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Staggered children (home features, service cards) */
.tbx-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 480ms ease-out, transform 480ms ease-out;
}
.tbx-reveal.is-in .tbx-stagger > *:nth-child(1) { transition-delay: 40ms; }
.tbx-reveal.is-in .tbx-stagger > *:nth-child(2) { transition-delay: 100ms; }
.tbx-reveal.is-in .tbx-stagger > *:nth-child(3) { transition-delay: 160ms; }
.tbx-reveal.is-in .tbx-stagger > *:nth-child(4) { transition-delay: 220ms; }
.tbx-reveal.is-in .tbx-stagger > *:nth-child(5) { transition-delay: 280ms; }
.tbx-reveal.is-in .tbx-stagger > *:nth-child(6) { transition-delay: 340ms; }
.tbx-reveal.is-in .tbx-stagger > *:nth-child(7) { transition-delay: 400ms; }
.tbx-reveal.is-in .tbx-stagger > *:nth-child(8) { transition-delay: 460ms; }
.tbx-reveal.is-in .tbx-stagger > * {
  opacity: 1;
  transform: none;
}

/* Home hero text entrance */
.hero-content.tbx-hero-in > * {
  opacity: 0;
  transform: translateY(24px);
  animation: tbxHeroIn 700ms ease-out forwards;
}
.hero-content.tbx-hero-in .hero-subtitle { animation-delay: 120ms; }
.hero-content.tbx-hero-in .hero-title { animation-delay: 260ms; }
.hero-content.tbx-hero-in .hero-text { animation-delay: 400ms; }
.hero-content.tbx-hero-in .hero-buttons { animation-delay: 540ms; }
@keyframes tbxHeroIn {
  to { opacity: 1; transform: none; }
}

/* Trust strip slide-up */
.tbx-js .tbx-trust:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}
.tbx-trust {
  transition: opacity 500ms ease-out 80ms, transform 500ms ease-out 80ms;
}
.tbx-trust.is-in {
  opacity: 1;
  transform: none;
}

/* Soft float on feature icons once revealed */
.tbx-reveal.is-in .feature-icon {
  animation: tbxIconSettle 700ms ease-out both;
}
@keyframes tbxIconSettle {
  from { transform: scale(0.86); opacity: 0.4; }
  to { transform: none; opacity: 1; }
}

/* About image slide from left when section enters */
.tbx-reveal.is-in .about-image {
  animation: tbxSlideIn 650ms ease-out both;
}
@keyframes tbxSlideIn {
  from { opacity: 0; transform: translateX(-28px); }
  to { opacity: 1; transform: none; }
}

/* Service cards gentle lift already via hover — add entrance scale */
.tbx-reveal.is-in .events-grid .card {
  animation: tbxCardIn 560ms ease-out both;
}
.tbx-reveal.is-in .events-grid .card:nth-child(1) { animation-delay: 60ms; }
.tbx-reveal.is-in .events-grid .card:nth-child(2) { animation-delay: 140ms; }
.tbx-reveal.is-in .events-grid .card:nth-child(3) { animation-delay: 220ms; }
.tbx-reveal.is-in .events-grid .card:nth-child(4) { animation-delay: 300ms; }
@keyframes tbxCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Scroll hint under home hero */
.tbx-js .tbx-scroll-hint {
  opacity: 0;
  animation: tbxHintIn 600ms ease-out 1.1s forwards;
}
.tbx-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 25;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.tbx-scroll-hint i {
  animation: tbxHintBob 1.6s ease-in-out 1.4s infinite;
  font-size: 0.9rem;
}
.hero.is-scrolled .tbx-scroll-hint {
  opacity: 0 !important;
  animation: none;
  transition: opacity 250ms ease;
}
@keyframes tbxHintIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes tbxHintBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .tbx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tbx-stagger > *,
  .tbx-reveal.is-in .tbx-stagger > *,
  .hero-content.tbx-hero-in > *,
  .tbx-trust,
  .tbx-trust.is-in,
  .tbx-reveal.is-in .feature-icon,
  .tbx-reveal.is-in .about-image,
  .tbx-reveal.is-in .events-grid .card,
  .tbx-scroll-hint {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Trust strip ---- */
.tbx-trust {
  background: var(--cream-dark);
  border-bottom: 1px solid rgba(95, 37, 95, 0.08);
  padding: 14px 0;
}
.tbx-trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--stone-700);
  text-align: center;
  line-height: 1.4;
}
.tbx-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  white-space: nowrap;
}
.tbx-trust-item i {
  color: var(--gold-ink);
  font-size: 0.85em;
}
.tbx-trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .tbx-trust-inner {
    gap: 2px 0;
    font-size: 0.82rem;
  }
  .tbx-trust-sep {
    display: none;
  }
  .tbx-trust-item {
    flex: 1 1 42%;
    justify-content: center;
    white-space: normal;
    padding: 6px 8px;
  }
}

/* ---- FAQ (native details — closed by default) ---- */
.tbx-faq {
  max-width: 680px;
  margin: 0 auto;
}
.tbx-faq-item {
  border-bottom: 1px solid rgba(95, 37, 95, 0.12);
}
.tbx-faq-item:first-child {
  border-top: 1px solid rgba(95, 37, 95, 0.12);
}
.tbx-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--stone-900);
}
.tbx-faq-q::-webkit-details-marker {
  display: none;
}
.tbx-faq-q::marker {
  content: '';
}
.tbx-faq-q:hover {
  color: var(--primary);
}
.tbx-faq-q i {
  color: var(--gold-ink);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.tbx-faq-item[open] .tbx-faq-q i {
  transform: rotate(180deg);
}
.tbx-faq-a {
  padding: 0 4px 18px;
  color: var(--stone-600);
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 68ch;
}
#faq .section-title {
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
#faq .section-subtitle {
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tbx-faq-a a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .tbx-faq-q i { transition: none; }
}

/* ---- Cross-links ---- */
.tbx-cross {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.tbx-cross a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(95, 37, 95, 0.14);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.tbx-cross a:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(95, 37, 95, 0.1);
  transform: translateY(-1px);
}
.tbx-cross a i {
  color: var(--gold-ink);
  font-size: 0.85em;
}
@media (prefers-reduced-motion: reduce) {
  .tbx-cross a:hover { transform: none; }
}

/* ---- Reviews (compact, one card) ---- */
.tbx-quotes {
  padding: 56px 0 24px;
  background: var(--cream);
  border-top: 1px solid rgba(95, 37, 95, 0.08);
}
.tbx-quotes-head {
  margin-bottom: 28px;
}
.tbx-quotes-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.tbx-quote {
  margin: 0;
  min-height: 0;
}
.tbx-quote[hidden] {
  display: none !important;
}
.tbx-quote-stars {
  margin-bottom: 12px;
  color: var(--gold-ink);
  letter-spacing: 2px;
}
.tbx-quote-stars i {
  font-size: 0.85rem;
}
.tbx-quote-body {
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--stone-700);
  margin: 0 0 20px;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
.tbx-quote-by {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.tbx-quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.tbx-quote-name {
  display: block;
  font-size: 0.92rem;
  color: var(--stone-900);
}
.tbx-quote-event {
  display: block;
  font-size: 0.82rem;
  color: var(--stone-500);
  margin-top: 2px;
}
.tbx-quotes-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 0;
}
.tbx-quotes-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(95, 37, 95, 0.18);
  background: var(--white);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tbx-quotes-btn:hover,
.tbx-quotes-btn:focus-visible {
  border-color: var(--gold);
  background: var(--primary-soft);
}
.tbx-quotes-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.tbx-quotes-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(95, 37, 95, 0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.tbx-quotes-dot.is-active {
  background: var(--primary);
  width: 18px;
  border-radius: 4px;
}

/* Home closing CTA — same cream plane as quotes (one beat) */
.tbx-home-cta {
  padding: 12px 0 72px;
  background: var(--cream);
}
.tbx-home-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid rgba(95, 37, 95, 0.1);
}
.tbx-home-cta .section-title {
  margin-bottom: 12px;
}
.tbx-home-cta .tbx-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ---- Final CTA card (inner pages) ---- */
.tbx-final-cta {
  padding: 48px 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .tbx-final-cta {
    padding: 56px 48px;
  }
}
.tbx-final-cta .tbx-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* ---- Blur-up / skeleton images ---- */
/* ---- Blur-up / skeleton images ----
   Do NOT set position here — it was overriding .page-hero-bg { position:absolute }
   and splitting heroes into white-on-white text. */
.tbx-blur {
  overflow: hidden;
  background: linear-gradient(110deg, #efe7ef 25%, #f7f1f7 40%, #efe7ef 55%);
  background-size: 200% 100%;
}
.page-hero-bg.tbx-blur,
.page-hero-bg {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #3d1840;
  animation: none;
}
.tbx-js .tbx-blur:not(.is-loaded):not(.page-hero-bg) {
  animation: tbxShimmer 1.2s linear infinite;
}
.tbx-js .tbx-blur:not(.is-loaded):not(.page-hero-bg) img {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.04);
}
.tbx-blur:not(.page-hero-bg) img {
  transition: opacity 0.45s ease, filter 0.55s ease, transform 0.55s ease;
}
.tbx-blur.is-loaded {
  animation: none;
  background: transparent;
}
.tbx-blur.is-loaded img {
  opacity: 1;
  filter: none;
  transform: none;
}
@keyframes tbxShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tbx-blur { animation: none; background: #efe7ef; }
  .tbx-blur img,
  .tbx-blur.is-loaded img {
    transition: none;
    filter: none;
    transform: none;
    opacity: 1;
  }
}

/* Hero: never blank if JS stalls — only soften unloaded slides slightly */
.hero-slider.tbx-hero-pending {
  background: linear-gradient(135deg, #3d1840, #5F255F);
}
.hero-slide img.tbx-hero-img {
  opacity: 1;
  transition: opacity 0.5s ease;
}
.tbx-js .hero-slide:not(.is-ready) img.tbx-hero-img {
  opacity: 0.35;
}
.hero-slide.is-ready img.tbx-hero-img,
.hero-slide.active.is-ready img.tbx-hero-img {
  opacity: 1;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-video.is-on {
  opacity: 1;
  z-index: 1;
}
.hero.has-video .hero-slide {
  /* keep poster under video */
  z-index: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none !important; }
}

/* ---- Count-up stats ---- */
.feature-title .tbx-count {
  font-variant-numeric: tabular-nums;
}

/* ---- Gallery polish (keep stable grid; enhance filters + blur) ---- */
.tg-filter-btn.active {
  background: linear-gradient(135deg, #5F255F, #7a3a7a) !important;
  box-shadow: 0 0 0 2px var(--gold), 0 8px 20px rgba(95, 37, 95, 0.32) !important;
}
.tg-item.tbx-blur {
  background: linear-gradient(110deg, #efe7ef 25%, #f7f1f7 40%, #efe7ef 55%);
  background-size: 200% 100%;
}
.tg-item.tbx-blur img {
  /* inherit gallery positioning; blur-up handled by .tbx-blur */
}

/* ---- Cookie banner (complete card + compact layout) ---- */
.tbx-cookie-consent {
  position: fixed !important;
  z-index: 100000 !important;
  max-width: 420px !important;
  left: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  background: #241326 !important;
  color: #fff !important;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.3) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  font-family: var(--font-body), 'Manrope', system-ui, sans-serif !important;
}
.tbx-cookie-consent strong {
  display: block;
  font-size: 14px !important;
  margin-bottom: 2px !important;
  color: #fff !important;
}
.tbx-cookie-consent p {
  margin: 0 0 12px !important;
  color: rgba(255, 255, 255, 0.82) !important;
}
.tbx-cookie-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  text-align: left !important;
}
.tbx-cookie-actions button {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.tbx-cookie-accept {
  background: var(--gold) !important;
  color: var(--gold-btn-fg, #1C1917) !important;
}
.tbx-cookie-reject {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
}
.tbx-cookie-manage,
.tbx-cookie-more {
  display: none !important;
}
@media (max-width: 520px) {
  .tbx-cookie-consent {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    max-width: none !important;
  }
}

/* ---- Footer upgrade ---- */
.footer-brand-name {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
}
.footer-hours {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.55;
}
.footer-contact ul li a.tbx-wa-link {
  color: inherit;
}
.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-review-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--gold-light);
  font-weight: 600;
}
.footer-review-link:hover {
  color: #fff;
}
.footer-links ul li a[href*="event-management"] {
  /* event type links */
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
