/* פונטים מוגדרים למערכות הפעלה - מיטבים ל-Windows ו-Mac */
:root {
    --system-fonts: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --primary-color: #004a99;
    --text-color: #333333;
    --safe-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--system-fonts);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* התאמה לאאוטלוק וג'ימייל - מניעת שינוי גודל טקסט */
body, table, td, a { 
    -ms-text-size-adjust: 100%; 
    -webkit-text-size-adjust: 100%; 
}

/* ===== NAVBAR STYLING ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    font-size: 24px;
    font-weight: 800;
    flex-shrink: 0;
}

.logo-link {
    color: var(--primary-color);
    text-decoration: none;
    font-family: var(--system-fonts);
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.navbar-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navbar-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--system-fonts);
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
}

.navbar-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hamburger Menu */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.navbar-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Padding for content to account for fixed navbar */
body {
    padding-top: 70px;
}

/* ===== END NAVBAR STYLING ===== */

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

.section-wrapper { 
    padding: 80px 0; 
    overflow: hidden;
}

/* Hero Styling */
#hero {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

#hero h1, #hero h2 {
    font-family: var(--system-fonts);
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Hero Container Override */
.hero-container {
    position: relative;
    padding: 80px 20px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo-wrapper {
    margin-bottom: 40px;
}

.main-logo {
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

.emergency-label {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 25px;
}

.main-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 20px 0;
    font-family: var(--system-fonts);
}

.hero-lead {
    font-size: 22px;
    color: #e0e0e0;
    margin: 0 auto 40px;
    max-width: 750px;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: var(--system-fonts);
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-5px);
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* עיצוב המלל שנשאב מהוורד */
.content-rich-text {
    font-size: 1rem;
    line-height: 1.7;
}

.content-rich-text h1, 
.content-rich-text h2,
.content-rich-text h3,
.content-rich-text h4 { 
    color: var(--primary-color);
    font-family: var(--system-fonts);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    letter-spacing: -0.3px;
}

.content-rich-text p {
    margin-bottom: 1em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-rich-text ul, 
.content-rich-text ol { 
    padding: 0 0 0 1.5em;
    list-style-position: outside;
    margin-bottom: 1em;
}

.content-rich-text li { 
    margin-bottom: 0.8em;
    line-height: 1.7;
}

.content-rich-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: opacity 0.3s ease;
}

.content-rich-text a:hover {
    opacity: 0.8;
}

/* Form Container */
.form-embed {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
}

.form-embed form {
    width: 100%;
}

/* Form fields */
input[type="text"],
input[type="email"],
input[type="phone"],
input[type="tel"],
textarea,
select {
    width: 100% !important;
    padding: 12px !important;
    margin: 10px 0 15px 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-family: var(--system-fonts) !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1) !important;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
input[type="submit"],
button[type="submit"] {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 14px 30px !important;
    border-radius: 6px !important;
    font-family: var(--system-fonts) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #003a75 !important;
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.2) !important;
}

input[type="submit"]:active,
button[type="submit"]:active {
    transform: translateY(1px);
}

/* CSS לשליטה ב-JS Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

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

/* הסתרת Enable widget */
#enable-root,
[id*="enable"],
[class*="enable-"],
.enable-floating-button,
.enable-floating-widget,
body > script[src*="enable"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* רספונסיביות מיטבית */
@media screen and (max-width: 1024px) {
    .section-wrapper { 
        padding: 60px 0; 
    }
    
    .container { 
        padding: 0 18px; 
    }
    
    .form-embed {
        padding: 35px;
    }
}

@media screen and (max-width: 768px) {
    .section-wrapper { 
        padding: 50px 0; 
    }
    
    #hero { 
        padding: 50px 0; 
    }
    
    .hero-container {
        padding: 50px 15px;
    }
    
    .container { 
        padding: 0 15px; 
    }
    
    .form-embed {
        padding: 25px;
        margin: 0;
    }
    
    .content-rich-text {
        font-size: 0.95rem;
    }
    
    .content-rich-text h1 { font-size: 1.8rem; }
    .content-rich-text h2 { font-size: 1.5rem; }
    .content-rich-text h3 { font-size: 1.3rem; }
    
    .main-title { font-size: 32px; }
    .hero-lead { font-size: 18px; }
    .btn-primary { font-size: 18px; padding: 16px 40px; }
    
    input[type="text"],
    input[type="email"],
    input[type="phone"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* מניעת zoom ב-iOS */
        padding: 10px !important;
    }
    
    input[type="submit"],
    button[type="submit"] {
        padding: 12px 24px !important;
        font-size: 15px !important;
    }
    
    /* Navbar Mobile */
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu.mobile-open {
        display: flex;
    }
    
    .navbar-container {
        height: 60px;
        padding: 0 15px;
    }
    
    .navbar-logo {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .section-wrapper { 
        padding: 40px 0; 
    }
    
    #hero { 
        padding: 40px 0; 
    }
    
    .hero-container {
        padding: 40px 12px;
    }
    
    .container { 
        padding: 0 12px; 
    }
    
    .form-embed {
        padding: 20px;
        border-radius: 8px;
    }
    
    .content-rich-text h1 { font-size: 1.6rem; }
    .content-rich-text h2 { font-size: 1.3rem; }
    .content-rich-text h3 { font-size: 1.1rem; }
    
    .main-title { font-size: 26px; }
    .hero-lead { font-size: 16px; }
    .btn-primary { font-size: 16px; padding: 14px 30px; width: 100%; }
    .main-logo { max-width: 250px; }
    
    input[type="text"],
    input[type="email"],
    input[type="phone"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important;
        padding: 10px !important;
        margin: 8px 0 12px 0 !important;
    }
    
    /* Navbar Mobile Small */
    .navbar-container {
        height: 50px;
        padding: 0 12px;
    }
    
    .navbar-logo {
        font-size: 18px;
    }
    
    .navbar-menu.mobile-open {
        top: 50px;
    }
}

/* Print styles */
@media print {
    body { background: white; }
    .no-print { display: none !important; }
}
