/* ==========================================================================
   Piaggio Koutsoudis — Full Updated Responsive Stylesheet
   ========================================================================== */

/* --- 1. Base (all screens) --- */

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Prevent fixed header from covering section anchors */
section,
.brands-showcase,
.about,
.services,
.why-us,
.contact {
    scroll-margin-top: 80px;
}

/* --- 2. Tablet — max-width: 992px --- */

@media (max-width: 992px) {

    /* Typography */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    /* Layout */
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* About slideshow */
    .about-image {
        order: -1;
        height: 300px;
    }

    /* Contact slideshow */
    .contact-image {
        height: 200px;
    }

    /* Header */
    .language-switcher {
        margin-left: 1rem;
    }
}

/* --- 3. Mobile — max-width: 768px --- */

@media (max-width: 768px) {

    /* Layout */
    .container {
        padding: 0 1.5rem;
    }

    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    /* --- Header layout (Alignment Fix) --- */
    header {
        padding: 0.75rem 0;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Ευθυγράμμιση στο κέντρο */
        flex-wrap: nowrap;
    }

    /* Logo - Left side */
    .logo {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .logo-img {
        height: 35px; /* Μεγάλο και καθαρό */
        margin-right: 8px;
    }

    /* Language & Hamburger - Right side */
    .language-switcher {
        margin: 0 0.5rem 0 0.75rem; /* Καθαρά margins */
        order: 2;
        display: flex;
        align-items: center;
    }

    .lang-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
        line-height: 1;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1100;
        order: 3;
        margin-left: 0.5rem;
        font-size: 1.4rem;
        line-height: 1;
    }

    /* --- Mobile Nav (slide-in) --- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        display: flex;
        z-index: 1000;
        transition: right 0.3s ease;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    .nav-menu li a {
        color: var(--dark-gray);
        font-size: 1.1rem;
        padding: 0.75rem 0;
        text-shadow: none;
    }

    /* --- Hero --- */
    .hero {
        height: auto;
        min-height: 100svh;
        padding: 8rem 0 5rem;
        align-items: center;
    }

    .hero-content {
        text-align: center;
        padding: 0 1.5rem;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 2rem;
    }

    .hero .btn {
        width: auto;
        min-width: 200px;
        max-width: 280px;
        text-align: center;
    }

    .hero p {
        white-space: normal;
        word-break: keep-all;
        font-size: 1rem;
    }

    /* --- Slideshows --- */
    .about-image { height: 250px; }
    .contact-image { height: 180px; }

    /* --- Grids --- */
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-container { gap: 2rem; }

    /* --- Brands Showcase --- */
    .brands-grid { gap: 1.5rem; }

    .brand-item {
        padding: 1.25rem 1.75rem;
        width: calc(50% - 0.75rem);
    }

    .brand-item img { max-height: 45px; }
}

/* --- 4. Small Mobile — max-width: 480px --- */

@media (max-width: 480px) {

    .container { padding: 0 1rem; }

    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    /* Hero */
    .hero { padding: 7rem 0 4rem; }

    /* Logo */
    .logo { font-size: 1.2rem; }
    .logo-img { height: 30px; }

    /* Buttons */
    .hero .btn {
        min-width: 180px;
        font-size: 0.9rem;
        padding: 0.8rem 1.75rem;
    }

    /* Section spacing */
    .about, .services, .why-us, .contact, .brands-showcase {
        padding: 4rem 0;
    }

    /* Brands */
    .brand-item { width: calc(50% - 0.75rem); }

    .benefit-item { align-items: flex-start; }

    .service-card { padding: 2rem 1.5rem; }

    .about-image { height: 220px; }
    .contact-image { height: 160px; }

    .map-container { height: 250px; }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 1rem;
        right: 1rem;
    }
}