/* ================================================
   Royal Birthday Theme – Digital Invitation
   Crown motif, pastel candy palette, playful rounded type.
   ================================================ */

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

:root {
    --cream:        #FCF9F3;
    --white:        #ffffff;
    --navy:         #12265A;
    --body:         #5B6472;
    --muted:        #8891A0;
    --sky:          #45B3DF;
    --sky-light:    #88D4F2;
    --sky-pale:     #C7DFE5;
    --pink:         #FE9ACC;
    --pink-light:   #FEB9CC;
    --mint:         #8DC8AE;
    --mint-pale:    #C3E1DB;
    --gold:         #FFD166;
    --gold-pale:    #FCEE9C;
    --purple:       #8B80F9;
    --orange:       #F06633;
    --accent-color: var(--pink);
    --radius:       16px;
    --btn-radius:   999px;
    --ff-display:   'Balsamiq Sans', 'Comic Sans MS', cursive, sans-serif;
    --ff-body:      'Quicksand', sans-serif;

    /* Same wave curve as .br-shape-fill, baked into a background-image so it
       can auto-alternate per section via nth-child without repeating markup. */
    --br-wave-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C83,90 167,10 250,50 C333,90 417,10 500,50 C583,90 667,10 750,50 C833,90 917,10 1000,50 L1000,100 L0,100 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    --br-wave-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C83,90 167,10 250,50 C333,90 417,10 500,50 C583,90 667,10 750,50 C833,90 917,10 1000,50 L1000,100 L0,100 Z' fill='%23FCF9F3'/%3E%3C/svg%3E");
    --br-wave-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C83,90 167,10 250,50 C333,90 417,10 500,50 C583,90 667,10 750,50 C833,90 917,10 1000,50 L1000,100 L0,100 Z' fill='%2345B3DF'/%3E%3C/svg%3E");
    --br-label-bg: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='73' height='36' %3E%3Cimage xlink:href='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA3MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNi41IiBjeT0iMTcuNSIgcj0iNi41IiBmaWxsPSIjRjA3N0FBIi8+CjxjaXJjbGUgY3g9IjM2LjUiIGN5PSIxNy41IiByPSI2LjUiIGZpbGw9IiNENkUwNkQiLz4KPGNpcmNsZSBjeD0iNjYuNSIgY3k9IjE3LjUiIHI9IjYuNSIgZmlsbD0iI0EwQzRFNyIvPgo8L3N2Zz4K' height='36' width='73' preserveAspectRatio='xMinYMin meet'/%3E%3C/svg%3E");

    /* Palette read by the shared <x-checkerboard-gallery-grid> lightbox engine. */
    --cbg-ink:      var(--navy);
    --cbg-accent:   var(--navy);
    --cbg-backdrop: #0A0A0A;
}

html { scroll-behavior: smooth; }

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

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

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

.br-alt-sections > * {
    position: relative;
    background: var(--cream);
}
.br-alt-sections > *:nth-child(even) {
    background: var(--white);
}

/* Wave divider at every section seam, colored to match whichever section
   comes next — computed the same way the alternation above is, so hidden or
   missing sections don't leave a divider pointing at the wrong color. */
.br-poem::after,
.br-alt-sections > *:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 46px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}
.br-alt-sections > *:nth-child(odd):not(:last-child)::after {
    background-image: var(--br-wave-white);
}
.br-poem::after,
.br-alt-sections > *:nth-child(even):not(:last-child)::after {
    background-image: var(--br-wave-cream);
}

.br-section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--navy);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}
.br-section-title::after {
    content: '';
    position: absolute;
    background: var(--br-label-bg) no-repeat;
    top: -30px;
    left: 50%;
    width: 80px;
    height: 25px;
    transform: translateX(-50%);
}

@keyframes br-wobble {
    0%, 100% { transform: rotate(-4deg); }
    50%      { transform: rotate(4deg); }
}

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

/* floating confetti dots, two tones */
.br-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 3px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.30) 2px, transparent 2px);
    background-size: 70px 70px, 34px 34px;
    background-position: 0 0, 18px 18px;
    pointer-events: none;
}

/* confetti ribbon overlay artwork */
.br-rsvp::before,
.br-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('bg-home-royal.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ---------- Shape dividers (Elementor "waves" style, replicated) ----------
   Same technique Elementor's shape_divider_bottom/top uses: a full-width SVG
   with preserveAspectRatio="none" pinned to the section edge, so the curve
   stretches to any width without distorting its height. */
.br-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    direction: ltr;
    pointer-events: none;
    z-index: 1;
}
.br-shape-top { top: -1px; }
.br-shape-bottom { bottom: -1px; }
.br-shape[data-negative="false"].br-shape-bottom,
.br-shape[data-negative="true"].br-shape-top {
    transform: rotate(180deg);
}
.br-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.br-shape-fill {
    transform-origin: center;
}

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

