/* ============================================================
   JACKAL ADVENTURES AFRICA — DESIGN SYSTEM 
 
   ============================================================ */

/* ---------- Google Fonts (Cormorant Garamond + Jost) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ---------- Design Tokens (HSL) ---------- */
:root {
  --background: 38 30% 97%;
  --foreground: 25 25% 12%;

  --card: 0 0% 100%;
  --card-foreground: 25 25% 12%;

  --primary: 34 42% 39%;
  --primary-foreground: 38 30% 97%;

  --secondary: 35 25% 92%;
  --secondary-foreground: 25 25% 12%;

  --muted: 35 18% 94%;
  --muted-foreground: 25 12% 44%;

  --accent: 34 38% 48%;
  --accent-foreground: 38 30% 97%;

  --border: 34 20% 86%;
  --input: 34 20% 86%;
  --ring: 34 42% 39%;

  --sand: 38 35% 94%;
  --sand-dark: 35 22% 86%;
  --gold: 36 62% 48%;
  --gold-dark: 34 42% 39%;
  --charcoal: 22 18% 13%;
  --warm-white: 38 30% 97%;
  --whatsapp: 142 70% 49%;

  --radius: 0.375rem;

  /* Convenience solid colors */
  --c-bg:        hsl(var(--background));
  --c-fg:        hsl(var(--foreground));
  --c-primary:   hsl(var(--primary));
  --c-gold:      hsl(var(--gold));
  --c-charcoal:  hsl(var(--charcoal));
  --c-sand:      hsl(var(--sand));
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1875rem;   /* ~19px mobile */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) {
  body { font-size: 1.25rem; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--c-fg);
}
h1 { font-size: clamp(2.75rem, 5vw, 5rem); font-weight: 300; line-height: 1.08; }
h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 1.75rem); font-weight: 500; line-height: 1.3; }

p  { font-weight: 300; }

/* ---------- Navigation typography (Jost) ---------- */
.site-header, .main-navigation, nav a, .menu-item a {
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Text selection ---------- */
::selection {
  background: hsl(var(--gold) / 0.28);
  color: var(--c-fg);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: hsl(var(--primary) / 0.35);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: hsl(var(--primary) / 0.55); }

/* ---------- Layout helpers ---------- */
.container-luxury {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container-luxury { padding: 0 2rem; } }
@media (min-width: 1024px) { .container-luxury { padding: 0 3rem; } }

.section-padding    { padding: 5rem 0; }
.section-padding-sm { padding: 3rem 0; }
@media (min-width: 768px) {
  .section-padding    { padding: 7rem 0; }
  .section-padding-sm { padding: 4rem 0; }
}

/* ---------- Luxury utilities ---------- */
.label-text {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.divider-subtle {
  width: 4rem;
  height: 1px;
  background: hsl(var(--primary) / 0.4);
  margin: 1.25rem 0;
}

.luxury-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: hsl(var(--gold) / 0.9);
  border: 1px solid hsl(var(--gold) / 0.3);
  padding: 4px 12px;
}

/* ---------- Buttons ---------- */
.btn,
.wp-block-button__link,
button.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: hsl(var(--primary-foreground));
  border: 1px solid var(--c-primary);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover,
.wp-block-button__link:hover {
  background: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -14px hsl(var(--charcoal) / 0.5);
}

.btn-gold {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-charcoal);
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
}

/* Gold shimmer sweep */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, hsl(var(--warm-white) / 0.18) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn-shimmer:hover::after { transform: translateX(100%); }

/* ---------- Cards ---------- */
.card-luxury {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(0,0,0,0.08);
  transition: transform .5s ease, box-shadow .5s ease;
}
.card-luxury:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px -4px rgba(0,0,0,0.12);
}

/* ---------- Links ---------- */
a { color: var(--c-primary); transition: color .3s ease; }
a:hover { color: hsl(var(--gold)); }

.link-luxury { position: relative; display: inline-block; }
.link-luxury::after {
  content: "";
  position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: var(--c-gold);
  transition: width .35s ease;
}
.link-luxury:hover::after { width: 100%; }

/* ---------- Quote / editorial ---------- */
.quote-mark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem;
  color: hsl(var(--gold) / 0.3);
  line-height: 0.6;
}

/* ---------- Forms ---------- */
input, textarea, select {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--input));
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  color: var(--c-fg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px hsl(var(--gold) / 0.25);
}

/* ---------- Animations ---------- */
@keyframes fade-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ken-burns {
  0%   { transform: scale(1) translate(0,0); }
  50%  { transform: scale(1.12) translate(-2%, 1.5%); }
  100% { transform: scale(1) translate(0,0); }
}
.animate-fade-in { animation: fade-in .8s ease-out forwards; }
.animate-ken-burns { animation: ken-burns 22s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Dark mode (optional) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --background: 20 10% 8%;
    --foreground: 40 33% 95%;
    --card: 20 10% 12%;
    --primary: 38 70% 52%;
    --border: 20 10% 22%;
  }
}