/* ==========================================================================
   MOTION — the premium/cinematic layer for the Jirawala theme.

   global.css, components.css and pages.css stay byte-for-byte copies of the
   React stylesheets, so nothing here is edited into them: every motion rule,
   and every override a motion rule needs, lives in this file. It loads last,
   after wp.css.

   Principles this file sticks to:

     - only `opacity`, `translate`, `scale` and `transform` are animated, so
       every effect is composited on the GPU and never triggers layout;
     - the reveal system is gated behind `html.jtt-reveal`, a class added by
       JavaScript in the <head>, so a visitor or crawler without JavaScript
       gets the finished page with nothing hidden;
     - `prefers-reduced-motion: reduce` turns the whole thing off and shows
       the final state (global.css already flattens durations; the block at
       the end of this file removes the hidden states as well);
     - continuous (infinite) animation is limited to the loader, the WhatsApp
       pulse that already existed, and one 2px road hairline on route pages.
       Everything else is a one-shot triggered by scroll or hover.

   Brand colours and tokens come from global.css and are never redefined here;
   the only new custom properties are motion ones, namespaced `--jtt-*`.
   ========================================================================== */

:root {
  /* ------------------------------------------------------ motion tokens -- */
  --jtt-ease: cubic-bezier(0.22, 1, 0.36, 1); /* decelerate — reveals, hovers */
  --jtt-ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --jtt-ease-curtain: cubic-bezier(0.76, 0, 0.24, 1); /* loader + transitions */
  --jtt-rise: 24px; /* how far a revealing block travels */
  --jtt-dur: 720ms;
  --jtt-dur-fast: 320ms;
}

/* ==========================================================================
   1. PAGE TRANSITIONS
   ========================================================================== */

/*
 * Chrome and other browsers with cross-document view transitions crossfade
 * between pages natively — no JavaScript, no blank frame, and the browser
 * handles the back button for free. Browsers without it ignore this rule and
 * get the scripted fade in animations.js instead.
 */
/* 12 Nov 2026: the loader plays once per visit ('once' mode in inc/setup.php),
   so later page changes keep this smooth crossfade. Set to none for 'full'. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: jtt-vt-out 240ms var(--jtt-ease-curtain) both;
}

::view-transition-new(root) {
  animation: jtt-vt-in 420ms var(--jtt-ease) both;
}

@keyframes jtt-vt-out {
  to {
    opacity: 0;
    scale: 0.995;
  }
}

@keyframes jtt-vt-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

/* The scripted fallback: used only where native view transitions are absent. */
html.jtt-anim.jtt-no-vt .page-shell {
  animation: jtt-page-in 380ms var(--jtt-ease) both;
}

html.jtt-anim.jtt-no-vt.jtt-leaving .page-shell,
html.jtt-anim.jtt-no-vt.jtt-leaving .navbar,
html.jtt-anim.jtt-no-vt.jtt-leaving .footer {
  opacity: 0;
  transition: opacity 200ms var(--jtt-ease-curtain);
}

@keyframes jtt-page-in {
  from {
    opacity: 0;
  }
}

/* ==========================================================================
   2. LOADER

   Owner's design (12 Nov 2026), rebuilt. Shown on EVERY page load, refresh
   and navigation - the bootstrap script in inc/setup.php picks the mode before
   first paint:

     html.jtt-loading--full   first page of a visit, about 3.6s: sky, globe
                              with the Ahmedabad pin, plane in orbit, the taxi
                              with the Jirawala flag, then Namaste and
                              "Jai Jinendra".
     html.jtt-loading--quick  every later page and every refresh, about 1s:
                              the logo and the flag taxi.

   Everything moves with transform / translate / opacity / clip-path only, so
   it runs on the compositor while the page is still busy loading underneath.
   Markup: header.php. Timing and lift: animations.js §1.
   ========================================================================== */

.jtt-loader {
  display: none;
}

html.jtt-loading,
html.jtt-loading body {
  overflow: hidden;
}

html.jtt-loading .jtt-loader {
  --jl-road-y: 9vh;
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: block;
  overflow: hidden;
  background: linear-gradient(180deg, #bfe6ee 0%, #e4f4f7 50%, #f7f9fa 100%);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Arriving from a click (animations.js §4): fade the cover in, then navigate. */
html.jtt-loader-enter .jtt-loader {
  animation: jl-fade 200ms ease both;
}

/* Lifting: the cover fades while the greeting / taxi make their exit. */
html.jtt-loader-out .jtt-loader {
  opacity: 0;
  transition: opacity 480ms ease 120ms;
}

.jl-scene,
.jl-greet,
.jl-quick {
  display: none;
}

html.jtt-loading--full .jl-scene {
  display: block;
}

.jl-scene {
  position: absolute;
  inset: 0;
}

html.jtt-loading--full .jl-greet,
html.jtt-loading--quick .jl-quick {
  display: flex;
}

/* ------------------------------------------------------------------- sky */

.jl-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jl-sun {
  position: absolute;
  top: -14vmin;
  right: -10vmin;
  width: 52vmin;
  height: 52vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 170, 0.95) 0%, rgba(255, 226, 140, 0.38) 34%, transparent 68%);
  animation: jl-sun 4s ease-in-out infinite alternate;
}

.jl-cloud {
  position: absolute;
  left: 0;
  width: 96px;
  height: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 24px -11px 0 5px #fff, 54px -2px 0 1px #fff;
  opacity: 0.9;
  animation: jl-drift 22s linear infinite;
}

.jl-cloud--1 {
  top: 13%;
  animation-delay: -4s;
}

.jl-cloud--2 {
  top: 25%;
  scale: 0.7;
  opacity: 0.75;
  animation-duration: 28s;
  animation-delay: -17s;
}

.jl-cloud--3 {
  top: 7%;
  scale: 0.5;
  opacity: 0.6;
  animation-duration: 34s;
  animation-delay: -9s;
}

/* A low city line with a temple shikhara - home, without being a postcard. */
.jl-skyline {
  position: absolute;
  left: 0;
  bottom: calc(var(--jl-road-y) + 28px);
  width: 100%;
  height: 13vmin;
  opacity: 0.1;
}

html.jtt-loading--quick .jl-skyline {
  bottom: 0;
  opacity: 0.07;
}

/* ----------------------------------------------------------------- globe */

