/* ==========================================================================
   MR STAR — shared stylesheet
   Brand tokens: gold on black/white only. Never gold text on white.
   ========================================================================== */

:root {
  --gold:  #FDC703;
  --black: #000000;
  --paper: #FFFFFF;
  --grey:  #F5F5F3;

  --ink-70: rgba(0, 0, 0, 0.7);
  --ink-45: rgba(0, 0, 0, 0.45);
  --paper-70: rgba(255, 255, 255, 0.7);
  --paper-45: rgba(255, 255, 255, 0.45);
  --gold-15: rgba(253, 199, 3, 0.15);
  --gold-30: rgba(253, 199, 3, 0.3);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --gap: clamp(1.25rem, 3vw, 2rem);

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

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

@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; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.section--light .eyebrow,
.section--grey .eyebrow { color: #9c7b00; }

/* star motif ------------------------------------------------------------ */
.star {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%,
    21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--gold);
  margin-block: 1.5rem;
}
.star-divider::before,
.star-divider::after {
  content: "";
  height: 1px;
  width: 48px;
  background: currentColor;
  opacity: 0.5;
}

/* ---- sections ---- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--dark { background: var(--black); color: var(--paper); }
.section--dark .eyebrow { color: var(--gold); }
.section--light { background: var(--paper); color: var(--black); }
.section--grey { background: var(--grey); color: var(--black); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 0.5rem; }
.section-head p { margin-top: 0.75rem; color: var(--ink-70); }
.section--dark .section-head p { color: var(--paper-70); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* gold background + black text: always legal on this brand's contrast rule */
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: #e6b400; }

/* outline for dark sections: gold border/text, transparent bg (on black) */
.btn--outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--black); }

/* white/black variant for light sections */
.btn--dark { background: var(--black); color: var(--paper); }
.btn--dark:hover { background: #1a1a1a; }

.btn--whatsapp { background: #25D366; color: var(--black); }
.btn--whatsapp:hover { background: #1ebe57; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---- header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(253, 199, 3, 0.18);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.85rem;
  gap: 1rem;
}
.nav__logo img { height: 46px; width: auto; display: block; }
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--gold-30);
  border-radius: 8px;
  color: var(--paper);
}
.nav__toggle svg { width: 20px; height: 20px; }
.nav__links {
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  gap: 0.25rem;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  overflow-y: auto;
}
.nav__links.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__links a {
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__links a[aria-current="page"] { color: var(--gold); }
.nav__links .btn { margin-top: 1rem; align-self: flex-start; }

/* higher specificity than ".nav__links a" so the button keeps its own color/padding/border */
.nav__links a.btn {
  color: var(--black);
  padding: 0.85rem 1.6rem;
  border-bottom: none;
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__links {
    position: static;
    flex-direction: row;
    align-items: center;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    background: none;
    inset: auto;
    overflow: visible;
    gap: 1.75rem;
  }
  .nav__links a { border-bottom: none; padding: 0.4rem 0.15rem; }
  .nav__links a.btn { padding: 0.75rem 1.4rem; }
  .nav__links .btn { margin-top: 0; margin-left: 0.5rem; }
}

/* ---- hero ---- */
.hero {
  position: relative;
  background: var(--black);
  color: var(--paper);
  overflow: hidden;
  padding-block: clamp(3.5rem, 12vw, 7rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.55;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.92) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 720px; }
.hero__tagline {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.4rem 0.9rem;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  margin-top: 1rem;
}
.hero p.lede {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--paper-70);
  max-width: 56ch;
}
.hero .btn-row { margin-top: 1.75rem; }

/* ---- event promo band ---- */
.promo-band {
  background: var(--black);
  color: var(--paper);
  border-top: 1px solid var(--gold-30);
  border-bottom: 1px solid var(--gold-30);
}
.promo-band__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: 1.75rem;
}
.promo-band__media { min-width: 0; }
.promo-band__media img { width: 100%; height: auto; border-radius: var(--radius); }
.promo-band__eyebrow { color: var(--gold); }
.promo-band h2 { font-size: clamp(1.3rem, 3.2vw, 1.9rem); margin-top: 0.35rem; }
.promo-band__meta {
  margin-top: 0.6rem;
  color: var(--paper-70);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}
.promo-band .btn-row { margin-top: 1.1rem; }

@media (min-width: 800px) {
  .promo-band__inner { grid-template-columns: 1fr 1.3fr; }
}

