/* Only the landing composition and editor artwork live here. Components use Metronic classes. */

html,
body {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body a:focus-visible,
body button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 3px;
}

/* The header follows Metronic's body surface in both themes. */
.ws-menu-drawer {
    background: transparent;
}

.landing-header {
    height: 72px;
    background-color: var(--bs-body-bg) !important;
}

.landing-header #kt_landing_menu .menu-link {
    color: var(--bs-gray-600) !important;
}

.landing-header #kt_landing_menu .menu-link:hover,
.landing-header #kt_landing_menu .menu-link.active {
    color: var(--bs-primary) !important;
}

/* Hero composition */
.ws-hero {
    position: relative;
    overflow: hidden;
    min-height: 820px;
    padding: 112px 0 64px;
    background-color: var(--bs-body-bg);
}

.ws-hero-frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 590px minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    margin: 0 auto;
}

.ws-copy {
    max-width: 590px;
}

/* Fixed-coordinate artwork scales as one unit so its relationships stay intact. */
.ws-art {
    --ws-art-scale: 0.92;
    position: relative;
    width: calc(1020px * var(--ws-art-scale));
    height: calc(760px * var(--ws-art-scale));
    margin: 0;
}

.ws-art-scale {
    position: relative;
    width: 1020px;
    height: 760px;
    transform: scale(var(--ws-art-scale));
    transform-origin: top left;
}

.ws-art-scale::before {
    position: absolute;
    z-index: 0;
    inset: -55px -20px 10px 30px;
    background: radial-gradient(circle at 58% 42%, rgba(30, 128, 255, 0.2), transparent 66%);
    filter: blur(18px);
    content: '';
}

.ws-art-scale::after {
    position: absolute;
    z-index: 1;
    top: 99px;
    left: -55px;
    width: 55px;
    height: 529px;
    border: 2px dashed rgba(30, 128, 255, 0.28);
    border-right: 0;
    border-radius: 28px 0 0 28px;
    content: '';
}

.ws-builder {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 95px;
    box-sizing: border-box;
    width: 835px;
    height: 760px;
    padding: 24px;
    border-color: rgba(143, 170, 205, 0.28) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(30, 99, 190, 0.16) !important;
}

.ws-builder-head,
.ws-template-nav,
.ws-toolbar {
    display: flex;
    align-items: center;
}

.ws-builder-head {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.ws-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 11px;
    white-space: nowrap;
}

.ws-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ws-step b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bs-gray-200);
    color: var(--bs-gray-600);
    font-size: 10px;
}

.ws-step.is-active b {
    background: var(--bs-primary);
    color: #ffffff;
}

.ws-canvas {
    position: relative;
    box-sizing: border-box;
    width: calc(100% - 165px);
    height: 410px;
    margin-left: 165px;
    padding: 24px;
    overflow: visible;
    border-radius: 16px !important;
}

.ws-template-nav {
    position: relative;
    z-index: 2;
    justify-content: space-between;
    gap: 16px;
    font-size: 12px;
}

.ws-template-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    white-space: nowrap;
}

