/* ═══════════════════════════════════════════════════════════
   PREPARED TRAVELLER — pt-shared.css
   Shared across every page on the site.
   Page-specific CSS lives in an inline <style> in each page.
   Version: 2026-03
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   RESET
───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─────────────────────────────────────────────
   DESIGN TOKENS — single source of truth
───────────────────────────────────────────── */
:root {
  --navy:         #0e2a38;
  --navy-deep:    #091e29;
  --navy-mid:     #123344;
  --navy-soft:    #1a4056;
  --gold:         #b8924a;
  --gold-light:   #d4aa6a;
  --gold-pale:    rgba(184,146,74,0.12);

  --white:        #ffffff;
  --cream:        #faf7f2;
  --parchment:    #f5f0e8;

  --text-light:   #f0ece4;
  --text-muted-d: rgba(240,236,228,0.62);
  --text-faint-d: rgba(240,236,228,0.35);

  --ink:          #1a1714;
  --charcoal:     #3a3530;
  --muted:        #7a7168;
  --border-light: rgba(0,0,0,0.08);
}

/* ─────────────────────────────────────────────
   BASE
───────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   GDPR COOKIE CONSENT BANNER
───────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy-deep);
  border-top: 1px solid rgba(184,146,74,0.4);
  padding: 1rem 2rem;
  font-size: 0.85rem;
  display: none;
}
#cookie-banner.visible { display: block; }

.cookie-banner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner-row p {
  flex: 1 1 280px;
  line-height: 1.6;
  color: var(--text-muted-d);
}
.cookie-banner-row a { color: var(--gold-light); text-decoration: underline; }

.cookie-btn-group { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-btn {
  cursor: pointer;
  border: none;
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn-accept { background: var(--gold); color: var(--navy-deep); font-weight: 500; }
.cookie-btn-accept:hover { background: var(--gold-light); }
.cookie-btn-reject,
.cookie-btn-choose {
  background: transparent;
  color: var(--text-muted-d);
  border: 1px solid rgba(240,236,228,0.25);
}
.cookie-btn-reject:hover,
.cookie-btn-choose:hover { border-color: rgba(240,236,228,0.55); color: var(--text-light); }

#cookie-choices {
  display: none;
  padding: 0.8rem 0 0.4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.8rem;
}
#cookie-choices.open { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.cookie-check-label {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-muted-d); font-size: 0.82rem; cursor: pointer;
}
.cookie-check-label input[type="checkbox"] { accent-color: var(--gold); width: 14px; height: 14px; }
.cookie-btn-save {
  background: var(--gold); color: var(--navy-deep); font-weight: 500;
  padding: 0.45rem 1rem; font-size: 0.78rem; letter-spacing: 0.06em;
  cursor: pointer; border: none; border-radius: 2px;
  font-family: 'DM Sans', sans-serif; margin-left: auto;
}
.cookie-btn-save:hover { background: var(--gold-light); }

/* ─────────────────────────────────────────────
   SITE HEADER
   Fixed 64 px bar. "Prepared" white, "Traveller" gold.
───────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(184,146,74,0.25);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.site-logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; transition: opacity 0.2s;
}
.site-logo:hover { opacity: 0.85; }
.logo-word-1 { color: var(--text-light); }
.logo-word-2 { color: var(--gold-light); }

.header-nav { display: flex; align-items: center; }
.header-nav a {
  display: block; height: 64px; line-height: 64px;
  padding: 0 1.2rem;
  color: var(--text-muted-d); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover,
.header-nav a.active { color: var(--gold-light); background: rgba(184,146,74,0.07); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-light); transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--navy-deep); z-index: 199;
  border-bottom: 1px solid rgba(184,146,74,0.25);
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 1rem 2rem;
  color: var(--text-muted-d); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover { color: var(--gold-light); background: rgba(184,146,74,0.07); }

/* ─────────────────────────────────────────────
   SITE FOOTER
   Single horizontal row on desktop.
   "Prepared" white | "Traveller" gold.
───────────────────────────────────────────── */
#site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(184,146,74,0.2);
  padding: 2.5rem 2rem 1.8rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-brand-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; transition: opacity 0.2s;
}
.footer-brand-name:hover { opacity: 0.85; }
.footer-logo-w1 { color: var(--text-light); }
.footer-logo-w2 { color: var(--gold-light); }
.footer-tagline {
  font-size: 0.78rem; color: var(--text-faint-d);
  letter-spacing: 0.05em; font-style: italic;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0; align-items: center; }
