:root {
    --bg: #f8f4ef;
    --card: #ffffff;
    --ink: #30283d;
    --muted: #756b80;
    --line: #ebe4f1;
    --primary: #7c5cff;
    --primary-dark: #6546df;
    --soft: #f2edff;
    --danger: #d94b67;
    --success: #4f8f68;
    --shadow: 0 18px 50px rgba(48,39,68,.10);
    --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(180deg,#fbf8f4,#f6f0ea);
    color: var(--ink);
}

a { color: inherit; }

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

.site-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 42px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: var(--soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 24px;
}

.main-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.main-nav a,
.mobile-menu a {
    text-decoration: none;
    color: #4d4658;
    font-weight: 800;
    font-size: 14px;
}

.nav-pill,
.btn {
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff !important;
    padding: 12px 18px;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    cursor: pointer;
    gap: 8px;
}

.btn:hover,
.nav-pill:hover { background: var(--primary-dark); }

.btn-soft {
    background: var(--soft);
    color: var(--primary-dark) !important;
}

.btn-danger {
    background: var(--danger) !important;
    color: #fff !important;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.narrow { width: min(860px, calc(100% - 36px)); }

.soft-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(124,92,255,.12);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 42px);
    box-shadow: var(--shadow);
}

.notice {
    padding: 14px 18px;
    border-radius: 18px;
    margin: 14px 0;
    font-weight: 800;
}

.notice-success { background: #e9f8ef; color: #24623c; }
.notice-error { background: #ffecec; color: #8f2d2d; }
.notice-warning { background: #fff5dc; color: #85611c; }
.notice-info { background: #eef4ff; color: #284f8f; }

form label {
    display: block;
    font-weight: 900;
    margin: 16px 0 8px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
}

textarea { resize: vertical; }

.form-grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions,
.page-title-row,
.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.eyebrow {
    color: var(--primary);
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
    margin: 0 0 10px;
}

.page-section { padding: 52px 0 72px; }

.mobile-menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 900;
}

.mobile-menu {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.mobile-menu[hidden] { display: none !important; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 26px;
    padding: 38px 42px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.site-footer p {
    color: var(--muted);
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 800;
}

.ah-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(42,32,54,.44);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    z-index: 9999;
    padding: 18px;
}

.ah-modal-backdrop[hidden] { display: none !important; }

.ah-modal {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 30px 90px rgba(42,32,54,.3);
    position: relative;
}

.ah-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: var(--soft);
    font-size: 22px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .site-header { padding: 14px 18px; }
    .main-nav { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .form-grid.two { grid-template-columns: 1fr; }
    .site-footer { flex-direction: column; padding: 32px 18px; }
}

/* v2.11.0 front-end logo/header polish */
.brand-wide {
    min-width: 190px;
    max-width: 290px;
}

.brand-logo {
    display: block;
    width: min(260px, 28vw);
    max-height: 54px;
    object-fit: contain;
}

@media (max-width: 860px) {
    .brand-wide { min-width: 156px; }
    .brand-logo { width: 178px; max-height: 46px; }
}

/* Progress modals for create memorial, family requests and tribute submissions */
.ah-progress-open {
    overflow: hidden;
}
.ah-progress-modal[hidden] {
    display: none !important;
}
.ah-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 22px;
}
.ah-progress-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(48,40,61,.48);
    backdrop-filter: blur(8px);
}
.ah-progress-modal__panel {
    position: relative;
    width: min(430px, 100%);
    background: #fff;
    border: 1px solid rgba(124,92,255,.18);
    border-radius: 30px;
    box-shadow: 0 30px 90px rgba(48,40,61,.28);
    padding: 34px 28px 28px;
    text-align: center;
    color: #30283d;
}
.ah-progress-modal__eyebrow {
    margin: 0 0 8px;
    color: #7c5cff;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.ah-progress-modal__panel h2 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.16;
}
.ah-progress-modal__panel p {
    margin: 0;
    color: #635a70;
    line-height: 1.65;
}
.ah-progress-modal__animation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 999px;
    background: linear-gradient(135deg,#f2edff,#fff5e8);
    box-shadow: inset 0 0 0 1px rgba(124,92,255,.12);
}
.ah-progress-modal__animation span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #7c5cff;
    animation: ahProgressPulse .9s ease-in-out infinite;
}
.ah-progress-modal__animation span:nth-child(2) {
    animation-delay: .14s;
    background: #a58bff;
}
.ah-progress-modal__animation span:nth-child(3) {
    animation-delay: .28s;
    background: #f0a55d;
}
.ah-progress-modal.is-complete .ah-progress-modal__animation {
    gap: 0;
}
.ah-progress-modal.is-complete .ah-progress-modal__animation span {
    display: none;
}
.ah-progress-modal.is-complete .ah-progress-modal__animation::before {
    content: '✓';
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #7c5cff;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
}
.ah-progress-modal__done {
    margin-top: 22px;
    width: 100%;
    justify-content: center;
}
@keyframes ahProgressPulse {
    0%, 100% { transform: translateY(0) scale(.88); opacity: .55; }
    50% { transform: translateY(-8px) scale(1); opacity: 1; }
}
@media (max-width: 640px) {
    .ah-progress-modal {
        align-items: end;
        padding: 14px;
    }
    .ah-progress-modal__panel {
        border-radius: 26px;
        padding: 28px 22px 22px;
    }
}


/* v3.0.31 progress modal manual close button */
.ah-progress-modal__panel {
    position: relative;
}
.ah-progress-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid #e5dafb;
    border-radius: 999px;
    background: #fff;
    color: #7c5cff;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(48,39,68,.10);
}
.ah-progress-modal__close:hover {
    background: #f7f1ff;
}


/* v3.0.51 contribution progress modal image */
.ah-progress-modal__image{display:block;max-width:150px;max-height:120px;object-fit:contain;margin:0 auto 16px;filter:drop-shadow(0 16px 28px rgba(70,39,111,.16))}.ah-progress-modal__image[hidden]{display:none!important}.ah-progress-modal.is-complete .ah-progress-modal__close{display:grid!important;place-items:center!important}.ah-progress-modal.is-complete .ah-progress-modal__done{display:inline-flex!important;align-items:center;justify-content:center}
