/* ============================================================
   STYLE UTAMA UNDANGAN HAFAS & CAHYANI
   File ini mengatur fondasi warna, tipografi, layout, komponen,
   dan responsivitas halaman undangan publik.
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABEL WARNA DAN UKURAN
   ------------------------------------------------------------ */
:root {
    --blue-950: #102b4d;
    --blue-900: #173b67;
    --blue-800: #244d7c;
    --blue-700: #356795;
    --blue-600: #5c86b2;
    --blue-500: #8eafd0;
    --blue-300: #c5d8eb;
    --blue-200: #dce8f4;
    --blue-100: #edf3f9;

    --ivory: #fbfaf7;
    --paper: #ffffff;
    --sand: #e9e1d5;
    --gold: #b99a6a;

    --ink: #1b2d43;
    --muted: #68798b;
    --line: rgba(35, 70, 108, 0.14);

    --font-script: "Allura", cursive;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "DM Sans", Arial, sans-serif;

    --shadow-soft: 0 20px 55px rgba(20, 51, 83, 0.09);
    --shadow-card: 0 12px 35px rgba(20, 51, 83, 0.08);

    --content-width: 1160px;
    --section-space: clamp(5rem, 9vw, 8rem);
}

/* ------------------------------------------------------------
   2. RESET DASAR
   ------------------------------------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-width: 320px;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--blue-300);
    color: var(--blue-950);
}

/* ------------------------------------------------------------
   3. TIPOGRAFI UMUM
   ------------------------------------------------------------ */
body,
input,
select,
textarea {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4 {
    color: var(--blue-950);
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
}

p {
    margin-bottom: 0.8rem;
}

.eyebrow {
    color: var(--blue-700);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    line-height: 1.6;
    text-transform: uppercase;
}

/* ------------------------------------------------------------
   4. TOMBOL DAN LINK
   ------------------------------------------------------------ */
.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.button span {
    font-size: 1rem;
    transition: transform 0.25s ease;
}

.button:hover span {
    transform: translateX(4px);
}

.button-primary {
    background: var(--blue-900);
    color: var(--paper);
    box-shadow: 0 9px 22px rgba(23, 59, 103, 0.16);
}

.button-primary:hover {
    transform: translateY(-2px);
    background: var(--blue-800);
    color: var(--paper);
    box-shadow: 0 14px 26px rgba(23, 59, 103, 0.22);
}

.button-light {
    background: var(--paper);
    color: var(--blue-900);
}

.button-light:hover {
    transform: translateY(-2px);
    background: var(--blue-100);
    color: var(--blue-950);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-800);
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.text-link span {
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translate(3px, -3px);
}

/* ------------------------------------------------------------
   5. LAYAR PEMBUKA UNDANGAN
   ------------------------------------------------------------ */
.cover-screen {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(13, 39, 70, 0.93), rgba(36, 77, 124, 0.88)),
        url("assets/img/photo-seated.jpg") center 58% / cover no-repeat;
    color: var(--paper);
    text-align: center;
    transition: opacity 0.75s ease, visibility 0.75s ease, transform 0.75s ease;
}

.cover-screen::before {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 3px;
    content: "";
    pointer-events: none;
}

