@font-face {
    font-family: 'fredokalight';
    src: url('/CSS/fredoka-variablefont_wdthwght-webfont.woff2') format('woff2'),
         url('/CSS/fredoka-variablefont_wdthwght-webfont.woff') format('woff');
    font-weight: 300 1000; /* This tells the browser the font can handle Light (300) all the way to Bold (700) */
    font-style: normal;
    font-display: swap; /* Keeps your text visible while the font loads */
}

:root {
    --bg-cream: #fcf9f2;
    --text-dark: #2b2b2b;
    --sage-green: #a1c1a6;
    --coral: #f1aa8d;
    --lavender: #d6cbe8;
    
    /* Change these two lines to your new local font */
    --font-serif: 'Fredoka', sans-serif;
    --font-sans: 'Fredoka', sans-serif;
}

html{
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden; /* זה הקסם שמונע מהעמוד לזוז הצידה */
    position: relative;
}

* {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-family: 'Fredoka', sans-serif;
    font-weight: 400;
max-width: 100%;
    background-color: var(--bg-cream);
}




/* Decorative Background Blobs */
.bg-blob {
    position: absolute;
    z-index: -1;
    opacity: 0.6;
}
.blob-1 { top: -50px; right: -100px; width: 300px; height: 300px; background-color: var(--sage-green); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
.blob-2 { top: 300px; left: -50px; width: 200px; height: 250px; background-color: var(--lavender); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.blob-3 { top: 600px; right: 10%; width: 150px; height: 150px; background-color: var(--coral); border-radius: 50% 50% 30% 70% / 50% 40% 60% 50%; }

h1, h2, h3 {
    /* font-family: var(--font-serif); */
    font-weight: 700;
    margin-top: 0;
}

h1 { font-size: 3rem; line-height: 1.15; margin-bottom: 20px; }
h2 { font-size: 2.5rem; margin-bottom: 15px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ממקם הכל באותו קו גובה */
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center; /* ממקם את האייקון והטקסט באותו קו */
    gap: 10px; /* רווח קבוע בין האייקון לטקסט */
    font-weight: 600;
}

.head-logo{
    max-width: 38px;
    padding-bottom: 5px;
    padding-left: 5px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--sage-green); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, opacity 0.3s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn-primary { background-color: #5a8a73; /* גרסה כהה יותר של ה-Sage שלך */; color: white; }
.btn-outline { background-color: transparent; border: 2px solid var(--text-dark); color: var(--text-dark); }
.btn-text { text-decoration: none; color: var(--text-dark); font-weight: 600; }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.btn-primary a{
    font-weight: 600;
}

.hero-text { flex: 1.2; /* נותן לטקסט מעט יותר מקום מהתמונה */ }
.hero-text p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-buttons { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 20px; 
}

/* היררכיית כותרות ב-Hero */
.hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 10px;
   
    letter-spacing: -1px;
}

.hero h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    
    margin-top: 0;
    margin-bottom: 5px;
    opacity: 0.9;
}

.hero p {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    line-height: 1.5;
    margin-top: 20px;
    max-width: 450px;
}
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-blob-img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    /* Placeholder for your actual photo */
    background: url('https://placehold.co/500x500/e5e5e5/666666?text=Your+Zoom+Photo') center/cover;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-blob-img img {
    width: 100%;
    max-width: 450px;
    margin-top: 10%;
}


@keyframes float {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translateY(0); }
    50% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; transform: translateY(-10px); }
}

/* Empathy Section */
.empathy-section {
    text-align: center;
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}
.empathy-section p { font-size: 1.2rem; }

/* Solutions Section */
.solutions {
    padding: 60px 0;
    text-align: center;
}

