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

html {
    overflow-y: scroll;
    height: 100%;
}

body {
    background: #000;
    font-family: 'Noto Naskh Arabic', serif;
    color: #c8a84b;
}


#invite {
    position: relative;
    height: 78svh;
    scroll-snap-align: start;
    overflow: hidden;
    background: #000;
}

#invite img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}




.scroll-cue {
    position: absolute;
    bottom: 1.8rem;
    right: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    animation: bob 2.2s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
}

.cue-label {
    font-size: 0.55rem;
    color: #c8a84b;
    opacity: 0.7;
    letter-spacing: 0.1em;
}

.cue-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid #c8a84b;
    border-bottom: 2px solid #c8a84b;
    transform: rotate(45deg);
    opacity: 0.65;
}

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


#details {
    position: relative;
    height: 100svh;
    scroll-snap-align: start;
    background: #000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15svh 1.5rem 2rem;
    overflow: hidden;
}

#details::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('invite.jpg') center top / cover no-repeat;
    opacity: 0.07;
    z-index: 0;
}


.details-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    margin-top: 0;
}

.details-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel-title {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    color: #f0e6d3;
    margin-bottom: 0.6rem;
}

.rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    margin-bottom: 2rem;
}

.info-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.5rem;
}

.info-divider {
    flex-shrink: 0;
    width: 1px;
    align-self: stretch;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
    margin: 0.4rem 0;
}

.info-label {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: #c8a84b;
    opacity: 0.8;
}

.info-main {
    font-family: 'Amiri', serif;
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    font-weight: 700;
    color: #f0e6d3;
    line-height: 1.4;
}

.info-sub {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #c8a84b;
    opacity: 0.75;
    word-break: break-word;
}

/* Map */
.map-wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(200, 168, 75, 0.15);
    margin-bottom: 1.8rem;
}

.map-wrap iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
    filter: grayscale(1) invert(1) sepia(0.25);
}

.map-placeholder {
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: #c8a84b;
    opacity: 0.3;
    font-size: 0.82rem;
}

.map-placeholder svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.blessing {
    font-family: 'Amiri', serif;
    font-size: 0.88rem;
    color: rgba(240, 230, 211, 0.55);
    line-height: 2;
}


#invite {
    height: 78vh;
    height: 78svh;
}

#details {
    height: 100vh;
    height: 100svh;
}

/* ── Very small phones (< 360px) ── */
@media (max-width: 360px) {
    #details {
        padding: 1.5rem 1rem;
    }
    .panel-title {
        font-size: 1.5rem;
    }
    .info-main {
        font-size: 0.85rem;
    }
    .info-label {
        font-size: 0.58rem;
    }
    .info-sub {
        font-size: 0.6rem;
    }
    .info-item {
        padding: 0 0.3rem;
    }
    .map-wrap iframe {
        height: 150px;
    }
    .blessing {
        font-size: 0.78rem;
    }
}

/* ── Tablet (≥ 600px) ── */
@media (min-width: 600px) {
    .details-inner {
        max-width: 560px;
    }
    .info-item {
        padding: 0 1rem;
    }
    .info-main {
        font-size: 1.1rem;
    }
    .info-sub {
        font-size: 0.8rem;
    }
    .map-wrap iframe {
        height: 240px;
    }
    .blessing {
        font-size: 1rem;
    }
}

/* ── Desktop (≥ 1024px) ── */
@media (min-width: 1024px) {

    #invite img {
        object-fit: contain;
        object-position: center center;
    }
    .details-inner {
        max-width: 680px;
    }
    .panel-title {
        font-size: 3rem;
        letter-spacing: 0.22em;
    }
    .info-main {
        font-size: 1.2rem;
    }
    .info-sub {
        font-size: 0.82rem;
    }
    .map-wrap iframe {
        height: 280px;
    }
    .blessing {
        font-size: 1rem;
    }
}

/* ── Large desktop (≥ 1440px) ── */
@media (min-width: 1440px) {
    .details-inner {
        max-width: 800px;
    }
    .panel-title {
        font-size: 3.4rem;
    }
}

/* ── Landscape on small screens ── */
@media (max-height: 500px) and (orientation: landscape) {
    #invite, #details {
        height: auto;
        min-height: 100svh;
    }
    #details {
        align-items: flex-start;
        overflow-y: auto;
        padding: 1.2rem 1.5rem;
    }
    .details-inner {
        padding: 0.8rem 0;
    }
    .panel-title {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }
    .rule {
        margin-bottom: 1rem;
    }
    .info-row {
        margin-bottom: 1rem;
    }
    .map-wrap {
        margin-bottom: 1rem;
    }
    .map-wrap iframe {
        height: 130px;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .scroll-cue {
        animation: none;
    }
    .details-inner {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

