/* ============================================
   BANFF JOURNEY — global.css  v2.1.0
   All shared design tokens, component styles,
   and animations. Loaded on every page.
   Tailwind handles utilities; this handles
   everything Tailwind can't do inline.
============================================ */

/* ─── RESET & BASE ─────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a    { text-decoration: none; }
*, *::before, *::after { box-sizing: border-box; }

/* ─── DESIGN TOKENS (CSS VARIABLES) ────────────
   To change brand colours site-wide, edit ONLY
   these two lines — everything else inherits.
─────────────────────────────────────────────── */
:root {
  --teal:         #1A9E91;   /* Primary brand colour */
  --teal-dark:    #0D7A6E;   /* Hover state */
  --teal-light:   #3EC9BB;
  --teal-surface: #F0FAFA;   /* Light teal backgrounds */
  --amber:        #D97B3A;   /* Accent / CTA highlight */
  --amber-light:  #F5A85A;   /* Lighter amber for hero text */
  --night:        #1C1C2E;   /* Dark headings */
  --body:         #2D3748;   /* Body text */
  --muted:        #6B7280;   /* Secondary text */
  --border:       rgba(0,0,0,0.06);
  --nav-h:        78px;      /* Approx fixed nav height — used for scroll-margin */
}

/* ─── TYPOGRAPHY UTILITY ────────────────────── */
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ─── SCROLL MARGIN — compensate fixed nav on anchor jumps */
[id] { scroll-margin-top: var(--nav-h); }

/* ─── NAVIGATION ────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 1.25rem 0;
}

/*
  Nav starts transparent on ALL pages. JS adds .solid class after 60px scroll.
  Logo mark uses teal fill (set directly in SVG) so it's clear on any background.
*/
#nav.solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.06);
  padding: 0.75rem 0;
}
#nav.solid .nav-link        { color: var(--night) !important; }
#nav.solid .nav-link:hover  { color: var(--teal)  !important; }
#nav.solid .nav-logo-text   { color: var(--night) !important; }
#nav.solid .bj-logo-rect    { fill: var(--teal)   !important; }
#nav.solid .nav-logo-img    { filter: none; }
#nav.solid .nav-book {
  background:   var(--teal)  !important;
  color:        white        !important;
  border-color: var(--teal)  !important;
}
#nav.solid #hamburger {
  color:      var(--night)           !important;
  background: rgba(0,0,0,0.06)      !important;
}

/* Cart link in nav */
.nav-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  min-height: 44px; /* touch target */
}
.nav-cart-label { font-size: 0.82rem; font-weight: 600; }
.nav-cart:hover { color: white; }
body:not(.home) .nav-cart,
#nav.solid .nav-cart { color: var(--night) !important; }
body:not(.home) .nav-cart:hover,
#nav.solid .nav-cart:hover { color: var(--teal) !important; }
.nav-cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  background: var(--amber);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Mobile hamburger touch target */
#hamburger {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── HERO BASE ─────────────────────────────── */
.hero {
  min-height: 100svh; /* svh = small viewport height — fixes iOS address bar */
  position: relative;
  display: flex;
  flex-direction: column;
  /* PRODUCTION — add photo per page:
     background-image: url('...');
     background-size: cover;
     background-position: center 65%;            */
}
/* Fallback for browsers that don't support svh */
@supports not (min-height: 100svh) {
  .hero { min-height: 100vh; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,20,35,0.28) 0%,
    rgba(8,20,35,0.12) 40%,
    rgba(8,20,35,0.55) 85%,
    rgba(8,20,35,0.72) 100%
  );
}
.hero-h1 {
  font-size: clamp(2.2rem, 6.5vw, 5rem); /* reduced floor for small phones */
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber-light);
}

/* ─── PAGE HERO (shorter — Tours, About, Contact) */
.page-hero {
  padding-top: 100px;
  min-height: 48vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0D4A5A 0%, #1A9E91 50%, #081C28 100%);
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,20,35,0.35) 0%, rgba(8,20,35,0.6) 100%);
}
.page-hero-h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem); /* tighter floor for phones */
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: white;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ─── TOUR CARDS ────────────────────────────── */
.tour-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
/* Disable hover lift on touch devices — no hover state on mobile */
@media (hover: hover) {
  .tour-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(0,0,0,0.13); }
  .tour-card:hover .card-img { transform: scale(1.07); }
}
.card-img { transition: transform 0.5s ease; }

