/* Cheer TV shared styles — corporate site + /event.
   Legibility rules for a 55+ audience: nothing below 16px, contrast ≥ 4.5:1,
   underlined links, 48px+ tap targets, single column on phones.
   Fonts are self-hosted (SIL OFL, see assets/fonts/OFL-*.txt). */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/pjs-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cg-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cg-600i.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  /* Brand palette (from the Cheer logo petals) */
  --cheer-plum: #83386D;        /* text-safe: 8.0:1 on white */
  --cheer-plum-dark: #6C2B59;
  --cheer-plum-soft: #F9F1F6;
  --cheer-plum-border: #E8D4E3;
  --cheer-coral: #F15A3B;       /* decorative only — not for text */
  --cheer-amber: #FFC40D;       /* decorative only — not for text */

  /* Neutrals */
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --border: #E2DBD0;
  --text: #1C1917;              /* 16.9:1 on --bg */
  --text-body: #3B3835;         /* 10.6:1 on --bg */
  --text-muted: #5E5853;        /* 6.6:1 on --bg */
  --focus: #1D4ED8;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --radius: 8px;
  --shadow: 0 8px 28px rgba(131, 56, 109, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) { body { font-size: 19px; } }

img { max-width: 100%; height: auto; display: block; }

/* Links: always underlined, visible focus */
a { color: var(--cheer-plum); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--cheer-plum-dark); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 12px 16px; font-size: 18px; z-index: 10; }
.skip-link:focus { left: 16px; top: 16px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.prose { max-width: var(--measure); }

/* Brand strip (three petal colours) */
.brand-strip { display: flex; height: 6px; }
.brand-strip span { flex: 1; }
.brand-strip span:nth-child(1) { background: var(--cheer-coral); }
.brand-strip span:nth-child(2) { background: var(--cheer-plum); }
.brand-strip span:nth-child(3) { background: var(--cheer-amber); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; flex-wrap: wrap; }
.site-header .logo img { height: 48px; width: auto; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 18px; font-weight: 600; }

/* Type */
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 16px; font-variant-numeric: lining-nums; }
h1 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(40px, 6vw, 60px); letter-spacing: -0.5px; }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(32px, 4.5vw, 42px); }
h3 { font-family: var(--font-sans); font-weight: 700; font-size: 22px; }
p { margin: 0 0 18px; color: var(--text-body); }
.lead { font-size: clamp(21px, 2.4vw, 24px); color: var(--text-body); }
.tagline { font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: clamp(26px, 3.2vw, 32px); color: var(--cheer-plum); margin: 8px 0 24px; }
.eyebrow { font-size: 16px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cheer-plum); margin: 0 0 12px; }

/* Sections */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section--surface { background: var(--surface); }
@media (max-width: 640px) { .section { padding: 52px 0; } }

