/* ================================================
   Little Lamb Baptism Theme – Digital Invitation
   Cream, meadow green and honey gold, a woolly little-lamb motif, rolling-hill
   dividers and an arched chapel-window portrait. Pastoral, gentle, unhurried.
   ================================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Three independently pickable seeds (see the "Button Color" / "Section
       Background" / "Accent Details" pickers in the event editor) — every tint
       below each one is calculated from it with color-mix() instead of its own
       hardcoded hex, so picking a new color recolors every section/button/badge
       that reads the matching variable. Ratios reproduce the original cream-and-
       meadow palette and stay balanced for other colors too. --honey* stays a
       fixed secondary accent, same as this theme's other decorative constants.
       The section-title flower icon's color is baked into its own data-URI and
       does NOT follow the pickers (same known limitation as the other baptism
       themes). The rolling-hill dividers, however, use a colorless shape as a
       CSS mask (see .lm-alt-sections::after) precisely so they DO follow
       --cream/--cream-alt/--meadow live. */
    --btn-accent:        #8FA97C;
    --btn-color:         var(--btn-accent);
    --btn-color-light:   color-mix(in srgb, var(--btn-accent) 64%, white);
    --btn-color-dark:    color-mix(in srgb, var(--btn-accent) 62%, black);

    --section-bg-accent: #8FA97C;
    --cream:             color-mix(in srgb, var(--section-bg-accent) 6%, white);
    --cream-alt:         color-mix(in srgb, var(--section-bg-accent) 15%, white);

    --accent-detail:     #8FA97C;
    --meadow:            var(--accent-detail);
    --meadow-light:      color-mix(in srgb, var(--accent-detail) 60%, white);
    --meadow-pale:       color-mix(in srgb, var(--accent-detail) 18%, white);
    --meadow-dark:       color-mix(in srgb, var(--accent-detail) 60%, black);

    --white:        #FFFFFF;
    --ink:          #33352B;
    --body:         #5F6355;
    --muted:        #94A086;
    --honey:        #E4B363;
    --honey-light:  #F0CE93;
    --honey-pale:   #F7E9CC;
    --honey-dark:   #B07E2E;
    --accent-color: var(--accent-detail);
    --radius:       18px;
    --btn-radius:   999px;
    --ff-display:   'Newsreader', 'Georgia', serif;
    --ff-body:      'Mulish', sans-serif;

    /* Rolling-hills horizon, colorless (white) so it works as a mask — the
       actual color comes from background-color (var(--cream) / var(--cream-alt)
       / var(--meadow)), so the seam always matches whichever color those
       variables currently resolve to. Same path as partials/shape-divider. */
    --lm-hill-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,64 C110,26 190,88 320,58 C450,28 520,86 660,54 C790,24 880,82 1000,50 L1000,100 L0,100 Z'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 400;
    color: var(--body);
    background-color: var(--cream);
    line-height: 1.75;
}

img { max-width: 100%; display: block; }
a { color: var(--meadow-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.lm-container         { max-width: 1100px; margin: 0 auto; }
.lm-container--narrow { max-width: 680px; }

/* Sections alternate a flat tint so the rhythm stays correct no matter which of
   these are hidden by plan tier, the section-visibility toggle, or missing data. */
.lm-alt-sections > * {
    position: relative;
    background: var(--cream);
}
.lm-alt-sections > *:nth-child(even) {
    background: var(--cream-alt);
}

.lm-poem::after,
.lm-alt-sections > *:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 42px;
    mask-image: var(--lm-hill-shape);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-image: var(--lm-hill-shape);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}
.lm-alt-sections > *:nth-child(odd):not(:last-child)::after {
    background-color: var(--cream-alt);
}
.lm-poem::after,
.lm-alt-sections > *:nth-child(even):not(:last-child)::after {
    background-color: var(--cream);
}

.lm-section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    color: var(--ink);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: .01em;
    position: relative;
    padding-bottom: 1rem;
}
.lm-section-title::after {
    content: '';
    position: absolute;
    top: -26px;
    left: 50%;
    width: 28px;
    height: 28px;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='%238FA97C'%3E%3Cellipse cx='30' cy='16' rx='8' ry='12'/%3E%3Cellipse cx='30' cy='16' rx='8' ry='12' transform='rotate(72 30 30)'/%3E%3Cellipse cx='30' cy='16' rx='8' ry='12' transform='rotate(144 30 30)'/%3E%3Cellipse cx='30' cy='16' rx='8' ry='12' transform='rotate(216 30 30)'/%3E%3Cellipse cx='30' cy='16' rx='8' ry='12' transform='rotate(288 30 30)'/%3E%3C/g%3E%3Ccircle cx='30' cy='30' r='5' fill='%23E4B363'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

@keyframes lm-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-6px) rotate(3deg); }
}

