/*
 Theme Name:   Adi Cohen Law - Child
 Template:     hello-elementor
 Description:  גרסה 1.2.6 מאוחדת - כפתורי קשר צפים חסינים ורספונסיביות מלאה
 Version:      1.2.6
*/

/* ----------------------------------------- */
/* 0. Global Mobile & Reset
/* ----------------------------------------- */
* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}
html, body { 
    overflow-x: hidden; 
    width: 100%; 
    margin: 0; 
    padding: 0; 
}
img { max-width: 100%; height: auto; }
.elementor-section, .elementor-container, .e-con { max-width: 100vw !important; }

/* ----------------------------------------- */
/* 1. Global Variables
/* ----------------------------------------- */
:root {
    --main-blue: #0A2444;
    --accent-gold: #B4975A;
    --whatsapp-green: #25D366;
    --dark-text: #333333;
    --light-text: #FFFFFF;
    --font-primary: 'Heebo', sans-serif;
    --font-secondary: 'Frank Ruhl Libre', serif;
    --border-radius: 8px;
}

/* ----------------------------------------- */
/* 2. Floating Contact Buttons (Mobile Fixed)
/* ----------------------------------------- */
.floating-btn-fixed {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none; /* מוסתר במחשב */
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    z-index: 999999; /* ערך גבוה מאוד כדי לוודא שיופיע מעל הכל */
    text-decoration: none !important;
    transition: transform 0.2s ease;
}

.floating-btn-fixed:active {
    transform: scale(0.9);
}

/* כפתור ווטסאפ - ימין */
.btn-wa-fixed {
    right: 20px;
    background-color: var(--whatsapp-green);
}

/* כפתור טלפון - שמאל */
.btn-ph-fixed {
    left: 20px;
    background-color: var(--main-blue);
    border: 2px solid var(--accent-gold);
}

/* הצגה רק בנייד וטאבלט */
@media (max-width: 1024px) {
    .floating-btn-fixed {
        display: flex;
    }
    /* מניעת הסתרת תוכן בתחתית */
    body {
        padding-bottom: 90px !important;
    }
}

/* ----------------------------------------- */
/* 3. Base Styles & Post Cards
/* ----------------------------------------- */
body { font-family: var(--font-primary); color: var(--dark-text); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-secondary); color: var(--main-blue); font-weight: 700; }

.posts-grid-shortcode {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.post-card .text-content {
    padding: 20px;
    background-color: var(--main-blue);
    text-align: center;
}

.post-card .title { color: #fff; font-size: 1.2rem; margin: 0; }

/* ... (שמירה על כל הקוד הקיים בגרסה 1.0.5) ...
*/

/* ----------------------------------------- */
/* 4. Custom Popup Styles
/* ----------------------------------------- */
.custom-popup-wrapper {
    background-color: #fff;
    border: 2px solid var(--main-blue);
    border-radius: var(--border-radius);
    padding: var(--spacing-l);
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.custom-popup-wrapper h3 {
    color: var(--main-blue);
    margin-bottom: 10px;
}

.custom-popup-wrapper .form-group {
    margin-bottom: 15px;
}

.custom-popup-wrapper input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--form-border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
}

.form-success-msg {
    color: #28a745;
    font-weight: bold;
    background-color: #d4edda;
    padding: 15px;
    border-radius: 4px;
}

/* ----------------------------------------- */
/* 5. Floating Contact Buttons (Mobile Only)
/* ----------------------------------------- */
.floating-btn-fixed {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: none; 
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    z-index: 999999;
    text-decoration: none !important;
}

.btn-wa-fixed { right: 20px; background-color: #25D366; }
.btn-ph-fixed { left: 20px; background-color: var(--main-blue); border: 2px solid var(--accent-gold); }

@media (max-width: 1024px) {
    .floating-btn-fixed { display: flex; }
    body { padding-bottom: 90px !important; }
}