/* =========================================================
   EASYLOGIC MEGA MENU DEMO - ΘΑ ΓΙΝΕΙ ΜΕ MEGA MENU MODULE
   ========================================================= */

.main-menu {
    --accent: #ff9b00;
    --text: #1a1a1a;
    --border: #e3e3e3;

    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}


/* MAIN ITEMS */

.main-menu > li {
    position: static;
    display: flex;
    align-items: center;
}

.main-menu > li > a {
    display: flex;
    align-items: center;

    min-height: 58px;
    padding: 0 15px;

    color: var(--text);
    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    transition: color .15s ease;
}

.main-menu > li:hover > a,
.main-menu > li.is-open > a {
    color: var(--accent);
}


/* ARROW BUTTON */

.main-menu > li > .mod-menu__toggle-sub {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 40px;

    margin-left: -10px;
    padding: 0;

    border: 0;
    background: transparent;

    color: #666;
    cursor: pointer;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    .main-menu > li.parent > .mod-menu__sub {
        position: absolute !important;

        top: 100% !important;
        left: 50% !important;
        z-index: 99999 !important;

        width: min(820px, calc(100vw - 40px)) !important;

        padding: 16px !important;

        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 16px;

        background: #fff !important;

        border: 1px solid var(--border);
        border-top: 2px solid var(--accent);

        border-radius: 0;

        box-shadow: 0 12px 35px rgba(0, 0, 0, .10);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translate(-50%, 8px);

        transition:
            opacity .15s ease,
            transform .15s ease,
            visibility .15s ease;
    }


    /* IMPORTANT:
       override Joomla aria-hidden display:none */
    .main-menu > li.parent > .mod-menu__sub[aria-hidden="true"],
    .main-menu > li.parent > .mod-menu__sub[aria-hidden="false"] {
        display: grid !important;
    }


    .main-menu > li.parent:hover > .mod-menu__sub,
    .main-menu > li.parent:focus-within > .mod-menu__sub,
    .main-menu > li.parent.is-open > .mod-menu__sub {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translate(-50%, 0);
    }


    /* SUBMENU LINKS */

    .main-menu > li.parent > .mod-menu__sub > li > a {
        display: block;

        padding: 13px 12px;

        color: #222;
        text-decoration: none;

        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;

        border-bottom: 1px solid #ededed;

        transition:
            color .15s ease,
            background-color .15s ease;
    }

    .main-menu > li.parent > .mod-menu__sub > li > a:hover {
        color: #000;
        background: #f7f7f7;
    }


    /* Υπηρεσίες: περισσότερα items → 3 columns */

    .main-menu > .item-106 > .mod-menu__sub {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    /* Μικρότερα menus → 2 columns */

    .main-menu > .item-104 > .mod-menu__sub,
    .main-menu > .item-105 > .mod-menu__sub,
    .main-menu > .item-107 > .mod-menu__sub,
    .main-menu > .item-109 > .mod-menu__sub {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(650px, calc(100vw - 40px)) !important;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .main-menu {
        display: block;
        width: 100%;
    }

    .main-menu > li {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;

        width: 100%;

        border-bottom: 1px solid var(--border);
    }

    .main-menu > li > a {
        min-height: 52px;
        padding: 0 12px;
    }

    .main-menu > li > .mod-menu__toggle-sub {
        width: 48px;
        height: 52px;

        margin: 0;

        border-left: 1px solid var(--border);
    }


    .main-menu > li.parent > .mod-menu__sub,
    .main-menu > li.parent > .mod-menu__sub[aria-hidden="true"],
    .main-menu > li.parent > .mod-menu__sub[aria-hidden="false"] {
        position: static !important;

        grid-column: 1 / -1;

        width: 100% !important;

        padding: 5px 0 !important;

        background: #f7f7f7 !important;

        border: 0;
        border-top: 1px solid var(--border);

        display: none !important;
    }


    .main-menu > li.parent.is-open > .mod-menu__sub {
        display: block !important;
    }


    .main-menu > li.parent > .mod-menu__sub > li > a {
        display: block;

        padding: 12px 18px;

        color: #333;
        text-decoration: none;

        font-size: 14px;

        border-bottom: 1px solid #e8e8e8;
    }

    .main-menu > li.parent > .mod-menu__sub > li:last-child > a {
        border-bottom: 0;
    }

    .main-menu > li.parent > .mod-menu__sub > li > a:hover {
        color: var(--accent);
        background: #fff;
    }
}

/* MAIN BANNER */

.home-banner {
    background: #09090b;
    color: #fff;
    padding: 90px 24px 80px;
}

.home-banner > .custom {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.home-banner h1 {
    max-width: 760px;
    margin: 0 0 24px;

    font-size: clamp(48px, 5vw, 76px);
    line-height: .98;
    letter-spacing: -.045em;
    font-weight: 700;
}

.home-banner h1 span {
    display: block;
    color: #ff9b00;
}

.home-banner p {
    max-width: 600px;
    margin: 0;

    color: #a5a5a5;
    font-size: 18px;
    line-height: 1.6;
}

.home-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.home-banner-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 22px;

    border: 1px solid #555;
    color: #fff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.home-banner-actions a.primary {
    background: #ff9b00;
    border-color: #ff9b00;
    color: #111;
}

.home-banner-actions a:hover {
    border-color: #ff9b00;
}

@media (max-width: 768px) {
    .home-banner {
        padding: 64px 20px 56px;
    }

    .home-banner h1 {
        font-size: clamp(42px, 11vw, 58px);
    }

    .home-banner p {
        font-size: 16px;
    }
}

/* DOMAIN SEARCH */
.moduletable.domain-search {
    background: #ff9b00;
    padding: 34px 24px;
}

.moduletable.domain-search > .custom {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.moduletable.domain-search .domain-search-title {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: center;
    gap: 80px;
}

.moduletable.domain-search label {
    margin: 0;

    color: #111;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}

.moduletable.domain-search .domain-search-box {
    display: flex;
    width: 100%;

    padding: 4px;

    background: #fff;
    border: 1px solid #111;
}

.moduletable.domain-search input {
    flex: 1;
    min-width: 0;

    height: 48px;
    padding: 0 16px;

    border: 0;
    outline: 0;
    background: transparent;

    color: #111;
    font-size: 16px;
}

.moduletable.domain-search input::placeholder {
    color: #999;
}

.moduletable.domain-search button {
    min-width: 140px;

    padding: 0 20px;

    border: 0;
    background: #16130f;
    color: #ff9b00;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.moduletable.domain-search button:hover {
    background: #000;
}

@media (max-width: 768px) {
    .moduletable.domain-search {
        padding: 28px 20px;
    }

    .moduletable.domain-search .domain-search-title {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .moduletable.domain-search label {
        font-size: 24px;
    }

    .moduletable.domain-search button {
        min-width: 120px;
    }
}


/* =========================================================
   EASYLOGIC HOME SECTIONS
   ========================================================= */

.home-start,
.home-products,
.home-ecommerce {
    --orange: #ff9b00;
    --black: #09090b;
    --text: #171717;
    --muted: #707070;
    --border: #dedede;

    padding: 90px 24px;
}


/* Joomla custom module inner wrapper */

.home-start > .custom,
.home-products > .custom,
.home-ecommerce > .custom {
    width: min(1120px, 100%);
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.home-section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 80px;

    margin-bottom: 44px;
}


.home-section-head h2 {
    max-width: 560px;

    margin: 0;

    color: var(--text);

    font-size: clamp(40px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
}


.home-section-head > p {
    max-width: 500px;

    margin: 0 0 4px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.6;
}


/* Small orange section label */

.home-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    color: #a95a00;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}


.home-eyebrow::before {
    content: "";

    width: 14px;
    height: 2px;

    background: var(--orange);
}


/* =========================================================
   CARD GRID
   ========================================================= */

.home-cards {
    display: grid;

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}


.home-cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


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


/* =========================================================
   GENERAL CARD
   ========================================================= */

.home-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 215px;

    padding: 24px 22px;

    color: inherit;
    text-decoration: none;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition: background-color 0.15s ease;
}


.home-card:hover {
    background: rgba(0, 0, 0, 0.025);
}


.home-card h3 {
    margin: 18px 0 10px;

    color: var(--text);

    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 700;
}


.home-card p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   ICON
   ========================================================= */

.home-card-icon {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: #c46a00;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   CARD LABEL
   ========================================================= */

.home-card-label {
    color: #a95a00;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}


/* =========================================================
   CARD LINK
   ========================================================= */

.home-card-more {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: auto;
    padding-top: 28px;

    color: var(--text);

    font-size: 12px;
    font-weight: 700;
}


.home-card-more b {
    color: #a95a00;

    font-size: 17px;
    font-weight: 400;

    transition: transform 0.15s ease;
}


.home-card:hover .home-card-more b {
    transform: translateX(3px);
}


/* =========================================================
   1. START SECTION
   ========================================================= */

.home-start {
    background: #ffffff;
}


.home-start .home-card {
    background: #ffffff;
}


.home-start .home-card:hover {
    background: #fafafa;
}


/* =========================================================
   2. PRODUCTS
   ========================================================= */

.home-products {
    background: var(--black);

    --text: #f4f4f4;
    --muted: #929292;
    --border: #303033;
}


.home-products .home-section-head h2 {
    color: #f4f4f4;
}


.home-products .home-section-head > p {
    color: #929292;
}


.home-products .home-card {
    min-height: 185px;

    background: transparent;
}


.home-products .home-card:hover {
    background: #111114;
}


.home-products .home-card h3,
.home-products .home-card-more {
    color: #f4f4f4;
}


.home-products .home-card p {
    color: #929292;
}


.home-products .home-card-label {
    color: var(--orange);
}


.home-products .home-card-more b {
    color: var(--orange);
}


/* =========================================================
   3. ECOMMERCE
   ========================================================= */

.home-ecommerce {
    background: #f7f7f6;
}


.home-ecommerce-card {
    min-height: 320px;

    padding: 28px 22px;
}


.home-ecommerce-card h3 {
    margin-top: 22px;

    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}


.home-ecommerce-card ul {
    display: grid;
    gap: 9px;

    margin: 20px 0 0;
    padding: 0;

    list-style: none;
}


.home-ecommerce-card li {
    position: relative;

    padding-left: 18px;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.5;
}


.home-ecommerce-card li::before {
    content: "—";

    position: absolute;
    left: 0;

    color: #aaa;
}


.home-ecommerce-card:hover {
    background: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .home-section-head {
        gap: 40px;
    }


    .home-cards-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .home-cards-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .home-start,
    .home-products,
    .home-ecommerce {
        padding: 60px 20px;
    }


    .home-section-head {
        grid-template-columns: 1fr;

        gap: 22px;

        margin-bottom: 32px;
    }


    .home-section-head h2 {
        font-size: 38px;
    }


    .home-section-head > p {
        max-width: none;

        font-size: 15px;
    }


    .home-cards-3,
    .home-cards-4 {
        grid-template-columns: 1fr;
    }


    .home-card {
        min-height: 185px;

        padding: 22px 20px;
    }


    .home-ecommerce-card {
        min-height: 280px;
    }


    .home-ecommerce-card h3 {
        font-size: 24px;
    }
}