/* ==========================================================================
   Tawazon Women's Sports Day — public styles
   Reuses the tawazonlife design tokens: near-black surfaces, fire-red
   gradients, Inter body copy and Bricolage Grotesque display type.
   ========================================================================== */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #242424;
  --text-primary: #ffffff;
  --text-secondary: #e8e8e8;
  --text-muted: #b0b0b0;
  --text-dimmed: #8e8e8e;
  --fire-red: #ff0033;
  --ember-red: #dc0000;
  --deep-red: #8b0000;
  --gradient-fire: linear-gradient(135deg, #ff0033 0%, #dc0000 50%, #8b0000 100%);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-border: rgba(255, 255, 255, 0.075);
  --card-border-strong: rgba(255, 255, 255, 0.14);
  --input-bg: rgba(255, 255, 255, 0.04);
  --success: #22d39a;
  --warning: #ffc857;
  --danger: #ff5c72;
  --nav-height: 74px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-red: 0 18px 50px rgba(220, 0, 0, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f8;
  --bg-tertiary: #efeff1;
  --bg-elevated: #e7e7ea;
  --text-primary: #0a0a0a;
  --text-secondary: #1c1c1f;
  --text-muted: #4a4a52;
  --text-dimmed: #6a6a72;
  --card-bg: rgba(10, 10, 10, 0.025);
  --card-border: rgba(10, 10, 10, 0.09);
  --card-border-strong: rgba(10, 10, 10, 0.16);
  --input-bg: rgba(10, 10, 10, 0.035);
  --shadow-lg: 0 26px 70px rgba(20, 20, 30, 0.14);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 0, 51, 0.13), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(139, 0, 0, 0.16), transparent 46%),
    radial-gradient(circle at 50% 100%, rgba(220, 0, 0, 0.07), transparent 55%);
}

:root[data-theme='light'] body::before {
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 0, 51, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(139, 0, 0, 0.07), transparent 46%);
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 999;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  background: var(--fire-red);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  flex: 0 0 auto;
  vertical-align: middle;
}

#canvas-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

.content-layer {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-layer > main {
  flex: 1 0 auto;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

:root[data-theme='light'] .nav {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(10, 10, 10, 0.08);
}

.nav-container {
  width: min(1280px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0;
  transition: color 0.22s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-fire);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.15rem;
  border-radius: 999px;
  background: var(--gradient-fire);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(220, 0, 0, 0.28);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(220, 0, 0, 0.38);
}

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Theme toggle
   -------------------------------------------------------------------------- */

.theme-toggle {
  position: fixed;
  top: 1.15rem;
  right: 1.5rem;
  z-index: 95;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(20, 20, 20, 0.8);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

:root[data-theme='light'] .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
}

.theme-toggle:hover {
  border-color: var(--fire-red);
}

.theme-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-icon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  color: var(--fire-red);
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
}

.theme-icon--sun {
  opacity: 0;
  transform: scale(0.4) rotate(-90deg);
}

.theme-input:checked ~ .theme-icon--moon {
  opacity: 0;
  transform: scale(0.4) rotate(90deg);
}

.theme-input:checked ~ .theme-icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.theme-input:focus-visible ~ .theme-icon {
  outline: 2px solid var(--fire-red);
  outline-offset: 6px;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Buttons, labels, shared atoms
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--gradient-fire);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  box-shadow: 0 22px 55px rgba(220, 0, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--card-border-strong);
  color: var(--text-primary);
}

:root[data-theme='light'] .btn-secondary {
  background: rgba(10, 10, 10, 0.04);
}

.btn-secondary:hover {
  border-color: var(--fire-red);
  color: var(--fire-red);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  padding-inline: 0.75rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 1.1rem 1.9rem;
  font-size: 1.02rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 0.6rem 0.95rem;
  font-size: 0.82rem;
  border-radius: 9px;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fire-red);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.pill--ok {
  border-color: rgba(34, 211, 154, 0.35);
  background: rgba(34, 211, 154, 0.09);
  color: var(--success);
}

.pill--warn {
  border-color: rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.09);
  color: var(--warning);
}

.pill--danger {
  border-color: rgba(255, 92, 114, 0.4);
  background: rgba(255, 92, 114, 0.1);
  color: var(--danger);
}

.pill--event {
  border-color: rgba(255, 0, 51, 0.4);
  background: rgba(255, 0, 51, 0.1);
  color: #ff8095;
}

