/* Thabiso Khambule - Shared Styles
   Brand: Signal Gold + Royal Blue on Midnight Black
*/

:root {
  --primary: #D4AF37;
  --primary-soft: rgba(212, 175, 55, 0.12);
  --royal-blue: #1F2A6D;
  --midnight: #0B0B0D;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-muted: #94a3b8;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  padding: 0;
  background: var(--midnight);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: clip;
}

* { -webkit-tap-highlight-color: transparent; }

input, select, textarea {
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0.5rem;
}

img, iframe, video { max-width: 100%; }

.img-face-top { object-position: 50% 20% !important; }
.img-face-center { object-position: 50% 35% !important; }
.img-face-tight { object-position: 50% 15% !important; }

.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.waveform-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  display: inline-block;
  animation: pulse 1.8s ease-in-out infinite;
}
.waveform-bar:nth-child(odd) { animation-delay: 0.15s; }
.waveform-bar:nth-child(3n) { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

.mobile-menu { display: none; }
.mobile-menu.open {
  display: flex;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu a { min-height: 44px; display: flex; align-items: center; }

@media (max-width: 768px) {
  button, .btn, a[class*="bg-primary"], a[class*="border-2"] {
    min-height: 44px;
  }
}

.btn-primary-glow:hover {
  box-shadow: 0 0 24px rgba(212, 175, 53, 0.35);
}

.img-muted {
  filter: grayscale(15%);
  transition: filter 0.7s ease;
}
.img-muted:hover { filter: grayscale(0); }

.feed-card {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #111;
  position: relative;
  transition: transform 0.3s ease;
}
.feed-card:hover { transform: translateY(-4px); }
.feed-card iframe,
.feed-card video,
.feed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

/* Native social embeds (token-free Instagram/TikTok fallbacks) */
.feed-embed {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #111;
  overflow: hidden;
  height: 430px;
}
.feed-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}
.feed-embed-wide {
  grid-column: 1 / -1;
}
.feed-embed-wide .tiktok-embed {
  border-radius: 0.75rem;
  overflow: hidden;
}

.audio-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
}
.audio-preview button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--midnight);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audio-preview .progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.audio-preview .progress .bar {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s linear;
}

footer a:hover { color: var(--primary); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.brand-lockup img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(90, 138, 216, 0.25));
}
.brand-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-align: center;
  line-height: 1.4;
  background: linear-gradient(180deg, #f5f5f5 0%, #d4d4d4 40%, #8a8a8a 70%, #c0c0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(90, 138, 216, 0.6));
}
.brand-tagline.sm { font-size: 0.75rem; }
.brand-tagline.md { font-size: 1.1rem; }
.brand-tagline.lg { font-size: 1.5rem; }

/* Nav brand mark - fades out while at top of page (over hero) so the hero logo isn't duplicated */
.nav-brand-mark {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(90, 138, 216, 0.4));
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nav-brand-mark.over-hero {
  opacity: 0;
  transform: translateX(-12px) scale(0.85);
  pointer-events: none;
}

@media (max-width: 767px) {
  .brand-lockup { gap: 0.5rem; }
  .brand-lockup img { max-width: 140px !important; }
  .brand-tagline.md {
    font-size: 0.8rem;
    letter-spacing: 0.18em !important;
  }
  .nav-brand-mark { width: 40px; }
  .feed-card:hover { transform: none; }
  .img-muted { filter: grayscale(0); }
  .img-muted:hover { filter: grayscale(0); }
  .glass-panel {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  section:not(.hero) { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .hero { padding-top: 6rem !important; padding-bottom: 2rem !important; }
  form .grid { grid-template-columns: 1fr !important; }
  iframe[src*="mixcloud"] { min-height: 120px; }
  .img-mobile-top { object-position: 50% 15% !important; }
  /* feature cards use aspect-[5/3] from Tailwind - no fixed height */
  [data-mixcloud-stats] > div { justify-content: center !important; }
  .gallery-hero { height: 280px !important; }
}

@media (max-width: 380px) {
  html { font-size: 15px; }
  h1, h2 { word-break: break-word; }
}

[role="tablist"]::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar { display: none; }

@supports (padding: max(0px)) {
  header, footer, .mobile-menu {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

/* ===== Booking modal ===== */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(11, 11, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.booking-modal.open {
  opacity: 1;
  visibility: visible;
}
.booking-modal-card {
  background: rgba(17, 17, 20, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.1), 0 24px 64px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.booking-modal.open .booking-modal-card {
  transform: translateY(0) scale(1);
}
.booking-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.booking-modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.booking-modal-close:hover {
  color: var(--primary);
  border-color: rgba(212, 175, 55, 0.5);
}
.booking-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
@media (max-width: 640px) {
  .booking-modal { padding: 1rem; }
  .booking-modal-card { padding: 1.5rem 1.25rem; max-height: 94vh; }
}

/* ===== Coming Soon teaser system =====
   Wrap a section's content in .teaser-locked and pair it with a
   .teaser-overlay sibling inside a relative parent. */
.teaser-locked {
  filter: blur(10px) saturate(0.7) brightness(0.6);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.teaser-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.teaser-card {
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.12), 0 24px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 34rem;
  width: 100%;
  padding: 2rem 1.75rem;
}
.teaser-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.teaser-eyebrow::before,
.teaser-eyebrow::after {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1px;
  background: rgba(212, 175, 55, 0.5);
}
@media (max-width: 640px) {
  .teaser-card { padding: 1.5rem 1.25rem; }
}

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