@keyframes lm-glow {
    0%, 100% { opacity: .5; transform: scale(1); }
    50%      { opacity: .75; transform: scale(1.06); }
}

/* ---------- Shape dividers ----------
   A full-width SVG with preserveAspectRatio="none" pinned to the section edge,
   so the rolling-hills silhouette stretches to any width without distorting. */
.lm-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    direction: ltr;
    pointer-events: none;
    z-index: 1;
}
.lm-shape-top { top: -1px; }
.lm-shape-bottom { bottom: -1px; }
.lm-shape[data-negative="false"].lm-shape-bottom,
.lm-shape[data-negative="true"].lm-shape-top {
    transform: rotate(180deg);
}
.lm-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 46px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Hero ---------- */
.lm-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 1.5rem 6rem;
}

.lm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--accent-detail) 16%, transparent), transparent 55%),
        radial-gradient(circle at 84% 82%, rgba(228,179,99,.14), transparent 50%);
    pointer-events: none;
}

/* ---------- Meadow FX background decorations (lamb, dove, flower, sprig, ripple, flame) ---------- */
.lm-fx-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.lm-fx-bg__item {
    position: absolute;
    height: auto;
    display: block;
    color: var(--meadow);
    opacity: .16;
}

.lm-fx-bg__item--dove   { color: var(--meadow-dark); opacity: .13; }
.lm-fx-bg__item--flower { color: var(--honey);       opacity: .34; }
.lm-fx-bg__item--sprig  { color: var(--meadow);      opacity: .3; }
.lm-fx-bg__item--lamb   { color: var(--meadow-dark); opacity: .1; }
.lm-fx-bg__item--flame  { color: var(--honey);       opacity: .22; }
.lm-fx-bg__item--ripple { color: var(--meadow-dark); opacity: .18; }

@media (max-width: 700px) {
    .lm-fx-bg__item--sprig {
        display: none;
    }
}

.lm-hero__grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.lm-hero__grid.lm-container { max-width: 1400px; }

/* ---------- Hero media (arched "chapel-window" portrait) ---------- */
.lm-hero__media {
    position: relative;
    width: min(320px, 100%);
    margin: 3.5rem auto 2rem;
}

.lm-hero__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px 26px 26px;
    overflow: hidden;
    background: var(--meadow-pale);
    border: 8px solid var(--white);
    box-shadow: 0 0 0 4px var(--honey), 0 0 45px rgba(228,179,99,.22), 0 22px 50px rgba(51,53,43,.16);
}

.lm-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lm-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
}

.lm-hero__badge {
    position: absolute;
    bottom: -6%;
    right: -8%;
    width: 104px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--honey-pale), 0 8px 20px rgba(51,53,43,.16);
    color: var(--meadow-dark);
    animation: lm-float 4.5s ease-in-out infinite;
    z-index: 2;
}
.lm-hero__badge svg { width: 62px; height: 52px; }

.lm-hero__sprout {
    position: absolute;
    left: -5%;
    bottom: 2%;
    width: 52px;
    height: auto;
    color: var(--meadow);
    opacity: .8;
    z-index: 2;
}

/* ---------- Hero content (text column) ---------- */
.lm-hero__content {
    position: relative;
    z-index: 3;
}

.lm-hero__eyebrow {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--meadow-dark);
    margin-bottom: .6rem;
}

.lm-hero__name {
    font-family: var(--ff-display);
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--ink);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.lm-hero__godparent {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    background: var(--honey-pale);
    border: 1px solid var(--honey-light);
    color: var(--ink);
    border-radius: var(--btn-radius);
    padding: .4rem 1.1rem;
    margin-bottom: 1.5rem;
}

.lm-hero__date-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .01em;
    color: var(--white);
    background: var(--meadow);
    border: 3px solid var(--meadow-light);
    border-radius: var(--btn-radius);
    padding: .6rem 1.2rem;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--accent-detail) 35%, transparent);
}

.lm-hero__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.25rem;
}

