/* ============================================================
   ROOT
============================================================ */

:root {
    --cream: #fff9ed;
    --cream-dark: #f7edda;
    --cream-deep: #efe0c5;

    --orange: #e97835;
    --orange-dark: #bd4d22;
    --orange-soft: #f6c29f;

    --saffron: #f3a51b;
    --yellow: #ffd66b;

    --pink: #d95f67;
    --pink-light: #f7c7c3;
    --pink-soft: #f8e1dd;

    --green: #49694c;
    --green-dark: #2e4834;
    --green-light: #dfe8da;

    --maroon: #71343a;
    --brown: #51372d;

    --gold: #c89a42;
    --gold-light: #f3d795;

    --ink: #29231f;
    --muted: #756a61;

    --white: #ffffff;

    --shadow: 0 25px 70px rgba(83,48,22,.13);
    --shadow-small: 0 12px 35px rgba(83,48,22,.09);

    --serif:
        "Cormorant Garamond",
        Georgia,
        serif;

    --script:
        "Great Vibes",
        cursive;

    --sans:
        "DM Sans",
        Arial,
        sans-serif;
}


/* ============================================================
   RESET
============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

body::selection {
    background: var(--orange);
    color: white;
}

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

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

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


/* ============================================================
   GLOBAL LAYOUT
============================================================ */

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 65px;
    text-align: center;
}

.eyebrow {
    color: var(--orange);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 17px;
}

.section-heading h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: .9;
    margin-bottom: 25px;
    color: var(--brown);
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: .98rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   DECORATIVE ELEMENTS
============================================================ */

.flower {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: .8;
}

.flower::before,
.flower::after {
    content: "";
    position: absolute;
    width: 55px;
    height: 95px;
    border-radius: 100% 0 100% 0;
    background: linear-gradient(
        135deg,
        var(--pink),
        var(--pink-light)
    );
    transform-origin: bottom center;
}

.flower::before {
    transform: rotate(-35deg);
}

.flower::after {
    transform: rotate(35deg);
}

.flower.one {
    top: 70px;
    left: 2%;
    transform: scale(.7) rotate(-20deg);
}

.flower.two {
    right: 3%;
    bottom: 40px;
    transform: scale(.8) rotate(30deg);
}

.mandala {
    width: 190px;
    height: 190px;
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200,154,66,.3);
    opacity: .45;
}

.mandala::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    border: 1px dashed rgba(200,154,66,.55);
}

.mandala::after {
    content: "✦";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 2rem;
}

.mandala-left {
    left: -80px;
    top: 30%;
    animation: spin 35s linear infinite;
}

