/* The new homepage (cms/home.py): drink cards, mood picker, tea finder chat, brand statement, stores. */

.h2 { background: var(--color-cream, #faf6ef); color: var(--color-ink, #333); font-family: var(--font-sans, Helveticaneue, Arial, sans-serif); }
.h2 p { margin: 0; }
.h2-title__soft { display: block; font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-weight: 400; }
.h2-title__bold { display: block; font-weight: 700; }
.h2-h2 { margin: 0; font-size: 30px; line-height: 34px; }
.h2-h2--small { font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-weight: 400; font-size: 28px; line-height: 32px; }
.h2-btn {
  height: 52px; border-radius: 50px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.h2-btn--red { background: #A30B1F; color: #fff; }
.h2-btn--red:hover { background: #8a0919; color: #fff; }
.h2-btn--line { box-sizing: border-box; border: 1.5px solid #333; background: #fff; color: #333; }
.h2-btn--line:hover { border-color: #A30B1F; color: #A30B1F; }
.h2-moods__menu { margin-top: 8px; }
.h2-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #A30B1F; text-decoration: none; }

/* ---- hero: drink cards with the name on the photo ---- */
.h2-hero { max-width: 1100px; margin: 0 auto; padding: 24px 0 0; display: flex; flex-direction: column; gap: 20px; }
.h2-title { margin: 0; padding: 0 20px; font-size: 32px; line-height: 36px; }
.h2-cards { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 4px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.h2-cards::-webkit-scrollbar { display: none; }
.h2-card { position: relative; flex: none; width: 300px; height: 440px; border-radius: 24px; overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; background: #e9dfcf; }
.h2-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.h2-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 190px; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.6)); pointer-events: none; }
.h2-card__text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 4px; }
.h2-card__tag { font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.h2-card__top { font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-size: 19px; line-height: 24px; }
.h2-card__name { font-weight: 700; font-size: 26px; line-height: 30px; }
.h2-card__stats { font-weight: 300; font-size: 13px; }
.h2-hero .h2-btn { margin: 0 20px; }

/* ---- mood picker ---- */
.h2-moods, .tc, .h2-stores, .h2-cal, .h2-brand__text { max-width: 680px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.h2-moods { padding: 48px 20px 0; display: flex; flex-direction: column; gap: 16px; }
.h2-mood-line { margin: 0; text-align: center; font-weight: 300; font-size: 15px; line-height: 22px; color: #4a463f; }
.h2-mood-line[hidden] { display: none; }
.h2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-chip {
  height: 40px; padding: 0 16px; border-radius: 50px; border: 1px solid #c9c1b3; background: #fff; color: #333;
  font-family: inherit; font-size: 14px; cursor: pointer;
}
.h2-chip[aria-pressed="true"] { border-color: #333; background: #333; color: #fff; font-weight: 700; }
.h2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.h2-tile { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.h2-tile[hidden] { display: none; }
.h2-tile__img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 16px; margin-bottom: 4px; }
.h2-tile__img.cup-frame { display: flex; align-items: flex-end; justify-content: center; }
.h2-tile__top { font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-size: 14px; line-height: 18px; }
.h2-tile__name { font-weight: 700; font-size: 17px; line-height: 21px; }
.h2-tile__cal { font-weight: 300; font-size: 13px; }

/* ---- tea finder chat ---- */
.tc { padding: 56px 20px 8px; display: flex; flex-direction: column; gap: 18px; }
.tc__intro { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tc__title { font-size: 28px; line-height: 32px; }
.tc__panel { display: flex; flex-direction: column; gap: 14px; }
.tc__bar { display: none; }
.tc__log { display: none; flex-direction: column; gap: 16px; padding: 4px 2px; }
.tc.is-started .tc__log { display: flex; }
.tc__dock { display: flex; flex-direction: column; gap: 12px; }
.tc__form {
  order: -1; margin: 0; height: 52px; box-sizing: border-box; background: #fff; border: 1px solid #ddd5c6; border-radius: 26px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06); padding: 0 6px 0 18px; display: flex; align-items: center; gap: 8px;
}
.tc__form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; padding: 0; font-family: inherit; font-size: 16px; color: #333; }
.tc__form:focus-within { border-color: #A30B1F; }
.tc .tc__form input, .tc .tc__form input:focus { border: 0; outline: none; box-shadow: none; margin: 0; }
.tc__send { width: 40px; height: 40px; border: 0; border-radius: 20px; background: #A30B1F; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.tc__send:disabled { background: #d6ccbc; cursor: default; }
.tc__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tc__chip { height: 36px; padding: 0 14px; border-radius: 50px; border: 1px solid #ddd5c6; background: #fff; color: #333; font-family: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.tc__reset { align-self: center; height: 36px; border: 0; background: none; color: #6b655c; font-family: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.tc__reset[hidden], .tc__resume[hidden], .tc__chips[hidden] { display: none; }
.tc__msg-bot { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.tc__avatar { width: 26px; height: 26px; border-radius: 13px; background: #A30B1F; display: flex; align-items: center; justify-content: center; flex: none; }
.tc__avatar img { width: 15px; height: auto; }
.tc__bot-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tc__bot-text { margin: 2px 0 0; font-weight: 300; font-size: 16px; line-height: 25px; white-space: pre-line; }
.tc__msg-me { align-self: flex-end; max-width: 80%; padding: 10px 16px; border-radius: 20px; background: #ece4d6; font-size: 15px; line-height: 21px; overflow-wrap: anywhere; }
.tc__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tc__opt {
  min-height: 38px; padding: 6px 14px; border-radius: 50px; border: 1px solid #A30B1F; background: #fff; color: #A30B1F;
  font-family: inherit; font-weight: 700; font-size: 14px; line-height: 18px; cursor: pointer; text-align: left;
}
.tc__opt:hover { background: #A30B1F; color: #fff; }
.tc__typing { font-size: 20px; letter-spacing: 3px; color: #8a7f6f; }
.tc__card {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 10px; border-radius: 18px;
  background: #fff; border: 1px solid #ece4d6; color: inherit; text-decoration: none;
}
.tc__card img, .tc__card-mark { width: 72px; height: 90px; object-fit: cover; border-radius: 12px; display: block; background: #A30B1F; }
.tc__card-mark { display: flex; align-items: center; justify-content: center; }
.tc__card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc__card-top { font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-size: 13px; line-height: 16px; }
.tc__card-name { font-weight: 700; font-size: 17px; line-height: 20px; }
.tc__card-stats { font-weight: 300; font-size: 12px; color: #6b655c; }
.tc__card-why { margin-top: 4px; font-weight: 300; font-size: 13px; line-height: 18px; color: #333; }
.tc__card { align-items: start; }
.tc__card > svg { align-self: center; }
.tc__find { align-self: flex-start; height: 40px; padding: 0 16px; border-radius: 50px; background: #A30B1F; color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-decoration: none; }
.tc__resume {
  height: 64px; box-sizing: border-box; border: 1px solid #ddd5c6; border-radius: 32px; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.06);
  padding: 0 8px 0 22px; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; font-family: inherit; color: #333;
}
.tc__resume-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.tc__resume-text span { font-weight: 300; font-size: 13px; color: #6b655c; }
.tc__resume-go { width: 40px; height: 40px; border-radius: 20px; background: #A30B1F; color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }

/* Desktop: the conversation grows in place, scrolling inside the section. */
@media (min-width: 701px) {
  .tc.is-started .tc__log { max-height: 480px; overflow-y: auto; }
  .tc__resume { display: none !important; }
}

/* Phones: once a chat starts it opens as a full-screen sheet. */
@media (max-width: 700px) {
  .tc.is-open .tc__panel {
    position: fixed; inset: 0; z-index: 900; margin: 0; gap: 0; background: var(--color-cream, #faf6ef);
    animation: tc-up .3s ease;
  }
  .tc.is-open .tc__bar { display: flex; height: 60px; flex: none; padding: 0 8px 0 16px; align-items: center; gap: 10px; border-bottom: 1px solid #ece4d6; background: #fff; }
  .tc__bar-title { flex: 1; font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-size: 18px; }
  .tc__close { width: 44px; height: 44px; border: 0; border-radius: 22px; background: none; color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .tc.is-open .tc__log { display: flex; flex: 1; overflow-y: auto; padding: 18px 16px; }
  .tc.is-open .tc__dock { flex: none; padding: 10px 12px 14px; border-top: 1px solid #ece4d6; background: var(--color-cream, #faf6ef); }
  .tc.is-open .tc__form { order: 0; }
  .tc.is-open .tc__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; }
  .tc.is-started:not(.is-open) .tc__panel { display: none; }
  html.tc-locked { overflow: hidden; }
}
@keyframes tc-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tc.is-open .tc__panel { animation: none; } }

/* ---- brand statement ---- */
.h2-brand { margin-top: 60px; display: flex; flex-direction: column; }
.h2-brand__video { position: relative; height: 560px; overflow: hidden; background: #2a2d33; }
.h2-brand__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h2-brand__wide { display: none; }
.h2-brand__words { position: absolute; left: 50%; top: 50%; width: 290px; height: auto; transform: translate(-50%, -50%); }
.h2-brand__text { width: 100%; padding: 32px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.h2-statement { font-family: var(--font-serif, Charter, Georgia, serif); font-size: 24px; line-height: 33px; }
@media (min-width: 701px) {
  .h2-brand__phone { display: none; }
  .h2-brand__wide { display: block; }
  .h2-brand__video { height: 600px; }
  .h2-brand__words { width: 420px; }
}

/* ---- calories, stores ---- */
.h2-cal { margin: 56px 20px 0; padding: 32px 24px; border-radius: 20px; background: #A30B1F; color: #fff; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 721px) { .h2-cal { margin-left: auto; margin-right: auto; } }
.h2-cal__num { font-weight: 700; font-size: 64px; line-height: 64px; }
.h2 .h2-cal__line { font-family: var(--font-serif, Charter, Georgia, serif); font-style: italic; font-size: 22px; line-height: 30px; }
.h2 .h2-cal__sub { font-weight: 300; font-size: 15px; line-height: 23px; color: #f6dfe2; }
.h2-stores { margin-top: 56px; padding: 40px 20px; display: flex; flex-direction: column; gap: 16px; background: #fff; border-top: 1px solid #e6dfd2; border-bottom: 1px solid #e6dfd2; }
@media (min-width: 721px) { .h2-stores { border: 1px solid #e6dfd2; border-radius: 20px; } }
.h2-store { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.h2-store__img { width: 88px; height: 88px; object-fit: cover; border-radius: 14px; display: block; }
.h2-store__img.loc-mark { display: flex; align-items: center; justify-content: center; background: #A30B1F; }
.h2-store__img.loc-mark img { width: 40px; }
.h2-store__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.h2-store__name { font-family: var(--font-serif, Charter, Georgia, serif); font-size: 20px; }
.h2-store__where { font-weight: 300; font-size: 14px; }
.h2-stores .h2-btn { margin-top: 6px; }

/* ---- Store Tracker: the thin bar under the nav (canvas I2) ---- */
.h2-tracker { position: relative; display: block; height: 28px; overflow: hidden; background: #f3ede2; border-bottom: 1px solid #e6dfd2; color: #333; text-decoration: none; }
.loc-body a.h2-tracker { color: #333; }
.h2-tracker__label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; padding: 0 68px 0 16px;
  background: linear-gradient(90deg, #f3ede2 0, #f3ede2 calc(100% - 44px), rgba(243, 237, 226, 0) 100%);
  font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #000; white-space: nowrap; pointer-events: none;
}
.h2-tracker__track { display: flex; width: max-content; height: 100%; animation: h2-tracker 34s linear infinite; }
.h2-tracker:hover .h2-tracker__track, .h2-tracker:focus-visible .h2-tracker__track { animation-play-state: paused; }
@keyframes h2-tracker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.h2-tracker__item { height: 100%; padding-right: 26px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; line-height: 1; }
.h2-tracker__name { font-weight: 700; }
.h2-tracker .loc-status { margin: 0; font-size: 12px; flex-wrap: nowrap; gap: 0 6px; }
@media (prefers-reduced-motion: reduce) { .h2-tracker__track { animation: none; padding-left: 150px; } }