.gradient-text {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-header {
  max-width: 780px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section-header.left {
  margin-inline: 0;
  text-align: left;
}

.section-title {
  margin-top: 0.75rem;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
}

.section-subtitle {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.75;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fire-red);
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */

.flash-stack {
  position: fixed;
  top: calc(var(--nav-height) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(560px, calc(100% - 2rem));
  display: grid;
  gap: 0.6rem;
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border-strong);
  background: rgba(20, 20, 20, 0.96);
  color: var(--text-secondary);
  font-size: 0.92rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

:root[data-theme='light'] .flash {
  background: #fff;
}

.flash .icon {
  margin-top: 2px;
  color: var(--fire-red);
}

.flash-success {
  border-color: rgba(34, 211, 154, 0.35);
}

.flash-success .icon {
  color: var(--success);
}

.flash-error {
  border-color: rgba(255, 92, 114, 0.4);
}

.flash-error .icon {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + clamp(2.6rem, 6vw, 4.6rem)) 0 clamp(2.4rem, 5vw, 4rem);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 900px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 0, 51, 0.16), transparent 65%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 51, 0.32);
  background: rgba(255, 0, 51, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ff8ea0;
}

:root[data-theme='light'] .hero-badge {
  color: #b3001f;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fire-red);
  box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 0, 51, 0.16);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(255, 0, 51, 0.04);
  }
}

.hero h1 {
  margin: 1.15rem 0 0;
  font-size: clamp(2.25rem, 5.6vw, 4.1rem);
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 .line {
  display: block;
}

.hero-headline {
  margin-top: 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-secondary);
  letter-spacing: -0.015em;
}

.hero-description {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.35rem;
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--card-border);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-meta-item .icon {
  color: var(--fire-red);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.4rem;
  color: var(--text-dimmed);
  font-size: 0.8rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust .icon {
  color: var(--success);
}

.hero-media {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--card-border-strong);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.6;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.04) 42%, transparent 70%);
  pointer-events: none;
}

.hero-price-card {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: grid;
  gap: 0.55rem;
  padding: 1.05rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
}

.hero-price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-price small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0;
}

.hero-price-note {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.hero-float {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Announcement / status strip
   -------------------------------------------------------------------------- */

.status-strip {
  border-block: 1px solid var(--card-border);
  background: linear-gradient(90deg, rgba(255, 0, 51, 0.08), rgba(139, 0, 0, 0.04) 45%, transparent);
}

.status-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding-block: 0.95rem;
}

.status-strip p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.status-strip .icon {
  color: var(--fire-red);
}

/* --------------------------------------------------------------------------
   Detail cards / facts
   -------------------------------------------------------------------------- */

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.fact {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.fact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 12px;
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.2);
  color: var(--fire-red);
}

.fact dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dimmed);
}

.fact dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.fact dd small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-dimmed);
  line-height: 1.5;
}

