/* =============================================
   HERO SECTION
   ============================================= */
.section--hero {
    padding: 0 var(--space-lg) var(--space-xl);
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: visible;
    z-index: 2;
}

.hero__torn-top {
    position: absolute;
    top: -190px;
    left: -18px;
    right: -18px;
    z-index: 1;
}

.hero__torn-top img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure all hero content sits above the torn paper */
.section--hero>*:not(.hero__torn-top) {
    position: relative;
    z-index: 2;
}

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

.hero__seal {
    margin: -160px auto 40px;
    width: 180px;
    height: 180px;
    position: relative;
    z-index: 10;
}

.hero__seal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.hero__subtitle {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-sage-dark);
    margin-bottom: 24px;
}

.hero__names {
    font-family: var(--font-script);
    font-size: var(--font-size-hero);
    font-weight: normal;
    line-height: 0.9;
    color: var(--color-olive-text);
    margin-bottom: 40px;
    text-align: center;
}

.hero__ampersand {
    display: block;
}

.hero__date {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--color-sage);
    margin-bottom: 52px;
}

.hero__divider,
.hero__divider-bottom {
    margin: 0 auto 30px;
}

.hero__quote {
    max-width: 680px;
    margin: 0 auto 30px;
    padding: 0 var(--space-sm);
    text-align: center;
}

.hero__quote p {
    font-family: var(--font-script);
    font-size: clamp(28px, 5vw, 36px);
    line-height: 1.5;
    color: var(--color-olive-text);
    margin-bottom: var(--space-md);
}

.hero__quote cite {
    font-family: var(--font-primary);
    font-style: normal;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 400;
    color: var(--color-olive-text);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* =============================================
   EVENT DETAILS SECTION
   ============================================= */
.section--event {
    padding: 0;
    margin-top: -150px;
    background: transparent;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.event__card {
    position: relative;
    text-align: center;
}

.event__card-bg {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1.1) translateX(0%);
}

.event__card-content {
    position: absolute;
    top: 24%;
    left: 35%;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-style: italic;
    padding: var(--space-md);
    rotate: 3deg;
}

.event__card.anim-reveal {
    transform: translateY(30px);
}

.event__card.anim-reveal.is-visible {
    transform: translateY(0);
}

.event__invitation {
    font-family: var(--font-primary);
    font-size: 24px;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--color-olive-text);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.event__day {
    font-family: var(--font-primary);
    font-size: 24px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-olive-text);
    margin-bottom: 2px;
    font-weight: 400;
}

.event__date {
    font-family: var(--font-primary);
    font-size: clamp(24px, 5vw, 32px);
    letter-spacing: 0.12em;
    font-weight: 400;
    color: var(--color-olive-text);
    line-height: 1;
    margin-bottom: var(--space-xl);
}

.event__date sup {
    font-size: 0.5em;
    vertical-align: super;
    letter-spacing: 0;
}

.event__venue {
    font-family: var(--font-primary);
    font-size: 24px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-olive-text);
    margin-top: 0;
    margin-bottom: var(--space-xs);
    font-weight: 400;
}

.event__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--color-olive-text);
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: underline;
    transition: opacity var(--transition-base);
}

.event__map-link:hover {
    opacity: 0.8;
}

.event__map-star {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 -20px;
}

/* =============================================
   RUNDOWN SECTION
   ============================================= */
.section--rundown {
    padding: var(--space-sm) var(--space-lg) var(--space-xl);
    background-color: transparent;
    overflow: visible;
}

.section--rundown .section__title {
    margin-bottom: var(--space-xl);
}

.rundown__timeline {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.rundown__events {
    position: relative;
    z-index: 1;
}

.rundown__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 120px;
    margin-bottom: var(--space-xl);
}

.rundown__item:last-child {
    margin-bottom: 0;
}

.rundown__event-side {
    text-align: right;
}

.rundown__event {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-olive-text);
    line-height: 1.3;
}

.rundown__sub {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-sage);
}

.rundown__rope {
    position: absolute;
    left: 50%;
    top: -10px;
    bottom: -10px;
    transform: translateX(-50%) rotate(3deg);
    width: 100px;
    z-index: 0;
}

.rundown__rope img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: scaleX(1.2);
}

