:root {
    --marvin-main-color: #ffc600;
    --accent: #007acc;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e6ebf0;
    --bg: #f7f9fb;
}


.marvin-page-wrapper {
    display: flex;
    gap: 20px;
}

.marvin-main-wrapper {
    display: flex;
    flex-flow: row wrap;
    padding: 35px 10px;
}

.marvin-reverse-wrapper {
    flex-wrap: wrap-reverse;
}

.marvin-main-left,
.marvin-main-right {
    width: 50%;
    margin-inline: auto;
}

.marvin-h2-heading {
    text-align: center;
}

.marvin-site-button {
    position: relative;
    display: block;
    font-size: .85em;
    font-weight: 500;
    letter-spacing: .05em;
    max-width: fit-content;
    width: 100%;
    text-align: center;
    margin-block: 25px auto;
    padding: 8px 12px;
    text-decoration: none;
    background-color: var(--marvin-main-color);
    color: #000000;
    border: none;
    border-radius: 3px;
    z-index: 0;
    overflow: hidden;
    transition: all .3s;
    height: fit-content;
}

.marvin-alt-button {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--marvin-main-color);
}

.marvin-site-button a {
    color: #fff;
}

.marvin-centered-button {
    margin-inline: auto;
}

/* .site-button-white {
color: var(--primary-color);
background: #fff;
} */

.marvin-site-button:hover,
.marvin-site-button:focus,
.marvin-site-button:active {
    color: #fff;
    opacity: .8;
    text-decoration: none;

}


/* Hero Section */
.marvin-hero-wrapper {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, .26) 25%, rgba(0, 0, 0, .34) 100%), url(/imageserver/Reusable/Marvin/signature-modern-hero.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 200px 25px 80px;
}

.marvin-hero-wrapper-content {
    -webkit-animation: fadeInRight 1.25s both;
    animation: fadeInRight 1.25s both;
    animation-delay: 1s;
}

.marvin-hero-wrapper-content {
    color: #fff;
}

.marvin-h1-heading.marvin-hero-title {
    font-size: 50px;
    color: #fff;
    max-width: 30ch;
    text-shadow: 2px 2px #0000008f;
    font-weight: 600;
    -webkit-animation: fadeInEft .8s both;
    animation: fadeInLeft .8s both;
    animation-delay: 1s;
}

.marvin-hero-wrapper-content.marvin-content-wrapper p {
    font-size: 18px;
    color: #fff;
    max-width: 50ch;
}


.marvin-side-nav {
    background: #fafafa;
    padding: 0px;
    width: 75%;
    max-width: 225px;
}

.marvin-side-nav-wrapper {
    display: flex;
    flex-direction: column;
}

.marvin-side-nav-item {
    border-bottom: 1px solid #e3e3e3;
}

.marvin-side-nav-item a {
    color: #000;
    font-size: 16px;
    width: 100%;
    height: 100%;
    display: block;
    padding: 15px 20px;
}

.marvin-side-nav-item a:hover,
.marvin-side-nav-item a.active-nav {
    color: #ffffff;
    background-color: var(--marvin-main-color);
}

.marvin-content-container {
    padding-inline: 2%;
    width: 100%;
}

.inner-nav-wrapper {
    padding: 20px;
    display: flex;
    gap: 30px;
}

.inner-nav-item {
    background: #eaeaea;
    border-radius: 12px;
    padding: 4px 12px;
    border: 1px solid #a5a5a5;
    color: #111;
}

.inner-nav-item:hover {
    text-decoration: none;
    color: #111;
    border: 1px solid #0c0c0c;
}

.nav-section-title {
    font-weight: 600;
}


/* Grid Cards */
.marvin-cards-section {
	background: #4d5775;
	padding-block: 50px;
	text-align: center;
	color: #fff;
}

.marvin-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.marvin-card-icon-container svg {
    width: 42px;
    height: 42px;
    fill: #ffffff;
}


.marvin-card-icon-container svg path {
	fill: #fff;
}


.marvin-card {
    max-width: 650px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    padding: 60px 10px;
    text-align: center;
}

