/* Global resets removed to prevent conflict with theme */

/* Menu Toggle Button (visible when menu is closed) */
.ict-m-toggle {
    position: relative;
    width: 32px;
    height: 24px;
    cursor: pointer;
    z-index: 201;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: opacity 0.3s ease;
}

.ict-m-toggle.ict-m-custom-icon {
    justify-content: center;
    align-items: center;
    height: auto;
    width: auto;
    min-width: 32px;
    min-height: 24px;
}

/* Two Lines icon (like equals sign – animated) */
.ict-m-toggle.ict-m-two-lines {
    width: 28px;
    height: 10px;
    justify-content: space-between;
    overflow: visible;
}

.ict-m-toggle.ict-m-two-lines .ict-m-two-lines-line {
    display: block;
    width: 100%;
    height: 2px;
    min-height: 2px;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.ict-m-toggle.ict-m-two-lines .ict-m-two-lines-top {
    transform-origin: center right;
    background-color: #ffffff;
}

.ict-m-toggle.ict-m-two-lines .ict-m-two-lines-bottom {
    transform-origin: center left;
    background-color: #ffffff;
}

.ict-m-toggle.ict-m-two-lines:hover .ict-m-two-lines-line {
    background-color: #A1F75E;
}

.ict-m-toggle.ict-m-two-lines.ict-m-open .ict-m-two-lines-line {
    background-color: #A1F75E;
}

/* Two lines: click animation – morph into close (X) icon */
.ict-m-toggle.ict-m-two-lines.ict-m-active .ict-m-two-lines-top {
    transform: translateY(4px) rotate(45deg);
    transform-origin: center;
}

.ict-m-toggle.ict-m-two-lines.ict-m-active .ict-m-two-lines-bottom {
    transform: translateY(-4px) rotate(-45deg);
    transform-origin: center;
}

.ict-m-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.ict-m-toggle span:nth-child(1) {
    transform-origin: center right;
}

.ict-m-toggle span:nth-child(2) {
    transform-origin: center;
}

.ict-m-toggle span:nth-child(3) {
    transform-origin: center left;
}

.ict-m-toggle:hover span {
    background-color: #A1F75E;
}

/* When menu is open (X / close state): use close/accent color */
.ict-m-toggle.ict-m-open span {
    background-color: #A1F75E;
}

/* Click animation: morph into close (X) icon */
.ict-m-toggle.ict-m-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
    transform-origin: center;
    opacity: 1;
}

.ict-m-toggle.ict-m-active span:nth-child(2) {
    opacity: 1;
    transform: rotate(-45deg);
    transform-origin: center;
}

.ict-m-toggle.ict-m-active span:nth-child(3) {
    opacity: 0;
    transform: scaleX(0);
}

.ict-m-toggle.ict-m-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Full Screen Menu Overlay */
.ict-m-overlay {
    position: fixed;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: 83%;
    background-color: #1a1a1a;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.ict-m-overlay.ict-m-open {
    transform: translateX(0);
}

/* Desktop: scrollable content so marquee stays visible at bottom */
.ict-m-container {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.ict-m-marquee-container {
    flex-shrink: 0;
}

/* GSAP-animated lines – white borders, draw-in on menu open (irontec style) */
.ict-m-line {
    position: absolute;
    background-color: #ffffff;
    z-index: 10;
    transform-origin: left center;
}

.ict-m-line--top {
    top: 90px;
    left: 0;
    width: 100%;
    height: 1px;
    transform-origin: left center;
    transform: scaleX(0);
}

/* Vertical divider: animate top-to-bottom (scaleY) so draw is visible */
.ict-m-line--left {
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    transform-origin: center top;
    transform: scaleY(0);
}

.ict-m-nav-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ffffff;
    transform-origin: left center;
    transform: scaleX(0);
}