.lm-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--white);
    border: 1px solid var(--honey-pale);
    border-radius: var(--btn-radius);
    padding: .5rem 1.15rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(51,53,43,.08);
}

@media (max-width: 820px) {
    .lm-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .lm-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .lm-hero__meta { justify-content: center; }
    .lm-hero__media {
        width: min(260px, 74%);
        margin: 5rem auto 2.5rem;
    }
    .lm-hero__badge {
        width: 68px;
        height: 58px;
        bottom: -5%;
        right: -5%;
    }
    .lm-hero__badge svg { width: 42px; height: 34px; }
    .lm-hero__sprout { width: 38px; left: -3%; }
}

/* Floating topbar */
.lm-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}

@media (min-width: 601px) {
    .lm-topbar.scrolled {
        background: color-mix(in srgb, var(--cream) 92%, transparent);
        backdrop-filter: blur(10px);
    }
}

.lm-topbar__links {
    display: flex;
    gap: 1.25rem;
}
.lm-topbar__links a {
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--body);
    transition: color .2s;
}
.lm-topbar__links a:hover { color: var(--meadow-dark); text-decoration: none; }

.lm-topbar__toggle { display: none; }

/* Demo-only Basic/Standard switch + close + cart badge — shared look defined
   globally in layouts/theme.blade.php, positioned here at opposite bottom
   corners, at every screen width. */
.dpb-switch,
.dpb-fab {
    position: fixed;
    bottom: 1rem;
    z-index: 9999;
}
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

@media (max-width: 600px) {
    .lm-topbar { justify-content: flex-start; }
    .lm-topbar__toggle { order: -1; }

    .lm-topbar__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: 1.5px solid rgba(255,255,255,.4);
        border-radius: 50%;
        background: color-mix(in srgb, var(--meadow-dark) 60%, transparent);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s;
    }
    .lm-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .lm-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .lm-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .lm-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .lm-topbar__links {
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: color-mix(in srgb, var(--cream) 97%, transparent);
        border: 1px solid var(--meadow);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(51,53,43,.18);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .lm-topbar__links.is-open {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .lm-topbar__links a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
        color: var(--body);
        flex: initial;
        white-space: normal;
    }
    .lm-topbar__links a:hover { background: color-mix(in srgb, var(--accent-detail) 12%, transparent); color: var(--meadow-dark); }
}

/* ---------- Countdown ---------- */
.lm-countdown {
    position: relative;
    padding: 5rem 1.25rem 8rem;
    overflow: hidden;
}

.lm-audio {
    padding: 5rem 1.25rem 8rem;
}

.lm-countdown__inner {
    position: relative;
    z-index: 2;
}

.lm-countdown__intro {
    text-align: center;
    color: var(--body);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

.lm-countdown__photo-wrap {
    position: relative;
    max-width: 900px;
    margin: 2.5rem auto 0;
    aspect-ratio: 1143 / 502;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    overflow: hidden;
}

.lm-countdown__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, var(--meadow-pale) 0%, var(--honey-pale) 100%);
}

.lm-countdown__halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-detail) 50%, transparent) 0%, transparent 70%);
    animation: lm-glow 4s ease-in-out infinite;
}

.lm-countdown__timer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.lm-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,.9);
    border: 2px solid var(--meadow);
    padding: 38px 0 24px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(51,53,43,.12);
    min-width: 100px;
}

