:root {
    --deep: #023744;
    --navy: #082F3C;
    --ocean: #007C89;
    --lagoon: #18B9B2;
    --aqua: #7AE4DA;
    --foam: #ECFFFC;
    --foam-2: #DDF8F4;
    --sand: #F0D49A;
    --sand-soft: #FFF3D7;
    --coral: #FF7E72;
    --coral-soft: #FFE4DC;
    --white: #FFFFFF;
    --paper: rgba(255, 255, 255, 0.78);
    --text: #153D46;
    --muted: #6C8C93;
    --line: rgba(24, 185, 178, 0.22);
    --shadow: 0 28px 80px rgba(2, 55, 68, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 10%, rgba(122, 228, 218, 0.35), transparent 28%),
        radial-gradient(circle at 92% 8%, rgba(255, 126, 114, 0.14), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(240, 212, 154, 0.32), transparent 34%),
        linear-gradient(180deg, #F6FFFD 0%, #E7FAF7 36%, #FFFDF7 100%);
    overflow-x: hidden;
}

body.invitation-locked {
    height: 100vh;
    overflow: hidden;
}

.font-script {
    font-family: 'Great Vibes', cursive;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-editorial {
    font-family: 'Cormorant Garamond', serif;
}

.container-sea {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.section {
    position: relative;
    z-index: 5;
    padding: 105px 22px;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ocean);
}

.label::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    margin: 16px 0 14px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.04;
    color: var(--deep);
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.sea-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.btn-sea,
.btn-coral,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 14px 26px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-sea {
    color: white;
    border: 0;
    background: linear-gradient(135deg, var(--ocean), var(--lagoon));
    box-shadow: 0 18px 38px rgba(0, 124, 137, 0.24);
}

.btn-coral {
    color: white;
    border: 0;
    background: linear-gradient(135deg, var(--coral), #FF9D7E);
    box-shadow: 0 18px 38px rgba(255, 126, 114, 0.25);
}

.btn-ghost {
    color: var(--deep);
    border: 1px solid rgba(0, 124, 137, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.btn-sea:hover,
.btn-coral:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.decor-coral {
    right: 4%;
    top: 80px;
    width: 170px;
    height: 170px;
    color: var(--coral);
    opacity: 0.22;
    transform: rotate(12deg);
}

.decor-starfish {
    left: 5%;
    top: 92px;
    width: 125px;
    height: 125px;
    color: var(--sand);
    opacity: 0.46;
    transform: rotate(-18deg);
}

.decor-pearl-left,
.decor-pearl-right {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.34;
    animation: pearlFloat 9s ease-in-out infinite;
}

.decor-pearl-left {
    left: 2%;
    bottom: 14%;
    width: 170px;
    height: 170px;
    color: var(--aqua);
}

.decor-pearl-right {
    right: 3%;
    top: 24%;
    width: 145px;
    height: 145px;
    color: var(--coral);
    animation-delay: 1.8s;
}

@keyframes pearlFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(4deg);
    }
}

.bubble {
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.94), rgba(122, 228, 218, 0.18) 55%, transparent 75%);
    animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble-1 {
    width: 190px;
    height: 190px;
    top: 10%;
    left: -80px;
    opacity: 0.62;
}

.bubble-2 {
    width: 250px;
    height: 250px;
    bottom: 8%;
    right: -110px;
    opacity: 0.46;
    animation-delay: 1.5s;
}

.bubble-3 {
    width: 90px;
    height: 90px;
    top: 18%;
    right: 14%;
    opacity: 0.48;
    animation-delay: 2.4s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-18px) scale(1.04);
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(2, 55, 68, 0.72), rgba(0, 124, 137, 0.28)),
        radial-gradient(circle at 20% 20%, rgba(122, 228, 218, 0.38), transparent 30%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 55, 68, 0.78), rgba(2, 55, 68, 0.22), rgba(255, 255, 255, 0.12)),
        linear-gradient(180deg, rgba(2, 55, 68, 0.20), rgba(2, 55, 68, 0.62));
}

.hero-wave-svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    height: 180px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1160px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: stretch;
}

.cover-card {
    min-height: 690px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(236, 255, 252, 0.74));
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow: 0 30px 90px rgba(2, 55, 68, 0.24);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.cover-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(24, 185, 178, 0.18);
    color: var(--ocean);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.cover-date {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral), #FF9D7E);
    color: white;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: 0 18px 40px rgba(255, 126, 114, 0.28);
}

