:root {
    --primary-color: #99a17c;
    --secondary-color: #b4835b;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

body {
    font-family: 'Alef', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Color Strip and Dividers */
.color-strip {
    height: 10px;
    background: linear-gradient(to right, var(--primary-color) 50%, var(--secondary-color) 50%);
}

.colored-divider {
    display: flex;
    height: 15px;
}

.divider-part {
    flex: 1;
}

.divider-part.primary {
    background-color: var(--primary-color);
}

.divider-part.secondary {
    background-color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: var(--white);
    border-bottom: 3px solid var(--primary-color);
    padding: 2rem 0;
}

header h1 {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 500;
}

/* Section Containers */
.section-container {
    position: relative;
    overflow: hidden;
    padding: 20px;
    background-color: var(--light-gray);
    margin-bottom: 20px; /* Add space between sections on mobile */
}
/*
.image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    max-height: 600px; 
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}


.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
*/

.image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* max-height: 600px;  הסרה כדי שהתמונה לא תיחתך */
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    /* object-fit: cover;  לא באמת נחוץ כש-height אוטומטי */
}

.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.4) 100%);
    padding: 30px 20px 20px;
    color: var(--white);
    text-align: center;
}

.content-box {
    max-width: 90%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #e0a87d; /* Lighter and brighter version of secondary color */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.section-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.section-bio {
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1rem;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Contact Form Section */
.contact-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: none;
}

.card-body {
    padding: 2rem;
}

.form-control, .form-select {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Alef', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(153, 161, 124, 0.25);
}

.form-label {
    color: var(--secondary-color);
    font-weight: bold;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #a37550;
    border-color: #a37550;
}

/* Social Media Section */
.social-section {
    background-color: var(--light-gray);
}

.section-heading {
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 3px;
    background-color: var(--secondary-color);
}

.social-card {
    transition: transform 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.social-card .card-body {
    padding: 1.5rem;
}

.social-card h4 {
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    padding: 10px;
    border-radius: 8px;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
}

footer h4 {
    color: var(--white);
    font-weight: bold;
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

footer hr {
    border-color: rgba(255,255,255,0.2);
    margin: 1.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .section-container {
        padding: 15px;
    }
    
    .content-box {
        padding: 10px;
    }
    
    .image-wrapper {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        color: #f0b68d; /* Even brighter for mobile */
        text-shadow: 2px 2px 5px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.7);
        font-weight: 800;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    }
    
    .image-wrapper {
        max-height: 600px;
    }
    
    .content-overlay {
        padding: 20px 15px 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.5) 100%);
    }
    
    /* Add space between sections on mobile */
    .section-container {
        margin-bottom: 30px;
    }
    
    /* Ensure the last section doesn't have extra margin */
    .section-container:last-of-type {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
        /* Add a subtle background to make title more readable */
        background-color: rgba(0,0,0,0.4);
        display: inline-block;
        padding: 5px 10px;
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        background-color: rgba(0,0,0,0.3);
        display: inline-block;
        padding: 3px 8px;
        border-radius: 4px;
    }
    
    .section-description {
        font-size: 1rem;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    }
    
    .content-box {
        padding: 10px 5px;
    }
    
    .image-wrapper {
        max-height: 600px;
    }
    
    .content-overlay {
        padding: 15px 10px 10px;
    }
}

/* גלריה – שמירה על אספקט ומה שקופץ לחוץ נחתך יפה בתוך הקוביה */
.gallery-card .ratio img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* שומר על יחס רוחב/גובה, ממלא את הקובייה, חותך רק מה שצריך */
    object-position: center; /* מרכז את החיתוך – אפשר לשנות ל-top אם תרצה */
}


