/* ================================================
   Wedding Coastal — Standard Wedding Theme
   Palette: white · sand · sea-glass teal · deep teal
   Fonts:   Satisfy (headings) + Source Sans 3 (body/UI)
   Style:   Serene seaside — flowing script, wave motifs, a full-bleed hero
            with a tucked corner polaroid, a sea-glass envelope intro.
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* --accent is the single recolourable knob (config/themes.php colors: 'accent',
       injected as :root{--accent} by index.blade.php). White/sand/deep-teal are
       fixed; everything sea-glass derives from --accent. */
    --accent:        #6fa8a8;
    --accent-color:  var(--accent);
    --cb-accent-dark: color-mix(in srgb, var(--accent) 62%, #10302e);
    --cb-deep:       #326767;

    --cb-white:  #ffffff;
    --cb-sand:   #f8f6f3;
    --cb-ink:    #555555;
    --cb-ink-dk: #333333;
    --cb-muted:  #8fa3a3;
    --cb-line:   color-mix(in srgb, var(--accent) 25%, transparent);
    --cb-line-soft: color-mix(in srgb, var(--accent) 12%, transparent);

    --radius:      4px;
    --btn-radius:  2px;

    --ff-script: 'Satisfy', 'Segoe Script', 'Brush Script MT', cursive;
    --ff-body:   'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    --cb-shadow:    0 4px 32px rgba(20, 60, 55, .08), 0 0 0 1px rgba(20, 60, 55, .04);
    --cb-shadow-sm: 0 2px 16px rgba(20, 60, 55, .06);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 300;
    color: var(--cb-ink);
    background: var(--cb-white);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.cb-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--cb-accent-dark); }

.cb-page { overflow-x: hidden; }