.cover-screen::after {
    position: absolute;
    top: -160px;
    right: -140px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.cover-screen.is-open {
    visibility: hidden;
    opacity: 0;
    transform: scale(1.025);
}

.cover-card {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 4px;
    padding: clamp(2.3rem, 6vw, 4.5rem) 1.5rem;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cover-card .eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.cover-monogram {
    margin: 1.4rem 0 0.2rem;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.08em;
}

.cover-monogram span {
    color: var(--blue-300);
    font-family: var(--font-script);
    font-size: 2.4rem;
}

.cover-card h1 {
    margin: 0.4rem 0 0.65rem;
    color: var(--paper);
    font-family: var(--font-script);
    font-size: clamp(3.1rem, 9vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
}

.cover-card h1 span {
    color: var(--blue-300);
}

.cover-date {
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-display);
    font-size: 1.18rem;
    letter-spacing: 0.05em;
}

.cover-recipient {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 2rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.cover-recipient strong {
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 500;
}

.cover-card .button {
    margin-top: 0.5rem;
}

.cover-note {
    position: relative;
    z-index: 1;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

/* ------------------------------------------------------------
   6. HEADER DAN NAVIGASI
   ------------------------------------------------------------ */
.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 50%;
    display: flex;
    width: min(calc(100% - 64px), 1320px);
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateX(-50%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    white-space: nowrap;
}

.brand-symbol {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-display);
    font-size: 1.18rem;
    letter-spacing: 0.06em;
}

.brand-symbol span {
    color: var(--blue-300);
    font-family: var(--font-script);
    font-size: 1.6rem;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.brand-name i {
    color: var(--blue-300);
    font-family: var(--font-script);
    font-size: 1.4rem;
    font-style: normal;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.6vw, 38px);
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--paper);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover {
    color: var(--paper);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.music-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--paper);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    transition: background 0.2s ease;
}

.music-button:hover,
.music-button.is-playing {
    background: rgba(255, 255, 255, 0.2);
}

.music-icon {
    font-size: 1rem;
}

.nav-toggle {
    display: none;
}

/* ------------------------------------------------------------
   7. HERO SECTION
   ------------------------------------------------------------ */
.hero-section {
    position: relative;
    display: grid;
    min-height: 850px;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 4.5vw;
    overflow: hidden;
    padding: 150px max(6vw, calc((100vw - var(--content-width)) / 2)) 110px;
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.85), transparent 35%),
        linear-gradient(135deg, #e8f0f8 0%, #dce8f5 52%, #c7d9eb 100%);
}

.hero-section::before {
    position: absolute;
    right: -150px;
    bottom: -260px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 1.5rem 0;
}

.hero-copy .eyebrow {
    margin-bottom: 2.6rem;
    color: var(--blue-700);
}

.hero-kicker {
    margin-bottom: 0.1rem;
    color: var(--blue-800);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
}

.hero-copy h1 {
    margin: 0 0 0.8rem -5px;
    color: var(--blue-950);
    font-family: var(--font-script);
    font-size: clamp(5.3rem, 8.7vw, 8.8rem);
    font-weight: 400;
    line-height: 0.88;
}

.hero-copy h1 span {
    color: var(--blue-600);
}

.ornament-divider {
    display: flex;
    width: 230px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 1.2rem 0;
    color: var(--blue-700);
    font-size: 1rem;
}

.ornament-divider span {
    display: block;
    width: 82px;
    height: 1px;
    background: var(--blue-500);
}

.hero-description {
    max-width: 420px;
    margin-bottom: 1.5rem;
    color: #536b83;
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-style: italic;
    line-height: 1.5;
}

.wedding-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.1rem;
    color: var(--blue-900);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.calendar-icon {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(35, 77, 124, 0.25);
    border-radius: 50%;
    font-size: 1rem;
}

.countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 1.8rem;
}

.countdown-item {
    display: flex;
    min-width: 75px;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(35, 77, 124, 0.13);
    border-radius: 5px;
    padding: 0.65rem 0.7rem 0.55rem;
    background: rgba(255, 255, 255, 0.57);
    color: var(--blue-900);
}

.countdown-item strong {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-item span {
    margin-top: 0.28rem;
    color: var(--muted);
    font-size: 0.58rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero-visual {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 610px;
    justify-self: end;
    padding: 0 0 42px 25px;
}

.hero-photo-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.12 / 1;
    border: 10px solid rgba(255, 255, 255, 0.72);
    border-radius: 46% 46% 8px 8px;
    background: var(--blue-200);
    box-shadow: 0 28px 70px rgba(24, 58, 93, 0.2);
}

.hero-photo-frame::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 37%;
}

.photo-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-800);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-style: italic;
}

