/* ================================================= */
/* 1. ΒΑΣΙΚΕΣ ΡΥΘΜΙΣΕΙΣ & ΚΕΦΑΛΙΔΑ (HEADER/NAVBAR) - DESKTOP BASE */
/* ================================================= */

html { scroll-behavior: smooth; } /* Ομαλή κύλιση */
body { margin: 0; font-family: Arial, sans-serif; }
.section { padding: 60px 20px; text-align: center; } /* Κεντρικός κανόνας Section */

/* ΚΑΝΟΝΑΣ ΓΙΑ ΝΑ ΕΙΝΑΙ ΤΟ HEADER (ΚΕΦΑΛΙΔΑ) ΚΟΛΛΗΤΟ ΣΤΟ SCROLL */
header {
    position: sticky; 
    top: 0;          
    z-index: 1000;   
    background: #111; 
}

/* NAVBAR - Desktop Base: column για να ξεκινήσουμε με τη mobile δομή */
.navbar { 
    display:flex; 
    flex-direction: column; 
    padding: 20px 40px; 
    background:#111; 
    color:#fff;
    position: relative; 
}

/* ΝΕΑ ΔΟΜΗ ΓΙΑ ΚΕΦΑΛΙΔΑ MOBILE/TOP BAR */
.navbar-top-mobile { 
    display: flex;
    width: 100%;
    justify-content: space-between; 
    align-items: center; /* ΚΑΘΕΤΗ ΣΤΟΙΧΙΣΗ LOGO & BURGER */
}

/* LOGO - Διόρθωση Φόντου/Padding & Στοίχιση */
.logo-container {
    display: flex; 
    align-items: center; /* Κεντράρει περιεχόμενα κάθετα (εικόνα & κείμενο) */
    text-decoration: none; 
    color: white; 
    gap: 10px; 
    background: none; /* ΑΦΑΙΡΕΣΗ ΦΟΝΤΟΥ */
    padding: 0; /* ΑΦΑΙΡΕΣΗ PADDING */
}

.logo-img {
    height: 35px; 
    width: auto;
    vertical-align: middle; 
}

.logo-text {
    font-size: 1.5em; 
    font-weight: bold;
    font-family: Arial, sans-serif; 
}

/* MENU LINKS - Βασικές Ρυθμίσεις */
.navbar ul { 
    list-style:none; 
    display:flex; 
    gap: 20px; 
    margin: 0;
    padding: 0;
}

/* PADDING/BACKGROUND ΕΦΑΡΜΟΖΕΤΑΙ ΜΟΝΟ ΣΤΑ links ΤΟΥ UL */
.navbar ul a { 
    color:white; 
    text-decoration:none; 
    transition: color 0.3s; 
    padding: 8px 12px; 
    border-radius: 4px;
}
.navbar ul a:hover, .navbar ul a.active { 
    color: #ffd700; 
    background: #333; 
}


/* --- BURGER MENU STYLES - Desktop (Κρυφό) --- */
.burger-menu {
    display: none; 
    font-size: 1.5em;
    background: none;
    border: none;
    color: #fff; 
    cursor: pointer;
    padding: 0;
}


/* ================================================= */
/* 2. DESKTOP OPTIMIZATION (MEDIA QUERY) - Εφαρμόζεται πάνω από 768px */
/* ================================================= */

@media (min-width: 769px) {
    .navbar {
        flex-direction: row; /* Επαναφορά σε Flexbox γραμμής */
        justify-content: space-between; /* Σπρώχνει logo αριστερά και menu δεξιά */
        align-items: center; /* **ΚΑΘΕΤΗ ΣΤΟΙΧΙΣΗ: Ευθυγραμμίζει logo-container και ul** */
    }

    .navbar-top-mobile {
        width: auto;
        justify-content: flex-start;
    }
    
    .navbar ul {
        display: flex; /* Εμφανίζεται το μενού στο desktop */
    }
}


/* ================================================= */
/* 3. HERO SECTION & CONTENT */
/* ================================================= */

.hero { 
    height: 70vh; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    text-align: center;
    z-index: 1; 
    padding: 20px; 
    background: #333;
}
#heroVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -1; 
}
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 0;
}
.section p {
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto; 
    text-align: justify; 
    line-height: 1.6; 
    margin-bottom: 20px; 
}


/* ================================================= */
/* 4. CARDS ΣΤΗΝ ΑΡΧΙΚΗ */
/* ================================================= */

