/* HEADER & NAVBAR */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    color: #545454;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header.scrolled {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

.logo {
    flex-shrink: 0;
    max-width: 220px;
}

.logo img {
    width: 100%;
    height: auto;
}

.header-flex {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #545454;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    text-transform: capitalize;
}

nav ul li a:hover {
    color: #0097b2;
    transition: color 0.3s ease;
}

/* ===== SECȚIUNI GENERALE ===== */

section {
    padding: 50px 50px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    scroll-margin-top: 80px;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Secțiuni full-screen (home hero) */

.fullscreen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    position: relative;
    padding-bottom: 140px;
}

.fullscreen.home-bg {
    background: url('../images/familie_dispozitive.png') center/cover no-repeat;
    color: white;
}

.fullscreen h1 {
    font-size: 74px;
    line-height: 1.2;
}

.fullscreen p {
    font-size: 32px;
    margin-top: 15px;
}

/* Secțiuni auto-fullscreen */

.fullscreen-auto {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 80px;
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    padding: 50px 20px;
    text-align: center;
}

.fullscreen-auto h2 {
    margin-bottom: 20px;
}

.fullscreen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* ==== FOOTER ==== */

footer {
    background-color: #ffffff;
    color: #545454;
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

footer h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

footer p {
    font-size: 14px;
    margin: 8px 0;
}

footer a {
    color: #545454;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #0097b2;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f2f2f2;
    color: #545454;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0097b2;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-copy {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

/* ==== FORMATE FORMULARE GLOBALE ==== */

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

form input,
form textarea {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #545454;
}

/* ==== RESPONSIVE LAYOUT GENERAL ==== */

@media (max-width: 768px) {
    .logo {
        margin-left: -10px;
    }

    nav ul {
        flex-direction: column;
        background: white;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        display: none;
        padding: 10px 0;
        z-index: 999;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .container {
        padding: 0 5px;
    }

    .fullscreen h1 {
        font-size: 36px;
        line-height: 1.2;
        word-break: break-word;
    }

    .fullscreen p {
        font-size: 18px;
        margin-top: 10px;
        line-height: 1.4;
    }

    .fullscreen-auto {
        padding: 40px 15px;
    }
}