/* --- assets/css/layout.css (הקובץ המלא והמתוקן) --- */

/* --- Layout כללי --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* --- Header (החלק שנעלם לך) --- */
header {
    background-color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* לוגו טיפוגרפי (קוביה) */
.brand-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid black;
    padding: 5px 10px;
    color: black;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.3s;
}

.brand-logo:hover {
    background: black;
    color: white;
}

.brand-top {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 300;
}

.brand-bottom {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
}

/* כפתור המבורגר */
.hamburger-menu {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
    /* איפוס סגנון button */
    background: none;
    border: none;
    padding: 0;
    outline: none;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #0a0a0a;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-menu:hover span {
    background-color: #555;
}

/* --- תפריט מסך מלא (Overlay) --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* מוסתר כברירת מחדל */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

/* כשמוסיפים את המחלקה active ב-JS */
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.nav-overlay li {
    margin: 20px 0;
    overflow: hidden;
}

.nav-overlay a {
    font-size: 2.5rem;
    font-weight: 900;
    color: black;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s;
}

.nav-overlay a:hover {
    color: #777;
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.overlay-footer {
    position: absolute;
    bottom: 30px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #999;
}

/* --- Footer (החלק החדש) --- */
footer {
    background-color: #0a0a0a;
    color: white;
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
    border-bottom: 1px solid #333;
    padding-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 15px;
}

.footer-col a {
    color: #999;
    font-size: 0.95rem;
    transition: color 0.3s, padding-right 0.3s;
}

.footer-col a:hover {
    color: white;
    padding-right: 10px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    display: inline-block;
    border: 3px solid white;
    padding: 10px;
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* מובייל */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .nav-overlay a { font-size: 1.8rem; }
    .footer-grid { gap: 40px; }

    header {
        padding: 12px 0;
        overflow: hidden;
    }

    .header-inner {
        overflow: hidden;
        width: 100%;
    }

    .brand-logo {
        border-width: 2px;
        padding: 4px 8px;
        flex-shrink: 0;
    }
    .brand-top  { font-size: 0.6rem; }
    .brand-bottom { font-size: 1rem; }

    .hamburger-menu {
        width: 26px;
        height: 20px;
        flex-shrink: 0;
    }
}