/* =========================================================
   Bhubaneswar Food Fest (BFF) 2026 — Save the Date
   Sibling of KFF: same playful, food-festival energy,
   its own palette (warm charcoal) + rounded display type.
   ========================================================= */

:root {
  --bff-cream:    #f9ecd2;
  --bff-charcoal: #484a4c;
  --bff-yellow:   #f2be5c;
  --bff-teal:     #4ac0b0;
  --bff-pink:     #e65995;

  --ink:   var(--bff-charcoal);
  --paper: var(--bff-cream);

  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: clamp(15px, 1vw + 12px, 17px);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--bff-pink); color: var(--bff-cream); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bff-cream);
  padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 800;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--bff-cream);
  background: rgba(230,89,149,.9);
  padding: .4rem .9rem; border-radius: 999px;
  margin: 0 0 1.1rem;
}
.eyebrow--ink { color: var(--bff-charcoal); background: rgba(74,192,176,.28); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display);
  padding: .95rem 1.7rem; border-radius: 999px;
  font-weight: 600; font-size: 1.02rem; line-height: 1;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  -webkit-tap-highlight-color: transparent; cursor: pointer; white-space: nowrap;
  border: 0;   /* kill the default <button> outset bevel */
  -webkit-appearance: none; appearance: none;
}
.btn:active { transform: scale(.96); }
.btn--cta {
  position: relative;
  background: var(--bff-yellow); color: var(--bff-charcoal);
  box-shadow: 0 14px 30px -12px rgba(242,190,92,.75), inset 0 -3px 0 rgba(0,0,0,.10);
}
.btn--cta:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 20px 38px -12px rgba(242,190,92,.85); }

/* On hover/focus, draw a border around the pill (sweeps clockwise from top). */
@property --btn-draw { syntax: "<angle>"; inherits: false; initial-value: 0turn; }
.btn--cta::after {
  /* Inset by 3px so the ring sits fully ON the button — at inset:0 the
     rounded corners let the page background bleed through the edge. */
  content: ""; position: absolute; inset: 3px; border-radius: 999px; padding: 2px;
  background: conic-gradient(from -90deg, var(--bff-charcoal) var(--btn-draw), transparent 0);
  -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, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
.btn--cta:hover::after,
.btn--cta:focus-visible::after { opacity: 1; animation: btn-draw .6s ease forwards; }
.btn--ink::after { background: conic-gradient(from -90deg, var(--bff-cream) var(--btn-draw), transparent 0); }
@keyframes btn-draw { from { --btn-draw: 0turn; } to { --btn-draw: 1turn; } }
.btn--ghost { background: rgba(249,236,210,.08); color: var(--bff-cream); border: 2px solid rgba(249,236,210,.55); }
.btn--ghost:hover { background: var(--bff-cream); color: var(--bff-charcoal); transform: translateY(-2px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 8vh, 96px) 0 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #55585a 0%, var(--bff-charcoal) 55%),
    var(--bff-charcoal);
  color: var(--bff-cream);
  text-align: center;
}

/* soft brand glows */
.hero__blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--teal   { width: 42vw; height: 42vw; top: -8%;  left: -10%; background: var(--bff-teal); }
.blob--pink   { width: 40vw; height: 40vw; bottom: -14%; right: -8%; background: var(--bff-pink); opacity: .42; }
.blob--yellow { width: 30vw; height: 30vw; top: 40%; left: 55%; background: var(--bff-yellow); opacity: .3; }

/* floating food emojis */
.hero__floats { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float {
  position: absolute; left: var(--x); top: var(--y);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  transform: scale(var(--s, 1));
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.35));
  animation: bob 6s ease-in-out var(--d, 0s) infinite;
  opacity: .9;
}
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -16px; } }

.hero__inner { position: relative; z-index: 2; }
.hero__logo {
  width: min(215px, 42vw); height: auto; margin: 0 auto 1.3rem;
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.4));
}

