/* ==========================================================================
   Phy Travellers — design tokens & signature elements
   Palette: Deep Canopy Green / Savanna Gold / Nile Sky Blue / Savanna Mist
   Type: Fraunces (display) + Work Sans (body / utility)
   ========================================================================== */

:root{
  --canopy:        #16342A;
  --canopy-2:      #1F4A3A;
  --canopy-3:      #0E241D;
  --gold:          #D9A441;
  --gold-light:    #F0C466;
  --gold-dark:     #A9761F;
  --olive:         #6B7A3A;
  --olive-light:   #8B9C55;
  --sky:           #3E7C8C;
  --clay:          #7A4A2E;
  --clay-light:    #B98457;
  --mist:          #F7F2E7;
  --mist-2:        #EFE6D3;
  --ink:           #211D16;
  --ink-soft:      #55503F;
  --line:          rgba(33,29,22,0.12);
  --shadow-soft:   0 20px 45px -20px rgba(14,36,29,0.35);
  --shadow-card:   0 10px 30px -12px rgba(14,36,29,0.25);
  --glass-bg:      rgba(255,255,255,0.58);
  --glass-bg-strong: rgba(255,255,255,0.72);
  --glass-border:  rgba(255,255,255,0.55);
  --glass-bg-dark: rgba(255,255,255,0.08);
  --glass-border-dark: rgba(255,255,255,0.16);
  --ease-glass: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Glassmorphism + motion system
   ========================================================================== */
@keyframes pageIn{
  from{ opacity:0; transform: translateY(14px) scale(0.99); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
@keyframes floatY{
  0%, 100%{ transform: translateY(0) rotate(-8deg); }
  50%{ transform: translateY(-8px) rotate(-8deg); }
}
@keyframes floatUp{
  0%{ opacity:0; transform: translateY(16px) scale(0.92); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}
@keyframes shimmerSweep{
  0%{ transform: translateX(-130%) skewX(-12deg); }
  100%{ transform: translateX(230%) skewX(-12deg); }
}
@keyframes glowPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(240,196,102,0.35); }
  50%{ box-shadow: 0 0 0 8px rgba(240,196,102,0); }
}
@keyframes chipDrift{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce){
  .permit-stamp, .mood-chip, #translate-float{ animation: none !important; }
}

/* Glass surfaces -- translucent, blurred, soft-bordered panels used
   throughout for cards, chips, floating controls and overlays. */
.glass-card{
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.6);
}
.glass-tile{
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.glass-dark{
  background: var(--glass-bg-dark);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border-dark);
}
.glass-chip{
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.55);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body{
  background: var(--mist);
  color: var(--ink);
  font-family: 'Work Sans', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display{
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-variation-settings: 'SOFT' 18, 'opsz' 60;
  letter-spacing: -0.01em;
}
.hero-fluid{
  font-weight: 620;
  font-variation-settings: 'SOFT' 44, 'opsz' 144;
}
.h1-fluid{ font-variation-settings: 'SOFT' 30, 'opsz' 100; }
.h2-fluid{ font-variation-settings: 'SOFT' 22, 'opsz' 60; }
.wordmark{
  font-variation-settings: 'SOFT' 34, 'WONK' 1, 'opsz' 30;
  letter-spacing: -0.015em;
}
.font-display em, .font-display i, .italic.font-display{
  font-variation-settings: 'SOFT' 55, 'opsz' 144;
}

/* Utility label / eyebrow treatment — the tracked small-caps voice used
   throughout for wayfinding labels (not decoration, but a real signal:
   these always mark a place, park, or section name). */
.eyebrow{
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold-dark);
}
.eyebrow.on-dark{ color: var(--gold-light); }

/* ---- Signature element #1: the Trail Line -------------------------------
   A contour / trekking-path divider that stands in for the ordinary
   hairline rule. Uganda's parks are read by elevation contour and by
   trail; this line is drawn once and reused as the page's seam. */
.trail-divider{
  display:block;
  width:100%;
  height:28px;
  color: var(--gold);
}
.trail-divider.dark{ color: var(--canopy-2); }
.trail-divider svg{ width:100%; height:100%; display:block; }

/* ---- Signature element #2: the Permit Stamp -----------------------------
   A circular, rotated badge that echoes the permit stamps this company
   arranges every week — used for trust markers, not for decoration. */
.permit-stamp{
  --stamp-size: 128px;
  width: var(--stamp-size);
  height: var(--stamp-size);
  border-radius: 999px;
  border: 1.5px dashed currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: rotate(-8deg);
  flex-shrink: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.06);
  animation: floatY 5s ease-in-out infinite;
}
.permit-stamp::before{
  content:'';
  position:absolute;
  inset: 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.55;
}
.permit-stamp .stamp-text{
  font-family:'Work Sans',sans-serif;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  text-align:center;
  line-height:1.25;
}

