/* ==========================================================================
   VITO x Helvetiqua - fusion styles
   ========================================================================== */

/* Header brand ------------------------------------------------------------- */
.header .header__container .header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: auto;
    padding-bottom: 0;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
}

.header__brand .logo {
    width: 163px;
    height: 80px;
    flex-shrink: 0;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}

.header__brand-separator {
    display: block;
    width: 1px;
    height: 80px;
    background: #828282;
    flex-shrink: 0;
}

.header__partner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 250px;
    flex-shrink: 0;
}

.header__partner-label {
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #0c6e68;
    white-space: nowrap;
}

.header__partner-logo {
    display: block;
    width: 250px;
    height: 50px;
    object-fit: contain;
}

/* Menu --------------------------------------------------------------------- */
.header__menu .nav .menu {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.header__menu .nav .menu > .menu-item {
    flex-shrink: 0;
}

.header__menu .nav .menu > .menu-item > a {
    padding: 4px 8px;
    font-size: 15px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.header__menu .nav .menu .menu-item-has-children {
    position: relative;
}

.header__menu .nav .menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.header__menu .nav .menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 260px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid #d2d1d1;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.header__menu .nav .menu .menu-item-has-children:hover > .sub-menu,
.header__menu .nav .menu .menu-item-has-children:focus-within > .sub-menu {
    display: flex;
}

.header__menu .nav .menu .sub-menu .menu-item > a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: normal;
}

.header__menu .nav .menu .sub-menu .menu-item > a:hover,
.header__menu .nav .menu .sub-menu .menu-item.current-menu-item > a {
    background: #e2eeed;
    color: #0c6e68;
    border-bottom: 0;
}

.header__menu .nav .menu .sub-menu .menu-item > a::after {
    display: none;
}

/* Compact desktop navigation */
@media (max-width: 1600px) {
    .header__brand {
        gap: 24px;
    }

    .header__brand .logo {
        width: 130px;
        height: 64px;
    }

    .header__brand-separator {
        height: 64px;
    }

    .header__partner {
        width: 200px;
    }

    .header__partner-logo {
        width: 200px;
        height: 40px;
    }

    .header__menu .nav .menu {
        gap: 8px;
    }

    .header__menu .nav .menu > .menu-item > a {
        padding: 4px 6px;
        font-size: 14px;
        letter-spacing: 0.2px;
    }
}

/* Drawer navigation ------------------------------------------------------- */
@media (max-width: 1439px) {
    .header .header__container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 16px;
    }

    .header .header__container .header__logo {
        justify-content: flex-start;
        width: auto;
        display: flex;
    }

    .header .header__container .header__content {
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 20;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        width: 100%;
        height: 100vh;
        padding: 16px 32px;
        background: #fff;
        transition: right 0.4s ease;
    }

    .header .header__container.menu-open .header__content {
        right: 0;
    }

    .header .header__container .header__content .header__menu-bar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        padding-bottom: 16px;
        border-bottom: 1px solid #d2d1d1;
    }

    .header .header__container .header__content .header__menu-bar p {
        flex-grow: 1;
        margin: 0;
        color: #000;
        font-family: 'Public Sans', sans-serif;
        font-size: 24px;
        font-weight: 400;
    }

    .header .header__container .header__content .header__menu-bar .header__menu-close {
        cursor: pointer;
    }

    .header .header__container .header__content .header__menu-bar .header__menu-close svg {
        display: block;
        width: 48px;
        height: 48px;
    }

    .header .header__container .header__misc {
        display: none;
    }

    .header .header__container .header__menu-toggle {
        display: block;
        cursor: pointer;
    }

    .header .header__container .header__menu-toggle img {
        display: block;
        width: 40px;
        height: 40px;
    }

    .header .header__container .header__content .header__menu {
        width: 100%;
        margin-top: 24px;
        overflow-y: auto;
    }

    .header__menu .nav {
        width: 100%;
    }

    .header__menu .nav .menu {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 24px;
        width: 100%;
        height: auto;
        padding-bottom: 48px;
        overflow: visible;
    }

    .header__menu .nav .menu > .menu-item > a {
        padding: 4px 0;
        font-size: 20px;
    }

    .header__menu .nav .menu .sub-menu {
        position: static;
        display: none;
        width: 100%;
        min-width: 0;
        margin-top: 8px;
        padding: 4px 0 0 16px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        gap: 4px;
    }

    .header__menu .nav .menu .menu-item-has-children.is-open > .sub-menu {
        display: flex;
    }

    .header__menu .nav .menu .sub-menu .menu-item > a {
        padding: 8px 0;
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .header__brand {
        gap: 12px;
    }

    .header__brand .logo {
        width: 82px;
        height: 40px;
    }

    .header__brand-separator {
        display: none;
    }

    .header__partner {
        width: 160px;
        gap: 0;
    }

    .header__partner-label {
        font-size: 14px;
        font-weight: 700;
    }

    .header__partner-logo {
        width: 160px;
        height: 32px;
    }
}

/* ==========================================================================
   Fusion pages
   ========================================================================== */
.section-fusion {
    padding: 64px 0 80px;
}

