/*
Theme Name: Optimal
Theme URI: https://optimal.webbuilder.gr
Author: Webbuilder.gr
Author URI: https://webbuilder.gr
Description: Premium minimal construction theme inspired by Modulex.
Version: 1.5
License: GNU General Public License v2 or later
Text Domain: optimal
*/

/* --------------------------------------------------------------
   RESET & GLOBAL
-------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #111;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* PRIMARY BUTTON */
.mx-btn-primary {
    display: inline-block;
    padding: 14px 34px;
    background: #e5e5e5;
    color: #000;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: 0.25s;
}

.mx-btn-primary:hover {
    background: #000;
    color: #fff;
}

/* --------------------------------------------------------------
   HEADER
-------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 32px 0;
    background: transparent;
    z-index: 10000;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title-text {
    font-size: 28px;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: #fff;
    transition: 0.3s;
}

.site-header.scrolled .site-title-text {
    color: #000;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-navigation a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition: 0.3s;
}

.site-header .main-navigation a {
    color: #fff;
}

.site-header.scrolled .main-navigation a {
    color: #000;
}

.main-navigation a:hover {
    border-color: currentColor;
}

/* --------------------------------------------------------------
   MOBILE MENU
-------------------------------------------------------------- */

.desktop-menu {
    display: flex;
}

.mobile-burger,
.mobile-menu-panel {
    display: none;
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        z-index: 20001;
    }

    .mobile-burger span {
        width: 26px;
        height: 3px;
        background: #fff;
        transition: 0.3s;
    }

    .site-header.scrolled .mobile-burger span {
        background: #000;
    }

    .mobile-menu-panel {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 340px;
        height: 100vh;
        background: #0d0d0d;
        padding: 40px 26px;
        color: #fff;
        transition: right 0.35s ease;
        z-index: 20000;
    }

    .mobile-menu-panel.open {
        right: 0;
    }

    .mobile-menu-items ul {
        list-style: none;
        margin-top: 40px;
    }

    .mobile-menu-items li {
        margin: 20px 0;
    }

    .mobile-menu-items a {
        color: #fff !important;
        font-size: 20px;
        text-transform: uppercase;
        letter-spacing: .1em;
    }
}

/* --------------------------------------------------------------
   HERO SECTION
-------------------------------------------------------------- */

.mx-hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mx-hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

.mx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
    z-index: 2;
}

.mx-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 760px;
}

.mx-hero-title {
    font-size: 64px;
    line-weight: 1.1;
    font-weight: 700;
    margin-bottom: 18px;
}

.mx-hero-subtitle {
    font-size: 18px;
    max-width: 480px;
    opacity: 0.95;
    margin-bottom: 28px;
}

/* --------------------------------------------------------------
   WHAT WE DO — UPDATED MODULEX VERSION
-------------------------------------------------------------- */

.mx-mega-section {
    padding: 100px 0 60px;
    background: #fff;
}

.mx-mega-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mx-mega-grid.updated-boxes {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80vh;
    gap: 30px;
}

.mx-mega-box.updated-box {
    background: #000;
    color: #fff;
    position: relative;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mx-mega-box.updated-box.center {
    height: 70%;
}

.mx-mega-box.updated-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: auto;
    z-index: 2;
    position: relative;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Overlay */
.box-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    transition: bottom 0.6s ease;
    z-index: 1;
    background-color: rgba(0,0,0,0.7);
}

.updated-box.left .box-overlay {
    background-image: url('https://optimal.webbuilder.gr/wp-content/uploads/2025/12/construction.jpg');
}
.updated-box.center .box-overlay {
    background-image: url('https://optimal.webbuilder.gr/wp-content/uploads/2025/12/architecture.jpg');
}
.updated-box.right .box-overlay {
    background-image: url('https://optimal.webbuilder.gr/wp-content/uploads/2025/12/renovation.jpg');
}

.mx-mega-box.updated-box:hover .box-overlay {
    bottom: 0;
}

.box-overlay p {
    margin-bottom: 30px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .mx-mega-grid.updated-boxes {
        flex-direction: column;
        height: auto;
    }
    .mx-mega-box.updated-box,
    .mx-mega-box.updated-box.center {
        width: 100%;
        height: 280px;
    }
}
@media (max-width: 992px) {

    /* Show only LEFT window on mobile */
    .win.mid,
    .win.right {
        display: none;
    }

    .win.left {
        width: 100%;
        height: 300px;
    }
}

