/* ============================================================
   STYLE.CSS — Core design tokens, layout, nav, footer, utils
   Tithi Jani Gallery — Cinematic Dark Edition
   ============================================================ */

/* ---- Google Fonts fallback via CSS (fonts loaded via HTML) ---- */
:root {
  --font-serif:  'Cormorant Garamond', 'Georgia', serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-display:'Space Grotesk', system-ui, sans-serif;

  /* Color palette */
  --bg-deep:    #000000;
  --bg-base:    #0a0a0a;
  --bg-surface: #111111;
  --bg-card:    #181818;

  --text-primary:   #ffffff;
  --text-secondary: #d8d8d8;
  --text-muted:     #afafaf;
  --text-ghost:     rgba(255,255,255,0.25);

  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(255,255,255,0.18);

  --accent-line:   rgba(255,255,255,0.12);

  /* Spacing */
  --nav-h: 68px;
  --section-pad: clamp(64px, 8vw, 120px);
  --gap: clamp(10px, 1.4vw, 20px);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --dur-fast: 0.25s;
  --dur-med:  0.5s;
  --dur-slow: 0.9s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; } /* Lenis handles smooth scroll */
body {
  background: #000000;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ---- Scrollbar ---- */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ---- Selection ---- */
::selection { background: rgba(255,255,255,0.1); }

/* ============================================================
   BACKGROUND — Pure black, no effects
   ============================================================ */

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(7,7,7,0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom-color: var(--border);
}

.nav-wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
/* Logo image */
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-tj {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}
.logo-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav { flex: 1; overflow: hidden; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-list::-webkit-scrollbar { display: none; }

.nav-item {
  display: inline-flex;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-item:hover,
.nav-item.active { color: var(--text-primary); }
.nav-item.active::after,
.nav-item:hover::after { transform: scaleX(1); }

.nav-reels { color: var(--text-secondary); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--text-primary);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(7,7,7,0.97);
  backdrop-filter: blur(24px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 80px 20px 40px;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease-out);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 24px;
  color: var(--text-muted);
  transition: color var(--dur-fast);
  z-index: 201;
}
.mobile-nav-close:hover { color: var(--text-primary); }
.mobile-nav-list { display: flex; flex-direction: column; gap: 8px; text-align: center; width: 100%; list-style: none; margin: 0; padding: 0; }
.mobile-nav-item {
  display: block;
  padding: 12px 24px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 4.5vw, 32px);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-nav-item:hover,
.mobile-nav-item.active { color: var(--text-primary); }

/* ============================================================
   MAIN SITE WRAPPER
   ============================================================ */
.main-site {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-header {
  text-align: center;
  padding: var(--section-pad) clamp(20px, 4vw, 60px) clamp(40px, 4vw, 64px);
}
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.section-rule {
  width: 40px; height: 1px;
  background: var(--border-hover);
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 60px clamp(20px, 4vw, 60px);
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: var(--section-pad);
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.footer-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   UTILITY
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   SOUND WIDGET (mobile floating button)
   ============================================================ */
.sound-widget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
@media (min-width: 1024px) { .sound-widget { display: none; } }

.sound-toggle-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.88);
  border: 1px solid rgba(255,255,255,.18);
  color: #d8d8d8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
  touch-action: manipulation;
}
.sound-toggle-btn:active { background: rgba(40,40,40,.92); }

.sound-popup {
  background: rgba(14, 14, 14, 0.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 150px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sound-vol-label {
  font-size: 11px; letter-spacing: .08em;
  color: #777; text-transform: uppercase;
}
.sound-vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.2); outline: none; cursor: pointer;
}
.sound-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #d8d8d8; cursor: pointer;
}
.sound-vol-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #d8d8d8; cursor: pointer; border: none;
}
.sound-vol-value { font-size: 12px; color: #999; text-align: right; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  :root { --nav-h: 56px; }
}
