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

html, body.lm-body {
    width: 100%;
    min-height: 100%;
    background: #8fa0b8;
    overflow-x: hidden;
}

/* Hide anything the theme tries to inject — headers, footers, sidebars, admin bars */
body.lm-body > *:not(#cloudCanvas):not(.lm-vignette):not(.lm-header):not(.lm-page):not(script):not(.affhomesai_floating-logout) {
    display: none !important;
}
/* Hide theme & Elementor headers, footers, sidebars */
body.lm-body #wpadminbar,
body.lm-body .site-header,
body.lm-body .site-footer,
body.lm-body header.site-header,
body.lm-body footer.site-footer,
body.lm-body #masthead,
body.lm-body #colophon,
body.lm-body .entry-header,
body.lm-body .entry-footer,
body.lm-body .wp-block-post-title,
body.lm-body .wp-site-blocks > header,
body.lm-body .wp-site-blocks > footer,
/* Elementor header/footer locations */
body.lm-body .elementor-location-header,
body.lm-body .elementor-location-footer,
body.lm-body [data-elementor-type="header"],
body.lm-body [data-elementor-type="footer"],
/* Hello theme & Astra header/footer */
body.lm-body .site-branding,
body.lm-body .main-navigation,
body.lm-body .ast-masthead-custom-menu-items,
body.lm-body #ast-fixed-header,
body.lm-body .ast-above-header-wrap,
body.lm-body .ast-below-header-wrap,
body.lm-body .ast-footer-wrap,
/* GeneratePress */
body.lm-body .site-header-wrap,
body.lm-body #gen-footer,
/* OceanWP */
body.lm-body #site-header,
body.lm-body #footer-widgets,
body.lm-body #footer-bottom {
    display: none !important;
}

/* ── Cloud canvas ── */
#cloudCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 0;
}

/* ── Vignette ── */
.lm-vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 80% at 50% 50%, transparent 45%, rgba(40,55,80,0.28) 100%),
        linear-gradient(to bottom, rgba(30,45,70,0.18) 0%, transparent 18%, transparent 78%, rgba(30,45,70,0.24) 100%);
}

/* ── Elementor page content sits above canvas ── */
body.lm-body .elementor-section-wrap,
body.lm-body .e-con,
body.lm-body #content,
body.lm-body .site-content,
body.lm-body .wp-site-blocks,
body.lm-body .lm-page {
    position: relative;
    z-index: 10;
}

/* Make Elementor sections transparent so canvas shows through */
body.lm-body .elementor-page,
body.lm-body .elementor-section,
body.lm-body .e-con {
    background-color: transparent !important;
}

/* Prevent theme from overriding body background */
body.lm-body {
    background-color: transparent !important;
}

/* ── TOP NAV BAR ── */
.lm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 0.5px solid rgba(255,255,255,0.20);
}

.lm-nav-inner {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lm-nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(12,22,50,0.92);
}

.lm-nav-links {
    display: flex;
    gap: 2.4rem;
    align-items: center;
}

.lm-nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(12,22,50,0.60);
    text-decoration: none;
    transition: color 0.2s;
}
.lm-nav-links a:hover { color: rgba(12,22,50,0.95); }

/* ── Page content ── */
.lm-page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

/* ── HERO ── */
.lm-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
}

.lm-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Outfit', sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(25,40,90,0.70);
    border: 0.5px solid rgba(25,40,90,0.20);
    padding: 8px 20px;
    border-radius: 100px;
    background: rgba(255,255,255,0.32);
    backdrop-filter: blur(8px);
    margin-bottom: 2.6rem;
    animation: fadeUp 0.9s ease both;
}
.lm-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(50,90,200,0.75);
    box-shadow: 0 0 8px rgba(50,90,200,0.40);
    animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.lm-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 7.5vw, 96px);
    font-weight: 300;
    line-height: 1.05;
    color: rgba(8,18,45,0.92);
    letter-spacing: -0.02em;
    margin-bottom: 1.8rem;
    text-shadow: 0 4px 32px rgba(255,255,255,0.55);
    animation: fadeUp 0.9s 0.12s ease both;
}
.lm-title em {
    font-style: italic;
    font-weight: 400;
    color: rgba(40,75,200,0.82);
    position: relative;
}