/* Card lift */
.lift{ transition: transform .5s var(--ease-smooth), box-shadow .5s var(--ease-smooth); will-change: transform; }
.lift:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }

/* Scroll reveal */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease-smooth), transform .9s var(--ease-smooth); will-change: transform, opacity; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: .08s; }
.reveal-delay-2{ transition-delay: .16s; }
.reveal-delay-3{ transition-delay: .24s; }

/* Buttons -- glass sheen sweeps across on hover */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-weight:600; font-size:.95rem; letter-spacing:.01em;
  padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform .35s var(--ease-smooth), box-shadow .35s var(--ease-smooth), background-color .3s ease, color .3s ease;
  white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:active{ transform: scale(0.97); }
.btn::after{
  content:''; position:absolute; top:0; left:0; width:40%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-130%) skewX(-12deg);
  pointer-events:none;
}
.btn:hover::after{ animation: shimmerSweep 1.1s var(--ease-smooth); }
.btn-gold{
  background: var(--gold); color: var(--canopy-3);
  box-shadow: 0 10px 24px -10px rgba(200,155,60,0.65);
}
.btn-gold:hover{ background: var(--gold-light); box-shadow: 0 16px 32px -10px rgba(200,155,60,0.85); transform: translateY(-2px); }
.btn-outline{
  border: 1.5px solid currentColor; color: inherit; background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-outline:hover{ background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn-whatsapp{
  background:#25D366; color:#08351c;
  box-shadow: 0 10px 24px -10px rgba(37,211,102,0.6);
}
.btn-whatsapp:hover{ background:#33e274; transform: translateY(-2px); }

/* Header -- glass blur intensifies once scrolled */
#site-header{
  transition: background-color .5s var(--ease-glass), box-shadow .5s ease, backdrop-filter .5s ease;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}
#site-header.scrolled{
  background: rgba(22,52,42,0.82);
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.4);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav-link{
  position: relative; font-weight: 500; font-size: .93rem;
}
.nav-link::after{
  content:''; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-glass);
}
.nav-link:hover::after, .nav-link.active::after{ transform: scaleX(1); }
.nav-link.active{ color: var(--gold-light); }

/* Floating WhatsApp button */
#wa-float{
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 58px; height: 58px; border-radius: 999px;
  background:#25D366; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.45);
  transition: transform .3s var(--ease-glass);
  animation: floatUp .6s var(--ease-glass) both;
}
#wa-float:hover{ transform: scale(1.08); }
#wa-float::before{
  content:''; position:absolute; inset:-6px; border-radius:999px;
  border:2px solid rgba(37,211,102,0.5);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse{
  0%{ transform: scale(0.9); opacity: .9; }
  100%{ transform: scale(1.5); opacity: 0; }
}

/* Section texture: a very subtle contour-topography wash behind dark sections */
.canopy-texture{
  background-color: var(--canopy);
  background-image:
    radial-gradient(circle at 18% 20%, rgba(200,155,60,0.10), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(62,124,140,0.14), transparent 45%);
}

/* Image frame — soft rounded, consistent ratio helpers */
.img-frame{ border-radius: 1.25rem; overflow:hidden; }

/* Marquee-style strip for trust logos / stats */
.stat-number{ font-family:'Fraunces',serif; font-weight:600; }

/* Form elements */
.field-label{ font-size:.82rem; font-weight:600; color: var(--ink); margin-bottom:.35rem; display:block; }
.field-input{
  width:100%; border-radius:.75rem; border:1.5px solid var(--line);
  background:#fff; padding:.75rem 1rem; font-size:.95rem; color:var(--ink);
  transition: border-color .3s var(--ease-smooth), box-shadow .3s var(--ease-smooth);
}
.field-input:focus{ outline:none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,155,60,0.18); }
.field-input::placeholder{ color:#9a9384; }

/* Accessible focus ring app-wide */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2.5px solid var(--gold);
  outline-offset: 2px;
}

/* Day-step badges for itineraries (legitimately sequential content) */
.day-badge{
  font-family:'Fraunces',serif; font-weight:600; font-size:1.1rem;
  width:2.75rem; height:2.75rem; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background: var(--canopy); color: var(--gold-light); flex-shrink:0;
}