.secondary-section {
    background: #f4f4f4;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Χρειάζεται για σωστό layout στο mobile */
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.card h3 {
    color: #333;
    margin-top: 0;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.button:hover {
    background: #555;
}

.primary-button {
    background: #ffd700;
    color: #333;
    font-weight: bold;
}

.primary-button:hover {
    background: #ffc400;
}

.cta-section {
    background: #111;
    color: white;
}
.cta-section h2 {
    color: #ffd700;
}


/* ================================================= */
/* 5. GALLERY STYLES - MASONRY EFFECT */
/* ================================================= */

.gallery .grid { 
    columns: 4 250px; /* 4 στήλες ελάχιστου πλάτους 250px */
    column-gap: 20px; 
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery a {
    display: block;
    text-decoration: none;
    line-height: 1;
    margin-bottom: 20px; 
    overflow: hidden; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    
    break-inside: avoid; /* Εμποδίζει τις εικόνες να κοπούν ανάμεσα σε στήλες */
    width: 100%;
}

.gallery img { 
    width:100%; 
    height: auto; 
    border-radius: 10px; 
    display: block;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.02);
}


/* ================================================= */
/* 6. ΣΤΥΛ ΥΠΗΡΕΣΙΩΝ (SERVICES PAGE) */
/* ================================================= */

.services-list {
    list-style: none;
    padding: 0;
    max-width: 1100px; 
    margin: 40px auto;
    text-align: left;
}

.service-item {
    display: flex; 
    align-items: center; 
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fcfcfc;
    gap: 30px; 
}

.service-icon {
    width: 250px; 
    height: 250px; 
    object-fit: cover; 
    border-radius: 4px;
    flex-shrink: 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.service-text {
    flex-grow: 1;
    text-align: center; 
}

.print-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s, text-decoration 0.2s;
}

.print-link:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* ================================================= */
/* 7. CONTACT PAGE STYLES - DESKTOP */
/* ================================================= */

.contact-grid {
    display: flex;
    gap: 40px; 
    align-items: flex-start;
    text-align: left;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

.contact-info, .contact-form-container {
    flex: 1; 
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.contact-form-container {
    background: #eee;
    padding: 30px;
}
.contact-form { display: flex; flex-direction: column; }
.form-group { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: bold; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; 
}
.submit-button {
    background: #333; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; font-size: 1.1em; transition: background 0.3s;
}
.submit-button:hover {
    background: #ffd700; color: #333;
}

/* MAP SECTION */
.map-section { padding-top: 0; padding-bottom: 40px; }
.map-container {
    width: 100%; max-width: 1100px; margin: 0 auto; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.map-container iframe { display: block; }

/* FOOTER STYLES */
footer {
    background: #111; color: #ccc; padding: 20px 0; text-align: center; font-size: 0.9em; margin-top: 40px; 
}
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-nav a { color: #ccc; text-decoration: none; margin: 0 5px; }
.footer-nav a:hover { color: #ffd700; }


/* ================================================= */
/* 8. MOBILE OPTIMIZATION (MEDIA QUERY) - Μέχρι 768px */
/* ================================================= */

@media (max-width: 768px) {
    
    /* 1. NAVIGATION (MOBILE MENU) */
    .navbar { 
        flex-direction: column; 
        padding: 15px 20px;
    }
    
    .navbar-top-mobile {
        justify-content: center; /* ΚΕΝΤΡΑΡΕΙ ΤΟ LOGO/TEXT */
    }
    
    .logo-img {
        height: 40px; 
    }
    
    .burger-menu {
        display: block;
        position: absolute; 
        right: 20px; 
        top: 20px; 
        font-size: 2em; 
        z-index: 10; 
    }

    .navbar ul { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        position: static; 
        background-color: #111; 
        text-align: center;
        padding: 0;
        z-index: 999; 
        border-top: 1px solid #333;
    }

    .navbar ul.active {
        display: flex; 
    }

    .navbar li { 
        width: 100%; 
        text-align: center; 
        margin: 0; 
    }
    
    .navbar ul a { /* Links του μενού */
        display: block; 
        padding: 14px 0; 
        background: #222; 
        border-bottom: 1px solid #333; 
        border-radius: 0;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); 
    }
    
    .navbar ul a:hover, .navbar ul a.active {
        background: #333; 
        color: #ffd700;
    }
    
    /* Cards στην Αρχική */
    .cards-container {
        gap: 20px;
    }
    .card {
        width: 100%;
        max-width: 350px;
    }

    /* 2. SECTION CONTENT & GALLERY */
    .section { 
        padding: 40px 15px; 
    }
    .gallery .grid { 
        columns: 1; /* Masonry σε 1 στήλη για mobile */
        column-gap: 0;
        padding: 10px;
        margin: 0;
        max-width: none;
    }
    
    /* 3. CONTACT PAGE */
    .contact-grid {
        flex-direction: column;
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
        align-items: center; 
    }
    
    .contact-info, .contact-form-container {
        width: 90%; 
        max-width: 450px; 
        padding: 20px 15px;
    }

    .submit-button {
        display: block;
        margin: 0 auto;
    }
    
    /* 4. ΥΠΗΡΕΣΙΕΣ */
    .service-item {
        flex-direction: column; 
        align-items: center; 
        padding: 15px;
        gap: 15px;
    }

    .service-icon {
        width: 100%;
        height: auto;
    }
    
    .service-text {
        text-align: center; 
    }
}