/* --------------------------------------------------------------
   PROJECTS SECTION
-------------------------------------------------------------- */
/* --------------------------------------------------------------
   PROJECTS SECTION – NEW
-------------------------------------------------------------- */

/* (παλιό generic projects, αν δε χρησιμοποιείται δεν πειράζει) */
.projects-section {
    background: #f3f3f3;
    padding: 100px 0;
}

/* ==== IFI παλιό (δεν το χρησιμοποιείς πλέον, αλλά το αφήνω safe) ==== */
.projects-slider {
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    height: 420px;
    position: relative;
}

.slider-track {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform .6s ease;
}

.slide {
    flex: 0 0 20%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.nav {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    margin-top: 20px;
    margin-right: 5%;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .8;
}

.nav span {
    cursor: pointer;
}

.nav span:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .projects-slider {
        width: 100%;
        height: 300px;
    }

    .slide {
        flex: 0 0 100%;
    }

    .nav {
        justify-content: center;
        gap: 20px;
        margin-right: 0;
    }
}
@media (max-width: 768px) {

    /* Buttons shorter on mobile */
    .mx-btn-ghost-light,
    .mx-btn-primary,
    .what-btn,
    .proj-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {

    /* Hide middle & right */
    .win.mid,
    .win.right {
        display: none;
    }

    /* Left becomes FULL WIDTH, FULL HEIGHT */
    .win.left {
        width: 100% !important;
        height: 360px !important;
        overflow: hidden;
    }

    /* The background image scales correctly */
    .win.left .slide-bg {
        width: 100% !important;
        height: 100% !important;
        transform: translateX(0) !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Navigation alignment */
    .proj-nav {
        text-align: center !important;
        padding-right: 0 !important;
        margin-top: 20px;
    }

    .proj-nav span {
        margin: 0 20px;
        font-size: 13px;
    }

    /* Button shorter text */
    .mx-btn-ghost-light {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* --------------------------------------------------------------
   NEW PROJECTS BLOCK (HEADER + CAROUSEL)
-------------------------------------------------------------- */

.mx-projects-block {
    background: #f2f2f2;
    padding: 100px 0 120px;
}

/* HEADER (PROJECTS + TEXT + BUTTON) */
.proj-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.proj-left {
    width: 40%;
}


.proj-right {
    width: 40%;
    text-align: right;
}

.proj-title {
    font-size: 42px;
    letter-spacing: .08em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proj-sub {
    font-size: 18px;
    opacity: .8;
}

.proj-right .mx-btn-primary {
    margin-top: 18px;
}

/* --------------------------------------------------------------
   PROJECTS CAROUSEL — FINAL CLEAN VERSION
-------------------------------------------------------------- */

.mx-projects-block {
    background: #f2f2f2;
    padding: 100px 0 120px;
}

/* HEADER ALIGNMENT */
.proj-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.proj-left { width: 40%; }
.proj-right { width: 40%; text-align: right; }

.proj-title {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proj-sub {
    font-size: 18px;
    opacity: .8;
}

.proj-right .mx-btn-primary {
    margin-top: 18px;
}

/* CAROUSEL FRAME (40% / 30% / 20%) */
.projects-frame {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10%;
    margin-top: 60px;
    gap: 4%;
}

/* 3 WINDOWS */
.win {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.win.left  { width: 40%; }
.win.mid   { width: 30%; }
.win.right { width: 20%; }

/* BIG PANORAMA BEHIND */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;               /* πολύ μεγάλο canvas */
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .8s ease-out;
}

/* START OFFSETS (3 segments of same large image) */
.win.left  .slide-bg { transform: translateX(0%); }
.win.mid   .slide-bg { transform: translateX(-33%); }
.win.right .slide-bg { transform: translateX(-66%); }

/* WHEN SLIDING — SHIFT ONE IMAGE LEFT */
.win.slide .slide-bg {
    transform: translateX(-33%);
}

/* TEXT IN LEFT WINDOW */
.slide-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
}

.slide-info h3 {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.slide-info p {
    opacity: .9;
    margin-bottom: 16px;
}

.proj-btn {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: .3s;
}

.proj-btn:hover {
    background: #fff;
    color: #000;
}

/* NAV BUTTONS */
.proj-nav {
    margin-top: 30px;
    padding-right: 10%;
    text-align: right;
    font-size: 14px;
    letter-spacing: .12em;
}

.proj-nav span {
    margin-left: 30px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

.proj-nav span:hover { opacity: .6; }

/* ==========================
   GLOBAL PROJECT BUTTON STYLE
   ========================== */
.mx-btn-ghost {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);

    transition: 0.3s ease;
}

.mx-btn-ghost:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.mx-btn-ghost-light {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.05);
    color: #000;
    border: 1px solid rgba(0,0,0,0.25);
    transition: 0.3s ease;
}
.mx-btn-ghost-light:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}
.what-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 22px;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    backdrop-filter: blur(4px);
    border-radius: 0px;
    transition: .3s;
}

.what-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.mx-mega-box.updated-box .what-btn {
    align-self: flex-start; /* μην πηγαίνει τέρμα δεξιά */
}
.box-overlay p {
    margin-top: 16px;       /* <<< ΝΕΟ SPACING */
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}
.proj-right .mx-btn-ghost-light {
    margin-top: 20px;
}
/* default: όλα grayscale */
.win .slide-bg {
    filter: grayscale(100%);
    transition: filter .5s ease, opacity .5s ease;
}

/* μόνο το αριστερό έχει χρώμα */
.win.left .slide-bg {
    filter: grayscale(0%);
}
.win.left .slide-bg {
    filter: grayscale(0%) saturate(130%) contrast(110%);
}
.mx-mega-title,
.proj-title {
    font-family: inherit;     /* ίδια με Hero */
    font-weight: 700;
    letter-spacing: 0;        /* NO spacing between letters */
    text-transform: uppercase;
}
.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 30px;
}

.lang-switch a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    opacity: .6;
    transition: .25s;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
}
.mobile-lang-switch {
    margin-top: 40px;
    text-align: center;
    font-size: 18px;
    letter-spacing: .1em;
}
.mobile-lang-switch a {
    color: #fff;
}
.mobile-lang-switch span {
    margin: 0 8px;
    color: #888;
}

/* BIG WORD BEHIND */
.has-mask {
    position: relative;
    overflow: hidden;
}

.mask-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28vw;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.08);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

