/* =============================================================================
   Food Empire website — crew / features / style / fair-play / coming-soon / faq
   Builds on styles.css; colours only via its variables.
   ========================================================================== */

/* ------------------------------------------------ shared floating food --- */
#crew { overflow: hidden; }
.fx-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fx-f {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: auto;
  max-width: none; opacity: .9; filter: drop-shadow(0 10px 14px rgba(58, 42, 6, .22));
  animation: float var(--fd, 6s) ease-in-out infinite;
}
#crew .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- crew --- */
#crew .crew-stage {
  display: grid; gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
#crew .crew-card {
  position: relative; text-align: center; padding: 22px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
#crew .crew-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
#crew .crew-card-star { border-color: var(--gold-edge); box-shadow: var(--shadow), 0 0 0 3px var(--glow); }
#crew .crew-spot {
  height: 176px; display: flex; align-items: flex-end; justify-content: center;
  position: relative; z-index: 1;
  background: radial-gradient(60% 45% at 50% 70%, var(--glow), transparent 70%);
}
#crew .crew-spot .sprite { transition: transform .35s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 100%; }
#crew .crew-card:hover .sprite { transform: scale(1.06); }
#crew .crew-podium {
  width: min(130px, 90%); height: 26px; margin: -10px auto 16px; position: relative;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 -5px 0 var(--gold-edge), 0 8px 16px var(--glow);
}
#crew .crew-podium span { font: 400 14px/1 var(--ff-display); color: #3A2A06; transform: translateY(-1px); }
#crew .crew-card h3 {
  font: 800 20px/1.2 var(--ff-body); margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
#crew .crew-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; margin: 0; }

#crew .crew-names { text-align: center; margin-top: clamp(32px, 5vw, 48px); }
#crew .crew-names p { font-weight: 700; margin-bottom: 12px; }
#crew .crew-name-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#crew .crew-name-chips .chip { transition: transform .25s; }
#crew .crew-name-chips .chip:hover { transform: translateY(-3px) rotate(-2deg); }

#crew .crew-street {
  position: relative; height: 190px; margin-top: clamp(40px, 6vw, 64px); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
#crew .crew-street-road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 0;
  background:
    repeating-linear-gradient(90deg, var(--border-strong) 0 28px, transparent 28px 56px) 0 50% / 100% 3px no-repeat,
    var(--brand-soft);
  border-top: 1px solid var(--border);
}
#crew .crew-walker {
  position: absolute; left: 0; bottom: 12px; z-index: 1;
  animation: walk-across var(--wd, 16s) linear infinite; animation-delay: var(--wdel, 0s);
}
#crew .crew-walker .sprite { transform: scale(.8); transform-origin: 50% 100%; }

/* ------------------------------------------------------------ features --- */
#features .fx-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 20px);
  margin: 0 auto clamp(36px, 5vw, 56px);
}
#features .fx-stat {
  flex: 1 1 140px; max-width: 200px; text-align: center; padding: 18px 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow); transition: transform .3s;
}
#features .fx-stat:hover { transform: translateY(-5px) rotate(-1deg); }
#features .fx-stat b {
  display: block; font-size: clamp(40px, 6vw, 58px); line-height: 1; color: var(--brand);
  font-variant-numeric: tabular-nums; text-shadow: 0 4px 14px var(--glow);
}
#features .fx-stat span {
  display: block; margin-top: 6px; font: 800 13px/1 var(--ff-body);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
#features .fx-grid .card:hover .icon { animation: pop .5s ease; }
#features .fx-card-gold {
  border-color: var(--gold-edge);
  background: linear-gradient(160deg, var(--surface) 55%, var(--brand-soft));
  box-shadow: var(--shadow), 0 0 0 3px var(--glow);
}
#features .fx-yourway { margin-top: clamp(16px, 2.2vw, 24px); }
#features .fx-yourway-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
#features .fx-yourway-head .icon { margin: 0; flex: none; }
#features .fx-yourway-head h3 { margin-bottom: 2px; }
#features .fx-yourway-chips { display: flex; flex-wrap: wrap; gap: 10px; }
#features .fx-yourway-chips .chip { white-space: normal; line-height: 1.25; font-size: 14px; }

