/* ═══════════════════════════════════════════════════════
   TradeWatch UK — Shared Design System
   theme.css — include on every page
═══════════════════════════════════════════════════════ */

:root {
  --primary:   #31144b;
  --secondary: #f1d47a;
  --bg:        #faf7ff;
  --navy:      #1a0b2e;
  --ink:       #0f0720;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Lexend', sans-serif; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Typography helpers ── */
.font-display { font-family: 'Playfair Display', Georgia, serif; }
.font-heading  { font-family: 'Lexend', sans-serif; }
.font-body     { font-family: 'Plus Jakarta Sans', sans-serif; }

.hero-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero-display em {
  font-style: italic;
  color: var(--secondary);
  position: relative;
}
.hero-display em::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), rgba(241,212,122,0));
  border-radius: 2px;
}

/* ── Section label pill ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(49,20,75,.07);
  padding: 5px 14px;
  border-radius: 999px;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* On dark backgrounds */
.section-label-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(241,212,122,.15);
  padding: 5px 14px;
  border-radius: 999px;
}
.section-label-gold::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(241,212,122,.35);
  border: none;
  line-height: 1;
}
.btn-gold:hover {
  background: #f5e08a;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(241,212,122,.45);
}
.btn-gold:active { transform: translateY(0); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(49,20,75,.25);
  border: none;
  line-height: 1;
}
.btn-dark:hover  { background: #4a1a72; transform: translateY(-1px); }
.btn-dark:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid rgba(49,20,75,.25);
  transition: background .2s, transform .15s;
  line-height: 1;
}
.btn-outline:hover { background: rgba(49,20,75,.05); transform: translateY(-1px); }

/* ── Card hover ── */
.card-hover {
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(49,20,75,.13);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ── Hero background ── */
.hero-bg {
  background: radial-gradient(ellipse 80% 60% at 20% 40%, #4a1a72 0%, #31144b 40%, #1a0b2e 100%);
  position: relative;
  overflow: hidden;
}

/* ── Page header (for inner pages) ── */
.page-header {
  background: linear-gradient(135deg, #1a0b2e 0%, #31144b 55%, #4a1a72 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .025;
  pointer-events: none;
}
.page-header-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.page-header-orb-1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(241,212,122,.1) 0%, transparent 70%);
  top: -80px; right: -80px;
}
.page-header-orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(138,68,160,.15) 0%, transparent 70%);
  bottom: -40px; left: -40px;
}

/* ── Noise overlay (hero sections) ── */
.hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Mesh orbs ── */
.mesh-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.mesh-orb-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(241,212,122,.12) 0%, transparent 70%); top: -100px; right: -100px; animation: orbFloat 12s ease-in-out infinite; }
.mesh-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(138,68,160,.18) 0%, transparent 70%); bottom: -80px; left: -80px; animation: orbFloat 15s ease-in-out infinite reverse; }
.mesh-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(241,212,122,.08) 0%, transparent 70%); top: 40%; left: 30%; animation: orbFloat 10s ease-in-out infinite 3s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-30px, 20px) scale(1.06); }
  66%       { transform: translate(20px, -15px) scale(.96); }
}

/* ── Badge pulse ── */
.badge-pulse { animation: goldPulse 3s ease-in-out infinite; }
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241,212,122,.5); }
  50%       { box-shadow: 0 0 0 10px rgba(241,212,122,.0); }
}

/* ── Animated counter ── */
.count-up { font-variant-numeric: tabular-nums; }

/* ── Navigation ── */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(49,20,75,.14);
  padding: 6px;
  z-index: 100;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-item {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  color: #475569;
  border-radius: 10px;
  transition: background .15s, color .15s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.dropdown-item:hover { background: #faf7ff; color: #31144b; font-weight: 600; }
.nav-scrolled { box-shadow: 0 4px 24px rgba(49,20,75,.1); }
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* ── Form fields ── */
.tw-input {
  width: 100%;
  border: 1.5px solid #e8e4f4;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  background: white;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.tw-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(49,20,75,.1); }
.tw-input::placeholder { color: #94a3b8; }

.tw-select {
  width: 100%;
  border: 1.5px solid #e8e4f4;
  border-radius: 12px;
  padding: 12px 40px 12px 16px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.tw-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(49,20,75,.1); }

.tw-textarea {
  width: 100%;
  border: 1.5px solid #e8e4f4;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  background: white;
  outline: none;
  resize: none;
  transition: border-color .2s, box-shadow .2s;
}
.tw-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(49,20,75,.1); }
.tw-textarea::placeholder { color: #94a3b8; }

.tw-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-family: 'Lexend', sans-serif;
}

.form-field {
  background: #f8f7ff;
  border: 1.5px solid #e8e4f4;
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.form-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49,20,75,.1);
}

/* ── Job form card (hero) ── */
.job-form-card {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(15,7,32,.4), 0 1px 0 rgba(255,255,255,.15) inset;
}

/* ── Testimonial cards ── */
.testimonial-card {
  position: relative;
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(49,20,75,.07);
  box-shadow: 0 4px 24px rgba(49,20,75,.06);
  overflow: hidden;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 120px;
  color: var(--secondary);
  opacity: .25;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Footer ── */
.tw-footer { background: var(--ink); }
.footer-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,212,122,.3), transparent);
}

/* ── Progress steps ── */
.step-active { background: var(--primary) !important; color: var(--secondary) !important; }
.step-done   { background: var(--secondary) !important; color: var(--primary) !important; }
.step-pending{ background: #e5e7eb !important; color: #9ca3af !important; }

/* ── Status badges ── */
.badge-green  { background: #f0fdf4; color: #16a34a; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-family: 'Lexend', sans-serif; }
.badge-yellow { background: #fefce8; color: #a16207; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-family: 'Lexend', sans-serif; }
.badge-red    { background: #fef2f2; color: #dc2626; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-family: 'Lexend', sans-serif; }
.badge-blue   { background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-family: 'Lexend', sans-serif; }
.badge-gray   { background: #f9fafb; color: #4b5563; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-family: 'Lexend', sans-serif; }

/* ── Admin sidebar nav ── */
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500;
  color: #94a3b8;
  transition: background .15s, color .15s;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.admin-nav-item:hover,
.admin-nav-item.active { background: var(--primary); color: white; }
.admin-nav-item.active svg { color: var(--secondary); }