/* Make foreground boxes reveal */
.mx-mega-box.updated-box {
    position: relative;
    z-index: 5;
    mix-blend-mode: normal;
}

/* Scroll fade */
.mask-text.scroll-hide {
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/*
Theme Name: Optimal
Theme URI: https://optimal.webbuilder.gr
Author: Webbuilder.gr
Author URI: https://webbuilder.gr
Description: Premium minimal construction theme inspired by Modulex.
Version: 1.5
License: GNU General Public License v2 or later
Text Domain: optimal
*/

/* --------------------------------------------------------------
   RESET & GLOBAL
-------------------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #111;
    overflow-x: hidden;
}

img, video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* PRIMARY BUTTON */
.mx-btn-primary {
    display: inline-block;
    padding: 14px 34px;
    background: #e5e5e5;
    color: #000;
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    transition: 0.25s;
}

.mx-btn-primary:hover {
    background: #000;
    color: #fff;
}

/* --------------------------------------------------------------
   HEADER
-------------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 32px 0;
    background: transparent;
    z-index: 10000;
    transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.95);
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title-text {
    font-size: 28px;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: #fff;
    transition: 0.3s;
}

.site-header.scrolled .site-title-text {
    color: #000;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-navigation a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition: 0.3s;
}

.site-header .main-navigation a {
    color: #fff;
}

.site-header.scrolled .main-navigation a {
    color: #000;
}

.main-navigation a:hover {
    border-color: currentColor;
}

/* --------------------------------------------------------------
   MOBILE MENU
-------------------------------------------------------------- */

.desktop-menu {
    display: flex;
}

.mobile-burger,
.mobile-menu-panel {
    display: none;
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        cursor: pointer;
        z-index: 20001;
    }

    .mobile-burger span {
        width: 26px;
        height: 3px;
        background: #fff;
        transition: 0.3s;
    }

    .site-header.scrolled .mobile-burger span {
        background: #000;
    }

    .mobile-menu-panel {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 340px;
        height: 100vh;
        background: #0d0d0d;
        padding: 40px 26px;
        color: #fff;
        transition: right 0.35s ease;
        z-index: 20000;
    }

    .mobile-menu-panel.open {
        right: 0;
    }

    .mobile-menu-items ul {
        list-style: none;
        margin-top: 40px;
    }

    .mobile-menu-items li {
        margin: 20px 0;
    }

    .mobile-menu-items a {
        color: #fff !important;
        font-size: 20px;
        text-transform: uppercase;
        letter-spacing: .1em;
    }
}