.ws-edit-box {
    position: absolute;
    z-index: 3;
    top: 100px;
    left: 46px;
    width: 280px;
    padding: 12px 14px;
    border: 2px solid var(--bs-primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.ws-edit-box::before,
.ws-edit-box::after,
.ws-edit-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    content: '';
}

.ws-edit-box::before {
    top: -5px;
    left: -5px;
}

.ws-edit-box::after {
    top: -5px;
    right: -5px;
}

.ws-edit-handle.top {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.ws-edit-handle.right {
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
}

.ws-edit-handle.bottom-right {
    right: -5px;
    bottom: -5px;
}

.ws-edit-handle.bottom {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.ws-edit-handle.bottom-left {
    bottom: -5px;
    left: -5px;
}

.ws-edit-handle.left {
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
}

.ws-edit-label {
    position: absolute;
    top: -19px;
    left: -2px;
    padding: 3px 8px;
    border-radius: 4px 4px 0 0;
    background: var(--bs-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.ws-canvas-copy {
    position: absolute;
    z-index: 2;
    top: 280px;
    left: 60px;
    width: 280px;
    font-size: 12px;
    line-height: 1.55;
}

.ws-preview-cta {
    position: absolute;
    z-index: 4;
    top: 330px;
    left: 60px;
}

.ws-person {
    position: absolute;
    z-index: 2;
    top: 100px;
    right: 30px;
    width: 240px;
    height: 270px;
    overflow: hidden;
    border-radius: 130px 130px 26px 26px;
    background: radial-gradient(circle at 64% 20%, #8cb5ff 0 37%, transparent 38%), #f4f8ff;
}

.ws-person img {
    position: absolute;
    top: -258px;
    left: 50%;
    width: 1080px;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
}

.ws-person::after {
    position: absolute;
    bottom: 28px;
    left: 12px;
    width: 108px;
    height: 92px;
    background-image: radial-gradient(rgba(7, 20, 55, 0.45) 1.4px, transparent 1.4px);
    background-size: 12px 12px;
    content: '';
}

.ws-toolbar {
    position: absolute;
    z-index: 5;
    right: 80px;
    bottom: -20px;
    left: 80px;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(16, 42, 86, 0.14) !important;
    font-size: 14px;
}

.ws-tools-wrap {
    width: calc(100% - 165px);
    margin-top: 76px;
    margin-left: 165px;
}

.ws-tools-title {
    font-size: 11px;
}

.ws-tools {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 22px;
    margin-top: 18px;
    text-align: center;
    font-size: 11px;
}

.ws-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ws-float {
    position: absolute;
    z-index: 8;
    box-sizing: border-box;
    padding: 18px;
    border-color: rgba(143, 170, 205, 0.32) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(39, 94, 171, 0.14) !important;
}

.ws-brief {
    top: 70px;
    left: 0;
    width: 235px;
}

.ws-reco {
    top: 420px;
    left: -40px;
    width: 280px;
}

.ws-review {
    top: 595px;
    left: 0;
    width: 240px;
}

.ws-float-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.ws-field {
    margin-bottom: 9px;
}

.ws-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 10px;
}

.ws-input {
    display: flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 10px;
    font-size: 11px;
    line-height: 1.35;
}

.ws-input-multiline {
    min-height: 54px;
    align-items: flex-start;
}

.ws-reco .ws-float-title {
    margin-bottom: 16px;
}

.ws-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ws-thumb {
    min-height: 72px;
    border: 1px solid var(--bs-gray-300);
    border-radius: 6px;
    background-position: center;
    background-size: cover;
    opacity: 0.72;
}

.ws-thumb.is-active {
    border: 2px solid var(--bs-primary);
    opacity: 1;
}

/* Image cards need dimensions; the card and button styling remains Metronic. */
.ws-template-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

.ws-testimonial-image {
    display: block;
    height: 360px;
    object-fit: cover;
    object-position: top;
}

.ws-article-image {
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
}

/* Responsive artwork scales, but never changes the internal editor layout. */
@media (min-width: 1800px) {
    .ws-art {
        --ws-art-scale: 0.9;
        margin-left: 55px;
    }
}

@media (max-width: 1799.98px) and (min-width: 1680px) {
    .ws-art {
        --ws-art-scale: 0.86;
        margin-left: 52px;
    }
}

@media (max-width: 1679.98px) and (min-width: 1600px) {
    .ws-art {
        --ws-art-scale: 0.82;
        margin-left: 49px;
    }
}

@media (max-width: 1599.98px) and (min-width: 1400px) {
    .ws-hero-frame {
        grid-template-columns: 540px minmax(0, 1fr);
        gap: 48px;
    }

    .ws-art {
        --ws-art-scale: 0.72;
        margin-left: 40px;
    }
}

@media (max-width: 1399.98px) and (min-width: 1280px) {
    .ws-hero-frame {
        grid-template-columns: 430px minmax(0, 1fr);
        gap: 28px;
    }

    .ws-art {
        --ws-art-scale: 0.66;
        margin-left: 36px;
    }
}

@media (max-width: 1279.98px) {
    .ws-hero {
        min-height: auto;
        padding: 96px 0 80px;
    }

    .ws-hero-frame {
        grid-template-columns: 1fr;
        gap: 48px;
        transform: none;
    }

    .ws-copy {
        max-width: 720px;
    }

    .ws-art {
        --ws-art-scale: 0.72;
        margin: 8px auto 0;
        transform: translateX(7.1%);
    }
}

@media (max-width: 991.98px) {
    .landing-header {
        height: 64px;
    }

    .ws-menu-drawer {
        background: var(--bs-body-bg);
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
    }

    .ws-hero-frame {
        gap: 36px;
    }

    .ws-art {
        --ws-art-scale: 0.64;
    }
}

@media (max-width: 767.98px) {
    .ws-testimonial-image {
        height: 260px;
    }

    .ws-art {
        --ws-art-scale: 0.52;
    }

    .ws-template-links span:not(.btn) {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .ws-hero {
        padding-top: 88px;
        padding-bottom: 72px;
    }

    .ws-art {
        --ws-art-scale: 0.42;
    }

    .ws-steps {
        justify-content: flex-start;
        overflow: hidden;
        gap: 12px;
    }
}

@media (max-width: 479.98px) {
    .ws-art {
        --ws-art-scale: 0.36;
    }
}

@media (max-width: 414.98px) {
    .ws-art {
        --ws-art-scale: 0.34;
    }
}

@media (max-width: 389.98px) {
    .ws-art {
        --ws-art-scale: 0.30;
    }
}

@media (max-width: 359.98px) {
    .ws-art {
        --ws-art-scale: 0.28;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    body,
    body * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
