/* National dabke schools championship — landing & registration
   Palette: charcoal / olive / burnt orange from the logo, on cream. */

:root {
  --bg: #FEFDF6;
  --ink: #2F2F2F;
  --olive: #6F7042;
  --orange: #E17043;

  --ink-soft: color-mix(in srgb, var(--ink) 72%, var(--bg));
  --ink-mute: color-mix(in srgb, var(--ink) 55%, var(--bg));
  --olive-dark: color-mix(in srgb, var(--olive) 82%, black);
  --olive-tint: color-mix(in srgb, var(--olive) 9%, var(--bg));
  --olive-line: color-mix(in srgb, var(--olive) 24%, var(--bg));
  --orange-tint: color-mix(in srgb, var(--orange) 12%, var(--bg));
  --card: #FFFFFF;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(47 47 47 / .05), 0 12px 32px -12px rgb(47 47 47 / .18);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-display: "Baloo Bhaijaan 2", "Readex Pro", system-ui, sans-serif;
  --font-body: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4.4vw, 44px); }
p { margin: 0; }
button { font: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--olive);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-btn); color: #fff;
  border: 0; border-radius: 999px;
  padding: 12px 22px; min-height: 48px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--olive) 80%, transparent);
}
.btn:hover { background: var(--olive-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn--big { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--olive-line); }
.btn--ghost:hover { background: var(--olive-tint); box-shadow: inset 0 0 0 1.5px var(--olive); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--olive-line); }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__logo { height: 70px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-soft); }
.nav a:hover { background: var(--olive-tint); color: var(--ink); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.lang {
  background: transparent; border: 1.5px solid var(--olive-line); color: var(--ink);
  border-radius: 999px; min-height: 40px; padding: 6px 16px; cursor: pointer; font-weight: 500;
}
.lang:hover { border-color: var(--olive); background: var(--olive-tint); }
.lang span { font-family: var(--font-body); }

@media (max-width: 900px) {
  .nav { display: none; }
  .topbar__actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .topbar__inner { height: 72px; gap: 10px; }
  .brand__logo { height: 60px; }
  .topbar__actions .btn--small:not(.btn--ghost) { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(24px, 5vw, 64px) 0; overflow-x: clip; }
html, body { overflow-x: clip; }
.hero__grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(70px, 9vw, 120px);
}
.hero__visual { position: relative; order: 2; justify-self: center; width: min(100%, 520px); }
.arch {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  outline: 8px solid var(--bg);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.sun {
  position: absolute; z-index: 0;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--orange);
  inset-inline-end: -8%; top: -4%;
  animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both .1s;
}
.badge {
  position: absolute; z-index: 2;
  inset-inline-start: -7%; bottom: -8%;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  box-shadow: var(--shadow);
  animation: pop .7s cubic-bezier(.2,.9,.3,1.3) both .45s;
}
.badge img { width: 48%; height: auto; }

.hero__text { order: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-tint); color: var(--ink);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero__title {
  font-size: clamp(38px, 6.2vw, 72px);
  margin-block: 18px 18px;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="en"] .hero__title { letter-spacing: -.02em; }
.hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); max-width: 36em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.countdown {
  margin-top: 32px;
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 14px 20px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--card); box-shadow: var(--shadow);
}
.countdown__label { font-size: 14px; color: var(--ink-mute); }
.countdown__cells { display: flex; gap: 10px; }
.countdown__cells div { display: flex; align-items: baseline; gap: 5px; }
.countdown__cells div + div { padding-inline-start: 10px; border-inline-start: 1px solid var(--olive-line); }
.countdown__cells b { font-family: var(--font-display); font-size: 28px; color: var(--olive); font-variant-numeric: tabular-nums; line-height: 1; }
.countdown__cells span { font-size: 13px; color: var(--ink-mute); }
.countdown.is-closed .countdown__cells { display: none; }

.hills { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(60px, 8vw, 120px); display: block; }
.hills__back { fill: var(--olive); opacity: .18; }
.hills__front { fill: var(--olive); }

@media (max-width: 859px) {
  .hero__grid { grid-template-columns: 1fr; padding-bottom: 90px; }
  .hero__visual { order: 1; width: min(76%, 360px); margin-top: 8px; }
  .arch { aspect-ratio: 1 / 1.08; }
  .hero__text { order: 2; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero__ctas .btn { flex: 1 1 220px; }
  .countdown { justify-content: center; }
  .badge { width: 36%; inset-inline-start: -10%; }
}

/* ---------- Ribbon ---------- */
.ribbon { background: var(--olive); color: #fff; }
.ribbon__inner { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 4px 18px; font-weight: 500; text-align: center; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--olive-tint); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow { color: var(--orange); font-weight: 600; font-size: 14px; letter-spacing: .04em; margin-bottom: 8px; }
html[lang="en"] .eyebrow { text-transform: uppercase; font-size: 13px; letter-spacing: .1em; }

/* ---------- Stages: dancers holding hands ---------- */
.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative;
}
.stages::before {
  content: ""; position: absolute; top: 27px; inset-inline: 12%; height: 0;
  border-top: 2px dashed var(--olive-line);
}
.stage { position: relative; }
.stage__num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 26px; font-weight: 800;
  background: var(--bg); color: var(--olive);
  box-shadow: inset 0 0 0 2px var(--olive);
  margin-bottom: 18px;
}
.stage:first-child .stage__num { background: var(--olive); color: #fff; }
.stage__date { font-size: 14px; font-weight: 600; color: var(--orange); }
.stage h3 { font-size: 23px; margin-block: 4px 12px; }
.stage ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-soft); font-size: 15px; }
.stage li { position: relative; padding-inline-start: 16px; }
.stage li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--olive-line); }