.cover-date strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    line-height: 1;
}

.cover-date span {
    display: block;
    margin-top: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cover-main {
    text-align: center;
    padding: 42px 0;
}

.cover-main .small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.bg-1 {
    background:
        linear-gradient(
            180deg,
            rgba(255, 248, 239, 0.18),
            rgba(250, 242, 232, 0.28)
        ),
        url('/storage/assets/ocean-breeze/bg-1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(74px, 8vw, 128px);
    line-height: 0.9;
    color: var(--deep);
    margin: 0;
}

.ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    line-height: 1;
    color: var(--coral);
    margin: 10px 0;
}

.cover-bottom {
    text-align: center;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(24, 185, 178, 0.20);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.guest-card {
    margin: 28px auto 0;
    max-width: 430px;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(24, 185, 178, 0.20);
}

.guest-card small {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 800;
}

.guest-card strong {
    font-family: 'Playfair Display', serif;
    color: var(--deep);
    font-size: 24px;
}

.side-panel {
    display: grid;
    gap: 24px;
}

.photo-polaroid {
    position: relative;
    min-height: 455px;
    border-radius: 42px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 30px 90px rgba(2, 55, 68, 0.23);
    transform: rotate(1.5deg);
}

.photo-polaroid img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}

.photo-caption {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    padding: 18px 20px;
    border-radius: 24px;
    color: white;
    background: rgba(2, 55, 68, 0.52);
    backdrop-filter: blur(12px);
}

.photo-caption small {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.photo-caption p {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    line-height: 1.2;
}

.mini-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mini-box {
    padding: 22px 16px;
    border-radius: 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(24, 185, 178, 0.18);
    box-shadow: 0 18px 42px rgba(2, 55, 68, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 112px;
}

.mini-box strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--deep);
    line-height: 1;
    text-align: center;
}

.mini-box span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
}

/* Opening */
.opening {
    padding-top: 120px;
}

.opening-shell {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 28px;
    align-items: stretch;
}

.opening-mark {
    border-radius: 34px;
    padding: 40px 28px;
    color: white;
    background:
        radial-gradient(circle at 18% 18%, rgba(122, 228, 218, 0.22), transparent 32%),
        linear-gradient(160deg, var(--deep), var(--ocean));
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.opening-mark::after {
    content: "≈";
    position: absolute;
    right: -12px;
    bottom: -54px;
    font-size: 210px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.10);
}

.opening-shell-svg {
    position: relative;
    z-index: 2;
    width: 128px;
    height: 128px;
    color: rgba(255, 255, 255, 0.92);
}

.opening-text {
    padding: 48px 42px;
}

.opening-text h2 {
    margin: 16px 0 18px;
    color: var(--deep);
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.12;
}

.opening-text p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 2;
}

/* Couple */
.couple-stage {
    display: grid;
    gap: 34px;
    position: relative;
    z-index: 2;
}

.person-card {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 0;
    min-height: 430px;
    border-radius: 38px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(24, 185, 178, 0.18);
    box-shadow: var(--shadow);
}

.person-card.reverse {
    grid-template-columns: 1fr 330px;
}

.person-photo {
    min-height: 430px;
    overflow: hidden;
    background: var(--foam-2);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-detail {
    position: relative;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.person-detail::after {
    content: "≈";
    position: absolute;
    right: 24px;
    bottom: -36px;
    font-size: 145px;
    color: rgba(24, 185, 178, 0.08);
    line-height: 1;
}

.person-detail .role {
    color: var(--coral);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.person-detail h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    font-family: 'Great Vibes', cursive;
    color: var(--deep);
    font-size: 76px;
    line-height: 1;
}

.person-detail h4 {
    position: relative;
    z-index: 2;
    margin: 0 0 16px;
    font-family: 'Playfair Display', serif;
    color: var(--ocean);
    font-size: 26px;
}

.person-detail p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

/* Events */
.events-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.boarding-pass {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(24, 185, 178, 0.20);
    box-shadow: var(--shadow);
}

.boarding-pass::before,
.boarding-pass::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    background: #E7FAF7;
    border-radius: 999px;
    transform: translateY(-50%);
    z-index: 3;
}

.boarding-pass::before {
    left: -18px;
}

.boarding-pass::after {
    right: -18px;
}

.pass-top {
    padding: 28px 30px;
    color: white;
    background:
        radial-gradient(circle at 20% 10%, rgba(122, 228, 218, 0.22), transparent 32%),
        linear-gradient(135deg, var(--deep), var(--ocean));
}

.pass-top small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 8px;
}