/* Mobile nav panel -- true fluid-height accordion via CSS grid-rows,
   instead of animating to a guessed max-height (which always feels
   either too fast or clipped, since it animates against a fixed
   target rather than the content's real height). */
#mobile-nav{
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows .5s var(--ease-smooth), backdrop-filter .3s ease;
  background: rgba(14,36,29,0.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
#mobile-nav.open{ grid-template-rows: 1fr; }
#mobile-nav-inner{ min-height: 0; overflow: hidden; }

::selection{ background: var(--gold); color: var(--canopy-3); }

/* FAQ accordion: rotating indicator + soft fade-in on open */
details summary{ list-style:none; }
details summary::-webkit-details-marker{ display:none; }
details summary span{ display:inline-block; transition: transform .35s var(--ease-glass), color .3s ease; }
details[open] summary span{ transform: rotate(45deg); color: var(--gold); }
details[open] > p{ animation: floatUp .4s var(--ease-glass) both; }


/* ---- Reflections of Enjoyment: mood chips (glass pills, gentle drift) ---- */
.mood-chip{
  display:inline-flex; align-items:center; padding:.4rem .9rem; border-radius:999px;
  font-size:.78rem; font-weight:600; color:#fff;
  background: var(--olive); opacity:.94;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  animation: chipDrift 4.5s ease-in-out infinite;
  transition: transform .3s var(--ease-glass);
}
.mood-chip:hover{ transform: translateY(-3px) scale(1.05); }
.mood-chip:nth-child(2){ background: var(--gold-dark); animation-delay: .3s; }
.mood-chip:nth-child(3){ background: var(--clay); animation-delay: .6s; }
.mood-chip:nth-child(4){ background: var(--canopy-2); animation-delay: .9s; }
.mood-chip:nth-child(5){ background: var(--sky); animation-delay: 1.2s; }

/* ---- Itinerary score badges (Enjoyment / Sustainability), glass pills ---- */
.score-badge{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.72rem; font-weight:700; letter-spacing:.02em;
  padding:.3rem .65rem; border-radius:999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid transparent;
  transition: transform .25s var(--ease-glass);
}
.score-badge:hover{ transform: translateY(-2px); }
.score-badge-gold{ background: rgba(217,164,65,0.16); color: var(--gold-dark); border-color: rgba(217,164,65,0.3); }
.score-badge-olive{ background: rgba(107,122,58,0.16); color: var(--olive-dark, #4E5A29); border-color: rgba(107,122,58,0.3); }

/* ---- Explore Countries & Cities: country cards ---- */
.country-card{
  position: relative; display:block; border-radius: 1.1rem; overflow:hidden;
  aspect-ratio: 3 / 4; isolation: isolate;
  transition: transform .5s var(--ease-glass), box-shadow .5s var(--ease-glass);
}
.country-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.country-card img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease-glass); }
.country-card:hover img{ transform: scale(1.07); }
.country-card-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding: 1.1rem; background: linear-gradient(to top, rgba(14,36,29,0.92) 0%, rgba(14,36,29,0.35) 55%, transparent 100%);
}
.country-card-flag{ font-size:1.5rem; line-height:1; margin-bottom:.4rem; transition: transform .3s var(--ease-glass); }
.country-card:hover .country-card-flag{ transform: scale(1.2) rotate(-6deg); }

/* ---- VR / 360 exhibition preview frame ---- */
.vr-frame{
  position:relative; border-radius: 1.5rem; overflow:hidden; cursor: grab;
  aspect-ratio: 4 / 3; user-select:none; touch-action: pan-y;
  box-shadow: var(--shadow-soft); border: 3px solid rgba(240,196,102,0.35);
}
.vr-frame:active{ cursor: grabbing; }
.vr-frame img{
  position:absolute; top:0; left:50%; height:100%; width:220%; max-width:220%;
  object-fit:cover; transform: translateX(-50%); will-change: transform;
}
.vr-frame-hint{
  position:absolute; left:50%; bottom:14px; transform: translateX(-50%);
  display:flex; align-items:center; gap:.4rem;
  background: rgba(14,36,29,0.6); color:#F7F2E7; font-size:.72rem; font-weight:600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  padding:.4rem .8rem; border-radius:999px; pointer-events:none;
  transition: opacity .5s var(--ease-smooth);
  animation: chipDrift 3s ease-in-out infinite;
}
.vr-frame.vr-engaged .vr-frame-hint{ opacity: 0; }

