:root {
  --navy: #283660;
  --navy-dark: #1c2748;
  --orange: #f9a01b;
  --orange-dark: #e08a06;
  --ink: #212121;
  --muted: #5b6275;
  --line: #e4e6ee;
  --tint: #f4f5f9;
  --white: #fff;
  --wa: #25d366;
  --radius: 16px;
  --gutter: 20px;
  --topbar-h: 72px;
  --quickbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sans", "Noto Sans Arabic", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
:lang(ru) .hero h1, :lang(uk) .hero h1, :lang(el) .hero h1 { font-size: clamp(1.9rem, 7.5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
}
.eyebrow-dark { color: var(--orange-dark); }

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 20;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand img { height: 56px; width: auto; }
.nav { display: none; }
.topbar-right { display: flex; align-items: center; gap: 20px; }

/* Language picker */
.lang {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--navy); cursor: pointer;
}
.lang:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.lang svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.lang select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  color: var(--navy); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding-inline-end: 14px; outline: none;
  background-image: linear-gradient(45deg, transparent 50%, #283660 50%), linear-gradient(135deg, #283660 50%, transparent 50%);
  background-position: calc(100% - 6px) 55%, 100% 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
[dir="rtl"] .lang select { background-position: 0 55%, 6px 55%; }
.lang option { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-whatsapp { background: var(--wa); color: #06341a; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-accent { background: var(--orange); color: var(--navy-dark); }
.btn-accent:hover { background: var(--orange-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-img { width: 100%; height: 240px; object-fit: cover; object-position: center 30%; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 140px; height: 101px;
  background: linear-gradient(to bottom, rgba(40,54,96,0), var(--navy));
  pointer-events: none;
}
.hero-body { position: relative; z-index: 1; padding: 8px var(--gutter) 44px; margin-top: -24px; }
.hero h1 { color: var(--white); margin-bottom: 12px; }
.lead { font-size: 1.08rem; color: rgba(255,255,255,.88); }
.hero-actions { display: grid; gap: 12px; margin-top: 24px; }
/* Phones show the short WhatsApp label, desktop the full one */
.label-long { display: none; }
/* Long translated labels may wrap on phones instead of spilling off screen */
.hero-actions .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }

.datechip {
  flex: none; width: 58px; height: 62px; border-radius: 12px;
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.dc-m { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.dc-d { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.dc-m-only { font-size: .95rem; }
.dc-small { font-size: .95rem; letter-spacing: .02em; }
.tag {
  display: inline-block; margin: 4px 0 6px; padding: 2px 10px; border-radius: 999px;
  background: #fff1d9; color: #8a4b00; font-size: .75rem; font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding: 56px var(--gutter); }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 24px; }

/* Events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event {
  display: flex; gap: 16px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.event h3 { margin-bottom: 2px; }
.event p { margin: 0 0 .5em; }
.event p:last-child { margin: 0; }
.link { font-weight: 700; color: var(--navy); text-decoration: none; }

/* About */
.about { display: grid; gap: 24px; }
.about-img { border-radius: var(--radius); width: 100%; height: auto; }
.pillars { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.pillars li {
  display: flex; flex-direction: column; padding: 14px 16px;
  background: var(--white); border-radius: 12px; border-inline-start: 4px solid var(--orange);
}
.pillars strong { color: var(--navy); }
.pillars span { color: var(--muted); font-size: .92rem; }
.members { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.members li {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); padding: 14px 16px; border-radius: 12px;
  font-size: 1rem; font-weight: 400; color: var(--navy); line-height: 1.3;
}
.members li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.members-more { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.members em { font-style: normal; font-size: .85rem; font-weight: 400; color: var(--muted); }
.members .avatar {
  flex: none; display: grid; place-items: center; border-radius: 50%;
  width: 40px; height: 40px; font-size: .8rem; font-weight: 600; background: var(--orange); color: var(--navy-dark);
}

/* Sponsorship */
.support { background: var(--navy); color: rgba(255,255,255,.88); border-radius: 24px; padding: 32px 22px; }
.support h2 { color: var(--white); margin-bottom: 10px; }
.support-actions { display: grid; gap: 10px; margin-top: 8px; }
.support-email { margin: 0; font-size: .9rem; color: rgba(255,255,255,.7); overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.75); text-align: center; padding: 40px var(--gutter); font-size: .9rem; }
.footer img { height: 56px; width: auto; margin: 0 auto 18px; box-sizing: content-box; padding: 12px 18px; background: var(--white); border-radius: 14px; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--white); }
.footer p:first-of-type { max-width: 36ch; margin: 0 auto 8px; }

/* Quick bar (mobile) */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--quickbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(28,39,72,.08);
}
.quickbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .72rem; font-weight: 700; color: var(--navy); text-decoration: none;
}
.quickbar svg { width: 22px; height: 22px; fill: currentColor; }
.quick-wa svg { fill: var(--wa) !important; }
.quick-cta { background: var(--orange); color: var(--navy-dark) !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 820px) {
  body { padding-bottom: 0; }
  html { scroll-padding-top: calc(var(--topbar-h) + 8px); }
  .topbar { position: sticky; top: 0; }
  .quickbar { display: none; }
  :root { --gutter: max(40px, calc((100vw - 1040px) / 2)); --topbar-h: 84px; }
  .brand img { height: 64px; }
  .nav { display: flex; gap: 28px; align-items: center; }
  .nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
  .nav a:hover { color: var(--orange-dark); }
  .nav .nav-cta { background: var(--orange); color: var(--navy-dark); padding: 10px 18px; border-radius: 999px; }
  .nav .nav-cta:hover { color: var(--navy-dark); background: var(--orange-dark); }

  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; min-height: 560px; }
  .hero h1 { font-size: 4rem; }
  :lang(ru) .hero h1, :lang(uk) .hero h1, :lang(el) .hero h1 { font-size: 3.2rem; }
  .lead { font-size: 1.2rem; max-width: 40ch; }
  .hero::after { display: none; }
  .hero-img { order: 2; height: 100%; min-height: 560px; }
  .hero-body { margin: 0; padding-block: 60px 100px; padding-inline: var(--gutter) 40px; }
  .hero-actions { display: inline-grid; grid-template-columns: 1fr; gap: 12px; }  /* stacked, both as wide as the longer label */
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn { white-space: nowrap; }
  .label-long { display: inline; }
  .label-short { display: none; }

  .section { padding: 88px var(--gutter); }
  .events { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
  .members { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .support { padding: 56px; max-width: 760px; margin: 0 auto; }
  .support-actions { grid-auto-flow: column; justify-content: start; align-items: center; gap: 20px; }
}

/* Arabic, Hebrew and Chinese have no capital letters, so letter-spacing looks wrong (and breaks Arabic joining) */
:lang(ar) .eyebrow, :lang(he) .eyebrow, :lang(zh) .eyebrow, :lang(ar) .dc-m, :lang(he) .dc-m, :lang(zh) .dc-m { letter-spacing: 0; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.35; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }

/* ---------- Event feature block (main page) ---------- */
.feature { padding: 40px var(--gutter) 0; }
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 24px;
  background: var(--navy); color: rgba(255,255,255,.88); text-decoration: none;
  box-shadow: 0 14px 34px rgba(28,39,72,.18);
}
.feature-img { width: 100%; height: auto; aspect-ratio: 1054 / 694; object-fit: cover; }  /* same artwork as the Halloween page banner */
.feature-body { padding: 24px 22px 28px; }
.feature-body h2 { color: var(--white); margin-bottom: 6px; }
.feature-meta { margin: 0 0 12px; font-weight: 600; color: var(--white); }
.feature-body .btn { margin-top: 6px; white-space: normal; text-align: center; }
.feature-card:hover .btn-accent { background: var(--orange-dark); }

@media (min-width: 820px) {
  .feature { padding: 56px var(--gutter) 0; }
  .feature-card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
  .feature-img { height: 100%; aspect-ratio: auto; min-height: 320px; }
  .feature-body { padding: 40px 44px; }
}

/* Arrows point the reading direction in Arabic and Hebrew */
[dir="rtl"] .feature-card .btn span[aria-hidden] { display: inline-block; transform: scaleX(-1); }

/* ---------- Halloween page (adapts the printed flyer) ---------- */
/* Night palette, scoped to this page (header and footer stay PASCAL blue). Spacing follows an 8px rhythm. */
.page-halloween {
  --night: #160a1e; --plum: #3a1d4f; --line-n: rgba(255,255,255,.1);
  --pumpkin: #f1621e; --pumpkin-soft: #f6965a; --gold: #efc04c; --lavender: #c3b0e0; --text-n: #efe8f7;
  background: var(--night); padding-bottom: 0;
}

.hw { color: var(--text-n); }
.hw h1, .hw h2, .hw h3 { color: #fff; letter-spacing: 0; }

/* Artwork fades into the page instead of ending in a hard line */
.hw-hero { position: relative; max-width: 1054px; margin: 0 auto; }
.hw-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(to bottom, transparent, var(--night)); pointer-events: none; }
.hw-art { width: 100%; height: auto; }

.hw-facts { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
.hw-body { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) 56px; }

/* Key facts */
.hw-intro { text-align: center; margin-top: -8px; position: relative; z-index: 1; }
/* Families-only pill: secondary-button style, gold stroke with a slow shimmer */
.hw-chip {
  position: relative; isolation: isolate;
  display: inline-block; max-width: 100%; text-wrap: balance;
  margin: 0 0 16px; padding: 7px 18px; border-radius: 999px;
  background: rgba(239,192,76,.06); color: #f3e7c4; font-size: .85rem; font-weight: 600; line-height: 1.35;
}
.hw-chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(110deg, rgba(239,192,76,.55) 0 42%, #fff6d6 50%, rgba(239,192,76,.55) 58% 100%);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hw-shimmer 5s ease-in-out infinite;
}
@keyframes hw-shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .hw-chip::before { animation: none; } }
.hw .hw-title { font-size: clamp(1.5rem, 5.6vw, 1.9rem); color: var(--pumpkin-soft); margin: 0 0 6px; }
:lang(en) .hw-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hw-date { margin: 0; font-size: clamp(1.35rem, 5.4vw, 1.85rem); font-weight: 800; color: #fff; line-height: 1.2; }
.hw-time { margin: 4px 0 0; font-size: clamp(1.35rem, 5.4vw, 1.85rem); font-weight: 800; color: var(--gold); line-height: 1.2; }
.hw-place { margin: 12px 0 0; display: inline-flex; align-items: center; gap: 6px; color: var(--lavender); font-weight: 600; }
.hw-inline-icon { width: 22px; height: 22px; flex: none; }

/* Tickets card */
.hw-ticket {
  margin: 32px 0 0; border-radius: 20px; overflow: hidden;
  background: var(--plum); box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.hw-ticket-price {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 20px 24px; background: var(--pumpkin); color: #fff;
}
.hw-price { margin: 0; font-size: clamp(1.4rem, 5.4vw, 1.75rem); font-weight: 800; line-height: 1.1; }
.hw-free { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 700; font-size: .95rem; }
.hw-ticket-how { display: flex; gap: 14px; align-items: flex-start; padding: 20px 24px 22px; }
.hw-ticket-icon { width: 32px; height: 32px; flex: none; color: var(--gold); margin-top: 2px; }
.hw-buy { margin: 0; font-weight: 700; font-size: 1.1rem; color: #fff; line-height: 1.35; }
.hw-buy em { font-style: normal; color: var(--gold); white-space: nowrap; }
.hw-buy-note { margin: 2px 0 0; color: var(--lavender); font-size: .95rem; }

/* Activities */
.hw-section { margin-top: 48px; }
.hw-section-title { font-size: clamp(1.35rem, 5vw, 1.6rem); margin: 0 0 16px; text-align: center; text-wrap: balance; }
.hw-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hw-act {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line-n);
}
.hw-act-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(241,98,30,.14); color: var(--pumpkin-soft);
}
.hw-act-icon svg { width: 34px; height: 34px; }
.hw-act h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.hw-act p { margin: 0; color: #d9cfe6; font-size: .95rem; line-height: 1.45; }
.hw-act .hw-note { margin-top: 6px; color: var(--lavender); font-size: .88rem; }

/* Reminder + closing */
.hw-reminder {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  margin: 32px 0 0; padding: 14px 18px; border-radius: 14px;
  background: rgba(239,192,76,.08); border: 1px solid rgba(239,192,76,.25); color: #fff; font-weight: 600;
}
.hw-reminder .hw-inline-icon { color: var(--gold); }
.hw-reminder em { font-style: normal; color: var(--gold); }
/* Dress-code gallery: Pinterest-style masonry, photos keep their natural shape */
.hw-masonry { columns: 2; column-gap: 10px; }
.hw-masonry img {
  display: block; width: 100%; height: auto; margin: 0 0 10px; break-inside: avoid;
  border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
:lang(ar) .hw-date, :lang(ar) .hw-time { line-height: 1.4; }

@media (min-width: 820px) {
  .hw-body { max-width: 1080px; padding: 0 40px 88px; }  /* fixed side padding: --gutter grows with the screen and would crush this column */
  .hw-acts { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hw-act { padding: 20px; }
  .hw-section { margin-top: 64px; }
  .hw-reminder { max-width: 620px; margin-left: auto; margin-right: auto; }
  .hw-masonry { columns: 3; column-gap: 16px; }
  .hw-masonry img { margin-bottom: 16px; border-radius: 18px; }
  /* in three columns the last (portrait) photo shows landscape so all columns end level */
  .hw-masonry .hw-last { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
}
/* Wide screens: artwork beside the key facts, so date + tickets are on the first screen */
@media (min-width: 1024px) {
  .hw-top {
    display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px;
    max-width: 1200px; margin: 0 auto; padding: 40px 40px 8px;  /* fixed side padding: --gutter grows with the screen and would squeeze the columns */
  }
  .hw-hero { max-width: none; margin: 0; }
  .hw-hero::after { display: none; }
  .hw-art { border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
  .hw-facts { max-width: none; margin: 0; padding: 0; }
  .hw-intro { text-align: start; margin-top: 0; }
  .hw-date, .hw-time { font-size: 1.6rem; }
  .page-halloween .hw .hw-title { font-size: 1.75rem; }
  .hw-top { grid-template-columns: 1.1fr 1fr; }
  .hw-chip { font-size: .8rem; padding: 6px 16px; }
  .hw-ticket { margin-top: 28px; }
  .hw-section { margin-top: 72px; }
}

/* Tablet widths: the full menu does not fit beside the logo, so keep the phone bottom bar until 1100px */
@media (min-width: 820px) and (max-width: 1099px) {
  .nav { display: none; }
  .quickbar { display: grid; }
  body { padding-bottom: calc(var(--quickbar-h) + env(safe-area-inset-bottom)); }
}
