
html {
    scroll-behavior:auto;
    /* Adds a little "cushion" when jumping to sections */

}

:root {
    --lego-red: #CC0000;
    --lego-yellow: #FFD700;
    --dark: #222;
    --light: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* גלילה חלקה מובנית */
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-left{
display: flex;
    align-items: center;
    gap: 15px;

}
.login-btn{
    font-family: 'Heebo', sans-serif;
    margin-right: 10px;
}

.icon-btn{
    width: 38px;
    height: 38px;
    background-color: #FFD700;
    border-radius: 8px;
    border-style: none;
}
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
.header-content {
    font-family: 'Heebo', sans-serif;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--lego-red);
}

.logo-text small {
    font-size: 0.9rem;
    color: var(--dark);
    display: block;
    margin-top: -5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--lego-red);
    border-bottom: 2px solid var(--lego-red);
}


.login-btn {
    background: var(--lego-yellow);
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}
.button-wrapper {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    margin-top: 40px;        /* Reasonable space after the products */
}

.products2 {
    background: linear-gradient(135deg, #CC0000 0%, #990000 100%);
    color: white;
    padding: 14px 40px;
    font-family: 'Heebo', sans-serif; /* Matches your site font */
    font-weight: 700;
    font-size: 18px;
    border: none;
    border-radius: 50px; /* Pill shape looks modern */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.products2:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(204, 0, 0, 0.4);
    background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
}

.products2:active {
    transform: translateY(-1px);
}

/* Hero */
.hero {
    height: 80vh;
    background: url('https://via.placeholder.com/1920x1080?text=LEGO+Background') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    letter-spacing: 4px;
    /* הוספת התמונה מהתיקייה המקומית */
    background-image: url('2.jpg'); 
    
    /* הגדרות חשובות כדי שהתמונה תיראה טוב */
    background-size: cover;       /* גורם לתמונה למלא את כל השטח */
    background-position: center;  /* ממרכז את התמונה */
    background-repeat: no-repeat; /* מונע מהתמונה לשכפל את עצמה */
    
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}


.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.btn-main {
    display: inline-block;
    background: var(--lego-red);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    margin-top: 20px;
    transition: transform 0.3s;
}

.btn-main:hover {
    transform: scale(1.05);
}

/* Sections */
.section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 4px;
    background: var(--lego-yellow);
    display: block;
    margin: 10px auto;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--lego-red);
    color: white;
    padding: 2px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
}

.product-card img {
    max-width: 100%;
    margin-bottom: 15px;
}

.price {
    font-weight: 700;
    color: var(--lego-red);
    font-size: 1.2rem;
    margin: 10px 0;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.team-member img {
    width: 200px;
    height : 200px;
    border-radius: 50%;
    border: 5px solid var(--lego-yellow);
    margin-bottom: 15px;
}

/* Policies */
.policy-wrapper {
    display: flex;
    justify-content: space-around;
    text-align: center;
    gap: 20px;
}

.policy-item i {
    font-size: 2.5rem;
    color: var(--lego-red);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--dark);
    color: #ccc;
    padding: 60px 0 20px;
}
.footer-grid {
    display: flex;
    flex-wrap: wrap;         /* Allows columns to stack on mobile */
    justify-content: center;  /* Centers the columns horizontally */
    align-items: flex-start;  /* Keeps headers aligned at the top */
    gap: 40px 80px;          /* Vertical gap: 40px, Horizontal gap: 80px */
    margin-bottom: 40px;
    text-align: center;      /* Centers the text inside the columns */
}

.footer-col {
    flex: 1;                 /* Gives columns equal width capability */
    min-width: 200px;        /* Prevents columns from getting too skinny */
    max-width: 300px;        /* Prevents columns from getting too wide */
}

/* Adjust the WhatsApp link to center its contents */
.whatsapp-link {
    justify-content: center; 
    margin: 0 auto;
}

.payment-icons {
    justify-content: center; /* Centers the credit card icons */
    margin-top: 10px;
}



.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
}


.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav { display: none; }
    .team-grid, .policy-wrapper, .footer-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px; /* Much better for a gallery */
    border-radius: 10px;
    overflow: hidden; /* Clips the image to the border radius */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Target the link container */
.whatsapp-link {
    text-decoration: none; /* Removes the underline */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

/* Target both the icon and the text color */
.whatsapp-link, 
.whatsapp-link h3, 
.whatsapp-link i {
    color: #25D366 ; 
}

/* Add a nice hover effect */
.whatsapp-link:hover {
    transform: scale(1.05);
    color: #65e996;
}