.lm-countdown__number {
    font-family: var(--ff-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--meadow-dark);
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.lm-countdown__label {
    font-family: var(--ff-body);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: .35rem;
}

/* ---------- Symbols of the Day (shared <x-baptism-symbols>) ---------- */
.lm-symbols {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
    color: var(--body);
}
.lm-symbols .bsym-icon {
    background: var(--white);
    border-color: var(--meadow-light);
    color: var(--meadow-dark);
    box-shadow: 0 8px 20px rgba(51,53,43,.1);
}
.lm-symbols .bsym-label {
    font-family: var(--ff-display);
    color: var(--ink);
}

/* ---------- The Godparents ---------- */
.lm-godparents {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
}

.lm-godparents__card {
    max-width: 480px;
    margin: 2rem auto 0;
    background: var(--white);
    border: 2px solid var(--meadow-light);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 40px rgba(51,53,43,.08);
}

.lm-godparents__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--honey-pale);
    border: 3px solid var(--honey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.lm-godparents__names {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .6rem;
}

.lm-godparents__note {
    font-size: .92rem;
    font-style: italic;
    color: var(--body);
}

/* ---------- Our Story / Gallery (generic <x-story-timeline> / <x-gallery-grid>) ---------- */
.lm-story   { padding: 5rem 1.25rem 8rem; text-align: center; }
.lm-gallery { padding: 5rem 1.25rem 8rem; text-align: center; }

/* ---------- Program / Order of Service ---------- */
.lm-program {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
}

.lm-timeline {
    margin-top: 1rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.lm-timeline__item {
    margin-bottom: 2rem;
}
.lm-timeline__item:last-child {
    margin-bottom: 0;
}

.lm-timeline__time {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .85rem;
    color: var(--meadow-dark);
    margin-bottom: .6rem;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.lm-timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--meadow);
    border: 3px solid var(--honey-pale);
    margin: 0 auto .85rem;
}

.lm-timeline__label {
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .98rem;
    color: var(--ink);
}

.lm-timeline__location {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    margin-top: .15rem;
}
.lm-timeline__location a { margin-left: .4em; opacity: .85; font-size: .9em; color: var(--meadow-dark); }

/* ---------- A Little Blessing (message / quote card) ---------- */
.lm-poem {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
    position: relative;
}

.lm-poem__card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--meadow-light);
    border-radius: var(--radius);
    padding: 3rem 2rem 2.25rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(51,53,43,.08);
}

.lm-poem__quote {
    width: 38px;
    height: 38px;
    margin: 0 auto 1rem;
    color: var(--meadow);
    opacity: .9;
}
.lm-poem__quote svg { width: 100%; height: 100%; }

.lm-poem__text {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.8;
    white-space: pre-line;
    color: var(--ink);
}

.lm-poem__mark {
    margin-top: 1.25rem;
    font-size: 1.4rem;
    opacity: .85;
}

/* ---------- Gallery upload / Guest Wall ---------- */
.lm-guest-wall { padding: 5rem 1.25rem 8rem; text-align: center; }
.lm-gallery-upload { padding: 5rem 1.25rem 8rem; text-align: center; }

.lm-gallery-upload .gu-form {
    max-width: 620px;
    padding: 0 1.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Dress Code / Good to Know ---------- */
.lm-dress-code { padding: 5rem 1.25rem 8rem; text-align: center; }
.lm-good-to-know { padding: 5rem 1.25rem 8rem; text-align: center; }

/* ---------- Closing ---------- */
.lm-closing {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.lm-closing p {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    opacity: .75;
    margin: 0;
}

/* ---------- The Church (Map) ---------- */
.lm-location { padding: 5rem 1.25rem 8rem; text-align: center; }

.lm-location__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 960px;
    margin: 1rem auto 0;
    text-align: left;
}

.lm-location__map iframe {
    width: 100%;
    height: 320px;
    border: 6px solid var(--white);
    display: block;
    border-radius: 20px;
    box-shadow: 0 0 0 3px var(--honey), 0 15px 40px rgba(51,53,43,.16);
}

.lm-location__icon {
    font-size: 2rem;
    margin-bottom: .6rem;
}

.lm-location__name {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .5rem;
}

.lm-location__address {
    color: var(--muted);
    margin-bottom: .35rem;
}

.lm-location__note {
    font-style: italic;
    color: var(--body);
    margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
    .lm-location__grid {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 480px;
    }
    .lm-location__map iframe { height: 260px; }
}

/* ---------- Keepsakes ---------- */
.lm-album { padding: 5rem 1.25rem; text-align: center; }
.lm-album__text { opacity: .75; margin-bottom: 2rem; }

/* ---------- RSVP ---------- */
.lm-rsvp {
    position: relative;
    padding: 5rem 1.25rem 8rem;
}
.lm-rsvp .rsvp-deadline {
    background: transparent;
    margin-bottom: 10px;
}
.lm-rsvp .lm-section-title,
.lm-rsvp .rsvp-layout-wrap {
    position: relative;
    z-index: 2;
}
.lm-rsvp::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 42px;
    mask-image: var(--lm-hill-shape);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    -webkit-mask-image: var(--lm-hill-shape);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    background-color: var(--meadow);
    pointer-events: none;
    z-index: 1;
}

.lm-alert--success {
    background: var(--honey-pale);
    color: var(--ink);
    border: 2px solid var(--honey);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.rsvp-layout-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--meadow-light);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(51,53,43,.12);
    padding: 3.5rem 2.5rem;
}