/* ---------- Hero media (framed photo, no slider) ---------- */
.br-hero__media {
    position: relative;
    width: min(640px, 100%);
    margin: 0 auto;
}

.br-hero__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 694 / 526;
    background: var(--sky-pale);
}

.br-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* cream mat with a blob-shaped cutout, sits on top of .br-hero__img so the
   photo shows only through the window instead of a CSS border-radius blob */
.br-hero__frame-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.br-hero__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.br-hero__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(18,38,90,.25);
    color: var(--gold);
    animation: br-wobble 3.5s ease-in-out infinite;
    z-index: 2;
}
.br-hero__badge svg { width: 32px; height: 24px; }

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

.br-hero__eyebrow {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    opacity: .8;
    margin-bottom: .5rem;
}

.br-hero__name {
    font-family: 'Balsamiq Sans', var(--ff-display);
    font-size: 90px;
    font-weight: 600;
    color: var(--pink-light);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.br-hero__date-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--white);
    background: var(--sky);
    border: 3px solid var(--sky-light);
    border-radius: var(--btn-radius);
    padding: .65rem 1.25rem;
    box-shadow: 0 4px 15px rgba(69,179,223,.35);
}

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

.br-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--btn-radius);
    padding: .5rem 1.15rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--navy);
    box-shadow: 0 2px 8px rgba(18,38,90,.1);
}

@media (max-width: 820px) {
    .br-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .br-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .br-hero__meta { justify-content: center; }
    .br-hero__name { font-size: clamp(2.2rem, 10vw, 90px); }
}

/* Floating topbar */
.br-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;
}

/* Desktop only (mobile hides these links behind the hamburger toggle, which
   already has its own self-contained dark-blur backdrop — the bar itself
   stays transparent unconditionally there). Give the bar a solid/blurred
   background past the scroll threshold (.scrolled toggled by data-topbar in
   theme.js) — light (not dark) since .br-topbar__links a is mid-dark
   var(--body) text on this theme's light cream page. */
@media (min-width: 601px) {
    .br-topbar.scrolled {
        background: color-mix(in srgb, var(--cream) 92%, transparent);
        backdrop-filter: blur(10px);
    }
}

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

.br-topbar__toggle { display: none; }

/* Demo-only Basic/Standard switch + close + cart badge — shared look defined
   globally in layouts/theme.blade.php, just 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;
}

/* Mobile: collapse the link row behind a bordered hamburger button, opening a
   dropdown panel with the same links stacked. Always the same dark-translucent
   treatment. .br-topbar is space-between on desktop — pin the toggle to the
   left instead on mobile, matching every other theme. */
@media (max-width: 600px) {
    .br-topbar { justify-content: flex-start; }
    .br-topbar__toggle { order: -1; }

    .br-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,.25);
        border-radius: 50%;
        background: rgba(18,38,90,.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s;
    }
    .br-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .br-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .br-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .br-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .br-topbar__links {
        display: flex;
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: rgba(255,255,255,.97);
        border: 1px solid var(--pink);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(18,38,90,.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .br-topbar__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .br-topbar__links a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
        color: var(--navy);
    }
    .br-topbar__links a:hover { background: rgba(254,154,204,.15); color: var(--pink); }

}

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

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

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

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

/* photo + cream mat with a blob-shaped window, sized snugly around just the
   timer — same as the original template, where the heading/intro above sit
   on the plain section background rather than inside the photo band. */
.br-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;
}

/* Locked to the overlay artwork's own aspect ratio (like .br-hero__frame) so
   object-fit: cover below never has to crop it — a mismatched box would crop
   the thin cream border away. */
.br-countdown__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.br-countdown__bg-img,
.br-countdown__bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.br-countdown__bg-overlay {
    z-index: 1;
}

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

.br-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--pink-light);
    padding: 40px 0px 25px 0px;
    border-radius: 30px 30px 30px 30px;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

.br-countdown__number {
    font-family: var(--ff-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.br-countdown__label {
    font-family: var(--ff-display);
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .35rem;
}

/* ---------- Program / Timeline ---------- */
.br-program {
    padding: 5rem 1.25rem 8rem;
}

.br-timeline { margin-top: 1rem; }

.br-timeline__item {
    display: grid;
    grid-template-columns: 80px 20px 1fr;
    gap: 0 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.br-timeline__time {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .88rem;
    color: var(--pink);
    text-align: right;
    padding-top: .15rem;
}

.br-timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--sky);
    margin-top: .25rem;
    position: relative;
}

.br-timeline__dot::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--sky-pale);
    height: calc(100% + 1.5rem + 14px);
}

