/* Honey & Bloom components. Uses the token custom properties
   (--ivory, --ink, --honey ... --radius-pill) defined by tokens.css
   in the style guide and by theme.css on the website. */

.hb-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-deep);
  margin: 0 0 12px;
}
.hb-amp { font-family: var(--font-display); font-style: italic; color: var(--honey); font-weight: 350; }

/* Buttons */
.hb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--ink);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hb-btn--primary { background: var(--ink); color: var(--ivory); }
.hb-btn--primary:hover { background: var(--honey-deep); border-color: var(--honey-deep); }
.hb-btn--secondary { background: transparent; color: var(--ink); }
.hb-btn--secondary:hover { background: var(--ink); color: var(--ivory); }
.hb-btn--honey { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.hb-btn--honey:hover { background: var(--ivory); border-color: var(--ink); }
.hb-btn:active { transform: translateY(1px); }
.hb-btn:focus-visible, .hb-link:focus-visible, .hb-chip:focus-visible, .hb-day:focus-visible {
  outline: 3px solid var(--honey); outline-offset: 3px;
}
.hb-link {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.hb-link:hover { color: var(--honey-deep); }

/* Arch frame */
.hb-arch {
  border-radius: var(--radius-pill) var(--radius-pill) var(--radius-md) var(--radius-md);
  overflow: hidden; aspect-ratio: 4 / 5; background: var(--blush-tint);
}
.hb-arch img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.hb-arch--mat { padding: 10px; background: var(--blush); }
.hb-arch--mat img { border-radius: var(--radius-pill) var(--radius-pill) 8px 8px; }

/* Event card */
.hb-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.hb-card:hover .hb-arch img { transform: scale(1.04); }
.hb-card__type { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin: 0; }
.hb-card__title { font-family: var(--font-display); font-size: 24px; line-height: 1.25; font-weight: 500; margin: 0; }
.hb-card__meta { font-family: var(--font-sans); font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Filter chips */
.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hb-chip {
  min-height: 40px; padding: 8px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--control-border); background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600; cursor: pointer;
}
.hb-chip[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--ivory); }

/* Form fields */
.hb-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
.hb-field label, .hb-field legend { font-family: var(--font-sans); font-size: 15px; font-weight: 600; color: var(--ink); }
.hb-field .hb-req { color: var(--honey-deep); }
.hb-input, .hb-field select, .hb-field textarea {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 14px 16px;
  font-family: var(--font-sans); font-size: 17px; color: var(--ink);
  background: var(--white); border: 1px solid var(--control-border); border-radius: var(--radius-sm);
}
.hb-field textarea { min-height: 120px; resize: vertical; }
.hb-input:focus, .hb-field select:focus, .hb-field textarea:focus {
  outline: none; border-color: var(--honey-deep); box-shadow: 0 0 0 3px var(--honey-tint);
}
.hb-help { font-size: 14px; color: var(--ink-soft); margin: 0; }
.hb-error { font-size: 14px; font-weight: 600; color: var(--error); margin: 0; }
.hb-field--invalid .hb-input, .hb-field--invalid select { border-color: var(--error); }
.hb-check { display: flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 16px; color: var(--ink); min-height: 44px; }
.hb-check input { width: 20px; height: 20px; accent-color: var(--sage-deep); }

/* Testimonial */
.hb-quote { margin: 0; padding: 32px; background: var(--white); border-radius: var(--radius-md); position: relative; }
.hb-quote::before {
  content: "\201C"; position: absolute; top: -8px; left: 24px;
  font-family: var(--font-display); font-size: 88px; line-height: 1; color: var(--honey);
}
.hb-quote p { font-family: var(--font-display); font-style: italic; font-weight: 350; font-size: 22px; line-height: 1.45; margin: 16px 0 18px; color: var(--ink); }
.hb-quote cite { font-style: normal; font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }

/* Process step */
.hb-step { display: flex; flex-direction: column; gap: 8px; }
.hb-step__num { font-family: var(--font-display); font-style: italic; font-size: 40px; line-height: 1; color: var(--honey-deep); }
.hb-step__title { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 0; color: var(--ink); }
.hb-step__text { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* Availability calendar */
.hb-cal { font-family: var(--font-sans); color: var(--ink); max-width: 520px; }
.hb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hb-cal__month { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 0; }
.hb-cal__nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--control-border); background: transparent; color: var(--ink); cursor: pointer; font-size: 18px; }
.hb-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hb-cal__dow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); text-align: center; padding-bottom: 4px; }
.hb-day {
  aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 15px; font-weight: 600; background: var(--white); color: var(--ink); cursor: pointer; padding: 0;
  font-family: var(--font-sans);
}
.hb-day small { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hb-day--open small { color: var(--sage-deep); }
.hb-day--open:hover { border-color: var(--sage-deep); }
.hb-day--limited { background: var(--honey-tint); border-color: var(--honey); }
.hb-day--limited small { color: var(--honey-deep); }
.hb-day--booked { background: var(--line); border-color: var(--line); color: var(--ink-soft); cursor: not-allowed; text-decoration: line-through; }
.hb-day--booked small { text-decoration: none; }
.hb-day--past, .hb-day--blank { background: transparent; border-color: transparent; color: var(--ink-soft); cursor: default; opacity: .55; }
.hb-day[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 1px; }
.hb-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-soft); margin-top: 14px; padding: 0; list-style: none; }
.hb-legend li { display: flex; align-items: center; gap: 8px; }
.hb-legend i { width: 18px; height: 18px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); background: var(--white); }
.hb-legend .is-limited { background: var(--honey-tint); border-color: var(--honey); }
.hb-legend .is-booked { background: var(--line); border-color: var(--control-border); }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  .hb-btn, .hb-arch img { transition: none; }
  .hb-card:hover .hb-arch img { transform: none; }
}