.jl-globe-wrap {
  --E: min(44vmin, 290px);
  --O: calc(var(--E) * 1.5);
  position: absolute;
  left: 50%;
  top: 43%;
  width: var(--O);
  height: var(--O);
  translate: -50% -50%;
}

.jl-globe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--E);
  height: var(--E);
  translate: -50% -50%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 34% 28%, #7fd8ec 0%, #2a97c9 42%, #0e4e86 100%);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.6),
    0 0 46px 10px rgba(127, 216, 236, 0.45),
    0 24px 54px rgba(18, 59, 93, 0.32),
    inset -22px -26px 44px rgba(0, 0, 0, 0.28);
  animation: jl-globe-in 560ms cubic-bezier(0.2, 0.8, 0.3, 1.25) both;
}

/* Sunlight from the top left, night falling on the bottom right. */
.jl-globe::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.5), transparent 42%),
    radial-gradient(circle at 80% 82%, rgba(5, 20, 40, 0.38), transparent 56%);
}

.jl-land {
  position: absolute;
  left: 0;
  top: 0;
  width: 200%;
  height: 100%;
  animation: jl-spin 6s linear infinite;
}

.jl-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(8, 127, 140, 0.38);
  animation:
    jl-fade 500ms ease 200ms both,
    jl-turn 40s linear infinite;
}

.jl-orbit {
  position: absolute;
  inset: 0;
  animation: jl-orbit 2.3s cubic-bezier(0.45, 0.05, 0.35, 1) 150ms both;
}

.jl-plane {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -50%;
}

.jl-plane svg {
  display: block;
  width: clamp(66px, 15vmin, 116px);
  filter: drop-shadow(0 8px 6px rgba(0, 0, 0, 0.2));
}

.jl-trail {
  position: absolute;
  right: 86%;
  top: 46%;
  width: clamp(56px, 14vmin, 116px);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(8, 127, 140, 0.55));
}

/* The pin drops on to Ahmedabad and sends out one ripple. */
.jl-pin {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--E) * 0.28);
  z-index: 2;
  width: clamp(20px, 4.6vmin, 30px);
  translate: -50% -100%;
  animation: jl-pin-drop 640ms cubic-bezier(0.3, 1.5, 0.5, 1) 520ms both;
}

.jl-pin svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25));
}

.jl-pin__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  padding: 3px 8px;
  border-radius: 6px;
  background: #123b5d;
  color: #fff;
  font-size: clamp(10px, 1.8vmin, 12px);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  translate: -50% 0;
  animation: jl-pop 360ms cubic-bezier(0.2, 0.8, 0.3, 1.3) 1080ms both;
}

.jl-pin-ripple {
  position: absolute;
  left: 50%;
  top: calc(50% - var(--E) * 0.28);
  z-index: 1;
  width: 12px;
  height: 5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  translate: -50% -50%;
  opacity: 0;
  animation: jl-ripple 1s ease-out 1000ms forwards;
}

/* ------------------------------------------------------------ road, taxi */

.jl-road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--jl-road-y);
  height: 30px;
  overflow: hidden;
  background: linear-gradient(#1b4a6e, #123b5d);
  border-top: 2px solid rgba(255, 255, 255, 0.55);
  animation: jl-fade 300ms ease both;
}

.jl-road::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 100vh;
  background: #e9eef2;
}

.jl-road__lane {
  position: absolute;
  left: 0;
  right: -60px;
  top: 12px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #d9a441 0 28px, transparent 28px 56px);
  animation: jl-lane 0.42s linear infinite;
}

.jl-taxi {
  position: relative;
  width: 100%;
}

.jl-taxi__car {
  display: block;
  width: 100%;
  overflow: visible;
  animation: jl-bounce 0.24s ease-in-out infinite alternate;
}

.jl-taxi__beam {
  opacity: 0.55;
  animation: jl-beam 0.9s ease-in-out infinite alternate;
}

.jl-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: jl-wheel 0.45s linear infinite;
}

html.jtt-loading--full .jl-scene .jl-taxi {
  position: absolute;
  left: 0;
  bottom: calc(var(--jl-road-y) + 17px);
  width: clamp(130px, 28vmin, 200px);
  animation: jl-drive 2.4s linear 150ms both;
}

/* The Jirawala flag, flying from a pole on the roof. */
.jl-flag {
  position: absolute;
  left: 47%;
  bottom: 84%;
  z-index: -1;
  --pole: clamp(38px, 8vmin, 60px);
  --cloth: clamp(18px, 3.8vmin, 26px);
}

