/* ============================================================
   Coalition Muay Thai — Event Galleries
   Pixieset-inspired layout, Coalition brand palette
   ============================================================ */

:root {
  --c-bg:        #000000;
  --c-bg-alt:    #000000;
  --c-fg:        #ffffff;
  --c-muted:     #a8a8a8;
  --c-accent:    #cf8d18;   /* Coalition gold */
  --c-accent-2:  #e9a93d;   /* lighter highlight gold */
  --c-line:      rgba(255,255,255,0.12);
  --c-overlay:   rgba(0,0,0,0.55);

  --font-head:   'Instrument Sans', system-ui, -apple-system, sans-serif;
  --font-body:   'Jost', system-ui, -apple-system, sans-serif;

  --radius:      2px;
  --easing:      cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-fg);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

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

/* ===== Top nav ===== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
  transition: background .3s var(--easing);
}
.site-nav.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.site-nav .brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-fg);
}
.site-nav .brand .lime { color: var(--c-accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-actions a {
  color: var(--c-muted);
  transition: color .2s var(--easing);
}
.nav-actions a:hover { color: var(--c-fg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-fg);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s var(--easing);
}
.btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.btn.primary {
  background: var(--c-accent);
  color: #000000;
  border-color: var(--c-accent);
}
.btn.primary:hover {
  background: transparent;
  color: var(--c-accent);
}

/* ===== Hero / Cover ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 10s var(--easing) forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.85) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: heroFade 1.4s var(--easing);
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .event-date {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.45);
}
.hero h1 .accent { color: var(--c-accent); }
.hero .tagline {
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 48px;
}
.hero .tagline .sep {
  display: inline-block;
  margin: 0 14px;
  color: var(--c-accent);
}
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  animation: bobble 2.4s var(--easing) infinite;
}
.scroll-cue:after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--c-accent), transparent);
}
@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ===== Section header (above gallery) ===== */
.section-head {
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 32px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--c-line);
}
.section-head .eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}
.section-head .meta {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: right;
}
.section-head .meta div { margin-bottom: 4px; }

/* ===== Photo grid (Pixieset large-thumbnail style) ===== */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 96px;
}
.grid {
  column-count: 3;
  column-gap: 14px;
}
@media (max-width: 960px) { .grid { column-count: 2; } }
@media (max-width: 560px) { .grid { column-count: 1; } }

.tile {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  overflow: hidden;
  background: var(--c-bg-alt);
  cursor: zoom-in;
  border-radius: var(--radius);
}
.tile img {
  width: 100%;
  height: auto;
  transition: transform .6s var(--easing), filter .3s var(--easing);
  filter: brightness(0.95);
}
.tile:hover img {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.tile:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .3s var(--easing);
  pointer-events: none;
}
.tile:hover:after { opacity: 1; }

/* Fixed corner brand mark (Pixieset-style) — single sticky logo in viewport corner */
.corner-mark {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: block;
  opacity: 0.85;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  transition: opacity .25s var(--easing), transform .25s var(--easing);
}
.corner-mark:hover { opacity: 1; transform: scale(1.06); }
.corner-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* hide the corner mark while the lightbox is open */
body.lb-open .corner-mark { display: none; }
@media (max-width: 560px) {
  .corner-mark { width: 44px; height: 44px; right: 16px; bottom: 16px; }
}

/* ===== Event-card grid (used on landing page) ===== */
.event-cards {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 32px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}
.event-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c-bg-alt);
  cursor: pointer;
  border-radius: var(--radius);
}
.event-card .cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--easing), filter .3s var(--easing);
  filter: brightness(0.7);
}
.event-card:hover .cover {
  transform: scale(1.05);
  filter: brightness(0.85);
}
.event-card .cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.5) 100%);
}
.event-card .info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px;
  z-index: 2;
}
.event-card .info .date {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.event-card .info h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 10px;
}
.event-card .info .place {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.event-card .info .cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-fg);
  border-bottom: 1px solid var(--c-accent);
  padding-bottom: 4px;
  transition: color .25s var(--easing);
}
.event-card:hover .info .cta { color: var(--c-accent); }

/* ===== Logo mark (used as section break + nav lockup) ===== */
.logo-mark {
  display: flex;
  justify-content: center;
  padding: 80px 32px 24px;
}
.logo-mark img,
.logo-mark svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  opacity: 0.92;
  transition: opacity .3s var(--easing);
}
.logo-mark a:hover img,
.logo-mark a:hover svg {
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo .nav-mark {
  width: 30px;
  height: 30px;
  display: block;
}

/* ===== Footer ===== */
.site-foot {
  border-top: 1px solid var(--c-line);
  padding: 48px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.site-foot .lime { color: var(--c-accent); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--c-fg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 18px;
  transition: all .2s var(--easing);
  border-radius: 50%;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.lb-close { top: 24px; right: 24px; }
.lb-prev  { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ===== Utility ===== */
.tiger-mark {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 4px -3px 0;
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 L14.5 7 L20 8 L16 12 L17 18 L12 15 L7 18 L8 12 L4 8 L9.5 7 Z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2 L14.5 7 L20 8 L16 12 L17 18 L12 15 L7 18 L8 12 L4 8 L9.5 7 Z'/></svg>") no-repeat center / contain;
}

@media (max-width: 720px) {
  .site-nav { padding: 14px 20px; }
  .section-head { padding: 64px 20px 32px; flex-direction: column; align-items: flex-start; }
  .section-head .meta { text-align: left; }
  .gallery { padding: 24px 20px 64px; }
  .event-cards { padding: 24px 20px 64px; }
  .nav-actions { gap: 10px; }
  .nav-actions .hide-sm { display: none; }
  .btn { padding: 8px 14px; font-size: 11px; }
}