.pass-top h3 {
    margin: 0;
    font-family: 'Great Vibes', cursive;
    font-size: 58px;
    line-height: 1;
}

.pass-body {
    padding: 30px;
    display: grid;
    gap: 16px;
}

.pass-row {
    padding: 16px;
    border-radius: 20px;
    background: rgba(236, 255, 252, 0.72);
    border: 1px solid rgba(24, 185, 178, 0.15);
}

.pass-row small {
    display: block;
    margin-bottom: 8px;
    color: var(--lagoon);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pass-row strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

/* Location */
.location-shell {
    display: grid;
    grid-template-columns: 390px 1fr;
    border-radius: 38px;
    overflow: hidden;
    border: 1px solid rgba(24, 185, 178, 0.20);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.82);
}

.location-info {
    padding: 42px 34px;
    background:
        radial-gradient(circle at 20% 20%, rgba(122, 228, 218, 0.24), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 255, 252, 0.84));
}

.location-compass {
    width: 82px;
    height: 82px;
    color: var(--lagoon);
    margin-bottom: 18px;
}

.location-info h3 {
    margin: 14px 0;
    color: var(--deep);
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    line-height: 1.15;
}

.location-info p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
    margin: 0 0 24px;
}

.map-frame {
    min-height: 480px;
    background: var(--foam-2);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: 0;
    filter: saturate(90%) contrast(96%) brightness(103%);
}

/* Story */
.story-stream {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.story-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: stretch;
}

.story-date-pill {
    min-height: 120px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--coral), #FF9D7E);
    color: white;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    box-shadow: 0 18px 42px rgba(255, 126, 114, 0.22);
}

.story-date-pill strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    line-height: 1;
}

.story-date-pill span {
    display: block;
    margin-top: 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story-content {
    padding: 30px;
}

.story-content h3 {
    margin: 0 0 10px;
    color: var(--deep);
    font-family: 'Playfair Display', serif;
    font-size: 30px;
}

.story-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 14px;
}

/* Gallery */
.gallery-ocean {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(10px, 2vw, 16px);
    align-items: stretch;
}

.gallery-tile {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(24, 185, 178, 0.20);
    box-shadow: 0 18px 44px rgba(2, 55, 68, 0.10);
    background: var(--foam-2);
}

.gallery-tile.large {
    grid-column: span 7;
    aspect-ratio: 7 / 4;
}

.gallery-tile.tall {
    grid-column: span 5;
    aspect-ratio: 5 / 4;
}

.gallery-tile.small {
    grid-column: span 4;
    aspect-ratio: 4 / 3;
}

.gallery-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-tile:hover img {
    transform: scale(1.06);
}

/* Gift */
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.gift-card {
    padding: 34px 26px;
    text-align: center;
}

.gift-card h3 {
    margin: 10px 0 6px;
    color: var(--deep);
    font-family: 'Playfair Display', serif;
    font-size: 30px;
}

.gift-number {
    display: inline-block;
    margin: 18px 0;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(24, 185, 178, 0.08);
    color: var(--deep);
    font-weight: 800;
    letter-spacing: 0.08em;
    border: 1px solid rgba(24, 185, 178, 0.18);
}

/* RSVP */
.rsvp-shell {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 26px;
    align-items: start;
}

.rsvp-card,
.guestbook-card {
    padding: 38px;
}

.rsvp-card h3,
.guestbook-card h3 {
    margin: 0 0 12px;
    color: var(--deep);
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-weight: 800;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid rgba(24, 185, 178, 0.22);
    background: rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(0, 124, 137, 0.36);
    box-shadow: 0 0 0 4px rgba(24, 185, 178, 0.08);
}

.form-textarea {
    min-height: 128px;
    resize: vertical;
}

.guestbook-list {
    display: grid;
    gap: 14px;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 6px;
}

.guestbook-list::-webkit-scrollbar {
    width: 8px;
}

.guestbook-list::-webkit-scrollbar-thumb {
    background: rgba(24, 185, 178, 0.34);
    border-radius: 999px;
}

.wish-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(24, 185, 178, 0.18);
    border-radius: 22px;
}