@media (max-width: 500px) {
    .rsvp-layout-wrap {
        padding: 2.5rem 1.25rem;
    }
}

.lm-rsvp .form__group label {
    display: block;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: .78rem;
    color: var(--meadow-dark);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.lm-rsvp .form__group input[type="text"],
.lm-rsvp .form__group input[type="email"],
.lm-rsvp .form__group input[type="tel"],
.lm-rsvp .form__group select,
.lm-rsvp .form__group textarea {
    width: 100%;
    padding: .95rem 1.25rem;
    border: 0;
    border-radius: 10px;
    font-family: var(--ff-body);
    font-weight: 400;
    font-size: .95rem;
    color: var(--ink);
    background-color: var(--cream);
    box-shadow: 0 2px 6px rgba(51,53,43,.06);
    transition: box-shadow .2s;
    outline: none;
}
.lm-rsvp .form__group .rsvp-stepper {
    background: var(--cream);
}

.lm-rsvp .form__group input[type="text"]:focus,
.lm-rsvp .form__group input[type="email"]:focus,
.lm-rsvp .form__group input[type="tel"]:focus,
.lm-rsvp .form__group select:focus,
.lm-rsvp .form__group textarea:focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-detail) 25%, transparent), 0 0 0 5px var(--meadow);
    background-color: var(--white);
}

.lm-rsvp .form__error {
    display: block;
    color: var(--honey-dark);
    font-size: .82rem;
    margin-top: .3rem;
}

.lm-btn {
    display: block;
    width: 100%;
    padding: .9rem 2rem;
    background: var(--btn-color);
    color: var(--white);
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .01em;
    border: 3px solid var(--btn-color-light);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--btn-color) 30%, transparent);
    margin-top: .5rem;
}

.lm-btn:hover {
    background: var(--btn-color-dark);
    border-color: var(--btn-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px color-mix(in srgb, var(--btn-color-dark) 40%, transparent);
    text-decoration: none;
}

.lm-location .lm-btn,
.lm-album .lm-btn { display: inline-block; width: auto; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.lm-footer {
    background: var(--meadow);
    color: rgba(255,255,255,.9);
    text-align: center;
    padding: 2.5rem 1.25rem;
    font-size: .9rem;
}

.lm-footer p { margin-bottom: .35rem; }
.lm-footer a { color: var(--honey-light); }

.lm-footer__flourish {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1rem;
    color: rgba(255,255,255,.55);
}
.lm-footer__flourish svg { display: block; }
.lm-footer__flourish svg:nth-child(1),
.lm-footer__flourish svg:nth-child(3) { width: 22px; height: 22px; }
.lm-footer__flourish svg:nth-child(2) { width: 54px; height: 44px; color: rgba(255,255,255,.7); }

.lm-footer__message {
    max-width: 24rem;
    margin: 0 auto 1rem;
    font-family: var(--ff-display);
    font-style: italic;
    color: rgba(255,255,255,.92);
}

/* Not .lm-btn — its background is the same meadow as the footer; a solid white
   pill reads cleanly on the colored ground. */
.lm-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    padding: .7rem 1.5rem;
    background: #fff;
    color: var(--ink) !important;
    border-radius: 999px;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 4px 15px rgba(51,53,43,.25);
    transition: transform .15s, box-shadow .15s;
}
.lm-footer__cal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(51,53,43,.3);
    text-decoration: none;
}
.lm-footer__cal-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    .lm-countdown__timer {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .lm-countdown__timer::-webkit-scrollbar { display: none; }
    .lm-countdown__unit {
        padding: .9rem 1rem;
        min-width: 58px;
        flex-shrink: 0;
    }
    .lm-countdown__number { font-size: 2rem; }

    .lm-poem__card { padding: 2.5rem 1.25rem 1.75rem; }
}

/* Standardized horizontal gutter across every content section on mobile
   (padding-x: 1rem), matching the convention used across the app's other
   themes. Appended at the very end so equal-specificity source order
   guarantees this wins over each section's own base padding rule above. */
@media (max-width: 600px) {
.lm-hero,
.lm-countdown,
.lm-symbols,
.lm-godparents,
.lm-program,
.lm-poem,
.lm-story,
.lm-gallery,
.lm-guest-wall,
.lm-gallery-upload,
.lm-dress-code,
.lm-good-to-know,
.lm-closing,
.lm-location,
.lm-album,
.lm-rsvp,
.lm-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