.footer-nav a {
  color: var(--text-faint-d); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.footer-nav a:first-child { border-left: none; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1200px; margin: 1.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.72rem; color: var(--text-faint-d); letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────
   HUB PAGE LAYOUT
   Used by city hub pages (london, capetown, vienna)
   and their sub-pages.
───────────────────────────────────────────── */
.hub-page {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Full-width hero image with city name */
.hub-hero {
  position: relative;
  min-height: 50dvh;
  display: flex;
  align-items: flex-end;
  margin-top: 64px; /* clear fixed header */
  overflow: hidden;
}
.hub-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hub-hero source { display: none; }
.hub-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    var(--navy) 0%,
    rgba(14,42,56,0.35) 55%,
    transparent 100%
  );
}
.hub-hero-text {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem 3.5rem; width: 100%;
}
.hub-hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(3.5rem, 13vw, 9rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--text-light);
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
  margin-bottom: 0.6rem;
}
.hub-hero-sub {
  font-size: clamp(0.82rem, 1.5vw, 1.05rem);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(240,236,228,0.75); font-style: italic;
}

/* Content wrapper below the hero */
.hub-content-section {
  flex: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 0 2rem 5rem; width: 100%;
}
.hub-content-card {
  background: rgba(255,255,255,0.05);
  border-radius: 2rem;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Prose inside the card */
.hub-intro { font-size: 1rem; line-height: 1.85; color: var(--text-light); }
.hub-intro h1,
.hub-intro h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.02em; line-height: 1.2;
  color: var(--text-light); margin: 0 0 1rem;
}
.hub-intro h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--gold-light); margin: 1.4rem 0 0.6rem;
}
.hub-intro p { margin-bottom: 1em; color: rgba(240,236,228,0.88); font-weight: 300; }
.hub-intro ul,
.hub-intro ol { padding-left: 1.5rem; margin-bottom: 1em; color: rgba(240,236,228,0.88); }
.hub-intro li { margin-bottom: 0.5em; line-height: 1.7; }
.hub-intro em   { color: var(--gold-light); font-style: italic; }
.hub-intro strong { color: var(--text-light); font-weight: 600; }
.hub-intro img {
  max-width: 100%; height: auto;
  border-radius: 1rem; margin: 2rem 0; display: block;
}

/* ─────────────────────────────────────────────
   HUB CARD GRID
   Navigation tiles on each city hub page.
───────────────────────────────────────────── */
.hub-grid-wrapper { margin-top: 1.5rem; }
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.hub-card {
  position: relative;
  height: 220px;
  border-radius: 12px; overflow: hidden;
  text-decoration: none;
  background-size: cover; background-position: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.hub-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.18));
}
.hub-card-content {
  position: absolute; bottom: 1.25rem; left: 1.25rem; right: 1.25rem;
  color: #fff; z-index: 1;
}
.hub-card-content h3 {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem; font-weight: 900; line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  color: #fff;
}
.hub-card-content p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem; opacity: 0.9; line-height: 1.4;
  color: #fff;
}

/* ─────────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ─────────────────────────────────────────────
   RESPONSIVE — SHARED BREAKPOINTS
───────────────────────────────────────────── */
@media (max-width: 860px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .footer-nav a { padding: 0.3rem 0.9rem; font-size: 0.75rem; }
  .footer-nav a:first-child { padding-left: 0; }
}
@media (max-width: 640px) {
  .hub-content-card { padding: 1.5rem; }
  .hub-card { height: 180px; }
  .hub-card:hover { transform: none; }
  .hub-card::before { background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.3)); }
  .hub-card-content { bottom: 1rem; left: 1rem; right: 1rem; }
  .hub-card-content h3 { font-size: 1.2rem; }
  .hub-card-content p  { font-size: 0.82rem; }
}
@media (max-width: 460px) {
  .footer-nav a { border-left: none; padding: 0.3rem 0; margin-right: 1rem; }
}

/* ─────────────────────────────────────────────
   MEDIA UTILITIES
   Constrain inline images and videos.
   pt-media-landscape: apply to the outer wrapper div.
   pt-media-portrait:  apply to the img or video element directly.
                       Wrapper div must have style="text-align:center;"
───────────────────────────────────────────── */
.pt-media-landscape { max-width: 720px; margin: 0 auto; }
.pt-media-portrait  { display: inline-block; max-height: 70vh; width: auto; }

/* Override .content-area img { display:block } which appears in page-level styles
   and prevents text-align:center from centering portrait images. */
.content-area img.pt-media-portrait { display: inline-block; max-height: 70vh; width: auto; margin: 0; }
