/* ═══════════════════════════════════════
   RIMAL VOYAGES — ANIMATIONS & EFFECTS
═══════════════════════════════════════ */

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(.22,1,.36,1), transform 0.7s cubic-bezier(.22,1,.36,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Stagger delays */
.reveal:nth-child(1),.reveal-left:nth-child(1),.reveal-right:nth-child(1){transition-delay:.05s}
.reveal:nth-child(2),.reveal-left:nth-child(2),.reveal-right:nth-child(2){transition-delay:.15s}
.reveal:nth-child(3),.reveal-left:nth-child(3),.reveal-right:nth-child(3){transition-delay:.25s}
.reveal:nth-child(4),.reveal-left:nth-child(4),.reveal-right:nth-child(4){transition-delay:.35s}
.reveal:nth-child(5),.reveal-left:nth-child(5),.reveal-right:nth-child(5){transition-delay:.42s}
.reveal:nth-child(6),.reveal-left:nth-child(6),.reveal-right:nth-child(6){transition-delay:.49s}
.reveal:nth-child(7),.reveal-left:nth-child(7),.reveal-right:nth-child(7){transition-delay:.56s}
.reveal:nth-child(8),.reveal-left:nth-child(8),.reveal-right:nth-child(8){transition-delay:.63s}

/* ── Nav scroll effect ── */
nav {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
nav.scrolled {
  box-shadow: 0 2px 24px rgba(99,56,6,.10);
  background: rgba(255,253,248,.98) !important;
}

/* ── Hero parallax dunes ── */
.dunes {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Hero text animation ── */
.hero-content .eyebrow {
  animation: fadeSlideUp 1s cubic-bezier(.22,1,.36,1) 0.2s both;
}
.hero-content h1 {
  animation: fadeSlideUp 1s cubic-bezier(.22,1,.36,1) 0.4s both;
}
.hero-content p {
  animation: fadeSlideUp 1s cubic-bezier(.22,1,.36,1) 0.6s both;
}
.hero-content .btns {
  animation: fadeSlideUp 1s cubic-bezier(.22,1,.36,1) 0.8s both;
}
@keyframes fadeSlideUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Stats counter animation ── */
.stat-n {
  transition: transform 0.3s ease;
}
.stat:hover .stat-n {
  transform: scale(1.08);
  color: var(--slight);
}

/* ── Cards hover glow ── */
.exc-card, .act-card, .testi, .svc, .tf-card {
  transition: transform 0.3s cubic-bezier(.22,1,.36,1),
              box-shadow 0.3s ease,
              border-color 0.3s ease !important;
}
.exc-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(99,56,6,.13) !important;
  border-color: rgba(186,117,23,.35) !important;
}
.act-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 36px rgba(99,56,6,.10) !important;
}
.testi:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(99,56,6,.08);
}

/* ── Service cards shimmer ── */
.svc {
  position: relative;
  overflow: hidden;
}
.svc::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(239,159,39,.06), transparent);
  transition: left 0.6s ease;
}
.svc:hover::after { left: 150%; }

/* ── Buttons pulse & lift ── */
.btn-gold {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,159,39,.35);
}
.btn-gold:active { transform: translateY(0); }

.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99,56,6,.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ── Ripple on buttons ── */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background: rgba(255,255,255,.3);
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ── WhatsApp FAB bounce ── */
.wa-fab {
  animation: waBounce 2.5s ease-in-out 3s 3;
}
@keyframes waBounce {
  0%,100% { transform: scale(1); }
  30%      { transform: scale(1.15); }
  60%      { transform: scale(0.95); }
}
.wa-fab:hover {
  transform: scale(1.1) !important;
  box-shadow: 0 8px 28px rgba(37,211,102,.45) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ── Image overlay zoom ── */
.exc-img {
  overflow: hidden;
}
.exc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,44,10,.45) 0%, transparent 60%);
  transition: opacity 0.3s ease;
}
.exc-card:hover .exc-img::after { opacity: 0.7; }

/* ── Scroll indicator pulse ── */
.hero-scroll .scroll-line {
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; transform: scaleY(1); }
  50%      { opacity: .9; transform: scaleY(1.15); }
}

/* ── Price badge pop ── */
.badge-save {
  animation: badgePop 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes badgePop {
  from { transform: scale(0); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}

/* ── Loading skeleton shimmer ── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--off) 25%, rgba(186,117,23,.08) 50%, var(--off) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}

/* ── Section title underline draw ── */
.s-title::after {
  content: '';
  display: block;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--sgold), transparent);
  margin-top: 8px;
  transition: width 0.8s cubic-bezier(.22,1,.36,1);
}
.s-title.visible::after { width: 60px; }

/* ── Smooth page transition ── */
body {
  animation: pageIn 0.5s ease both;
}
@keyframes pageIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* ── Nav links underline hover ── */
.nav-links a:not(.btn):not(.nav-cta) {
  position: relative;
}
.nav-links a:not(.btn):not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--sgold);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):not(.nav-cta):hover::after { width: 100%; }