.mandala-right {
    right: -80px;
    bottom: 10%;
    animation: spin 40s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   NAVIGATION
============================================================ */

.navbar {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5%;

    color: white;

    transition: .35s ease;
}

.navbar.scrolled {
    background: rgba(54,35,26,.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.logo {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    white-space: nowrap;
}

.logo span {
    color: var(--gold-light);
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    font-size: .68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    transition: .25s;
}

.nav-links a:hover {
    color: var(--yellow);
}

.nav-rsvp {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.7);
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}


/* ============================================================
   HERO
============================================================ */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: white;

    overflow: hidden;

    background:
        linear-gradient(
            120deg,
            rgba(70,35,22,.65),
            rgba(183,69,40,.3),
            rgba(54,65,40,.52)
        ),
        url(
            "https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=85"
        );

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 0,
            rgba(20,10,5,.45) 100%
        );
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;

    background: var(--cream);

    clip-path: ellipse(75% 45% at 50% 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 30px;

    animation: heroIn 1.2s ease both;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hero-script {
    font-family: var(--script);
    font-size: clamp(2rem,5vw,3.5rem);
    color: var(--gold-light);
    margin-bottom: -15px;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 600;

    font-size: clamp(6rem,16vw,12rem);

    line-height: .75;
    letter-spacing: -5px;

    text-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.hero h1 span {
    color: var(--yellow);
    font-family: var(--script);
    font-size: .55em;
    letter-spacing: 0;
}

.hero-subtitle {
    margin-top: 35px;

    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
}

.hero-date {
    margin-top: 15px;

    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 3px;
}

.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    color: var(--yellow);
    font-size: 15px;

    animation:
        float 5s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    left: 15%;
    top: 25%;
}

.sparkle:nth-child(2) {
    left: 75%;
    top: 20%;
    animation-delay: 1s;
}

.sparkle:nth-child(3) {
    left: 85%;
    top: 70%;
    animation-delay: 2s;
}

.sparkle:nth-child(4) {
    left: 20%;
    top: 75%;
    animation-delay: 3s;
}

@keyframes float {
    0%,100% {
        transform: translateY(0) scale(1);
        opacity: .5;
    }

    50% {
        transform: translateY(-20px) scale(1.4);
        opacity: 1;
    }
}


/* ============================================================
   BUTTONS
============================================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 30px;
    padding: 14px 28px;

    border: 0;
    cursor: pointer;

    background: var(--orange);
    color: white;

    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: .3s;

    box-shadow:
        0 10px 25px rgba(190,78,34,.2);
}

.button:hover {
    background: var(--orange-dark);
    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(190,78,34,.3);
}

.button-outline {
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
    box-shadow: none;
}

.button-outline:hover {
    color: white;
}


/* ============================================================
   INTRO — EDITORIAL SPLIT
============================================================ */

.intro {
    background: var(--cream);
    padding-top: 150px;
}

.intro-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.intro-number {
    font-family: var(--serif);
    font-size: 9rem;
    line-height: .7;
    color: var(--pink-light);
    font-weight: 600;
}

.intro-copy .eyebrow {
    margin-bottom: 12px;
}

.intro-copy h2 {
    font-family: var(--serif);
    color: var(--brown);
    font-size: clamp(3rem,6vw,5rem);
    line-height: .92;
    margin-bottom: 25px;
}

.intro-text {
    max-width: 650px;

    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--muted);
}

.big-script {
    display: block;
    margin-top: 30px;

    font-family: var(--script);
    font-size: 3rem;
    color: var(--orange);
}


/* ============================================================
   INVITATION
============================================================ */

.invitation-section {
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(243,165,27,.12),
            transparent 30%
        ),
        var(--cream-dark);
}

.invitation-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    align-items: center;
    gap: 60px;
}

.invitation-intro {
    padding-left: 20px;
}

.invitation-intro h2 {
    font-family: var(--serif);
    font-size: clamp(3.5rem,6vw,6rem);
    line-height: .85;
    color: var(--brown);
}

.invitation-card {
    position: relative;

    max-width: 680px;
    width: 100%;
    margin: auto;

    padding: 75px 45px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #fffefa,
            #fff8e9
        );

    border:
        1px solid var(--gold-light);

    box-shadow: var(--shadow);

    overflow: hidden;
}

.invitation-card::before {
    content: "";
    position: absolute;
    inset: 14px;

    border:
        1px solid rgba(200,154,66,.45);

    pointer-events: none;
}

.invitation-card::after {
    content: "✦";

    position: absolute;
    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    color: var(--gold);
    font-size: 1.3rem;
}

.invitation-card h3 {
    position: relative;

    font-family: var(--serif);
    font-size: 5rem;
    font-weight: 500;

    color: var(--maroon);
}

.invitation-script {
    font-family: var(--script);
    color: var(--orange);
    font-size: 2rem;
}

.invitation-divider {
    width: 100px;
    height: 1px;

    margin: 28px auto;

    background: var(--gold);
}

.invitation-date {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 2px;
}


/* ============================================================
   EVENTS
============================================================ */

.events {
    background: white;
}

.event-layout {
    display: grid;
    grid-template-columns: .55fr 1.45fr;
    gap: 70px;
    align-items: start;
}

.event-intro {
    position: sticky;
    top: 120px;
}

.event-intro h2 {
    font-family: var(--serif);
    font-size: clamp(3.5rem,6vw,5.5rem);
    line-height: .85;
    color: var(--brown);
}

.event-intro p {
    color: var(--muted);
    margin-top: 25px;
}

.event-list {
    display: flex;
    flex-direction: column;
}

.event-card {
    position: relative;

    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 30px;
    align-items: center;

    padding: 35px 0;

    border-top: 1px solid #e4d9ca;

    transition: .3s;
}

.event-card:last-child {
    border-bottom: 1px solid #e4d9ca;
}

.event-card:hover {
    padding-left: 15px;
}

.event-number {
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: .65rem;
}

