/* ============================================
   ClearLight Ventures — Private Wellness Salon
   Luxury RSVP Page
   ============================================ */

:root {
    --gold: #B8960C;
    --gold-light: #D4AF37;
    --gold-dark: #8B7200;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --text-dark: #2C2C2C;
    --text-mid: #5A5A5A;
    --text-light: #8A8A7A;
    --green-dark: #4A6E28;
    --green-mid: #6B8E42;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--cream);
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background-color: transparent;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ---- Palm Trees ---- */
.palm-left,
.palm-right {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    pointer-events: none;
    overflow: visible;
}

.palm-left {
    left: 0;
}

.palm-right {
    right: 0;
}

.palm-left img,
.palm-right img {
    height: 100%;
    width: auto;
    display: block;
}

.palm-left img {
    float: left;
}

.palm-right img {
    float: right;
}

/* ---- Main Container ---- */
.container {
    max-width: 560px;
    margin: 0 auto;
    padding: 80px 36px 60px;
    position: relative;
    z-index: 2;
}

/* ---- Water Caustics ---- */
#caustics {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    margin-bottom: 20px;
}

.hero .divider-line {
    margin-top: 30px;
}

.brand-name {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: #5C4A0A;
    letter-spacing: 0.15em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.divider-line {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0;
}

.divider-line::before,
.divider-line::after {
    content: '';
    flex: 1;
    height: 0.5px;
    background: #9A8A5A;
}

.divider-line.short::before,
.divider-line.short::after {
    max-width: 80px;
    margin: 0 auto;
}

.divider-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #5C4A0A;
    white-space: nowrap;
}

.event-title {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    color: var(--text-dark);
    margin-top: 107px;
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5C4A0A;
    margin-top: 24px;
    letter-spacing: 0.02em;
}

/* ---- Event Details Box ---- */
.event-details-box {
    margin: 16px auto;
    max-width: 480px;
}

.details-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    border: 1px solid var(--gold);
    padding: 28px 36px;
    background: rgba(253, 248, 240, 0.6);
}

.location {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-script {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    font-weight: 400;
    font-style: normal;
    color: #8B7200;
    line-height: 1.1;
}

.datetime {
    display: flex;
    flex-direction: column;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ---- Description ---- */
.description {
    text-align: center;
    margin: 16px auto 8px;
    max-width: 540px;
}

.description p {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-mid);
    line-height: 1.7;
    font-style: italic;
}

/* ---- Section Blocks ---- */
.section-block {
    margin: 48px 0;
    text-align: center;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.65rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 32px;
}

/* ---- Hosts ---- */
.cohosts-section {
    margin-top: 16px;
    margin-bottom: 8px;
}

.hosts-row {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: nowrap;
    margin-top: 16px;
}

.host-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.gold-cross {
    color: #5C4A0A;
    margin-right: 6px;
    font-weight: 700;
    font-size: 0.9em;
}

/* ---- Speakers ---- */
.speaker {
    margin-bottom: 28px;
}

.speaker-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.speaker-bio {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-mid);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- GDR Section ---- */
.gdr-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 16px;
    line-height: 1.3;
}

.gdr-description {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ---- Lunch ---- */
.lunch-section {
    margin: 8px 0;
}

.lunch-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.15em;
    margin: 16px 0;
    text-transform: uppercase;
}

.lunch-title-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* ---- RSVP Button ---- */
.rsvp-section {
    text-align: center;
    margin: 56px 0 40px;
}

.rsvp-btn {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--cream);
    background: var(--gold);
    border: none;
    padding: 18px 64px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.rsvp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.rsvp-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(184, 150, 12, 0.3);
}

.rsvp-btn:hover::before {
    left: 100%;
}

/* ---- RSVP Shimmer ---- */
.rsvp-shimmer {
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), transparent);
    opacity: 0;
    pointer-events: none;
}

.rsvp-shimmer.fire {
    animation: rsvp-shimmer 1s ease-in-out forwards;
}

@keyframes rsvp-shimmer {
    0%   { left: -60%; opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { left: 140%; opacity: 0; }
}

/* ---- Sponsors ---- */
.sponsors {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
}

.sponsors p {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-mid);
    letter-spacing: 0.1em;
}

/* ---- Bottom Flourish ---- */
.bottom-flourish {
    text-align: center;
    margin-top: 32px;
    padding-bottom: 20px;
}

.bottom-flourish svg {
    width: 160px;
    height: auto;
}

/* ============================================
   RSVP Inline — Luxury Step-by-Step
   ============================================ */

.rsvp-inline {
    display: none;
    max-width: 420px;
    margin: 0 auto;
    padding: 48px 32px 40px;
    position: relative;
    border: 1px solid var(--gold);
    background: rgba(253, 248, 240, 0.6);
    animation: rsvpExpand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rsvp-inline.active {
    display: block;
}

@keyframes rsvpExpand {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        max-height: 400px;
        padding-top: 48px;
        padding-bottom: 40px;
        transform: translateY(0);
    }
}

.rsvp-initial {
    transition: all 0.4s ease;
}

.rsvp-initial.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    pointer-events: none;
}

/* Progress Bar */
.rsvp-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(184, 150, 12, 0.15);
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    width: 14.28%;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps */
.rsvp-step {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 0.4s ease forwards;
}

.rsvp-step.active {
    display: flex;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rsvp-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 32px;
    line-height: 1.4;
}