.br-timeline__item:last-child .br-timeline__dot::after { display: none; }

.br-timeline__label {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy);
}

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

/* ---------- Message / Quote card ---------- */
.br-poem {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
    background: var(--white );
    position: relative;
}

.br-poem__card {
    position: relative;
    background: var(--white);
    border: 3px dashed var(--pink-light);
    border-radius: var(--radius);
    padding: 3rem 2rem 2.25rem;
    max-width: 640px;
    margin: 0 auto;
}

.br-poem__quote {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--pink);
    opacity: .8;
}
.br-poem__quote svg { width: 100%; height: 100%; }

.br-poem__text {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    line-height: 1.8;
    white-space: pre-line;
    color: var(--navy);
}

.br-poem__crown {
    margin-top: 1.25rem;
    font-size: 1.4rem;
    opacity: .7;
}

/* ---------- Our Story ---------- */
.br-story {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
}

.br-story__intro {
    max-width: 34rem;
    margin: 0 auto 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Zigzag timeline: a centered spine with items alternating left/right of it. */
.br-story__timeline {
    position: relative;
    max-width: 780px;
    margin: 3rem auto 0;
    text-align: left;
}

.br-story__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        var(--accent-color) 0,
        var(--accent-color) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateX(-50%);
}

.br-story__item {
    position: relative;
    width: 50%;
    padding-bottom: 3.5rem;
}

.br-story__item:last-child {
    padding-bottom: 0;
}

.br-story__item--left {
    padding-right: 3rem;
    text-align: right;
}

.br-story__item--right {
    width: 50%;
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

/* dot sits on the spine, i.e. on the shared edge between the two columns */
.br-story__dot {
    position: absolute;
    top: .3rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sky);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent-color);
    z-index: 2;
}

.br-story__item--left .br-story__dot { right: -9px; }
.br-story__item--right .br-story__dot { left: -9px; }

/* Enlarged photo, framed with the decorative corner overlay artwork. */
.br-story__photo {
    position: relative;
    width: min(100%, 260px);
    aspect-ratio: 675 / 697;
    margin-bottom: 1rem;
    display: inline-block;
}

.br-story__item--left .br-story__photo { margin-left: auto; }
.br-story__item--right .br-story__photo { margin-right: auto; }

.br-story__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.br-story__photo-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.br-story__photo-caption {
    position: absolute;
    left: .6rem;
    right: .6rem;
    bottom: .6rem;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    background: rgba(18,38,90,.6);
    border-radius: var(--btn-radius);
    padding: .3rem .5rem;
    z-index: 2;
}

.br-story__period {
    display: block;
    font-family: var(--ff-display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: .25rem;
}

.br-story__title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .35rem;
}

.br-story__desc {
    font-size: .92rem;
    line-height: 1.65;
    color: var(--body);
}

@media (max-width: 720px) {
    .br-story__timeline::before {
        left: 1.4rem;
        transform: none;
    }

    .br-story__item,
    .br-story__item--right {
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .br-story__item--left .br-story__dot,
    .br-story__item--right .br-story__dot {
        left: 1.4rem;
        right: auto;
        transform: translateX(-50%);
    }

    .br-story__item--left .br-story__photo,
    .br-story__item--right .br-story__photo {
        margin-left: 0;
        margin-right: auto;
    }
}

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

.br-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 ---------- */
.br-dress-code { padding: 5rem 1.25rem 8rem; text-align: center; }
.br-good-to-know { padding: 5rem 1.25rem 8rem; text-align: center; }

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

.br-closing p {
    font-family: var(--ff-display);
    font-size: .95rem;
    color: var(--navy);
    opacity: .6;
    margin: 0;
}

/* ---------- Map ---------- */
.br-location { padding: 5rem 1.25rem 8rem; }

.br-location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

@media (max-width: 820px) {
    .br-location__grid {
        grid-template-columns: 1fr;
    }
}

.br-location__map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    /* same asymmetric corner radius as the original template's photo */
    border-radius: 100px 30px 100px 30px;
    box-shadow: 0 12px 30px rgba(18,38,90,.18);
}

.br-location__info {
    text-align: center;
}

