/* Building blocks shared by the page sections. */

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- eyebrow: small uppercase label above headings ---------- */

.eyebrow {
    margin: 0;
    font-size: clamp(0.8125rem, .95vw, 0.875rem);
    font-weight: 500;
    letter-spacing: .28em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--eyebrow-color, var(--c-accent));
}

.eyebrow--lined {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eyebrow--lined::before,
.eyebrow--lined::after {
    content: "";
    width: clamp(32px, 4vw, 56px);
    height: 1px;
    background: currentColor;
    opacity: .55;
}

.eyebrow--trailing::before { content: none; }
.eyebrow--center { justify-content: center; }

/* ---------- centred section heading ---------- */

.section-head { text-align: center; }

.section-title {
    margin: .3em 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(3rem, 6vw, 6.0625rem);
    line-height: 1.05;
    color: var(--c-accent);
    text-wrap: balance;
}

.section-sub {
    max-width: 36em;
    margin: .8em auto 0;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    text-wrap: balance;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 12px 30px;
    border: 0;
    border-radius: 10px;
    background: var(--c-accent);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: background .25s, color .25s, transform .25s;
}

.btn:hover { background: var(--c-accent-hover); transform: translateY(-1px); }
.btn svg { flex: none; width: 20px; height: 20px; }

.btn--outline {
    background: transparent;
    color: var(--c-accent);
    box-shadow: inset 0 0 0 1.5px var(--c-accent);
}

.btn--outline:hover,
.btn--outline:focus-visible { background: var(--c-accent); color: #fff; }

.btn--light {
    background: var(--c-cream);
    color: var(--c-accent);
    box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55);
}

.btn--light:hover { background: #fff; transform: translateY(-2px); }

.btn--block { width: 100%; }

.btn[aria-disabled="true"] {
    background: #A59C9C;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* outline on burgundy */
.btn--on-dark {
    background: transparent;
    color: var(--c-cream);
    box-shadow: inset 0 0 0 1.5px var(--c-cream);
}

.btn--on-dark:hover { background: var(--c-cream); color: var(--c-accent); }

/* ---------- links ---------- */

/* a venue, linking to Google Maps */
.venue-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s;
}

.venue-link:hover,
.venue-link:focus-visible { text-decoration-color: currentColor; }

/* ---------- decoration ---------- */

/* Wavy top edge of a section; the section sets --wave-height and --wave-color (the colour of the section above). */
.wave {
    position: absolute;
    top: -1px;
    left: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: var(--wave-height);
    color: var(--wave-color);
    pointer-events: none;
}

/* Wavy bottom edge instead; --wave-color is then the colour of the section below. */
.wave--bottom { top: auto; bottom: -1px; }

/* Thin burgundy outline offset from a photo or card, plus a soft shadow. */
.framed {
    --frame-x: 14px;
    --frame-y: 14px;
    box-shadow:
        var(--frame-x) var(--frame-y) 0 -1px var(--frame-bg, var(--c-sand)),
        var(--frame-x) var(--frame-y) 0 0 var(--c-frame),
        var(--frame-shadow, 0 24px 40px -24px rgba(80, 30, 25, .45));
}

/*
 * Ticket with two punched notches. Default: notches left and right at
 * --cut-y; .notched--x puts them top and bottom at --cut-x. The
 * ticket-notch controller keeps them on the perforation line.
 */
.notched {
    --notch: 14px;
    --cut-x: 50%;
    --cut-y: 50%;
    --notch-mask-x:
        radial-gradient(circle at var(--cut-x) 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
        radial-gradient(circle at var(--cut-x) 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
    --notch-mask-y:
        radial-gradient(circle at 0 var(--cut-y), #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% var(--cut-y), #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
    -webkit-mask: var(--notch-mask-y);
    mask: var(--notch-mask-y);
}

.notched--x {
    -webkit-mask: var(--notch-mask-x);
    mask: var(--notch-mask-x);
}

/* ---------- swipe hint under horizontally scrolling rows ---------- */

.swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 0.8125rem;
    letter-spacing: .08em;
}

.swipe-dots { display: flex; gap: 8px; }

.swipe-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: var(--dot-dim, .35);
    transition: opacity .3s, transform .3s;
}

.swipe-dots i.is-on { opacity: 1; transform: scale(1.2); }

/* ---------- scroll-in reveal (reveal controller adds .js-reveal) ---------- */

.js-reveal .reveal {
    opacity: 0;
    transform: translate(var(--reveal-x, 0), var(--reveal-y, 20px));
    transition:
        opacity .9s ease var(--reveal-delay, 0s),
        transform .9s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s);
}

.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- small cards with an icon, four in a row (--3: three) ---------- */

.benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 24px);
    margin: clamp(34px, 4vw, 56px) 0 0;
    padding: 0;
    list-style: none;
}

.benefit {
    padding: clamp(22px, 2.2vw, 30px);
    border-radius: 18px;
    background: var(--c-ivory);
    box-shadow: inset 0 0 0 1px rgba(110, 20, 35, .1);
}

.benefit__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-white);
    color: var(--c-accent);
    box-shadow: inset 0 0 0 1px rgba(110, 20, 35, .15);
}

.benefit__icon svg { width: 24px; height: 24px; }

.benefit__title {
    margin: 18px 0 0;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 1.9vw, 1.75rem);
    line-height: 1.1;
    color: var(--c-accent);
    text-wrap: balance;
}

.benefit__text { margin: 8px 0 0; font-size: 1rem; color: var(--c-ink-soft); text-wrap: pretty; }

.benefits--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .benefits--3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .benefits { grid-template-columns: minmax(0, 1fr); }
}