/* --------------------------------------------------------------
   HERO SECTION
-------------------------------------------------------------- */

.mx-hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.mx-hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

.mx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
    z-index: 2;
}

.mx-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
    max-width: 760px;
}

.mx-hero-title {
    font-size: 64px;
    line-weight: 1.1;
    font-weight: 700;
    margin-bottom: 18px;
}

.mx-hero-subtitle {
    font-size: 18px;
    max-width: 480px;
    opacity: 0.95;
    margin-bottom: 28px;
}

/* --------------------------------------------------------------
   WHAT WE DO — UPDATED MODULEX VERSION
-------------------------------------------------------------- */

.mx-mega-section {
    padding: 100px 0 60px;
    background: #fff;
}

.mx-mega-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mx-mega-grid.updated-boxes {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 80vh;
    gap: 30px;
}

.mx-mega-box.updated-box {
    background: #000;
    color: #fff;
    position: relative;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mx-mega-box.updated-box.center {
    height: 70%;
}

.mx-mega-box.updated-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: auto;
    z-index: 2;
    position: relative;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Overlay */
.box-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    transition: bottom 0.6s ease;
    z-index: 1;
    background-color: rgba(0,0,0,0.7);
}

.updated-box.left .box-overlay {
    background-image: url('https://optimal.webbuilder.gr/wp-content/uploads/2025/12/construction.jpg');
}
.updated-box.center .box-overlay {
    background-image: url('https://optimal.webbuilder.gr/wp-content/uploads/2025/12/architecture.jpg');
}
.updated-box.right .box-overlay {
    background-image: url('https://optimal.webbuilder.gr/wp-content/uploads/2025/12/renovation.jpg');
}

.mx-mega-box.updated-box:hover .box-overlay {
    bottom: 0;
}

.box-overlay p {
    margin-bottom: 30px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .mx-mega-grid.updated-boxes {
        flex-direction: column;
        height: auto;
    }
    .mx-mega-box.updated-box,
    .mx-mega-box.updated-box.center {
        width: 100%;
        height: 280px;
    }
}
@media (max-width: 992px) {

    /* Show only LEFT window on mobile */
    .win.mid,
    .win.right {
        display: none;
    }

    .win.left {
        width: 100%;
        height: 300px;
    }
}

/* --------------------------------------------------------------
   PROJECTS SECTION
-------------------------------------------------------------- */
/* --------------------------------------------------------------
   PROJECTS SECTION – NEW
-------------------------------------------------------------- */

/* (παλιό generic projects, αν δε χρησιμοποιείται δεν πειράζει) */
.projects-section {
    background: #f3f3f3;
    padding: 100px 0;
}

/* ==== IFI παλιό (δεν το χρησιμοποιείς πλέον, αλλά το αφήνω safe) ==== */
.projects-slider {
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    height: 420px;
    position: relative;
}

.slider-track {
    display: flex;
    width: 500%;
    height: 100%;
    transition: transform .6s ease;
}

