@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', Arial, sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
}

button, input, select, textarea {
    font-family: inherit;
}

.site-header {
    background-color: white;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center; /* מרכז במובייל */
    display: flex;
    justify-content: center; /* מרכז את התוכן */
    align-items: center;
    height: 80px; /* גובה קבוע ל-container */
}

.site-header a {
    display: inline-block;
}

.site-header img {
    height: 80px;
    width: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.site-header img:hover {
    transform: scale(1.05);
}

/* כותרות ראשיות */
h1 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: bold;
    color: #396884;
    margin-bottom: 16px;
    text-align: center;
}

/* כותרת בתוך כרטיס צור קשר */
.contact-card h1 {
    color: white;
}

/* כותרות משניות */
h2 {
    font-size: clamp(20px, 4.5vw, 32px);
    font-weight: bold;
    color: #6FACD1;
    margin-bottom: 10px;
    text-align: center;
}

/* כותרות קטנות */
h3 {
    font-size: clamp(18px, 3.5vw, 24px);
    font-weight: bold;
    color: #396884;
    margin-bottom: 16px;
}

p {    
    font-size: clamp(16px, 3vw, 20px);
    text-align: center;
    margin: 16px 0;
}

span {
    font-size: clamp(15px, 2.8vw, 18px);
}

/* רשימות */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    background-color: white;
    margin: 12px 0;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    text-align: right;
    gap: 18px;
}

li img {
    width: clamp(20px, 4.5vw, 28px);
    height: clamp(20px, 4.5vw, 28px);
    object-fit: contain;
    flex-shrink: 0;
}

li span {
    text-align: right;
    flex: 1;
    font-size: clamp(16px, 3.2vw, 20px);
}

/* סקשנים */
section {
    padding: clamp(24px, 5vw, 48px) clamp(24px, 10vw, 100px);
    text-align: center;
}

.hero-section {
    background: linear-gradient(135deg, #F9FDFF, rgba(249, 253, 255, 0.7));
    padding-top: clamp(32px, 6vw, 64px);
    padding-bottom: clamp(32px, 6vw, 64px);
}

.target-section {
    margin-bottom: 10px;
}

.process-section {
    background-color: #F9FDFF;
    margin-bottom: 10px;
    padding: clamp(16px, 4vw, 32px) clamp(24px, 10vw, 100px);
}

.process-section > div {
    background-color: white;
    margin: 8px 0;
    padding: clamp(16px, 3.5vw, 22px) clamp(10px, 2.5vw, 16px);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: clamp(8px, 2vw, 14px);
    text-align: right;
    align-items: center;
}

.process-section > div img {
    width: clamp(10px, 2.2vw, 18px);
    height: auto;
    min-height: clamp(26px, 5.5vw, 45px);
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    align-self: stretch;
}

.text-content {
    flex: 1;
    background: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.text-content h3 {
    margin: 0;
    text-align: right;
    font-size: clamp(17px, 3.2vw, 22px);
}

.text-content p {
    margin: 0;
    text-align: right;
    font-size: clamp(15px, 2.8vw, 19px);
}

.about-section {
    margin-bottom: 10px;
}

.contact-section {
    background: linear-gradient(135deg, #F9FDFF, rgba(249, 253, 255, 0.7));
}

.contact-card {
    background: linear-gradient(to bottom, #396884, #6FACD1);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 40px);
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
    max-width: 600px;
}

.large-text {
    font-size: clamp(18px, 3.5vw, 22px);
}

/* כפתורים - עודכן לתמוך גם ב-links */
button, a.btn-primary, a.btn-secondary {
    border: none;
    border-radius: 12px;
    display: flex;
    font-size: clamp(14px, 3vw, 18px);
    margin: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 3vw, 16px) clamp(28px, 6vw, 40px);
    white-space: nowrap;
    width: 100%;
    max-width: 280px;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

button:hover, a.btn-primary:hover, a.btn-secondary:hover {
    transform: translateY(-2px);
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(16px, 4vw, 32px) 0;
    gap: 8px;
}

.btn-primary, a.btn-primary {
    background: linear-gradient(135deg, #FA9588, #FFA094);
    box-shadow: 0 4px 15px rgba(250, 149, 136, 0.3);
    color: white;
    font-weight: 500;
}

.btn-primary:hover, a.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(250, 149, 136, 0.4);
}

.btn-secondary, a.btn-secondary {
    background: linear-gradient(135deg, #F6F9F5, white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #396884;
    font-weight: 500;
}

.btn-secondary:hover, a.btn-secondary:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* תמונות כפתורים */
button img, a.btn-primary img, a.btn-secondary img {
    width: clamp(16px, 3.5vw, 20px);
    height: clamp(16px, 3.5vw, 20px);
    object-fit: contain;
    flex-shrink: 0;
}

/* תמונה בחלק ראשי */
#main-hero-image {
    width: clamp(180px, 40vw, 300px);
    height: auto;
    margin: clamp(24px, 5vw, 40px) auto;
    display: block;
}

/* תמונת המטפלת */
.about-section img {
    border-radius: 24px;
    margin: clamp(20px, 4vw, 32px) auto;
    display: block;
    width: clamp(250px, 50vw, 400px);
    height: auto;
}

/* תמונה בחלק צור קשר */
#main-contact-image {
    width: clamp(200px, 45vw, 350px);
    height: auto;
    margin: clamp(16px, 3vw, 24px) auto;
    display: block;
}

/* כלל כללי לתמונות */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============== אנימציות =============== */

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide In Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* הוסף אפקטים לכפתורים */
button, a.btn-primary, a.btn-secondary {
    position: relative;
    overflow: hidden;
}

button::before, a.btn-primary::before, a.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before, a.btn-primary:hover::before, a.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* מדיה קוורי לטאבלטים ומעלה בלבד */
@media (min-width: 768px) {
    .button-container {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    
    section {
        padding-left: clamp(50px, 12vw, 140px);
        padding-right: clamp(50px, 12vw, 140px);
    }
    
    .process-section {
        padding: clamp(24px, 5vw, 48px) clamp(50px, 12vw, 140px);
    }
    
    /* Header בדסקטופ */
    .site-header {
        padding: 20px 0; /* גובה רגיל בדסקטופ */
    }
    
    .header-container {
        justify-content: flex-start; /* לוגו בצד שמאל */
        direction: ltr; /* כדי שבאמת יהיה בשמאל */
    }
    
    .site-header img {
        height: 110px; /* גודל גדול יותר בדסקטופ */
    }
}

/* מדיה קוורי למסכים גדולים */
@media (min-width: 1024px) {
    .process-section > div {
        max-width: 800px;
        margin: 16px auto;
    }
    
    .target-section ul {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* למסכים קטנים מתחת ל-768px - כפתורים אחד מעל השני */
@media (max-width: 767px) {
    .button-container {
        flex-direction: column !important;
        align-items: center;
        gap: 8px;
    }
    
    /* אנימציות מיוחדות למובייל - בלי גלילה */
    li {
        transform: translateX(0);
        transition: all 0.3s ease;
    }
    
    li:active {
        transform: scale(0.98);
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    }
    
    .process-section > div:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
}