/* Skip-link + focus for a11y polish */
.myth-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 10001;
    background: var(--theme-color, #684DF4);
    color: #fff;
    padding: 0.65rem 1rem;
    font-weight: 600;
}
.myth-skip-link:focus {
    left: 0.75rem;
    top: 0.75rem;
}

img[loading="lazy"] {
    content-visibility: auto;
}

/* Theme ships .page-content { display: none } (WP travel leftover) — keep CMS body HTML visible */
.page-content,
.myth-page-body {
    display: block;
}

.myth-page-body {
    text-align: center;
}

.myth-page-body img {
    max-width: 100%;
    height: auto;
}

/* Public comments (product / service / blog) */
.myth-comments .th-comments-wrap {
    margin-top: 1.5rem;
}

.myth-comments .myth-comment-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--theme-color, #684DF4);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.myth-comments .reply-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--theme-color, #684DF4);
    cursor: pointer;
    font-weight: 600;
}

.myth-comments .reply-btn i {
    margin-right: 0.35rem;
}

.myth-comments .myth-comment-form {
    margin-top: 2.5rem;
}

.myth-comments .th-comment-form .form-group > i {
    pointer-events: none;
}

[x-cloak] {
    display: none !important;
}

.myth-toast-wrap {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    max-width: 22rem;
}

.myth-toast {
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: #fff;
    border-left: 4px solid var(--theme-color, #684DF4);
    font-size: 0.925rem;
}

.myth-toast.is-error {
    border-left-color: #dc3545;
}

.myth-toast.is-success {
    border-left-color: #198754;
}

/* Alpine mobile nav overlay */
.myth-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.myth-mobile-nav.is-open {
    pointer-events: auto;
}

.myth-mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 24, 0.55);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.myth-mobile-nav.is-open .myth-mobile-nav__backdrop {
    opacity: 1;
}

.myth-mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(22rem, 88vw);
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 2rem;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.myth-mobile-nav.is-open .myth-mobile-nav__panel {
    transform: translateX(0);
}

.myth-mobile-nav__close {
    border: 0;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    float: right;
    cursor: pointer;
    color: inherit;
}

.myth-mobile-nav__list {
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
}