.wish-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wish-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wish-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(24, 185, 178, 0.10);
    color: var(--deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.wish-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.wish-time {
    color: var(--muted);
    font-size: 11px;
}

.status-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.status-hadir {
    background: #E6F8EF;
    color: #2F7D51;
}

.status-tidak {
    background: #FBE8E7;
    color: #B7524D;
}

.status-ragu {
    background: #FCF2DE;
    color: #AF7D28;
}

.wish-message {
    color: var(--muted);
    line-height: 1.8;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.62);
    border-radius: 16px;
    padding: 14px;
}

/* Footer */
.footer {
    position: relative;
    z-index: 5;
    padding: 108px 24px 136px;
    background:
        radial-gradient(circle at 18% 20%, rgba(122, 228, 218, 0.16), transparent 26%),
        linear-gradient(180deg, var(--ocean), var(--deep));
    color: #F8FFFE;
    text-align: center;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: auto -10% -76px;
    height: 160px;
    background:
        radial-gradient(120px 56px at 10% 0%, rgba(255, 255, 255, 0.14) 98%, transparent 100%),
        radial-gradient(170px 76px at 35% 0%, rgba(255, 255, 255, 0.10) 98%, transparent 100%),
        radial-gradient(140px 64px at 65% 0%, rgba(255, 255, 255, 0.13) 98%, transparent 100%),
        radial-gradient(150px 68px at 88% 0%, rgba(255, 255, 255, 0.10) 98%, transparent 100%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.footer h2 {
    margin: 12px 0;
    font-family: 'Great Vibes', cursive;
    color: white;
    font-size: 70px;
    line-height: 1;
}

.footer p {
    color: rgba(248, 255, 254, 0.78);
    line-height: 1.9;
    font-size: 14px;
}

/* Toast */
#toast-rek {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(18px);
    background: linear-gradient(135deg, var(--ocean), var(--lagoon));
    color: white;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 18px 42px rgba(2, 55, 68, 0.26);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s ease;
}

#toast-rek.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================
   Wrapper Cover / Gate sebelum masuk halaman undangan
   ========================================================== */

.invitation-content {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 800ms ease;
}

.invitation-content.is-open {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

#invitation-cover {
    position: fixed;
    inset: 0;
    z-index: 9999;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 14%, rgba(122, 228, 218, 0.34), transparent 30%),
        radial-gradient(circle at 88% 12%, rgba(255, 126, 114, 0.20), transparent 28%),
        linear-gradient(160deg, var(--deep), var(--ocean) 52%, var(--foam));
    transition:
        opacity 850ms ease,
        visibility 850ms ease,
        transform 850ms ease;
}

#invitation-cover.cover-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.035);
}

#invitation-cover .cover-card {
    position: relative;
    z-index: 3;
    width: min(100%, 560px);
    min-height: auto;
    padding: clamp(30px, 5vw, 54px);
    display: block;
    text-align: center;
    border-radius: 42px;
    color: var(--deep);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 255, 252, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.48);
    box-shadow: 0 34px 100px rgba(2, 55, 68, 0.34);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    animation: coverFadeUp 950ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#invitation-cover .cover-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 32px;
    border: 1px solid rgba(24, 185, 178, 0.20);
    pointer-events: none;
}

#invitation-cover .cover-card::after {
    content: "≈";
    position: absolute;
    right: -22px;
    bottom: -58px;
    font-size: 190px;
    line-height: 1;
    color: rgba(24, 185, 178, 0.08);
    pointer-events: none;
}

@keyframes coverFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.98);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Optional opener image, jika cover memakai background image dari Blade */
.opener-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    opacity: 0.72;
    filter: saturate(1.05) contrast(1.04);
}

.opener-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 55, 68, 0.48), rgba(2, 55, 68, 0.72)),
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.18), transparent 38%);
}

/* Cover ornament: gambar tetap dipanggil dari Blade */
.cover-corner {
    position: absolute;
    width: min(34vw, 320px);
    max-width: 360px;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    /* opacity: 0.76; */
    filter:
        drop-shadow(0 18px 38px rgba(2, 55, 68, 0.16))
        drop-shadow(0 0 18px rgba(24, 185, 178, 0.16))
        drop-shadow(0 0 28px rgba(122, 228, 218, 0.12));
}

.cover-corner-tl {
    top: -40px;
    left: -24px;
    transform: rotate(180deg);
    transform-origin: center;
    animation: oceanSwayTopLeft 7s ease-in-out infinite;
}

.cover-corner-br {
    right: -24px;
    bottom: -28px;
    transform: rotate(0deg);
    transform-origin: center;
    animation: oceanSwayBottomRight 8s ease-in-out infinite;
}

/* Main sticky ornament: gambar tetap dipanggil dari Blade */
.corner-art {
    position: fixed !important;
    width: min(30vw, 250px);
    height: auto;
    z-index: 80;
    pointer-events: none;
    user-select: none;
    display: block;
    /* opacity: 0.70; */
    filter:
        drop-shadow(0 18px 34px rgba(2, 55, 68, 0.12))
        drop-shadow(0 0 14px rgba(24, 185, 178, 0.14));
}

.corner-art-tl {
    top: -20px;
    left: -20px;
    transform: rotate(180deg);
    transform-origin: center;
    animation: oceanSwayTopLeft 7s ease-in-out infinite;
}

.corner-art-br {
    right: -20px;
    bottom: -20px;
    transform: rotate(0deg);
    transform-origin: center;
    animation: oceanSwayBottomRight 8s ease-in-out infinite;
}

@keyframes oceanSwayTopLeft {
    0%, 100% {
        transform: rotate(180deg) scale(1);
    }

    50% {
        transform: rotate(184deg) scale(1.03);
    }
}

@keyframes oceanSwayBottomRight {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-4deg) scale(1.03);
    }
}

