/* Beyond Journey custom styles, carried over from the original site. WordPress additions are at the end. */

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: Inter, system-ui, -apple-system, sans-serif; color: #1A1A2E; background: #fff; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: #1B7FBF; color: #fff; }

:focus-visible { outline: 2px solid #F47B20; outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; padding: .75rem 1.25rem; background: #fff; color: #17527D; border-radius: .5rem; box-shadow: 0 10px 30px rgb(0 0 0 / .15); }

/* Scroll reveal (the hidden state is only added by JavaScript) */
.aos-hidden { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.aos-visible { opacity: 1; transform: translateY(0); }

/* Accent rules */
.section-accent, .section-accent-center { display: block; width: 3rem; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #1B7FBF, #F47B20); }
.section-accent { margin-top: .875rem; }
.section-accent-center { margin: .875rem auto 0; }
.section-accent-on-blue { background: linear-gradient(90deg, #ffffff, #F9A05C); }

/* Hero text entrance */
@keyframes hero-fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero-animate-1 { animation: hero-fade-in .8s .15s cubic-bezier(.22,1,.36,1) both; }
.hero-animate-2 { animation: hero-fade-in .8s .30s cubic-bezier(.22,1,.36,1) both; }
.hero-animate-3 { animation: hero-fade-in .8s .45s cubic-bezier(.22,1,.36,1) both; }
.hero-animate-4 { animation: hero-fade-in .8s .60s cubic-bezier(.22,1,.36,1) both; }

/* Crossfade slideshow: 6 slides, 54s cycle, slow Ken Burns */
.hero-slide { opacity: 0; animation: hero-crossfade 54s ease-in-out infinite; }
.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: -45s; }
.hero-slide-3 { animation-delay: -36s; }
.hero-slide-4 { animation-delay: -27s; }
.hero-slide-5 { animation-delay: -18s; }
.hero-slide-6 { animation-delay: -9s; }
@keyframes hero-crossfade {
  0%   { opacity: 0; transform: scale(1); }
  3%   { opacity: 1; }
  14%  { opacity: 1; }
  17%  { opacity: 0; }
  20%  { transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1); }
}

/* Phones cross-fade only: scaled layers per slide evict tiles and ghost on scroll */
@media (max-width: 767px) {
  @keyframes hero-crossfade {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    14%  { opacity: 1; }
    17%  { opacity: 0; }
    100% { opacity: 0; }
  }
}

/* Per-slide cropping: subjects stay centre-right, clear of the headline column */
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-1 { object-position: 78% center; }
.hero-img-2 { object-position: 64% 58%; }
.hero-img-3 { object-position: 70% 42%; }
.hero-img-4 { object-position: 64% 45%; }
.hero-img-5 { object-position: 38% 55%; }
.hero-img-6 { object-position: 64% 58%; }
@media (max-width: 1023px) {
  .hero-img-1 { object-position: 70% center; }
  .hero-img-2 { object-position: 60% 58%; }
  .hero-img-3 { object-position: 62% 45%; }
  .hero-img-4 { object-position: 58% 48%; }
  .hero-img-5 { object-position: 40% 55%; }
  .hero-img-6 { object-position: 60% 56%; }
}
@media (max-width: 639px) {
  .hero-img-1 { object-position: 66% 40%; }
  .hero-img-2 { object-position: 56% 62%; }
  .hero-img-3 { object-position: 58% 55%; }
  .hero-img-4 { object-position: 54% 55%; }
  .hero-img-5 { object-position: 44% 58%; }
  .hero-img-6 { object-position: 56% 58%; }
}

/* Overlay: strongest on the text side, near-clear on the right */
.hero-overlay-h { background: linear-gradient(100deg, rgb(12 42 68 / .82) 0%, rgb(14 46 74 / .66) 28%, rgb(18 52 80 / .38) 55%, rgb(22 58 88 / .16) 100%); }
.hero-overlay-v { background: linear-gradient(180deg, rgb(10 32 52 / .5) 0%, rgb(10 32 52 / .08) 30%, rgb(10 32 52 / .12) 70%, rgb(10 32 52 / .55) 100%); }
@media (max-width: 639px) {
  .hero-overlay-h { background: linear-gradient(160deg, rgb(12 42 68 / .72) 0%, rgb(14 46 74 / .58) 55%, rgb(18 52 80 / .45) 100%); }
}

/* Destination carousel */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.dest-scroller { scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-padding-left: 1rem; }
@media (min-width: 640px) { .dest-scroller { scroll-padding-left: 1.5rem; } }
@media (min-width: 1024px) { .dest-scroller { scroll-padding-left: 2rem; } }
.dest-card { scroll-snap-align: start; transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s cubic-bezier(.22,1,.36,1); }
.dest-card[data-active="false"] { transform: scale(.94); opacity: .72; }
.dest-card[data-active="true"] { transform: scale(1); opacity: 1; }

.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Decorative travel routes */
@keyframes route-dash { to { stroke-dashoffset: -200; } }
.route-dash { animation: route-dash 24s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html, .dest-scroller { scroll-behavior: auto; }
  .hero-slide { animation: none; opacity: 0; transform: none; }
  .hero-slide-1 { opacity: 1; }
  .hero-animate-1, .hero-animate-2, .hero-animate-3, .hero-animate-4 { animation: none; }
  .aos-hidden { opacity: 1; transform: none; transition: none; }
  .route-dash { animation: none; }
  .dest-card { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- WordPress additions ---------- */

/* Keep the fixed header below the admin bar for logged-in users. */
.admin-bar #site-header { top: 32px; }
.admin-bar #mobile-nav { top: calc(5rem + 32px); }
html:has(body.admin-bar) { scroll-padding-top: calc(5rem + 32px); }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
  .admin-bar #mobile-nav { top: calc(5rem + 46px); }
  html:has(body.admin-bar) { scroll-padding-top: calc(5rem + 46px); }
}
@media screen and (max-width: 600px) {
  #wpadminbar { position: fixed; }
}

.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; left: 1rem; top: 1rem; z-index: 100; padding: .75rem 1.25rem; background: #fff; color: #17527D; border-radius: .5rem; }

/* Content written in the editor (regular pages and posts) */
.bj-content { color: #5A6472; line-height: 1.75; }
.bj-content > * + * { margin-top: 1.25em; }
.bj-content h1, .bj-content h2, .bj-content h3, .bj-content h4, .bj-content h5, .bj-content h6 { color: #17527D; font-weight: 700; line-height: 1.25; margin-top: 1.8em; }
.bj-content > :first-child { margin-top: 0; }
.bj-content h2 { font-size: 1.75rem; }
.bj-content h3 { font-size: 1.375rem; }
.bj-content h4 { font-size: 1.125rem; }
.bj-content a { color: #1B7FBF; text-decoration: underline; text-underline-offset: 2px; }
.bj-content a:hover { color: #145F8F; }
.bj-content strong { color: #1A1A2E; }
.bj-content ul { list-style: disc; padding-left: 1.5em; }
.bj-content ol { list-style: decimal; padding-left: 1.5em; }
.bj-content li + li { margin-top: .4em; }
.bj-content blockquote { border-left: 3px solid #F47B20; padding-left: 1em; font-style: italic; color: #2D2D3F; }
.bj-content img, .bj-content video, .bj-content iframe { max-width: 100%; height: auto; border-radius: .75rem; }
.bj-content figcaption { margin-top: .5em; font-size: .875rem; color: #8A93A1; text-align: center; }
.bj-content table { width: 100%; border-collapse: collapse; }
.bj-content th, .bj-content td { border: 1px solid #E5E7EB; padding: .5em .75em; text-align: left; }
.bj-content hr { border-top: 1px solid rgb(27 127 191 / .15); }
.bj-content .wp-block-button__link { display: inline-block; border-radius: .5rem; background: #F47B20; padding: .75em 1.5em; font-weight: 600; color: #fff; text-decoration: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }

/* Post list pagination */
.bj-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.bj-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid rgb(27 127 191 / .2); border-radius: .5rem; font-weight: 600; color: #17527D; }
.bj-pagination .page-numbers.current, .bj-pagination a.page-numbers:hover { border-color: #1B7FBF; background: #1B7FBF; color: #fff; }

/* Elementor pages: Elementor resets every image to height:auto, which would shrink the full-size section photos. */
.elementor [class*="elementor-widget-bj-"] img.h-full,
.elementor [class*="elementor-widget-bj-"] img.hero-img { height: 100%; }
