/* pages/quest.php — "Order Direct" landing page.
   Every token (color/font/spacing) comes from assets/css/global.css. Section-level
   classes here follow the same convention every other page uses (about.css,
   contact.css, homepage.css): each section owns its own padding directly, nothing
   is wrapped in the generic .container/.section-pad utilities, which no page on
   this site actually uses together. */

/* ── HERO ── */
.quest-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) 90px;
  overflow: hidden;
  isolation: isolate;
  /* --quest-hero-img is set inline from pages/quest.php with the live image_url of
     the featured dish, so this never hardcodes a specific upload's URL/filename. */
  background-image:
    linear-gradient(180deg, rgba(8,8,8,0.35) 0%, rgba(8,8,8,0.62) 55%, var(--black) 96%),
    var(--quest-hero-img, none);
  background-size: cover;
  background-position: center 32%;
}

.quest-hero .hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.quest-hero .hero-radial {
  position: absolute; z-index: 0;
  bottom: -20%; left: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(201,168,76,.08) 0%, transparent 65%);
  pointer-events: none;
}

.quest-hero-inner { position: relative; z-index: 1; max-width: 720px; }

/* Rating badge — same visual language as the one on the homepage hero, redefined
   here since homepage.css only loads on the homepage. */
.hero-badge {
  background: var(--black-3);
  border: 1px solid var(--border-bright);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(12px);
}
.hero-badge .badge-icon { font-size: 18px; color: var(--gold); }
.hero-badge .badge-text { display: flex; flex-direction: column; gap: 1px; }
.hero-badge .badge-label { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.2em; color: var(--white-faint); text-transform: uppercase; }
.hero-badge .badge-value { font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--white); }

.quest-hero .hero-badge {
  position: absolute;
  top: 40px;
  right: var(--pad-x);
  z-index: 1;
}
@media (max-width: 640px) { .quest-hero .hero-badge { position: static; margin-bottom: 20px; } }

/* Same scale/weight as the homepage (.hero-heading) and About (.hero-h1) heroes —
   font-weight 300, tight line-height, italic gold accent via the global em rule. */
.quest-hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  color: var(--white);
  margin: 24px 0 40px;
}

.quest-hero-lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  color: var(--white-dim);
  max-width: 480px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

.quest-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.quest-hero-micro {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white-faint);
  letter-spacing: 0.04em;
}
.quest-hero-micro .tick { color: var(--green); }

/* ── PROOF MARQUEE — reuses the generic .marquee-track/.marquee-item primitive
   defined once in global.css, wrapped in the same chrome every marquee strip on
   this site uses (border rules + dark band + overflow hidden). ── */
.quest-marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--black-2);
  padding: 18px 0;
  overflow: hidden;
}

/* ── REASSURANCE ── */
.quest-reassure { padding: var(--space-3xl) var(--pad-x); }
.quest-reassure-grid { margin-top: 40px; }
.quest-reassure-card { background: var(--black); padding: 34px 28px; }
.quest-reassure-icon {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
/* Sans, uppercase, bold — same micro-heading treatment as .exp-title (homepage.css) */
.quest-reassure-card h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
/* Italic serif body copy — same treatment as .exp-text (homepage.css) */
.quest-reassure-card p {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  color: var(--white-dim);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* Matches the site's section-heading convention (.philosophy h2, .order-section h2,
   .faq-header h2): display serif, weight 300, sized well above body text. */
.quest-section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--white);
  margin: 16px 0 16px;
}

/* Same treatment as .order-section p — italic serif intro line under a section title */
.quest-section-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 16px;
  color: var(--white-dim);
  line-height: 1.7;
  letter-spacing: 0.02em;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ── LIVE CALCULATOR ── */
.quest-calc-section { padding: var(--space-3xl) var(--pad-x); background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quest-calc-box {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border: 1px solid var(--border-bright);
  background: var(--surface-2);
}
@media (max-width: 820px) { .quest-calc-box { grid-template-columns: 1fr; } }

.quest-calc-items { padding: 8px; }
.quest-calc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}
.quest-calc-item:last-child { border-bottom: none; }
.quest-calc-item img { width: 52px; height: 52px; object-fit: cover; flex-shrink: 0; }
.quest-calc-item-info { flex: 1; min-width: 0; }
.quest-calc-item-name { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.quest-calc-item-price { font-family: var(--font-mono); font-size: 12px; color: var(--white-faint); }

.quest-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-bright);
  flex-shrink: 0;
}
.quest-qty-stepper button {
  background: var(--surface-3);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: none; /* site-wide custom cursor (#cursor/#cursor-ring in header.php) replaces the native one on every interactive element */
}
.quest-qty-stepper button:hover { background: var(--gold); color: var(--black); }
.quest-qty-stepper span { width: 28px; text-align: center; font-family: var(--font-mono); font-size: 13px; }

.quest-calc-summary {
  background: var(--surface-3);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quest-calc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 10px;
}
.quest-calc-empty { color: var(--white-mid); font-size: 14.5px; line-height: 1.6; }
.quest-calc-live { display: none; }
.quest-calc-live.show { display: block; }
.quest-calc-tier { color: var(--green); font-size: 13.5px; font-weight: 600; margin-bottom: 10px; min-height: 18px; }
.quest-calc-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--white-faint); margin-bottom: 6px; }
.quest-calc-row span:last-child { text-decoration: line-through; }
.quest-calc-total {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  color: var(--gold-light);
  margin: 4px 0 12px;
}
.quest-calc-save {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-dim);
  padding: 7px 14px;
  margin-bottom: 20px;
}
.quest-calc-cta { display: block; text-align: center; justify-content: center; }
.quest-calc-note { font-size: 12px; color: var(--white-faint); margin-top: 14px; text-align: center; line-height: 1.5; }