/* Cover text helpers */
.cover-kicker {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    margin-bottom: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(24, 185, 178, 0.20);
    color: var(--ocean);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.cover-subtitle {
    position: relative;
    z-index: 2;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.cover-names {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: 'Great Vibes', cursive;
    color: var(--deep);
    line-height: 0.92;
}

.cover-names span {
    display: block;
    font-size: clamp(70px, 11vw, 118px);
}

.cover-names em {
    display: block;
    margin: 10px 0 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-style: normal;
    color: var(--coral);
    line-height: 1;
}

#invitation-cover .cover-date {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 185, 178, 0.20);
    box-shadow: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.cover-guest {
    position: relative;
    z-index: 2;
    max-width: 420px;
    margin: 24px auto 0;
    padding: 16px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.70);
    border: 1px solid rgba(24, 185, 178, 0.20);
}

.cover-guest small {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.cover-guest strong {
    display: block;
    font-family: 'Playfair Display', serif;
    color: var(--deep);
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.2;
}

.cover-note {
    position: relative;
    z-index: 2;
    margin: 18px auto 0;
    max-width: 360px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.cover-button {
    position: relative;
    z-index: 2;
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    border: 0;
    border-radius: 999px;
    padding: 15px 28px;
    color: white;
    background: linear-gradient(135deg, var(--ocean), var(--lagoon));
    box-shadow: 0 20px 42px rgba(0, 124, 137, 0.28);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.cover-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 52px rgba(0, 124, 137, 0.36);
    filter: brightness(1.03);
}

.cover-button:focus-visible {
    outline: 3px solid rgba(122, 228, 218, 0.70);
    outline-offset: 5px;
}

/* Utility classes pengganti inline style di Blade */
.section-soft {
    background: rgba(236, 255, 252, 0.55);
}

.section-hidden-overflow {
    overflow: hidden;
}

.section-location {
    padding-top: 0;
}

.gift-owner {
    color: var(--muted);
    margin: 0;
}

.btn-full {
    width: 100%;
}

.form-helper {
    color: var(--muted);
    line-height: 1.8;
    font-size: 14px;
    margin-bottom: 24px;
}

.rsvp-alert {
    margin-bottom: 18px;
    padding: 15px 17px;
    background: #E6F8EF;
    color: #2F7D51;
    border: 1px solid #CDEDD8;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
}

.guestbook-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(24, 185, 178, 0.18);
}

.guestbook-header p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}

.guestbook-count {
    background: var(--ocean);
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.empty-wishes {
    text-align: center;
    padding: 42px 20px;
    color: var(--muted);
}

.empty-wishes-icon {
    font-size: 46px;
    color: var(--lagoon);
    margin-bottom: 10px;
}

.empty-wishes-title {
    font-weight: 800;
    color: var(--deep);
    margin-bottom: 6px;
}

.empty-wishes-text {
    font-size: 14px;
    margin: 0;
}

.footer-label {
    color: var(--aqua);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content,
    .opening-shell,
    .person-card,
    .person-card.reverse,
    .events-board,
    .location-shell,
    .rsvp-shell {
        grid-template-columns: 1fr;
    }

    .person-photo {
        min-height: 380px;
    }

    .location-shell {
        display: block;
    }

    .map-frame,
    .map-frame iframe {
        min-height: 380px;
    }

    .mini-info {
        grid-template-columns: 1fr;
    }

    .cover-corner {
        width: 220px;
    }

    .cover-corner-tl {
        top: -68px;
        left: -18px;
    }

    .cover-corner-br {
        right: -18px;
        bottom: -22px;
    }

    .corner-art {
        width: 310px;
    }

    .corner-art-tl {
        top: -68px;
        left: -18px;
    }

    .corner-art-br {
        right: -18px;
        bottom: -20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 20px 16px 70px;
    }

    .cover-card {
        min-height: auto;
        padding: 28px 22px;
        border-radius: 32px;
    }

    .cover-top {
        align-items: flex-start;
    }

    .cover-date {
        width: 72px;
        height: 72px;
    }

    .names {
        font-size: 74px;
    }

    .photo-polaroid {
        min-height: 360px;
        transform: none;
        border-radius: 32px;
    }

    .photo-polaroid img {
        min-height: 330px;
    }

    .section {
        padding: 82px 20px;
    }

    .opening-text,
    .person-detail,
    .location-info,
    .rsvp-card,
    .guestbook-card {
        padding: 30px 22px;
    }

    .person-detail h3 {
        font-size: 64px;
    }

    .story-card {
        grid-template-columns: 1fr;
    }

    .story-date-pill {
        min-height: 84px;
    }

    #galeri {
        padding-block: 70px;
    }

    #galeri .section-head {
        margin-bottom: 32px;
    }

    .gallery-ocean {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
    }

    .gallery-tile {
        border-radius: 22px;
    }

    .gallery-tile.large {
        grid-column: span 6;
        aspect-ratio: 16 / 10;
    }

    .gallery-tile.tall,
    .gallery-tile.small {
        grid-column: span 3;
        aspect-ratio: 1 / 1;
    }

    .wish-top {
        flex-direction: column;
    }

    .decor,
    .decor-pearl-left,
    .decor-pearl-right {
        opacity: 0.14;
        transform: scale(0.78);
    }

    .decor-coral {
        right: -38px;
        top: 40px;
    }

    .decor-starfish {
        left: -34px;
        top: 60px;
    }

    #invitation-cover {
        padding: 18px;
    }

    #invitation-cover .cover-card {
        border-radius: 32px;
        padding: 32px 22px;
    }

    #invitation-cover .cover-card::before {
        inset: 12px;
        border-radius: 24px;
    }

    .cover-kicker {
        margin-bottom: 20px;
        font-size: 9px;
        letter-spacing: 0.20em;
    }

    .cover-names span {
        font-size: 72px;
    }

    #invitation-cover .cover-date {
        font-size: 9px;
        line-height: 1.6;
        letter-spacing: 0.12em;
    }

    .cover-corner {
        width: 180px;
        /* opacity: 0.56; */
    }

    .cover-corner-tl {
        top: -60px;
        left: -16px;
    }

    .cover-corner-br {
        right: -16px;
        bottom: -20px;
    }

    .corner-art {
        width: 280px;
        /* opacity: 0.50; */
        z-index: 70;
    }

    .corner-art-tl {
        top: -60px;
        left: -16px;
    }

    .corner-art-br {
        right: -16px;
        bottom: -20px;
    }

    .guestbook-header {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cover-corner {
        width: 200px;
        /* opacity: 0.48; */
    }

    .cover-corner-tl {
        top: -18px;
        left: -16px;
    }

    .cover-corner-br {
        right: -16px;
        bottom: -18px;
    }

    .corner-art {
        width: 205px;
        /* opacity: 0.46; */
        z-index: 70;
    }

    .corner-art-tl {
        top: -18px;
        left: -16px;
    }

    .corner-art-br {
        right: -16px;
        bottom: -18px;
    }
}