/* ── Containers ─────────────────────────────── */
.cb-container     { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.cb-container--sm { max-width: 640px; }

/* ── Alternating white / sand sections ──────── */
.cb-alt-sections > * { background: var(--cb-white); }
.cb-alt-sections > *:nth-child(even) { background: var(--cb-sand); }

/* 2-class specificity so section padding always beats a shared component's own
   base padding (pushed into <head> after this stylesheet). */
.cb-alt-sections .cb-countdown,
.cb-alt-sections .cb-audio,
.cb-alt-sections .cb-story,
.cb-alt-sections .cb-gallery,
.cb-alt-sections .cb-venue,
.cb-alt-sections .cb-program,
.cb-alt-sections .cb-dress-code,
.cb-alt-sections .cb-good-to-know,
.cb-alt-sections .cb-accommodation,
.cb-alt-sections .cb-gallery-upload,
.cb-alt-sections .cb-guest-wall,
.cb-alt-sections .cb-album,
.cb-alt-sections .cb-rsvp {
    padding: 4rem 0;
    text-align: center;
}
.cb-alt-sections .cb-closing { padding: 3rem 0 1rem; text-align: center; }

/* ── Shared helpers ─────────────────────────── */
.cb-eyebrow {
    font-family: var(--ff-body);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
    margin-bottom: .4rem;
}

.cb-section-title {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.2;
    color: var(--accent);
    text-align: center;
}

.cb-title-orn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.1rem auto 1.9rem;
    color: var(--accent);
}
.cb-title-orn__line { width: 48px; height: 1px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.cb-title-orn__leaf { flex-shrink: 0; }

/* line — dot — line rule, reused in the envelope / hero / closing / footer */
.cb-rule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 6rem;
    margin: 1rem auto;
}
.cb-rule > span { flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.cb-rule > i { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cb-rule--light > span { background: rgba(255, 255, 255, .45); }
.cb-rule--light > i { background: rgba(255, 255, 255, .85); }

.cb-btn {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .95rem 2.5rem;
    border: none;
    border-radius: var(--btn-radius);
    background: var(--accent);
    color: #ffffff !important;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}
.cb-btn:hover { background: var(--cb-accent-dark); }
.cb-btn--ghost {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.cb-btn--ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.cb-btn--light {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #ffffff !important;
}
.cb-btn--light:hover { background: rgba(255, 255, 255, .2); }

@keyframes cb-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cb-shimmer {
    0%, 100% { opacity: .4; }
    50%      { opacity: 1; }
}

/* ================================================
   ENVELOPE INTRO (sea glass)
   ================================================ */
.cb-envelope {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6vh 6vw;
    background: linear-gradient(160deg, #e0d4c4 0%, #c8ddd6 60%, #b8d2c8 100%);
    cursor: pointer;
    transition: opacity .8s ease .5s, visibility .8s ease .5s;
}
.cb-has-envelope .cb-envelope { display: flex; }
.cb-envelope.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.cb-envelope__wave {
    width: 90px;
    height: 16px;
    color: var(--accent);
    opacity: .5;
    margin-bottom: 1.5rem;
}

.cb-envelope__stage {
    width: min(440px, 88vw);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: cb-rise .8s ease both;
}

.cb-envelope__pocket {
    position: relative;
    width: 100%;
    aspect-ratio: 100 / 65;
    perspective: 1200px;
}

.cb-envelope__front {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 4px 4px 6px 6px;
    background: linear-gradient(170deg, #b8d4c8 0%, #a8c8bc 100%);
    border: 1.5px solid rgba(143, 163, 163, .5);
    box-shadow: 0 14px 44px rgba(20, 60, 55, .16), 0 4px 12px rgba(20, 60, 55, .09);
    overflow: hidden;
}
.cb-envelope__front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #cce4dc 0%, #bcd8d0 100%);
    clip-path: polygon(0% 0%, 0% 100%, 50% 55%);
}
.cb-envelope__front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, #cce4dc 0%, #bcd8d0 100%);
    clip-path: polygon(100% 0%, 100% 100%, 50% 55%);
}

.cb-envelope__letter {
    position: absolute;
    inset: 4px;
    z-index: 2;
    border-radius: 3px;
    background: linear-gradient(160deg, #ffffff 0%, #f5fbf9 100%);
    border: 1px solid rgba(143, 163, 163, .4);
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .35rem;
}
.cb-envelope__kicker {
    font-family: var(--ff-script);
    font-size: 1rem;
    font-style: italic;
    color: var(--accent);
}
.cb-envelope__names {
    font-family: var(--ff-script);
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--cb-deep);
}
.cb-envelope__letter .cb-rule { width: 4.5rem; margin: .1rem auto; opacity: .6; }
.cb-envelope__line {
    font-family: var(--ff-body);
    font-size: .52rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cb-muted);
}

.cb-envelope__flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    z-index: 4;
    background: linear-gradient(175deg, #b4cec8 0%, #a6c2bc 100%);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
    transform-origin: top;
    transition: transform 1.4s cubic-bezier(.3, 0, .2, 1);
    filter: drop-shadow(0 3px 6px rgba(20, 60, 55, .16));
    backface-visibility: hidden;
}
.cb-envelope.is-open .cb-envelope__flap { transform: rotateX(-172deg); }

.cb-envelope__seal {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: var(--cb-deep);
    filter: drop-shadow(0 6px 14px rgba(20, 45, 45, .3));
    transition: opacity .45s ease, transform .8s ease;
}
.cb-envelope.is-open .cb-envelope__seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6);
}

.cb-envelope__prompt {
    font-family: var(--ff-body);
    font-size: .7rem;
    letter-spacing: .3em;
    color: var(--cb-muted);
    animation: cb-shimmer 2.5s ease-in-out infinite;
}
.cb-envelope__hint {
    font-family: var(--ff-body);
    font-size: .55rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cb-muted);
}

/* ================================================
   FLOATING TOPBAR
   ================================================ */
.cb-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1.5rem;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.cb-topbar.scrolled {
    background: rgba(253, 251, 248, .94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--cb-line-soft);
}
.cb-topbar__brand {
    font-family: var(--ff-script);
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s ease, text-shadow .3s ease;
}
.cb-topbar.scrolled .cb-topbar__brand { color: var(--accent); text-shadow: none; }

.cb-topbar__links { display: flex; gap: .1rem; }
.cb-topbar__links a {
    position: relative;
    font-family: var(--ff-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
    padding: .3rem .7rem;
    transition: color .3s ease, text-shadow .3s ease;
}
.cb-topbar.scrolled .cb-topbar__links a { color: var(--cb-ink); text-shadow: none; }
.cb-topbar__links a::after {
    content: '';
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: .1rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform .28s ease;
}
.cb-topbar__links a:hover::after { transform: scaleX(1); }
.cb-topbar__toggle { display: none; }

/* Demo Basic/Standard switch + fabs — shared look, pinned to bottom corners. */
.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;
}