.tbc-note {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px dashed var(--card-border-strong);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.tbc-note .icon {
  color: var(--warning);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Two-column content
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.prose {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose strong {
  color: var(--text-primary);
}

.prose h3 {
  margin: 1.9rem 0 0.75rem;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.highlight-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
  list-style: none;
}

.highlight-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.highlight-list .icon {
  margin-top: 3px;
  color: var(--fire-red);
}

.side-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(160deg, rgba(255, 0, 51, 0.08), transparent 42%),
    var(--card-bg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.side-card h3 {
  font-size: 1.25rem;
}

.side-card p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.side-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  list-style: none;
}

.side-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.side-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-list strong {
  color: var(--text-primary);
  text-align: right;
}

.side-card .btn {
  margin-top: 1.35rem;
}

/* --------------------------------------------------------------------------
   Activity cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.activity-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: transform 0.28s var(--ease), border-color 0.28s ease, background 0.28s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 51, 0.3);
  background: linear-gradient(160deg, rgba(255, 0, 51, 0.07), transparent 60%);
}

.activity-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.22);
  color: var(--fire-red);
}

.activity-card h3 {
  font-size: 1.08rem;
}

.activity-card p {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.planned-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.planned-note .icon {
  color: var(--warning);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item .gallery-zoom {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox[open],
.lightbox.is-open {
  display: grid;
}

.lightbox-inner {
  position: relative;
  width: min(1000px, 100%);
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #000;
}

.lightbox-close {
  position: absolute;
  top: -0.6rem;
  right: -0.6rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #141414;
  color: #fff;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 20, 0.86);
  color: #fff;
  cursor: pointer;
}

.lightbox-nav.prev {
  left: -0.75rem;
}

.lightbox-nav.next {
  right: -0.75rem;
}

.lightbox-caption {
  margin-top: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Info columns (requirements / safety / bring)
   -------------------------------------------------------------------------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.info-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.12rem;
}

.info-card h3 .icon {
  color: var(--fire-red);
}

.info-card ul {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  list-style: none;
}

.info-card li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.info-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fire-red);
}

.info-card p {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Schedule / programme
   -------------------------------------------------------------------------- */

.programme {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.programme-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.programme-time {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fire-red);
}

.programme-row h4 {
  font-size: 0.98rem;
}

.programme-row p {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.programme-row.is-tbc .programme-time {
  color: var(--text-dimmed);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
}

.faq details {
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  transition: border-color 0.22s ease;
}

.faq details[open] {
  border-color: rgba(255, 0, 51, 0.28);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.96rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--text-dimmed);
  transition: transform 0.25s ease;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
  color: var(--fire-red);
}

.faq-answer {
  padding: 0 1.2rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.faq-answer a {
  color: var(--fire-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 0, 51, 0.25);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 0, 51, 0.2), transparent 45%),
    linear-gradient(140deg, rgba(139, 0, 0, 0.28), rgba(20, 20, 20, 0.9));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  max-width: 18ch;
}

.cta-band p {
  margin-top: 0.7rem;
  max-width: 50ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.7;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.form-card {
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.form-section {
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--card-border);
}

.form-section:last-of-type {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.form-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.form-section-head h2 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-section-head .step {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 0, 51, 0.12);
  border: 1px solid rgba(255, 0, 51, 0.3);
  color: var(--fire-red);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
}

.form-section-head span {
  color: var(--text-dimmed);
  font-size: 0.78rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field label .req {
  color: var(--fire-red);
  margin-left: 2px;
}

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='number'],
.field input[type='date'],
.field input[type='datetime-local'],
.field input[type='password'],
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--card-border-strong);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.94rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 46px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dimmed);
  opacity: 0.75;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--fire-red);
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.14);
  background: var(--bg-primary);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
}

.field-hint {
  color: var(--text-dimmed);
  font-size: 0.76rem;
  line-height: 1.5;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-error .icon {
  width: 14px;
  height: 14px;
}

.form-alert {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 92, 114, 0.4);
  background: rgba(255, 92, 114, 0.08);
  color: #ffc2cb;
  font-size: 0.88rem;
  line-height: 1.6;
}

.form-alert .icon {
  margin-top: 2px;
  color: var(--danger);
}

.form-alert--warn {
  border-color: rgba(255, 200, 87, 0.35);
  background: rgba(255, 200, 87, 0.07);
  color: #ffe6b0;
}

.form-alert--warn .icon {
  color: var(--warning);
}

.form-alert--info {
  border-color: var(--card-border-strong);
  background: var(--card-bg);
  color: var(--text-muted);
}

