:root {
    --primary-color: #6a6659;
    /* Muted elegant olive/earth */
    --primary-dark: #4b483e;
    --accent-color: #b5a999;
    /* Mineral sand */
    --accent-light: #ecebe4;
    /* Mineral beige */
    --text-main: #2b2a27;
    --text-light: #706f69;
    --bg-light: #f7f6f2;
    /* Soft warm off-white (plaster) */
    --bg-white: #ffffff;
    --bg-dark: #2b2a27;
    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Assistant', sans-serif;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons - Elegant & Minimal */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 2px;
    font-weight: 400;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(37,211,102,0.2);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.btn-large {
    padding: 16px 45px;
    font-size: 1.1rem;
}

.btn-text {
    background: transparent;
    color: var(--text-main);
    border-bottom: 1px solid var(--primary-color);
    padding: 5px 0;
    margin-right: 20px;
    border-radius: 0;
}

.btn-text:hover {
    color: var(--primary-color);
    border-bottom-color: transparent;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(247, 246, 242, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

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

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    font-weight: 400;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
    opacity: 0.7;
}

/* Hero - Split Layout */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--bg-light);
    margin-top: 85px;
    /* Offset for header */
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    color: var(--text-main);
    padding-left: 20px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-title .highlight {
    font-weight: 600;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 300;
    color: var(--text-light);
}

.hero-description {
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 1rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    border-radius: 4px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: -20px 20px 40px rgba(0,0,0,0.06);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-image-wrapper img.active {
    opacity: 1;
    animation: kenBurns 7.5s ease-in-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

.hero-accent-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    z-index: 1;
    opacity: 0.3;
}

/* Sections */
.section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 300;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.bg-light {
    background-color: var(--accent-light);
}

.text-center {
    text-align: center;
}

/* Advantages - Minimalist */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.advantage-card {
    background: transparent;
    padding: 0;
    border: none;
    text-align: right;
}

.advantage-card h3 {
    font-size: 1.5rem;
    border-right: 2px solid var(--primary-color);
    padding-right: 15px;
    margin-bottom: 20px;
}

.advantage-card p {
    color: var(--text-light);
    font-weight: 300;
    font-size: 1.1rem;
}

/* Pillars Section Spacing Override */
.pillars {
    padding-bottom: 60px;
}

/* Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.pillar-card {
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.pillar-image {
    height: 250px;
    background-color: var(--accent-light);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.pillar-card:hover .pillar-image {
    transform: scale(1.05);
}

.pillar-execution {
    background-image: url('../assets/images/IMG-20180731-WA0003_AG.png');
}

.pillar-management {
    background-image: url('../assets/images/20150825_160747_AG.png');
}

.pillar-vision {
    background-image: url('../assets/images/עמוד_אדניות_חזית.png');
}

.pillar-content {
    padding: 40px;
}

.pillar-content h3 {
    color: var(--text-main);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.pillar-content p {
    color: var(--text-light);
    font-weight: 300;
}

/* Gallery Section Spacing Override */
.gallery {
    padding-top: 60px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    filter: grayscale(20%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Contact Form - Elegant */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    margin-bottom: 40px;
}

.contact-text h2 {
    font-size: 2.2rem;
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--accent-light);
    padding: 60px 0;
}

.footer-logo {
    height: 35px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1) opacity(0.8);
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 40px;
    }
    .hero-content {
        padding-left: 0;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-description {
        margin: 1rem auto 0;
    }
    .hero-image-wrapper img {
        height: 400px;
    }
    .hero-accent-shape {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #bbb;
}

/* Contact Details Styling */
.contact-details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    background: var(--bg-white);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-main);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    width: 100%;
    max-width: 350px;
    justify-content: center;
}

.contact-detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--primary-color);
}

.contact-detail-item.whatsapp-link {
    background: #eefbf3;
    border-color: rgba(37, 211, 102, 0.2);
    color: #1e7e43;
}

.contact-detail-item.whatsapp-link:hover {
    background: #e1f7e9;
    border-color: #25d366;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

/* Floating WhatsApp Widget Styling */
.floating-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    direction: ltr; /* Layout in LTR to pin items perfectly to the left */
}

.widget-bubble {
    width: 290px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: right;
}

.widget-bubble.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.close-bubble {
    position: absolute;
    top: 10px;
    left: 12px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: color 0.2s ease;
}

.close-bubble:hover {
    color: var(--text-main);
}

.bubble-header {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bubble-header strong {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.online-indicator {
    font-size: 0.75rem;
    color: #25d366;
    display: flex;
    align-items: center;
    gap: 5px;
}

.online-indicator::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #25d366;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.widget-bubble p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 300;
}

.widget-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(37,211,102,0.2);
}

.widget-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37,211,102,0.3);
}

.widget-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.widget-trigger {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(37,211,102,0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
    position: relative;
    z-index: 10;
}

.widget-trigger:hover {
    transform: scale(1.08);
    background-color: #1ebe57;
}

.widget-trigger svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.4);
    animation: ripple 2s infinite;
    z-index: 1;
}

@keyframes ripple {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .floating-widget {
        bottom: 15px;
        left: 15px;
    }
    .widget-trigger {
        width: 50px;
        height: 50px;
    }
    .widget-trigger svg {
        width: 24px;
        height: 24px;
    }
    .widget-bubble {
        width: 250px;
        padding: 15px;
        margin-bottom: 10px;
    }
    .widget-bubble p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    .widget-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Gallery Mobile Layout */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .gallery-item {
        height: 180px !important;
    }
    
    /* Hide items 7 and onwards on mobile */
    .gallery-item:nth-child(n+7) {
        display: none !important;
    }
    
    /* Reveal items when expanded */
    .gallery-grid.expanded .gallery-item:nth-child(n+7) {
        display: block !important;
        animation: galleryFadeIn 0.6s ease forwards;
    }
    
    .gallery-more-container {
        display: flex !important;
    }
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Badge inside Contact Section */
.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    padding: 8px 16px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.15);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #1e7e43;
}

.whatsapp-badge-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Gallery "Show More" Button Styling */
.gallery-more-container {
    display: none; /* hidden on desktop */
    justify-content: center;
    margin-top: 40px;
    width: 100%;
}

.btn-gallery-more {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-gallery-more:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-gallery-more svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.btn-gallery-more:hover svg {
    transform: translateY(3px);
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }