/* Workshops & Events. Uses the site's design tokens (css/design-system.css). */

.ws-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.ws-muted { color: var(--text-muted); font-size: .9em; }
.ws-note, .ws-empty { color: var(--text-muted); text-align: center; padding: 32px 0; }
.ws-banner { background: var(--primary-light); color: var(--primary-dark); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 24px; }
.ws-banner--warn { background: #fdf1e3; color: #7a4a12; }

/* ── cards ── */
.ws-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .ws-grid { grid-template-columns: repeat(2, 1fr); } }
.ws-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.ws-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ws-card__media { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.ws-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ws-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-card__date { font-size: .85rem; letter-spacing: .02em; color: var(--accent-dark); text-transform: capitalize; margin: 0; }
.ws-card__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.9rem; line-height: 1.15; margin: 0; }
.ws-card__title a { color: inherit; text-decoration: none; }
.ws-card__subtitle { margin: 0; color: var(--text-muted); font-style: italic; }
.ws-card__meta { list-style: none; display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 4px 0; padding: 0; font-size: .9rem; color: var(--text-muted); }
.ws-card__short { margin: 4px 0; line-height: 1.6; }
.ws-card__price { margin: 8px 0 14px; font-size: .95rem; line-height: 1.7; }
.ws-card__price span { color: var(--text-muted); }
.ws-card .btn { align-self: flex-start; margin-top: auto; }
.ws-chip { font-size: .75rem; padding: 4px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); white-space: nowrap; }
.ws-chip--low { background: #fdf1e3; color: #7a4a12; }
.ws-chip--out { background: #eee; color: #555; }
.ws-chip--cancelled { background: #c62828; color: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ── homepage section ── */
.ws-home { background: var(--bg-alt); }
.ws-home__more { text-align: center; margin-top: 28px; }

/* ── detail page ── */
.ws-detail { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 80px; }
@media (min-width: 900px) { .ws-detail { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); align-items: start; } }
.ws-facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.ws-facts li { display: flex; gap: 12px; align-items: baseline; }
.ws-facts b { min-width: 88px; font-weight: 500; color: var(--accent-dark); }
.ws-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ws-prices strong { font-size: 1.15rem; }
.ws-section { margin: 0 0 40px; }
.ws-section h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.9rem; margin: 0 0 14px; }
.ws-section p { line-height: 1.75; }
.ws-section ul.ws-list { padding-left: 20px; line-height: 1.8; }
.ws-schedule { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ws-schedule li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.ws-schedule time { color: var(--accent-dark); font-size: .9rem; padding-top: 2px; }
.ws-schedule h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; }
.ws-schedule p { margin: 0; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 520px) { .ws-schedule li { grid-template-columns: 1fr; gap: 4px; } }
.ws-faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.ws-faq summary { cursor: pointer; font-weight: 500; }
.ws-faq details p { margin: 10px 0 0; color: var(--text-muted); }
.ws-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* booking card */
.ws-book { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .ws-book { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; overscroll-behavior: contain; } }
.ws-book h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.7rem; margin: 0 0 6px; }
.ws-field { display: grid; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; }
.ws-field legend, .ws-field label { font-size: .85rem; font-weight: 500; }
.ws-field input, .ws-field select { font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); width: 100%; box-sizing: border-box; }
.ws-field input:focus, .ws-field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.ws-radio { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; padding: 8px 0; }
.ws-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.5; margin: 6px 0 16px; }
.ws-check input { margin-top: 3px; }
.ws-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--border); font-size: 1rem; }
.ws-total strong { font-size: 1.6rem; font-family: 'Cormorant Garamond', Georgia, serif; }
.ws-error { background: #fdecea; color: #8a1f17; padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.ws-pay { width: 100%; justify-content: center; }
.ws-secure { font-size: .8rem; color: var(--text-muted); text-align: center; margin: 12px 0 0; }

/* sticky mobile CTA */
.ws-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(250,250,248,.96); border-top: 1px solid var(--border); backdrop-filter: blur(8px); display: flex; justify-content: center; transition: transform .25s ease; }
.ws-sticky .btn { width: 100%; max-width: 420px; justify-content: center; }
.ws-sticky.is-hidden { transform: translateY(110%); }
.ws-sticky[hidden] { display: none; }
@media (min-width: 900px) { .ws-sticky { display: none; } }
body.has-ws-sticky { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-ws-sticky { padding-bottom: 0; } }

/* thank you */
.ws-thanks { text-align: center; padding: 80px 20px; max-width: 560px; margin: 0 auto; }
.ws-thanks h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; }

@media (prefers-reduced-motion: reduce) { .ws-card, .ws-sticky { transition: none; } .ws-card:hover { transform: none; } }

.ws-home[hidden] { display: none !important; }

.ws-field input[type=radio], .ws-field input[type=checkbox], .ws-check input { width: auto; flex: none; }
.ws-section ul.ws-list { list-style: disc; }
.ws-section ul.ws-list li { padding-left: 2px; }

.ws-field[hidden], .ws-note[hidden], .ws-banner[hidden], .ws-error[hidden] { display: none !important; }
.ws-section p { margin: 0 0 14px; }

.ws-left { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: .85rem; font-weight: 500; }
.ws-left--low { background: #fdf1e3; color: #7a4a12; }
.ws-left:empty { display: none; }

/* places left badge in the hero */
.ws-hero-left { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--primary-dark); font-weight: 600; font-size: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.ws-hero-left::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2f9e6f; animation: ws-pulse 1.8s ease-in-out infinite; }
.ws-hero-left--low { background: #fff3e0; color: #8a3d00; }
.ws-hero-left--low::before { background: #e8590c; }
.ws-hero-left[hidden] { display: none; }
@keyframes ws-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,158,111,.5); } 50% { box-shadow: 0 0 0 7px rgba(47,158,111,0); } }
@media (prefers-reduced-motion: reduce) { .ws-hero-left::before { animation: none; } }

/* price line in the hero: struck regular price + early bird price */
.ws-hero-price { margin: 14px 0 0; color: #fff; font-size: 1.05rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ws-hero-price s { opacity: .7; font-size: 1.15rem; text-decoration-thickness: 2px; }
.ws-hero-price strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2.2rem; font-weight: 600; line-height: 1; }
.ws-hero-price span { opacity: .9; }
.ws-hero-price[hidden] { display: none; }

/* ── prominent date and time ── */
.ws-hero-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; color: #fff; }
.ws-hero-when__date { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 600; text-transform: capitalize; line-height: 1.1; }
.ws-hero-when__time { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.55); font-size: 1.05rem; font-weight: 600; backdrop-filter: blur(4px); }

.ws-card__media { position: relative; }
.ws-card__tile { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 62px; padding: 8px 0 7px; border-radius: 14px; background: #fff; color: var(--primary-dark); box-shadow: 0 4px 16px rgba(0,0,0,.22); line-height: 1; }
.ws-card__tile b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.9rem; font-weight: 700; }
.ws-card__tile span { margin-top: 3px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-dark); }
.ws-card__when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.ws-card .ws-card__date { font-size: 1.1rem; font-weight: 600; color: var(--text); letter-spacing: 0; text-transform: capitalize; }
.ws-card__time { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 3px 11px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: .95rem; font-weight: 600; }
.ws-card__top { min-height: 0; }
.ws-card__top:empty { display: none; }

/* capitalise only the first letter of dates (French/Spanish months stay lowercase) */
.ws-hero-when__date, .ws-card .ws-card__date, .ws-card__date { text-transform: none; }
.ws-hero-when__date::first-letter, .ws-card .ws-card__date::first-letter { text-transform: uppercase; }

.ws-card__price-tag { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: var(--primary-dark, #2f5f5f); color: #fff; font-size: .78rem; font-weight: 500; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.ws-card__price-tag b { font-size: .95rem; font-weight: 700; }

#pricing { scroll-margin-top: 80px; }
