/* =========================================================
   HOMEPAGE OFFER - NEON GLAM
   Restyles the offer section only. Same HTML ids and same data
   (title, description, tiers, end date). Photos are shown by
   js/offer-neon.js in three frames that change by themselves.
========================================================= */

#offersSection {
    --nx-pink: #ff5aa0;
    --nx-hot: #ff2d85;
    --nx-soft: #ffb5d3;
    --nx-bg: #180a14;
    background: var(--nx-bg);
    min-height: 0;
}

#offersSection .offer-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 3vw, 48px);
    max-width: 1320px;
    padding: 26px clamp(20px, 3.4vw, 48px) 46px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    position: relative;
}

/* soft glows behind everything */
#offersSection { position: relative; overflow: hidden; }
#offersSection::before,
#offersSection::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}
#offersSection::before { right: -6%; top: 10%; width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; background: rgba(255, 61, 139, 0.28); }
#offersSection::after { left: -8%; bottom: -20%; width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: rgba(123, 44, 255, 0.22); }

/* old photo panel is replaced by the collage */
#offersSection .offer-photo-panel { display: none; }

/* ---------- text ---------- */
#offersSection .offer-content {
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    background: none;
    align-items: flex-start;
    z-index: 2;
}

#offersSection .offer-content::before,
#offersSection .offer-content::after,
#offersSection .offer-kicker,
#offersSection .offer-rule,
#offersSection .offer-sparkle { display: none; }

#offersSection .offer-eyebrow {
    margin: 0;
    color: var(--nx-soft);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 45, 133, 0.7);
}

#offersSection .offer-content h2 {
    margin: 12px 0 10px;
    color: #fff;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.04;
    text-shadow: 0 0 8px rgba(255, 90, 160, 0.9), 0 0 24px rgba(255, 45, 133, 0.65), 0 0 48px rgba(255, 45, 133, 0.4);
}

#offersSection .offer-description {
    max-width: 420px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.65;
}

#offersSection .offer-perks { margin: 0 0 4px; width: 100%; }

#offersSection .offer-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#offersSection .offer-tiers li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 20px;
    position: relative;
    border: 1.5px solid rgba(255, 110, 170, 0.4);
    border-radius: 18px;
    background: rgba(255, 45, 133, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: 0 0 22px rgba(255, 45, 133, 0.22), inset 0 0 16px rgba(255, 45, 133, 0.1);
    animation: none;
}
#offersSection .offer-tiers li:nth-child(2) { --d: -3.5s; }
#offersSection .offer-tiers li:nth-child(3) { --d: -6s; }

#offersSection .offer-tiers strong {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: 0 0 10px rgba(255, 45, 133, 0.85);
}

#offersSection .offer-scope {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

#offersSection .offer-price {
    animation: none;
    box-shadow: none;
    background: none;
    border: 0;
    padding: 0;
    color: var(--nx-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
}
#offersSection .offer-price::before { display: none; }

#offersSection .offer-booking {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0 0;
    flex-wrap: wrap;
}

#offersSection .offer-cta {
    padding: 14px 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6fa5, #ff2d85);
    box-shadow: 0 0 26px rgba(255, 45, 133, 0.55);
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#offersSection .offer-cta:hover,
#offersSection .offer-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(255, 45, 133, 0.8);
}

#offersSection .offer-ends {
    margin: 12px 0 0;
    color: var(--nx-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
}
#offersSection .offer-ends.is-urgent { color: #ffd2e4; }

#offersSection .offer-scope,
#offersSection .offer-footnote { display: none; }
#offersSection .offer-footnote-unused {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11.5px;
    letter-spacing: 0.1em;
}

/* ---------- collage (built by js/offer-neon.js) ---------- */
#offersSection .offer-container.has-collage {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.offer-collage {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    height: clamp(300px, 27.5vw, 380px);
    z-index: 2;
}

.nx-slot {
    position: absolute;
    overflow: hidden;
    border: 1.5px solid rgba(255, 110, 170, 0.45);
    border-radius: 24px;
    background: #2a1120;
    box-shadow: 0 0 26px rgba(255, 90, 160, 0.3), 0 0 70px rgba(255, 45, 133, 0.16), 0 16px 40px rgba(0, 0, 0, 0.35);
    isolation: isolate;
}
/* three tall frames side by side: one big, two bigger-than-before side frames */
.nx-slot.s0 { left: 0; top: 0; bottom: 0; width: 38.5%; }
.nx-slot.s1 { left: 40.7%; top: 30px; bottom: 0; width: 28.6%; --d: -2.3s; }
.nx-slot.s2 { right: 0; top: 0; bottom: 30px; width: 28.6%; --d: -4.6s; }