.lm-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: rgba(15,28,60,0.60);
    line-height: 1.90;
    max-width: 480px;
    margin: 0 auto;
    animation: fadeUp 0.9s 0.22s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SECTION LABEL ── */
.lm-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(15,25,60,0.42);
    text-align: center;
    margin-bottom: 2.8rem;
}

/* ── FEATURES ── */
.lm-features {
    padding: 5rem 2rem 4rem;
}

.lm-feat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    background: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.lm-feat-card {
    background: rgba(255,255,255,0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 50%;
    width: 240px;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.6rem;
    box-shadow: 0 4px 32px rgba(20,35,80,0.10);
    transition: background 0.25s, transform 0.25s;
    position: relative;
    flex-shrink: 0;
}
.lm-feat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
}
.lm-feat-card:hover { background: rgba(255,255,255,0.55); transform: translateY(-4px); }
.lm-feat-card:hover::after { opacity: 1; }

.lm-feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(40,75,200,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    color: rgba(35,65,180,0.85);
    transition: background 0.25s;
}
.lm-feat-card:hover .lm-feat-icon {
    background: rgba(40,75,200,0.20);
}

.lm-feat-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(8,18,50,0.92);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}
.lm-feat-card p {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(12,22,55,0.60);
    line-height: 1.65;
}

/* ── Elementor content area ── */
/* Hidden when empty (no Elementor content yet), shown when Elementor populates it */
.lm-elementor-content:empty { display: none; }
.lm-elementor-content {
    position: relative;
    z-index: 10;
}
/* When Elementor is editing, make the area fully visible and above everything */
.elementor-editor-active .lm-elementor-content {
    display: block !important;
    min-height: 200px;
}

/* ── CHAT SECTION ── */
.lm-chat-section { padding: 4rem 2rem; }

.lm-chat-slot {
    max-width: 700px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 0.5px solid rgba(30,50,100,0.14);
    min-height: 120px;
    box-shadow: 0 8px 40px rgba(20,35,80,0.08);
}
.lm-chat-slot > * { width: 100% !important; }

/* ── STATS ROW ── */
.lm-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 0.5px solid rgba(30,50,100,0.10);
    border-bottom: 0.5px solid rgba(30,50,100,0.10);
}
.lm-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lm-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 300;
    color: rgba(30,65,170,0.82);
    line-height: 1;
}
.lm-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    color: rgba(12,22,55,0.42);
    text-transform: uppercase;
}
.lm-stat-sep {
    width: 0.5px;
    height: 44px;
    background: rgba(30,50,100,0.14);
    flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .lm-header { padding: 0 1.5rem; }
    .lm-nav-links { gap: 1.4rem; }
    .lm-title { letter-spacing: -0.01em; }
    .lm-stats-row { flex-direction: column; gap: 2rem; }
    .lm-stat-sep { width: 44px; height: 0.5px; }
}

@media (max-width: 420px) {
    .lm-nav-links a { font-size: 11.5px; letter-spacing: 0.04em; }
}

/* ══════════════════════════════════════════════════════════════ */
/* ── HERO FEATURE SLIDER (top of page, illustrated) ── */
/* ══════════════════════════════════════════════════════════════ */
.lm-hero-slider {
    position: relative;
    padding: 6rem 2rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.lm-hs-viewport {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255,255,255,0.30);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 0.5px solid rgba(255,255,255,0.45);
    box-shadow: 0 14px 54px rgba(20,35,80,0.12);
}

.lm-hs-track {
    position: relative;
    width: 100%;
    height: 380px;
}

.lm-hs-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem;
    padding: 2.2rem 3.2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.lm-hs-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Fade transition (default) */
.lm-hero-slider[data-transition="fade"] .lm-hs-slide {
    transition: opacity 0.7s ease, visibility 0s;
}

/* Slide transition */
.lm-hero-slider[data-transition="slide"] .lm-hs-slide {
    transform: translateX(40px);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1), visibility 0s;
}
.lm-hero-slider[data-transition="slide"] .lm-hs-slide.is-active {
    transform: translateX(0);
}
.lm-hero-slider[data-transition="slide"] .lm-hs-slide.is-prev {
    transform: translateX(-40px);
}