@media (max-width: 960px) {
  .stages { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stages::before { display: none; }
}
@media (max-width: 600px) {
  .stages { grid-template-columns: 1fr; row-gap: 0; }
  .stage { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 32px; }
  .stage__num { grid-row: span 3; margin: 0; }
  .stage:not(:last-child)::after {
    content: ""; position: absolute; top: 60px; bottom: 4px; inset-inline-start: 27px;
    border-inline-start: 2px dashed var(--olive-line);
  }
}

/* ---------- Rules + criteria ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.panel h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--olive-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F7042' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.panel__note {
  display: flex; gap: 12px; align-items: center;
  margin-top: 24px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--orange-tint); font-size: 15px;
}
.panel__note .icon { color: var(--orange); }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bar__row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-weight: 500; }
.bar__row b { font-family: var(--font-display); color: var(--olive); font-size: 20px; line-height: 1; }
.bar__row small { font-weight: 400; color: var(--ink-mute); font-size: 13px; }
.bar__track { height: 10px; border-radius: 999px; background: var(--olive-tint); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: inherit; background: var(--olive); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.bars.is-visible .bar__fill { width: var(--w); }
.bars li:first-child .bar__fill { background: var(--orange); }
.bars__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--olive-line); font-weight: 600;
}
.bars__total b { font-family: var(--font-display); font-size: 30px; }

@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Registration ---------- */
.register__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.register__intro { position: sticky; top: 100px; }
.register__lead { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.register__art { margin-top: 40px; width: min(240px, 60%); opacity: .95; }

.card { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); border-top: 6px solid var(--olive); }

.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; padding: 0; }
.opt { font-style: normal; font-weight: 400; color: var(--ink-mute); font-size: 13px; }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-mute); }
input:where(:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file])), select {
  width: 100%; min-height: 52px;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
  color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--olive-line); border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none; -webkit-appearance: none;
}
[dir="rtl"] input[dir="ltr"] { text-align: right; }
input::placeholder { color: color-mix(in srgb, var(--ink) 35%, var(--bg)); }
input:hover, select:hover { border-color: color-mix(in srgb, var(--olive) 50%, var(--bg)); }
input:focus, select:focus { outline: none; border-color: var(--olive); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 16%, transparent); }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F2F2F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: right 14px center;
  padding-inline-end: 44px;
}
[dir="rtl"] select { background-position: left 14px center; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border: 1.5px solid var(--olive-line); border-radius: var(--radius-sm); background: var(--bg);
  font-weight: 500; transition: all .15s ease;
}
.seg label:hover span { border-color: var(--olive); }
.seg input:checked + span { background: var(--olive); border-color: var(--olive); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); margin: 4px 0 24px; cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--olive); cursor: pointer; }

.is-invalid input:where(:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file])), .is-invalid select, .is-invalid .seg span { border-color: var(--orange); }
.field-error { display: block; margin-top: 6px; font-size: 13px; color: color-mix(in srgb, var(--orange) 75%, black); font-weight: 500; }
.consent.is-invalid { color: color-mix(in srgb, var(--orange) 75%, black); }
.form-error { background: var(--orange-tint); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }

@media (max-width: 900px) {
  .register__grid { grid-template-columns: 1fr; }
  .register__intro { position: static; }
  .register__art { display: none; }
}

/* ---------- Registration not open yet ---------- */
.soon { text-align: center; padding-block: 16px; }
.soon__icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--orange-tint); display: grid; place-items: center;
}
.soon__icon svg { width: 36px; height: 36px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soon h3 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.soon .muted { max-width: 34em; margin-inline: auto; }
.soon__contact { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--olive-line); font-size: 15px; }
.soon__contact a { color: var(--olive); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--olive-line); }

/* ---------- Success ---------- */
.success { text-align: center; padding-block: 12px; outline: none; animation: fadeUp .5s ease both; }
.success__icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--olive); display: grid; place-items: center;
  animation: pop .6s cubic-bezier(.2,.9,.3,1.4) both .1s;
}
.success__icon svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s ease forwards .5s; }
.success h3 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 12px; }
.success > p { margin-bottom: 10px; }
.success b#success-email { color: var(--olive); display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.muted { color: var(--ink-soft); font-size: 15px; }
.spam {
  display: flex; gap: 14px; align-items: flex-start; text-align: start;
  margin: 24px 0; padding: 18px; border-radius: var(--radius-sm);
  background: var(--orange-tint); border-inline-start: 4px solid var(--orange);
}
.spam .icon { color: var(--orange); width: 28px; height: 28px; margin-top: 2px; }
.spam b { display: block; font-size: 16px; margin-bottom: 4px; }
.spam p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, var(--ink)); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: auto 1.3fr 1fr; gap: 40px; align-items: start; }
.footer__logo { width: 96px; height: auto; background: var(--bg); border-radius: var(--radius-sm); padding: 12px; }
.footer__org p:first-child { font-size: 14px; opacity: .8; }
.footer__org p:nth-child(2) { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; margin-block: 2px 8px; }
.footer__org p:nth-child(3) { font-size: 14.5px; }
.footer .eyebrow { color: var(--orange); }
.footer a#contact-email { color: #fff; font-weight: 500; font-size: 17px; text-decoration: none; border-bottom: 1.5px solid var(--orange); }
.footer__note { font-size: 14px; margin-top: 16px; opacity: .8; }
.footer__copy { text-align: center; font-size: 13px; opacity: .6; margin-top: 44px; padding-inline: var(--gutter); }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 28px; }
}


/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { transform: translateY(40%) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .bar__fill { width: var(--w) !important; }
  .success__icon svg { stroke-dashoffset: 0; }
}