.caption-line {
    display: block;
    width: 50px;
    height: 1px;
    background: var(--gold);
}

.hero-flower {
    position: absolute;
    color: var(--blue-600);
    font-family: var(--font-display);
    pointer-events: none;
}

.flower-one {
    top: 9%;
    left: -5px;
    font-size: 3rem;
    opacity: 0.55;
}

.flower-two {
    right: -18px;
    bottom: 26%;
    color: var(--gold);
    font-size: 2.4rem;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--blue-800);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-cue-icon {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(35, 77, 124, 0.38);
    border-radius: 50%;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------
   8. STRUKTUR SECTION DAN JUDUL SECTION
   ------------------------------------------------------------ */
.section-shell {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: var(--section-space) 0;
}

.section-heading {
    max-width: 680px;
    margin: 0 auto 3.3rem;
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 0.7rem;
}

.section-heading h2 {
    margin-bottom: 0.8rem;
    color: var(--blue-950);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    letter-spacing: -0.02em;
}

.section-heading h2 em {
    color: var(--blue-600);
    font-family: var(--font-script);
    font-size: 1.22em;
    font-style: normal;
    font-weight: 400;
}

.section-lead {
    max-width: 540px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.9;
}

/* ------------------------------------------------------------
   9. SECTION PENGANTAR
   ------------------------------------------------------------ */
.intro-section {
    position: relative;
    max-width: 850px;
    text-align: center;
}

.intro-section::before,
.intro-section::after {
    position: absolute;
    z-index: -1;
    color: var(--blue-200);
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    opacity: 0.75;
}

.intro-section::before {
    top: 35%;
    left: -40px;
    content: "“";
}

.intro-section::after {
    right: -40px;
    bottom: 25%;
    content: "”";
}

.intro-section .section-heading {
    margin-bottom: 1.5rem;
}

.intro-section .section-heading h2 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    line-height: 1.25;
}

.intro-section .section-heading h2 em {
    font-size: 0.84em;
}

.heading-flourish {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--gold);
    font-size: 0.9rem;
}

.intro-copy {
    max-width: 670px;
    margin: 0 auto 2rem;
    color: #586d82;
    font-size: 0.91rem;
    line-height: 2;
}

.quran-quote {
    max-width: 650px;
    margin: 0 auto 1.5rem;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1rem;
    color: var(--blue-800);
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-style: italic;
    line-height: 1.5;
}