.event-card h3 {
    margin-bottom: 5px;

    font-family: var(--serif);
    font-size: 2.3rem;
    font-weight: 600;
}

.event-card p {
    color: var(--muted);
    font-size: .9rem;
}

.event-time {
    padding: 8px 12px;

    background: var(--cream);

    color: var(--orange);

    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;

    white-space: nowrap;
}


/* ============================================================
   FOOD & MEALS
============================================================ */

.haldi {
    color: white;

    background:
        linear-gradient(
            rgba(101,53,20,.62),
            rgba(101,53,20,.65)
        ),
        url(
            "https://images.unsplash.com/photo-1544078751-58fee2d8a03b?auto=format&fit=crop&w=1800&q=80"
        );

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.haldi .section-heading h2 {
    color: white;
}

.haldi .section-heading p:not(.eyebrow) {
    color: #f3e8d5;
}

.food-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.food-box {
    padding: 50px;

    background:
        rgba(255,255,255,.1);

    border:
        1px solid rgba(255,255,255,.25);

    backdrop-filter: blur(10px);
}

.food-box h3 {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 25px;
}

.food-date {
    display: block;

    color: var(--gold-light);

    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;

    margin-bottom: 20px;
}

.food-meal {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid rgba(255,255,255,.2);
}

.food-meal:last-child {
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.food-meal-name {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: white;
}

.food-meal-time {
    color: var(--yellow);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.food-side {
    padding: 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255,214,107,.12);

    border: 1px solid rgba(255,214,107,.25);
}

.food-side h3 {
    font-family: var(--serif);
    font-size: 2.8rem;
    color: var(--yellow);
    margin-bottom: 15px;
}

.food-side p {
    font-family: var(--serif);
    font-size: 1.6rem;
    line-height: 1.2;
    color: #fff4d4;
}


/* ============================================================
   HINDU CEREMONIES
============================================================ */

.hindu {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(217,95,103,.12),
            transparent 25%
        ),
        var(--cream);
}

.ceremony-layout {
    display: grid;
    grid-template-columns: .6fr 1.4fr;
    gap: 70px;
    align-items: start;
}

.ceremony-intro {
    position: sticky;
    top: 120px;
}

.ceremony-intro h2 {
    font-family: var(--serif);
    font-size: clamp(3.5rem,6vw,5.5rem);
    line-height: .85;
    color: var(--brown);
}

.ceremony-intro p {
    margin-top: 25px;
    color: var(--muted);
}

.ceremony-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
}

.ceremony {
    padding: 32px;

    background: white;

    border:
        1px solid #eadfd0;

    position: relative;

    transition: .3s;
}

.ceremony:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-small);
}

.ceremony-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #fff2d2;
    color: var(--orange);

    margin-bottom: 18px;

    font-size: 1.3rem;
}

.ceremony h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.ceremony p {
    color: var(--muted);
    font-size: .86rem;
}


/* ============================================================
   QUOTE
============================================================ */

