/* ============================================================
   Wedding invite — αναπαραγωγή του "Aloha" layout του withjoy
   Design tokens μετρημένα από το πρωτότυπο (viewport 1280x720)
   ============================================================ */

:root {
    --bg:        #fae5cf;            /* rgb(250,229,207) */
    --ink:       #333333;            /* rgb(51,51,51)  — κυρίως κείμενο */
    --ink-soft:  #3a3c3e;            /* rgb(58,60,62)  — hero-adjacent */
    --on-photo:  #ffffff;

    /* Charmonman: ΔΕΝ έχει ελληνικά glyphs. Στο πρωτότυπο τα ελληνικά
       πέφτουν σε serif fallback — το αναπαράγουμε με την ίδια στοίβα. */
    --font-script: 'Charmonman', serif;
    --font-serif:  'Bitter', serif;
    --font-sans:   'Montserrat', 'Inter', Helvetica, Arial, sans-serif;

    --frame-w:   61%;               /* 780.8 / 1280 */
    --col-w:     39%;               /* 493.34 / 1265 (client width) */
    --col-pad:   64px;              /* 493 - 365 = 128 → 64 ανά πλευρά */
    --gap:       64px;              /* κάθετο κενό ανάμεσα σε blocks */
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: inherit; }

/* ============================================================
   1. Σταθερό πλαίσιο φωτογραφίας (αριστερά)
   ============================================================ */

.aux-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--frame-w);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 0;
}

.aux-frame__photo {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: 50% 0%;
    background-repeat: no-repeat;
}

/* Το gradient του πρωτοτύπου: σκούρο στο κάτω 75%, σβήνει προς τα πάνω */
.aux-frame__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75%;
    padding: 10% 20% 11% 10%;      /* ποσοστά του πλάτους — όπως στο πρωτότυπο */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-image: linear-gradient(0deg,
        rgba(0, 0, 0, .400)   0%,
        rgba(0, 0, 0, .306)  13%,
        rgba(0, 0, 0, .227)  26%,
        rgba(0, 0, 0, .165)  37%,
        rgba(0, 0, 0, .114)  48%,
        rgba(0, 0, 0, .070)  59%,
        rgba(0, 0, 0, .043)  68%,
        rgba(0, 0, 0, .024)  77%,
        rgba(0, 0, 0, .008)  85%,
        rgba(0, 0, 0, .004)  92%,
        rgba(0, 0, 0, 0)    100%);
}

/* Κουτί 547x168 στο πρωτότυπο, με το κείμενο κολλημένο στη βάση του */
.aux-frame__names {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 168px;
    font-family: var(--font-script);
    line-height: 1.25;
    color: var(--on-photo);
}

.aux-frame__names span {
    display: inline-block;
    white-space: nowrap;
    /* Το τελικό μέγεθος το ορίζει το auto-fit στο app.js (όπως στο withjoy) */
    font-size: 80px;
}

.aux-frame__tagline {
    margin: 16px 0 0;
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 25.5px;
    color: var(--on-photo);
}

/* ============================================================
   2. Στήλη περιεχομένου (δεξιά, κυλιόμενη)
   ============================================================ */

.column {
    position: relative;
    z-index: 1;
    width: var(--col-w);
    min-width: 400px;
    margin-left: auto;
    background: var(--bg);
}

.section {
    padding: var(--gap) 0;
}

.section__inner {
    padding: 0 var(--col-pad);
}

/* Ο τίτλος ζει μέσα στο padded inner container: πλάτος 365.68 - 2*3.84 = 358 */
.section__title {
    margin: calc(var(--gap) + 16px) calc(var(--col-pad) + 3.84px) 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 36px;
    line-height: 45px;
    text-align: center;
    color: var(--ink);
}

/* Οι φωτογραφίες των ενοτήτων: 493x600, background-size: contain */
.section__photo {
    width: 100%;
    height: 600px;
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

/* ============================================================
   3. Welcome / hero (δεξιά στήλη)
   ============================================================ */

.welcome {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--col-pad);
    text-align: center;
}

.welcome__date {
    margin: 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    color: var(--ink-soft);
}

.welcome__location {
    margin: 16px 0 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 26px;
    line-height: 31.98px;
    color: var(--ink-soft);
}

.welcome__countdown {
    margin: 48px 0 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 22.5px;
    color: var(--ink-soft);
}