/* Zoom transition */
.lm-hero-slider[data-transition="zoom"] .lm-hs-slide {
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.34,1.56,.64,1), visibility 0s;
}
.lm-hero-slider[data-transition="zoom"] .lm-hs-slide.is-active {
    transform: scale(1);
}

.lm-hs-art {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #1a1f30;
    box-shadow: 0 16px 40px rgba(10,15,40,0.28), 0 2px 8px rgba(10,15,40,0.12);
}

.lm-hs-art svg,
.lm-hs-art .lm-hs-photo,
.lm-hs-art .lm-hs-scene-fallback svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lm-hs-photo {
    object-fit: cover;
    object-position: center top;
}

@media (prefers-reduced-motion: reduce) {
    .lm-scene * {
        animation: none !important;
    }
}

.lm-hs-copy {
    display: flex;
    flex-direction: column;
}
.lm-hs-num {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(40,75,200,0.55);
    margin-bottom: 0.7rem;
}
.lm-hs-copy h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 500;
    color: rgba(8,18,50,0.92);
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.lm-hs-copy p {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(12,22,55,0.62);
    line-height: 1.75;
    max-width: 380px;
}
.lm-hs-howto {
    font-family: 'Outfit', sans-serif;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(40,75,200,0.75) !important;
    line-height: 1.6 !important;
    max-width: 380px;
    margin-top: 0.6rem !important;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(40,75,200,0.22);
}

/* Arrows — !important guards because some themes apply global red/brand
   button styles (background, border, color) that would otherwise leak in */
button.lm-hs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.50) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(255,255,255,0.55) !important;
    box-shadow: 0 4px 18px rgba(20,35,80,0.14) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(25,45,110,0.78) !important;
    transition: background 0.2s, transform 0.2s;
    z-index: 5;
    padding: 0;
    margin: 0;
}
button.lm-hs-arrow:hover { background: rgba(255,255,255,0.75) !important; transform: translateY(-50%) scale(1.06); }
button.lm-hs-arrow:active { transform: translateY(-50%) scale(0.96); }
button.lm-hs-arrow:focus { outline: 2px solid rgba(60,95,210,0.45); outline-offset: 2px; }
.lm-hs-prev { left: -8px; }
.lm-hs-next { right: -8px; }
button.lm-hs-arrow svg { width: 19px; height: 19px; stroke: currentColor !important; fill: none !important; }


/* Dots */
.lm-hs-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 1.6rem;
}
button.lm-hs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50% !important;
    background: rgba(30,50,110,0.22) !important;
    border: none !important;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
    box-shadow: none !important;
}
button.lm-hs-dot:hover { background: rgba(30,50,110,0.40) !important; }
button.lm-hs-dot.is-active {
    width: 22px;
    border-radius: 4px !important;
    background: rgba(40,75,200,0.78) !important;
}

/* Progress bar */
.lm-hs-progress {
    height: 2px;
    width: 100%;
    max-width: 280px;
    margin: 1rem auto 0;
    background: rgba(30,50,110,0.10);
    border-radius: 2px;
    overflow: hidden;
}
.lm-hs-progress-bar {
    height: 100%;
    width: 0%;
    background: rgba(40,75,200,0.65);
    border-radius: 2px;
}
.lm-hs-progress-bar.is-running {
    transition: width linear;
}

@media (max-width: 760px) {
    .lm-hero-slider { padding: 5.5rem 1rem 2rem; }
    .lm-hs-track { height: auto; min-height: 560px; }
    .lm-hs-slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.2rem 1.8rem;
        gap: 1.4rem;
    }
    .lm-hs-art { max-width: 220px; }
    .lm-hs-copy { align-items: center; }
    .lm-hs-copy h2 { font-size: 26px; }
    .lm-hs-copy p { font-size: 14px; }
    .lm-hs-arrow { width: 40px; height: 40px; }
    .lm-hs-prev { left: 2px; }
    .lm-hs-next { right: 2px; }
}