.parallax-quote {
    min-height: 550px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;

    background:
        linear-gradient(
            rgba(42,33,27,.55),
            rgba(42,33,27,.55)
        ),
        url(
            "https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=2000&q=85"
        );

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.parallax-quote h2 {
    max-width: 900px;

    font-family: var(--serif);
    font-size: clamp(3.5rem,7vw,6rem);

    font-weight: 500;
    line-height: 1.05;
}

.parallax-quote span {
    display: block;
    margin-top: 30px;

    font-family: var(--script);
    color: var(--gold-light);
    font-size: 2.8rem;
}


/* ============================================================
   ACCOMMODATIONS
============================================================ */

.accommodations {
    background: var(--cream-dark);
}

.stay-layout {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 70px;
    align-items: start;
}

.stay-intro h2 {
    font-family: var(--serif);
    font-size: clamp(3.5rem,6vw,5.5rem);
    line-height: .85;
    color: var(--brown);
}

.stay-intro p {
    margin-top: 25px;
    color: var(--muted);
}

.stay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stay-card {
    position: relative;

    padding: 45px;

    background: white;

    border:
        1px solid #e4d6c2;

    overflow: hidden;
}

.stay-card::before {
    content: "🏡";

    position: absolute;
    right: 30px;
    top: 25px;

    font-size: 2rem;
    opacity: .15;
}

.stay-label {
    color: var(--orange);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.stay-card h3 {
    font-family: var(--serif);
    font-size: 2.5rem;
    margin: 12px 0;
}

.stay-card p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 9px;
}


/* ============================================================
   RSVP
============================================================ */

.rsvp {
    background:
        linear-gradient(
            135deg,
            #f9d6c2,
            #fff3dd
        );
}

/* FIX: minmax(0, …) stops the columns from resizing to their content */
.rsvp-layout {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 70px;
    align-items: start;
}

.rsvp-intro {
    position: sticky;
    top: 120px;
}

.rsvp-intro h2 {
    font-family: var(--serif);
    font-size: clamp(3.5rem,6vw,5.5rem);
    line-height: .85;
    color: var(--brown);
}

.rsvp-intro p {
    margin-top: 25px;
    color: var(--muted);
}

/* FIX: width: 100% — with margin: auto alone the box shrank to its
   content, so it grew whenever the error message appeared. */
.form-container {
    width: 100%;
    min-width: 0;
    max-width: 800px;
    margin: auto;

    padding: 55px;

    background: white;

    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* FIX: author display rules beat the hidden attribute, so restate it */
.form-row[hidden],
.form-group[hidden] {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;

    border:
        1px solid #ddd1c2;

    background: #fffdf9;

    padding: 14px;

    outline: none;

    font-size: .9rem;
}

/* FIX: custom dropdown arrow with room on the right.
   Must stay AFTER the rule above, which resets background-image. */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    padding-right: 3rem;

    color: var(--ink);
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2351372d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: .9rem;
}

select:disabled {
    opacity: .6;
    cursor: not-allowed;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--orange);
}

textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: .85rem;
    font-weight: 400;

    letter-spacing: 0;
    text-transform: none;
}

.radio-group input {
    width: auto;
}


/* ============================================================
   REGISTRY
============================================================ */

.registry {
    background: white;
    text-align: center;
}

.registry-inner {
    max-width: 900px;
    margin: auto;
    padding: 80px 50px;

    border:
        1px solid #eadfd0;

    background: var(--cream);
}

.registry-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;

    margin-top: 30px;
}

.registry-buttons a {
    padding: 13px 20px;

    border:
        1px solid #dacdbb;

    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;

    transition: .3s;
}

.registry-buttons a:hover {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}


/* ============================================================
   GALLERY
============================================================ */

.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(12,1fr);

    grid-auto-rows: 190px;

    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform .7s ease,
        filter .5s ease;
}

.gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            transparent 55%,
            rgba(0,0,0,.3)
        );

    opacity: 0;
    transition: .4s;
}

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

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:nth-child(1) {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-item:nth-child(2) {
    grid-column: span 3;
}

.gallery-item:nth-child(3) {
    grid-column: span 4;
}

.gallery-item:nth-child(4) {
    grid-column: span 3;
}

.gallery-item:nth-child(5) {
    grid-column: span 4;
}

.gallery-item:nth-child(6) {
    grid-column: span 5;
}


/* ============================================================
   FAQ
============================================================ */

.faq-section {
    background: var(--cream-dark);
}

.faq-layout {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 80px;
    align-items: start;
}

.faq-intro h2 {
    font-family: var(--serif);
    font-size: clamp(3.5rem,6vw,5.5rem);
    line-height: .85;
    color: var(--brown);
}

.faq-intro p {
    margin-top: 25px;
    color: var(--muted);
}

.faq {
    max-width: 800px;
    margin: auto;
}

details {
    border-top: 1px solid #ded4c7;
    padding: 22px 0;
}

details:last-child {
    border-bottom: 1px solid #ded4c7;
}

summary {
    cursor: pointer;
    list-style: none;

    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";

    float: right;

    color: var(--orange);

    font-family: var(--sans);
}

details[open] summary::after {
    content: "−";
}

details p {
    padding-top: 12px;

    color: var(--muted);
    font-size: .9rem;
}


/* ============================================================
   FOOTER
============================================================ */

footer {
    position: relative;

    padding: 100px 20px;

    background: var(--green-dark);

    color: white;

    text-align: center;

    overflow: hidden;
}

.footer-monogram {
    font-family: var(--serif);
    font-size: 4rem;
    color: var(--gold-light);
}

.footer-script {
    font-family: var(--script);
    font-size: 2rem;
    color: var(--pink-light);
    margin-bottom: 15px;
}

footer p {
    color: #d1d8d0;
    font-size: .75rem;
}


/* ============================================================
   BACK TO TOP
============================================================ */

.top-button {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: var(--orange);
    color: white;

    cursor: pointer;

    opacity: 0;
    pointer-events: none;

    transition: .3s;

    z-index: 90;

    box-shadow:
        0 10px 25px rgba(83,48,22,.2);
}

.top-button.show {
    opacity: 1;
    pointer-events: auto;
}

.top-button:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}


