/* =========================================================
   Cartier Eyewear Open Day (global tokens live in style.css)
   The invitation's deep burgundy, ivory type and a fine gold line.
   ========================================================= */

:root { --ce-red: #5a0e19; --ce-red-deep: #45090f; --ce-ivory: #f6efe6; --ce-gold: #c9a96a; --ce-gold-line: rgba(201, 169, 106, .55); }

.ce-kicker { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ce-red); margin-bottom: 14px; }
.ce-title { font-family: var(--font-title); font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; color: var(--ink); word-spacing: .12em; }
.ce-title--sm { font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 18px; }

/* ---------- Invitation hero ---------- */
.ce-hero {
  margin-top: 86px;
  padding-block: clamp(56px, 8vw, 110px) clamp(56px, 8vw, 100px);
  background: radial-gradient(120% 90% at 50% 0%, #6b1320 0%, var(--ce-red) 45%, var(--ce-red-deep) 100%);
  color: var(--ce-ivory);
  text-align: center;
  position: relative;
}
.ce-hero::before, .ce-hero::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: min(100% - 48px, 1080px); height: 1px; background: var(--ce-gold-line); }
.ce-hero::before { top: 18px; }
.ce-hero::after { bottom: 18px; }
.ce-hero__inner { max-width: 820px; display: grid; justify-items: center; }
.ce-hero__kicker { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ce-gold); }
/* the Cartier wordmark, drawn in ivory from the black SVG */
.ce-logo { display: block; width: clamp(180px, 24vw, 250px); aspect-ratio: 441.6 / 146.5; margin: 26px auto 0; background: var(--ce-ivory); -webkit-mask: url("/images/cartier.svg") center / contain no-repeat; mask: url("/images/cartier.svg") center / contain no-repeat; }
.ce-hero__invite { margin-top: 10px; font-family: var(--font-title); font-weight: 300; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: .08em; color: var(--ce-gold); }
.ce-hero__title { margin-top: 22px; font-family: var(--font-title); font-weight: 300; font-size: clamp(36px, 5.4vw, 70px); line-height: 1.04; word-spacing: .12em; text-wrap: balance; color: var(--ce-ivory); }
.ce-hero__title em { font-style: italic; }
.ce-hero__lead { margin-top: 24px; max-width: 58ch; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.7; opacity: .92; }
.ce-hero__when { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: clamp(22px, 4vw, 56px); margin-top: 38px; padding: 26px 0; border-top: 1px solid var(--ce-gold-line); border-bottom: 1px solid var(--ce-gold-line); width: 100%; }
.ce-hero__when dt { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ce-gold); margin-bottom: 8px; }
.ce-hero__when dd { font-family: var(--font-title); font-weight: 300; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.2; }
.ce-hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.ce-btn { background: var(--ce-ivory); color: var(--ce-red); border-color: var(--ce-ivory); }
.ce-btn::before { background: var(--ce-gold); }
.ce-btn:hover { color: var(--ce-red-deep); border-color: var(--ce-gold); }
.ce-hero__mail { font-size: 13.5px; font-weight: 600; letter-spacing: .06em; padding-bottom: 3px; border-bottom: 1px solid var(--ce-gold-line); transition: color .3s, border-color .3s; }
.ce-hero__mail:hover { color: var(--ce-gold); border-color: var(--ce-gold); }
.ce-hero__note { margin-top: 30px; max-width: 52ch; font-size: 13.5px; line-height: 1.7; font-style: italic; color: var(--ce-gold); }

