/* ============================================================
   Jeremy's NYC — shared site CSS
   ------------------------------------------------------------
   Design system + chrome (nav, footer, cursor, buttons, rules,
   reveals, utility keyframes). Page-specific layouts live in
   their own per-page CSS files in this directory.
   ============================================================ */

/* --- tokens --- */
:root {
  --black: #0a0907;
  --deep: #100e0b;
  --dark: #1a1612;
  --teal: #1d4a47;
  --teal-light: #2a6b66;
  --gold: #c9a96e;
  --gold-dim: #a08148;    /* was #8a6f3f — bumped to hit WCAG AA 4.5:1 on black background (now 5.43:1) */
  --cream: #e8dcc8;
  --cream-dim: #b8a888;
  --white: #f5f0e8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  overflow-x: hidden;
}

/* Subtle film-grain overlay (SVG fractal noise, no image dep) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .035;
  pointer-events: none;
  z-index: 100;
}

/* --- skip link (a11y) --- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--gold);
  color: var(--black);
  padding: 12px 20px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-to-content:focus {
  left: 16px;
}

/* --- custom cursor (gated to fine pointers + reduced-motion off) --- */
.cursor,
.cursor-ring {
  display: none;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body {
    cursor: none;
  }

  .cursor {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width .2s, height .2s;
  }

  .cursor-ring {
    display: block;
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: .5;
  }
}

/* --- nav --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 24px clamp(32px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s;
}
nav.scrolled {
  background: rgba(10, 9, 7, .95);
  backdrop-filter: blur(8px);
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a:focus-visible {
  color: var(--gold);
  outline: none;
}
.nav-reserve {
  border: 1px solid rgba(201, 169, 110, .4);
  padding: 10px 22px;
  color: var(--cream) !important;
  transition: all .3s !important;
}
.nav-reserve:hover,
.nav-reserve:focus-visible {
  background: var(--gold);
  color: var(--black) !important;
  border-color: var(--gold) !important;
}

/* hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cream);
  transition: all .3s;
}

/* mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 490;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile.open {
  display: flex;
}
.nav-mobile a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 6vw, 48px);
  font-style: italic;
  color: var(--white);
  text-decoration: none;
  transition: color .25s;
}
.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  color: var(--gold);
  outline: none;
}

/* --- section label --- */
.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 100;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

/* --- footer --- */
footer {
  border-top: 1px solid rgba(201, 169, 110, .15);
  padding: 36px clamp(32px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo img {
  height: 44px;
  width: auto;
}
.footer-middle {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 100;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 100;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold);
  outline: none;
}

/* --- reveal-on-scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- gold rule divider --- */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(32px, 6vw, 80px);
}
.gold-rule::before,
.gold-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 169, 110, .3));
}
.gold-rule::after {
  background: linear-gradient(to left, transparent, rgba(201, 169, 110, .3));
}
.gold-rule-diamond {
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- buttons --- */
.btn-gold {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  background: var(--gold);
  border: none;
  cursor: pointer;
  transition: background .3s;
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--cream);
  outline: none;
}

.btn-outline {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(201, 169, 110, .4);
  cursor: pointer;
  transition: all .3s;
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  outline: none;
}

/* --- utility keyframes (used by hero entrance + scroll-hint pulse) --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: .4;
  }
  50% {
    opacity: 1;
  }
}

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

/* --- mobile nav/footer breakpoint --- */
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
