:root {
    --purple: #5d58b0;
    --purple-dark: #49458e;
    --ink: #242424;
    --muted: #696969;
    --line: rgba(36, 36, 36, .12);
    --soft: #f7f7fb;
    --paper: #fff;
    --danger: #a13b4e;
    --success: #2b7656;
    --shadow: 0 16px 44px rgba(38, 33, 82, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Poppins", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.events-site { overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 48px)); }
.receipt-width { width: min(850px, calc(100% - 48px)); }

.site-header {
    position: relative;
    z-index: 20;
    min-height: 112px;
    background: #fff;
    overflow: hidden;
}
.header-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 142px; height: auto; }
.header-link {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.header-link:hover, .header-link:focus-visible { color: var(--purple); }
.header-wave { position: absolute; top: 0; right: 12%; width: 340px; pointer-events: none; }
.header-leaves { position: absolute; top: -72px; right: -64px; width: 250px; pointer-events: none; }

main { min-height: calc(100vh - 194px); }
.site-footer { position: relative; z-index: 5; border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
    color: var(--muted);
    font-size: 13px;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--purple); font-weight: 600; text-decoration: none; }

.eyebrow {
    display: inline-block;
    color: var(--purple);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 27px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(93, 88, 176, .25); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 9px 22px rgba(93, 88, 176, .2); }
.button-primary:hover { background: var(--purple-dark); }
.button-outline { color: var(--purple); border-color: var(--purple); background: #fff; }
.button-outline:hover { color: #fff; background: var(--purple); }
.button-full { width: 100%; }
.button-large { min-height: 54px; padding-inline: 34px; }
.text-link, .back-link, .back-to-events {
    color: var(--purple);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.text-link span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.back-link { display: inline-block; margin-bottom: 27px; }
.back-to-events { display: table; margin: 25px auto 0; }

.landing-hero, .empty-hero {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: #fff;
}
.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr);
    align-items: center;
    gap: 70px;
    min-height: 570px;
    padding-block: 58px 82px;
}
.landing-copy { position: relative; z-index: 2; max-width: 650px; }
.landing-copy h1, .empty-hero h1 {
    max-width: 620px;
    margin: 14px 0 20px;
    font-size: clamp(43px, 4.5vw, 64px);
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -.045em;
}
.landing-copy > p, .empty-hero p { max-width: 610px; margin: 0; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 31px; }
.landing-visual { position: relative; z-index: 2; display: flex; justify-content: center; }
.landing-visual img { display: block; width: min(540px, 100%); }
.bottom-leaf { position: absolute; z-index: 0; bottom: -20px; left: -22px; width: 240px; pointer-events: none; }
.empty-hero { display: flex; align-items: center; min-height: 430px; }

.events-section { position: relative; padding: 84px 0 105px; overflow: hidden; background: #fcfcfd; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 39px; }
.section-heading h2 { margin: 3px 0 0; font-size: clamp(34px, 3vw, 44px); font-weight: 600; line-height: 1.2; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.event-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 5px 24px rgba(24, 24, 48, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-card-image { display: block; aspect-ratio: 1.34; overflow: hidden; background: #eee; }
.event-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.event-card:hover .event-card-image img { transform: scale(1.025); }
.event-card-body { display: flex; flex: 1; flex-direction: column; padding: 21px 20px 19px; }
.event-card h3 { min-height: 45px; margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.event-price { display: block; margin-bottom: 10px; color: var(--purple); font-size: 16px; }
.event-card-body > p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.event-meta { display: grid; gap: 7px; margin: auto 0 18px; padding: 0; list-style: none; color: #555; font-size: 11px; }
.event-meta li { display: flex; align-items: flex-start; gap: 8px; }
.event-meta img { flex: 0 0 auto; width: 13px; height: 15px; margin-top: 1px; object-fit: contain; }
.button-card { align-self: flex-start; min-height: 38px; padding: 9px 18px; font-size: 12px; }
.events-corner-leaf { position: absolute; right: -65px; bottom: -85px; width: 270px; opacity: .8; pointer-events: none; }
.empty-card { padding: 45px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; background: #fff; }

.botanical-page { position: relative; overflow: hidden; }
.detail-page, .booking-page, .checkout-page, .confirmation-page { min-height: 620px; padding: 55px 0 100px; }
.detail-page::after, .booking-page::after, .checkout-page::after, .confirmation-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 12%;
    right: -190px;
    width: 360px;
    height: 360px;
    border: 55px solid rgba(93, 88, 176, .045);
    border-radius: 50%;
}
.detail-layout { display: grid; grid-template-columns: minmax(350px, .88fr) minmax(0, 1.12fr); gap: 70px; align-items: center; }
.detail-image { display: block; width: 100%; aspect-ratio: 1.18; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow); }
.detail-copy h1, .booking-heading h1, .checkout-heading h1, .receipt-card > h1 {
    margin: 7px 0 13px;
    font-size: clamp(34px, 4.1vw, 52px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.035em;
}
.detail-price { display: block; margin-bottom: 17px; color: var(--purple); font-size: 23px; }
.detail-lead { margin: 0 0 20px; color: var(--muted); }
.detail-meta { margin: 0 0 27px; font-size: 13px; }
.event-description { max-width: 830px; margin: 70px auto 0; }
.event-description h2 { margin: 5px 0 15px; font-size: 29px; font-weight: 600; }
.event-description p { color: var(--muted); }

.booking-heading, .checkout-heading { max-width: 760px; margin-bottom: 35px; }
.booking-heading p, .checkout-heading p { margin: 0; color: var(--muted); }
.booking-summary-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr); gap: 25px; margin-bottom: 35px; }
.summary-event { display: grid; grid-template-columns: 270px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 7px 28px rgba(34, 31, 72, .055); }
.summary-event-image { width: 100%; height: 100%; min-height: 255px; object-fit: cover; }
.summary-event-copy { padding: 27px; }
.summary-event-copy h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.35; }
.summary-event-copy > strong { color: var(--purple); }
.summary-event-copy > p { margin: 12px 0; color: var(--muted); font-size: 13px; }
.summary-event-copy .event-meta { margin: 0; font-size: 12px; }
.pricing-panel { display: flex; flex-direction: column; justify-content: center; padding: 32px; border-radius: 8px; color: #fff; background: var(--purple); }
.pricing-panel h2 { margin: 0 0 27px; font-size: 20px; font-weight: 500; }
.pricing-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.25); }
.pricing-row > strong { font-size: 25px; }
.pricing-row span { font-size: 12px; }
.pricing-panel small { margin-top: 13px; color: rgba(255,255,255,.72); }
.booking-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 28px; padding: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; }
.field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid #d7d7db;
    border-radius: 5px;
    color: var(--ink);
    background: #fff;
}
.field input::placeholder { color: #aaa; }
.field input:focus { border-color: var(--purple); outline: 3px solid rgba(93,88,176,.12); }
.field small { color: var(--muted); font-size: 11px; }
.booking-form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 25px; padding-top: 7px; }
.booking-form-actions p { max-width: 430px; margin: 0; color: var(--muted); font-size: 11px; }
.booking-form-actions p span { color: var(--purple); }
.alert { margin: 0 0 24px; padding: 14px 17px; border: 1px solid; border-radius: 6px; font-size: 13px; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-error { color: var(--danger); border-color: rgba(161,59,78,.24); background: #fff5f6; }
.alert-test { color: #695719; border-color: #ead78f; background: #fff9df; }

.checkout-page, .confirmation-page { background: #fcfcfd; }
.checkout-card, .receipt-card { position: relative; z-index: 2; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.checkout-card { padding: 34px; }
.checkout-event { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.checkout-event span { color: var(--purple); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.checkout-event h2 { margin: 5px 0; font-size: 25px; }
.checkout-event p { margin: 0; color: var(--muted); }
.checkout-lines { margin: 14px 0 28px; }
.checkout-lines > div { display: flex; justify-content: space-between; gap: 25px; padding: 11px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.checkout-lines dt { color: var(--muted); }
.checkout-lines dd { margin: 0; font-weight: 600; text-align: right; }
.checkout-lines .checkout-total { margin-top: 8px; padding-top: 19px; border-bottom: 0; font-size: 18px; }
.checkout-total dd { color: var(--purple); font-size: 22px; }
.security-note { max-width: 650px; margin: 20px auto 0; color: var(--muted); font-size: 12px; text-align: center; }
.failed-card { padding: 45px; text-align: center; }
.status-symbol { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: var(--danger); font-size: 27px; font-weight: 700; }
.failed-card h2 { margin: 0 0 8px; }
.failed-card p { margin: 0 0 25px; color: var(--muted); }
.failed-card .button + .button { margin-top: 10px; }

.confirmation-page { padding-top: 62px; }
.receipt-card { padding: 40px; }
.receipt-card > h1 { margin-top: 0; text-align: center; }
.receipt-image { display: block; width: 100%; max-height: 330px; border-radius: 7px; object-fit: cover; }
.receipt-event { position: relative; padding: 28px 0 25px; border-bottom: 1px solid var(--line); }
.success-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: var(--success); background: #eaf7f0; font-size: 11px; font-weight: 600; }
.receipt-event h2 { max-width: 600px; margin: 12px 125px 7px 0; font-size: 25px; line-height: 1.35; }
.receipt-price { position: absolute; top: 53px; right: 0; color: var(--purple); font-size: 20px; }
.receipt-event > p { margin: 0 130px 15px 0; color: var(--muted); font-size: 13px; }
.receipt-event .event-meta { margin: 0; font-size: 12px; }
.receipt-details { padding: 28px 0 9px; }
.receipt-details h3 { margin: 0 0 20px; font-size: 19px; }
.receipt-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 35px; margin: 0; }
.receipt-details dl div { min-width: 0; }
.receipt-details dt { margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.receipt-details dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; }
.receipt-actions { display: flex; gap: 12px; margin-top: 28px; }
.receipt-success-art { position: absolute; right: -62px; bottom: -52px; width: 175px; pointer-events: none; }
.email-status { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px 21px; border: 1px solid rgba(43,118,86,.18); border-radius: 8px; color: var(--success); background: #f5fbf7; }
.email-status > span { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #fff; background: var(--success); font-weight: 700; }
.email-status strong { font-size: 13px; }
.email-status p { margin: 1px 0 0; color: var(--muted); font-size: 11px; }
.email-warning { color: #886c18; border-color: rgba(136,108,24,.2); background: #fffaf0; }
.email-warning > span { background: #a78628; }
body.download-receipt { padding: 35px; background: #f4f4f8; }
body.download-receipt .receipt-card { max-width: 800px; margin: auto; }

@media (max-width: 1050px) {
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .landing-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .75fr); gap: 35px; }
    .detail-layout { gap: 40px; }
    .booking-summary-grid { grid-template-columns: 1fr; }
    .pricing-panel { min-height: 210px; }
}

@media (max-width: 760px) {
    .shell, .narrow, .receipt-width { width: min(100% - 32px, 620px); }
    .site-header, .header-inner { min-height: 88px; }
    .brand img { width: 116px; }
    .header-wave { right: 1%; width: 230px; }
    .header-leaves { top: -48px; right: -63px; width: 175px; opacity: .75; }
    .landing-hero-grid { grid-template-columns: 1fr; gap: 18px; min-height: auto; padding: 60px 0 95px; }
    .landing-copy h1, .empty-hero h1 { font-size: clamp(38px, 12vw, 52px); line-height: 1.17; }
    .landing-visual img { width: min(410px, 88%); }
    .bottom-leaf { width: 170px; }
    .events-section { padding: 67px 0 85px; }
    .section-heading { display: block; }
    .section-heading p { margin-top: 12px; }
    .event-grid { grid-template-columns: 1fr; }
    .event-card { max-width: 480px; width: 100%; margin: auto; }
    .detail-page, .booking-page, .checkout-page, .confirmation-page { padding: 40px 0 80px; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-image { aspect-ratio: 1.3; }
    .event-description { margin-top: 48px; }
    .summary-event { grid-template-columns: 1fr; }
    .summary-event-image { min-height: 210px; max-height: 270px; }
    .booking-form { grid-template-columns: 1fr; padding: 25px 20px; }
    .booking-form-actions { display: grid; }
    .booking-form-actions .button { width: 100%; }
    .checkout-card, .receipt-card { padding: 25px 20px; }
    .checkout-lines > div { display: grid; gap: 3px; }
    .checkout-lines dd { text-align: left; }
    .receipt-event h2, .receipt-event > p { margin-right: 0; }
    .receipt-price { position: static; display: block; margin-bottom: 10px; }
    .receipt-details dl { grid-template-columns: 1fr; }
    .receipt-actions { display: grid; }
    .receipt-success-art { right: -42px; bottom: -40px; width: 125px; opacity: .7; }
    .footer-inner { display: grid; justify-content: center; gap: 4px; padding: 20px 0; text-align: center; }
}

@media (max-width: 430px) {
    .header-link { display: none; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .pricing-row { align-items: flex-start; flex-direction: column; gap: 7px; }
    .receipt-image { min-height: 160px; }
}

@media print {
    @page { margin: 14mm; }
    body { background: #fff; }
    .site-header, .site-footer, .no-print, .email-status, .back-to-events, .bottom-leaf { display: none !important; }
    main, .confirmation-page { min-height: 0; padding: 0; background: #fff; }
    .receipt-width { width: 100%; }
    .receipt-card { border: 0; box-shadow: none; }
    .receipt-success-art { display: none; }
}