.cards-grid-two,
.cards-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.cards-grid{
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid-two{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    max-width: 80%;
}

.card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-sage { background-color: var(--sage-green); }
.card-coral { background-color: var(--coral); }
.card-lavender { background-color: var(--lavender); }

.card-icon { font-size: 2.5rem; margin-bottom: 20px; }
.card h3 { font-family: var(--font-sans); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }

/* עיצוב בסיסי לכרטיסייה עם הצללה ומסגרת עדינה */
.card { 
    border: 2px solid #ffffff; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); 
    transition: all 0.3s ease; 
    border-radius: 20px; 
    padding: 30px 20px;
    text-align: center; /* מוודא שהכל ממורכז */
}

/* אפקט ריחוף כשהעכבר מעל הכרטיסייה */
.card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); 
}

/* עיצוב הבועה שמקיפה את האייקון */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: rgba(255, 255, 255, 0.6); 
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}

/* הגדרות מדויקות לאייקוני ה-SVG עצמם */
.card-icon svg {
    color: var(--text-dark); /* מתחבר לצבע הטקסט הכהה שהגדרנו במשתנים */
    width: 32px;
    height: 32px;
}

/* ריווח מתחת לכותרת הכרטיסייה */
.card h3 {
    margin-bottom: 15px;
    font-weight: 600;
}
/* Authority & Social Proof */
.social-proof {
    padding: 80px 0;
}
/* כותרת הסקשן */
.proof-title { 
    text-align: center; 
    margin-bottom: 50px; 
    font-size: 2.2rem;
    color: var(--text-dark);
    gap: 10px;
}

/* הגריד הראשי - מחלק את המסך לאודות והמלצות */
.proof-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* מצמיד את שניהם למעלה */
}

/* קופסית הביוגרפיה */
.bio-box {
    flex: 1.4;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    /* חשוב: מוודא שהאלמנט יודע להכיל את התמונה הצפה */
    display: block; 
    overflow: hidden; 
    line-height: 1.7;
    color: #444;
    text-align: right; /* מוודא יישור לימין לעברית */
}

/* התמונה בתוך הביוגרפיה */
.bio-img {
    width: 130px; 
    height: 130px;
    /* ה-float המדובר */
    float: left; 
    margin: 0 25px 15px 0; 
    border-radius: 50%;
    shape-outside: circle(); /* בונוס: גורם לטקסט להתעגל סביב העיגול */
}

.bio-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* תיקון לניקוי הציפה - מוודא שהתיבה לא "קורסת" */
.bio-box::after {
    content: "";
    display: table;
    clear: both;
}
.bio-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* עמודת ההמלצות */
.testimonials { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    max-height: 550px; /* הגדלנו מעט כדי שיתאים לאורך הטקסט המורחב */
    overflow-y: auto;
    padding-left: 10px;
    padding-right: 5px;
}

/* עיצוב פס הגלילה של ההמלצות */
.testimonials::-webkit-scrollbar {
    width: 6px;
}
.testimonials::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}
.testimonials::-webkit-scrollbar-thumb {
    background-color: var(--sage-green);
    border-radius: 10px;
}

/* כרטיסיית המלצה בודדת */
.testimonial-card {
    background: white; 
    padding: 25px; 
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-right: 4px solid var(--sage-green); /* פס דקורטיבי בצד ימין */
}

/* =========================================
   התאמה למובייל (טלפונים)
   ========================================= */