/* CSS fallback (when GSAP not loaded): smooth draw-in animation on open */
.ict-m-container:not(.ict-m-lines-gsap) .ict-m-line--top,
.ict-m-container:not(.ict-m-lines-gsap) .ict-m-nav-line {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ict-m-container:not(.ict-m-lines-gsap) .ict-m-line--left {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ict-m-container.ict-m-lines-visible .ict-m-line--top {
    transform: scaleX(1);
}

.ict-m-container.ict-m-lines-visible .ict-m-line--left {
    transform: scaleY(1);
}

.ict-m-container.ict-m-lines-visible .ict-m-nav-line {
    transform: scaleX(1);
}

/* Left Column - Main Navigation */
.ict-m-left-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.ict-m-main-nav {
    padding-top: 91px;
}

.ict-m-nav-item {
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.ict-m-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #ffffff;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.ict-m-nav-item:hover::before {
    width: 100%;
}

.ict-m-overlay.ict-m-open .ict-m-nav-item {
    opacity: 1;
    transform: translateX(0);
}

.ict-m-nav-item:nth-child(1) {
    transition-delay: 0.1s;
}

.ict-m-nav-item:nth-child(2) {
    transition-delay: 0.15s;
}

.ict-m-nav-item:nth-child(3) {
    transition-delay: 0.2s;
}

.ict-m-nav-item:nth-child(4) {
    transition-delay: 0.25s;
}

.ict-m-nav-item:nth-child(5) {
    transition-delay: 0.3s;
}

.ict-m-nav-item h2 {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding-left: 40px;
    padding-right: 40px;
}

.ict-m-nav-item:hover h2 {
    color: #000000;
}

/* Center Column - Secondary Navigation */
.ict-m-center-col {
    width: 40%;
    padding: 100px 50px 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ict-m-secondary-nav {
    padding-top: 10px;
}

/* Text Flip Hover Effect */
.ict-m-secondary-item {
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    perspective: 1000px;
    opacity: 0;
    transform: translateX(30px);
}

.ict-m-overlay.ict-m-open .ict-m-secondary-item {
    opacity: 1;
    transform: translateX(0);
}

.ict-m-secondary-item:nth-child(1) {
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.ict-m-secondary-item:nth-child(2) {
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.ict-m-secondary-item:nth-child(3) {
    transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}

.ict-m-secondary-item:nth-child(4) {
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.ict-m-secondary-item:nth-child(5) {
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.ict-m-secondary-item:nth-child(6) {
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
}

.ict-m-secondary-item:nth-child(7) {
    transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s;
}

/* Irontec-style hover: slide-up reveal (white → green) */
.ict-m-flip-text {
    position: relative;
    display: inline-block;
    height: 28px;
    line-height: 28px;
    overflow: hidden;
}

.ict-m-flip-text-inner {
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ict-m-flip-text-front,
.ict-m-flip-text-back {
    display: block;
    height: 28px;
    line-height: 28px;
    font-size: 22px;
    font-weight: 300;
}

.ict-m-flip-text-front {
    color: #ffffff;
}

.ict-m-flip-text-back {
    color: #A1F75E;
}

/* Hover only on the row being hovered (not parent when child is hovered) */
.ict-m-secondary-item > a:hover .ict-m-flip-text-inner,
.ict-m-secondary-item > .ict-m-flip-text:hover .ict-m-flip-text-inner {
    transform: translateY(-28px);
}

.ict-m-secondary-item .ict-m-arrow {
    font-size: 14px;
    color: #ffffff;
    transition: color 0.4s ease, transform 0.2s ease;
}

/* Arrow hover only when that row’s link/title is hovered */
.ict-m-secondary-item > a:hover .ict-m-arrow,
.ict-m-secondary-item > a:first-of-type:hover ~ a .ict-m-arrow,
.ict-m-secondary-item > .ict-m-flip-text:hover ~ a .ict-m-arrow {
    color: #A1F75E;
    transform: translateY(-2px);
}

/* Submenu (WordPress menu – 1st image style: clean, indented, same text style) */
.ict-m-secondary-item.ict-m-has-submenu {
    flex-wrap: wrap;
    align-items: center;
}

/* Normal: icon points down (▼). Open: points up (^) like image */
.ict-m-overlay .ict-m-submenu-toggle,
.ict-m-submenu-toggle {
    margin-left: 2px;
    padding: 0;
    width: 28px;
    height: 28px;
    border: none;
    outline: none;
    background: transparent;
    background-color: transparent;
    box-shadow: none;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.25s ease;
    transform: rotate(180deg);
}

.ict-m-submenu-toggle .ict-m-submenu-icon {
    display: block;
}

/* Override Elementor/theme focus border (no pink/red box on icon) */
.ict-m-overlay .ict-m-submenu-toggle,
.ict-m-overlay .ict-m-submenu-toggle:focus,
.ict-m-overlay .ict-m-submenu-toggle:focus-visible,
.ict-m-submenu-toggle,
.ict-m-submenu-toggle:focus,
.ict-m-submenu-toggle:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.ict-m-overlay .ict-m-submenu-toggle .ict-m-submenu-icon,
.ict-m-submenu-toggle .ict-m-submenu-icon {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.ict-m-overlay .ict-m-submenu-toggle:hover,
.ict-m-overlay .ict-m-submenu-toggle:focus,
.ict-m-submenu-toggle:hover,
.ict-m-submenu-toggle:focus {
    color: #A1F75E;
    background: transparent;
    background-color: transparent;
    box-shadow: none;
    outline: none;
}

/* When submenu open: chevron points up (^) like image */
.ict-m-secondary-item.ict-m-has-submenu.ict-m-submenu-open .ict-m-submenu-toggle {
    transform: rotate(0deg);
    color: #A1F75E;
    background: transparent;
    background-color: transparent;
    outline: none;
}

/* Align with parent (no indent) – 1st image style */
.ict-m-submenu {
    width: 100%;
    padding-left: 0;
    margin-top: 6px;
    margin-bottom: 4px;
    display: none;
    list-style: none;
}

.ict-m-secondary-item.ict-m-has-submenu.ict-m-submenu-open .ict-m-submenu {
    display: block;
}

/* Submenu: smaller font than parent, same alignment */
.ict-m-submenu .ict-m-secondary-item {
    padding: 8px 0;
    border: none;
    background: none;
}

.ict-m-submenu .ict-m-secondary-item .ict-m-flip-text {
    height: 22px;
    line-height: 22px;
}

.ict-m-submenu .ict-m-secondary-item .ict-m-flip-text-inner {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ict-m-submenu .ict-m-secondary-item .ict-m-flip-text-front,
.ict-m-submenu .ict-m-secondary-item .ict-m-flip-text-back {
    height: 22px;
    line-height: 22px;
    font-size: 17px;
    font-weight: 300;
}

.ict-m-submenu .ict-m-secondary-item > a:hover .ict-m-flip-text-inner {
    transform: translateY(-22px);
}

/* Contact Info */
.ict-m-contact {
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

.ict-m-overlay.ict-m-open .ict-m-contact {
    opacity: 1;
    transform: translateY(0);
}

.ict-m-contact-line {
    font-size: 15px;
    color: #b0b0b0;
    margin-bottom: 8px;
    font-weight: 300;
}

.ict-m-contact-line a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ict-m-contact-line a:hover {
    color: #ffffff;
}

.ict-m-social {
    display: flex;
    gap: 8px;
    font-size: 15px;
    color: #b0b0b0;
}

.ict-m-social a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ict-m-social a:hover {
    color: #ffffff;
}

.ict-m-social span {
    color: #666;
}

/* Bottom Marquee (stays at bottom of overlay when container scrolls) */
.ict-m-marquee-container {
    background-color: #A1F75E;
    padding: 14px 0;
    overflow: hidden;
    position: relative;
}

.ict-m-marquee {
    display: flex;
    animation: marquee 60s linear infinite;
    white-space: nowrap;
}

.ict-m-marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
}

.ict-m-marquee-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
}

.ict-m-marquee-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.ict-m-marquee-item a.ict-m-marquee-text {
    text-decoration: none;
    color: inherit;
}

.ict-m-marquee-dot {
    width: 20px;
    height: 20px;
    background-color: #1a1a1a;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Page Content (behind menu) */
.page-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.page-content h1 {
    font-size: 48px;
    font-weight: 300;
    color: #ffffff;
}

/* Mobile: left strip with vertical ticker (hidden on desktop) */
.ict-m-strip {
    display: none;
}

/* Responsive - mobile menu like reference image */
@media (max-width: 1370px) {
    .ict-m-overlay {
        width: 92%;
    }
}

@media (max-width: 1170px) {
    .ict-m-overlay {
        width: 98%;
    }
}

@media (max-width: 900px) {
    .ict-m-overlay {
        width: 100%;
        left: 0;
        flex-direction: row;
        background-color: #000000;
    }

    .ict-m-strip {
        display: flex;
        width: 60px;
        min-width: 60px;
        max-width: 60px;
        background-color: #A1F75E;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
        isolation: isolate;
    }

    .ict-m-strip-ticker {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        padding: 20px 0;
        animation: ict-m-ticker 50s linear infinite;
    }

    .ict-m-strip-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-shrink: 0;
        min-height: 48px;
    }

    .ict-m-strip-text {
        font-size: 30px;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: 1.5px;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        white-space: nowrap;
        line-height: 1.2;
        text-align: center;
    }

    .ict-m-strip-dot {
        width: 30px;
        height: 30px;
        background-color: #1a1a1a;
        flex-shrink: 0;
    }

    @keyframes ict-m-ticker {
        0% { transform: translateY(0); }
        100% { transform: translateY(-50%); }
    }

    .ict-m-container {
        flex: 1;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        min-width: 0;
        margin-left: 0;
    }

    .ict-m-line--top {
        top: 0;
    }

    .ict-m-left-col {
        flex: none;
        border-right: none;
        border-bottom: none;
    }

    .ict-m-line--left {
        display: none;
    }

    .ict-m-main-nav {
        padding-top: 48px;
        padding-left: 0;
        padding-right: 0;
    }

    .ict-m-nav-item {
        padding: 12px 0;
        position: relative;
    }

    .ict-m-nav-item:first-child {
        border-top: 1px solid #ffffff;
    }

    .ict-m-nav-item h2 {
        font-size: 24px;
        font-weight: 400;
        color: #ffffff;
        padding-left: 16px;
        padding-right: 16px;
    }

    .ict-m-line--top,
    .ict-m-nav-line {
        background-color: #ffffff;
    }

    .ict-m-nav-line {
        left: 0;
        right: 0;
        height: 1px;
    }

    .ict-m-nav-item:last-child .ict-m-nav-line {
        display: none;
    }

    .ict-m-container.ict-m-lines-visible .ict-m-line--top,
    .ict-m-container.ict-m-lines-visible .ict-m-nav-line {
        transform: scaleX(1);
    }

    .ict-m-center-col {
        width: 100%;
        padding: 12px 16px 20px;
        border-bottom: none;
    }

    .ict-m-secondary-nav {
        padding-top: 4px;
    }

    .ict-m-secondary-item {
        padding: 10px 0;
    }

    .ict-m-flip-text-front,
    .ict-m-flip-text-back {
        font-size: 24px;
    }

    .ict-m-flip-text-front {
        color: #ffffff;
    }

    .ict-m-flip-text-back {
        color: #A1F75E;
    }

    .ict-m-secondary-item .ict-m-arrow {
        color: #ffffff;
    }

    .ict-m-secondary-item > a:hover .ict-m-arrow,
    .ict-m-secondary-item > a:first-of-type:hover ~ a .ict-m-arrow {
        color: #A1F75E;
    }

    .ict-m-submenu {
        padding-left: 0;
    }

    .ict-m-submenu .ict-m-secondary-item .ict-m-flip-text,
    .ict-m-submenu .ict-m-secondary-item .ict-m-flip-text-front,
    .ict-m-submenu .ict-m-secondary-item .ict-m-flip-text-back {
        height: 20px;
        line-height: 20px;
        font-size: 15px;
    }

    .ict-m-submenu .ict-m-secondary-item > a:hover .ict-m-flip-text-inner {
        transform: translateY(-20px);
    }

    .ict-m-contact {
        margin-top: 16px;
    }

    .ict-m-contact-line,
    .ict-m-contact-line a,
    .ict-m-social,
    .ict-m-social a {
        color: #888888;
    }

    .ict-m-contact-line a:hover,
    .ict-m-social a:hover {
        color: #ffffff;
    }

    .ict-m-marquee-container {
        display: none;
    }

    /* Keep menu icon in its layout place; do not fix to viewport top */
    .ict-m-toggle {
        position: relative;
    }
}

@media (max-width: 480px) {
    .ict-m-strip {
        width: 60px;
        min-width: 60px;
    }

    .ict-m-strip-text {
        font-size: 24px;
    }

    .ict-m-strip-dot {
        width: 24px;
        height: 24px;
    }

    .ict-m-nav-item h2 {
        font-size: 24px;
    }

    .ict-m-main-nav {
        padding-top: 48px;
    }
}