/* Compact gallery on small phones */
@media (max-width: 480px) {
    #galeri {
        padding: 60px 16px;
    }

    #galeri .section-head {
        margin-bottom: 26px;
    }

    #galeri .section-head h2 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .gallery-ocean {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .gallery-tile {
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(2, 55, 68, 0.10);
    }

    .gallery-tile.large {
        grid-column: span 4;
        aspect-ratio: 16 / 11;
    }

    .gallery-tile.tall,
    .gallery-tile.small {
        grid-column: span 2;
        aspect-ratio: 1 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cover-card,
    .cover-corner,
    .corner-art,
    #invitation-cover,
    .invitation-content,
    .decor-pearl-left,
    .decor-pearl-right,
    .bubble {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ==========================================================
   Responsive Hero Section
   ========================================================== */

.hero {
    min-height: 100svh;
}

.hero-content {
    width: 100%;
}

/* Tablet */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 90px 22px 120px;
        align-items: start;
    }

    .hero-content {
        grid-template-columns: 1fr;
        max-width: 680px;
        gap: 22px;
    }

    .hero .cover-card {
        min-height: auto;
        padding: 34px 28px;
        border-radius: 34px;
    }

    .cover-main {
        padding: 34px 0;
    }

    .names {
        font-size: clamp(62px, 13vw, 96px);
    }

    .photo-polaroid {
        min-height: 380px;
        border-radius: 34px;
        transform: none;
    }

    .photo-polaroid img {
        min-height: 340px;
        border-radius: 26px;
    }

    .mini-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 76px 16px 96px;
        display: block;
    }

    .hero-bg::after {
        background:
            linear-gradient(180deg, rgba(2, 55, 68, 0.76), rgba(2, 55, 68, 0.42)),
            linear-gradient(90deg, rgba(2, 55, 68, 0.48), rgba(255, 255, 255, 0.08));
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero .cover-card {
        order: 1;
        min-height: auto;
        padding: 26px 20px;
        border-radius: 30px;
    }

    .cover-top {
        justify-content: center;
    }

    .hero .cover-date {
        width: 74px;
        height: 74px;
    }

    .hero .cover-date strong {
        font-size: 24px;
    }

    .hero .cover-date span {
        font-size: 8px;
    }

    .cover-main {
        padding: 24px 0 26px;
    }

    .cover-main .small {
        margin-bottom: 14px;
        font-size: 9px;
        letter-spacing: 0.26em;
    }

    .names {
        font-size: clamp(54px, 17vw, 76px);
        line-height: 0.92;
        word-break: break-word;
    }

    .ampersand {
        font-size: 36px;
        margin: 6px 0;
    }

    .event-pill {
        margin-top: 16px;
        padding: 11px 16px;
        font-size: 9px;
        letter-spacing: 0.14em;
        line-height: 1.5;
        white-space: normal;
    }

    .guest-card {
        margin-top: 18px;
        padding: 14px 16px;
        border-radius: 20px;
    }

    .guest-card strong {
        font-size: 20px;
    }

    .cover-bottom .btn-sea {
        width: 100%;
        padding: 13px 18px;
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .side-panel {
        order: 2;
        gap: 12px;
    }

    .photo-polaroid {
        min-height: auto;
        padding: 10px;
        border-radius: 28px;
        transform: none;
    }

    .photo-polaroid img {
        height: clamp(260px, 70vw, 360px);
        min-height: 0;
        border-radius: 22px;
    }

    .photo-caption {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 12px 14px;
        border-radius: 18px;
    }

    .photo-caption small {
        margin-bottom: 0;
        font-size: 8px;
        letter-spacing: 0.2em;
    }

    .mini-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .mini-box {
        min-height: 82px;
        padding: 14px 8px;
        border-radius: 20px;
    }

    .mini-box strong {
        font-size: 22px;
    }

    .mini-box span {
        margin-top: 6px;
        font-size: 7px;
        letter-spacing: 0.14em;
    }

    .hero-wave-svg {
        height: 86px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero {
        padding: 64px 14px 84px;
    }

    .hero-content {
        gap: 14px;
    }

    .hero .cover-card {
        padding: 22px 16px;
        border-radius: 26px;
    }

    .hero .cover-date {
        width: 66px;
        height: 66px;
    }

    .hero .cover-date strong {
        font-size: 21px;
    }

    .cover-main {
        padding: 20px 0 22px;
    }

    .names {
        font-size: clamp(48px, 18vw, 66px);
    }

    .ampersand {
        font-size: 32px;
    }

    .event-pill {
        width: 100%;
        padding: 10px 14px;
    }

    .photo-polaroid img {
        height: 250px;
    }

    .mini-info {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mini-box {
        min-height: 76px;
        border-radius: 18px;
    }

    .mini-box strong {
        font-size: 20px;
    }
}