.hero__dates {
  font-family: var(--font-display); font-weight: 700;
  margin: .1em 0 .1em; line-height: .92; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .12em;
}
.hero__day {
  font-size: clamp(3.6rem, 15vw, 9rem);
  background: linear-gradient(180deg, var(--bff-yellow), var(--bff-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__dash { font-size: clamp(3rem, 11vw, 7rem); color: var(--bff-teal); font-weight: 600; }
.hero__month {
  flex-basis: 100%;
  font-size: clamp(1.4rem, 5.2vw, 3rem);
  font-weight: 600; color: var(--bff-cream); letter-spacing: .02em;
}

.hero__place {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 2.6vw, 1.4rem); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bff-teal); margin: .5rem 0 1.1rem;
}
.hero__lede {
  max-width: 40ch; margin: 0 auto 1.8rem;
  font-size: clamp(1rem, 1.4vw, 1.18rem); color: rgba(249,236,210,.88);
}
.hero__lede strong { color: var(--bff-cream); font-weight: 700; }
.hero__lede { transition: font-size .5s ease; }
/* Countdown over: the timer is removed (JS) and the lede grows; nothing else changes. */
.countdown-over .hero__lede { max-width: 26ch; font-size: clamp(1.5rem, 3.4vw, 2.4rem); color: var(--bff-cream); margin-bottom: 2rem; }

/* ---------- Countdown ---------- */
.countdown {
  display: inline-flex; align-items: flex-start; gap: clamp(.4rem, 1.6vw, 1rem);
  padding: 1rem clamp(1rem, 3vw, 1.8rem);
  background: rgba(249,236,210,.06);
  border: 1px solid rgba(249,236,210,.16);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  margin: 0 auto 1.9rem;
}
.cd__unit { display: flex; flex-direction: column; align-items: center; min-width: clamp(46px, 12vw, 74px); }
.cd__num {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(1.9rem, 6.5vw, 3.4rem); color: var(--bff-cream);
  font-variant-numeric: tabular-nums;
}
.cd__label {
  font-size: clamp(.6rem, 1.6vw, .72rem); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(249,236,210,.62); margin-top: .4rem; font-weight: 700;
}
.cd__sep {
  font-family: var(--font-display); font-weight: 700; color: var(--bff-pink);
  font-size: clamp(1.4rem, 5vw, 2.6rem); line-height: 1.1; align-self: flex-start;
}
.countdown.is-live { color: var(--bff-yellow); }
.countdown__done {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2.4rem); color: var(--bff-yellow);
  padding: 1rem 1.6rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Presented by / Curated by ---------- */
.partners {
  display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: clamp(.9rem, 3vw, 1.8rem);
  margin: 1.8rem auto 0;
}
.partner { display: inline-flex; align-items: center; gap: .7rem; }
.partner__label {
  font-family: var(--font-body); font-weight: 700;
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(249,236,210,.62); white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5em;
}
.partner__pipe { display: inline-block; width: 3px; height: 40px; background: rgba(255,255,255,.92); border-radius: 2px; }
.partner__tile {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bff-cream); border-radius: 12px;
  padding: .5rem .7rem; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5);
}
.partner__tile img { height: 34px; width: auto; display: block; }
.partner__div { width: 1px; height: 40px; background: rgba(249,236,210,.2); }
@media (max-width: 460px) { .partner__div { display: none; } }

/* ---------- Marquee ---------- */
.hero__marquee {
  position: relative; z-index: 2; margin-top: clamp(2rem, 6vh, 4rem);
  border-top: 1px solid rgba(249,236,210,.14);
  border-bottom: 1px solid rgba(249,236,210,.14);
  padding: .8rem 0; overflow: hidden; white-space: nowrap;
  background: rgba(0,0,0,.12);
}
.marquee__track {
  display: flex; width: max-content;
  animation: scroll-x 80s linear infinite; will-change: transform;
}
.marquee__group {
  display: flex; align-items: center; gap: 1.4rem; padding-right: 1.4rem; flex: 0 0 auto;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(.95rem, 2vw, 1.25rem); letter-spacing: .04em;
  color: var(--bff-cream);
}
.marquee__group .dot { color: var(--bff-pink); }
/* Two identical groups -> translateX(-50%) lands the 2nd exactly where the 1st began. */
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================================
   TEASER
   ========================================================= */
