/* ===================================================================
   TTRV — The Teacher & The Revolutioners
   Global stylesheet
   =================================================================== */

/* ---------- Local fonts ---------- */
@font-face {
  font-family: 'Moki Mono';
  src: url('Fonts/Moki-Mono.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Galimer';
<<<<<<< HEAD
  src: url('Fonts/galimer-extralight.ttf') format('truetype');
=======
  src: url('fonts/galimer-extralight.ttf') format('truetype');
>>>>>>> 7567e76103d43b46bd263bacea9b007c73d17bb8
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Galimer';
<<<<<<< HEAD
  src: url('Fonts/galimer-extralightitalic.ttf') format('truetype');
=======
  src: url('fonts/galimer-extralightitalic.ttf') format('truetype');
>>>>>>> 7567e76103d43b46bd263bacea9b007c73d17bb8
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg:           #0d0b0a;
  --bg-paper:     url('images/paper-texture-3.jpg');
  --surface:      rgba(255, 255, 255, 0.04);
  --surface-2:    rgba(255, 255, 255, 0.08);
  --border:       rgba(255, 255, 255, 0.12);

  --red:          #7a2418;
  --red-bright:   #9c2f1f;
  --red-deep:     #561b13;
  --red-hover:    #65312a;

  --text:         #fdfdfb;
  --muted:        rgba(253, 253, 251, 0.62);
  --muted-strong: rgba(253, 253, 251, 0.82);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Moki Mono', 'Courier New', monospace;

  --container:    1180px;
  --radius:       10px;
  --radius-lg:    16px;

  --nav-h:        68px;
  --shadow:       0 10px 30px rgba(0, 0, 0, 0.35);

  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(13, 11, 10, 0.82), rgba(13, 11, 10, 0.92)),
    var(--bg-paper);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0 0 1rem; }

::selection { background: var(--red-bright); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ===================================================================
   NAVBAR
   =================================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: transparent;
  transition: background-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}

.navbar.scrolled {
  background-color: rgba(20, 12, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-strong);
  padding: 6px 0;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle .bar {
  height: 2.5px;
  width: 100%;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

body.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(8.75px) rotate(45deg); }
body.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-8.75px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(13, 9, 8, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-overlay a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
  transition: color 0.25s var(--ease);
}
.nav-overlay a:hover,
.nav-overlay a.active { color: var(--red-bright); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 26px;
  width: 22px; height: 22px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateX(-50%) rotate(45deg);
  animation: bounce 2s infinite var(--ease);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); opacity: 0.4; }
  50%      { transform: translateX(-50%) rotate(45deg) translateY(8px); opacity: 1; }
}

.hero-logo {
  width: min(78vw, 520px);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2.5vw, 1.05rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background-color: var(--red);
  color: var(--text);
}
.btn-primary:hover {
  background-color: var(--red-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

/* ===================================================================
   SECTIONS
   =================================================================== */
.section { padding: 80px 0; }

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 44px;
}

.section-head.center {
  flex-direction: column;
  text-align: center;
  gap: 12px;
}

.section-title {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--red-bright), transparent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* ---------- Featured video ---------- */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Events / shows ---------- */
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 920px;
  margin: 0 auto;
}

.event-item {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  align-items: center;
  gap: 20px;
  padding: 26px 20px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.event-item:first-child { border-top: 1px solid var(--border); }

.event-item:hover {
  background-color: var(--surface);
  padding-left: 28px;
}

.event-date {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}

.event-venue {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.event-location {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.event-cta {
  text-align: right;
}

.event-ticket {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 9px 22px;
  border-radius: 100px;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.event-ticket:hover { background-color: var(--red); border-color: var(--red); }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  outline: none;
}

.cs-track { position: absolute; inset: 0; }

.cs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.cs-slide.active { opacity: 1; }

.cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
              opacity 0.25s var(--ease);
  opacity: 0;
}

.cs-btn svg { width: 20px; height: 20px; }

.carousel:hover .cs-btn,
.carousel:focus-within .cs-btn { opacity: 1; }

.cs-btn:hover { background: rgba(0, 0, 0, 0.75); border-color: rgba(255, 255, 255, 0.4); }

.cs-prev { left: 14px; }
.cs-next { right: 14px; }

.cs-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.cs-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.cs-dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 26px;
}

.video-card {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease);
}
.video-card:hover { transform: translateY(-5px); }
.video-card iframe { width: 100%; height: 100%; border: none; display: block; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Coming soon (store) ---------- */
.coming-soon {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 14px;
}

.coming-soon h1 {
  font-size: clamp(3rem, 12vw, 7rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coming-soon p {
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===================================================================
   SOCIAL ICONS
   =================================================================== */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.social-icons a {
  display: inline-flex;
  color: var(--muted-strong);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.social-icons a svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: currentColor;
}
.social-icons a:hover { transform: translateY(-3px) scale(1.1); color: var(--text); }
.social-icons a[data-net="instagram"]:hover { color: #e1306c; }
.social-icons a[data-net="facebook"]:hover  { color: #1877f2; }
.social-icons a[data-net="bandcamp"]:hover  { color: #629aa9; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 54px 0 40px;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.site-footer .social-icons { margin-bottom: 28px; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }

  .navbar { padding: 0 20px; }

  .event-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 14px;
  }
  .event-item:hover { padding-left: 14px; }
  .event-cta { text-align: left; margin-top: 6px; }

  .section { padding: 60px 0; }
}

@media (max-width: 540px) {
  .container { padding: 0 18px; }
  .hero-actions { width: 100%; }
  .btn { padding: 13px 26px; }
  .video-grid,
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Fixed background is janky / heavy on mobile */
@media (max-width: 768px) {
  body { background-attachment: scroll; }
}

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