.form-alert--info .icon {
  color: var(--text-muted);
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check:hover {
  background: rgba(255, 255, 255, 0.025);
}

.check.has-error {
  border-color: rgba(255, 92, 114, 0.4);
  background: rgba(255, 92, 114, 0.05);
}

.check input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 5px;
  border: 1.5px solid var(--card-border-strong);
  background: var(--input-bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.check input[type='checkbox']::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  margin-top: -2px;
}

.check input[type='checkbox']:checked {
  background: var(--gradient-fire);
  border-color: transparent;
}

.check input[type='checkbox']:checked::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.check input[type='checkbox']:focus-visible {
  outline: 2px solid var(--fire-red);
  outline-offset: 2px;
}

.check label {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
  cursor: pointer;
}

.check label a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.check label strong {
  color: var(--text-primary);
}

.consent-group {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.8rem;
}

.form-actions .btn-primary {
  flex: 1 1 240px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.summary-card {
  position: sticky;
  top: calc(var(--nav-height) + 1.25rem);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border-strong);
  background:
    linear-gradient(160deg, rgba(255, 0, 51, 0.09), transparent 45%),
    var(--card-bg);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.summary-card h2 {
  font-size: 1.2rem;
}

.summary-event {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.1rem;
}

.summary-event img {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.summary-event h3 {
  font-size: 0.95rem;
  line-height: 1.35;
}

.summary-event p {
  margin-top: 0.3rem;
  color: var(--text-dimmed);
  font-size: 0.78rem;
}

.summary-lines {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--card-border);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.summary-line strong {
  color: var(--text-primary);
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--card-border);
}

.summary-total span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.summary-total strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.summary-note {
  margin-top: 0.9rem;
  color: var(--text-dimmed);
  font-size: 0.76rem;
  line-height: 1.6;
}

.summary-trust {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--card-border);
  list-style: none;
}

.summary-trust li {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.summary-trust .icon {
  color: var(--success);
}

.pay-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.pay-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Status / receipt pages
   -------------------------------------------------------------------------- */

.status-page {
  padding: calc(var(--nav-height) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem);
}

.status-hero {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.status-icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin-bottom: 1.2rem;
  background: rgba(34, 211, 154, 0.1);
  border: 1px solid rgba(34, 211, 154, 0.4);
  color: var(--success);
  box-shadow: 0 0 0 12px rgba(34, 211, 154, 0.04);
}

.status-icon--warn {
  background: rgba(255, 200, 87, 0.1);
  border-color: rgba(255, 200, 87, 0.4);
  color: var(--warning);
  box-shadow: 0 0 0 12px rgba(255, 200, 87, 0.04);
}

.status-icon--danger {
  background: rgba(255, 92, 114, 0.1);
  border-color: rgba(255, 92, 114, 0.4);
  color: var(--danger);
  box-shadow: 0 0 0 12px rgba(255, 92, 114, 0.04);
}

.status-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
}

.status-hero p {
  margin: 1rem auto 0;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.receipt {
  max-width: 760px;
  margin: 2.2rem auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border-strong);
  background: var(--card-bg);
  overflow: hidden;
}

.receipt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.6rem;
  border-bottom: 1px solid var(--card-border);
  background: linear-gradient(120deg, rgba(255, 0, 51, 0.1), transparent 55%);
}

.receipt-head h2 {
  font-size: 1.15rem;
}

.receipt-ref {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--fire-red);
}

.receipt-body {
  padding: 0.4rem 1.6rem 1.5rem;
}

.receipt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-row dt,
.receipt-row .label {
  color: var(--text-dimmed);
  font-size: 0.82rem;
}

.receipt-row dd,
.receipt-row .value {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  overflow-wrap: anywhere;
}

.receipt-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-top: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.receipt-foot p {
  color: var(--text-dimmed);
  font-size: 0.78rem;
}

.instructions {
  max-width: 760px;
  margin: 1.2rem auto 0;
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 0, 51, 0.25);
  background: rgba(255, 0, 51, 0.05);
}

.instructions h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
}

.instructions h2 .icon {
  color: var(--fire-red);
}