.welcome__actions {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Το χρυσό διακοσμητικό, κολλημένο στο κάτω μέρος του welcome */
.welcome__ornament {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 158px;
    background-image: var(--ornament-image);
    background-size: contain;
    background-position: 50% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ============================================================
   4. Κουμπιά
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    border: 2px solid #000;
    border-radius: 9999px;
    background: transparent;
    color: #000;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.btn:hover { background: #000; color: var(--bg); }

.btn--sm { height: 40px; padding: 0 16px; }

.btn--link {
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    text-underline-position: under;
    text-decoration: underline;
}

.btn--link:hover { background: transparent; color: #000; opacity: .65; }

/* "View Details" — κείμενο 15px/35px + πλατύ chevron 66x15 από κάτω */
.view-details {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 35px;
    text-decoration: none;
    color: #000;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.view-details:hover { opacity: .7; }

.view-details__label { margin: 0; }

.view-details__arrow {
    display: block;
    margin-top: 34px;
    animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* ============================================================
   5. Πλοήγηση — hamburger πάνω αριστερά + κάθετο συρτάρι
   ============================================================ */

/* Πάντα ορατό, δεν εξαρτάται από το scroll */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1300;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #000;
    border-radius: 12px;
    background: #fff;
    color: #000;
    cursor: pointer;
}

.menu-btn svg { width: 32px; height: 32px; }

.menu-btn:hover { background: #f2f2f2; }

.drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 1400;
    pointer-events: none;
}

.drawer-layer.is-open { pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 312px;
    max-width: 85vw;
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: rgba(44, 41, 37, .25) 0 50px 100px, rgba(0, 0, 0, .3) 0 30px 60px;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.23, 1, .32, 1), opacity .3s ease;
}

.drawer-layer.is-open .drawer {
    opacity: 1;
    transform: translateX(0);
}

.drawer__close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 100px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.drawer__close svg { width: 24px; height: 24px; }

.drawer__close:hover { background: rgba(51, 51, 51, .08); }

.drawer__names {
    margin: 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.25;
    color: var(--ink);
}

.drawer__links {
    display: flex;
    flex-direction: column;
}

.drawer__link {
    display: flex;
    align-items: center;
    height: 48px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -.01em;
    /* Το πρωτότυπο δηλώνει εδώ rgb(250,229,207) — δυσανάγνωστο πάνω σε
       λευκό συρτάρι, οπότε κρατάμε το χρώμα κειμένου της σελίδας. */
    color: var(--ink);
    text-decoration: none;
}

.drawer__link:hover      { color: rgba(51, 51, 51, .65); }
.drawer__link.is-active  { color: rgba(51, 51, 51, .55); }

.drawer__rsvp { margin-top: auto; width: 100%; }

/* ============================================================
   6. Πρόγραμμα
   ============================================================ */

.schedule__date {
    margin: 40px 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 28px;
    text-align: center;
    color: var(--ink);
}

.event {
    padding: 40px 0;
    border-bottom: 1px solid rgba(51, 51, 51, .18);
    text-align: center;
}

.event:last-child { border-bottom: 0; }

.event:first-of-type { padding-top: 56px; }

.event__name {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 1.25px;
    color: var(--ink);
}

.event__time {
    margin: 16px 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 19.2px;
    color: var(--ink);
    white-space: pre-line;
}

.event__actions {
    margin-top: 16px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
    text-underline-position: under;
}

.event__action:hover { opacity: .65; }

.event__action svg { width: 18px; height: 18px; flex-shrink: 0; }

.event__description {
    margin: 40px 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: var(--ink);
}

.event__description p { margin: 0 0 24px; }
.event__description p:last-child { margin-bottom: 0; }

.event__venue {
    margin: 16px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
    text-decoration: none;
}

.event__venue:hover { text-decoration: underline; text-underline-position: under; }

.event__venue svg { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; }

.event__stay { margin-top: 32px; }

/* ============================================================
   7. Η σχέση μας
   ============================================================ */

.poem {
    display: flow-root;          /* εμποδίζει το margin collapse με το .qa */
    margin: var(--gap) 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: var(--ink);
}

/* Κάθε στίχος είναι δική του παράγραφος με κενό από κάτω — όπως στο πρωτότυπο */
.poem p { margin: 0 0 32px; }

.qa { margin-top: 48px; }

.qa__item { margin-bottom: 48px; }

.qa__q {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 23.12px;
    color: var(--ink);
}

.qa__a {
    margin: 10px 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    white-space: pre-line;
}

/* ============================================================
   8. Συνοδοιπόροι
   ============================================================ */

/* Grid, όχι flex: αλλιώς η μονή τρίτη κάρτα τεντώνεται σε όλο το πλάτος */
.vips {
    margin-top: var(--gap);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 4px;
}

.vip { min-width: 0; }

.vip__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 2px;
    background: rgba(51, 51, 51, .07);
    background-size: cover;
    background-position: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip__photo svg { width: 44%; height: 44%; opacity: .22; }

.vip__name {
    margin: 16px 0 0;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.vip__role {
    margin: 12px 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
}

/* ============================================================
   9. FAQ
   ============================================================ */

.faq__intro {
    margin: var(--gap) 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: var(--ink);
}

.faq__intro p { margin: 0 0 32px; }

.faq__list { margin-top: 48px; }

.faq__item { margin-bottom: 48px; }

.faq__q {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 23.12px;
    color: var(--ink);
}

.faq__a {
    margin: 10px 0 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
}

.faq__a p { margin: 0 0 24px; }
.faq__a p:last-child { margin-bottom: 0; }

/* ============================================================
   10. Λίστα γάμου
   ============================================================ */

/* Στο πρωτότυπο η φωτό της λίστας ΔΕΝ είναι full-bleed: κάθεται μέσα
   στο padded container (365x407) και ο τίτλος έρχεται αμέσως μετά. */
.registry__photo { height: 407px; }

.registry .section__title { margin-top: 16px; }

.registry__text {
    margin: 32px 0 0;
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 25.5px;
    text-align: center;
    white-space: pre-line;
    color: var(--ink);
}

.registry__copy { margin-top: 24px; display: flex; justify-content: center; }

/* ============================================================
   11. Footer
   ============================================================ */

.footer {
    padding: 48px var(--col-pad);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: -.42px;
    color: rgba(51, 51, 51, .7);
}

.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ============================================================
   12. Modals (RSVP / Where to Stay / Add to Calendar)
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .45);
}

.modal.is-open { display: flex; }

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    background: var(--bg);
    border-radius: 2px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

.modal__close:hover { background: rgba(51, 51, 51, .1); }

.modal__title {
    margin: 0 0 8px;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 36px;
    line-height: 45px;
    text-align: center;
    color: var(--ink);
}

.modal__text {
    margin: 0 0 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    white-space: pre-line;
}

/* Φόρμα */
.field { margin-bottom: 18px; }

.field__label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.field__control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(51, 51, 51, .35);
    border-radius: 2px;
    background: rgba(255, 255, 255, .55);
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
}

.field__control:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
}

