/* =========================================================
   Distant Memorials — custom styles (Bootstrap 5.3, light)
   Calm and dignified: twilight slate-blue that carries the white
   logo artwork, the logo's rose red as the single accent, and soft
   mist backgrounds. Headings in Cormorant Garamond.
   ========================================================= */

:root {
    --dusk: #2b354d;          /* header, hero, footer: lets the white logo show */
    --dusk-deep: #1e2638;
    --dusk-soft: #46526e;
    --rose: #c41427;          /* logo red, deepened for buttons with white text */
    --rose-bright: #ee1c2d;   /* logo red, for small marks */
    --mist: #f3f5f8;          /* alternate section background */
    --line: #dde2ea;
    --ink: #23262d;
    --muted: #5b6272;

    --bs-body-bg: #ffffff;
    --bs-body-color: var(--ink);
    --bs-body-font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: 1.08rem;
    --bs-body-line-height: 1.7;
    --bs-secondary-color: var(--muted);
    --bs-heading-color: var(--dusk-deep);
    --bs-link-color: var(--rose);
    --bs-link-color-rgb: 196, 20, 39;
    --bs-link-hover-color: var(--dusk);
    --bs-link-hover-color-rgb: 43, 53, 77;
    --bs-border-color: var(--line);
}

body { display: flex; flex-direction: column; min-height: 100vh; }
::selection { background: var(--dusk); color: #fff; }
:focus-visible { outline: 3px solid var(--rose-bright); outline-offset: 2px; }
.skip-link { position: absolute; z-index: 2000; background: var(--dusk); color: #fff; padding: .5rem 1rem; }

h1, h2, h3, .display-4, .display-5, .display-6 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: .005em;
}
h4, h5 { font-weight: 700; }
.lead { font-size: 1.22rem; color: #3d4350; }
p { max-width: 40em; }
.text-center p, p.mx-auto { margin-left: auto; margin-right: auto; }

/* Thin rose rule under centered headings */
.rule { display: block; width: 56px; height: 2px; background: var(--rose-bright); margin: 1.1rem auto 0; }
.rule.start { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .62rem 1.4rem; }
.btn-lg { padding: .8rem 1.8rem; }
.btn-rose { --bs-btn-color: #fff; --bs-btn-bg: var(--rose); --bs-btn-border-color: var(--rose);
            --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #a3101f; --bs-btn-hover-border-color: #a3101f;
            --bs-btn-active-color: #fff; --bs-btn-active-bg: #a3101f; --bs-btn-active-border-color: #a3101f; }
.btn-dusk { --bs-btn-color: #fff; --bs-btn-bg: var(--dusk); --bs-btn-border-color: var(--dusk);
            --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--dusk-deep); --bs-btn-hover-border-color: var(--dusk-deep);
            --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--dusk-deep); --bs-btn-active-border-color: var(--dusk-deep); }
.btn-quiet { --bs-btn-color: rgba(255,255,255,.88); --bs-btn-border-color: rgba(255,255,255,.35);
             --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255,255,255,.1); --bs-btn-hover-border-color: rgba(255,255,255,.7);
             --bs-btn-active-color: #fff; --bs-btn-active-bg: rgba(255,255,255,.15); font-weight: 600; }
.btn-outline-light { --bs-btn-hover-color: var(--dusk); }

/* ---------- Header (dusk, so the white logo art reads) ---------- */
.site-nav { background: var(--dusk); }
.site-nav .navbar-brand { padding: .35rem 0; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.wordmark-mark { height: 50px; width: auto; }
.wordmark-text { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.6rem; letter-spacing: .01em; }
.site-nav .nav-link { color: rgba(255,255,255,.8); font-weight: 600; font-size: .98rem; padding-left: .75rem !important; padding-right: .75rem !important; white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; }
.site-nav .nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 var(--rose-bright); }
@media (max-width: 1199.98px) { .site-nav .nav-link.active { box-shadow: inset 2px 0 0 var(--rose-bright); } }
.site-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.site-nav .navbar-toggler-icon { filter: invert(1); }
@media (min-width: 1200px) and (max-width: 1399.98px) { .site-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; } }
.site-nav .btn { padding: .5rem 1.1rem; font-size: .92rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 18%, rgba(255,255,255,.10), transparent 60%),
        linear-gradient(180deg, var(--dusk) 0%, var(--dusk-deep) 100%);
    overflow: hidden;
}
.hero-photo { background-size: cover; background-position: center; text-shadow: 0 1px 12px rgba(20,26,40,.55); }
.hero-logo { width: min(620px, 92%); height: auto; display: block; margin: 0 auto 2rem; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 500; max-width: 18em; margin: 0 auto 1rem; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 38em; margin: 0 auto 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.75rem; color: rgba(255,255,255,.8); font-size: .98rem; }
.hero-facts i { color: var(--rose-bright); margin-right: .4rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 44rem; margin: 0 auto 3.25rem; text-align: center; }