.marvin-card-icon-container .st0 {
    fill: #000000;
}


/* ——— Layout ——— */
.marvin-sidenav {
    position: relative;
    max-width: 320px;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.nav-header {
    padding: 8px 10px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.nav-title {
    font-weight: 700;
    color: var(--ink);
}

/* ——— Lists ——— */
.nav-root,
.nav-level {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-level>li {
    margin: 4px 0;
}

/* ——— Toggles ——— */
.group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.group-toggle:hover {
    background: #eef6ff;
    border-color: #d6e9ff;
}

/* Chevron indicator */
.chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(-45deg);
    transition: transform .2s ease, border-color .2s ease;
}

.group-toggle[aria-expanded="true"] .chevron {
    transform: rotate(45deg);
    border-color: var(--accent);
}

/* Inner lists (collapsed by default; JS toggles inline display) */
.nav-group>.nav-level {
    display: none;
    margin: 6px 0 6px 12px;
    padding-left: 10px;
    border-left: 2px solid #eef2f6;
}

/* Links */
.nav-link {
    display: block;
    padding: 9px 10px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s ease, color .15s ease;
}

.nav-link:hover {
    background: #f3f8ff;
    color: var(--accent);
}

/* Active link state */
.nav-link.active {
    background: linear-gradient(90deg, #e8f3ff, #ffffff);
    color: var(--accent);
    font-weight: 600;
    border: 1px solid #cfe7ff;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
    .marvin-sidenav {
        max-width: 100%;
    }

    .nav-group>.nav-level {
        margin-left: 8px;
    }
}



/* Products Section */
.marvin-section-padding {
    padding: 60px 20px;
}

.marvin-products-cards-wrapper {
    display: flex;
    flex-flow: row wrap;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 40px;
}

.marvin-product-card {
    max-width: 285px;
    width: 31.333%;
    padding: 30px 20px;
    border-radius: 12px;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: #f7f7f7;
}

.marvin-product-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.marvin-product-card-image {
    text-align: center;
    height: 200px;
    overflow: hidden;
    width: 100%;
    height: 220px;
}

.marvin-product-card-image img {
    max-width: 200px;
    width: 100%;
    object-fit: cover;
    height: auto;
}


.marvin-product-logo img {
    max-width: 225px;
    width: 100%;
    margin: 20px auto;
}

.marvin-product-card .marvin-site-button {
    margin-inline: auto;
}


.marvin-intro-text.marvin-main-right {
    padding-inline: 30px;
}


.marvin-product-wrapper {
    padding-block: 35px;
}

.marvin-products-section {
    height: 1080px;
    overflow: scroll;
    margin-bottom: 150px;
}

.marvin-resources-wrapper {
    align-items: center;
    justify-content: center;
}

.marvin-resource-item {
    text-align: center;
    padding: 10px 15px;
    max-width: 700px;
    margin-inline: auto;
}

.marvin-resource-item img {
    max-width: 520px;
    width: 100%;
}

.marvin-resource-item .marvin-site-button {
    margin-inline: auto;
}

/* Trigger button (show this on mobile; hide on desktop if you want) */
.mm-btn {
    display: block;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
    background: var(--marvin-main-color);
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    margin: 35px auto;
    text-align: center;
}

.mm-btn:hover {
    opacity: .85;
}

.mobile-nav-icon {
	display: inline-flex;
	vertical-align: middle;
	margin-left: 10px;
}

/* Modal base (hidden by default) */
.mmodal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.mmodal.is-open {
    display: block;
}

.mmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    transition: opacity .2s ease;
}

.mmodal.is-open .mmodal__backdrop {
    opacity: 1;
}

.mmodal__panel {
    position: absolute;
    inset: auto 50% 12vh 50%;
    transform: translate(-50%, 10px) scale(.98);
    width: min(92vw, 420px);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6ebf0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
    overflow: hidden;
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
    display: flex;
    flex-direction: column;
}

.mmodal.is-open .mmodal__panel {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
}

.mmodal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f4;
}

.mmodal__header h3 {
    margin: 0;
    font: 700 1rem/1.2 system-ui, sans-serif;
}

.mmodal__close {
    background: none;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.mmodal__body {
    display: grid;
    gap: 6px;
    padding: 12px 14px 16px;
    max-height: 60vh;
    overflow: auto;
}

.mm-heading {
    margin: 10px 0 4px;
    font-weight: 700;
    color: #374151;
}

.mm-link {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    border: 1px solid #e6ebf0;
    background: #f9fbfd;
}

.mm-link:hover {
    background: #eef6ff;
    border-color: #d6e9ff;
    color: #007acc;
}

/* Optional: lock scroll when open */
body.mm-lock {
    overflow: hidden;
}

/* Desktop: you can hide the button if you’re keeping a sidebar there */

@media (max-width: 1200px) {

    .marvin-cards-container {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .marvin-card {
        max-width: 650px;
        padding: 30px 20px;
        transition: all 0.3s ease;
        padding: 20px 10px;
        text-align: center;
        margin-inline: auto;
    }

    .marvin-card-icon-container svg {
        width: 35px;
    }

    .marvin-product-card {
        max-width: 350px;
        width: 46.333%;
    }
}


@media (max-width: 982px) {
    .marvin-product-card h3 {
        font-size: 20px;
    }

     .marvin-main-left, .marvin-main-right {
        width: 98.5%;
    }   


}

@media (max-width: 800px) {
    .marvin-product-card {
        max-width: 350px;
        width: 46.333%;
    }

    .marvin-sidenav {
        display: none;
    }

    .marvin-product-wrapper h3 {
        text-align: center;
    }

}

@media (min-width: 800px) {
    .mm-btn {
        display: none;
    }
}

@media (max-width: 500px) {
    .marvin-product-card {
        max-width: 350px;
        width: 98.333%;
        margin-inline: auto;
    }
}

/**** Popup Products ****/
/* ========== Product grid ========== */
.products {
    padding: 48px 20px;
    background: #fff;
}

.products .container {
    max-width: 1200px;
    margin: 0 auto;
}

.products h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: #1f2937;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.product-card {
    background: #fff;
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.product-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.product-card h3 {
    font-size: 1.05rem;
    margin: 12px 12px 6px;
    color: #1f2937;
}

.product-card .price {
    margin: 0 12px 10px;
    color: #007acc;
    font-weight: 700;
}

.card-actions {
    margin: 0 12px 14px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--marvin-main-color);
    color: #000000;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.btn:hover {
    opacity: .7;
}

/* ========== Modal / Lightbox ========== */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.product-modal.open {
    display: block;
}

.pm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .2s ease;
}

.product-modal.open .pm-backdrop {
    opacity: 1;
}

.pm-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 10px)) scale(.98);
    width: min(960px, 80vw);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e6ebf0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
    overflow: hidden;
    opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
}

