/* ══════════════════════════════════════
   JULIAN DISMUTE — GLOBAL STYLES
   Shared across all pages
   ══════════════════════════════════════ */

/* ── SKIP LINK ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10001;
  background: var(--gold);
  color: #0C0C0C;
  padding: 12px 24px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

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

/* ── CSS VARIABLES ── */
:root {
  --gold: #C5AE79;
  --bg: #1A1A1A;
  --bg-dark: #0C0C0C;
  --surface: #111111;
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(.38, .005, .215, 1);
  --font: 'Barlow', sans-serif;
}

/* ── BASE STYLES ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  z-index: 9999;
  transition: opacity 0.3s var(--ease);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 9998;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* ── CURSOR TRAIL ── */
.cursor-trail {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  will-change: transform, opacity;
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot,
  .cursor-ring { display: none; }
  .cursor-trail { display: none; }
}

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0C0C0C;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.preloader-name {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.preloader-count {
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

@media (max-width: 768px) {
  .preloader-name { font-size: 10px; }
  .preloader-count { font-size: 9px; }
}

/* ── NAVIGATION ── */
.c-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}

.nav-logo {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links ul li a {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s var(--ease);
  position: relative;
  display: inline-block;
}

.nav-links ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links ul li a:hover {
  color: var(--gold);
}

.nav-links ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links ul li a:not(:hover)::after {
  transform-origin: right;
}

.nav-book {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 22px;
  transition: all 0.3s var(--ease);
}

.nav-book:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: white;
  transition: all 0.3s var(--ease);
}

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay a {
  font-weight: 700;
  font-size: 32px;
  color: white;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.nav-overlay a:hover {
  color: var(--gold);
}

.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: 48px;
  font-size: 28px;
  color: white;
  font-weight: 300;
  cursor: none;
  background: none;
  border: none;
  font-family: var(--font);
}

/* ── FOOTER ── */
#footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 72px 0 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
}

.footer-tagline {
  font-weight: 300;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 200px;
  margin-top: 16px;
  line-height: 1.7;
}

.footer-col-label {
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover {
  color: white;
}

.footer-book-btn {
  display: inline-block;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 20px;
  transition: all 0.3s var(--ease);
}

.footer-book-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-privacy {
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s var(--ease);
}

.footer-privacy:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ── PAGE TRANSITION OVERLAY ── */
.page-transition {
  position: fixed;
  inset: 0;
  background: #0C0C0C;
  z-index: 8000;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  will-change: transform;
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 9000;
  width: 0%;
  opacity: 0;
  will-change: width, opacity;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

/* ── SCROLL TO TOP BUTTON ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 12, 12, 0.8);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  z-index: 900;
  cursor: none;
  opacity: 0;
  pointer-events: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
  backdrop-filter: blur(4px);
}

.scroll-top:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── SHARED UTILITIES ── */
.split-line {
  overflow: hidden;
  display: block;
}

.split-inner {
  display: block;
  transform: translateY(100%);
}

.section-label {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.text-link {
  display: inline-block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 4px;
  margin-top: 40px;
  transition: all 0.3s var(--ease);
}

.text-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.text-link .char {
  display: inline-block;
  transition: color 0.3s var(--ease);
}

.magnetic-btn {
  will-change: transform;
}

/* ── GLOBAL RESPONSIVE ── */
@media (max-width: 768px) {
  .c-nav {
    padding: 0 24px;
  }

  .nav-links,
  .nav-book {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-inner {
    padding: 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .scroll-top {
    bottom: 16px !important;
    right: 16px !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .split-inner {
    transform: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