/* Event cards */
.event-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.event-card:hover { color: var(--ink); box-shadow: 0 16px 36px rgba(30, 38, 56, .12); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .event-card:hover { transform: none; } }
.event-card .photo { border-radius: 0; border: 0; }
.event-card .body { padding: 1.6rem 1.75rem 1.75rem; }
.event-card h3 { font-size: 2rem; }
.event-card .more { font-weight: 700; color: var(--rose); }

/* Soft cards & icons */
.soft-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; height: 100%; }
.section-mist .soft-card { border-color: transparent; box-shadow: 0 1px 2px rgba(30,38,56,.05); }
.round-icon {
    display: inline-grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--mist);
    color: var(--dusk);
    font-size: 1.45rem;
    border: 1px solid var(--line);
}
.section-mist .round-icon { background: #fff; }

/* What's included list */
.included { display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 768px) { .included { grid-template-columns: 1fr 1fr; } }
.included-item { display: flex; gap: 1rem; align-items: flex-start; }
.included-item .round-icon { flex-shrink: 0; width: 3rem; height: 3rem; font-size: 1.25rem; }
.included-item h3 { font-family: "Mulish", sans-serif; font-weight: 700; font-size: 1.08rem; margin: .2rem 0 .3rem; color: var(--dusk-deep); }
.included-item p { margin: 0; color: var(--muted); }

/* ---------- Flow diagram ---------- */
.flow { display: grid; gap: 2rem; }
.flow-lane { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; }
.flow-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: 1.5rem; }
.flow-head h3 { color: var(--dusk-deep); }
.flow-head p { color: var(--muted); }
.flow-lane.lane-live .flow-head h3::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--rose-bright); margin-right: .55rem; vertical-align: middle; box-shadow: 0 0 0 4px rgba(238,28,45,.15); }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; position: relative; }
.flow-steps li { position: relative; padding-left: 4rem; }
.flow-steps li::after {                  /* connector between steps (vertical on phones) */
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 3.2rem;
    bottom: -1.25rem;
    width: 2px;
    background: var(--line);
}
.flow-steps li:last-child::after { display: none; }
.flow-icon {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    background: var(--dusk);
    color: #fff;
    font-size: 1.3rem;
}
.lane-after .flow-icon { background: #fff; color: var(--dusk); border: 2px solid var(--dusk); }
.flow-title { font-size: 1.05rem; margin: .1rem 0 .25rem; color: var(--dusk-deep); }
.flow-steps p { color: var(--muted); font-size: .98rem; }
@media (min-width: 992px) {
    .flow-steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .flow-steps li { padding-left: 0; padding-top: 4.1rem; }
    .flow-icon { left: 0; }
    .flow-steps li::after {              /* connector becomes horizontal */
        left: 3.6rem;
        right: -1.2rem;
        top: 1.55rem;
        bottom: auto;
        width: auto;
        height: 2px;
    }
}

/* ---------- Where we work (Benicia in the middle, four directions) ---------- */
.reach {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: ". north ." "west home east" ". south .";
    gap: 1.25rem;
    align-items: center;
    justify-items: center;
    max-width: 560px;
    margin: 0 auto;
}
/* dashed cross linking each place back to Benicia */
.reach::before, .reach::after { content: ""; position: absolute; z-index: 0; }
.reach::before { left: 12%; right: 12%; top: 50%; border-top: 2px dashed rgba(196, 20, 39, .35); }
.reach::after { top: 12%; bottom: 12%; left: 50%; border-left: 2px dashed rgba(196, 20, 39, .35); }
.reach-point {
    position: relative; z-index: 1;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: .85rem 1rem; text-align: center; width: 100%; max-width: 180px;
    box-shadow: 0 8px 20px rgba(30, 38, 56, .06);
}
.reach-north { grid-area: north; }
.reach-west  { grid-area: west; }
.reach-east  { grid-area: east; }
.reach-south { grid-area: south; }
.reach-dir { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.reach-place { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--dusk-deep); }
.reach-note { display: block; font-size: .82rem; color: var(--muted); }
.reach-home {
    grid-area: home; position: relative; z-index: 1;
    width: 128px; height: 128px; border-radius: 50%;
    background: var(--dusk); color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(43, 53, 77, .1);
}
.reach-home i { color: var(--rose-bright); font-size: 1.6rem; line-height: 1; margin-bottom: .2rem; }
.reach-home span { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.35rem; }
@media (max-width: 575.98px) {
    .reach { gap: .6rem; }
    .reach-point { padding: .6rem .45rem; }
    .reach-place { font-size: 1.12rem; }
    .reach-note { font-size: .72rem; }
    .reach-home { width: 92px; height: 92px; box-shadow: 0 0 0 5px rgba(43, 53, 77, .1); }
    .reach-home span { font-size: 1.1rem; }
}

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.compare { width: 100%; min-width: 36rem; border-collapse: collapse; }
.compare th, .compare td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--muted); }
.compare thead th.ours { color: var(--dusk-deep); }
.compare tbody th { font-weight: 700; color: var(--dusk-deep); white-space: nowrap; }
.compare td { color: var(--muted); }
.compare td.ours { color: var(--ink); font-weight: 600; background: rgba(43,53,77,.04); }
/* Phones: each row becomes a small stacked block so both columns stay visible */
@media (max-width: 767.98px) {
    .compare { min-width: 0; }
    .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .compare tr, .compare th, .compare td { display: block; }
    .compare tbody tr { border-bottom: 1px solid var(--line); }
    .compare tbody tr:last-child { border-bottom: 0; }
    .compare tbody th { padding: 1rem 1.25rem .35rem; border: 0; }
    .compare td { padding: .35rem 1.25rem; border: 0; }
    .compare td.ours { padding-bottom: 1rem; background: none; }
    .compare td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
    .compare td.ours::before { color: var(--rose); }
}