/* --------------------------------------------------------------- style --- */
#style .st-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 20px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}
#style .st-fig {
  margin: 0; position: relative; text-align: center; cursor: default;
  display: flex; flex-direction: column; align-items: center;
}
#style .st-fig img {
  width: 100%; max-width: 150px; height: auto; position: relative; z-index: 1;
  filter: drop-shadow(0 12px 12px rgba(58, 42, 6, .25));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  transform-origin: 50% 100%;
}
#style .st-fig:hover img { transform: translateY(-12px) scale(1.04); }
#style .st-pedestal {
  width: 92%; max-width: 160px; aspect-ratio: 5 / 1; margin-top: -14px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 -6px 0 var(--gold-edge), 0 10px 20px var(--glow);
  transition: box-shadow .4s;
}
#style .st-fig:hover .st-pedestal { box-shadow: inset 0 -6px 0 var(--gold-edge), 0 14px 30px var(--glow), 0 0 0 6px var(--brand-soft); }
#style .st-fig figcaption { margin-top: 12px; font: 800 16px/1.2 var(--ff-body); color: var(--ink); }
#style .st-fig figcaption small {
  display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 3px;
}
#style .st-tycoon::before {
  content: ""; position: absolute; inset: -6% -8% 18%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  animation: fx-breathe 3.2s ease-in-out infinite;
}
#style .st-tycoon img { max-width: 170px; }
#style .st-tycoon figcaption { font-family: var(--ff-display); font-weight: 400; font-size: 19px; color: var(--brand); letter-spacing: .02em; }
#style .st-crown {
  position: absolute; top: -8px; left: 50%; z-index: 2; font-size: 28px;
  transform: translateX(-50%); animation: float 3s ease-in-out infinite;
}
@keyframes fx-breathe { 0%, 100% { opacity: .65; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }

@media (max-width: 760px) {
  #style .st-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  #style .st-fig img { max-width: 120px; }
  #style .st-tycoon img { max-width: 130px; }
  #style .st-fig figcaption { font-size: 14px; }
  #style .st-tycoon figcaption { font-size: 16px; }
}

/* ----------------------------------------------------------- fair play --- */
#fair-play .fp-layout {
  display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
#fair-play .fp-phone { position: relative; width: min(100%, 300px); margin-inline: auto; }
#fair-play .fp-phone img {
  width: 100%; height: auto; border-radius: 34px; border: 9px solid var(--navy);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--border-strong);
  animation: float 7s ease-in-out infinite;
}
#fair-play .fp-badge {
  position: absolute; right: -8px; top: 12%; z-index: 2; font-size: 14px; padding: 10px 14px;
  background: var(--surface); color: var(--money); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite; --rot: 4deg;
}
#fair-play .fp-lists { display: grid; gap: clamp(16px, 2.2vw, 24px); }
#fair-play .fp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
#fair-play .fp-list li { position: relative; padding-left: 40px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
#fair-play .fp-list li b { color: var(--ink); }
#fair-play .fp-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 800 16px/1 var(--ff-body);
  background: var(--money-soft); color: var(--money);
}
#fair-play .fp-dont { background: var(--surface-alt); }
#fair-play .fp-list-x { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
#fair-play .fp-list-x li { font-weight: 700; text-decoration: line-through; text-decoration-color: var(--warn); text-decoration-thickness: 2px; }
#fair-play .fp-list-x li::before {
  content: "✕"; color: var(--warn);
  background: color-mix(in srgb, var(--warn) 14%, transparent);
}
@media (max-width: 820px) {
  #fair-play .fp-layout { grid-template-columns: minmax(0, 1fr); }
  #fair-play .fp-phone { width: min(76%, 260px); }
  #fair-play .fp-badge { right: -12%; }
}

/* --------------------------------------------------------- coming soon --- */
#coming-soon .cs-card {
  border: 2px dashed var(--border-strong); background: var(--surface-alt); box-shadow: none; overflow: hidden;
}
#coming-soon .cs-card:hover { box-shadow: var(--shadow); }
#coming-soon .cs-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, var(--brand-soft) 50%, transparent 70%);
  background-size: 200% 100%; animation: shine 5s linear infinite;
}
#coming-soon .cs-tag { position: absolute; top: 18px; right: 18px; }
#coming-soon .cs-card .icon { filter: saturate(.75); }
#coming-soon .cs-card h3 { padding-right: 4px; }

/* ----------------------------------------------------------------- faq --- */
#faq .faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
#faq .faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow); overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
#faq .faq-item[open] { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
#faq .faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 64px 20px 24px; font: 800 18px/1.35 var(--ff-body); color: var(--ink);
  min-height: 48px;
}
#faq .faq-item summary::-webkit-details-marker { display: none; }
#faq .faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px;
  margin-top: -16px; border-radius: 50%; display: grid; place-items: center;
  font: 400 22px/1 var(--ff-display); color: #3A2A06;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: inset 0 -2px 0 var(--gold-edge);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
#faq .faq-item[open] summary::after { transform: rotate(135deg); }
#faq .faq-item summary:hover { color: var(--brand); }
#faq .faq-body { padding: 0 24px 22px; color: var(--ink-2); }
#faq .faq-body p { margin: 0; }
#faq .faq-item[open] .faq-body { animation: fx-faq-open .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes fx-faq-open { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
/* Smooth height where supported */
@supports (interpolate-size: allow-keywords) {
  #faq .faq-list { interpolate-size: allow-keywords; }
  #faq .faq-item::details-content {
    height: 0; overflow: clip;
    transition: height .4s cubic-bezier(.2, .8, .2, 1), content-visibility .4s allow-discrete;
  }
  #faq .faq-item[open]::details-content { height: auto; }
}

/* ------------------------------------------------------------- mobile --- */
@media (max-width: 600px) {
  .fx-f { opacity: .45; width: calc(var(--s) * .7); }
  #crew .crew-spot { height: 150px; }
  #crew .crew-spot .sprite { transform: scale(.85); }
  #crew .crew-card:hover .sprite { transform: scale(.9); }
  #crew .crew-card p { font-size: 14.5px; }
  #crew .crew-street { height: 160px; }
  #crew .crew-walker .sprite { transform: scale(.65); }
  #features .fx-stat { flex-basis: 96px; padding: 14px 8px 12px; }
  #features .fx-stat span { font-size: 11px; letter-spacing: .1em; }
  #faq .faq-item summary { padding: 18px 58px 18px 18px; font-size: 16.5px; }
  #faq .faq-body { padding: 0 18px 18px; }
  #coming-soon .cs-tag { position: static; margin-bottom: 14px; }
}