.section-fusion .shell {
    max-width: 1600px;
}

.fusion-page {
    color: #000;
    font-family: 'Public Sans', sans-serif;
    font-size: 18px;
    line-height: 1.6;
}

.fusion-page h1,
.fusion-page h2,
.fusion-page h3 {
    margin: 0 0 16px;
    color: #000;
    font-family: 'Public Sans', sans-serif;
    line-height: 1.15;
}

.fusion-page h1 {
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 700;
}

.fusion-page h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
}

.fusion-page h3 {
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
}

.fusion-page p {
    margin: 0 0 18px;
}

.fusion-page a {
    color: #0c6e68;
}

.fusion-page img {
    max-width: 100%;
    height: auto;
}

.fusion-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
    margin-bottom: 48px;
    padding: 48px;
    overflow: hidden;
    color: #fff;
    background: #0c6e68 center / cover no-repeat;
    border-radius: 16px;
}

.fusion-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12));
}

.fusion-hero > * {
    position: relative;
    z-index: 1;
}

.fusion-hero h1,
.fusion-hero p {
    color: #fff;
    max-width: 820px;
}

.fusion-hero .fusion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.fusion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fusion-btn--primary {
    background: #0c6e68;
    color: #fff;
    border: 1px solid #0c6e68;
}

.fusion-btn--primary:hover {
    background: #075954;
    border-color: #075954;
    color: #fff;
}

.fusion-btn--light {
    background: #fff;
    color: #0c6e68;
    border: 1px solid #fff;
}

.fusion-btn--light:hover {
    background: #e2eeed;
    border-color: #e2eeed;
    color: #0c6e68;
}

.fusion-btn--outline {
    background: transparent;
    color: #0c6e68;
    border: 1px solid #0c6e68;
}

.fusion-btn--outline:hover {
    background: #0c6e68;
    color: #fff;
}

.fusion-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.fusion-btn--ghost:hover {
    background: #fff;
    color: #0c6e68;
    border-color: #fff;
}

.fusion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fusion-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2eeed;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fusion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(12, 110, 104, 0.12);
}

.fusion-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2eeed;
}

.fusion-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fusion-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
}

.fusion-card__body h3 {
    margin: 0;
    font-size: 24px;
}

.fusion-card__body p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.fusion-card__body .fusion-btn {
    align-self: flex-start;
    margin-top: auto;
}

.fusion-section {
    margin-top: 64px;
}

.fusion-section:first-child {
    margin-top: 0;
}

.fusion-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.fusion-section__head h2 {
    margin: 0;
}

.fusion-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.fusion-gallery a {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e2eeed;
    border-radius: 12px;
}

.fusion-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.fusion-gallery a:hover img {
    transform: scale(1.05);
}

.fusion-reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.fusion-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #e2eeed;
    border-radius: 16px;
}

.fusion-review__stars {
    color: #e30613;
    font-size: 18px;
    letter-spacing: 2px;
}

.fusion-review__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
}

.fusion-review__author {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0c6e68;
}

.fusion-review__meta {
    margin: 0;
    font-size: 13px;
    color: #6b6b6b;
}

.fusion-videos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.fusion-video {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
}

.fusion-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.fusion-content {
    max-width: 900px;
}

.fusion-content h2 {
    margin-top: 40px;
}

.fusion-content ul,
.fusion-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.fusion-content li {
    margin-bottom: 8px;
}

.fusion-content img {
    display: block;
    margin: 24px 0;
    border-radius: 12px;
}

.fusion-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 64px;
    padding: 40px;
    background: #0c6e68;
    border-radius: 16px;
    color: #fff;
}

.fusion-cta h2,
.fusion-cta p {
    color: #fff;
    margin: 0;
}

.fusion-cta .fusion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Lightbox */
.fusion-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(0, 0, 0, 0.85);
}

.fusion-lightbox.is-open {
    display: flex;
}

.fusion-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.fusion-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .fusion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fusion-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .fusion-reviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fusion-videos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 740px) {
    .section-fusion {
        padding: 40px 0 56px;
    }

    .fusion-page {
        font-size: 16px;
    }

    .fusion-hero {
        min-height: 360px;
        padding: 32px 24px;
        border-radius: 12px;
    }

    .fusion-grid,
    .fusion-gallery,
    .fusion-reviews {
        grid-template-columns: 1fr;
    }

    .fusion-cta {
        padding: 32px 24px;
    }
}

/* Footer: keep the new technology submenu out of the flat footer list */
.footer__nav .sub-menu {
    display: none;
}

/* Keep page content aligned with the new header height */
.main {
    padding-top: 129px;
}

@media (max-width: 1600px) {
    .main {
        padding-top: 113px;
    }
}

@media (max-width: 480px) {
    .main {
        padding-top: 98px;
    }
}

@media (max-width: 360px) {
    .header__brand .logo {
        width: 70px;
        height: 34px;
    }

    .header__partner {
        width: 140px;
    }

    .header__partner-label {
        font-size: 12px;
    }

    .header__partner-logo {
        width: 140px;
        height: 28px;
    }
}