/* ── HOW IT WORKS ── */
.quest-how { padding: var(--space-3xl) var(--pad-x); }
.quest-steps { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.quest-step { flex: 1 1 180px; min-width: 160px; }
.quest-step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 34px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.quest-step h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.quest-step p { font-family: var(--font-display); font-size: 13.5px; font-style: italic; color: var(--white-mid); line-height: 1.6; }
.quest-step-arrow { align-self: center; color: var(--gold-dim); font-size: 20px; margin-top: 8px; flex: 0 0 auto; }
@media (max-width: 820px) { .quest-step-arrow { display: none; } }

/* ── TESTIMONIALS — identical component to pages/about.php's .testimonials so the
   two pages read as the same site, not two different design languages. ── */
.quest-testimonials { padding: 80px var(--pad-x) 130px; position: relative; }
.quest-testimonials::before {
  content: '';
  position: absolute; top: 0; left: var(--pad-x); right: var(--pad-x); height: 1px;
  background: linear-gradient(to right, transparent, var(--border-bright), transparent);
}
.quest-test-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.quest-test-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 14px;
}
.quest-test-count { font-family: var(--font-display); font-size: 56px; font-weight: 300; color: var(--gold); line-height: 1; text-align: right; }
.quest-test-count-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--white-faint); text-transform: uppercase; margin-top: 8px; text-align: right; }
.quest-test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .quest-test-grid { grid-template-columns: 1fr; } }
.quest-test-card { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 10px; padding: 28px; transition: all .3s ease; }
.quest-test-card:hover { background: rgba(255,255,255,.04); border-color: rgba(201,168,76,.25); transform: translateY(-3px); }
.quest-test-stars { color: var(--gold); font-size: 15px; margin-bottom: 16px; letter-spacing: 3px; }
.quest-test-quote { font-family: var(--font-display); font-size: 15px; font-weight: 300; font-style: italic; line-height: 1.75; color: var(--white-dim); margin-bottom: 20px; }
.quest-test-author { display: flex; align-items: center; gap: 12px; }
.quest-test-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11px; color: var(--gold); flex-shrink: 0; }
.quest-test-name { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--white); }
.quest-test-location { font-family: var(--font-mono); font-size: 11px; color: var(--white-faint); margin-top: 2px; }

/* ── INFO GRID (delivery / Quest Cash explained) ── */
.quest-info { padding: var(--space-3xl) var(--pad-x); background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quest-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 760px) { .quest-info-grid { grid-template-columns: 1fr; gap: 32px; } }
.quest-info-col h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; color: var(--white); margin-bottom: 10px; }
.quest-info-col p { color: var(--white-mid); font-size: 14.5px; line-height: 1.7; }
@media (min-width: 761px) { .quest-info-col + .quest-info-col { border-left: 1px solid var(--border); padding-left: 44px; } }

/* ── FAQ — same accordion component as pages/contact.php's .faq-section. ── */
.quest-faq { padding: 96px var(--pad-x) 130px; position: relative; overflow: hidden; }
.quest-faq-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(201,168,76,.03), transparent 55%); }
.quest-faq-header { text-align: center; margin-bottom: 56px; position: relative; z-index: 1; }
.quest-faq-header h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 300; line-height: 1.05; margin-top: 12px; }
.quest-faq-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.quest-faq-item { background: var(--black); }
.quest-faq-q { padding: 22px 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; cursor: none; transition: background .25s; }
.quest-faq-q:hover { background: var(--surface); }
.quest-faq-q-text { font-family: var(--font-display); font-size: 16px; color: var(--white); line-height: 1.3; }
.quest-faq-toggle { width: 24px; height: 24px; border: 1px solid var(--border-bright); background: transparent; color: var(--gold); font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: none; transition: all .3s; line-height: 1; }
.quest-faq-item.open .quest-faq-toggle { background: var(--gold); color: var(--black); border-color: var(--gold); }
.quest-faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.quest-faq-item.open .quest-faq-a { max-height: 200px; }
.quest-faq-a-inner { padding: 0 26px 22px; font-family: var(--font-display); font-size: 14.5px; font-style: italic; font-weight: 300; color: var(--white-dim); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 18px; }

/* ── FINAL CTA ── */
.quest-final-cta {
  text-align: center;
  padding: var(--space-4xl) var(--pad-x);
  background: radial-gradient(ellipse 70% 90% at 50% 100%, var(--gold-dim), transparent 70%);
}
.quest-final-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 16px 0 18px;
}
.quest-final-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  color: var(--white-dim);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  max-width: 480px;
  margin: 0 auto 34px;
}

/* ── STICKY MOBILE CTA ── */
.quest-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--black-3);
  border-top: 1px solid var(--border-bright);
  padding: 12px 16px;
  display: none;
  align-items: center; justify-content: space-between; gap: 12px;
}
.quest-sticky-cta .txt { font-family: var(--font-sans); font-size: 12px; color: var(--white-faint); }
.quest-sticky-cta .txt b { color: var(--white); display: block; font-size: 13px; font-weight: 700; }
@media (max-width: 760px) {
  .quest-sticky-cta { display: flex; }
  /* quest.css only ever loads on this page, so targeting body directly is safe */
  body { padding-bottom: 72px; }
}