/* ============================================================
   REVEAL
============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* ============================================================
   MOBILE
============================================================ */

@media(max-width: 900px) {

    .navbar {
        height: 70px;
        padding: 0 6%;
    }

    .nav-links {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        padding: 25px;

        gap: 18px;

        background: rgba(54,35,26,.98);
    }

    .nav-links.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        background-attachment: scroll;
    }

    .intro-layout,
    .invitation-layout,
    .event-layout,
    .ceremony-layout,
    .stay-layout,
    .rsvp-layout,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .intro-number {
        display: none;
    }

    .event-intro,
    .ceremony-intro,
    .rsvp-intro {
        position: static;
    }

    .event-card {
        grid-template-columns: 80px 1fr;
    }

    .event-time {
        grid-column: 2;
        justify-self: start;
    }

    .ceremony-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stay-grid {
        grid-template-columns: 1fr 1fr;
    }

    .haldi-content,
    .food-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .parallax-quote {
        background-attachment: scroll;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 190px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media(max-width: 550px) {

    .section {
        padding: 85px 0;
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .hero h1 {
        font-size: 5.5rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-date {
        letter-spacing: 2px;
    }

    .intro-copy h2,
    .event-intro h2,
    .ceremony-intro h2,
    .stay-intro h2,
    .rsvp-intro h2,
    .faq-intro h2 {
        font-size: 3.5rem;
    }

    .invitation-card {
        padding: 65px 20px;
    }

    .invitation-card h3 {
        font-size: 4rem;
    }

    .event-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .event-time {
        grid-column: auto;
    }

    .ceremony-grid,
    .stay-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 35px 25px;
    }

    .registry-inner {
        padding: 55px 25px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .stay-card,
    .event-card {
        padding: 32px 25px;
    }

    .info-menu {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .info-menu-card {
        min-height: 145px;
        padding: 24px;
    }

    .food-box,
    .food-side {
        padding: 32px 25px;
    }

    .food-box h3 {
        font-size: 2.5rem;
    }

    .food-side h3 {
        font-size: 2.4rem;
    }

    .food-side p {
        font-size: 1.35rem;
    }

    .food-meal {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .food-meal-name {
        font-size: 1.5rem;
    }

    .top-button {
        right: 15px;
        bottom: 15px;
        width: 42px;
        height: 42px;
    }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* ============================================================
   WORDPRESS THEME INTEGRATION
============================================================ */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

body {
    overflow-x: hidden;
}

.mb-wedding-site {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.mb-wedding-site .rsvp-message {
    display: none;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid transparent;
    font-size: .85rem;

    /* FIX: long messages wrap instead of stretching the form */
    overflow-wrap: anywhere;
}

.mb-wedding-site .rsvp-message.success,
.mb-wedding-site .rsvp-message.error {
    display: block;
}

.mb-wedding-site .rsvp-message.success {
    background: var(--green-light);
    border-color: rgba(73,105,76,.25);
    color: var(--green-dark);
}

.mb-wedding-site .rsvp-message.error {
    background: var(--pink-soft);
    border-color: rgba(113,52,58,.22);
    color: var(--maroon);
}

.mb-wedding-site .form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.mb-wedding-site .form-honeypot input {
    position: absolute !important;
    left: -10000px !important;
}

.mb-wedding-site .mb-rsvp-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.mb-wedding-site .mb-submit-loading[hidden],
.mb-wedding-site .mb-submit-text[hidden] {
    display: none;
}

/* Keep WordPress logged-in controls from creating a visible page offset. */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}


/* ============================================================
   FIELD ERRORS
============================================================ */

.field-error {
    margin: 6px 0 0;
    color: #b3261e;
    font-size: 0.85rem;
    line-height: 1.3;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #b3261e;
}