.jl-flag__pole {
  position: absolute;
  left: -1.5px;
  bottom: 0;
  width: 3px;
  height: var(--pole);
  border-radius: 3px;
  background: linear-gradient(#f4d06f, #b7862a);
}

.jl-flag__cloth {
  position: absolute;
  right: 0;
  bottom: calc(var(--pole) - var(--cloth));
  display: flex;
  align-items: center;
  height: var(--cloth);
  padding: 0 clamp(10px, 2vmin, 14px) 0 clamp(16px, 3vmin, 22px);
  border-block: 2px solid #d9a441;
  background: linear-gradient(90deg, #0b97a6, #076f7a);
  color: #fff;
  font: 700 clamp(8.5px, 1.75vmin, 12px) / 1 Inter, Arial, sans-serif;
  letter-spacing: 0.03em;
  white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%);
  transform-origin: right center;
  animation: jl-wave 0.38s ease-in-out infinite alternate;
}

/* The whole scene steps back as the greeting arrives. */
html.jtt-loading--full .jl-scene {
  animation: jl-scene-out 380ms ease 2.35s forwards;
}

/* -------------------------------------------------------------- greeting */

.jl-greet {
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
  pointer-events: none;
}

.jl-greet__logo {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px -18px rgba(18, 59, 93, 0.45);
  opacity: 0;
  animation: jl-pop-in 420ms cubic-bezier(0.2, 0.8, 0.3, 1.25) 2.4s forwards;
}

.jl-greet__logo img {
  display: block;
  width: auto;
  height: clamp(40px, 7vmin, 56px);
}

@keyframes jl-pop-in {
  from {
    opacity: 0;
    scale: 0.8;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.jl-greet__namaste {
  display: block;
  width: auto;
  height: clamp(84px, 16vmin, 130px);
  clip-path: inset(0 0 100% 0);
  animation: jl-wipe 700ms cubic-bezier(0.6, 0, 0.2, 1) 2.45s forwards;
}

.jl-greet__hello {
  margin: 10px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 8.5vmin, 58px);
  font-weight: 700;
  line-height: 1.1;
  color: #087f8c;
}

.jl-greet__hello span {
  display: inline-block;
  opacity: 0;
  translate: 0 14px;
  animation: jl-rise 520ms cubic-bezier(0.2, 0.8, 0.3, 1.2) 2.7s forwards;
}

.jl-greet__hello span + span {
  color: #b9822a;
  animation-delay: 2.84s;
}

.jl-greet__rule {
  display: block;
  width: 130px;
  height: 2px;
  margin: 12px auto 10px;
  background: linear-gradient(90deg, transparent, #d9a441, transparent);
  scale: 0 1;
  animation: jl-grow 600ms ease 2.95s forwards;
}

.jl-greet__name {
  margin: 0;
  font-size: clamp(12px, 2.4vmin, 16px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #123b5d;
  opacity: 0;
  animation: jl-track 650ms ease 3s forwards;
}

.jl-greet__tag {
  margin: 6px 0 0;
  font-size: clamp(11px, 2vmin, 13px);
  letter-spacing: 0.06em;
  color: #64748b;
  opacity: 0;
  animation: jl-fade-to 500ms ease 3.15s forwards;
}

.jl-bar {
  display: block;
  width: clamp(140px, 30vmin, 220px);
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(8, 127, 140, 0.18);
}

.jl-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #087f8c, #d9a441);
  transform-origin: left center;
  scale: 0 1;
  animation: jl-fill 1.1s cubic-bezier(0.3, 0.7, 0.3, 1) 2.6s forwards;
}

.jl-greet .jl-bar {
  opacity: 0;
  animation: jl-fade-to 300ms ease 2.6s forwards;
}

html.jtt-loader-out .jl-bar i {
  scale: 1 1;
  transition: scale 260ms ease;
}

html.jtt-loader-out .jl-greet {
  scale: 1.04;
  transition: scale 600ms ease;
}

/* ----------------------------------------------------------------- quick */

.jl-quick {
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.jl-quick__plate {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px -20px rgba(18, 59, 93, 0.45);
  animation: jl-pop 380ms cubic-bezier(0.2, 0.8, 0.3, 1.25) both;
}

.jl-quick__plate img {
  display: block;
  width: auto;
  height: 56px;
}

.jl-quick__stage {
  --stage: min(340px, 82vw);
  position: relative;
  width: var(--stage);
  height: 112px;
  margin-top: 14px;
  overflow: hidden;
}

.jl-quick__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(18, 59, 93, 0.14);
}

.jl-quick__road::after {
  content: '';
  position: absolute;
  inset: 0 -40px 0 0;
  background: repeating-linear-gradient(90deg, #d9a441 0 18px, transparent 18px 40px);
  animation: jl-lane-q 0.5s linear infinite;
}

.jl-quick .jl-taxi {
  position: absolute;
  left: calc(50% - 60px);
  bottom: 10px;
  width: 120px;
  animation: jl-arrive 480ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

html.jtt-loader-out .jl-quick .jl-taxi {
  translate: calc(var(--stage) * 0.5 + 80px) 0;
  transition: translate 420ms cubic-bezier(0.55, 0.05, 0.68, 0.19);
}

.jl-quick .jl-flag {
  --pole: 38px;
  --cloth: 18px;
}

.jl-quick .jl-flag__cloth {
  font-size: 8.5px;
}

.jl-bar--quick {
  margin-top: 6px;
}

.jl-bar--quick i {
  animation: jl-fill 900ms cubic-bezier(0.3, 0.7, 0.3, 1) both;
}

/* ------------------------------------------------------------ keyframes */

@keyframes jl-fade {
  from {
    opacity: 0;
  }
}

@keyframes jl-fade-to {
  to {
    opacity: 1;
  }
}

@keyframes jl-sun {
  to {
    scale: 1.06;
  }
}

@keyframes jl-drift {
  from {
    translate: -25vw 0;
  }
  to {
    translate: 115vw 0;
  }
}

@keyframes jl-globe-in {
  from {
    opacity: 0;
    scale: 0.55;
  }
}

@keyframes jl-spin {
  to {
    translate: -50% 0;
  }
}

@keyframes jl-turn {
  to {
    rotate: 360deg;
  }
}

@keyframes jl-orbit {
  0% {
    rotate: -150deg;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    rotate: 210deg;
  }
}

@keyframes jl-pin-drop {
  0% {
    opacity: 0;
    translate: -50% -260%;
  }
  55% {
    opacity: 1;
  }
}

@keyframes jl-pop {
  from {
    opacity: 0;
    scale: 0.8;
  }
}

@keyframes jl-ripple {
  0% {
    opacity: 1;
    scale: 1;
  }
  100% {
    opacity: 0;
    scale: 7;
  }
}

@keyframes jl-lane {
  to {
    translate: -56px 0;
  }
}

@keyframes jl-lane-q {
  to {
    translate: -40px 0;
  }
}

@keyframes jl-bounce {
  to {
    translate: 0 -1.5px;
  }
}

@keyframes jl-beam {
  to {
    opacity: 0.95;
  }
}

@keyframes jl-wheel {
  to {
    transform: rotate(360deg);
  }
}

/* In from the left, a short stop in the middle, then away to the right. */
@keyframes jl-drive {
  0% {
    translate: -110% 0;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1);
  }
  44% {
    translate: calc(50vw - 50%) 0;
  }
  58% {
    translate: calc(50vw - 50%) 0;
    animation-timing-function: cubic-bezier(0.55, 0.05, 0.7, 0.2);
  }
  100% {
    translate: calc(100vw + 10%) 0;
  }
}

@keyframes jl-arrive {
  from {
    translate: calc(var(--stage) * -0.5 - 70px) 0;
  }
}

@keyframes jl-wave {
  from {
    transform: skewY(-4deg);
  }
  to {
    transform: skewY(4deg) scaleX(0.97);
  }
}

@keyframes jl-scene-out {
  to {
    opacity: 0;
    scale: 0.97;
  }
}

@keyframes jl-wipe {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes jl-rise {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes jl-grow {
  to {
    scale: 1 1;
  }
}

@keyframes jl-track {
  from {
    opacity: 0;
    letter-spacing: 0.42em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.18em;
  }
}

@keyframes jl-fill {
  to {
    scale: 0.92 1;
  }
}

/* Short, wide phone screens held sideways: smaller globe, everything fits. */
@media (max-height: 520px) {
  .jl-globe-wrap {
    --E: min(38vmin, 220px);
    top: 40%;
  }

  html.jtt-loading .jtt-loader {
    --jl-road-y: 4vh;
  }
}


/* ==========================================================================
   3. SCROLL REVEAL

   The selector list below is the single visual contract; animations.js repeats
   the same list in its REVEAL constant so the observer watches exactly what CSS
   hides. Keep the two in step — the comment in animations.js points back here.

   `opacity` hides, and the reveal animates `translate` (the independent
   transform property) rather than `transform`, so existing `transform` hovers
   such as `.card:hover { translateY(-4px) }` keep working and simply compose on
   top of the finished reveal.

   Every entry in the list must be one class or attribute, never a descendant or
   child combinator: `:is()` takes the specificity of its most specific argument,
   so a single `.notfound > div` in here would lift the whole rule above the
   per-element overrides below it — the media settle and the quote card — and
   silently replace them with the plain rise. Anything that needs a combinator
   gets `data-reveal` on the element instead, as 404.php does.
   ========================================================================== */

html.jtt-reveal :is(
    .section-heading,
    .card,
    .feature,
    .step,
    .info-item,
    .fact,
    .faq__item,
    .itinerary__item,
    .vehicle-chip,
    .about-fact,
    .contact-list__item,
    .aside-card,
    .booking-form,
    .quote-card,
    .content-block,
    .toc,
    .note,
    .index-intro,
    .legal__updated,
    .blog-article__image,
    .page-hero__content,
    .page-hero__media,
    .hero__banner-wrap,
    .hero__banner-actions,
    .cta-section__inner > *,
    .footer__grid > *,
    [data-reveal]
  ):not(.is-in) {
  opacity: 0;
}

html.jtt-reveal :is(
    .section-heading,
    .card,
    .feature,
    .step,
    .info-item,
    .fact,
    .faq__item,
    .itinerary__item,
    .vehicle-chip,
    .about-fact,
    .contact-list__item,
    .aside-card,
    .booking-form,
    .quote-card,
    .content-block,
    .toc,
    .note,
    .index-intro,
    .legal__updated,
    .blog-article__image,
    .page-hero__content,
    .page-hero__media,
    .hero__banner-wrap,
    .hero__banner-actions,
    .cta-section__inner > *,
    .footer__grid > *,
    [data-reveal]
  ).is-in {
  animation: jtt-rise var(--jtt-dur) var(--jtt-ease) var(--jtt-delay, 0ms) both;
}

@keyframes jtt-rise {
  from {
    opacity: 0;
    translate: 0 var(--jtt-rise);
  }
}

/*
 * pages.css gives these their own `fade-up` on load. The reveal system now owns
 * their entrance, so the original animation is switched off here rather than
 * edited out of the copied stylesheet.
 */
html.jtt-reveal :is(.page-hero__content, .page-hero__media, .hero__content, .hero__media, .hero__banner) {
  animation: none;
}

/* Media reveals with a slow settle out of a very slight push-in — cinematic
   without ever cropping the artwork, because the whole element scales. */
html.jtt-reveal :is(.page-hero__media, .hero__banner-wrap, .blog-article__image).is-in {
  animation: jtt-reveal-media 1120ms var(--jtt-ease) var(--jtt-delay, 0ms) both;
}

@keyframes jtt-reveal-media {
  from {
    opacity: 0;
    translate: 0 26px;
    scale: 1.035;
  }
}

/* Gold hairlines draw themselves in once their block arrives. */
html.jtt-reveal .accent-rule,
html.jtt-reveal .eyebrow::before {
  transform-origin: left center;
}

html.jtt-reveal :is(.section-heading, .page-hero__content, .cta-section__inner > *, [data-reveal]):not(.is-in)
  :is(.accent-rule, .eyebrow)::before,
html.jtt-reveal :is(.section-heading, .page-hero__content, .cta-section__inner > *, [data-reveal]):not(.is-in)
  .accent-rule {
  scale: 0 1;
}

html.jtt-reveal .is-in .accent-rule,
html.jtt-reveal .is-in .eyebrow::before {
  animation: jtt-draw 620ms var(--jtt-ease) calc(var(--jtt-delay, 0ms) + 180ms) both;
}

@keyframes jtt-draw {
  from {
    scale: 0 1;
  }
  to {
    scale: 1 1;
  }
}

/*
 * Failsafe. The bootstrap script arms a timer that adds this class; animations.js
 * clears the timer the moment the observer is running. If the script never loads
 * or throws, every hidden block is shown a few seconds later rather than the page
 * staying blank.
 */
html.jtt-anim-done :is(
    .section-heading,
    .card,
    .feature,
    .step,
    .info-item,
    .fact,
    .faq__item,
    .itinerary__item,
    .vehicle-chip,
    .about-fact,
    .contact-list__item,
    .aside-card,
    .booking-form,
    .quote-card,
    .content-block,
    .toc,
    .note,
    .index-intro,
    .legal__updated,
    .blog-article__image,
    .page-hero__content,
    .page-hero__media,
    .hero__banner-wrap,
    .hero__banner-actions,
    .cta-section__inner > *,
    .footer__grid > *,
    [data-reveal]
  ) {
  opacity: 1 !important;
}

html.jtt-anim-done .accent-rule,
html.jtt-anim-done .eyebrow::before {
  scale: 1 1 !important;
}

/* ==========================================================================
   4. PARALLAX

   One rAF loop in animations.js writes `--jtt-py` on a handful of large images.
   `transform` is used here and `translate` by the reveal, so a photo can drift
   and fade in at the same time without the two fighting over one property.
   Switched off below 900px, where the travel distance is not worth the work.

   The whole framed box drifts — never the artwork inside a fixed frame. Most of
   these images are banners with a headline and a phone number baked into them,
   so the usual parallax trick of over-scaling the photo and sliding it behind a
   window would crop exactly the part that has to stay readable.
   ========================================================================== */

.hero__banner-wrap,
.page-hero__image,
.blog-article__image {
  transform: translate3d(0, var(--jtt-py, 0px), 0);
}

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */

.navbar {
  transition:
    box-shadow 0.26s ease,
    background-color 0.26s ease;
}

/* The navbar stays pinned (sticky, components.css) on every scroll. It used to
   lift away going down the page; the owner asked for it to stay put. */

.navbar.is-scrolled {
  box-shadow: 0 10px 34px -18px rgba(18, 59, 93, 0.34);
}

/* The logo eases down a couple of pixels once the page moves — the row keeps
   its 78px min-height, so nothing below it shifts. */
.brand__logo {
  transition: height 0.3s var(--jtt-ease);
}

.navbar.is-scrolled .brand__logo {
  height: 46px;
}

/* Reading-progress hairline along the bottom edge of the navbar. */
.navbar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.navbar__progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transform-origin: left center;
  scale: var(--jtt-progress, 0) 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar.is-scrolled .navbar__progress-bar {
  opacity: 1;
}

/* Nav links get a gold underline that grows from the middle on hover. */
.navbar__link::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold);
  scale: 0 1;
  opacity: 0;
  transition: scale 0.26s var(--jtt-ease), opacity 0.2s ease;
}

@media (hover: hover) {
  .navbar__link:hover::before {
    scale: 1 1;
    opacity: 0.9;
  }
}

.navbar__link.is-active::before {
  display: none; /* the active link already draws its own rule */
}

/* The dropdown drops rather than appearing, and its items follow in sequence. */
.navbar__dropdown {
  transition:
    opacity 0.2s var(--jtt-ease),
    transform 0.24s var(--jtt-ease),
    visibility 0.24s ease;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
}

.navbar__item:hover > .navbar__dropdown,
.navbar__item:focus-within > .navbar__dropdown {
  transform: none;
}

.navbar__dropdown-link {
  transition: background-color 0.18s ease, color 0.18s ease, translate 0.2s var(--jtt-ease);
}

@media (hover: hover) {
  .navbar__dropdown-link:hover {
    translate: 3px 0;
  }
}

.navbar__phone,
.navbar__toggle {
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s var(--jtt-ease);
}

.navbar__phone:active,
.navbar__toggle:active {
  transform: scale(0.96);
}

/* ==========================================================================
   6. MOBILE MENU
   ========================================================================== */

html.jtt-anim .mobile-menu {
  animation: jtt-menu-in 320ms var(--jtt-ease) both;
}

html.jtt-anim .mobile-menu.is-closing {
  animation: jtt-menu-out 220ms var(--jtt-ease-curtain) both;
  pointer-events: none;
}

@keyframes jtt-menu-in {
  from {
    opacity: 0;
    translate: 0 -14px;
  }
}

@keyframes jtt-menu-out {
  to {
    opacity: 0;
    translate: 0 -12px;
  }
}

/* Rows arrive one after another, then the buttons. Capped at ten so a long menu
   never leaves the last item waiting. */
html.jtt-anim .mobile-menu:not(.is-closing) .mobile-menu__list > li,
html.jtt-anim .mobile-menu:not(.is-closing) .mobile-menu__footer > * {
  animation: jtt-menu-row 380ms var(--jtt-ease) both;
}

html.jtt-anim .mobile-menu__list > li:nth-child(1) { animation-delay: 60ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(2) { animation-delay: 96ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(3) { animation-delay: 132ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(4) { animation-delay: 168ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(5) { animation-delay: 204ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(6) { animation-delay: 240ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(7) { animation-delay: 276ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(8) { animation-delay: 312ms; }
html.jtt-anim .mobile-menu__list > li:nth-child(n + 9) { animation-delay: 348ms; }
html.jtt-anim .mobile-menu__footer > *:nth-child(1) { animation-delay: 384ms; }
html.jtt-anim .mobile-menu__footer > *:nth-child(2) { animation-delay: 420ms; }
html.jtt-anim .mobile-menu__footer > *:nth-child(n + 3) { animation-delay: 456ms; }

@keyframes jtt-menu-row {
  from {
    opacity: 0;
    translate: -14px 0;
  }
}

/* The sub-list unrolls instead of appearing. */
html.jtt-anim .mobile-menu__sub {
  animation: jtt-sub-in 300ms var(--jtt-ease) both;
  transform-origin: top center;
}

@keyframes jtt-sub-in {
  from {
    opacity: 0;
    translate: 0 -8px;
  }
}

.mobile-menu__link,
.mobile-menu__sub-link,
.mobile-menu__group-head {
  transition: background-color 0.2s ease, color 0.2s ease, translate 0.2s var(--jtt-ease);
}

.mobile-menu__link:active,
.mobile-menu__sub-link:active,
.mobile-menu__group-head:active {
  translate: 3px 0;
}

/* The burger bars cross over with a little rotation rather than snapping. */
.navbar__toggle-bars,
.navbar__toggle-bars::before,
.navbar__toggle-bars::after {
  transition:
    transform 0.3s var(--jtt-ease),
    opacity 0.2s ease,
    background-color 0.2s ease;
}

/* ==========================================================================
   7. BUTTONS AND CALL-TO-ACTION MICRO-INTERACTIONS
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/*
 * A light sweeps across the filled buttons on hover. `z-index: -1` keeps it
 * inside the button's own stacking context — above the background, behind the
 * label — so no wrapper element is needed around the text.
 */
.btn--primary::after,
.btn--luxury::after,
.btn--whatsapp::after,
.btn--outline-light::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(
    114deg,
    transparent 28%,
    rgba(255, 255, 255, 0.26) 46%,
    rgba(255, 255, 255, 0.05) 56%,
    transparent 68%
  );
  translate: -130% 0;
  pointer-events: none;
}

.btn--luxury::after {
  background: linear-gradient(
    114deg,
    transparent 28%,
    rgba(217, 164, 65, 0.42) 46%,
    rgba(217, 164, 65, 0.08) 56%,
    transparent 68%
  );
}

@media (hover: hover) {
  .btn--primary:hover::after,
  .btn--luxury:hover::after,
  .btn--whatsapp:hover::after,
  .btn--outline-light:hover::after {
    animation: jtt-sheen 720ms var(--jtt-ease-soft);
  }
}

@keyframes jtt-sheen {
  from {
    translate: -130% 0;
  }
  to {
    translate: 130% 0;
  }
}

.btn:active {
  transform: translateY(0) scale(0.978);
}

/* A trailing arrow leans forward; a leading WhatsApp or phone glyph stays put. */
.btn > svg:last-child:not(:first-child) {
  transition: transform 0.24s var(--jtt-ease);
}

@media (hover: hover) {
  .btn:hover > svg:last-child:not(:first-child) {
    transform: translateX(4px);
  }
}

/* Secondary and ghost buttons lift on a teal hairline rather than a sheen. */
.btn--secondary,
.btn--ghost {
  transition:
    transform 0.18s var(--jtt-ease),
    box-shadow 0.22s ease,
    background-color 0.18s ease,
    border-color 0.22s ease,
    color 0.18s ease;
}

@media (hover: hover) {
  .btn--secondary:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
  }
}

/* ==========================================================================
   8. CARDS AND FLEET IMAGERY
   ========================================================================== */

.card {
  transition:
    transform 0.34s var(--jtt-ease),
    box-shadow 0.34s ease,
    border-color 0.34s ease;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
  }

  .card:hover .card__img {
    transform: scale(1.075);
  }
}

.card:active {
  transform: translateY(-2px);
}

.card__img {
  transition: transform 0.85s var(--jtt-ease);
  will-change: auto;
}

/* Keeps the category tag above the scrim and the sheen. */
.card__tag {
  z-index: 2;
  transition: translate 0.34s var(--jtt-ease), box-shadow 0.3s ease;
}

@media (hover: hover) {
  .card:hover .card__tag {
    translate: 0 -2px;
    box-shadow: var(--shadow-sm);
  }
}

/*
 * A single light sweeps across the photo on hover — and nothing else. The usual
 * partner to this, a scrim that darkens the lower half, is deliberately absent:
 * these are supplied banners with a headline baked into the artwork, and a
 * scrim would dim the very text it is meant to sit under.
 */
.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    116deg,
    transparent 34%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 64%
  );
  translate: -120% 0;
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover .card__media::after {
    animation: jtt-sheen 900ms var(--jtt-ease-soft);
  }
}

/* On the navy wedding cards the light is gold, not white. */
.card--luxury .card__media::after {
  background: linear-gradient(
    116deg,
    transparent 34%,
    rgba(217, 164, 65, 0.34) 50%,
    transparent 64%
  );
}

.card__link svg {
  transition: transform 0.26s var(--jtt-ease);
}

@media (hover: hover) {
  .card:hover .card__link svg {
    transform: translateX(6px);
  }
}

/* Feature tiles, steps, chips and info rows share one restrained lift. */
.feature,
.step,
.info-item,
.about-fact,
.aside-card,
.contact-card,
.vehicle-chip,
.toc {
  transition:
    transform 0.28s var(--jtt-ease),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

@media (hover: hover) {
  .feature:hover,
  .step:hover,
  .info-item:hover,
  .about-fact:hover,
  .vehicle-chip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }

  .step:hover,
  .info-item:hover {
    border-color: var(--teal-200);
  }
}

.feature__icon,
.contact-list__icon {
  transition: transform 0.34s var(--jtt-ease), background-color 0.28s ease;
}

@media (hover: hover) {
  .feature:hover .feature__icon {
    transform: translateY(-2px) scale(1.06);
  }

  .contact-list__item:hover .contact-list__icon {
    transform: scale(1.06);
  }
}

.step__num {
  transition: transform 0.34s var(--jtt-ease);
}

@media (hover: hover) {
  .step:hover .step__num {
    transform: translateY(-2px) rotate(-3deg);
  }
}

/* The fact strip's cells light up in sequence as the row arrives. */
.fact {
  position: relative;
}

.fact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  transform-origin: left center;
  scale: 0 1;
}

html.jtt-reveal .fact.is-in::before {
  animation: jtt-draw 560ms var(--jtt-ease) calc(var(--jtt-delay, 0ms) + 220ms) both;
}

html.jtt-anim-done .fact::before {
  scale: 1 1;
}

/* ==========================================================================
   9. HOMEPAGE HERO — cinematic reveal
   ========================================================================== */

/*
 * The banner is a finished composition with the headline baked into it, so
 * nothing is ever drawn on top of it permanently. The wrapper exists only so a
 * single light can sweep across the artwork once, as the page opens, and be
 * clipped to the rounded corners.
 */
.hero__banner-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-3);
}

.hero__banner-wrap .hero__banner {
  box-shadow: none;
  border-radius: 0;
}

.hero__banner-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 36%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 64%
  );
  translate: -130% 0;
}

html.jtt-reveal .hero__banner-wrap.is-in .hero__banner-sheen {
  animation: jtt-sheen 1500ms var(--jtt-ease-soft) 620ms both;
}

/*
 * There is deliberately no gold corner, badge or gradient on this banner, the
 * way the inner page heroes have one. The homepage artwork is a finished
 * composition that already carries the headline and the trust points, and the
 * project rule is that nothing is drawn on top of it. The light above is the
 * exception that proves it: it passes across once and leaves nothing behind.
 */

/* The quote card rises last, after the banner and the buttons. */
html.jtt-reveal .quote-card.is-in {
  animation: jtt-rise 820ms var(--jtt-ease) calc(var(--jtt-delay, 0ms) + 120ms) both;
}

/* ==========================================================================
   10. INNER PAGE HERO
   ========================================================================== */

.page-hero__media::before {
  transition: opacity 600ms ease 520ms;
}

html.jtt-reveal .page-hero__media:not(.is-in)::before {
  opacity: 0;
}

/* ==========================================================================
   11. ROUTE PAGES — the journey cue

   A dashed gold road runs along the foot of the header, and the accent rule
   under the eyebrow carries a marker that drives from one end to the other
   once, when the header arrives. Both are 2–3px decorations on a single
   element; neither costs a layout.
   ========================================================================== */

.single-jtt_route .page-hero,
.post-type-archive-jtt_route .page-hero {
  position: relative;
}

.single-jtt_route .page-hero::after,
.post-type-archive-jtt_route .page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--color-gold) 0 16px,
    transparent 16px 36px
  );
  opacity: 0.45;
  animation: jtt-road-dash 1.4s linear infinite;
  pointer-events: none;
}