.slide {
    flex: 0 0 20%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.nav {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    margin-top: 20px;
    margin-right: 5%;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .8;
}

.nav span {
    cursor: pointer;
}

.nav span:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .projects-slider {
        width: 100%;
        height: 300px;
    }

    .slide {
        flex: 0 0 100%;
    }

    .nav {
        justify-content: center;
        gap: 20px;
        margin-right: 0;
    }
}
@media (max-width: 768px) {

    /* Buttons shorter on mobile */
    .mx-btn-ghost-light,
    .mx-btn-primary,
    .what-btn,
    .proj-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {

    /* Hide middle & right */
    .win.mid,
    .win.right {
        display: none;
    }

    /* Left becomes FULL WIDTH, FULL HEIGHT */
    .win.left {
        width: 100% !important;
        height: 360px !important;
        overflow: hidden;
    }

    /* The background image scales correctly */
    .win.left .slide-bg {
        width: 100% !important;
        height: 100% !important;
        transform: translateX(0) !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Navigation alignment */
    .proj-nav {
        text-align: center !important;
        padding-right: 0 !important;
        margin-top: 20px;
    }

    .proj-nav span {
        margin: 0 20px;
        font-size: 13px;
    }

    /* Button shorter text */
    .mx-btn-ghost-light {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* --------------------------------------------------------------
   NEW PROJECTS BLOCK (HEADER + CAROUSEL)
-------------------------------------------------------------- */

.mx-projects-block {
    background: #f2f2f2;
    padding: 100px 0 120px;
}

/* HEADER (PROJECTS + TEXT + BUTTON) */
.proj-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.proj-left {
    width: 40%;
}


.proj-right {
    width: 40%;
    text-align: right;
}

.proj-title {
    font-size: 42px;
    letter-spacing: .08em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proj-sub {
    font-size: 18px;
    opacity: .8;
}

.proj-right .mx-btn-primary {
    margin-top: 18px;
}

/* --------------------------------------------------------------
   PROJECTS CAROUSEL — FINAL CLEAN VERSION
-------------------------------------------------------------- */

.mx-projects-block {
    background: #f2f2f2;
    padding: 100px 0 120px;
}

/* HEADER ALIGNMENT */
.proj-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.proj-left { width: 40%; }
.proj-right { width: 40%; text-align: right; }

.proj-title {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proj-sub {
    font-size: 18px;
    opacity: .8;
}

.proj-right .mx-btn-primary {
    margin-top: 18px;
}

/* CAROUSEL FRAME (40% / 30% / 20%) */
.projects-frame {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10%;
    margin-top: 60px;
    gap: 4%;
}

/* 3 WINDOWS */
.win {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.win.left  { width: 40%; }
.win.mid   { width: 30%; }
.win.right { width: 20%; }

/* BIG PANORAMA BEHIND */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;               /* πολύ μεγάλο canvas */
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .8s ease-out;
}

/* START OFFSETS (3 segments of same large image) */
.win.left  .slide-bg { transform: translateX(0%); }
.win.mid   .slide-bg { transform: translateX(-33%); }
.win.right .slide-bg { transform: translateX(-66%); }

/* WHEN SLIDING — SHIFT ONE IMAGE LEFT */
.win.slide .slide-bg {
    transform: translateX(-33%);
}

/* TEXT IN LEFT WINDOW */
.slide-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
}

.slide-info h3 {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.slide-info p {
    opacity: .9;
    margin-bottom: 16px;
}

.proj-btn {
    display: inline-block;
    padding: 10px 22px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: .3s;
}

.proj-btn:hover {
    background: #fff;
    color: #000;
}

/* NAV BUTTONS */
.proj-nav {
    margin-top: 30px;
    padding-right: 10%;
    text-align: right;
    font-size: 14px;
    letter-spacing: .12em;
}

.proj-nav span {
    margin-left: 30px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
}

.proj-nav span:hover { opacity: .6; }

/* ==========================
   GLOBAL PROJECT BUTTON STYLE
   ========================== */
.mx-btn-ghost {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);

    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);

    transition: 0.3s ease;
}

.mx-btn-ghost:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.mx-btn-ghost-light {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.05);
    color: #000;
    border: 1px solid rgba(0,0,0,0.25);
    transition: 0.3s ease;
}
.mx-btn-ghost-light:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}
.what-btn {
    display: inline-block;
    margin-top: auto;
    padding: 10px 22px;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    backdrop-filter: blur(4px);
    border-radius: 0px;
    transition: .3s;
}

.what-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.mx-mega-box.updated-box .what-btn {
    align-self: flex-start; /* μην πηγαίνει τέρμα δεξιά */
}
.box-overlay p {
    margin-top: 16px;       /* <<< ΝΕΟ SPACING */
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}
.proj-right .mx-btn-ghost-light {
    margin-top: 20px;
}
/* default: όλα grayscale */
.win .slide-bg {
    filter: grayscale(100%);
    transition: filter .5s ease, opacity .5s ease;
}

/* μόνο το αριστερό έχει χρώμα */
.win.left .slide-bg {
    filter: grayscale(0%);
}
.win.left .slide-bg {
    filter: grayscale(0%) saturate(130%) contrast(110%);
}
.mx-mega-title,
.proj-title {
    font-family: inherit;     /* ίδια με Hero */
    font-weight: 700;
    letter-spacing: 0;        /* NO spacing between letters */
    text-transform: uppercase;
}
.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 30px;
}

.lang-switch a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    opacity: .6;
    transition: .25s;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
}
.mobile-lang-switch {
    margin-top: 40px;
    text-align: center;
    font-size: 18px;
    letter-spacing: .1em;
}
.mobile-lang-switch a {
    color: #fff;
}
.mobile-lang-switch span {
    margin: 0 8px;
    color: #888;
}

