/* Montres Chaton Hospitality announcement. Added in Phase 2b; the rest of the site is unchanged.
   Uses the site's espresso and ivory, with cool silver accents from the Hospitality identity.
   Two placements, chosen in js/announcement.js:
   - floating card, bottom-right, on large screens (1360x900 and up)
   - slim strip inside the fixed header (inside the fixed header) below 1360px wide or 900px tall */
.hospitality-card {
  --hc-silver: #C9CFD3;       /* 11:1 on espresso */
  --hc-silver-dim: #AEB6BC;   /* 8.6:1 on espresso */
  position: fixed; z-index: 35;
  right: 24px; bottom: 24px; width: 320px;
  padding: 20px 22px 12px;
  background: var(--espresso, #1C1713);
  color: var(--on-dark, #F7F2EA);
  border: 1px solid rgba(201, 207, 211, .22);
  border-top: 2px solid var(--hc-silver);
  box-shadow: 0 18px 48px rgba(28, 23, 19, .28);
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s var(--ease, ease-out), transform .7s var(--ease, ease-out);
}
.hospitality-card.is-visible { opacity: 1; transform: none; }

.hospitality-card__eyebrow {
  margin: 0 0 10px; padding-right: 36px;
  font: 600 .6875rem/1.4 var(--sans, sans-serif); letter-spacing: .24em; text-transform: uppercase;
  color: var(--hc-silver-dim);
}
.hospitality-card__title {
  margin: 0; font: 500 1.5rem/1.15 var(--serif, serif); letter-spacing: .01em; color: var(--on-dark, #F7F2EA);
}
.hospitality-card__text {
  margin: 8px 0 8px; font: 400 .875rem/1.5 var(--sans, sans-serif); color: var(--on-dark-muted, #B9AE9F);
}
.hospitality-card__cta {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 2px;
  font: 600 .75rem/1 var(--sans, sans-serif); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--on-dark, #F7F2EA);
  border-bottom: 1px solid var(--hc-silver);
  transition: gap .3s var(--ease, ease-out), color .3s var(--ease, ease-out);
}
.hospitality-card__cta:hover { gap: 16px; color: #fff; }
.hospitality-card__close {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--hc-silver-dim);
  transition: color .25s var(--ease, ease-out);
}
.hospitality-card__close:hover { color: var(--on-dark, #F7F2EA); }
.hospitality-card :focus-visible { outline: 2px solid var(--hc-silver); outline-offset: 3px; }

/* ---------- Strip placement (inside the fixed header) ---------- */
.hospitality-card--bar {
  position: relative; right: auto; bottom: auto; width: auto; z-index: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px;
  padding: 4px 56px 4px 16px;
  border: 0; border-top: 1px solid rgba(201, 207, 211, .28);
  box-shadow: none; transform: none;
  max-height: 0; overflow: hidden; visibility: hidden;
  transition: opacity .7s var(--ease, ease-out), max-height .7s var(--ease, ease-out), visibility 0s linear .7s;
}
.hospitality-card--bar.is-visible { max-height: 120px; visibility: visible; transition-delay: 0s; }
.hospitality-card--bar .hospitality-card__eyebrow,
.hospitality-card--bar .hospitality-card__text { display: none; }
.hospitality-card--bar .hospitality-card__title { font-size: 1.0625rem; }
.hospitality-card--bar .hospitality-card__cta {
  min-height: 32px; margin: 0; font-size: .6875rem; letter-spacing: .16em;
}
.hospitality-card--bar .hospitality-card__close { top: 50%; right: 6px; margin-top: -22px; }
/* The strip folds away once the header turns solid */
.site-header.is-solid .hospitality-card--bar { max-height: 0; visibility: hidden; border-top-width: 0; transition-delay: 0s, 0s, .35s; }
body.menu-open .hospitality-card--bar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hospitality-card, .hospitality-card__cta, .hospitality-card__close { transition: none; transform: none; }
}

/* ---------- Large screens: a substantial announcement, not a small notification ----------
   Same condition as the floating-card placement in js/announcement.js (min 1360 wide AND 900 tall), so the slim
   strip used on phones, tablets and shorter screens above is untouched. Whole card scaled about 1.8x: width, padding,
   every type size, the button and the close control. The wording and colours are unchanged. */
@media (min-width: 1360px) and (min-height: 900px) {
  .hospitality-card {
    right: 32px; bottom: 32px; width: clamp(500px, 33vw, 640px);
    max-height: calc(100vh - 64px); overflow-y: auto;
    padding: 38px 44px 24px;
    border-top-width: 3px;
    box-shadow: 0 28px 80px rgba(28, 23, 19, .36);
  }
  .hospitality-card__eyebrow { margin-bottom: 18px; padding-right: 64px; font-size: .8125rem; letter-spacing: .26em; }
  .hospitality-card__title { font-size: 2.5rem; line-height: 1.1; }
  /* A fine silver rule gives the larger card a composed, finished look */
  .hospitality-card__title::after { content: ''; display: block; width: 64px; height: 1px; margin-top: 22px; background: var(--hc-silver); opacity: .7; }
  .hospitality-card__text { margin: 18px 0 18px; max-width: 34ch; font-size: 1.125rem; line-height: 1.55; }
  .hospitality-card__cta { gap: 14px; min-height: 52px; margin-top: 4px; font-size: .875rem; letter-spacing: .2em; }
  .hospitality-card__cta svg { width: 22px; height: 22px; }
  .hospitality-card__cta:hover { gap: 20px; }
  .hospitality-card__close { top: 12px; right: 12px; width: 52px; height: 52px; }
  .hospitality-card__close svg { width: 22px; height: 22px; }
}
