@layer base, components, pages;

/* T21 reserve page, hold form, gift note. */
@layer pages {
  .reserve-cta { margin: var(--space-6) 0 var(--space-2); }
  .price { font-family: var(--font-display); color: var(--fg); }
  body.reserve .page { max-width: 64rem; }
  .reserve-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: center; padding: var(--space-8) 0 var(--space-12); }
  .reserve-hero h1 { font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl)); }
  .layer-figure { width: 100%; max-width: 18rem; justify-self: center; }
  .layer-figure .layer { fill: var(--accent); opacity: .9; animation: layer-in .5s ease-out both; animation-delay: calc(var(--i) * 60ms); }
  .layer-figure .layer-hi { fill: var(--highlight); opacity: 1; }
  @keyframes layer-in { from { opacity: 0; transform: translateX(-8px); } }
  @media (prefers-reduced-motion: reduce) { .layer-figure .layer { animation: none; } }
  .reserve-how, .faq { padding: var(--space-8) 0; border-top: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
  .steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
  .steps li { counter-increment: step; position: relative; padding: var(--space-6); padding-top: var(--space-12); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg) 88%, var(--fg) 4%); border-left: var(--layer-line) solid var(--accent); }
  .steps li::before { content: counter(step); position: absolute; top: var(--space-4); left: var(--space-6); font: 700 var(--text-xl)/1 var(--font-display); color: var(--accent); }
  .steps strong { display: block; font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-1); }
  .faq details { border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); }
  /* A24: each question is a 44px tap target. */
  .faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 44px; padding: var(--space-2) 0; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { margin: 0 0 var(--space-3); color: var(--muted); }
  .reserve-again { text-align: center; padding: var(--space-8) 0; }
  .hold { max-width: 36rem; margin: 0 auto; }
  .hold h1 { font-size: clamp(var(--text-xl), 5vw, var(--text-3xl)); }
  .reserve-form { margin-top: var(--space-6); gap: var(--space-4); }
  .gift-tools { max-width: 36rem; margin: 0 auto var(--space-8); }
  .gift-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--space-3); align-items: end; }
  .gift-note { width: 100%; max-width: 5.5in; aspect-ratio: 5.5 / 8.5; margin: 0 auto; background: #fff; color: #141A2E; border-radius: var(--radius-lg); padding: 0.6in 0.55in; box-shadow: 0 10px 40px rgba(20,26,46,.15); border-top: 10px solid #2E4BD1; display: flex; flex-direction: column; }
  .gift-note h2 { font-size: 1.9rem; line-height: 1.15; margin-bottom: 1.2rem; }
  .gift-note p { font-size: 1.05rem; }
  .gift-mark { margin: auto 0 0; }
  .gift-mark .layer-figure { max-width: 5rem; display: block; }
  .gift-mark .layer { fill: #2E4BD1; }
  .gift-mark .layer-hi { fill: #F2B33D; }
  .gift-sign { margin-top: var(--space-4); font: 700 1.25rem var(--font-display); }
  .gift-small { font-size: .8rem !important; color: #4D5670; font-style: italic; }
  @media (max-width: 40rem) {
    /* A16: the button sits above the fold on a phone, so the figure moves beside the eyebrow. */
    .reserve-hero { position: relative; grid-template-columns: 1fr; gap: var(--space-4); padding: 0 0 var(--space-8); }
    .reserve-hero .layer-figure { position: absolute; right: 0; top: 0; width: 3.25rem; max-width: none; }
    .reserve-hero .eyebrow { padding-right: 4rem; min-height: 3rem; display: flex; align-items: center; margin: 0; }
    .reserve-hero h1 { font-size: var(--text-2xl); }
    .reserve-hero .lede { font-size: var(--text-base); margin-bottom: var(--space-4); }
    .reserve-hero .reserve-cta { margin-top: var(--space-4); }
    body.reserve .page { padding-top: var(--space-4); }
    .gift-form { grid-template-columns: 1fr; }
    .gift-note { aspect-ratio: auto; padding: var(--space-8) var(--space-6); }
  }
  @media print {
    .gift-note { box-shadow: none; border-radius: 0; max-width: none; width: 5.5in; height: 8.5in; aspect-ratio: auto; }
  }
}