.br-location__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--pink-light);
    border: 3px solid var(--pink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.br-location__name {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}

.br-location__address {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ---------- Album ---------- */
.br-album { padding: 5rem 1.25rem; text-align: center; }
.br-album__text { opacity: .7; margin-bottom: 2rem; }

/* ---------- RSVP ---------- */
.br-rsvp {
    position: relative;
    padding: 5rem 1.25rem 8rem;
}
.br-rsvp .rsvp-deadline {
    background: transparent;
    margin-bottom: 10px;
}
/* RSVP is pinned rather than joining the alternation (see comment above), so
   it's skipped by the generic :not(:last-child) rule — give it its own
   divider into the footer explicitly. */
.br-rsvp::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 46px;
    background-image: var(--br-wave-sky);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.br-rsvp__subtitle {
    text-align: center;
    color: var(--navy);
    opacity: .75;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.br-alert--success {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--mint);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* Yellow card matching the original template's RSVP column (data-id="89180a5"):
   #FFDD98 background, the same asymmetric corner radius used on the hero
   frame and map, and a soft drop shadow. */
.rsvp-layout-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: #FFDD98;
    border-radius: 100px 30px 100px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    padding: 3.5rem 2.5rem;
}

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

/* Scoped under the real markup (.form__group, not a theme-prefixed class the
   shared rsvp-form component doesn't actually render) and matching the shared
   component's own input[type=...] selectors so this reliably outranks it. */
.br-rsvp .form__group label {
    display: block;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .82rem;
    color: var(--navy);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.br-rsvp .form__group input[type="text"],
.br-rsvp .form__group input[type="email"],
.br-rsvp .form__group input[type="tel"],
.br-rsvp .form__group select,
.br-rsvp .form__group textarea {
    width: 100%;
    padding: .95rem 1.25rem;
    border: 0;
    border-radius: 8px;
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: .95rem;
    color: var(--navy);
    background-color: var(--white);
    box-shadow: 0 2px 6px rgba(18,38,90,.08);
    transition: box-shadow .2s;
    outline: none;
}
.br-rsvp .form__group .rsvp-stepper {
    background: var(--white);
}

.br-rsvp .form__group input[type="text"]:focus,
.br-rsvp .form__group input[type="email"]:focus,
.br-rsvp .form__group input[type="tel"]:focus,
.br-rsvp .form__group select:focus,
.br-rsvp .form__group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 5px var(--sky);
    background-color: var(--white);
}

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

.br-btn {
    display: block;
    width: 100%;
    padding: .9rem 2rem;
    background: var(--sky-light);
    color: var(--white);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.05rem;
    border: 3px solid var(--sky);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    box-shadow: 0 4px 15px rgba(69,179,223,.35);
    letter-spacing: .02em;
    margin-top: .5rem;
}

.br-btn:hover {
    background: var(--pink-light);
    border-color: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(254,154,204,.4);
    text-decoration: none;
}

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

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

.br-footer p { margin-bottom: .35rem; }
.br-footer a { color: var(--gold); }
.br-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    max-width: 13rem;
    margin: 0 auto 1rem;
    color: rgba(255,255,255,.55);
}
.br-footer__ornament-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, currentColor); }
.br-footer__ornament-line:last-child { background: linear-gradient(to left, transparent, currentColor); }
.br-footer__ornament-mark { flex-shrink: 0; font-size: 1rem; line-height: 1; }
.br-footer__signoff { max-width: 24rem; margin: 0 auto 1.5rem; opacity: .8; }
/* Not .br-btn — sky-light on the sky footer is too low-contrast; a white pill reads. */
.br-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: .7rem 1.5rem;
    background: #fff;
    color: #1f2937 !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.22);
    transition: transform .15s, box-shadow .15s;
}
.br-footer__cal:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.3); text-decoration: none; }
.br-footer__cal-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    /* nowrap + scroll fallback guarantees all 4 units stay on one row down to
       360px, instead of flex-wrap letting them fall to a 2x2 block once
       their min-width no longer fits. */
    .br-countdown__timer {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .br-countdown__timer::-webkit-scrollbar { display: none; }
    .br-countdown__unit {
        padding: .9rem 1rem;
        min-width: 58px;
        flex-shrink: 0;
    }
    .br-countdown__number { font-size: 2rem; }

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

/* Standardized horizontal gutter across every content section on mobile
   (padding-x: 1rem), matching wedding-romantic-bloom's convention — several
   sections here otherwise use a wider desktop-only gutter (1.25rem/1.5rem)
   that just eats into already-limited mobile width. Appended at the very end
   of the file (not folded into an earlier @media block) so equal-specificity
   source order guarantees this wins over each section's own base padding
   rule, which is declared later in the file than this file's other,
   topbar-only 600px media query. */
@media (max-width: 600px) {
.br-hero,
.br-countdown,
.br-program,
.br-poem,
.br-story,
.br-gallery,
.br-guest-wall,
.br-gallery-upload,
.br-dress-code,
.br-good-to-know,
.br-closing,
.br-location,
.br-album,
.br-rsvp,
.br-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