/* ================================================
   HERO (full-bleed photo, pattern B)
   ================================================ */
.cb-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #1a3c37;
}
.cb-hero__flat {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, #3a6560 0%, #1a3c37 100%);
}

.cb-hero__polaroid {
    position: absolute;
    bottom: 3.5rem;
    left: 3.5rem;
    z-index: 3;
    margin: 0;
    background: #fff;
    padding: 8px 8px 26px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .12);
    transform: rotate(-2deg);
}
.cb-hero__polaroid img {
    width: 148px;
    height: 200px;
    object-fit: cover;
    object-position: center top;
}
@media (max-width: 1024px) {
    .cb-hero__polaroid { display: none; }
}

.cb-hero__content {
    position: relative;
    z-index: 4;
    max-width: 40rem;
    padding: 6.5rem 1.5rem;
}
.cb-hero__wave {
    display: block;
    margin: 0 auto 1.75rem;
    opacity: .8;
}
.cb-hero__eyebrow {
    font-family: var(--ff-body);
    font-size: .74rem;
    font-weight: 300;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 1rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.cb-hero__names {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .3);
}
.cb-hero__amp { opacity: .85; }
.cb-hero__date {
    margin-top: .3rem;
    font-family: var(--ff-body);
    font-size: .85rem;
    font-weight: 300;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.cb-hero__venue {
    margin-top: .5rem;
    font-family: var(--ff-body);
    font-size: .82rem;
    font-weight: 300;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .8);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* Wave seam at the hero foot */
.cb-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}
.cb-wave svg { display: block; width: 100%; height: 46px; }

/* ================================================
   COUNTDOWN (grid of cards)
   ================================================ */
.cb-countdown__timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 30rem;
    margin: 0 auto;
}
.cb-countdown__unit {
    padding: 1.5rem .5rem;
    background: var(--cb-white);
    border-radius: var(--radius);
    box-shadow: 0 2px 20px rgba(20, 60, 55, .06), 0 0 0 1px rgba(20, 60, 55, .04);
}
.cb-countdown__number {
    display: block;
    font-family: var(--ff-script);
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.cb-countdown__label {
    display: block;
    margin-top: .5rem;
    font-family: var(--ff-body);
    font-size: .6rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 65%, #666);
}

/* ── Audio player ──────────────────────────── */
.cb-audio .audio-player {
    max-width: 30rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--cb-white);
    box-shadow: var(--cb-shadow);
}

/* ================================================
   OUR STORY (custom — framed card + snapshot row)
   ================================================ */
.cb-story__card {
    background: var(--cb-white);
    border-radius: var(--radius);
    box-shadow: var(--cb-shadow);
    padding: 2.5rem 2.75rem;
    text-align: left;
}
.cb-story__text {
    font-family: var(--ff-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: .01em;
    color: var(--cb-ink);
    white-space: pre-line;
}
.cb-story__snaps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2rem;
}
.cb-snap {
    margin: 0;
    width: 150px;
    background: #fff;
    padding: 7px 7px 22px;
    box-shadow: 0 8px 24px rgba(20, 60, 55, .12);
}
.cb-snap:nth-child(odd) { transform: rotate(-3deg); }
.cb-snap:nth-child(even) { transform: rotate(2.5deg); }
.cb-snap img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.cb-snap figcaption {
    margin-top: .5rem;
    font-family: var(--ff-script);
    font-size: 1.05rem;
    color: var(--cb-muted);
    text-align: center;
}

/* ── Photos (shared <x-gallery-grid> reskin) ── */
.cb-gallery .gg-grid { gap: 1rem; }
.cb-gallery .gg-item-wrap {
    background: #fff;
    padding: 6px;
    border-radius: var(--radius);
    box-shadow: var(--cb-shadow-sm);
}
.cb-gallery .gg-item { inset: 6px; border-radius: 2px; }

