/* mn25_css/green-new.css */
/* עיצוב ייחודי לדף קפה ירוק - Mazon Nahon 2025 */

/* עדכון צבעים לאווירה ירוקה יותר */
:root {
    --green-primary: #2e7d32;   /* ירוק עמוק לכותרות */
    --green-vibrant: #4caf50;   /* ירוק חי לכפתורים */
    --green-bg-start: #e8f5e9;  /* ירוק בהיר מאוד לרקע עליון */
    --green-bg-end: #ffffff;    /* לבן לרקע תחתון */
    --gold: #ffd700;
}

body {
    /* רקע מדורג: מתחיל ירקרק למעלה ומסתיים בלבן למטה */
    background: linear-gradient(to bottom, var(--green-bg-start) 0%, var(--green-bg-end) 50%);
    background-attachment: fixed; /* הרקע נשאר יציב בגלילה - אפקט יוקרתי */
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* תיקון גודל דגלים */
.lang-switcher img.lang-flag {
    width: 25px; /* גודל סטנדרטי */
    height: auto;
    vertical-align: middle;
    margin-left: 5px;
}

/* --- תפריט עליון משודרג --- */
.top-nav {
    display: flex;
    gap: 30px; /* רווח יפה בין המילים */
    align-items: center;
}

.top-nav a {
    text-decoration: none; /* ביטול הקו התחתון המיושן */
    color: #333;           /* שחור-אפור אלגנטי */
    font-weight: 600;      /* מעט עבה יותר */
    font-size: 1.1rem;
    position: relative;    /* חובה עבור האפקט */
    transition: color 0.3s ease;
}

/* שינוי צבע במעבר עכבר */
.top-nav a:hover {
    color: var(--green-primary);
}

/* אפקט הפס הנמתח (הקסם המודרני) */
.top-nav a::after {
    content: '';
    position: absolute;
    width: 0;              /* בהתחלה הפס הוא ברוחב 0 */
    height: 2px;           /* עובי הפס */
    bottom: -5px;          /* מיקום מתחת למילה */
    left: 0;
    background-color: var(--gold); /* צבע זהב יוקרתי */
    transition: width 0.3s ease;   /* אנימציית גדילה */
}

.top-nav a:hover::after {
    width: 100%;           /* במעבר עכבר הפס גדל לכל הרוחב */
}

/* --- HERO SECTION משופר --- */
.green-hero {
    /* השכבה הכהה (0.5 ו-0.7) מבטיחה שהטקסט הלבן יהיה קריא על גבי הפולים */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('../mn25_images/hero-green.jpg');
    
    /* שאר ההגדרות נשארות זהות */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-bottom: 5px solid var(--gold);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.2;
}

.hero-content .highlight {
    color: var(--gold);
    font-size: 0.8em; /* גודל זהה לשתי השורות */
    display: block;   /* מבטיח שכל אחד יהיה בשורה נפרדת */
    margin-top: 5px;
    font-weight: bold;
}

/* הקטנה קלה לאנגלית כדי שייראה אלגנטי מתחת לעברית */
.hero-content .sub-en {
    font-size: 0.7em; 
    opacity: 0.9;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-top: 10px;
    color: #e0e0e0;
}

.hero-text {
    max-width: 700px;
    margin: 20px auto;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* כפתור ירוק - יותר בולט */
.btn-green-action {
    background: linear-gradient(45deg, #2e7d32, #66bb6a); /* כפתור מבריק */
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4); /* זוהר ירוק */
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.btn-green-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

/* --- PURITY SECTION --- */
.purity-section {
    background-color: white;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

.purity-box {
    max-width: 800px;
    margin: 0 auto;
    border: 2px dashed var(--green-primary);
    padding: 40px;
    border-radius: 15px;
    background-color: var(--green-light);
}

.icon-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green-primary);
    margin-bottom: 15px;
}

.purity-box p {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* --- SCIENCE GRID --- */
.science-grid-section {
    padding: 80px 20px;
    background-color: #f4f4f4;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--green-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #666;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* כרטיסייה רגילה */
/* תיקון לרקע של הכרטיסיות המדעיות כדי שיבלטו על הרקע הירקרק */
.science-card {
    background: rgba(255, 255, 255, 0.95); /* רקע כמעט לבן */
    
    /* 1. קודם כל מגדירים מסגרת דקה לכל הכרטיס */
    border: 1px solid #c8e6c9; 
    
    /* 2. אחר כך "דורסים" רק את החלק העליון שיהיה עבה יותר */
    border-top: 5px solid var(--green-primary);
    
    /* שאר ההגדרות נשארות כרגיל */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.science-card:hover {
    transform: translateY(-5px);
}

.science-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.4rem;
}

.source {
    font-size: 0.9rem;
    color: #777;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

/* כרטיסייה מודגשת (הזווית הישראלית) */
.featured-card {
    grid-column: 1 / -1; /* תופס את כל הרוחב */
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(to left, white 60%, #e0f2f1 100%);
    border: 2px solid var(--green-primary);
}

.card-content {
    flex: 2;
}

.card-image {
    flex: 1;
}

.card-image img {
    width: 100%;
    max-width: 400px; /* הוגדל ל-400px לבקשתך */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.note {
    background-color: var(--gold);
    color: black;
    padding: 5px 10px;
    display: inline-block;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 15px;
    border-radius: 4px;
}

/* --- כל תיקוני המובייל במקום אחד (Unified Mobile Tweaks) --- */
@media (max-width: 768px) {
    
    /* 1. סידור הכרטיסייה המדעית (מהקוד הישן) */
    .featured-card {
        flex-direction: column-reverse;
        text-align: center;
    }

    /* 2. הקטנת הגובה של ה-Hero כדי שהכפתור ייכנס למסך (חדש) */
    .green-hero {
        padding: 50px 20px; /* צמצום משמעותי של הגובה */
        background-position: center top; 
    }

    /* 3. כותרת ראשית - בחרנו ב-2.3 כדי לחסוך מקום (במקום 2.5 שהיה קודם) */
    .hero-content h1 {
        font-size: 2.3rem; 
        margin-bottom: 10px;
    }

    /* 4. הקטנה של שורת ה-100% כדי שתיכנס יפה */
    .hero-content h2 {
        font-size: 1.1rem;
        margin-top: 5px;
    }

    /* 5. הקטנת טקסט הפתיחה */
    .hero-text {
        font-size: 1rem;
        margin: 15px auto;
        line-height: 1.4;
    }

    /* 6. כפתור הזמנה קומפקטי יותר */
    .btn-green-action {
        margin-top: 15px;
        padding: 12px 30px;
        font-size: 1.2rem;
    }
}

/* --- USAGE SECTION --- */
.usage-section {
    padding: 80px 20px;
    background-color: white;
    text-align: center;
}

.usage-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.step-num {
    background: var(--green-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.big-btn {
    padding: 20px 50px;
    font-size: 1.5rem;
}

/* --- קישור תחתון "חזרה" משודרג --- */
.small-link {
    display: inline-flex;       /* מאפשר ליישר את החץ והטקסט */
    align-items: center;
    margin-top: 30px;
    color: #777;                /* אפור כהה ולא שחור מלא */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid #ddd;     /* מסגרת אפורה דקיקה */
    padding: 10px 20px;
    border-radius: 30px;        /* פינות עגולות */
    transition: all 0.3s ease;
    background-color: white;
}

/* הוספת חץ קטן לפני הטקסט */
.small-link::before {
    content: '↩';              /* אייקון חץ מסתובב */
    margin-left: 8px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* אפקט הריחוף */
.small-link:hover {
    color: var(--green-primary);
    border-color: var(--green-primary);
    background-color: #f0f9f0; /* רקע ירקרק בהיר מאוד */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* החץ זז ימינה כשעוברים עם העכבר */
.small-link:hover::before {
    transform: translateX(3px); 
}

/* --- FOOTER --- */
.small-note {
    font-size: 0.9rem;
    color: #aaa;
}
.disclaimer {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.7;
}