/* Nawwarah Travel & Tour — small additions on top of css/styles.css
   (the compiled theme is left untouched so the design stays identical). */

[hidden] { display: none !important; }

/* pop-up fade (class was referenced by the original markup) */
@keyframes nwr-fade-in { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: nwr-fade-in .25s ease-out both; }
body.modal-open { overflow: hidden; }

/* keyboard focus */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--primary, #1e4b9b);
  outline-offset: 3px;
}
header a:focus-visible, header button:focus-visible { outline-color: var(--gold, #f59e0b); }

/* scroll reveal — only when JS is running, so content is never hidden without it */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1), box-shadow .5s, translate .5s;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* active link in the top navigation */
header nav a { position: relative; }
header nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
header nav a.is-active::after, header nav a:hover::after { transform: scaleX(1); }

/* mobile menu icons */
#menu-toggle .icon-close { display: none; }

/* FAQ without JS: show answers */
html:not(.js) .faq-panel[hidden] { display: block !important; }

/* group-size chips in the tour pop-up */
.pax-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 640px) { .pax-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pax-chip {
  display: flex; flex-direction: column; align-items: center; gap: .15rem; cursor: pointer;
  border-radius: 1rem; padding: .6rem .5rem; font-size: .72rem; color: var(--navy);
  background: color-mix(in oklab, var(--primary) 8%, white); border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.pax-chip strong { font-size: .95rem; color: var(--primary); }
.pax-chip:hover { background: color-mix(in oklab, var(--primary) 14%, white); transform: translateY(-1px); }
.pax-chip.is-picked { background: var(--primary); color: #fff; border-color: var(--primary); }
.pax-chip.is-picked strong { color: #fff; }

/* back to top */
.back-to-top {
  position: fixed; left: 1.5rem; bottom: 6.5rem; z-index: 45; width: 3rem; height: 3rem; border-radius: 9999px;
  display: grid; place-items: center; cursor: pointer; color: var(--navy);
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 10px 30px -10px rgba(10, 30, 80, .45);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s, background .2s;
}
.back-to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: #fff; }
@media (min-width: 768px) { .back-to-top { bottom: 1.5rem; } }

/* never hide the FAQ questions' content text with the original radix variables missing */
.faq-panel { --radix-collapsible-content-height: auto; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .back-to-top { transition: none; }
}

/* ---- utilities used only by booking-confirmed.html / 404.html
   (the compiled theme only contains classes the home page needed) ---- */
.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .16s; }
.pt-40 { padding-top: calc(var(--spacing) * 40); }
.pb-40 { padding-bottom: calc(var(--spacing) * 40); }
.h-24 { height: calc(var(--spacing) * 24); }
.w-24 { width: calc(var(--spacing) * 24); }
.text-8xl { font-size: 6rem; line-height: 1; }
@media (min-width: 768px) { .md\:pb-28 { padding-bottom: calc(var(--spacing) * 28); } }
@media (min-width: 640px) { .sm\:text-9xl { font-size: 8rem; line-height: 1; } }