/* ---------- The day ---------- */
.ce-day { background: var(--cream); }
.ce-day__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ce-day__media { position: relative; margin: 0; }
.ce-day__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(246, 239, 230, .75); pointer-events: none; }
.ce-day__media img { display: block; width: 100%; height: auto; }
.ce-day__copy > p:not(.ce-kicker) { margin-top: 18px; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.ce-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.ce-list li { padding: 16px 0 0; border-top: 1px solid var(--gold-soft); font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.ce-list span { display: block; margin-bottom: 4px; font-family: var(--font-title); font-weight: 300; font-size: 21px; line-height: 1.2; color: var(--ce-red); }

/* ---------- Collection ---------- */
.ce-coll { background: var(--cream-2); }
.ce-coll .section__head .ce-kicker { margin-bottom: 14px; }
.ce-prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; padding: 0; margin: 0; }
.ce-prod__img { display: block; aspect-ratio: 900 / 480; overflow: hidden; background: #fff; outline: 1px solid transparent; outline-offset: -8px; transition: outline-color .4s; }
.ce-prod:hover .ce-prod__img { outline-color: var(--ce-gold); }
.ce-prod__img img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease-out); }
.ce-prod:hover .ce-prod__img img { transform: scale(1.05); }
.ce-prod__line { display: block; margin-top: 14px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ce-red); }
.ce-prod__name { display: block; margin-top: 4px; font-family: var(--font-title); font-weight: 300; font-size: 22px; color: var(--ink); }
.ce-coll__more { margin-top: clamp(28px, 4vw, 44px); text-align: center; }
.ce-coll__more a { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ce-red); padding-bottom: 4px; border-bottom: 1px solid var(--ce-gold-line); transition: color .3s, border-color .3s; }
.ce-coll__more a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Full-bleed band ---------- */
.ce-band { max-height: 560px; overflow: hidden; background: var(--ce-red-deep); }
.ce-band img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; object-position: center 35%; }

/* ---------- RSVP (reuses the contact block, recoloured) ---------- */
.ce-rsvp { background: var(--ce-red); color: var(--ce-ivory); }
.ce-rsvp .eyebrow { color: var(--ce-gold); }
.ce-rsvp__title { font-family: var(--font-title); font-weight: 300; font-size: clamp(32px, 4vw, 52px); line-height: 1.06; word-spacing: .12em; color: var(--ce-ivory); text-wrap: balance; }
.ce-rsvp .contact__phones { border-top-color: var(--ce-gold-line); }
.ce-rsvp .contact__phones dt { color: var(--ce-gold); }
.ce-rsvp .contact__phones a:hover { color: var(--ce-gold); }
.ce-rsvp .contact__phones dd.ce-rsvp__addr, .ce-rsvp .contact__phones dd:first-of-type { font-size: 18px; }
.ce-rsvp .form__input:focus { border-color: var(--ce-gold); }
.ce-rsvp select.form__input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat; color: var(--ink); }
.ce-rsvp select.form__input:invalid { color: rgba(31,31,31,.5); }
.ce-rsvp .form__check input { accent-color: var(--ce-gold); }
.ce-rsvp .btn--light { color: var(--ce-ivory); border-color: var(--ce-ivory); }
.ce-rsvp .btn--light::before { background: var(--ce-ivory); }
.ce-rsvp .btn--light:hover { color: var(--ce-red); }
.ce-rsvp .form__msg { color: var(--ce-ivory); }

/* ---------- Practical details ---------- */
.ce-info { background: var(--cream); }
.ce-info__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.ce-info__grid p:not(.ce-kicker) { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.ce-info__links { display: grid; gap: 10px; justify-items: start; margin-top: 18px; }
.ce-info__links a { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ce-red); padding-bottom: 3px; border-bottom: 1px solid var(--ce-gold-line); transition: color .3s, border-color .3s; }
.ce-info__links a:hover { color: var(--ink); border-color: var(--ink); }
.ce-info__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ce-info__list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.ce-info__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--ce-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) { .ce-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ce-day__grid, .ce-info__grid { grid-template-columns: 1fr; }
  .ce-day__media { max-width: 640px; }
}
@media (max-width: 640px) {
  .ce-hero__when { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .ce-hero__actions { flex-direction: column; gap: 18px; }
  .ce-prods { gap: 12px; }
  .ce-prod__name { font-size: 18px; }
  .ce-band { max-height: 320px; }
  .ce-band img { max-height: 320px; }
}