.instructions p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.lookup-card {
  max-width: 620px;
  margin: 2rem auto 0;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.lookup-card .form-grid {
  grid-template-columns: 1fr;
}

.booking-result {
  max-width: 760px;
  margin: 1.5rem auto 0;
}

/* --------------------------------------------------------------------------
   Legal / prose pages
   -------------------------------------------------------------------------- */

.legal-page {
  padding: calc(var(--nav-height) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 5rem);
}

.legal-header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.legal-header p {
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-size: 0.84rem;
}

.legal-nav a {
  padding: 0.45rem 0.6rem;
  border-radius: 7px;
  color: var(--text-muted);
}

.legal-nav a:hover {
  background: rgba(255, 0, 51, 0.08);
  color: var(--text-primary);
}

.legal-body {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

.legal-body h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.45rem;
  color: var(--text-primary);
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
  color: var(--text-primary);
}

.legal-body p + p {
  margin-top: 0.9rem;
}

.legal-body ul,
.legal-body ol {
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.legal-body li::marker {
  color: var(--fire-red);
}

.legal-body a {
  color: var(--fire-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body strong {
  color: var(--text-primary);
}

.legal-meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  color: var(--text-dimmed);
  font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   Notices
   -------------------------------------------------------------------------- */

.notice {
  max-width: 760px;
  margin: 1.5rem auto 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.notice .icon {
  color: var(--fire-red);
  margin-top: 2px;
}

.notice strong {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--card-border);
  background: rgba(10, 10, 10, 0.5);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.6rem;
}

:root[data-theme='light'] .footer {
  background: rgba(247, 247, 248, 0.7);
}

.footer-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}

.footer-brand p {
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-contact {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.83rem;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--fire-red);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--fire-red);
}

.footer-bottom {
  width: min(1200px, 100%);
  margin: 2.2rem auto 0;
  padding: 1.2rem 1.5rem 0;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  color: var(--text-dimmed);
  font-size: 0.78rem;
}

.footer-legal {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--fire-red);
}

.footer-lang {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.footer-lang-icon {
  display: inline-flex;
  align-items: center;
  color: var(--text-dimmed);
}

.footer-lang-icon svg {
  display: block;
}

.footer-lang-link {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-lang-link[lang='ar'] {
  font-family: 'Cairo', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', sans-serif;
}

a.footer-lang-link:hover {
  border-color: var(--fire-red);
  color: var(--fire-red);
}

.footer-lang-link.is-active {
  color: var(--text-primary);
  border-color: var(--fire-red);
  background: rgba(255, 0, 51, 0.1);
}

.mobile-cta-bar {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav-links {
    gap: 1.1rem;
  }

  .nav-link {
    font-size: 0.84rem;
  }

  .fact-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(6) {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }

  .footer-content {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .theme-toggle {
    display: none;
  }

  .nav-container {
    padding-right: 1.25rem;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.92rem;
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-cta {
    margin-top: 0.9rem;
    width: 100%;
    padding: 0.85rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-media {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-frame {
    aspect-ratio: 4 / 4.2;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .form-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
    order: -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 1.1rem;
  }

  .nav-container {
    padding-inline: 1.1rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 2rem);
  }

  .hero-meta {
    gap: 0.5rem 1rem;
  }

  .hero-meta-item {
    font-size: 0.82rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-frame {
    aspect-ratio: 3 / 3.6;
  }

  .fact-grid,
  .card-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact {
    padding: 1.05rem 0.95rem;
  }

  .fact dd {
    font-size: 0.92rem;
  }

  .gallery {
    gap: 0.55rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .programme-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .receipt-head,
  .receipt-body,
  .receipt-foot {
    padding-inline: 1.1rem;
  }

  .receipt-row dd,
  .receipt-row .value {
    max-width: 100%;
    text-align: left;
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-bottom {
    padding-inline: 1.1rem;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-nav.prev {
    left: 0.15rem;
  }

  .lightbox-nav.next {
    right: 0.15rem;
  }

  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(14, 14, 14, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
  }

  :root[data-theme='light'] .mobile-cta-bar {
    background: rgba(255, 255, 255, 0.96);
    border-top-color: rgba(10, 10, 10, 0.1);
  }

  .mobile-cta-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
  }

  .mobile-cta-sub {
    display: block;
    color: var(--text-dimmed);
    font-size: 0.66rem;
  }

  .mobile-cta-bar .btn {
    padding: 0.72rem 1rem;
    font-size: 0.84rem;
  }

  body.has-mobile-cta {
    padding-bottom: 74px;
  }
}

@media (max-width: 380px) {
  .fact-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Motion + print
   -------------------------------------------------------------------------- */

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

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  #canvas-bg,
  .nav,
  .theme-toggle,
  .footer,
  .mobile-cta-bar,
  .status-actions,
  .no-print {
    display: none !important;
  }

  .status-page {
    padding: 0;
  }

  .receipt,
  .instructions {
    border-color: #ccc;
    background: #fff;
    box-shadow: none;
  }

  .receipt-row dd,
  .receipt-row .value,
  .receipt-head h2,
  .receipt-ref {
    color: #000 !important;
  }
}

/* --------------------------------------------------------------------------
   Floating language switcher (mirrors the main site homepage)
   -------------------------------------------------------------------------- */

.lang-switcher {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  font-family: var(--font-body);
}

:root[data-theme='light'] .lang-switcher {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switcher a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

:root[data-theme='light'] .lang-switcher a:hover {
  background: rgba(10, 10, 10, 0.06);
}

.lang-switcher a[aria-current='true'] {
  background: var(--gradient-fire);
  color: #fff;
}

.lang-switcher .sep {
  color: var(--text-dimmed);
  font-size: 0.75rem;
  padding: 0 0.1rem;
}

.lang-switcher a[lang='ar'] {
  font-family: 'Cairo', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'Geeza Pro', sans-serif;
}

/* Keep the pill clear of the mobile sticky CTA bar. */
@media (max-width: 900px) {
  body.has-mobile-cta .lang-switcher {
    bottom: calc(74px + 1rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .lang-switcher {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
  }

  .lang-switcher a {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }
}

@media print {
  .lang-switcher {
    display: none !important;
  }
}