.teaser { background: var(--bff-cream); padding: clamp(4rem, 10vh, 7rem) 0; text-align: center; }
.teaser__inner { max-width: 720px; }
.teaser__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.03; letter-spacing: -.01em;
  margin: .1em 0 .5em;
}
.teaser__text { font-size: clamp(1rem, 1.4vw, 1.18rem); color: rgba(72,74,76,.82); margin: 0 auto 1.8rem; max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chip {
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  padding: .6rem 1.1rem; border-radius: 999px; color: var(--bff-charcoal);
  box-shadow: 0 10px 24px -16px rgba(0,0,0,.4);
}
.chip--yellow { background: var(--bff-yellow); }
.chip--teal   { background: var(--bff-teal); color: #093c37; }
.chip--pink   { background: var(--bff-pink); color: var(--bff-cream); }

/* =========================================================
   NOTIFY
   ========================================================= */
.notify {
  background: var(--bff-charcoal); color: var(--bff-cream);
  padding: clamp(4rem, 10vh, 7rem) 0; text-align: center;
}
.notify__inner { max-width: 640px; }
.notify__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5.5vw, 3.2rem); margin: 0 0 .5em; line-height: 1.05; }
.notify__text { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(249,236,210,.82); margin: 0 auto 1.8rem; max-width: 46ch; }
.notify__actions { display: flex; justify-content: center; }

/* =========================================================
   FOOTER — copyright left, other two right
   ========================================================= */
.footer { background: var(--bff-cream); padding: clamp(1.3rem, 3vh, 1.9rem) 0; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-top: 0;
}
.footer__bar p { margin: 0; line-height: 1.45; }
.footer__copy { font-size: .78rem; color: rgba(72,74,76,.62); white-space: nowrap; }
.footer__right {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; justify-content: flex-end; gap: .5rem; text-align: right;
}
.footer__made { font-family: var(--font-display); font-weight: 500; font-size: .82rem; color: var(--bff-charcoal); }
.footer__credit { font-size: .82rem; color: rgba(72,74,76,.62); }
.footer__credit strong { color: var(--bff-charcoal); font-weight: 700; }
.footer__sep { font-size: .82rem; color: rgba(72,74,76,.38); }
@media (max-width: 600px) {
  .footer__bar { flex-direction: column; text-align: center; gap: 1rem; }
  .footer__copy { white-space: normal; }
  .footer__right { flex-direction: column; gap: .1rem; align-items: center; text-align: center; }
  .footer__sep { display: none; }
}

/* Secondary CTA styles */
.btn--ink { background: var(--bff-charcoal); color: var(--bff-cream); box-shadow: 0 14px 30px -14px rgba(72,74,76,.6); }
.btn--ink:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 20px 38px -14px rgba(72,74,76,.7); }
.btn--block { width: 100%; }