/* ---- Currency selector (glass pill) ---- */
.currency-select{
  appearance:none; background: rgba(255,255,255,0.1); color: inherit;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,0.28); border-radius:999px;
  padding:.4rem 1.9rem .4rem .9rem; font-size:.78rem; font-weight:600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23F0C466'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position: right .55rem center; background-size: 1rem;
  cursor:pointer;
  transition: border-color .25s ease, transform .25s var(--ease-glass);
}
.currency-select:hover{ border-color: rgba(240,196,102,0.6); }
.currency-select option{ color:#211D16; }
.price-tag{ font-weight:700; }

/* ---- Google Translate: compact floating glass pill, independent of the
   nav so it never competes with header links for space ---- */
#translate-float{
  position: fixed; top: 92px; right: 20px; z-index: 45;
  display:flex; align-items:center; gap:.4rem;
  background: rgba(14,36,29,0.62); backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; padding: .45rem .7rem .45rem .8rem;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,0.4);
  max-width: 150px; overflow: hidden;
  animation: floatUp .6s var(--ease-glass) .15s both;
  transition: transform .3s var(--ease-glass), border-color .3s ease;
}
#translate-float:hover{ transform: translateY(-2px); border-color: rgba(240,196,102,0.5); }
#translate-float svg{ flex-shrink:0; color: var(--gold-light); }
#google_translate_element{ display:flex; align-items:center; min-width:0; }
#google_translate_element .goog-te-gadget{ font-family:'Work Sans',sans-serif !important; font-size:0 !important; color: transparent !important; }
#google_translate_element .goog-te-gadget > span{ display:none !important; }
#google_translate_element .goog-te-gadget > div,
#google_translate_element .goog-te-gadget select{
  font-size:.72rem !important; font-family:'Work Sans',sans-serif !important;
  color: var(--mist) !important; background: transparent !important; border:none !important;
  max-width: 90px;
}
#google_translate_element .goog-te-gadget select{ appearance:auto; }
.goog-te-banner-frame{ display:none !important; }
.goog-te-gadget-icon{ display:none !important; }
body{ top: 0 !important; }

/* ---- Blog card + destination page shared bits ---- */
.badge-pill{
  display:inline-flex; align-items:center; gap:.4rem; font-size:.75rem; font-weight:600;
  padding:.35rem .8rem; border-radius:999px; background: var(--mist-2); color: var(--ink-soft);
}
.partner-chip{
  display:flex; align-items:center; justify-content:center; text-align:center;
  padding: 1rem; border-radius: .9rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12); font-size:.78rem; font-weight:600; color: var(--mist);
  min-height: 4.5rem;
}
.payment-chip{
  display:inline-flex; align-items:center; gap:.5rem; padding:.5rem .9rem; border-radius:.7rem;
  background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  font-size:.75rem; font-weight:600; color: var(--mist)/80;
}

/* ---- Cross-device hardening (phones, foldables, tablets, desktop) ---- */
html, body{ overflow-x: hidden; max-width: 100%; }
img, svg, video{ max-width: 100%; height: auto; }
button, a, input, textarea, select{ -webkit-tap-highlight-color: transparent; }

/* Fluid display type: scales smoothly between the smallest folded
   phone width (~280px) and large desktops, instead of jumping at
   one hard breakpoint. */
.hero-fluid{ font-size: clamp(2rem, 5vw + 1rem, 3.75rem); line-height: 1.08; }
.h1-fluid{ font-size: clamp(1.85rem, 4.5vw + 1rem, 3rem); line-height: 1.15; }
.h2-fluid{ font-size: clamp(1.6rem, 3.2vw + 1rem, 2.25rem); line-height: 1.2; }

/* Form inputs at 16px+ prevent iOS Safari's auto-zoom-on-focus,
   which otherwise fires on any input font-size under 16px. */
.field-input{ font-size: 16px; }

/* Permit stamp scales down on narrow/folded screens so its rotated
   bounding box never risks bleeding past a tight column. */
.permit-stamp{ --stamp-size: clamp(92px, 26vw, 128px); }

@media (min-width: 1600px){
  .max-w-7xl{ max-width: 88rem; }
}

/* ---- Single-file SPA page switching ---- */
.page{ display: none; }
.page.active{ display: block; animation: pageIn .7s var(--ease-smooth) both; }

/* Skip link for keyboard users (multi-page: present on every page) */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:100;
  background: var(--gold); color: var(--canopy-3);
  padding:.7rem 1.2rem; border-radius:0 0 .6rem 0; font-weight:600; font-size:.85rem;
}
.skip-link:focus{ left:0; }
