/* ============================================================
   K-MAC base styles — fonts, reset, layout, shared components
   ============================================================ */

/* ── Fonts (self-hosted) ───────────────────────────────────── */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-var.woff2") format("woff2");
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-deep); }
figure { margin: 0; }
button { font-family: inherit; }

::selection { background: var(--lavender-deep); color: var(--ink); }

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

.skip-link {
  position: absolute;
  top: -48px; left: 12px;
  z-index: 200;
  background: var(--purple);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ── Typography ────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.94;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(3.4rem, 8.5vw, 7rem); }
h2 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); }
h3 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h4, h5, h6 { color: var(--text); margin: 0 0 0.4rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-brand);
  margin: 0 0 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--grad-warm);
}
.band-dark .eyebrow { color: var(--gold); }

.lead {
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-body);
  max-width: 62ch;
}

.muted { color: var(--text-soft); margin: 0; }

.grad-text {
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Layout ────────────────────────────────────────────────── */

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin-inline: auto;
}

.section { padding: 4.6rem 0; }
.section-tight { padding: 3.2rem 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.section-head { max-width: 70ch; margin-bottom: 2rem; }
.section-head p { color: var(--text-soft); margin-top: 0.8rem; }

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-cta {
  background: var(--grad-cta);
  background-size: 150% 150%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 56, 138, 0.32);
}
.btn-cta:hover {
  color: #fff;
  background-position: 100% 50%;
  box-shadow: 0 14px 32px rgba(255, 122, 61, 0.38);
}

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px rgba(92, 45, 145, 0.28);
}
.btn-purple:hover { background: var(--purple-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.band-dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── Chips / pills ─────────────────────────────────────────── */

.pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.34rem 0.78rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
a.pill:hover, button.pill:hover {
  background: var(--lavender-deep);
  color: var(--purple-deep);
  transform: translateY(-1px);
}

/* ── Cards ─────────────────────────────────────────────────── */

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.card, .card-clickable { cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-clickable:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.card figure { overflow: hidden; }
.card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover figure img { transform: scale(1.05); }
.card .body { padding: 1.15rem 1.25rem 1.3rem; }
.card .body p { color: var(--text-soft); font-size: 0.95rem; margin: 0.45rem 0 0; }

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 243, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

.site-header nav > a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-body);
  white-space: nowrap;
  padding: 0.3rem 0;
}
.site-header nav > a:hover { color: var(--purple); }

/* The generic nav-link padding above would otherwise squash the CTA pill. */
.site-header nav > a.btn {
  padding: 0.55rem 1.3rem;
}
.site-header nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad-warm);
  transition: right 0.25s ease;
}
.site-header nav > a:not(.btn):hover::after { right: 0; }

.nav-tb-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-purple);
  box-shadow: 0 4px 12px rgba(92, 45, 145, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-tb-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(92, 45, 145, 0.4); }
.nav-tb-chip img { width: 22px; height: 22px; }
.site-header nav > a.nav-tb-chip::after { content: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  margin-top: 4rem;
  padding: 3.2rem 0 2.2rem;
}

.footer-brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}
.footer-brands .brand-lockup img { width: 190px; height: auto; }
.footer-brands-note {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.7rem;
}
.footer-partner-logos {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.footer-partner-logos img {
  height: 44px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-partner-logos a:hover img { opacity: 1; transform: translateY(-2px); }
.footer-partner-logos img.logo-seven { height: 54px; }
.footer-partner-logos img.logo-tb { height: 40px; }

.footer-middle {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.8rem 0;
}
.footer-contact p { margin: 0; line-height: 1.7; font-size: 0.95rem; }
.footer-contact a { color: var(--text); font-weight: 700; }
.footer-contact a:hover { color: var(--gold); }

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}
.footer-links a { color: var(--text); font-weight: 700; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }

.footer-legal {
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Reveal on scroll ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Lightbox ──────────────────────────────────────────────── */

body.lightbox-open { overflow: hidden; }

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(30, 14, 52, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox-modal.is-open { display: flex; }

.lightbox-panel {
  width: min(940px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.4rem 1.6rem;
}

.lightbox-close {
  margin-left: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--lavender);
  color: var(--purple-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.34rem 0.8rem;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--lavender-deep); }

#lightboxTitle { margin: 0.3rem 0 0.2rem; }

.lightbox-meta {
  margin: 0 0 1rem;
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lightbox-gallery-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.lightbox-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lightbox-gallery::-webkit-scrollbar { display: none; }

.lightbox-slide {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  scroll-snap-align: start;
}
.lightbox-slide img {
  width: 100%;
  max-height: min(56vh, 480px);
  object-fit: contain;
  background: var(--bg-soft);
}

.lightbox-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.8rem 0 1rem;
}

.lightbox-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.34rem 0.85rem;
  cursor: pointer;
}
.lightbox-nav:hover:not(:disabled) { background: var(--lavender); }
.lightbox-nav:disabled { opacity: 0.4; cursor: not-allowed; }

.lightbox-counter { margin: 0; color: var(--text-soft); font-size: 0.85rem; }

.lightbox-body { color: var(--text-body); }
.lightbox-body h2, .lightbox-body h3, .lightbox-body h4, .lightbox-body h5 {
  color: var(--purple-brand);
  margin: 0.9rem 0 0.35rem;
}
.lightbox-body li { margin: 0.3rem 0; }

/* ── Rich text (CMS bodies) ────────────────────────────────── */

.rich { color: var(--text-body); }
.rich h2, .rich h3, .rich h4, .rich h5 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-brand);
  margin: 1.3rem 0 0.4rem;
}
.band-dark .rich h2, .band-dark .rich h3, .band-dark .rich h4, .band-dark .rich h5 { color: var(--gold); }
.rich ul, .rich ol { margin: 0.5rem 0 1rem; padding-left: 1.3rem; }
.rich li { margin: 0.35rem 0; }
.rich img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  margin: 1.2rem auto;
  max-width: min(100%, 560px);
}

/* ── Motion preferences ────────────────────────────────────── */

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

/* ── Responsive nav ────────────────────────────────────────── */

@media (max-width: 900px) {
  .nav-wrap { gap: 0.8rem; }
  .brand img { width: 138px; }
  .nav-toggle { display: inline-flex; }

  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: max(12px, calc((100% - var(--container)) / 2));
    min-width: 250px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }
  .site-header.nav-open nav { display: flex; }

  .site-header nav > a {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 1.02rem;
  }
  .site-header nav > a.btn {
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-pill);
  }
  .site-header nav > a:hover { background: var(--lavender); }
  .site-header nav > a:not(.btn)::after { content: none; }
  .site-header nav .btn { margin-top: 0.5rem; }
  .nav-tb-chip { align-self: center; margin-top: 0.6rem; }

  .footer-links { align-items: flex-start; }
  .section { padding: 3.4rem 0; }
  .container { width: min(var(--container), calc(100% - 1.8rem)); }
}