/* BIG WORD BEHIND */
.has-mask {
    position: relative;
    overflow: hidden;
}

.mask-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28vw;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.08);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* Make foreground boxes reveal */
.mx-mega-box.updated-box {
    position: relative;
    z-index: 5;
    mix-blend-mode: normal;
}

/* Scroll fade */
.mask-text.scroll-hide {
    opacity: 0;
    transform: translate(-50%, -40%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* =============================
   SCROLL ZOOM BANNER SECTION
============================== */

.mx-scroll-zoom-banner {
    position: relative;
    width: 100%;
    height: 80vh;                /* αρχικό ύψος */
    overflow: hidden;
    background: #fff;
}

/* Background image */
.mx-scroll-zoom-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('https://optimal.webbuilder.gr/wp-content/uploads/2025/12/draw-home.jpg');
    background-size: cover;
    background-position: center;

    transform: scale(0.5);       /* μικρή στην αρχή */
    transform-origin: center;
    transition: transform 1.4s ease-out;
}

/* Zoom when active */
.mx-scroll-zoom-banner.active .mx-scroll-zoom-bg {
    transform: scale(1.2);
}

/* Text block */
.mx-scroll-zoom-content {
    position: absolute;
    bottom: 18%;
    left: 8%;
    max-width: 420px;
    color: #fff;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

/* Show text when active */
.mx-scroll-zoom-banner.active .mx-scroll-zoom-content {
    opacity: 1;
    transform: translateY(0);
}

/* Text styling */
.mx-scroll-zoom-content h2 {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 16px;
    font-weight: 700;
}

.mx-scroll-zoom-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}
/* ================================
   BURGER TO X WHEN OPEN
================================ */

.mobile-burger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}
.mobile-burger.open span:nth-child(2) {
    opacity: 0;
}
.mobile-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}
/* ===========================
   FOOTER SECTION
=========================== */

.site-footer-big {
    position: relative;
    background: #fff;
    padding: 140px 0 80px;
    overflow: hidden;
}

/* BIG WORD BEHIND */
.footer-bg-word {
    font-size: clamp(120px, 22vw, 780px);
    opacity: 0.05;
    position: absolute;
    left: 50%;
    top: 62%; /* Lower position */
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
    font-weight: 700;
}

/* CONTENT AREA (LEFT + RIGHT) */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* LEFT TITLE */
.footer-left .footer-heading,
.footer-right .footer-heading {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* RIGHT COLUMN TEXT */
.footer-right p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* BOTTOM ROW */
.footer-bottom {
    max-width: 1280px;
    margin: 80px auto 0;
    padding: 20px 30px 0;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    line-height: 2.2;
}

/* LINKS */
.footer-bottom a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
}

.footer-bottom a:hover {
    opacity: 0.6;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-bg-word {
        top: 70%;
        font-size: 35vw;
    }
}
/* GLOBAL LAYOUT ALIGNMENT */

.section-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.align-left {
    padding-left: 8vw; /* visually aligns with footer text */
}

.align-right {
    padding-right: 8vw; /* for right aligned elements */
}
/* FORCE ALIGNMENT WITH MAIN CONTAINER */
.mx-projects-block .projects-frame,
.mx-projects-block .proj-nav {
    width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}
