/**
 * Diloscape Travels — colors sampled from logo (forest green + gold)
 */
:root {
  --brand-forest-darkest: #0a1f14;
  --brand-forest-dark: #133a22;
  --brand-forest-primary: #1b4d3e;
  --brand-forest-medium: #2a5c45;
  --brand-forest-light: #3d8b6e;
  --brand-gold: #c5a059;
  --brand-gold-light: #e5d4a8;
  --brand-gold-bright: #d4af37;
  --brand-cream: #f5f5f0;
  --brand-sand: #9a7b4f;
  --brand-ink: #142820;
}

.gold-gradient-text {
  background: linear-gradient(
    135deg,
    #fff8eb 0%,
    var(--brand-gold-light) 45%,
    var(--brand-gold) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.forest-gradient-bg,
.red-gradient-bg {
  background: linear-gradient(
    135deg,
    var(--brand-forest-dark) 0%,
    var(--brand-forest-primary) 55%,
    var(--brand-forest-darkest) 100%
  );
}

::selection {
  background-color: var(--brand-forest-primary);
  color: var(--brand-gold-light);
}

::-webkit-scrollbar-track {
  background: var(--brand-forest-darkest);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-forest-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold);
}

/* Full-width section background photos (homepage & inner pages) */
.section-bg-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: scale(1.06);
}

.flight-desk-bg {
  /* Soft sky texture only — no aircraft tail behind copy */
  background-image: url('../images/flight_wing_sky.jpg');
  background-size: cover;
  background-position: 85% 40%;
  opacity: 0.14;
  filter: blur(2px);
}

.flight-desk-bg-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.flight-desk-bg-wrap .flight-desk-bg {
  position: absolute;
  inset: -8%;
  width: 120%;
  height: 120%;
}

.flight-window-photo {
  object-position: 58% 38%;
}

/* Airplane window — layered gold / bronze frame (logo palette) */
.flight-window-shell {
  width: min(100%, 20rem);
  height: 26rem;
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.55));
}

@media (min-width: 640px) {
  .flight-window-shell {
    width: 20rem;
    height: 27rem;
  }
}

.flight-window-outer {
  width: 100%;
  height: 100%;
  padding: 4px;
  border-radius: 9999px;
  background: linear-gradient(
    160deg,
    var(--brand-gold-light) 0%,
    var(--brand-gold) 35%,
    #8a6f3f 70%,
    var(--brand-sand) 100%
  );
  box-shadow:
    0 0 0 1px rgba(229, 212, 168, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.flight-window-mid {
  width: 100%;
  height: 100%;
  padding: 11px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #2a211c 0%, #14100e 100%);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.65);
}

.flight-window-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  border: 7px solid #3d322a;
  box-shadow:
    inset 0 0 35px rgba(0, 0, 0, 0.75),
    inset 0 2px 8px rgba(255, 255, 255, 0.06);
  background: #0a0a0a;
}

.flight-window-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 42%,
    transparent 58%,
    rgba(0, 0, 0, 0.12) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.flight-window-badge {
  position: absolute;
  bottom: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(12, 10, 9, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(197, 160, 89, 0.45);
  color: var(--brand-gold-light);
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.flight-window-badge i {
  color: #fff;
  font-size: 11px;
}

@media (min-width: 640px) {
  .flight-window-badge {
    font-size: 11px;
    padding: 0.5rem 1.1rem;
  }
}

.global-highlights-bg {
  background-image: url('../images/sri_lanka_sigiriya.jpg');
  background-size: cover;
  background-position: center 40%;
}

.section-bg-stats {
  background-image: url('../images/sri_lanka_tea_country.jpg');
  background-position: center 30%;
}

.section-bg-packages {
  background-image: url('../images/sri_lanka_beaches.jpg');
  background-position: center 60%;
}

.section-bg-services {
  background-image: url('../images/sri_lanka_tea_country.jpg');
  background-position: center 45%;
}

.section-bg-how {
  background-image: url('../images/sri_lanka_wildlife.jpg');
  background-position: center 40%;
}

.section-bg-why {
  background-image: url('../images/sri_lanka_culture.jpg');
  background-position: center 35%;
}

.section-bg-gallery {
  background-image: url('../images/sri_lanka_sigiriya.jpg');
  background-position: center 25%;
}

.section-bg-testimonials {
  background-image: url('../images/sri_lanka_beaches.jpg');
  background-position: center 70%;
}

.section-bg-faq {
  background-image: url('../images/sri_lanka_tea_country.jpg');
  background-position: center 50%;
}

.section-bg-cta {
  background-image: url('../images/sri_lanka_sigiriya.jpg');
  background-position: center 30%;
}

.section-bg-newsletter {
  background-image: url('../images/sri_lanka_beaches.jpg');
  background-position: center 80%;
}

.section-overlay-light {
  background: linear-gradient(
    180deg,
    rgba(245, 245, 240, 0.94) 0%,
    rgba(245, 245, 240, 0.88) 50%,
    rgba(245, 245, 240, 0.94) 100%
  );
}

.section-overlay-light-soft {
  background: rgba(245, 245, 240, 0.9);
}

.section-overlay-dark {
  background: linear-gradient(
    135deg,
    rgba(10, 31, 20, 0.92) 0%,
    rgba(19, 58, 34, 0.88) 50%,
    rgba(10, 31, 20, 0.94) 100%
  );
}

.section-overlay-dark-strong {
  background: linear-gradient(
    to top,
    rgba(10, 31, 20, 0.95) 0%,
    rgba(10, 31, 20, 0.82) 45%,
    rgba(10, 31, 20, 0.88) 100%
  );
}

.section-overlay-forest {
  background: linear-gradient(
    135deg,
    rgba(19, 58, 34, 0.93) 0%,
    rgba(27, 77, 62, 0.9) 100%
  );
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Site preloader */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-forest-darkest);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 20rem;
}

.site-preloader__ring {
  position: absolute;
  top: 0.5rem;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  border: 2px solid rgba(197, 160, 89, 0.15);
  border-top-color: var(--brand-gold);
  border-right-color: var(--brand-gold-light);
  animation: preloaderSpin 1s linear infinite;
}

.site-preloader__logo {
  width: min(72vw, 14rem);
  height: auto;
  object-fit: contain;
  margin-top: 1.25rem;
  animation: preloaderPulse 1.8s ease-in-out infinite;
}

.site-preloader__tagline {
  margin-top: 1.25rem;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-gold-light);
  font-weight: 600;
}

.site-preloader__bar {
  margin-top: 1.5rem;
  width: 10rem;
  height: 3px;
  border-radius: 9999px;
  background: rgba(197, 160, 89, 0.2);
  overflow: hidden;
}

.site-preloader__bar-fill {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-gold-bright));
  animation: preloaderBar 1.1s ease-in-out infinite;
}

@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloaderPulse {
  0%,
  100% {
    opacity: 0.88;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes preloaderBar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

body.preloader-active {
  overflow: hidden;
}