.teaser__cta { margin-top: 1.8rem; }
.notify__aside { margin-top: 1.2rem; font-size: .9rem; color: rgba(249,236,210,.72); }
.notify__aside a { color: var(--bff-yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.notify__aside a:hover { color: var(--bff-cream); }

/* =========================================================
   REGISTER MODAL + FORM
   ========================================================= */
body.modal-open { overflow: hidden; }

.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(12px, 4vh, 48px) clamp(12px, 4vw, 32px);
  opacity: 0; transition: opacity .28s ease;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }
.modal__overlay {
  position: fixed; inset: 0; background: rgba(40,41,42,.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative; z-index: 1;
  width: min(680px, 100%);
  margin: auto;
  background: #fffdf8;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(40,41,42,.6);
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  transform: translateY(16px) scale(.99);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: .7rem; right: .7rem;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; color: var(--bff-charcoal);
  background: rgba(72,74,76,.08); transition: background .2s, transform .2s;
}
.modal__close:hover { background: rgba(72,74,76,.16); transform: rotate(90deg); }

.modal__head { margin: 0 0 1.4rem; padding: .3rem 0 0; text-align: center; }
/* Softer, on-brand pill — the full-strength pink was too loud on the light modal. */
.modal__head .eyebrow {
  margin-bottom: .9rem;
  background: rgba(230,89,149,.14);
  color: #a3245e;
}
.modal__head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.05; margin: 0 0 .4em;
}
.modal__head p { margin: 0 auto; color: rgba(72,74,76,.8); font-size: .96rem; max-width: 44ch; }

/* ---- Form fields ---- */
.rform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-bottom: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--sm { max-width: 100%; }
.field__label { font-weight: 700; font-size: .82rem; color: var(--bff-charcoal); }
.field__label .req { color: var(--bff-pink); }
.field__label .opt { font-weight: 500; color: rgba(72,74,76,.5); }
.rform input, .rform textarea {
  font: inherit; width: 100%;
  padding: .7rem .85rem; border-radius: 12px;
  border: 1.5px solid rgba(72,74,76,.2); background: #fff; color: var(--bff-charcoal);
  transition: border-color .2s, box-shadow .2s;
}
.rform input::placeholder, .rform textarea::placeholder { color: rgba(72,74,76,.4); }
.rform input:focus, .rform textarea:focus {
  outline: none; border-color: var(--bff-teal); box-shadow: 0 0 0 3px rgba(74,192,176,.22);
}
.rform textarea { resize: vertical; min-height: 3rem; }

/* ---- Events multi-select ---- */
.rform__events { border: 0; padding: 0; margin: 0 0 1.1rem; }
.rform__events > legend { padding: 0; margin-bottom: .7rem; }
.ev-group { margin-bottom: 1rem; }
.ev-group__day {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--bff-charcoal);
  margin: 0 0 .5rem; padding-bottom: .3rem; border-bottom: 2px dotted rgba(72,74,76,.18);
}
.ev {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .75rem; margin-bottom: .4rem;
  border: 1.5px solid rgba(72,74,76,.16); border-radius: 14px;
  cursor: pointer; transition: border-color .18s, background .18s;
}
.ev:hover { border-color: rgba(74,192,176,.6); }
.ev input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev__check {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid rgba(72,74,76,.32); background: #fff; position: relative; transition: all .18s;
}
.ev__check::after {
  content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; color: #fff; opacity: 0; transform: scale(.5); transition: all .18s;
}
.ev input:checked + .ev__check { background: var(--bff-pink); border-color: var(--bff-pink); }
.ev input:checked + .ev__check::after { opacity: 1; transform: scale(1); }
.ev input:focus-visible + .ev__check { outline: 3px solid var(--bff-teal); outline-offset: 2px; }
.ev:has(input:checked) { border-color: var(--bff-pink); background: rgba(230,89,149,.06); }
.ev__body { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ev__title { font-weight: 700; font-size: .92rem; color: var(--bff-charcoal); line-height: 1.2; }
.ev__meta { font-size: .78rem; color: rgba(72,74,76,.62); }
.ev__tag {
  flex: none; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 999px; color: var(--bff-charcoal);
}
.ev__tag--popup      { background: rgba(230,89,149,.18); color: #a3245e; }
.ev__tag--dine-in    { background: rgba(242,190,92,.28); color: #8a5a12; }
.ev__tag--workshop   { background: rgba(74,192,176,.24); color: #0c6157; }
.ev__tag--experience { background: rgba(72,74,76,.12); color: var(--bff-charcoal); }
.ev__right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; }
.ev__price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--bff-charcoal); white-space: nowrap; }
.ev__price--tba { font-weight: 500; font-size: .74rem; letter-spacing: .04em; color: rgba(72,74,76,.5); }
.ev__price--soldout { font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bff-pink); }
.ev--soldout { opacity: .5; cursor: not-allowed; }
.ev--soldout:hover { border-color: rgba(72,74,76,.16); }
.ev--soldout .ev__title { text-decoration: line-through; text-decoration-color: rgba(72,74,76,.35); }

/* ---- Footer of form ---- */
.rform__foot { margin-top: .4rem; text-align: center; }
.rform__status { margin: 0 0 .6rem; font-size: .88rem; font-weight: 600; min-height: 1.1rem; }
.rform__status.is-error   { color: #c0392b; }
.rform__status.is-pending { color: rgba(72,74,76,.7); }
.rform__fineprint { margin: .7rem 0 0; font-size: .76rem; color: rgba(72,74,76,.55); text-align: center; }

/* ---- Success state ---- */
.rform__success { text-align: center; padding: 1.5rem .5rem; }
.rform__success-badge { font-size: 3rem; margin-bottom: .5rem; }
.rform__success h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin: 0 0 .4em; }
.rform__success p { color: rgba(72,74,76,.8); margin: 0 auto 1.4rem; max-width: 34ch; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .rform__grid { grid-template-columns: 1fr; }
  .ev__tag { display: none; }
  /* Breathing space so the "Register your interest" pill clears the close
     button, and a tighter pill so it reads cleanly on a narrow screen. */
  .modal__dialog { padding-top: 3rem; }
  .modal__head { padding-top: .6rem; }
  .modal__head .eyebrow { letter-spacing: .14em; }
}

/* =========================================================
   Motion preferences
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .float { animation: none; }
  .marquee__track { animation: none; }
  .modal, .modal__dialog { transition: opacity .001ms; }
}