.myth-mobile-nav__list > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.myth-mobile-nav__list a {
    display: block;
    padding: 0.85rem 0.15rem;
    color: var(--title-color, #0B1422);
    text-decoration: none;
    font-weight: 560;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.myth-mobile-nav__list a.active {
    color: var(--theme-color, #0B59DB);
    font-weight: 700;
}

.myth-mobile-nav__sub {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0.15rem 0 0.35rem 0.85rem;
    border-left: 2px solid rgba(11, 89, 219, 0.18);
}

.myth-mobile-nav__sub a {
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.15rem;
    color: var(--body-color, #6E7070);
}

.myth-mobile-nav__sub a:hover {
    color: var(--theme-color, #0B59DB);
    padding-left: 0.35rem;
}

/* —— Desktop primary nav polish —— */
.header-layout1 .myth-nav > ul > li {
    margin: 0 0.15rem;
}

.header-layout1 .myth-nav > ul > li > a {
    position: relative;
    padding: 0.35rem 0.55rem;
    font-family: var(--title-font, "Plus Jakarta Sans", sans-serif);
    font-size: 0.95rem;
    font-weight: 560;
    letter-spacing: 0.015em;
    color: var(--title-color, #0B1422);
    transition: color 0.25s ease;
}

/* Soft underline instead of heavy weight jump */
.header-layout1 .myth-nav > ul > li > a:before {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: -0.2rem;
    height: 2px;
    width: auto;
    margin-top: 0;
    border-radius: 2px;
    background: var(--theme-color, #0B59DB);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.header-layout1 .myth-nav > ul > li > a:hover,
.header-layout1 .myth-nav > ul > li > a.active,
.header-layout1 .myth-nav > ul > li:hover > a {
    color: var(--theme-color, #0B59DB);
    font-weight: 560;
}

.header-layout1 .myth-nav > ul > li > a:hover:before,
.header-layout1 .myth-nav > ul > li > a.active:before,
.header-layout1 .myth-nav > ul > li:hover > a:before {
    width: auto;
    transform: scaleX(1);
}

.header-layout1 .myth-nav > ul > li > a.active {
    font-weight: 700;
}

.header-layout1 .myth-nav ul li.menu-item-has-children > a:after {
    transition: color 0.25s ease, transform 0.25s ease;
}

.header-layout1 .myth-nav ul li.menu-item-has-children:hover > a:after {
    color: var(--theme-color, #0B59DB);
    transform: translateY(1px);
}

/* Dropdown panel */
.header-layout1 .myth-nav ul.sub-menu {
    min-width: 14.5rem;
    padding: 0.55rem 0;
    border: 1px solid rgba(11, 20, 34, 0.06);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(11, 20, 34, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.header-layout1 .myth-nav ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-layout1 .myth-nav ul.sub-menu li {
    margin: 0;
}

.header-layout1 .myth-nav ul.sub-menu li a {
    position: relative;
    display: block;
    padding: 0.65rem 1.25rem 0.65rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--title-color, #0B1422);
    line-height: 1.35;
    transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.header-layout1 .myth-nav ul.sub-menu li a:before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    width: 4px;
    height: 4px;
    margin-top: 0;
    border-radius: 50%;
    background: var(--theme-color, #0B59DB);
    opacity: 0;
    transform: translateY(-50%) scale(0.6);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-layout1 .myth-nav ul.sub-menu li a:hover {
    color: var(--theme-color, #0B59DB);
    background: rgba(11, 89, 219, 0.05);
    padding-left: 1.55rem;
}

.header-layout1 .myth-nav ul.sub-menu li a:hover:before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Sticky header: keep nav readable */
.header-layout1 .sticky-wrapper.sticky .myth-nav > ul > li > a {
    color: var(--title-color, #0B1422);
}

body.myth-nav-open {
    overflow: hidden;
}

/* Alpine search overlay */
.myth-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 12, 24, 0.72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 2rem;
}

.myth-search-overlay__box {
    width: min(36rem, 100%);
    position: relative;
}

.myth-search-overlay__box input {
    width: 100%;
    height: 3.25rem;
    border: 0;
    border-radius: 0.5rem;
    padding: 0 3rem 0 1rem;
    font-size: 1.05rem;
}

.myth-search-overlay__close {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

/* Product filter chips */
.myth-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.myth-filter-bar button {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.myth-filter-bar button.is-active {
    background: var(--theme-color, #684DF4);
    border-color: var(--theme-color, #684DF4);
    color: #fff;
}

.myth-product-card {
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.myth-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.myth-product-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f5f8;
}

.myth-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.myth-product-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
}

.myth-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(104, 77, 244, 0.1);
    color: var(--theme-color, #684DF4);
    margin-bottom: 0.65rem;
}

.myth-status-pill.is-live {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.myth-status-pill.is-in_process,
.myth-status-pill.is-beta {
    background: rgba(255, 193, 7, 0.18);
    color: #9a6b00;
}

.myth-hero-home {
    position: relative;
    min-height: min(92vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.myth-hero-home__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(15, 18, 35, 0.88) 0%, rgba(15, 18, 35, 0.55) 55%, rgba(15, 18, 35, 0.35) 100%),
        var(--myth-hero-image, #1a1d2e) center / cover no-repeat;
}

.myth-hero-home__content {
    position: relative;
    z-index: 1;
    padding: 7rem 0 5rem;
}

.myth-hero-home .hero-title {
    max-width: 18ch;
}

.myth-hero-home .hero-text {
    max-width: 38rem;
    opacity: 0.92;
}

.myth-section-head {
    margin-bottom: 2.5rem;
}

.myth-section-head .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Home products section — keep card images tall regardless of upload size */
#project-sec .project-item .box-img {
    min-height: 550px;
}

#project-sec .project-item .box-img img {
    min-height: 550px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Product detail media */
.myth-product-detail-img {
    border-radius: 12px;
    overflow: hidden;
}

.myth-product-detail-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 280px;
    max-height: 480px;
}

.product-img-slider .slider-pagination {
    position: static;
    text-align: center;
}

/* Home accents (keep theme colors) */
.myth-why-item {
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    height: 100%;
    transition: transform 0.35s ease, background 0.35s ease;
}

.myth-why-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.myth-process-step {
    transition: transform 0.35s ease;
}

.myth-process-step:hover {
    transform: translateY(-6px);
}

.myth-product-card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.myth-product-card:hover {
    transform: translateY(-6px);
}

@media (max-width: 991.98px) {
    .myth-hero-home {
        min-height: auto;
    }

    .myth-hero-home__content {
        padding: 5.5rem 0 3.5rem;
    }
}