.product-modal.open .pm-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.pm-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    z-index: 2;
}

.pm-content {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 8px;
	padding: 20px 50px;
}

.pm-media {
    background: #f7f9fb;
    display: grid;
    place-items: center;
}

.pm-img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.pm-info {
    padding: 18px 18px 22px;
}

.pm-region {
    font-size: 20px;
}

.pm-title {
    margin: 0 0 15px;
    font-size: 28px;
    color: #1f2937;
}

.pm-bold {
    font-weight: 500;
}


.pm-desc {
	margin: 10px 0 40px;
	color: #4b5563;
	line-height: 1.55;
}

/* Prev/Next */
.pm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.13);
    border-radius: 50%;
    user-select: none;
    backdrop-filter: blur(2px);
}

.pm-nav svg {
    fill: #fff;;
}

.pm-prev {
    left: 2px;
}

.pm-next {
    right: 5px;
}

.pm-nav:hover {
    background: rgba(0, 0, 0, .5);
}

.marvin-resources-section {
	background: #fffbdb73;
}

/* Mobile */
@media (max-width: 760px) {
    .pm-content {
        grid-template-columns: 1fr;
    }

.pm-img {
	max-width: 215px;
	width: 100%;
	height: auto;
}
}

/* Optional: lock scroll when modal open */
body.modal-lock {
    overflow: hidden;
}