/* ── Venue (custom) ─────────────────────────── */
.cb-venue__places {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.75rem;
}
.cb-venue__place {
    flex: 1 1 220px;
    max-width: 300px;
    padding: 1.5rem 1.25rem;
    background: var(--cb-white);
    border-radius: var(--radius);
    box-shadow: var(--cb-shadow-sm);
}
.cb-venue__index {
    font-family: var(--ff-body);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}
.cb-venue__name {
    margin-top: .3rem;
    font-family: var(--ff-script);
    font-size: 1.5rem;
    color: var(--cb-deep);
}
.cb-venue__address {
    font-family: var(--ff-body);
    font-weight: 300;
    font-size: .85rem;
    color: var(--cb-muted);
    margin-bottom: 1.75rem;
}
.cb-venue__map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--cb-shadow-sm);
    margin: 0 auto 1.5rem;
}
.cb-venue__map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ================================================
   TIMELINE (custom — haloed dot + left-bar cards)
   ================================================ */
.cb-timeline {
    position: relative;
    max-width: 32rem;
    margin: 0 auto;
    padding-left: 1.5rem;
    text-align: left;
}
.cb-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: .5rem;
    bottom: .5rem;
    width: 1px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 45%, transparent) 12%, color-mix(in srgb, var(--accent) 45%, transparent) 88%, transparent);
}
.cb-timeline__row {
    position: relative;
    display: flex;
    gap: 1.5rem;
    padding-bottom: 2rem;
}
.cb-timeline__row:last-child { padding-bottom: 0; }
.cb-timeline__dot {
    position: absolute;
    left: -1.5rem;
    top: 1.35rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
    transform: translateX(-50%);
}
.cb-timeline__card {
    flex: 1;
    min-width: 0;
    padding: 1.15rem 1.4rem;
    background: var(--cb-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    box-shadow: 0 2px 16px rgba(20, 60, 55, .05);
}
.cb-timeline__meta {
    font-family: var(--ff-body);
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 70%, #666);
    margin-bottom: .25rem;
}
.cb-timeline__meta span { margin-right: .5em; }
.cb-timeline__title {
    font-family: var(--ff-script);
    font-size: 1.3rem;
    line-height: 1.25;
    color: var(--cb-deep);
}
.cb-timeline__loc {
    margin-top: .2rem;
    font-family: var(--ff-body);
    font-size: .85rem;
    font-weight: 300;
    color: #777;
}
.cb-timeline__dir {
    display: inline-block;
    margin-top: .4rem;
    font-family: var(--ff-body);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Dress Code / Good to Know / Accommodation ── */
.cb-alt-sections .cb-dress-code .cb-container { max-width: 34rem; }
.cb-dress-code .dc-note { font-family: var(--ff-body); }

.cb-good-to-know .gtk-card,
.cb-accommodation .accom-card {
    background: var(--cb-white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--cb-shadow-sm);
    padding: 1.6rem 1.4rem;
}
.cb-good-to-know .gtk-card__icon,
.cb-accommodation .accom-card__icon { color: var(--accent); }
.cb-good-to-know .gtk-card__title,
.cb-accommodation .accom-card__name {
    font-family: var(--ff-script);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cb-deep);
}
.cb-accommodation .accom-card__link { color: var(--accent); }

/* ── Guest Wall (quote carousel) ─────────────── */
.cb-quotes__swiper { max-width: 40rem; margin: 0 auto; }
.cb-quotes__slide {
    padding: 1rem 1.5rem 2.75rem;
    text-align: center;
    box-sizing: border-box;
}
.cb-quotes__text {
    font-family: var(--ff-script);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.5;
    color: var(--cb-deep);
}
.cb-quotes__text::before {
    content: '\201C';
    display: block;
    font-family: var(--ff-script);
    font-size: 2.75rem;
    line-height: .35;
    color: var(--accent);
    opacity: .55;
    margin-bottom: .4rem;
}
.cb-quotes__author {
    margin-top: 1.25rem;
    font-family: var(--ff-body);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}
.cb-guest-wall .swiper-pagination { position: static; margin-top: .25rem; }
.cb-guest-wall .swiper-pagination-bullet { background: var(--cb-muted); opacity: .35; }
.cb-guest-wall .swiper-pagination-bullet-active { background: var(--accent); opacity: 1; }

/* ── Guest gallery upload ───────────────────── */
.cb-gallery-upload .gu-form {
    border: 1px solid var(--cb-line-soft);
    background: var(--cb-white);
    border-radius: var(--radius);
}

/* ── Album ──────────────────────────────────── */
.cb-album__sub {
    margin: -.5rem 0 1.5rem;
    font-family: var(--ff-body);
    font-weight: 300;
    font-size: .85rem;
    color: var(--cb-muted);
}

/* ── Closing ────────────────────────────────── */
.cb-closing__text {
    font-family: var(--ff-script);
    font-size: 1.4rem;
    color: var(--cb-muted);
}

/* ── RSVP (borderless underline, solid submit) ── */
.cb-rsvp .rsvp-layout-wrap { max-width: 32rem; margin: 0 auto; padding: 0 1rem; }
.cb-rsvp .rsvp-form-col { background: none; border: none; padding: 0; }
.cb-form .form__group label {
    display: block;
    font-family: var(--ff-body);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cb-muted);
    margin-bottom: .4rem;
}
.cb-form .form__group input[type="text"],
.cb-form .form__group input[type="email"],
.cb-form .form__group input[type="tel"],
.cb-form .form__group input[type="number"],
.cb-form .form__group select,
.cb-form .form__group textarea {
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 0;
    background: transparent;
    padding: .8rem 0;
}
.cb-form .form__group input:focus,
.cb-form .form__group select:focus,
.cb-form .form__group textarea:focus {
    border-bottom-color: var(--accent);
    background: transparent;
}
.cb-form .rsvp-stepper {
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
    border-radius: 0;
    background: transparent;
    max-width: 100%;
}
.cb-rsvp .cb-form button[type="submit"] { width: 100%; margin-top: 1.5rem; }