/* ── Footer links slide ── */
.ft-col a {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease, color 0.2s ease !important;
}
.ft-col a:hover { padding-left: 8px !important; }

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Fix hero buttons alignment ── */
.hero-content .btns {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap;
}
.hero-content .btns .btn-gold,
.hero-content .btns .btn-ghost {
  flex-shrink: 0;
}

/* ── Gallery ── */
.gallery-item { transition: transform 0.4s ease, filter 0.4s ease; }
.gallery-item:hover { transform: scale(1.03); filter: brightness(1.15); z-index: 2; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(74,44,10,.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--spale); font-size: 14px; font-weight: 500; }

/* ── Météo ── */
.meteo-card {
  background: var(--white); border: .5px solid rgba(186,117,23,.15);
  border-radius: var(--rl); padding: 1rem; text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.meteo-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(99,56,6,.1); }
.meteo-ico { font-size: 22px; margin-bottom: 4px; }
.meteo-mois { font-size: 11px; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }
.meteo-temp { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--sdark); }

/* ── FAQ ── */
.faq-item {
  border: .5px solid rgba(186,117,23,.15); border-radius: var(--r);
  overflow: hidden; transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--smid); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem; cursor: pointer; font-size: 14px;
  font-weight: 500; color: var(--text); background: var(--white);
  transition: background 0.2s ease;
  gap: 1rem;
}
.faq-q:hover { background: var(--off); }
.faq-q.open { background: var(--spale); color: var(--sdark); }
.faq-arrow {
  font-size: 20px; color: var(--sgold); flex-shrink: 0;
  transition: transform 0.3s ease; line-height: 1;
}
.faq-q.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 13px; color: var(--muted); line-height: 1.8;
  padding: 0 1.25rem; background: var(--spale);
  transition: max-height 0.4s cubic-bezier(.22,1,.36,1), padding 0.3s ease;
}
.faq-a.open { max-height: 200px; padding: 1rem 1.25rem; }

/* ── Newsletter input ── */
#newsletterEmail::placeholder { color: rgba(255,255,255,.4); }
#newsletterEmail:focus { border-color: var(--sgold) !important; outline: none; }

/* ── Trusted by logos ── */
.trust-bar {
  display: flex; gap: 2rem; align-items: center; justify-content: center;
  flex-wrap: wrap; padding: 2rem 3rem;
  background: var(--off); border-top: .5px solid rgba(186,117,23,.1);
}
.trust-item { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust-item strong { color: var(--sdark); }

@media(max-width:768px){
  .meteo-card { padding: .75rem .5rem; }
  .meteo-temp { font-size: 18px; }
  .gallery-item { height: 160px !important; }
}

/* ══ DESTINATION CARDS ══════════════════════════════════ */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.dest-card {
  background: var(--white);
  border: .5px solid rgba(186,117,23,.15);
  border-radius: var(--rl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1), box-shadow 0.3s ease;
}
.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(99,56,6,.13);
}
.dest-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dest-emoji {
  font-size: 56px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.dest-card:hover .dest-emoji { transform: scale(1.15); }
.dest-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(74,44,10,.85);
  color: var(--spale);
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: .08em;
  font-weight: 500;
  backdrop-filter: blur(4px);
}
.dest-badge.best { background: var(--ocean); color: white; }
.dest-body { padding: 1.5rem; }
.dest-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--sd);
  margin-bottom: 4px;
}
.dest-loc {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.dest-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.dest-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
  padding: .75rem;
  background: var(--off);
  border-radius: var(--r);
}
.dest-includes span {
  font-size: 11px;
  color: var(--sdark);
  font-weight: 500;
}
.dest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: .5px solid rgba(186,117,23,.1);
  padding-top: .85rem;
}
.dest-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--sdark);
}
.dest-price small {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

@media(max-width:768px){
  .dest-grid { grid-template-columns: 1fr; }
  .dest-img { height: 150px; }
  .dest-emoji { font-size: 44px; }
}

/* ── Real photo overlay on dest cards ── */
.dest-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,44,10,.75) 0%, rgba(0,0,0,.15) 100%);
  transition: opacity 0.3s ease;
}
.dest-card:hover .dest-img-overlay {
  opacity: 0.6;
}
.dest-img {
  position: relative;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.dest-card:hover .dest-img {
  transform: scale(1.03);
}
/* fix badge position above overlay */
.dest-badge {
  z-index: 2;
  position: absolute;
}

/* ── Real photos on excursion cards ── */
.exc-img {
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.exc-card:hover .exc-img {
  transform: scale(1.05);
}
.exc-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,44,10,.6) 0%, transparent 60%);
  z-index: 1;
}

/* ── Destination image title ── */
.dest-img-title {
  position: absolute;
  bottom: 14px; left: 14px;
  color: white;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  letter-spacing: .02em;
}
