/*
Theme Name: engi child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Βελτιστοποίηση για καλύτερη ανάγνωση σε όλες τις συσκευές */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Μεγέθη γραμματοσειρών για mobile */
@media (max-width: 849px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    p, .text { font-size: 1rem; line-height: 1.6; }
}

/* Μεγέθη για desktop */
@media (min-width: 850px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    p, .text { font-size: 1.05rem; line-height: 1.7; }
}


.engi-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-img.active {
    opacity: 1;
}

.hero-content-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    display: inline-block;
    margin: 0 10px;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
}

.btn-primary {
    background: #183f5d;
    color: white;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

/*===============Footer================*/

/* Reset & Base */
.engi-footer {
    background: #0f2e44;
    color: #e0e8ef;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Στήλες */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* Τίτλοι */
.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #1e6a8f;
}

/* Λίστες */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #1e6a8f;
    padding-left: 5px;
}

/* Στοιχεία επικοινωνίας */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.contact-icon {
    font-size: 1.1rem;
    min-width: 24px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #1e6a8f;
    transform: translateY(-3px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #1e6a8f;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .engi-footer {
        margin-top: 60px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        padding: 40px 20px 30px;
        gap: 35px;
    }
    
    .footer-title::after {
        left: 0;
        right: auto;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/*=====================================*/

/* Αναγκάζει όλες τις rows να γίνουν κάθετες στο mobile */
@media (max-width: 849px) {
    .row.align-middle {
        display: flex;
        flex-direction: column;
    }

    /* Κάνει όλες τις στήλες να πιάνουν όλο το πλάτος */
    .row.align-middle .col {
        width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 
       Βρίσκει τη στήλη που περιέχει εικόνα και την κάνει πρώτη.
       Αν μια στήλη έχει εικόνα, πάει επάνω. Αλλιώς, πάει κάτω.
    */
    .row.align-middle .col:has(img) {
        order: 1 !important;
    }

    .row.align-middle .col:not(:has(img)) {
        order: 2 !important;
    }
}