.rundown__time {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 400;
    color: var(--color-olive-text);
    letter-spacing: 0.08em;
    text-align: left;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.section--gallery {
    padding: var(--space-xl) 0;
    background-color: transparent;
    overflow: visible;
}

.section--gallery .section__title {
    margin-bottom: var(--space-xl);
}

.gallery__polaroids {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}

.gallery__polaroid {
    width: 65%;
    padding: 10px 10px 30px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: -40px;
}

.gallery__polaroid:first-child {
    margin-top: 0;
}

.gallery__polaroid img {
    width: 100%;
    height: auto;
    display: block;
}

/* Alternating left/right + rotations (using rotate to avoid transform conflict with anim-reveal) */
.gallery__polaroid--1 {
    align-self: flex-start;
    rotate: -3deg;
    margin-left: 1%;
}

.gallery__polaroid--2 {
    align-self: flex-end;
    rotate: 2deg;
    margin-right: -2%;
}

.gallery__polaroid--3 {
    align-self: flex-start;
    rotate: -6deg;
    margin-left: 8%;
}

.gallery__polaroid--4 {
    align-self: flex-end;
    rotate: 4deg;
    margin-right: 1%;
}

.gallery__polaroid--5 {
    align-self: flex-start;
    rotate: -6deg;
    margin-left: 1%;
}

.gallery__polaroid--6 {
    align-self: flex-end;
    rotate: 3deg;
    margin-right: -3%;
}

.gallery__polaroid--7 {
    align-self: flex-start;
    rotate: -6deg;
    margin-left: 6%;
}

.gallery__polaroid--8 {
    align-self: flex-end;
    rotate: 5deg;
    margin-right: 5%;
}

/* =============================================
   DRESSCODE SECTION
   ============================================= */
.section--dresscode {
    padding: 0 var(--space-lg) 0;
    background-color: transparent;
    position: relative;
    text-align: center;
}

.dresscode__lace-top,
.dresscode__lace-bottom {
    width: calc(100% + var(--space-md) * 4);
    margin-left: calc(-1 * var(--space-md) * 2);
    margin-bottom: var(--space-lg);
}

.dresscode__lace-top img,
.dresscode__lace-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

.dresscode__lace-bottom {
    margin-top: var(--space-lg);
    margin-bottom: 0;
}

.section--dresscode .section__title {
    margin-bottom: var(--space-sm);
}

.section--dresscode .section__subtitle {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 22px;
    color: var(--color-sage);
    letter-spacing: 0.1em;
}

.dresscode__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.dresscode__note {
    font-family: var(--font-primary);
    font-size: 24px;
    font-style: italic;
    letter-spacing: 0.08em;
    line-height: 1.8;
    color: var(--color-olive-text);
    margin-top: var(--space-lg);
}

/* =============================================
   RSVP SECTION
   ============================================= */
.section--rsvp {
    padding: var(--space-xl) var(--space-lg);
    background-color: transparent;
}

.section__title--italic {
    font-style: italic;
}

.rsvp__question {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-olive-text);
    margin-bottom: var(--space-lg);
}

.rsvp__form {
    max-width: 400px;
    margin: 0 auto;
}

.rsvp__toggle {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.rsvp__toggle-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-sage);
    background: transparent;
    padding: 8px;
    transition: opacity var(--transition-base);
}

.rsvp__toggle-btn {
    position: relative;
}

.rsvp__icon--circle {
    position: relative;
    z-index: 0;
}

.rsvp__icon--hearts {
    width: 43px;
    height: 43px;
    object-fit: contain;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    display: none;
}

.rsvp__toggle-btn.is-active .rsvp__icon--hearts {
    display: block;
}

.rsvp__toggle-btn:hover {
    opacity: 0.7;
}

.rsvp__toggle-btn.is-active {
    color: var(--color-olive-text);
}

.rsvp__icon--circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-sage);
    display: inline-block;
}

.rsvp__field {
    margin-bottom: var(--space-md);
    text-align: left;
}

.rsvp__label {
    display: block;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-sage);
    margin-bottom: 8px;
    text-align: center;
}

.rsvp__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-primary);
    font-size: 18px;
    color: var(--color-olive-text);
    background: transparent;
    border: 1px solid var(--color-sage);
    border-radius: 8px;
    outline: none;
    text-align: center;
    letter-spacing: 0.05em;
}

.rsvp__input:focus {
    border-color: var(--color-olive-text);
}

.rsvp__input::placeholder {
    color: var(--color-sage);
    opacity: 0.6;
}

.rsvp__submit {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--color-sage);
    color: var(--color-ivory);
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background-color var(--transition-base), transform var(--transition-base);
}

.rsvp__submit:hover {
    background-color: var(--color-sage-dark);
    transform: translateY(-2px);
}

.rsvp__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rsvp__status {
    margin-top: var(--space-sm);
    font-size: var(--font-size-sm);
    text-align: center;
    min-height: 20px;
}

.rsvp__status--success {
    color: var(--color-sage);
}

.rsvp__status--error {
    color: #c0392b;
}

/* =============================================
   GIFT SECTION
   ============================================= */
.section--gift {
    padding: var(--space-xl) var(--space-lg);
    background-color: transparent;
}

.gift__birds {
    max-width: 200px;
    margin: 0 auto var(--space-xl);
}

.gift__birds img {
    width: 100%;
}

.gift__intro {
    font-family: var(--font-primary);
    font-size: 24px;
    font-style: italic;
    letter-spacing: 0.08em;
    line-height: 1.8;
    color: var(--color-olive-text);
    margin-bottom: var(--space-xl);
}

.gift__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.gift__account {
    text-align: center;
}

.gift__bank {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-olive-text);
    margin-bottom: 4px;
}

.gift__number {
    font-size: 24px;
    color: var(--color-sage);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.gift__holder {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-olive-text);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}

.gift__copy-btn {
    padding: 6px 20px;
    font-size: var(--font-size-sm);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--color-sage);
    border: 1.5px solid var(--color-sage);
    border-radius: 50px;
    transition: all var(--transition-base);
}

.gift__copy-btn:hover {
    background-color: var(--color-sage);
    color: var(--color-white);
}

.gift__copy-btn.is-copied {
    background-color: var(--color-sage);
    border-color: var(--color-sage);
    color: var(--color-white);
}

/* =============================================
   FOOTER SECTION
   ============================================= */
.section--footer {
    padding: var(--space-lg) var(--space-lg) var(--space-2xl);
    background-color: transparent;
}

.footer__thankyou {
    font-family: var(--font-script);
    font-size: clamp(42px, 10vw, 72px);
    color: var(--color-olive-text);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

/* =============================================
   SHARED
   ============================================= */
.divider-img {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    opacity: 1;
}

.section__title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-olive-text);
    margin-bottom: var(--space-sm);
}

.section__subtitle {
    font-size: var(--font-size-lg);
    letter-spacing: 0.08em;
    color: var(--color-sage-dark);
    margin-bottom: var(--space-md);
}