/* ============================================================================
   REMAX Mongolia Events — front-facing styles (v2)
   Brand palette:   red #dc2626 · deep red #7f1d1d · cream #f5efe3 · ink #1a1a1a
   Inspired by everglow.studio/side-hustle — clean blocks, bold serifs, sticky CTA.
============================================================================ */

:root {
    --remax-red:   #dc2626;
    --remax-deep:  #7f1d1d;
    --remax-cream: #f5efe3;
    --remax-ink:   #1a1a1a;
    --remax-gray:  #4a4a4a;
    --remax-line:  rgba(26,26,26,0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body {
    margin: 0; padding: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--remax-ink);
    background: var(--remax-cream);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: var(--remax-red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--remax-ink);
}

/* ============================================================================
   TOP NAVIGATION BAR (always visible, translucent on hero)
============================================================================ */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 28px;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.top-nav .brand { justify-self: start; }
.top-nav .nav-register { justify-self: end; }
.top-nav .top-nav-center {
    justify-self: center;
    display: flex; gap: 22px;
    align-items: center;
}
.top-nav .top-nav-center a {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.top-nav.scrolled .top-nav-center a { color: var(--remax-ink); }
.top-nav.scrolled {
    background: rgba(245,239,227,0.96);
    backdrop-filter: saturate(140%) blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 10px 28px;
}
.top-nav .brand { display: inline-flex; align-items: center; gap: 10px; }
.top-nav .brand img { height: 34px; width: auto; }
.top-nav .brand-cream { display: block; }
.top-nav .brand-dark  { display: none; }
.top-nav.scrolled .brand-cream { display: none; }
.top-nav.scrolled .brand-dark  { display: block; }

.top-nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}
.top-nav-links a {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.top-nav.scrolled .top-nav-links a { color: var(--remax-ink); }

/* Register button in the nav (top-right) */
.nav-register {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--remax-red);
    color: #fff !important;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(220,38,38,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}
.nav-register:hover {
    text-decoration: none;
    transform: translateY(-1px);
    background: var(--remax-deep);
    box-shadow: 0 10px 24px rgba(127,29,29,0.4);
}

@media (max-width: 760px) {
    .top-nav-links { display: none; }
    .top-nav { padding: 10px 16px; }
}

/* ============================================================================
   STICKY BOTTOM REGISTER BUTTON (slides up after scroll)
============================================================================ */
.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 120%);
    z-index: 55;
    transition: transform 0.35s cubic-bezier(.22,.9,.35,1.05);
    pointer-events: none;
}
.sticky-cta.visible {
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.sticky-cta a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    background: linear-gradient(90deg, var(--remax-red), var(--remax-deep));
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 3px solid rgba(255,255,255,0.85);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.sticky-cta a:hover {
    text-decoration: none;
    transform: scale(1.03);
}

/* ============================================================================
   HERO
============================================================================ */
.empty-hero, .event-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
}
.event-hero-bg, .empty-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.event-hero::after, .empty-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}
.event-hero-overlay, .empty-hero-overlay {
    position: relative; z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22vh 28px 16vh;
    text-align: center;
    text-shadow: 0 6px 30px rgba(0,0,0,0.5);
}
.event-hero-header {
    max-height: 90px;
    margin: 0 auto 18px;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5));
}
.event-hero-title {
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    margin: 0 0 14px;
    line-height: 1.02;
    color: #fff;
}
.event-hero-subtitle {
    font-family: "Inter", sans-serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    opacity: 0.95;
    margin: 0 auto 20px;
    max-width: 760px;
    font-weight: 400;
}
.event-hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}
.event-hero-meta .sep { opacity: 0.5; }

.hero-scroll-hint {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    opacity: 0.8;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
    0%,100% { transform: translate(-50%, 0); }
    50%     { transform: translate(-50%, 6px); }
}

