:root {
    /* Soft lavender / grey / bone palette with muted antique gold */
    --olive-dark: #4a4650;   /* now the deep charcoal-lilac ink */
    --olive-light: #7c7885;  /* muted grey */
    --sage: #d7d4de;         /* pale lilac */
    --gold: #b1975f;         /* muted antique gold */
    --gold-gradient: linear-gradient(135deg, #b1975f, #e0cfa2, #b1975f);
    --paper: #f7f6f9;        /* near-white lilac */
    --cover: #d9d6e0;        /* envelope / cover lilac-grey */
    --ink: #4a4650;
    --script-font: 'Pinyon Script', cursive;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: var(--paper);
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   "FEATURE" PANEL (was the dark-green section)
   Now a soft tinted panel to keep the pale, airy reference look.
   ========================================= */
.section-green {
    background-color: var(--surface, #efedf3);
    background-color: #eeebf2;
    color: var(--ink);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(74, 70, 80, 0.08);
    border-bottom: 1px solid rgba(74, 70, 80, 0.08);
}

.section-green h2,
.section-green h3,
.section-green .heading-ink {
    color: var(--ink);
}

.section-green .eyebrow,
.section-green .accent-ink {
    color: var(--gold);
}

.section-green .body-ink {
    color: var(--olive-light);
}

.section-green .gold-separator {
    background-color: rgba(177, 151, 95, 0.7);
}

/* =========================================
   HERO COVER — full-bleed couple photo
   ========================================= */
.hero-cover {
    position: relative;
    background-image:
        linear-gradient(rgba(247, 246, 249, 0.10), rgba(247, 246, 249, 0.55) 78%, var(--paper) 100%),
        url('images/hero.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Date sits on the photo, so it needs the same light treatment as the
   monogram to stay readable over the couple's clothing. */
.hero-date {
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(74, 70, 80, 0.55);
}

/* Translucent monogram watermark laid over the photo */
.hero-monogram {
    font-family: var(--script-font);
    font-size: clamp(120px, 34vw, 200px);
    line-height: 1;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 24px rgba(74, 70, 80, 0.35);
    margin-bottom: -0.15em;
    user-select: none;
}

/* =========================================
   HERO INTRO — box-less; Fondo-1's flowers are the frame
   Names in Marcellus, a script ampersand, and a fine gold rule below.
   ========================================= */
.hero-intro {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

.hero-intro__eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.72rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding-left: 0.42em;
}

/* Hero monogram over the photo */
.hero-monogram__amp {
    font-size: 0.42em;
    color: rgba(255, 255, 255, 0.8);
    vertical-align: 0.5em;
    padding: 0 0.05em;
}

/* Couple's names in flowing script (grey) */
.couple-name-script {
    font-family: var(--script-font);
    color: var(--olive-light);
    font-size: clamp(56px, 17vw, 86px);
    line-height: 0.9;
    font-weight: 400;
}

/* Scripture verse, refined italic serif */
.invite-verse {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--ink);
}

.invite-verse__ref {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--olive-light);
    margin-top: 0.6rem;
    text-transform: uppercase;
}

.amp-script {
    font-family: var(--script-font);
    color: var(--gold);
    line-height: 1;
}

/* =========================================
   DATE BADGE
   ========================================= */
.date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.75rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--olive-dark);
    text-transform: uppercase;
    font-weight: 500;
}

.date-badge__divider { color: var(--gold); }
.date-badge__num { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.date-badge__year {
    margin-top: 0.6rem;
    letter-spacing: 0.35em;
    font-size: 0.8rem;
    color: var(--olive-light);
}

/* =========================================
   VENUE MAP
   The Google embed ships with fixed 600x450 attributes; the wrapper's
   aspect-ratio overrides them so it scales on phones.
   ========================================= */
.venue-map {
    margin: 3rem auto 0;
    max-width: 620px;
    aspect-ratio: 4 / 3;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(177, 151, 95, 0.4);
    box-shadow: 0 18px 46px -20px rgba(74, 70, 80, 0.35);
}

.venue-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .venue-map { aspect-ratio: 16 / 10; }
}

/* =========================================
   MINI CALENDAR
   ========================================= */
.mini-calendar {
    background: #ffffff;
    border: 1px solid rgba(177, 151, 95, 0.35);
    border-radius: 0.5rem;
    padding: 1.5rem 1.25rem;
    max-width: 340px;
    margin: 0 auto;
    box-shadow: 0 16px 44px -18px rgba(74, 70, 80, 0.25);
}

.mini-calendar__month {
    text-align: center;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--ink);
    border-bottom: 1px solid rgba(177, 151, 95, 0.3);
    padding-bottom: 0.75rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.mini-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.mini-calendar__grid--head span {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

.mini-calendar__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    font-size: 0.9rem;
    color: var(--ink);
}

.mini-calendar__cell--empty { visibility: hidden; }

.mini-calendar__cell--event {
    background: var(--gold);
    color: #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    margin: 0 auto;
    box-shadow: 0 0 0 3px rgba(177, 151, 95, 0.22);
}

.mini-calendar__cell--event .material-symbols-outlined {
    font-size: 14px;
    font-variation-settings: 'FILL' 1;
}

/* =========================================
   GUESTBOOK / LIBRO DE VISITAS
   ========================================= */
.guestbook-card {
    background: var(--paper);
    border: 1px solid rgba(177, 151, 95, 0.3);
    border-radius: 0.5rem;
    padding: 2rem;
}

.guestbook-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.guestbook-item {
    border-bottom: 1px solid rgba(177, 151, 95, 0.2);
    padding-bottom: 1.1rem;
}

.guestbook-item__message {
    font-style: italic;
    color: var(--olive-dark);
    line-height: 1.6;
}

.guestbook-item__name {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.4rem;
    font-weight: 500;
}

.guestbook-empty {
    text-align: center;
    color: var(--olive-light);
    font-style: italic;
}

/* =========================================
   PILL BUTTONS
   ========================================= */
.btn-pill {
    border-radius: 999px !important;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-grid {
    display: grid;
    /* Two per row from the smallest screens up */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

@media (min-width: 640px) {
    .gallery-grid { gap: 1.5rem; }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.gallery-item {
    background: var(--paper);
    border: 1px solid rgba(177, 151, 95, 0.25);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(74, 70, 80, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 50px -12px rgba(74, 70, 80, 0.18);
}

.gallery-item__btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
}

.gallery-item__btn img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.gallery-item__btn:hover img { transform: scale(1.04); }

.gallery-item__zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: #fff;
    font-size: 34px;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.gallery-item__btn:hover .gallery-item__zoom,
.gallery-item__btn:focus-visible .gallery-item__zoom {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item__caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.86rem;
    color: var(--olive-dark);
    text-align: center;
    padding: 0.9rem 1rem 0.4rem;
}

@media (max-width: 639px) {
    .gallery-item__caption {
        font-size: 0.74rem;
        padding: 0.6rem 0.5rem 0.3rem;
    }
}

/* =========================================
   REACTIONS
   ========================================= */
.reactions {
    padding: 0 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.reactions__bar {
    display: flex;
    gap: 0.3rem;
    background: rgba(177, 151, 95, 0.07);
    border: 1px solid rgba(177, 151, 95, 0.2);
    border-radius: 999px;
    padding: 0.25rem;
    max-width: 100%;
}

/* Compact reaction bar so four fit inside a half-width mobile card */
@media (max-width: 639px) {
    .reactions {
        padding: 0 0.4rem 0.7rem;
    }
    .reactions__bar {
        gap: 0.1rem;
        padding: 0.15rem;
    }
    .reaction {
        padding: 0.3rem 0.32rem;
        gap: 0.12rem;
    }
    .reaction__icon { font-size: 16px; }
    .reaction__count { font-size: 0.66rem; }
}

.reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.72rem;
    color: var(--olive-light);
    transition: background 0.2s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1);
    line-height: 1;
}

.reaction:hover {
    background: rgba(177, 151, 95, 0.18);
    transform: translateY(-2px);
}

.reaction.is-active {
    background: var(--olive-dark);
    color: var(--paper);
}

.reaction__icon {
    font-size: 18px;
    display: inline-block;
    color: var(--olive-light);
    font-variation-settings: 'FILL' 0, 'wght' 300;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.reaction:hover .reaction__icon {
    transform: scale(1.18);
    color: var(--gold);
}

.reaction.is-active .reaction__icon {
    color: var(--gold);
    font-variation-settings: 'FILL' 1, 'wght' 400;
}

.reaction__count {
    min-width: 0.7em;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* Hide a zero count so the bar stays clean until people react */
.reaction__count:empty,
.reaction[data-zero="true"] .reaction__count { display: none; }

.reactions__total {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
    min-height: 1em;
}

/* Floating icon that pops when a reaction is registered */
.reaction-pop {
    position: fixed;
    pointer-events: none;
    color: var(--gold);
    font-size: 26px;
    font-variation-settings: 'FILL' 1;
    z-index: 10000;
    animation: reaction-pop 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes reaction-pop {
    0%   { opacity: 1; transform: translate(-50%, 0) scale(0.6); }
    35%  { opacity: 1; transform: translate(-50%, -26px) scale(1.35); }
    100% { opacity: 0; transform: translate(-50%, -64px) scale(1); }
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(19, 26, 13, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 1.5rem;
}

.lightbox.is-open {
    display: flex;
    animation: lightbox-in 0.25s ease;
}

@keyframes lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox__figure {
    max-width: min(92vw, 900px);
    max-height: 86vh;
    margin: 0;
    text-align: center;
}

.lightbox__figure img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.lightbox__figure figcaption {
    color: var(--paper);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(251, 249, 241, 0.1);
    border: 1px solid rgba(177, 151, 95, 0.35);
    color: var(--paper);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(177, 151, 95, 0.35);
    transform: scale(1.08);
}

.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

@media (max-width: 640px) {
    .lightbox__nav { width: 40px; height: 40px; }
    .lightbox__nav--prev { left: 0.4rem; }
    .lightbox__nav--next { right: 0.4rem; }
}

/* =========================================
   COVER SCREEN (envelope) — pale card + satin bow
   ========================================= */
.cover-screen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 34%, #e7e4ed 0%, var(--cover) 60%, #cfccd7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.cover-screen.open {
    opacity: 0;
    transform: translateY(-40px);
    pointer-events: none;
}

.cover-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    perspective: 1400px;
}


.cover-hint {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--olive-light);
    padding-left: 0.34em;
    animation: cover-pulse 2.6s ease-in-out infinite;
}

@keyframes cover-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cover-hint { animation: none; }
    html { scroll-behavior: auto; }
}