.single-jtt_route .page-hero__rule {
  position: relative;
  width: 92px;
  overflow: visible;
}

.single-jtt_route .page-hero__rule::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 127, 140, 0.2);
  opacity: 0;
}

html.jtt-reveal .single-jtt_route .page-hero__content.is-in .page-hero__rule::after {
  animation: jtt-journey 1700ms var(--jtt-ease-soft) 700ms both;
}

@keyframes jtt-journey {
  0% {
    opacity: 0;
    translate: 0 0;
  }
  14% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    translate: 86px 0;
  }
}

/* The "Ahmedabad → Mumbai" eyebrow keeps a gently travelling lead-in bar. */
.single-jtt_route .page-hero .eyebrow::before {
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

/* ==========================================================================
   12. TOUR PAGES — the itinerary draws itself

   The day list already renders as a timeline with a 2px left border and a ring
   per day. The border cannot be animated cheaply, so a gradient line is laid
   over it and scaled down the item, and the ring pops as the day arrives.
   ========================================================================== */

.itinerary__item {
  position: relative;
}

.itinerary__item::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary), rgba(8, 127, 140, 0.15));
  transform-origin: top center;
  scale: 1 0;
  pointer-events: none;
}

.itinerary__item:last-child::after {
  display: none;
}

html.jtt-reveal .itinerary__item.is-in::after {
  animation: jtt-draw-down 720ms var(--jtt-ease) calc(var(--jtt-delay, 0ms) + 140ms) both;
}