/* ============================================================================
   SECTION NAV (anchors for user-created sections)
============================================================================ */
.section-nav {
    position: sticky;
    top: 66px;
    z-index: 40;
    background: rgba(26,26,26,0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    gap: 4px;
    padding: 6px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a {
    flex-shrink: 0;
    padding: 10px 18px;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}
.section-nav a:hover {
    background: var(--remax-red);
    color: #fff;
    text-decoration: none;
}

/* ============================================================================
   CONTENT SECTIONS
============================================================================ */
.event-section-wrap { width: 100%; }
.event-section-wrap.alt { background: #fff; border-top: 1px solid var(--remax-line); border-bottom: 1px solid var(--remax-line); }
.event-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 90px 28px;
    scroll-margin-top: 120px;
}

.event-section .eyebrow {
    display: inline-block;
    font-family: "Inter", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--remax-red);
    margin-bottom: 14px;
}
.event-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0 0 28px;
    position: relative;
    padding-bottom: 18px;
    line-height: 1.1;
}
.event-section h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 4px;
    background: var(--remax-red);
    border-radius: 3px;
}
.event-description, .event-agenda, .event-custom {
    line-height: 1.75;
    color: var(--remax-gray);
    font-size: 1.05rem;
}
.event-description p, .event-agenda p, .event-custom p { margin: 0 0 1em; }

/* Agenda / header / footer media always rendered against a dark panel so
   transparent PNGs with light/white artwork remain visible. Uses contain so
   nothing is cropped. */
.event-agenda-media, .event-hero-header, .media-frame img {
    display: block;
    margin: 0 auto 1.4rem;
    max-width: 100%;
    height: auto;
}
.event-agenda-media {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2020 100%);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Sections alternate background for visual rhythm */
.event-section.alt {
    background: #fff;
}
.event-section + .event-section.alt,
.event-section.alt + .event-section {
    border-top: 1px solid var(--remax-line);
}

/* Price cards */
.price-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.price-option {
    background: #fff;
    border: 1px solid var(--remax-line);
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.price-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.1);
}
.price-option h3 { margin: 0 0 8px; font-size: 1.2rem; }
.price-option .price {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--remax-red);
    margin: 14px 0 0;
}