/* Photos & placeholders */
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.photo-placeholder {
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 30%, #4a5776, var(--dusk) 70%);
    color: rgba(255,255,255,.55);
    font-size: 3.4rem;
}

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.85rem; margin-bottom: .6rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem; color: var(--rose); font-weight: 700; }

/* Quote */
.quote { margin: 0 auto; max-width: 46rem; text-align: center; }
.quote blockquote { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.35; color: var(--dusk-deep); }
.quote figcaption { color: var(--muted); }

/* Page banner */
.page-banner { background: linear-gradient(180deg, var(--dusk) 0%, var(--dusk-deep) 100%); color: #fff; text-align: center; }
.photo-bg { background-size: cover; background-position: center; }
.page-banner.photo-bg { text-shadow: 0 1px 12px rgba(20,26,40,.55); }
.page-banner h1 { color: #fff; font-weight: 500; }
.page-banner .display-4 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
.page-banner .lead { color: rgba(255,255,255,.85); max-width: 40em; margin: 0 auto; }

/* Accordion */
.accordion { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 14px;
             --bs-accordion-active-bg: var(--mist); --bs-accordion-active-color: var(--dusk-deep);
             --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(238,28,45,.25); }
.accordion-button { font-weight: 700; }

/* Forms */
.form-sheet { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 0 16px 40px rgba(30,38,56,.07); }
.form-control, .form-select { border: 1.5px solid #cdd4de; border-radius: 10px; padding: .65rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--dusk); box-shadow: 0 0 0 3px rgba(43,53,77,.15); }
.form-label { font-weight: 700; }
.form-check-input:checked { background-color: var(--dusk); border-color: var(--dusk); }
.form-text { color: var(--muted); }

/* CTA */
.cta-band { background: linear-gradient(180deg, var(--dusk) 0%, var(--dusk-deep) 100%); color: #fff; }
.cta-band h2 { color: #fff; font-weight: 500; }
.cta-band .lead { color: rgba(255,255,255,.85); max-width: 36em; }

/* Footer */
.site-footer { background: var(--dusk-deep); color: rgba(255,255,255,.85); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #ffb3ba; }
.footer-logo { width: 260px; max-width: 100%; height: auto; }
.footer-heading { font-family: "Mulish", sans-serif; font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: .9rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-muted { color: rgba(255,255,255,.65); }
.site-footer hr { border-color: rgba(255,255,255,.18); opacity: 1; }
.site-footer.photo-bg { background-size: cover; background-position: center; }