@media (max-width: 900px) {
    .proof-grid {
        flex-direction: column; /* הופך את העמודות לשורות */
        gap: 30px;
    }

    .bio-box {
        padding: 25px 20px;
    }

    .bio-img {
        /* float: none; מבטל את הציפה בנייד */
        margin: 0 auto 20px auto; /* ממרכז את התמונה */
        display: block;
        width: 110px;
        height: 110px;
    }

    .bio-content {
        text-align: center; /* ממרכז את הטקסט בנייד למראה נקי יותר */
    }

    .bio-content ul {
        text-align: right; /* שומר על רשימת ה-V בצד ימין */
        display: inline-block;
    }

    .testimonials {
        max-height: 400px; /* מקצר את אזור ההמלצות בנייד */
        width: 100%;
    }
}
.stars { color: #f5b041; margin-bottom: 10px; font-size: 1.2rem; }

.tracks-section{
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* FAQ Section */
.faq-section {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    cursor: pointer;
}

summary {
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--sage-green); }
details[open] summary::after { content: '-'; }
.faq-answer { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }

/* Footer / Final CTA */
footer {
    background-color: var(--lavender);
    padding: 80px 0 40px;
    text-align: center;
    border-top-left-radius: 50% 10%;
    border-top-right-radius: 50% 10%;
}

.footer-content h2 { margin-bottom: 30px; }
.footer-bottom {
    margin-top: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}



/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding: 40px 0; }
    .hero-visual { width: 100%; }
    .proof-grid { flex-direction: column; text-align: center; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-buttons { justify-content: center; }
    .nav-links { display: none; } /* Keeps header clean on mobile */
    .bio-box { flex-direction: column; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 15px; }
}

/* =========================================
   התאמה למובייל (טלפונים ומסכים קטנים)
   ========================================= */
@media (max-width: 768px) {
    .cards-grid {
        display: flex;
        flex-direction: column; /* מסדר את הכרטיסיות אחת מתחת לשנייה */
        gap: 20px; /* רווח אחיד ויפה בין כרטיסייה לכרטיסייה */
    }

    .card {
        width: 100%; /* מוודא שכל כרטיסייה תופסת את כל רוחב המסך */
        padding: 25px 15px; /* מקטין טיפה את הריווח הפנימי כדי לחסוך מקום במסך קטן */
    }
    
    /* בונוס: מקטין קצת את הכותרות במובייל כדי שלא יתפסו יותר מדי שורות */
    .card h3 {
        font-size: 1.2rem; 
    }

    .cards-grid-two{
        flex-direction: column;
        max-width: 100%;
    }

    .btn-head{
        max-width: 60%;
    }
}


/* התאמה למובייל - חובה! */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem; /* מקטין בנייד כדי שלא יגלוש */
        line-height: 1.2;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }

    a.btn {
        width: 100%;
    }

    .btn-head{
        width: fit-content;
        padding: 5px;
    }

    a.header{
        font-size: 14px;
    }

    .header a, p, span{
        font-size: 14px;
    }

    .header {
        gap: 20px;
    }
}


/* --- 404 Page Styles --- */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--sage-dark);
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.5;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.error-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* בועה מיוחדת לדף הטעות */
.blob-error {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-color: var(--lavender);
    opacity: 0.2;
    filter: blur(60px);
}

@media (max-width: 768px) {
    .error-code { font-size: 5rem; }
    .error-actions { flex-direction: column; }
    .error-content h2 { font-size: 1.5rem; }
    header{
        gap:20px
    }
}



/* Read More Toggle */
.hidden-text {
    display: none;
}

.hidden-text.show {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--sage-green); /* Matches your theme */
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 5px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--text-dark);
}

/* Container for the sliding effect */
.expandable-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out; /* The "Smooth" part */
}

/* When active (mobile toggle) */
.expandable-container.is-expanded {
    max-height: 1000px; /* Large enough to fit text */
}

.read-more-btn {
    display: block;
    background: none;
    border: none;
    color: var(--sage-green);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    text-decoration: underline;
}

/* Desktop-First: Default state (Desktop - fully visible) */
.expandable-wrapper {
    display: grid;
    grid-template-rows: 1fr;
}

.expandable-inner {
    overflow: hidden;
}

.read-more-btn {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: var(--sage-green);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    text-decoration: underline;
}

/* Mobile Override */
@media (max-width: 768px) {
    .expandable-wrapper {
        grid-template-rows: 0fr; /* Collapsed by default on mobile */
        transition: grid-template-rows 0.4s ease-out;
    }

    .expandable-wrapper.is-open {
        grid-template-rows: 1fr; /* Expanded on mobile */
    }

    .read-more-btn {
        display: block; /* Visible on mobile */
    }
}