/* Footer */
.event-footer {
    background: var(--remax-ink);
    color: var(--remax-cream);
    text-align: center;
    padding: 60px 20px 36px;
    margin-top: 40px;
}
.event-footer img { max-height: 64px; margin: 0 auto 20px; }
.event-footer .credit {
    opacity: 0.65;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ============================================================================
   REGISTRATION / PAYMENT / TICKET
============================================================================ */
.register-body { background: var(--remax-cream); min-height: 100vh; }
.register-container {
    max-width: 640px;
    margin: 60px auto;
    background: #fff;
    padding: 44px 40px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
}
.register-container h1 { margin-top: 0; font-size: 2rem; }
.event-name { color: var(--remax-red); margin: 6px 0 4px; font-size: 1.1rem; font-weight: 600; }
.event-when { color: #666; margin: 0 0 26px; }
.back-link { display: inline-block; margin-bottom: 16px; color: #666; font-size: 0.9rem; }
.back-link:hover { color: var(--remax-red); text-decoration: none; }

.register-form label { display: block; margin-bottom: 16px; }
.register-form label > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.register-form input[type=text],
.register-form input[type=email],
.register-form input[type=tel],
.register-form input[type=number],
.register-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d6d3ce;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.register-form input:focus, .register-form select:focus {
    outline: none;
    border-color: var(--remax-red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
}
.req { color: var(--remax-red); }

.price-fieldset {
    border: 1px solid var(--remax-line);
    border-radius: 14px;
    padding: 18px;
    margin: 18px 0 24px;
}
.price-fieldset legend { font-weight: 700; padding: 0 8px; }
.price-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--remax-line);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.price-radio:hover { background: #fafaf7; border-color: #bfbbb3; }
.price-radio input { margin: 0; }
.price-radio-label { flex: 1; }
.price-radio-amount { font-weight: 700; color: var(--remax-red); font-size: 1.05rem; }

.qty-field {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-field input[type=number] { width: 100px; text-align: center; }

.primary-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--remax-red), var(--remax-deep));
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(220,38,38,0.3);
    text-decoration: none;
}
.primary-btn.small { width: auto; padding: 8px 18px; font-size: 0.85rem; }
.secondary-btn {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #333;
    text-decoration: none;
    margin-left: 8px;
}

.form-note { color: #777; font-size: 0.85rem; margin-top: 14px; }

.error-box {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}
.error-box ul { margin: 6px 0 0 18px; }

/* Payment screen */
.payment-container { text-align: center; }
.qpay-box {
    margin: 22px auto;
    padding: 26px;
    background: var(--remax-cream);
    border-radius: 14px;
    border: 1px solid var(--remax-line);
}
.qpay-qr { width: 240px; height: 240px; margin: 0 auto; }
.qpay-qr-fallback {
    width: 240px; height: 240px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: #ece7db; border-radius: 10px;
}
.qpay-app-links {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
    margin-top: 16px;
}
.qpay-app-link {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #333;
    font-size: 0.85rem;
}
.payment-status { margin: 30px 0 10px; }
.status-spinner {
    width: 34px; height: 34px;
    border: 4px solid #e7e2d4;
    border-top: 4px solid var(--remax-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Ticket card */
.ticket-card {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--remax-cream);
    border-radius: 14px;
    padding: 22px;
    margin: 22px 0;
    border: 1px solid var(--remax-line);
}
.ticket-qr-wrap img { width: 210px; height: 210px; border-radius: 10px; background: #fff; padding: 6px; }
.ticket-meta { flex: 1; }
.ticket-meta p { margin: 6px 0; }
.ticket-meta span { color: #666; display: inline-block; min-width: 90px; font-weight: 500; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-paid    { background: #dcfce7; color: #166534; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-used    { background: #e5e7eb; color: #374151; }

/* Error page */
.error-page { text-align: center; padding: 16vh 1rem; }
.error-page h1 { font-size: 6rem; margin: 0; color: var(--remax-red); }

/* ============================================================================
   Responsive tweaks
============================================================================ */
@media (max-width: 720px) {
    .event-hero-overlay, .empty-hero-overlay { padding: 28vh 20px 18vh; }
    .event-section { padding: 54px 20px; }
    .ticket-card { flex-direction: column; text-align: center; }
    .register-container { margin: 20px 14px; padding: 28px 22px; border-radius: 14px; }
}

/* ============================================================================
   v2 block-based layout (floor + hero + N sections) + modal popups
============================================================================ */
body.front-body.v2 { background: #0b0b0b; color: #f4f4f4; }
body.front-body.v2 .top-nav { background: rgba(10,10,10,0.55); backdrop-filter: blur(10px); }
body.front-body.v2 .top-nav.scrolled { background: rgba(10,10,10,0.88); }
body.front-body.v2 .nav-register { background: var(--remax-red, #dc1c2e); color: #fff; padding: 10px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; }
body.front-body.v2 .nav-register:hover { filter: brightness(1.1); }
body.front-body.v2 .brand img { height: 38px; }

.floor-bg {
    position: fixed; inset: 0; z-index: -2;
    background-size: cover; background-position: center center; background-repeat: no-repeat;
    filter: brightness(0.55);
}

.hero-block, .block {
    position: relative; width: 100%;
    min-height: 90vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    isolation: isolate;
}
.hero-block { min-height: 100vh; }
.block + .block { border-top: 1px solid rgba(255,255,255,0.05); }
.block-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -1;
}
.block-overlay {
    position: relative; z-index: 1;
    max-width: 1100px; width: 100%; padding: 80px 28px;
    color: #fff;
}
.hero-block .block-overlay { text-align: center; }
.hero-block .event-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.05; margin: 0 0 14px; }
.hero-block .event-hero-subtitle { font-size: clamp(1rem, 2vw, 1.35rem); opacity: 0.92; margin: 0 0 10px; }
.hero-block .event-hero-meta { opacity: 0.88; font-size: 0.98rem; }
.hero-block .event-hero-meta .sep { margin: 0 8px; opacity: 0.6; }

.price-block { background: #111; }
.price-block .block-overlay { text-align: center; }

.empty-hero {
    min-height: 80vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #141414 0%, #0b0b0b 100%);
    color: #fff;
    text-align: center; padding: 100px 24px;
}
.empty-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 12px; }

/* ---------- modal ---------- */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center;
}
.modal.open { display: flex; }
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(8,8,8,0.55);
    backdrop-filter: blur(6px);
}
.modal-card {
    position: relative;
    background: rgba(255,255,255,0.96);
    color: #111;
    border-radius: 18px;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 32px 30px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    animation: modalIn 0.22s ease;
}
@keyframes modalIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
    position: absolute; top: 10px; right: 12px;
    background: transparent; border: 0; font-size: 1.8rem; line-height: 1;
    cursor: pointer; color: #555;
}
.modal-close:hover { color: #111; }
.modal-card h2 { font-family: 'Playfair Display', serif; margin: 0 0 2px; font-size: 1.7rem; }
.modal-sub { margin: 0 0 18px; color: #666; font-size: 0.95rem; }
.modal-card form label { display: block; margin-bottom: 14px; }
.modal-card form label > span { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: #222; }
.modal-card form label > span small { color: #888; font-weight: 400; margin-left: 4px; }
.modal-card form input,
.modal-card form select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d6d6d6;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-card form input:focus,
.modal-card form select:focus {
    outline: none; border-color: var(--remax-red, #dc1c2e);
    box-shadow: 0 0 0 3px rgba(220,28,46,0.15);
}
.modal-card form .primary-btn { margin-top: 6px; width: 100%; }
.form-error {
    background: #fee2e2; color: #991b1b;
    padding: 10px 12px; border-radius: 8px;
    font-size: 0.9rem; margin-bottom: 12px;
}

/* ---------- payment modal ---------- */
.pay-qr { display: flex; justify-content: center; min-height: 220px; align-items: center; }
.pay-qr img { max-width: 260px; width: 100%; height: auto; border-radius: 10px; }
.pay-hint { text-align: center; color: #555; font-size: 0.9rem; margin: 12px 0 16px; }
.pay-apps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.pay-app {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; background: #f3f4f6; color: #111;
    border-radius: 999px; text-decoration: none; font-size: 0.88rem;
}
.pay-app img { height: 18px; width: auto; }
.pay-app:hover { background: #e5e7eb; }
.pay-status {
    text-align: center; font-weight: 600; color: #555;
    padding: 10px; border-top: 1px solid #eee;
}
.qr-text { font-family: monospace; font-size: 0.75rem; word-break: break-all; padding: 10px; background: #f3f4f6; border-radius: 8px; }

@media (max-width: 560px) {
    .modal-card { padding: 26px 20px 22px; }
    .hero-block .event-hero-title { font-size: 2rem; }
}

/* ============================================================================
   v2 polish (font, cream logo, intrinsic-height media sections)
============================================================================ */
body.front-body.v2 {
    font-family: 'Manrope', 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.front-body.v2 h1,
body.front-body.v2 h2,
body.front-body.v2 h3 { font-family: 'Playfair Display', 'Manrope', serif; letter-spacing: 0.005em; }

/* v2 nav is always on a dark stage → keep the cream mark, never swap to dark. */
body.front-body.v2 .top-nav .brand-dark  { display: none !important; }
body.front-body.v2 .top-nav .brand-cream { display: block !important; }

/* Media shows in full inside content sections. Hero stays full-bleed. */
body.front-body.v2 .block:not(.hero-block) {
    min-height: 0;
    display: block;
}
body.front-body.v2 .block:not(.hero-block) .block-bg {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 0;
}
body.front-body.v2 .block:not(.hero-block) .block-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 40px 28px;
}
body.front-body.v2 .block:not(.hero-block).no-media {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.front-body.v2 .block:not(.hero-block).no-media .block-overlay {
    position: relative; inset: auto;
}