/* ================================================
   FOOTER (deep-teal band)
   ================================================ */
.cb-footer {
    background: var(--cb-deep);
    text-align: center;
    padding: 3.5rem 1.5rem 3rem;
}
.cb-footer .cb-rule { margin-bottom: 1rem; }
.cb-footer__names {
    font-family: var(--ff-script);
    font-size: 1.7rem;
    color: #fff;
}
.cb-footer__date {
    margin-top: .3rem;
    font-family: var(--ff-body);
    font-size: .62rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.cb-footer__signoff {
    margin-top: .6rem;
    font-family: var(--ff-body);
    font-size: .82rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .65);
}
.cb-footer__cal { margin-top: 1.75rem; }

/* ================================================
   RESPONSIVE — topbar dropdown
   ================================================ */
@media (max-width: 860px) {
    .cb-topbar { justify-content: flex-start; gap: .75rem; }
    .cb-topbar__brand { order: 2; font-size: 1.2rem; }
    .cb-topbar__toggle {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 50%;
        background: rgba(20, 60, 55, .35);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
    }
    .cb-topbar.scrolled .cb-topbar__toggle {
        border-color: var(--cb-line);
        background: rgba(253, 251, 248, .8);
    }
    .cb-topbar__toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .cb-topbar.scrolled .cb-topbar__toggle span { background: var(--accent); }
    .cb-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .cb-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .cb-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .cb-topbar__links {
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: .1rem;
        padding: .5rem;
        background: rgba(253, 251, 248, .98);
        border: 1px solid var(--cb-line-soft);
        border-radius: var(--radius);
        box-shadow: 0 12px 32px rgba(20, 60, 55, .16);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .cb-topbar__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .cb-topbar__links a {
        color: var(--cb-ink);
        text-shadow: none;
        text-align: center;
        padding: .6rem 1rem;
    }
    .cb-topbar__links a::after { display: none; }
    .cb-topbar__links a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }
}

@media (max-width: 460px) {
    .cb-countdown__timer { gap: .5rem; }
    .cb-countdown__unit { padding: 1.15rem .25rem; }
    .cb-story__card { padding: 1.75rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cb-envelope,
    .cb-envelope__flap,
    .cb-envelope__seal,
    .cb-envelope__stage,
    .cb-envelope__prompt,
    .cb-snap {
        transition-duration: .01ms !important;
        animation: none !important;
    }
}