@keyframes jtt-draw-down {
  from {
    scale: 1 0;
  }
  to {
    scale: 1 1;
  }
}

html.jtt-reveal .itinerary__item:not(.is-in)::before {
  scale: 0;
}

html.jtt-reveal .itinerary__item.is-in::before {
  animation: jtt-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--jtt-delay, 0ms) + 60ms) both;
}

@keyframes jtt-pop {
  from {
    scale: 0;
  }
  to {
    scale: 1;
  }
}

html.jtt-anim-done .itinerary__item::after {
  scale: 1 1;
}

html.jtt-anim-done .itinerary__item::before {
  scale: 1;
}

/* The day label slides in just ahead of its text. */
html.jtt-reveal .itinerary__item.is-in .itinerary__day {
  animation: jtt-slide-in 520ms var(--jtt-ease) calc(var(--jtt-delay, 0ms) + 160ms) both;
}

@keyframes jtt-slide-in {
  from {
    opacity: 0;
    translate: -10px 0;
  }
}

/* Tour and tempo cards keep a slightly warmer, longer photo settle. */
.post-type-archive-jtt_tour .card__img,
.single-jtt_tour .card__img,
.post-type-archive-jtt_tempo .card__img {
  transition-duration: 1s;
}

/* ==========================================================================
   13. WEDDING PAGES — luxury and cinematic

   Gold instead of teal, slower easings, and one slow light across the header
   photograph. The artwork itself is never recoloured or covered.
   ========================================================================== */