/* fewer photos */
.offer-collage.n1 .s0 { left: 0; top: 0; bottom: 0; width: 100%; height: auto; }
.offer-collage.n2 .s0 { left: 0; top: 0; bottom: 0; width: 48.5%; height: auto; }
.offer-collage.n2 .s1 { left: auto; right: 0; top: 0; bottom: 0; width: 48.5%; height: 100%; }

.nx-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.09);
    will-change: opacity, transform;
    transition: opacity 1.5s cubic-bezier(0.22, 0.61, 0.36, 1), transform 3.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.nx-layer.on { opacity: 1; transform: scale(1); }
.nx-layer.out { transform: scale(1); }

.nx-tag {
    position: absolute;
    left: 20%;
    bottom: -9px;
    z-index: 4;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--nx-hot);
    color: #fff;
    font: 800 14px/1 -apple-system, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.1em;
    box-shadow: 0 0 24px rgba(255, 45, 133, 0.85);
    white-space: nowrap;
}

.nx-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -34px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.nx-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    transition: background 0.3s ease, width 0.3s ease;
}
.nx-dot.is-on { width: 22px; border-radius: 6px; background: var(--nx-pink); box-shadow: 0 0 10px rgba(255, 45, 133, 0.8); }


/* ---------- smooth travelling light around the borders (no blinking) ---------- */
@property --nx-a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.nx-slot::after,
#offersSection .offer-tiers li::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--nx-a), transparent 0deg, transparent 250deg, rgba(255, 140, 190, 0.2) 290deg, #ffc2da 335deg, #fff 348deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: nxSpin 7s linear infinite;
    animation-delay: var(--d, 0s);
}
#offersSection .offer-tiers li::before { padding: 1.5px; animation-duration: 8s; }

@keyframes nxSpin { to { --nx-a: 360deg; } }

/* (old blink keyframes kept below, unused) */
@keyframes nxTier {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 90, 160, 0.25), inset 0 0 8px rgba(255, 45, 133, 0.1); border-color: #e8478a; background: rgba(255, 45, 133, 0.04); }
    50% { box-shadow: 0 0 30px rgba(255, 90, 160, 0.9), 0 0 60px rgba(255, 45, 133, 0.45), inset 0 0 20px rgba(255, 45, 133, 0.3); border-color: #ffa3c8; background: rgba(255, 45, 133, 0.16); }
}

@keyframes nxPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 90, 160, 0.4), 0 0 36px rgba(255, 45, 133, 0.2), inset 0 0 10px rgba(255, 45, 133, 0.1); border-color: #ff4d97; }
    50% { box-shadow: 0 0 22px rgba(255, 90, 160, 0.75), 0 0 64px rgba(255, 45, 133, 0.4), inset 0 0 16px rgba(255, 45, 133, 0.2); border-color: #ff8abc; }
}

/* ---------- phone: one big photo that changes by itself ---------- */
@media (max-width: 860px) {
    #offersSection .offer-container,
    #offersSection .offer-container.has-collage {
        grid-template-columns: 1fr;
        row-gap: 54px;
        padding: 30px 16px 56px;
    }
    #offersSection .offer-content { grid-column: 1; grid-row: 1; width: 100%; }
    #offersSection .offer-content h2 { font-size: 40px; }
    .offer-collage { grid-column: 1; grid-row: 2; height: 340px; }
    .offer-collage .s1,
    .offer-collage .s2 { display: none; }
    .offer-collage .nx-slot.s0 { left: 0; top: 0; bottom: 0; width: 100%; height: auto; }
    .nx-tag { left: 50%; transform: translateX(-50%); }
    #offersSection .offer-tiers { gap: 10px; }
    #offersSection .offer-tiers li { flex: 1; padding: 10px 14px; }
    #offersSection .offer-tiers strong { font-size: 24px; }
    #offersSection .offer-booking { flex-direction: column; align-items: stretch; gap: 12px; }
    #offersSection .offer-cta { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    
    .nx-layer { transition: none; transform: none; }
    .nx-slot::after, #offersSection .offer-tiers li::before { animation: none; }
}

/* the old "locked hero size" rules would cut this layout */
#offersSection,
#offersSection .offer-container { height: auto !important; min-height: 0 !important; }