textarea.field__control { min-height: 90px; resize: vertical; }

.radio-row { display: flex; gap: 20px; flex-wrap: wrap; }

.radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 16px;
    cursor: pointer;
}

.form__submit { width: 100%; margin-top: 8px; }

.form__msg {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 15px;
    display: none;
}

.form__msg.is-ok    { display: block; background: rgba(46, 125, 50, .12); color: #2e7d32; }
.form__msg.is-error { display: block; background: rgba(183, 28, 28, .10); color: #b71c1c; }

/* Λίστα ημερολογίων */
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-list li { border-top: 1px solid rgba(51, 51, 51, .18); }
.cal-list li:last-child { border-bottom: 1px solid rgba(51, 51, 51, .18); }

.cal-list a {
    display: block;
    padding: 14px 4px;
    font-family: var(--font-sans);
    font-size: 16px;
    text-decoration: none;
    color: var(--ink);
}

.cal-list a:hover { background: rgba(51, 51, 51, .06); }

/* ============================================================
   13. Responsive — η φωτογραφία γίνεται full-bleed πάνω
   ============================================================ */

@media (max-width: 1024px) {
    :root { --col-pad: 32px; }

    .aux-frame {
        position: relative;
        width: 100%;
        height: 100vh;
        height: 100dvh;
    }

    .column {
        width: 100%;
        min-width: 0;
    }

    .welcome { padding: var(--col-pad); }

    .welcome__date     { font-size: 22px; line-height: 29px; }
    .welcome__location { font-size: 20px; line-height: 26px; }

    .section__photo { height: 500px; }
    .registry__photo { height: 360px; }
    .aux-frame__names { min-height: 288px; }
}

@media (max-width: 520px) {
    .modal__panel { padding: 32px 22px; }
    .modal__title { font-size: 30px; line-height: 38px; }
    .vips         { grid-template-columns: 1fr; }
}