/*
 * The light stays inside a box that never moves and the gradient travels within
 * it, rather than the usual trick of sliding an oversized panel across. Sliding
 * would need `overflow: hidden` on the frame, and the frame deliberately spills:
 * the gold corner accent sits 12px outside it and the photograph carries its own
 * drop shadow. This way the sweep is clipped to the rounded photo for free and
 * nothing about the existing header has to be rearranged.
 */
.single-jtt_wedding_car .page-hero__media {
  position: relative;
}

.single-jtt_wedding_car .page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background-image: linear-gradient(
    108deg,
    transparent 42%,
    rgba(255, 255, 255, 0.22) 49%,
    rgba(217, 164, 65, 0.16) 53%,
    transparent 60%
  );
  background-size: 260% 100%;
  background-position: -120% 0;
  background-repeat: no-repeat;
  pointer-events: none;
}

html.jtt-reveal .single-jtt_wedding_car .page-hero__media.is-in::after {
  animation: jtt-sheen-sweep 1800ms var(--jtt-ease-soft) 700ms both;
}

@keyframes jtt-sheen-sweep {
  from {
    background-position: -120% 0;
  }
  to {
    background-position: 150% 0;
  }
}

html.jtt-reveal :is(.single-jtt_wedding_car, .post-type-archive-jtt_wedding_car)
  :is(.page-hero__media, .card).is-in {
  animation-duration: 1200ms;
}