/* ---- pillars / cards ---- */
.grid-3 {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.section--dark .card {
  background: #0d0d0d;
  border-color: rgba(253, 199, 3, 0.18);
}
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--gold);
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section--dark .card__icon { background: var(--gold); color: var(--black); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-70); font-size: 0.95rem; }
.section--dark .card p { color: var(--paper-70); }
.card .btn { margin-top: 1.1rem; }

/* ---- values strip ---- */
.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-top: 1.5rem;
}
.values li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--grey);
  font-weight: 600;
  font-size: 0.9rem;
}
.section--dark .values li { background: rgba(255,255,255,0.06); color: var(--paper); }
.values li .star { color: var(--gold); }

/* ---- gallery grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-grid figure {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--grey);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-grid a:hover img,
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.6rem 0.7rem;
  font-size: 0.75rem;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.gallery-grid figure:hover figcaption,
.gallery-grid figure:focus-within figcaption { opacity: 1; }

/* ---- facts strip (event page) ---- */
.facts-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  background: #0d0d0d;
  border: 1px solid var(--gold-30);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 700px) { .facts-strip { grid-template-columns: repeat(4, 1fr); } }
.facts-strip div { text-align: left; }
.facts-strip .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }
.facts-strip .value { font-weight: 700; margin-top: 0.3rem; }

/* ---- bilingual blocks (event page) ---- */
.lang-block--bm { }
.lang-block--bm h1,
.lang-block--bm h2,
.lang-block--bm h3 { font-size: 1.05em; }
.lang-block--en {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255,255,255,0.15);
  color: var(--paper-70);
  font-size: 0.92em;
}
.section--light .lang-block--en,
.section--grey .lang-block--en { border-top-color: rgba(0,0,0,0.12); color: var(--ink-70); }

/* ---- category cards ---- */
.category-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  background: #0d0d0d;
  border: 1px solid var(--gold-30);
}
.category-card--closed { border-color: rgba(255,255,255,0.25); }
.tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.tag--open { background: var(--gold); color: var(--black); }
.tag--closed { background: rgba(255,255,255,0.12); color: var(--paper); border: 1px solid rgba(255,255,255,0.3); }

/* ---- prize table ---- */
.prize-table {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gold-30);
}
.prize-table table { min-width: 480px; }
.prize-table th, .prize-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.prize-table th {
  background: rgba(253,199,3,0.08);
  color: var(--gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prize-table tr:last-child td { border-bottom: none; }
.prize-table__note { margin-top: 0.75rem; font-size: 0.85rem; color: var(--paper-70); }

/* light-section variant: avoid gold-on-white contrast failure */
.section--light .prize-table,
.section--grey .prize-table {
  border-color: rgba(0, 0, 0, 0.12);
}
.section--light .prize-table th,
.section--grey .prize-table th {
  background: rgba(0, 0, 0, 0.04);
  color: var(--black);
}
.section--light .prize-table th,
.section--light .prize-table td,
.section--grey .prize-table th,
.section--grey .prize-table td {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
.section--light .prize-table__note,
.section--grey .prize-table__note {
  color: var(--ink-70);
}

/* ---- programme timeline ---- */
.timeline { border-left: 2px solid var(--gold-30); padding-left: 1.5rem; display: grid; gap: 1.25rem; }
.timeline__item .time { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.timeline__item .en { color: var(--paper-70); font-size: 0.92em; }

/* ---- FAQ ---- */
.faq details {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-block: 1rem;
}
.section--light .faq details,
.section--grey .faq details { border-bottom-color: rgba(0,0,0,0.1); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-answer { margin-top: 0.75rem; }
.faq .faq-answer p + p { margin-top: 0.5rem; }

/* ---- contact ---- */
.contact-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

form.enquiry { display: grid; gap: 1rem; }
form.enquiry label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
form.enquiry input,
form.enquiry select,
form.enquiry textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 8px;
  background: var(--paper);
}
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry .btn { justify-self: start; }

/* ---- footer ---- */
.site-footer {
  background: var(--black);
  color: var(--paper-70);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 0.85rem; }
.footer-grid ul { display: grid; gap: 0.55rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img { height: 30px; margin-bottom: 0.9rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--gold); }

/* ---- floating whatsapp ---- */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  color: var(--black);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ---- fade-up utility (JS toggles .is-visible) ---- */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ---- misc page bits ---- */
.page-hero {
  background: var(--black);
  color: var(--paper);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); margin-top: 0.5rem; }
.page-hero p { margin-top: 0.9rem; color: var(--paper-70); max-width: 60ch; }

.prose p + p { margin-top: 1rem; }
.prose { color: var(--ink-70); }
.section--dark .prose { color: var(--paper-70); }

.two-col {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.two-col img { border-radius: var(--radius); }

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