.quran-quote cite {
    display: block;
    margin-top: 0.85rem;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-style: normal;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.intro-closing {
    color: var(--muted);
    font-size: 0.8rem;
}

/* ------------------------------------------------------------
   10. SECTION MEMPELAI
   ------------------------------------------------------------ */
.couple-section {
    width: 100%;
    max-width: none;
    padding-right: max(24px, calc((100vw - var(--content-width)) / 2));
    padding-left: max(24px, calc((100vw - var(--content-width)) / 2));
    background: linear-gradient(180deg, #f1f5fa 0%, #e7eff7 100%);
}

.couple-layout {
    display: grid;
    max-width: var(--content-width);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr) minmax(0, 1fr);
    align-items: center;
    gap: 42px;
    margin: 0 auto;
}

.person-card {
    padding: 1rem 0;
    text-align: right;
}

.person-card-right {
    text-align: left;
}

.person-label {
    margin-bottom: 0.7rem;
    color: var(--blue-600);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.person-card h3 {
    margin-bottom: 1rem;
    color: var(--blue-950);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.person-family {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.9;
}

.person-family strong {
    color: var(--blue-800);
    font-weight: 600;
}

.couple-photo-wrap {
    position: relative;
    padding: 13px;
    background: var(--paper);
    box-shadow: var(--shadow-card);
    transform: rotate(-2deg);
}

.couple-photo-wrap::before {
    position: absolute;
    z-index: -1;
    inset: -10px 10px 10px -10px;
    border: 1px solid var(--blue-300);
    content: "";
}

.couple-photo-wrap img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 68%;
}

.couple-photo-mark {
    position: absolute;
    right: 25px;
    bottom: 25px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(23, 59, 103, 0.78);
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* ------------------------------------------------------------
   11. SECTION ACARA DAN VENUE
   ------------------------------------------------------------ */
.event-section {
    padding-bottom: calc(var(--section-space) + 1rem);
}

.event-date-banner {
    display: flex;
    width: min(100%, 570px);
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 0 auto 2.6rem;
    border-top: 1px solid var(--blue-300);
    border-bottom: 1px solid var(--blue-300);
    padding: 1rem;
    color: var(--blue-900);
}

.event-date-day {
    color: var(--blue-800);
    font-family: var(--font-display);
    font-size: 4.6rem;
    font-weight: 500;
    line-height: 1;
}

.event-date-banner div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.event-date-banner div strong {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
}

.event-date-banner div span {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.event-date-year {
    margin-left: 2rem;
    color: var(--blue-500);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
}

.event-cards {
    display: grid;
    max-width: 820px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 auto 4rem;
}

.event-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.1rem 1.5rem 2rem;
    background: var(--paper);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.event-card-featured {
    background: var(--blue-900);
    color: var(--paper);
}

.event-card-featured h3,
.event-card-featured .event-type,
.event-card-featured .event-location,
.event-card-featured > p:not(.event-type) {
    color: var(--paper);
}

.event-card-featured .event-card-rule {
    background: rgba(255, 255, 255, 0.42);
}

.event-card-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 1rem;
    border: 1px solid var(--blue-300);
    border-radius: 50%;
    color: var(--blue-700);
    font-size: 1.25rem;
}

.event-card-featured .event-card-icon {
    border-color: rgba(255, 255, 255, 0.36);
    color: var(--paper);
}

.event-type {
    margin-bottom: 0.45rem;
    color: var(--blue-700);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.event-card h3 {
    margin-bottom: 0.65rem;
    color: var(--blue-950);
    font-size: 1.85rem;
}

.event-card > p:not(.event-type) {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.event-card-rule {
    display: block;
    width: 42px;
    height: 1px;
    margin: 1.2rem auto;
    background: var(--gold);
}

.event-card .event-location {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.4;
}

.venue-panel {
    display: grid;
    max-width: 930px;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
    gap: 0;
    margin: 0 auto;
    background: #edf3f8;
}

.venue-photo {
    min-height: 310px;
    overflow: hidden;
}

.venue-photo img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
}

.venue-copy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(1.8rem, 4vw, 3.3rem);
}

.venue-copy .eyebrow {
    margin-bottom: 0.8rem;
}

.venue-copy h3 {
    margin-bottom: 0.7rem;
    font-family: var(--font-script);
    font-size: 3.6rem;
    font-weight: 400;
}

.venue-copy p:not(.eyebrow) {
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.8;
}

/* ------------------------------------------------------------
   12. OUR STORY
   ------------------------------------------------------------ */
.story-section {
    width: 100%;
    max-width: none;
    padding-right: max(24px, calc((100vw - 900px) / 2));
    padding-left: max(24px, calc((100vw - 900px) / 2));
    background: linear-gradient(180deg, #edf3f8 0%, #f7f8f8 100%);
}

.story-timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.story-timeline::before {
    position: absolute;
    top: 12px;
    bottom: 20px;
    left: 78px;
    width: 1px;
    background: var(--blue-300);
    content: "";
}

.story-item {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 34px;
    padding-bottom: 3rem;
}

.story-item:last-child {
    padding-bottom: 0;
}

.story-year {
    position: relative;
    z-index: 1;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid var(--blue-300);
    border-radius: 50%;
    background: var(--ivory);
    color: var(--blue-800);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.story-content {
    padding-top: 0.25rem;
}

.story-content time {
    color: var(--blue-600);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.story-content h3 {
    margin: 0.45rem 0 0.8rem;
    font-size: 1.9rem;
}

.story-content p {
    margin-bottom: 0.8rem;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.9;
}

/* ------------------------------------------------------------
   13. GALERI
   ------------------------------------------------------------ */
.gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: 250px 250px;
    gap: 18px;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    background: var(--blue-200);
    text-align: left;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-item:hover img {
    filter: saturate(1.04);
    transform: scale(1.045);
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-tall img {
    object-position: center 62%;
}

.gallery-item-wide {
    grid-column: 2;
}

.gallery-number {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(16, 43, 77, 0.48);
    color: var(--paper);
    font-size: 0.62rem;
    letter-spacing: 0.05em;
}

/* ------------------------------------------------------------
   14. HADIAH DIGITAL
   ------------------------------------------------------------ */
.gift-section {
    max-width: 900px;
    text-align: center;
}

.gift-section .section-heading {
    margin-bottom: 2rem;
}

.bank-card {
    position: relative;
    overflow: hidden;
    max-width: 490px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 1.7rem 2rem 1.8rem;
    background: linear-gradient(130deg, #173b67 0%, #285884 55%, #5d82a9 100%);
    box-shadow: 0 20px 45px rgba(23, 59, 103, 0.2);
    color: var(--paper);
    text-align: left;
}

.bank-card::after {
    position: absolute;
    top: -100px;
    right: -85px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    content: "";
}

.bank-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.2rem;
}

.bank-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.bank-chip {
    display: block;
    width: 38px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}

.bank-label {
    position: relative;
    z-index: 1;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.58rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.bank-owner {
    position: relative;
    z-index: 1;
    margin-bottom: 1.3rem;
    color: var(--paper);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.11em;
}

.bank-number-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.bank-number-row strong {
    color: var(--paper);
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.copy-button {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    padding: 0.48rem 0.9rem;
    background: transparent;
    color: var(--paper);
    font-size: 0.68rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.copy-button:hover {
    background: var(--paper);
    color: var(--blue-900);
}

/* ------------------------------------------------------------
   15. RSVP DAN UCAPAN
   ------------------------------------------------------------ */
.rsvp-section {
    width: 100%;
    max-width: none;
    padding-right: max(24px, calc((100vw - 820px) / 2));
    padding-left: max(24px, calc((100vw - 820px) / 2));
    background: #edf3f8;
}

.rsvp-section .section-heading {
    margin-bottom: 2.4rem;
}

.rsvp-form {
    display: grid;
    max-width: 620px;
    gap: 9px;
    margin: 0 auto 3rem;
}

.rsvp-form label {
    margin-top: 0.55rem;
    color: var(--blue-900);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    border: 1px solid #cfdae5;
    border-radius: 5px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    font-size: 0.83rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(92, 134, 178, 0.12);
}

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

.form-submit {
    justify-self: start;
    margin-top: 0.7rem;
}

.form-feedback {
    min-height: 1.3rem;
    margin: 0;
    color: var(--blue-800);
    font-size: 0.74rem;
}

.wishes-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.8rem;
}

.wishes-heading h3 {
    color: var(--blue-950);
    font-size: 1.55rem;
}

.wishes-heading span {
    color: var(--muted);
    font-size: 0.68rem;
    white-space: nowrap;
}

.wishes-list {
    display: grid;
    gap: 12px;
}

.wish-card {
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.78);
}

.wish-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.4rem;
}

.wish-card strong {
    color: var(--blue-900);
    font-size: 0.82rem;
}

.wish-card .wish-status {
    color: var(--blue-600);
    font-size: 0.65rem;
}

.wish-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.8;
}

.empty-state {
    margin: 0;
    border: 1px dashed var(--blue-300);
    border-radius: 5px;
    padding: 1.2rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.storage-note {
    margin-top: 1.3rem;
    color: #8392a1;
    font-size: 0.65rem;
    line-height: 1.7;
}

/* ------------------------------------------------------------
   16. FOOTER
   ------------------------------------------------------------ */
.site-footer {
    padding: 4.5rem 24px 3rem;
    background: var(--blue-950);
    color: var(--paper);
    text-align: center;
}

.footer-monogram {
    margin-bottom: 0.6rem;
    color: var(--blue-300);
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.08em;
}

.footer-monogram span {
    color: var(--gold);
    font-family: var(--font-script);
    font-size: 2rem;
}

.site-footer .eyebrow {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer h2 {
    margin: 0.3rem 0;
    color: var(--paper);
    font-family: var(--font-script);
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 400;
}

.site-footer h2 em {
    color: var(--blue-300);
    font-style: normal;
}

.site-footer > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.73);
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.footer-line {
    display: block;
    width: 58px;
    height: 1px;
    margin: 1.6rem auto;
    background: var(--gold);
}

.site-footer .footer-small {
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   17. LIGHTBOX GALERI
   ------------------------------------------------------------ */
.lightbox {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    padding: 28px;
    background: rgba(9, 24, 42, 0.94);
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.lightbox img {
    max-width: min(100%, 1100px);
    max-height: 88vh;
    border: 8px solid rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    object-fit: contain;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    color: var(--paper);
    font-size: 1.6rem;
}

/* ------------------------------------------------------------
   18. RESPONSIVE TABLET
   ------------------------------------------------------------ */
@media (max-width: 1050px) {
    .site-header {
        width: calc(100% - 44px);
    }

    .main-nav {
        gap: 16px;
    }

    .main-nav a {
        font-size: 0.64rem;
    }

    .hero-section {
        min-height: 760px;
        gap: 3vw;
        padding-right: 5vw;
        padding-left: 5vw;
    }

    .hero-copy h1 {
        font-size: clamp(5rem, 9vw, 7rem);
    }

    .couple-layout {
        gap: 25px;
    }
}

/* ------------------------------------------------------------
   19. RESPONSIVE MOBILE DAN TABLET KECIL
   ------------------------------------------------------------ */
@media (max-width: 760px) {
    html {
        scroll-padding-top: 70px;
    }

    .site-header {
        width: calc(100% - 36px);
        min-height: 72px;
        gap: 12px;
    }

    .brand-name {
        font-size: 0.88rem;
    }

    .music-button {
        min-height: 36px;
        padding: 0.35rem 0.7rem;
        font-size: 0.58rem;
    }

    .nav-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        order: 3;
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-toggle span {
        display: block;
        width: 14px;
        height: 1px;
        background: var(--paper);
    }

    .main-nav {
        position: absolute;
        top: 71px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        padding: 8px 18px;
        background: rgba(16, 43, 77, 0.97);
        box-shadow: 0 18px 30px rgba(16, 43, 77, 0.2);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 11px 0;
        font-size: 0.72rem;
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }

    .hero-section {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 2.1rem;
        padding: 130px 24px 88px;
    }

    .hero-copy {
        max-width: 620px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-copy .eyebrow {
        margin-bottom: 1.4rem;
    }

    .hero-kicker {
        font-size: 1.1rem;
    }

    .hero-copy h1 {
        margin-left: 0;
        font-size: clamp(5rem, 18vw, 7.2rem);
    }

    .ornament-divider {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
        font-size: 1.12rem;
    }

    .wedding-date-pill {
        justify-content: center;
    }

    .countdown {
        justify-content: center;
    }

    .hero-visual {
        width: min(100%, 510px);
        justify-self: center;
        padding-right: 12px;
        padding-left: 12px;
    }

    .hero-photo-frame {
        aspect-ratio: 1.05 / 1;
    }

    .photo-caption {
        right: 12px;
        font-size: 0.98rem;
    }

    .scroll-cue {
        bottom: 22px;
    }

    .section-shell {
        width: calc(100% - 40px);
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .section-heading {
        margin-bottom: 2.4rem;
    }

    .couple-section,
    .story-section,
    .rsvp-section {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .couple-layout {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .couple-photo-wrap {
        grid-column: 1 / -1;
        grid-row: 1;
        width: min(100%, 410px);
        margin: 0 auto 0.7rem;
    }

    .person-card {
        text-align: center;
    }

    .person-card-right {
        text-align: center;
    }

    .person-card h3 {
        font-size: clamp(1.45rem, 5vw, 2rem);
    }

    .person-family {
        font-size: 0.72rem;
    }

    .event-cards {
        gap: 13px;
    }

    .event-card {
        padding: 1.6rem 0.8rem;
    }

    .event-card h3 {
        font-size: 1.5rem;
    }

    .event-card .event-location {
        font-size: 1.05rem;
    }

    .venue-panel {
        grid-template-columns: 1fr;
    }

    .venue-photo,
    .venue-photo img {
        min-height: 230px;
        max-height: 300px;
    }

    .venue-copy {
        padding: 1.8rem;
    }

    .venue-copy h3 {
        font-size: 3rem;
    }

    .story-timeline::before {
        left: 26px;
    }

    .story-item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 17px;
    }

    .story-year {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .story-content h3 {
        font-size: 1.6rem;
    }

    .story-content p {
        font-size: 0.77rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 190px;
        gap: 10px;
    }

    .gallery-item-tall {
        grid-row: span 2;
    }

    .gallery-item-wide {
        grid-column: 2;
    }

    .bank-card {
        padding: 1.4rem;
    }

    .bank-number-row strong {
        font-size: 1.25rem;
    }

    .wishes-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

/* ------------------------------------------------------------
   20. RESPONSIVE MOBILE KECIL
   ------------------------------------------------------------ */
@media (max-width: 430px) {
    .cover-screen {
        padding: 18px;
    }

    .cover-screen::before {
        inset: 10px;
    }

    .cover-card {
        padding: 2.2rem 1rem;
    }

    .cover-card h1 {
        font-size: 3.25rem;
    }

    .site-header {
        width: calc(100% - 26px);
    }

    .brand-symbol {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 0.78rem;
    }

    .music-button {
        gap: 5px;
        padding: 0.3rem 0.55rem;
    }

    .hero-section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .hero-copy h1 {
        font-size: 4.8rem;
    }

    .countdown {
        gap: 6px;
    }

    .countdown-item {
        min-width: 66px;
        padding: 0.55rem 0.45rem;
    }

    .countdown-item strong {
        font-size: 1.55rem;
    }

    .event-date-banner {
        gap: 13px;
    }

    .event-date-day {
        font-size: 3.8rem;
    }

    .event-date-year {
        display: none;
    }

    .event-cards {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 1.7rem 1rem;
    }

    .gallery-grid {
        grid-template-rows: 190px 160px;
    }

    .bank-number-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .bank-number-row strong {
        font-size: 1.5rem;
    }
}

/* ------------------------------------------------------------
   21. AKSESIBILITAS GERAK
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   FORM KARTU UCAPAN, JUMLAH ROMBONGAN, DAN SUMBANGAN
   ============================================================ */

.field-note {
    margin: -2px 0 0.35rem;
    color: #75879a;
    font-size: 0.68rem;
    line-height: 1.65;
}

.money-input {
    display: flex;
    min-height: 48px;
    align-items: center;
    border: 1px solid #cfdae5;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.88);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.money-input:focus-within {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(92, 134, 178, 0.12);
}

.money-input > span {
    padding: 0 0.9rem;
    color: var(--blue-900);
    font-size: 0.8rem;
    font-weight: 700;
}

.money-input input {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.money-input input:focus {
    border: 0;
    box-shadow: none;
}

.wish-donation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0.8rem;
    border-top: 1px solid #e0e8f0;
    padding-top: 0.65rem;
}

.wish-donation span {
    color: #75879a;
    font-size: 0.66rem;
}

.wish-donation strong {
    color: var(--blue-900);
    font-size: 0.75rem;
}