/* The navy wash behind wedding and closing sections breathes very slowly. */
.section--navy::before,
.cta-section::before {
  animation: jtt-drift 26s ease-in-out infinite alternate;
}

@keyframes jtt-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -1.4%, 0) scale(1.05);
  }
}

/* Gold hairlines on the luxury cards brighten rather than just switching on. */
.card--luxury {
  transition:
    transform 0.42s var(--jtt-ease),
    box-shadow 0.42s ease,
    border-color 0.42s ease;
}

@media (hover: hover) {
  .card--luxury:hover {
    transform: translateY(-8px);
  }
}

/* ==========================================================================
   14. FAQ

   animations.js animates the answer's height open and closed around the
   `hidden` attribute that site.js sets, so the accordion keeps working exactly
   as before with JavaScript off or if this file is removed.
   ========================================================================== */

/* The answer carries 21px of bottom padding, which a border-box element still
   renders at `height: 0`; animations.js collapses the padding with the height
   so the row closes to nothing instead of to a sliver. */
.faq__answer.is-animating {
  overflow: hidden;
  transition:
    height 320ms var(--jtt-ease),
    padding-top 320ms var(--jtt-ease),
    padding-bottom 320ms var(--jtt-ease),
    opacity 260ms ease;
}

html.jtt-anim .faq__answer:not([hidden]):not(.is-animating) {
  animation: jtt-answer-in 340ms var(--jtt-ease) both;
}

@keyframes jtt-answer-in {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}

.faq__item {
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s var(--jtt-ease);
}

@media (hover: hover) {
  .faq__item:hover {
    border-color: var(--teal-200);
  }
}

.faq__question {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.faq__question:hover {
  background: rgba(8, 127, 140, 0.04);
}

.faq__icon::before,
.faq__icon::after {
  transition: transform 0.34s var(--jtt-ease), background-color 0.2s ease;
}

.faq__question[aria-expanded='true'] .faq__icon::before {
  transform: rotate(180deg);
}

/* ==========================================================================
   15. FORMS
   ========================================================================== */

.field input,
.field select,
.field textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.24s var(--jtt-ease),
    background-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.16);
}

.field__label {
  transition: color 0.2s ease;
}

.field:focus-within .field__label {
  color: var(--color-primary);
}