/* Tour image placeholder gradients
   PRODUCTION: replace with real background-image per card */
.img-lake-louise  { background: linear-gradient(160deg, #1CA09A 0%, #2DBCB6 35%, #5DD0CB 65%, #87D8D4 100%); }
.img-icefields    { background: linear-gradient(185deg, #6BADD6 0%, #8FCCE8 25%, #D8EFF8 52%, #7BA8C4 75%, #3A6882 100%); }
.img-banff-day    { background: linear-gradient(150deg, #3A5A8A 0%, #C08040 35%, #D07030 45%, #1A6070 60%, #0A3A4A 100%); }
.img-emerald      { background: linear-gradient(155deg, #286040 0%, #1A9E91 38%, #0D7A6E 65%, #3A7030 100%); }
.img-stargazing   { background: radial-gradient(ellipse at 30% 30%, #2A2060 0%, #120E2C 40%, #0A0818 100%); }
.img-icefield-adv { background: linear-gradient(165deg, #7ABBE0 0%, #ADDAEF 28%, #E0F0F8 52%, #8AB8CC 72%, #3A6882 100%); }
.img-canmore      { background: linear-gradient(170deg, #2A6030 0%, #3A8A3A 32%, #5AAA40 58%, #2A5020 80%, #1A3018 100%); }
.img-waterton     { background: linear-gradient(155deg, #3A5A88 0%, #5A80A8 30%, #80A0C0 55%, #4A7050 72%, #2A4838 100%); }

/* ─── REVIEWS ───────────────────────────────── */
.review-card {
  border-left: 3px solid var(--teal);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.09);
  }
}

/* Live Trustindex review panels */
.bj-review-panel {
  overflow: hidden; /* contain widget overflow on mobile */
  min-width: 0;     /* prevent flex/grid blowout */
}
.bj-review-panel .trustindex-widget,
.bj-review-panel iframe {
  max-width: 100% !important;
  width: 100% !important;
}

/* ─── BUTTONS ───────────────────────────────── */
.btn-primary {
  background: var(--teal);
  color: white;
  min-height: 44px; /* WCAG touch target */
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,158,145,0.35);
  }
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  min-height: 44px;
  transition: background 0.2s, transform 0.15s;
}
@media (hover: hover) {
  .btn-whatsapp:hover {
    background: #1DAE56;
    transform: translateY(-1px);
  }
}
.btn-outline-white {
  color: white;
  border: 1.5px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  min-height: 44px;
  transition: background 0.2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.2); }

/* ─── STATS ─────────────────────────────────── */
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

/* ─── WHY CHOOSE US FEATURES ────────────────── */
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-surface);
  color: var(--teal);
  flex-shrink: 0;
}

/* ─── CTA SECTION ───────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  /* PRODUCTION: background-image: url('...Icefield_Parkway-hero.jpeg');
     background-size: cover; background-position: center 40%;           */
  background: linear-gradient(135deg, #0D4A5A 0%, #1A9E91 40%, #0D7A6E 70%, #081C28 100%);
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,28,40,0.82) 0%, rgba(8,28,40,0.45) 60%, rgba(8,28,40,0.2) 100%);
}

/* ─── FOOTER ────────────────────────────────── */
.footer-link {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  font-size: 0.875rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-link:hover { color: white; }

/* ─── SILHOUETTE WAVE ───────────────────────── */
.silhouette { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }

/* ─── STARS ─────────────────────────────────── */
.stars { color: var(--amber-light); letter-spacing: 1px; }

/* ─── SCROLL FADE-IN ────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ─── MISC UTILITIES ─────────────────────────  */
.hover-teal:hover { color: var(--teal) !important; }

/* ─── MOBILE-SPECIFIC REFINEMENTS ──────────── */
@media (max-width: 640px) {
  /* Tighten section vertical rhythm on small phones */
  .py-24 { padding-top: 4rem; padding-bottom: 4rem; }
  .py-28 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .py-20 { padding-top: 3.5rem; padding-bottom: 3.5rem; }

  /* Review badge buttons — stack vertically, full width on very small screens */
  .review-platform-badge-row {
    flex-direction: column;
    align-items: stretch;
  }

  /* Ensure all interactive elements meet 44px touch target */
  a, button {
    min-height: 44px;
  }
}

