:root {
    --bg: #f3ebdf;
    --ink: #1e1a1c;
    --muted: rgba(30, 26, 28, 0.7);
    --line: rgba(30, 26, 28, 0.12);
    --card: rgba(255, 251, 246, 0.82);
    --card-strong: rgba(255, 255, 255, 0.92);
    --rose: #cb8f7a;
    --rose-deep: #a35d4e;
    --sage: #667a6f;
    --shadow: 0 24px 70px rgba(40, 24, 20, 0.12);
    --radius: 28px;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--sans);
    background:
        radial-gradient(circle at top left, rgba(203, 143, 122, 0.2), transparent 30%),
        radial-gradient(circle at bottom right, rgba(102, 122, 111, 0.18), transparent 28%),
        linear-gradient(180deg, #f8f1e7 0%, var(--bg) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black, transparent 85%);
    opacity: 0.4;
}

.page-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 80px;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(30, 26, 28, 0.14);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 10px 18px rgba(16, 14, 18, 0.06);
    backdrop-filter: blur(10px);
}

.lang-btn {
    border: 1px solid transparent;
    background: transparent;
    color: rgba(30, 26, 28, 0.75);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.lang-btn:hover {
    transform: translateY(-1px);
}

.lang-btn[aria-pressed="true"] {
    color: rgba(30, 26, 28, 0.92);
    border-color: rgba(203, 143, 122, 0.85);
    background: linear-gradient(135deg, rgba(203, 143, 122, 0.26), rgba(255, 231, 221, 0.32));
}

.hero {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy,
.hero-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-copy {
    padding: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 245, 239, 0.7)),
        url("../assets/WalkPath.jpeg") center 10%/cover;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 26, 28, 0.1), rgba(30, 26, 28, 0.52));
}

.hero-copy > * {
    position: relative;
    z-index: 1;
    color: #fffaf6;
}

.eyebrow,
.kicker,
label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow,
.kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(44px, 8vw, 78px);
    line-height: 0.92;
}

.lede {
    margin: 16px 0 0;
    max-width: 34rem;
    font-size: 17px;
    line-height: 1.75;
}

.hero-card {
    padding: 28px;
    background: linear-gradient(180deg, rgba(104, 123, 111, 0.14), rgba(255, 255, 255, 0.82));
    display: grid;
    gap: 16px;
    align-content: center;
}

.detail {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.detail-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-value {
    font-size: 18px;
    font-weight: 700;
}

.detail-value-multiline {
    display: block;
    line-height: 1.45;
}

.panel {
    margin-top: 28px;
    padding: 28px;
    background: linear-gradient(180deg, var(--card-strong), var(--card));
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.panel-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 48px);
    line-height: 0.95;
}

.subtle {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.text-link {
    color: var(--rose-deep);
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}

.status {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.6;
}

.status.ok {
    background: rgba(97, 135, 108, 0.12);
    border-color: rgba(97, 135, 108, 0.2);
    color: #1f5c35;
}

.status.err {
    background: rgba(163, 93, 78, 0.1);
    border-color: rgba(163, 93, 78, 0.22);
    color: #8a3527;
}

form {
    display: grid;
    gap: 18px;
}

.attendance-only {
    display: none;
}

.attendance-only.is-visible {
    display: grid;
    gap: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.single-login {
    grid-template-columns: minmax(0, 520px);
}

label {
    display: block;
    margin-bottom: 9px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(30, 26, 28, 0.14);
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(203, 143, 122, 0.9);
    box-shadow: 0 0 0 5px rgba(203, 143, 122, 0.15);
    transform: translateY(-1px);
}

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.help {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

.choice-note {
    display: none;
    margin: 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(163, 93, 78, 0.08);
    border: 1px solid rgba(163, 93, 78, 0.18);
    color: #8a3527;
    font-size: 14px;
    line-height: 1.6;
}

.choice-note.is-visible {
    display: block;
}

.guest-stack {
    display: grid;
    gap: 16px;
}

.guest-card,
.gift-panel {
    border: 1px solid rgba(30, 26, 28, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.66);
    padding: 20px;
}

.guest-card-head {
    margin-bottom: 14px;
}

.guest-card h3,
.gift-panel h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 34px);
    line-height: 1;
}

.meal-field[hidden] {
    display: none;
}

.child-meal-note {
    margin: 0 0 14px;
    font-size: 18px;
    padding-left:500px;
}

.gift-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 240px);
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.gift-copy {
    display: grid;
    gap: 10px;
}

.gift-note {
    margin: 0;
}

.gift-copy .kicker {
    margin-bottom: 0;
}

.gift-qr {
    width: min(100%, 240px);
    aspect-ratio: 1;
    justify-self: end;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    border: 1px solid rgba(30, 26, 28, 0.1);
}

.gift-panel-full {
    grid-template-columns: 1fr;
    gap: 24px;
}

.gift-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gift-method {
    margin: 0;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(30, 26, 28, 0.1);
    background: rgba(255, 255, 255, 0.78);
    display: grid;
    gap: 12px;
}

.gift-method img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.gift-method figcaption {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(30, 26, 28, 0.16);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.primary {
    color: #fffaf6;
    background: linear-gradient(135deg, var(--rose-deep), var(--rose));
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(163, 93, 78, 0.22);
}

.btn.secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
}

.hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 24px, 1080px);
        padding-top: 24px;
    }

    .topbar {
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: 260px;
        padding: 10px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 245, 239, 0.7)),
            url("../assets/WalkPath.jpeg") center 12%/cover;
    }

    .panel {
        padding: 22px;
    }

    .gift-panel {
        grid-template-columns: 1fr;
    }

    .gift-qr {
        justify-self: start;
    }

    .gift-methods {
        grid-template-columns: 1fr;
    }

    .panel-head,
    .grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .child-meal-note {
        margin: 0 0 14px;
        font-size: 18px;
        padding-left:0px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    input,
    select,
    textarea,
    .btn {
        transition: none;
    }
}