/* An error slides in under its field instead of appearing beneath it. */
.field__error:not([hidden]) {
  animation: jtt-slide-in 260ms var(--jtt-ease) both;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  animation: jtt-shake 420ms ease both;
}

@keyframes jtt-shake {
  0%,
  100% {
    translate: 0 0;
  }
  22% {
    translate: -4px 0;
  }
  44% {
    translate: 4px 0;
  }
  66% {
    translate: -2px 0;
  }
  88% {
    translate: 2px 0;
  }
}

/* The copy-the-text fallback arrives rather than appears. The confirmation note
   beside it is a reveal target, so §3 already gives it the same entrance. */
.form-fallback:not([hidden]),
.config-notice[data-status]:not([hidden]) {
  animation: jtt-rise 420ms var(--jtt-ease) both;
}

/* ==========================================================================
   16. WHATSAPP BUTTON AND MOBILE CALL BAR
   ========================================================================== */

/*
 * The circle grows into a labelled pill by opening its padding and the label's
 * max-width, not by animating `width` — `width: 56px` to `width: auto` is not
 * interpolatable and would jump. `overflow` stays visible so the pulse ring in
 * components.css, which scales out past the button's edge, is not clipped; the
 * label clips itself instead.
 */
.whatsapp-fab,
.call-fab {
  width: auto;
  min-width: 56px;
  padding-inline: 0;
  transition:
    transform 0.3s var(--jtt-ease),
    background-color 0.24s ease,
    box-shadow 0.3s ease,
    padding 0.36s var(--jtt-ease),
    border-radius 0.36s var(--jtt-ease);
  animation: jtt-fab-in 620ms var(--jtt-ease) 500ms both;
}

.whatsapp-fab::before,
.call-fab::before {
  transition: opacity 0.24s ease;
}

@keyframes jtt-fab-in {
  from {
    opacity: 0;
    scale: 0.5;
    translate: 0 14px;
  }
}

.whatsapp-fab__label,
.call-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: max-width 0.36s var(--jtt-ease), opacity 0.26s ease, margin-left 0.36s var(--jtt-ease);
}

/* On a mouse the bubble opens into a labelled pill; on touch it stays a circle. */
@media (hover: hover) and (min-width: 768px) {
  .whatsapp-fab:hover,
  .call-fab:hover {
    padding-inline: 18px;
    border-radius: var(--radius-btn);
    transform: translateY(-3px);
  }

  .whatsapp-fab:hover {
    box-shadow: 0 18px 36px -14px rgba(18, 140, 74, 0.7);
  }

  .call-fab:hover {
    box-shadow: 0 18px 36px -14px rgba(8, 127, 140, 0.7);
  }

  .whatsapp-fab:hover .whatsapp-fab__label,
  .call-fab:hover .call-fab__label {
    max-width: 190px;
    opacity: 1;
    margin-left: 10px;
  }

  /* A circular ring around a pill reads as a mistake, so it steps aside. */
  .whatsapp-fab:hover::before,
  .call-fab:hover::before {
    opacity: 0;
  }
}

.whatsapp-fab:active,
.call-fab:active {
  transform: scale(0.94);
}

/* ==========================================================================
   17. FOOTER, BREADCRUMBS AND SMALL LINKS
   ========================================================================== */

.footer__links a,
.footer__bottom-links a,
.breadcrumbs__link,
.aside-card__list a,
.toc__list a {
  display: inline-block;
  transition: color 0.2s ease, translate 0.22s var(--jtt-ease);
}

@media (hover: hover) {
  .footer__links a:hover,
  .footer__bottom-links a:hover,
  .breadcrumbs__link:hover,
  .aside-card__list a:hover,
  .toc__list a:hover {
    translate: 3px 0;
  }
}

.footer__social {
  transition:
    border-color 0.24s ease,
    color 0.24s ease,
    background-color 0.24s ease,
    transform 0.28s var(--jtt-ease);
}

@media (hover: hover) {
  .footer__social:hover {
    transform: translateY(-3px);
  }
}

/* ==========================================================================
   18. RESPONSIVE TUNING

   Phones keep every reveal, the loader, the menu and the press feedback; they
   lose the scroll-linked parallax, which is where the cost is, and travel a
   shorter distance so nothing feels slow on a small screen.
   ========================================================================== */

@media (max-width: 899px) {
  .hero__banner-wrap,
  .page-hero__image,
  .blog-article__image {
    transform: none;
  }

  :root {
    --jtt-rise: 16px;
    --jtt-dur: 560ms;
  }

  html.jtt-reveal :is(.page-hero__media, .hero__banner-wrap, .blog-article__image).is-in {
    animation-duration: 760ms;
  }

  .section--navy::before,
  .cta-section::before {
    animation: none;
  }
}

/* Coarse pointers get the press feedback that the hover rules above skip. */
@media (hover: none) {
  .card:active,
  .feature:active,
  .step:active,
  .vehicle-chip:active,
  .about-fact:active {
    transform: scale(0.99);
  }
}

/* ==========================================================================
   19. REDUCED MOTION

   global.css already flattens every duration. This removes the hidden starting
   states too, so a visitor who asks for less motion gets the finished page
   immediately rather than a page that fades in very quickly.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html.jtt-reveal :is(
      .section-heading,
      .card,
      .feature,
      .step,
      .info-item,
      .fact,
      .faq__item,
      .itinerary__item,
      .vehicle-chip,
      .about-fact,
      .contact-list__item,
      .aside-card,
      .booking-form,
      .quote-card,
      .content-block,
      .toc,
      .note,
      .index-intro,
      .legal__updated,
      .blog-article__image,
      .page-hero__content,
      .page-hero__media,
      .hero__banner-wrap,
      .hero__banner-actions,
      .cta-section__inner > *,
      .footer__grid > *,
      [data-reveal]
    ) {
    opacity: 1 !important;
    animation: none !important;
  }

  .accent-rule,
  .eyebrow::before,
  .fact::before,
  .itinerary__item::after,
  .itinerary__item::before {
    scale: 1 1 !important;
    opacity: 1;
    animation: none !important;
  }

  .hero__banner-wrap,
  .page-hero__image,
  .blog-article__image {
    transform: none !important;
  }

  .single-jtt_route .page-hero::after,
  .post-type-archive-jtt_route .page-hero::after,
  .section--navy::before,
  .cta-section::before,
  .whatsapp-fab::before,
  .call-fab::before {
    animation: none !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