.rsvp-sublabel {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.rsvp-input {
    width: 100%;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid rgba(184, 150, 12, 0.4);
    background: transparent;
    color: var(--text-dark);
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 40px;
}

.rsvp-input::placeholder {
    color: var(--text-light);
    font-style: italic;
    opacity: 0.7;
}

.rsvp-input:focus {
    border-bottom-color: var(--gold);
}

/* Guest Selector */
.guest-selector {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.guest-count {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--gold);
    min-width: 48px;
    text-align: center;
}

.guest-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.guest-btn:hover {
    background: var(--gold);
    color: var(--cream);
}

/* Navigation Buttons */
.rsvp-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.rsvp-next,
.rsvp-submit {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--cream);
    background: var(--gold);
    border: none;
    padding: 14px 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.rsvp-next:hover,
.rsvp-submit:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.rsvp-back {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 20px;
    transition: color 0.3s;
    letter-spacing: 0.05em;
}

.rsvp-back:hover {
    color: var(--gold);
}

/* Confirmation */
.rsvp-confirmation .confirm-icon {
    margin-bottom: 28px;
}

.rsvp-confirmation .confirm-icon svg {
    width: 52px;
    height: 52px;
}

.confirm-heading {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.confirm-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   Animations — Subtle entrance
   ============================================ */

.hero,
.event-details-box,
.description,
.section-block,
.rsvp-section,
.sponsors,
.bottom-flourish {
    opacity: 0;
    transform: translateY(20px);
    animation: revealSection 0.8s ease forwards;
}

.hero { animation-delay: 0.1s; }
.event-details-box { animation-delay: 0.25s; }
.description { animation-delay: 0.4s; }
.section-block:nth-of-type(1) { animation-delay: 0.5s; }
.section-block:nth-of-type(2) { animation-delay: 0.6s; }
.section-block:nth-of-type(3) { animation-delay: 0.7s; }
.section-block:nth-of-type(4) { animation-delay: 0.8s; }
.rsvp-section { animation-delay: 0.9s; }
.sponsors { animation-delay: 1.0s; }
.bottom-flourish { animation-delay: 1.1s; }

@keyframes revealSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Diamond sparkle ---- */
@keyframes sparkle-pop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(90deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
}

.sparkle-target {
    position: relative;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    pointer-events: none;
    z-index: 20;
    animation: sparkle-pop 0.6s ease-in-out forwards;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 1px;
}

.sparkle::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.sparkle::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* ---- Desktop: bring trees closer to content ---- */
@media (min-width: 769px) {
    .palm-left {
        left: calc(50% - 580px);
    }
    .palm-right {
        right: calc(50% - 580px);
    }

    .container {
        padding-top: 140px;
    }

    /* Make brand name bigger */
    .brand-name {
        font-size: 3.8rem;
    }

    /* Move "Presents" down */
    .divider-line {
        margin-top: 53px;
    }

    /* Shorter divider lines next to "Presents" */
    .divider-line::before,
    .divider-line::after {
        max-width: 100px;
        margin: 0 auto;
    }

    .event-title {
        margin-top: 123px;
    }

    /* Tighten spacing below to compensate */
    .tagline {
        margin-top: 16px;
    }

    .cohosts-section {
        margin-top: 12px;
        margin-bottom: 4px;
    }

    .event-details-box {
        margin: 12px auto;
    }

    .description {
        margin: 12px auto 4px;
    }

    .section-block {
        margin: 32px 0;
    }

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

    .speaker {
        margin-bottom: 20px;
    }

    .lunch-section {
        margin: 36px 0;
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .container::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -28px;
        right: -28px;
        bottom: 0;
        background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(212, 175, 55, 0.06) 15%,
            rgba(212, 175, 55, 0.10) 40%,
            rgba(212, 175, 55, 0.14) 100%
        );
        z-index: -1;
        pointer-events: none;
    }

    .palm-left,
    .palm-right {
        overflow: hidden;
        opacity: 0.7;
    }

    .palm-left {
        left: -100px;
    }

    .palm-right {
        right: -100px;
    }

    .palm-left img,
    .palm-right img {
        height: auto;
        width: 200px;
        max-width: none;
    }

    .container {
        padding: 80px 28px 40px;
    }

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

    .event-title {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1.15rem;
    }

    .details-inner {
        flex-direction: column;
        gap: 16px;
        padding: 24px 28px;
        text-align: center;
    }

    .datetime {
        align-items: center;
    }

    .hosts-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 20px;
    }

    .host-name {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    .gdr-title {
        font-size: 1.3rem;
    }

    .rsvp-inline {
        padding: 40px 24px 32px;
    }

    .rsvp-label {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .palm-left img,
    .palm-right img {
        width: 160px;
    }

    .host-name {
        font-size: 0.9rem;
    }

    .hosts-row {
        gap: 4px 12px;
    }

    .container {
        padding: 60px 20px 30px;
    }

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

    .event-title {
        font-size: 0.95rem;
        margin-top: 56px;
    }

    .tagline {
        font-size: 1rem;
    }

    .location-script {
        font-size: 1.8rem;
    }

    .details-inner {
        padding: 20px 20px;
        gap: 12px;
    }

    .rsvp-btn {
        padding: 16px 48px;
    }

    .rsvp-inline {
        padding: 36px 20px 28px;
    }
}

/* ---- Subtle texture overlay ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8960c' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}