.hero { padding: 88px 0 72px; background: var(--surface); }
@media (max-width: 640px) { .hero { padding: 56px 0 48px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: var(--radius); font-size: 19px; font-weight: 700; text-decoration: none; border: 2px solid var(--cheer-plum); }
.btn--primary { background: var(--cheer-plum); color: #FFFFFF; }
.btn--primary:hover { background: var(--cheer-plum-dark); border-color: var(--cheer-plum-dark); color: #FFFFFF; }
.btn--secondary { background: var(--surface); color: var(--cheer-plum); }
.btn--secondary:hover { background: var(--cheer-plum-soft); color: var(--cheer-plum-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
@media (max-width: 480px) { .actions .btn { width: 100%; } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card--coral { border-top: 5px solid var(--cheer-coral); }
.card--plum  { border-top: 5px solid var(--cheer-plum); }
.card--amber { border-top: 5px solid var(--cheer-amber); }

.quote { font-family: var(--font-serif); font-weight: 600; font-style: italic; font-size: clamp(28px, 3.6vw, 36px); line-height: 1.3; color: var(--cheer-plum); margin: 0 0 24px; }

.person { display: flex; flex-direction: column; gap: 4px; }
.person h3 { margin-bottom: 4px; }
.person .role { font-size: 18px; font-weight: 700; color: var(--cheer-plum); margin-bottom: 12px; }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.contact-list li { font-size: 20px; }
.contact-list .label { display: block; font-size: 16px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-list a { font-weight: 700; display: inline-block; padding: 6px 0; }

/* Footer — still 16px minimum */
.site-footer { background: #241F1C; color: #EDE7DF; padding: 48px 0 56px; font-size: 16px; line-height: 1.6; }
.site-footer p { color: #EDE7DF; margin-bottom: 12px; }
.site-footer a { color: #FFFFFF; }
.site-footer .logo img { height: 40px; width: auto; margin-bottom: 20px; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 18px; }

/* Legal pages */
.legal h1 { font-size: clamp(36px, 5vw, 48px); }
.legal h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 40px; }
.legal ul { padding-left: 24px; color: var(--text-body); }
.legal li { margin-bottom: 8px; }
.legal .updated { font-size: 17px; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header nav, .skip-link, .brand-strip { display: none; } body { background: #fff; } }

/* ===== Event banner on the home page (time-limited; remove after the event) ===== */
.event-banner { background: var(--cheer-plum); color: #FFFFFF; }
.event-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.event-banner p { color: #FFFFFF; margin: 0; font-size: 19px; }
.event-banner a { color: #FFFFFF; font-weight: 700; display: inline-flex; align-items: center; min-height: 48px; }

/* ===== /event ===== */
.invite { text-align: left; }
.invite .lead strong { color: var(--text); }

.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perks li { background: var(--cheer-plum-soft); border: 1px solid var(--cheer-plum-border); border-radius: var(--radius); padding: 16px 18px; font-size: 18px; font-weight: 600; color: var(--cheer-plum-dark); }
@media (max-width: 860px) { .perks { grid-template-columns: 1fr; } }

.details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 32px 0 0; }
.details div { margin: 0; }
.details dt { font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.details dd { margin: 0; font-size: 21px; font-weight: 700; color: var(--text); }
.details dd span { display: block; font-size: 18px; font-weight: 400; color: var(--text-body); margin-top: 4px; }
.details .wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .details { grid-template-columns: 1fr; } }

.pull-quote { border-left: 5px solid var(--cheer-plum); background: var(--surface); padding: 20px 24px; margin: 32px 0 0; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.pull-quote p { font-size: 20px; color: var(--text); margin-bottom: 8px; }
.pull-quote footer { font-size: 18px; font-weight: 700; color: var(--cheer-plum); }

/* Form */
.rsvp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); max-width: 820px; }
@media (max-width: 640px) { .rsvp { padding: 28px 18px; } }
.rsvp h2 { color: var(--cheer-plum); }
.field { margin: 0 0 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 8px; padding: 0; }
.field .hint { display: block; font-size: 17px; color: var(--text-muted); margin: -2px 0 8px; font-weight: 400; }
.req { color: var(--cheer-plum); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 56px; padding: 12px 16px; font: inherit; font-size: 20px; color: var(--text);
  background: #FFFFFF; border: 2px solid #8C847D; border-radius: var(--radius);
}
.field textarea { min-height: 120px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--cheer-plum); outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset.field { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice { display: flex; align-items: flex-start; gap: 12px; min-height: 56px; padding: 14px 16px; border: 2px solid var(--border); border-radius: var(--radius); background: #FFFFFF; font-size: 19px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--cheer-plum); background: var(--cheer-plum-soft); }
.choice input, .consent input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--cheer-plum); }
.consent-box { background: var(--cheer-plum-soft); border: 1px solid var(--cheer-plum-border); border-radius: var(--radius); padding: 20px; margin: 8px 0 24px; }
.consent { display: flex; align-items: flex-start; gap: 14px; font-size: 18px; color: var(--text-body); margin-bottom: 16px; cursor: pointer; }
.consent-box .small { font-size: 17px; color: var(--text-muted); margin: 0; }
.btn--block { width: 100%; font-size: 21px; min-height: 60px; cursor: pointer; font-family: inherit; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.alt-booking { font-size: 18px; color: var(--text-body); margin: 20px 0 0; }

.alert { border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; font-size: 19px; }
.alert p { margin: 0; color: inherit; }
.alert--error { background: #FDECEC; border: 2px solid #B42318; color: #7A1A12; }

/* Confirmation */
.confirm { background: var(--surface); border: 2px solid var(--cheer-plum-border); border-radius: var(--radius); padding: 36px 32px; max-width: 820px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .confirm { padding: 28px 18px; } }
.badge { display: inline-block; background: #E7F5EC; color: #14532D; font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 16px; }
.ticket { border: 2px dashed var(--cheer-plum); border-radius: var(--radius); padding: 20px; margin: 24px 0; background: #FFFFFF; }
.ticket p { margin-bottom: 8px; color: var(--text); }
.ticket .ref { font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--cheer-plum); }

/* Cookie choice (only shown when a Meta Pixel ID is configured) */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 4px solid var(--cheer-plum); box-shadow: 0 -8px 28px rgba(0,0,0,0.12); padding: 20px 0; }
.cookie-bar p { font-size: 18px; color: var(--text); }
.cookie-bar .actions { margin-top: 0; }
.cookie-bar .btn { cursor: pointer; font-family: inherit; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #FFFFFF; text-decoration: underline; cursor: pointer; min-height: 48px; font-size: 18px; }

/* LinkedIn / professional variant: navy accents, same layout */
.theme-pro { --cheer-plum: #0F2034; --cheer-plum-dark: #1E344F; --cheer-plum-soft: #EEF2F7; --cheer-plum-border: #D3DCE8; }

[hidden] { display: none !important; }
@media print { .rsvp, .cookie-bar, .site-footer nav, .no-print { display: none !important; } }

/* ===== Visual fixes (8 Oct): event page ===== */
h1, h2 { text-wrap: balance; }
/* .field label (display:block; padding:0; bold) must not flatten the radio cards */
.field .choice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; font-size: 19px; font-weight: 400; }
.field .choice input { margin: 0; }
.field .hint--after { margin: 8px 0 0; }
.perks li { display: flex; align-items: center; }
button.btn { font-family: inherit; cursor: pointer; }
.ticket .ref { display: inline-block; white-space: nowrap; }
/* Focus is moved here for screen readers; it isn't a control, so no ring */
.confirm:focus, .alert:focus { outline: none; }
@media (max-width: 640px) {
  .site-header .container { min-height: 72px; padding-top: 8px; padding-bottom: 8px; gap: 4px 16px; }
  .site-header nav ul { gap: 0; margin-left: -10px; }
  .site-header nav a { padding: 0 10px; font-size: 17px; }
}
