/* common.css */
@import url('https://fonts.googleapis.com/css2?family=GT+Walsheim+Pro:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'GT Walsheim Pro', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== PRIVACY BANNER ===== */
.privacy-banner {
    position: fixed;
    bottom: 80px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    box-shadow: 0 -4px 20px rgba(138, 154, 163, 0.15);
    border-top: 1px solid rgba(138, 154, 163, 0.2);
    z-index: 1001;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.privacy-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.privacy-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.privacy-content p {
    color: #5d6d7e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.privacy-content a {
    color: #8a9aa3;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-content a:hover {
    color: #2c3e50;
}

.privacy-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.privacy-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.privacy-btn--decline {
    background: transparent;
    color: #8a9aa3;
    border: 1px solid rgba(138, 154, 163, 0.3);
}

.privacy-btn--decline:hover {
    background: rgba(138, 154, 163, 0.1);
    color: #2c3e50;
    transform: translateY(-2px);
}

.privacy-btn--accept {
    background: rgba(138, 154, 163, 0.15);
    color: #2c3e50;
}

.privacy-btn--accept:hover {
    background: rgba(44, 62, 80, 0.15);
    color: #2c3e50;
    transform: translateY(-2px);
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    position: fixed;
    /* CHANGED: αντί για σταθερό top:20px → κεντράρουμε γεωμετρικά
       Progress bar (desktop): top:20px, height:6px → κέντρο = 20px + 3px */
    top: calc(20px + 3px);           /* CHANGED */
    transform: translateY(-50%);     /* CHANGED: κέντρο στο κέντρο */
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(138, 154, 163, 0.2);
}

.language-switcher button {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8a9aa3;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 12px;
}

.language-switcher button.active {
    background: rgba(138, 154, 163, 0.2);
    color: #2c3e50;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 20px;                         /* desktop */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.progress-bar .bar {
    width: 27px;
    height: 6px;
    background-color: #e9eaec;
    transition: all 0.3s ease;
    border-radius: 3px;
    opacity: 0.8;
}

.progress-bar .bar.active {
    background-color: #8a9aa3;
    transform: scale(1.1);
    opacity: 0.8;
}

/* ===== SWIPER STYLES ===== */
.swiper {
    width: 100%;
    height: calc(100vh - 80px);
    margin-bottom: 80px;
    z-index: 1;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #2c3e50;
    background: white;
    position: relative;
    overflow-y: auto;
    /* CHANGED: κατέβασμα περιεχομένου για να μην «πέφτουν» στις γλώσσες */
    padding: 64px 0 20px 0;             /* CHANGED: πριν 20px 0 20px 0 */
    height: 100%;
}

.swiper-button-next,
.swiper-button-prev {
    color: #8a9aa3;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(138, 154, 163, 0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

/* ===== HOME SLIDE ===== */
.slide-home {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    align-items: center;
    justify-content: center;
}

.home-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.logo-main {
    width: 400px;
    height: 400px;
    object-fit: contain;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== SERVICES SLIDE ===== */
.services-container {
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(138, 154, 163, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(138, 154, 163, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(138, 154, 163, 0.1), rgba(218, 235, 246, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #8a9aa3;
}

.service-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1e2c34;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-description {
    color: #3d5060;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(138, 154, 163, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1rem;
    color: #8a9aa3;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.service-arrow:hover {
    background: rgba(138, 154, 163, 0.2);
    color: #2c3e50;
    transform: translateY(2px);
}

/* ===== ABOUT SLIDE ===== */
.about-content {
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    justify-content: center;
    width: 100%;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(138, 154, 163, 0.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-info {
    text-align: left;
}

.profile-info h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.profile-info h2:hover {
    color: #8a9aa3;
}

.profile-info p {
    color: #5d6d7e;
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    z-index: 1000;
    border-top: 1px solid rgba(138, 154, 163, 0.2);
}

.footer-left {
    display: flex;
    gap: 1.5rem;
}

.footer-btn {
    background: none;
    border: none;
    color: #5d6d7e;
    font-family: 'GT Walsheim Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 4px;
    text-decoration: none;
    display: inline-block;
}

.footer-btn:hover {
    color: #8a9aa3;
}

.footer-content {
    display: flex;
    gap: 1.5rem;
}

.contact-btn {
    background: none;
    border: none;
    color: #5d6d7e;
    font-family: 'GT Walsheim Pro', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    color: #8a9aa3;
}

.contact-btn i {
    color: #8a9aa3;
}

/* ===== CONTACT BUTTON (footer) ===== */
.contact-open-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    color: #5d6d7e;
    transition: color 0.3s ease;
    margin-right: 0.5rem;
}
.contact-open-btn:hover { color: #2c3e50; }
.contact-open-btn svg { width: 20px; height: 20px; }

/* ===== CONTACT MODAL ===== */
.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(44,62,80,0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.contact-modal-content {
    background: #fff;
    border-radius: 18px;
    width: min(820px,100%);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(44,62,80,0.18);
}
.close-contact-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #8a9aa3;
    line-height: 1;
    z-index: 10;
}
.close-contact-modal:hover { color: #2c3e50; }
.contact-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.contact-form-side {
    padding: 36px 32px;
    border-right: 1px solid rgba(138,154,163,0.15);
}
.contact-form-side h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}
.contact-form-side p {
    font-size: .8rem;
    color: #8a9aa3;
    margin-bottom: 18px;
}
.cf-field { margin-bottom: 12px; }
.cf-field label {
    display: block;
    font-size: .76rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}
.cf-field input,
.cf-field select,
.cf-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid rgba(138,154,163,0.3);
    border-radius: 9px;
    font-size: .83rem;
    font-family: 'GT Walsheim Pro', sans-serif;
    color: #1f2a33;
    background: #fafbfc;
    outline: none;
    resize: vertical;
    transition: border-color .2s;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
    border-color: #8a9aa3;
    background: #fff;
}
.cf-submit {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #8a9aa3, #2c3e50);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'GT Walsheim Pro', sans-serif;
    margin-top: 4px;
    transition: opacity .2s;
}
.cf-submit:hover { opacity: .85; }
.cf-submit:disabled { opacity: .5; cursor: not-allowed; }
#cf-status { margin-top: 10px; font-size: .78rem; }
.contact-info-side {
    padding: 36px 32px;
    background: #f8f9fa;
    border-radius: 0 18px 18px 0;
}
.contact-info-side h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
}
.ci-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    font-size: .82rem;
    color: #2c3e50;
}
.ci-item i { color: #8a9aa3; width: 16px; flex-shrink: 0; }
.ci-item a { color: #2c3e50; text-decoration: none; }
.ci-item a:hover { color: #8a9aa3; }
.ci-map { margin-top: 18px; border-radius: 10px; overflow: hidden; }
@media (max-width: 640px) {
    .contact-modal-inner { grid-template-columns: 1fr; }
    .contact-info-side { border-radius: 0 0 18px 18px; }
    .contact-form-side { border-right: none; border-bottom: 1px solid rgba(138,154,163,0.15); }
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #8a9aa3;
    transition: color 0.3s ease;
    z-index: 10001;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close-modal:hover {
    color: #2c3e50;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* Portfolio fullscreen modal — !important για να override-άρει τα media queries */
.modal.modal-fullscreen .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
}
.modal.modal-fullscreen .modal-iframe {
    border-radius: 0 !important;
}
.modal.modal-fullscreen .close-modal {
    top: 0.8rem !important;
    right: 0.8rem !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .swiper {
        height: calc(100vh - 76px);
        margin-bottom: 76px;
    }
    
    .swiper-slide {
        /* CHANGED: πιο κάτω το περιεχόμενο σε tablets */
        padding-top: 56px;            /* CHANGED: πριν 20px */
        padding-bottom: 20px;
        align-items: flex-start;
    }
    
    .privacy-banner {
        bottom: 70px;
        padding: 1rem 1.5rem;
    }
    
    .privacy-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .privacy-content p {
        font-size: 0.85rem;
    }
    
    .privacy-buttons {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .privacy-btn {
        width: 100%;
        max-width: 160px;
    }
    
    .slide-home {
        align-items: center;
        justify-content: center;
    }
    
    .home-content {
        height: 100%;
        justify-content: center;
        padding-top: 0;
    }
    
    .logo-main {
        width: 230px;
        height: 230px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-container {
        padding: 1rem;
    }

    .service-card {
        padding: 1.2rem;
        min-height: 220px;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .service-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .service-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-info {
        text-align: center;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .progress-bar {
        top: 15px;
        gap: 12px;
    }
    
    .progress-bar .bar {
        width: 20px;
        height: 5px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 25px;
        height: 25px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 0.8rem;
    }
    
    .language-switcher {
        right: 15px;
        /* CHANGED: progress center @768 = 15px + 2.5px */
        top: calc(15px + 2.5px);      /* CHANGED */
        transform: translateY(-50%);  /* CHANGED */
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .language-switcher button {
        padding: 2px 6px;
        font-size: 0.7rem;
    }

    footer {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0.8rem;
        gap: 0.25rem;
        text-align: center;
        min-height: 76px;
        justify-content: center;
    
    font-size: 0.85rem;}

    .footer-left,
    .footer-content {
        justify-content: center;
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .footer-btn,
    .contact-btn {
        font-size: 0.75rem;
    }
    
    .contact-btn i {
        font-size: 0.7rem;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .swiper {
        height: calc(100vh - 70px);
        margin-bottom: 70px;
    }
    
    .swiper-slide {
        /* CHANGED: λίγο πιο κάτω και στα κινητά */
        padding-top: 52px;             /* CHANGED */
        padding-bottom: 20px;
    }
    
    .privacy-banner {
        bottom: 60px;
        padding: 0.8rem 1rem;
    }
    
    .privacy-content p {
        font-size: 0.8rem;
    }
    
    .privacy-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }
    
    .home-content {
        height: 100%;
        justify-content: center;
    }
    
    .logo-main {
        width: 210px;
        height: 210px;
    }
    
    .services-container {
        padding: 0.5rem;
    }

    .service-card {
        padding: 1rem;
        min-height: 200px;
    }

    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }

    .service-title {
        font-size: 1rem;
        margin-bottom: 0.7rem;
    }

    .service-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .service-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .progress-bar {
        top: 12px;
        gap: 10px;
    }
    
    .progress-bar .bar {
        width: 18px;
        height: 4px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 22px;
        height: 22px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 0.7rem;
    }
    
    .language-switcher {
        right: 12px;
        /* CHANGED: progress center @480 = 12px + 2px */
        top: calc(12px + 2px);          /* CHANGED */
        transform: translateY(-50%);    /* CHANGED */
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .language-switcher button {
        padding: 1px 4px;
        font-size: 0.65rem;
    }

    footer {
        min-height: 70px;
        padding: 0.25rem 0.4rem;
        gap: 0.15rem;
    
    flex-direction: column;
    text-align: center;
    justify-content: center;
    font-size: 0.8rem;}

    .footer-left {
        gap: 0.3rem;
    }

    .footer-content {
        gap: 0.3rem;
    }
    
    .footer-btn,
    .contact-btn {
        font-size: 0.7rem;
    }
    
    .contact-btn i {
        font-size: 0.65rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile-info h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        width: 98%;
        height: 95vh;
        max-height: 95vh;
    }

    .about-content {
        min-height: 50vh;
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .swiper {
        height: calc(100vh - 75px);
        margin-bottom: 75px;
    }
    
    .swiper-slide {
        /* CHANGED: ακόμη ένα «κλικ» πιο κάτω στις πολύ μικρές */
        padding-top: 48px;              /* CHANGED */
        padding-bottom: 15px;
    }
    
    .privacy-banner {
        bottom: 55px;
        padding: 0.6rem 0.8rem;
    }
    
    .privacy-content p {
        font-size: 0.75rem;
    }
    
    .privacy-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }
    
    .services-container {
        padding: 0.25rem;
    }

    .service-card {
        padding: 0.8rem;
        min-height: 180px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .service-title {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .service-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.7rem;
    }

    .service-arrow {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .logo-main {
        width: 185px;
        height: 185px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 20px;
        height: 20px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 0.6rem;
    }
    
    .language-switcher {
        right: 10px;
        /* CHANGED: progress center @360 = 10px + 1.5px */
        top: calc(10px + 1.5px);        /* CHANGED */
        transform: translateY(-50%);    /* CHANGED */
        padding: 2px 4px;
        font-size: 0.6rem;
    }
    
    .language-switcher button {
        padding: 1px 3px;
        font-size: 0.6rem;
    }

    .modal-content {
        height: 98vh;
        max-height: 98vh;
    }
    
    .progress-bar {
        top: 10px;
        gap: 8px;
    }
    
    .progress-bar .bar {
        width: 16px;
        height: 3px;
    }
    
    footer {
        min-height: 75px;
        padding: 0.6rem 0.7rem;
        gap: 0.5rem;
    }
    
    .footer-btn,
    .contact-btn {
        font-size: 0.65rem;
    }
    
    .contact-btn i {
        font-size: 0.6rem;
    }
}

/* ===== FIX FOOTER CLICKS (Z-INDEX) ===== */
.horizontal-swiper {
  position: relative;
  z-index: 1;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* πιο ψηλά από swiper */
  pointer-events: auto;
}

@media (max-width: 480px) {
  .footer-content i { font-size: 0.9rem; }
}


/* ===== FOOTER TIGHTENING (μόνο spacing/τύπος, όχι αλλαγή περιεχομένου) ===== */

/* Μεσαίες οθόνες */
@media (max-width: 1024px) {
  footer {
    padding: 0.4rem 0.6rem;     /* μικρότερο κάθετο padding */
    gap: 0.15rem;               /* μικρότερο κενό μεταξύ των 2 γραμμών */
  }
  .footer-left { margin-bottom: 0.1rem; }
  .footer-left, .footer-content { gap: 0.35rem; }
  .footer-btn, .contact-btn {
    padding: 4px 2px; 
    line-height: 1.2;
    font-size: 0.8rem;
  }
}

/* Μικρές οθόνες */
@media (max-width: 768px) {
  footer {
    padding: 0.35rem 0.6rem;    /* ακόμη πιο «μαζεμένο» */
    gap: 0.12rem;
  }
  .footer-left { margin-bottom: 0.08rem; }
  .footer-content {
    flex-wrap: nowrap;          /* να μείνει ΜΙΑ γραμμή */
    width: 100%;
    justify-content: center;
  }
  .contact-btn { 
    min-width: 0;               /* επιτρέπει shrink */
  }
  .contact-btn span {
    display: inline-block;
    white-space: nowrap;        /* να μη σπάει */
    overflow: hidden;
    text-overflow: ellipsis;    /* κόψιμο με … */
    max-width: 30vw;            /* κάθε item ~1/3 της γραμμής */
    vertical-align: bottom;
  }
  .footer-btn, .contact-btn { font-size: 0.74rem; }
  .contact-btn i { font-size: 0.8rem; }
}

/* Πολύ μικρές οθόνες */
@media (max-width: 480px) {
  footer {
    padding: 0.25rem 0.4rem;
    gap: 0.1rem;
  }
  .footer-left { margin-bottom: 0.06rem; }
  .footer-content { flex-wrap: nowrap; }
  .contact-btn { min-width: 0; }
  .contact-btn span {
    max-width: 28vw;            /* λίγο μικρότερο για 3 στοιχεία σε μία γραμμή */
  }
  .footer-btn, .contact-btn { font-size: 0.7rem; }
  .contact-btn i { font-size: 0.7rem; }
}

/* Εξτρα μικρές */
@media (max-width: 360px) {
  footer { padding: 0.2rem 0.35rem; gap: 0.08rem; }
  .footer-left { margin-bottom: 0.05rem; }
  .contact-btn span { max-width: 26vw; }
  .footer-btn, .contact-btn { font-size: 0.66rem; }
  .contact-btn i { font-size: 0.64rem; }
}


/* ===== Modal Close Button — mobile ergonomics ===== */
@media (max-width: 1024px) {
  .close-modal {
    top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
    right: 0.9rem;
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .modal-content {
    max-height: 88vh; /* λίγο χαμηλότερα για να μην κολλάει στο browser UI */
    height: 88vh;
  }
}

@media (max-width: 768px) {
  .close-modal {
    top: calc(env(safe-area-inset-top, 0px) + 0.8rem);
    right: 0.8rem;
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .modal-content {
    width: 96%;
    max-width: 820px;
    max-height: 88vh;
    height: 88vh;
  }
}

@media (max-width: 480px) {
  .close-modal {
    top: calc(env(safe-area-inset-top, 0px) + 0.7rem);
    right: 0.7rem;
    width: 56px;
    height: 56px;
    font-size: 1.9rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .modal-content {
    width: 96%;
    max-width: 780px;
    max-height: 86vh;
    height: 86vh;
  }
}

/* Optional: slightly larger invisible hit area without visual change */
.close-modal::after {
  content: "";
  position: absolute;
  inset: -8px;               /* expands clickable region by 8px around */
  border-radius: 50%;
  transform: translateZ(0);
}


/* === Category pastel overlays & ordering === */
/* Blue (licenses/studies/topo/interior) */
.service-card.group-licenses {
  background: linear-gradient(135deg, rgba(168,218,220,0.22), rgba(168,218,220,0.16));
}
.service-card.group-licenses:hover {
  background: linear-gradient(135deg, rgba(168,218,220,0.34), rgba(168,218,220,0.26));
}

/* Green (HTK/PEA/unauthorized/advice) */
.service-card.group-admin {
  background: linear-gradient(135deg, rgba(150,219,169,0.22), rgba(150,219,169,0.16));
}
.service-card.group-admin:hover {
  background: linear-gradient(135deg, rgba(150,219,169,0.34), rgba(150,219,169,0.26));
}

/* Peach (construction/renovations/portfolio) */
.service-card.group-construction {
  background: linear-gradient(135deg, rgba(244,194,157,0.22), rgba(244,194,157,0.16));
}
.service-card.group-construction:hover {
  background: linear-gradient(135deg, rgba(244,194,157,0.34), rgba(244,194,157,0.26));
}

/* Portfolio: double width on desktop/tablet */
@media (min-width: 900px) {
  .services-grid { grid-auto-flow: dense; }
  .service-card.service-portfolio { grid-column: span 2; }
}

/* Keep text readable */
.service-card :is(.service-title, .service-description) { color: #2c3e50; }


/* ===== Category pastels + explicit order (CSS-only using :has()) ===== */
/* Default order fallback */
.services-grid > .service-card { order: 50; }

/* 1) Μπλε — Τοπογραφικά, Άδειες, Μελέτες, Interior */
.services-grid > .service-card:has(#service1-title),
.services-grid > .service-card:has(#service3-title),
.services-grid > .service-card:has(#service2-title),
.services-grid > .service-card:has(#service10-title) {
  background: linear-gradient(135deg, rgba(168,218,220,0.22), rgba(168,218,220,0.16));
}
.services-grid > .service-card:has(#service1-title):hover,
.services-grid > .service-card:has(#service3-title):hover,
.services-grid > .service-card:has(#service2-title):hover,
.services-grid > .service-card:has(#service10-title):hover {
  background: linear-gradient(135deg, rgba(168,218,220,0.34), rgba(168,218,220,0.26));
}

/* 2) Πράσινο — ΗΤΚ, ΠΕΑ, Αυθαίρετα, Τεχνικές Συμβουλές */
.services-grid > .service-card:has(#service4-title),
.services-grid > .service-card:has(#service5-title),
.services-grid > .service-card:has(#service6-title),
.services-grid > .service-card:has(#service9-title) {
  background: linear-gradient(135deg, rgba(150,219,169,0.22), rgba(150,219,169,0.16));
}
.services-grid > .service-card:has(#service4-title):hover,
.services-grid > .service-card:has(#service5-title):hover,
.services-grid > .service-card:has(#service6-title):hover,
.services-grid > .service-card:has(#service9-title):hover {
  background: linear-gradient(135deg, rgba(150,219,169,0.34), rgba(150,219,169,0.26));
}

/* 3) Peach — Κατασκευές, Ανακαινίσεις, Portfolio */
.services-grid > .service-card:has(#service7-title),
.services-grid > .service-card:has(#service8-title),
.services-grid > .service-card:has(#service11-title) {
  background: linear-gradient(135deg, rgba(244,194,157,0.22), rgba(244,194,157,0.16));
}
.services-grid > .service-card:has(#service7-title):hover,
.services-grid > .service-card:has(#service8-title):hover,
.services-grid > .service-card:has(#service11-title):hover {
  background: linear-gradient(135deg, rgba(244,194,157,0.34), rgba(244,194,157,0.26));
}

/* ===== Explicit order (Topographic → Permits → Studies → Interior → HTK → PEA → Unauthorized → Consulting → Construction → Renovations → Portfolio) */
.services-grid > .service-card:has(#service1-title)  { order: 1; }  /* Τοπογραφικά */
.services-grid > .service-card:has(#service3-title)  { order: 2; }  /* Άδειες */
.services-grid > .service-card:has(#service2-title)  { order: 3; }  /* Μελέτες */
.services-grid > .service-card:has(#service10-title) { order: 4; }  /* Interior */
.services-grid > .service-card:has(#service4-title)  { order: 5; }  /* ΗΤΚ */
.services-grid > .service-card:has(#service5-title)  { order: 6; }  /* ΠΕΑ */
.services-grid > .service-card:has(#service6-title)  { order: 7; }  /* Αυθαίρετα */
.services-grid > .service-card:has(#service9-title)  { order: 8; }  /* Τεχν. Συμβουλές */
.services-grid > .service-card:has(#service7-title)  { order: 9; }  /* Κατασκευές */
.services-grid > .service-card:has(#service8-title)  { order: 10; } /* Ανακαινίσεις */
.services-grid > .service-card:has(#service11-title) { order: 11; } /* Portfolio */

/* Double width only for Portfolio on larger screens */
@media (min-width: 900px) {
  .services-grid { grid-auto-flow: dense; }
  .services-grid > .service-card:has(#service11-title) {
    grid-column: span 2;
  }
}

/* Keep text readable */
.service-card :is(.service-title, .service-description) { color: #2c3e50; }


/* ===== Services — Pastel families, Visual Order, Portfolio 2× ===== */

/* Baseline: keep text readable */
.service-card :is(.service-title, .service-description) { color: #2c3e50; }

/* 0) Default order fallback */
.services-grid > .service-card { order: 50; }

/* === Colors === */
/* BLUE (Licenses/Studies/Topo/Interior) */
.services-grid > .service-card:has(#service1-title),
.services-grid > .service-card:has(#service3-title),
.services-grid > .service-card:has(#service2-title),
.services-grid > .service-card:has(#service10-title) {
  background: linear-gradient(135deg, rgba(168,218,220,0.10), rgba(168,218,220,0.06));
}
.services-grid > .service-card:has(#service1-title):hover,
.services-grid > .service-card:has(#service3-title):hover,
.services-grid > .service-card:has(#service2-title):hover,
.services-grid > .service-card:has(#service10-title):hover {
  background: linear-gradient(135deg, rgba(168,218,220,0.18), rgba(168,218,220,0.12));
}

/* GREEN (HTK/PEA/Unauthorized/Consulting) */
.services-grid > .service-card:has(#service4-title),
.services-grid > .service-card:has(#service5-title),
.services-grid > .service-card:has(#service6-title),
.services-grid > .service-card:has(#service9-title) {
  background: linear-gradient(135deg, rgba(150,219,169,0.10), rgba(150,219,169,0.06));
}
.services-grid > .service-card:has(#service4-title):hover,
.services-grid > .service-card:has(#service5-title):hover,
.services-grid > .service-card:has(#service6-title):hover,
.services-grid > .service-card:has(#service9-title):hover {
  background: linear-gradient(135deg, rgba(150,219,169,0.18), rgba(150,219,169,0.12));
}

/* PEACH (Construction/Renovations/Portfolio) */
.services-grid > .service-card:has(#service7-title),
.services-grid > .service-card:has(#service8-title),
.services-grid > .service-card:has(#service11-title) {
  background: linear-gradient(135deg, rgba(244,194,157,0.10), rgba(244,194,157,0.06));
}
.services-grid > .service-card:has(#service7-title):hover,
.services-grid > .service-card:has(#service8-title):hover,
.services-grid > .service-card:has(#service11-title):hover {
  background: linear-gradient(135deg, rgba(244,194,157,0.18), rgba(244,194,157,0.12));
}

/* === Visual order === */
.services-grid > .service-card:has(#service1-title)  { order: 1; }  /* Τοπογραφικά */
.services-grid > .service-card:has(#service3-title)  { order: 2; }  /* Άδειες */
.services-grid > .service-card:has(#service2-title)  { order: 3; }  /* Μελέτες */
.services-grid > .service-card:has(#service10-title) { order: 4; }  /* Interior */
.services-grid > .service-card:has(#service4-title)  { order: 5; }  /* ΗΤΚ */
.services-grid > .service-card:has(#service5-title)  { order: 6; }  /* ΠΕΑ */
.services-grid > .service-card:has(#service6-title)  { order: 7; }  /* Αυθαίρετα */
.services-grid > .service-card:has(#service9-title)  { order: 8; }  /* Τεχν. Συμβουλές */
.services-grid > .service-card:has(#service7-title)  { order: 9; }  /* Κατασκευές */
.services-grid > .service-card:has(#service8-title)  { order: 10; } /* Ανακαινίσεις */
.services-grid > .service-card:has(#service11-title) { order: 11; } /* Portfolio */

/* === Portfolio double width (only Portfolio) === */
@media (min-width: 900px) {
  .services-grid { grid-auto-flow: dense; }
  .services-grid > .service-card:has(#service11-title) { grid-column: span 2; }
}

/* common.css – extra styles για clickable service cards */
.service-card.clickable { cursor: pointer; }
.service-card.clickable:focus {
  outline: 2px solid rgba(138,154,163,0.5);
  outline-offset: 2px;
}
.service-card .service-arrow { cursor: pointer; }

/* ===== Modal Close Button — mobile ergonomics ===== */
@media (max-width: 1024px) {
  .close-modal {
    top: calc(env(safe-area-inset-top, 0px) + 0.9rem);
    right: 0.9rem;
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .modal-content {
    max-height: 88vh;
    height: 88vh;
  }
}

@media (max-width: 768px) {
  .close-modal {
    top: calc(env(safe-area-inset-top, 0px) + 0.8rem);
    right: 0.8rem;
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .modal-content {
    width: 96%;
    max-width: 820px;
    max-height: 88vh;
    height: 88vh;
  }
}

@media (max-width: 480px) {
  .close-modal {
    top: calc(env(safe-area-inset-top, 0px) + 0.7rem);
    right: 0.7rem;
    width: 56px;
    height: 56px;
    font-size: 1.9rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .modal-content {
    width: 96%;
    max-width: 780px;
    max-height: 86vh;
    height: 86vh;
  }
}

/* Optional: slightly larger invisible hit area without visual change */
.close-modal::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  transform: translateZ(0);
}


/* ===== APPLICATIONS SECTION ===== */
.applications-section {
    margin-top: 2rem;
    width: 100%;
}

.applications-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244,194,157,0.5), transparent);
    margin-bottom: 1.5rem;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
}

.application-card {
    background: linear-gradient(135deg, rgba(244,194,157,0.12), rgba(244,194,157,0.06));
    border-radius: 16px;
    padding: 1.1rem 1rem;
    border: 1px solid rgba(244,194,157,0.25);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 120px;
    position: relative;
    user-select: none;
}

.application-card:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(244,194,157,0.22), rgba(244,194,157,0.14));
    box-shadow: 0 6px 20px rgba(244,194,157,0.2);
    border-color: rgba(244,194,157,0.4);
}

.application-card:active {
    transform: translateY(-1px);
}

.application-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(244,194,157,0.2), rgba(244,194,157,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #c47a3a;
}

.application-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin: 0;
}

.application-description {
    font-size: 0.72rem;
    color: #7a8a95;
    line-height: 1.4;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .applications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
    }
    .application-card {
        padding: 0.8rem 0.6rem;
        min-height: 100px;
        border-radius: 12px;
    }
    .application-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
    .application-title {
        font-size: 0.74rem;
    }
    .application-description {
        display: none;
    }
}

@media (max-width: 480px) {
    .applications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    .application-card {
        padding: 0.7rem 0.4rem;
        min-height: 85px;
        border-radius: 10px;
    }
    .application-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
    .application-title {
        font-size: 0.68rem;
    }
}