/* Mazon-Nahon Engineering Style Sheet 
   System Fonts Only | No CDNs 
*/

:root {
    --primary-color: #333399; /* Deep Engineering Blue */
    --secondary-color: #f4f4f4; /* Light Grey */
    --accent-green: #2e7d32; /* Organic Green */
    --text-dark: #333;
    --white: #ffffff;
    --notification-bg: #ffeb3b; /* Bright Yellow for alerts */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Notification Bar (Hidden by default) */
.notification-bar {
    display: none; /* Change to 'block' to show banner. Return to 'none' to hide.  */
    background-color: var(--notification-bg);
    color: #000;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0c91f;
}

.notification-bar a {
    color: #000;
    font-weight: bold;
}

/* Header */
.main-header {
    background: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
/* ADD THESE TWO LINES: */
    position: relative; 
    z-index: 1001; /* Higher than the overlay (1000) */	
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Menu Wrapper */
.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
}

/* --- HAMBURGER TO 'X' ANIMATION --- */

/* 1. Make the lines move smoothly */
.hamburger-menu span {
    transition: all 0.3s ease-in-out;
    transform-origin: center; /* Rotate around the middle */
}

/* 2. When the menu is open (is-active): */

/* Top Line: Rotate 45 degrees and move down */
.hamburger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

/* Middle Line: Disappear (become transparent) */
.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}

/* Bottom Line: Rotate -45 degrees and move up */
.hamburger-menu.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --- MOBILE MENU DRAWER --- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.nav-content {
    position: absolute;
    top: 0;
    right: -300px; /* Hidden off-screen */
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    padding: 80px 20px 20px;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav.active .nav-content {
    right: 0; /* Slide in */
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-separator {
    height: 20px;
    border: none !important;
}

/* --- עיצוב מיוחד לקישור קפה ירוק בתפריט --- */
a.special-green-link {
    background-color: #2e7d32;      /* רקע ירוק יער */
    color: #ffffff !important;      /* טקסט לבן בוהק (חובה לקריאות) */
    font-weight: bold;              /* טקסט מודגש */
    border-radius: 8px;             /* פינות עגולות */
    margin: 5px 15px;               /* רווח מהצדדים כדי שייראה כמו כפתור */
    text-align: center;             /* מרכוז הטקסט */
    border: 1px solid #ffd700;      /* מסגרת דקה בצבע זהב להדגשה */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* צל עדין */
}

/* אפקט לחיצה/מעבר עכבר */
a.special-green-link:hover {
    background-color: #1b5e20;      /* ירוק כהה יותר במעבר */
    color: #ffd700 !important;      /* הטקסט הופך לזהב */
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    text-align: center;
}
/* Add this to the Logo section in CSS */
.logo-img {
    height: 60px; /* Adjust this number to make it bigger/smaller */
    width: auto;  /* Maintains the aspect ratio */
    display: block;
}
/* Optional: Make it slightly smaller on mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }
}

.brand-he {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.brand-en {
    font-size: 0.8rem;
    color: #666;
}









/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 12px;
    align-items: center;
}

.lang-flag {
    width: 26px;         /* Slightly larger for square/circle visibility */
    height: 26px;        /* Forces a perfect square box */
    object-fit: cover;   /* Ensures the image fills the box */
    
    border-radius: 4%;  /* <--- THIS TURNS THE SQUARE INTO A CIRCLE */
    /* If you prefer square with corners, change 50% to 4px */
    
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: not-allowed; 
    transition: all 0.3s ease;
}


/* The "Future Mode" - Grayed out */
.lang-flag.disabled {
    filter: grayscale(100%); /* Turns the color flag into B&W */
    opacity: 0.4;            /* Fades it out */
}

/* Optional: Slight hover effect even when disabled, so user knows it exists */
.lang-flag.disabled:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-color: #444; 
    background-image: url('../mn25_images/mountain-clouds.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
	
	/* ADD THIS NEW LINE HERE: */
    overflow: hidden; /* This cuts off the beans if they stick out */
}

/* Base Style for Bean Images */
.hero-decor {
    position: absolute;
    top: 0;
    z-index: 1; /* Sits above the mountain, but BEHIND the text (which is z-index 2) */
    width: 350px; /* Default size for desktop */
    max-width: 30vw; /* Never take more than 30% of screen width */
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); /* Adds depth so they float */
}

/* Positioning */
.decor-left {
    left: 0;
    /* Optional: Rotate if needed to fit corner better */
    /* transform: rotate(-10deg); */
}

.decor-right {
    right: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-decor {
        width: 120px; /* Much smaller on mobile */
        opacity: 0.8; /* Slightly see-through so they don't block text completely */
    }
    
    /* Option: If they still block text, push them to the bottom instead of top */
    /* .hero-decor { top: auto; bottom: 0; } 
    */
}

.hero-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    /* REDUCED OPACITY: Was 0.5, Now 0.2 */
    background: rgba(0, 0, 0, 0.2); 
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6); /* Text shadow added for readability on bright background */
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Transparency Bar */
.transparency-bar {
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    font-size: 0.9rem;
    text-align: center;
    color: #555;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Quality Triangle */
.quality-triangle {
    padding: 50px 0;
    text-align: center;
}

.quality-card h3 {
    color: var(--primary-color);
    margin: 15px 0 10px;
}

.video-box {
    width: 190px;  /* Bigger size */
    height: 190px;
    border-radius: 50%; /* Perfect Circle */
    overflow: hidden;   /* Cuts off the square corners of the video file */
    margin: 0 auto 15px auto; /* Centers it */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* Nice 3D shadow */
    background: #fff;
    border: 4px solid #fff; /* White ring frame looks very professional */
}

.valve-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills the circle without stretching */
    display: block;
} 

.icon-box {
    font-size: 3rem;
    margin-bottom: 10px;
}



/* Decision Split */
.decision-split {
    border-top: 1px solid #eee;
}

/* DECISION SPLIT UPGRADE (V3 - Strong Colors & Mobile Fix) */

.decision-split .grid-2 {
    align-items: stretch; /* Forces equal height */
}

.split-box {
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    
    /* FLEX LAYOUT FOR ALIGNMENT */
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    height: 100%;
}

/* Push the button to the bottom */
.split-box .btn {
    margin-top: auto; 
    margin-left: 0;
    margin-right: 0;
}

/* --- COLOR ZONES (STRONGER) --- */
/* We switched from "Hint of color" to "Visible Color" */

.roasted-box {
    background-color: #F5E6D3; /* Visible Latte / Beige */
    border: 1px solid #dcc6a8;
}

.green-box {
    background-color: #DCEDC8; /* Visible Light Green */
    border: 1px solid #a5d6a7;
}

/* HEADLINE STYLES */
.split-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}
.roasted-box h2 { color: #5d4037; }
.green-box h2 { color: #1b5e20; }


/* --- MOBILE FIXES (Prevents 2-line text) --- */
@media (max-width: 768px) {
    
    .split-box {
        padding: 30px 15px; /* Reduce container padding */
    }

    /* Force the button text to fit */
    .btn-roasted, 
    .btn-green-beans {
        font-size: 0.95rem !important; /* Smaller text */
        padding: 12px 10px !important;  /* Tighter padding */
        width: 100%;
        white-space: nowrap; /* Force text to stay on one line */
    }
    
    /* Make the icon slightly smaller too */
    .btn-hero .icon {
        font-size: 1.1rem;
    }
}

/* APPLE NOTE UPGRADE */
.apple-note {
    background: #fff8e1; /* Light Warning Yellow */
    border: 1px solid #ffe0b2;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    
    /* Layout: Image on right, Text on left */
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
}

.apple-img {
    width: 106px;  /* Fixed size for the icon */
    height: 60px;
    object-fit: contain;
    flex-shrink: 0; /* Prevents image from getting squashed */
}

.note-text {
    font-size: 0.9rem;
    color: #5d4037; /* Coffee brown text */
    line-height: 1.4;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .apple-note {
        flex-direction: column; /* Stack image on top of text */
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid transparent;
}

.btn-dark {
    background-color: #333;
    color: var(--white);
}

.btn-green {
    background-color: var(--accent-green);
    color: var(--white);
}

.btn:hover {
    opacity: 0.9;
}

/* NEW HERO BUTTON STYLES */

.btn-hero {
    display: inline-flex;       /* Aligns icon and text perfectly */
    align-items: center;
    gap: 12px;                  /* Space between icon and text */
    
    background-color: var(--primary-color); /* Deep Blue */
    color: #ffffff;
    
    font-size: 1.3rem;          /* Much larger text (was default size) */
    font-weight: 700;           /* Extra Bold */
    
    padding: 15px 40px;         /* Big, comfortable clicking area */
    border: 2px solid rgba(255,255,255,0.8); /* Engineering border */
    border-radius: 50px;        /* Fully rounded (Pill shape) - Modern & Friendly */
    /* OR use '6px' if you prefer a rectangle box */
    
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* 3D Lift Effect */
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #ffffff;  /* Turn white on hover */
    color: var(--primary-color);/* Turn blue text on hover */
    border-color: var(--primary-color);
    transform: translateY(-2px); /* Slight lift on hover */
}

.btn-hero .icon {
    font-size: 1.4rem; /* Icon slightly bigger than text */
}

/* Mobile Tweak: Prevent it from being too wide on small screens */
@media (max-width: 768px) {
    .btn-hero {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

/* Scientific Section */
.science-grid {
    padding: 50px 0;
    background-color: #f4f4f4;
    text-align: center;
}

.section-title {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.science-link {
    display: block;
    background: var(--white);
    padding: 20px;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: bold;
}

.science-link:hover {
    border-color: var(--primary-color);
}



/* --- SCIENCE GRID & CARDS --- */

.science-grid {
    padding: 60px 0;
    background-color: #f9f9f9; /* Slight grey background to separate from white */
}

.science-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%; /* Ensures all cards are same height */
}

.science-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

/* The Image Container */
.card-img-wrapper {
    height: 100px; /* Fixed height space for the icon */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* The Icon Image itself */
.science-icon {
    max-width: 100px; /* Max width */
    max-height: 100px; /* Max height */
    width: auto;
    height: auto;
    object-fit: contain;
}

.science-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4; /* Better spacing for the two lines */
    margin: 0;
}

/* --- THE NEW LIBRARY BUTTON --- */
/* Uses the same structure as btn-hero but with Science Colors */
.btn-library {
    background-color: #283593; /* Deep Academic Blue */
    border-color: #3f51b5;
    min-width: 300px; /* Nice and wide */
    justify-content: center;
}

.btn-library:hover {
    background-color: #5c6bc0; /* Much brighter blue */
   border-color: #5c6bc0;     /* Match the border */
    color: #ffffff;             /* Ensures text stays white */
    border-color: #1a237e;      /* Border matches background */
    transform: translateY(-2px); /* Lifts up slightly */
    box-shadow: 0 6px 12px rgba(0,0,0,0.2); /* Adds a 3D shadow */
}

.text-link {
    color: var(--text-dark);
    font-weight: bold;
}

.center-btn {
    margin-top: 20px;
}

/* Footer */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer p {
    margin-bottom: 10px;
}

.main-footer strong {
    color: var(--white);
}

/* Footer Social Icons Upgrade */
.social-icons {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between icons */
}

.social-icons a {
    color: #ccc; /* Default gray color */
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex; /* Ensures SVG centers correctly */
}

.social-icons a:hover {
    color: var(--white); /* Lights up white on hover */
    transform: translateY(-3px); /* Little jump effect */
}

.contact-info a {
    color: #ccc;
    text-decoration: underline;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .roasted-box {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* SPLIT SECTION BUTTONS */

/* 1. Roasted Coffee Button (Deep Espresso Brown) */
.btn-roasted {
    background-color: #4b3621; /* Coffee Bean Color */
    border-color: #6f4e37;     /* Slightly lighter brown border */
    font-size: 1.1rem;         /* Slightly smaller than the main Hero button */
    width: 100%;               /* Full width on mobile looks good */
    max-width: 300px;          /* But don't get too crazy on desktop */
    justify-content: center;   /* Center the text/icon */
}

.btn-roasted:hover {
    background-color: #6f4e37; /* Lighter brown on hover */
    color: #fff;               /* Keep text white */
    transform: translateY(-2px);
}

/* 2. Green Coffee Button (Fresh Leaf Green) */
.btn-green-beans {
    background-color: #2e7d32; /* Organic Green */
    border-color: #4caf50;     /* Lighter green border */
    font-size: 1.1rem;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.btn-green-beans:hover {
    background-color: #4caf50; /* Lighter green on hover */
    color: #fff;
    transform: translateY(-2px);
}



/* --- SINGLE ORIGIN IDENTITY BANNER --- */

/* The Container styling */
.identity-banner {
    /* Deep Blue Gradient - Engineering & Premium */
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: var(--white);
    padding: 25px 0;
    
    /* A Gold border at bottom to signify "Gold Standard/Premium" */
    border-bottom: 4px solid #ffd700; 
    
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Flex layout for Desktop */
.identity-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.identity-text {
    text-align: right;
}

.identity-text h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.identity-text p {
    margin: 5px 0 0 0;
    font-size: 1.1rem;
    color: #e0e0e0; /* Slightly dimmed white */
}

/* The "Reveal" Button */
.btn-identity {
    background: transparent;
    border: 2px solid #ffd700; /* Gold Border */
    color: #ffd700;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-identity:hover {
    background: #ffd700;
    color: #1a237e; /* Text becomes blue */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); /* Glowing effect */
}

/* Decoration Icon (Background watermark) */
.identity-bg-icon {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.05; /* Very subtle */
    pointer-events: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .identity-content {
        flex-direction: column; /* Stack text and button */
        text-align: center;
    }
    .identity-text {
        text-align: center;
        margin-bottom: 15px;
    }
}

/* --- SINGLE ORIGIN IDENTITY BANNER (UPDATED COMPACT VERSION) --- */

/* The Container styling */
.identity-banner {
    /* Deep Blue Gradient */
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: var(--white);
    
    /* HEIGHT FIX: Reduced padding from 25px to 12px for a slim look */
    padding: 12px 0;
    
    /* Gold border */
    border-bottom: 4px solid #ffd700; 
    
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Flex layout for Desktop */
.identity-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.identity-text {
    text-align: right;
}

.identity-text h2 {
    margin: 0;
    /* Slightly smaller font to save height if needed, or keep 1.6 */
    font-size: 1.5rem; 
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2; /* Tightens the text lines */
}

.identity-text p {
    margin: 2px 0 0 0; /* Reduced margin from 5px to 2px */
    font-size: 1rem;   /* Slightly smaller for compactness */
    color: #e0e0e0; 
}

/* The "Reveal" Button */
.btn-identity {
    background: transparent;
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 6px 20px; /* Reduced padding (was 10px 30px) to make button slimmer */
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;   /* Slightly smaller font */
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-identity:hover {
    background: #ffd700;
    color: #1a237e;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Decoration Icon */
.identity-bg-icon {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8rem;
    opacity: 0.05; 
    pointer-events: none;
}

/* Mobile Adjustments - THE CRITICAL FIX */
@media (max-width: 768px) {
    .identity-content {
        flex-direction: column;
        text-align: center;
        gap: 10px; /* Reduced gap between Text and Button (was implied larger) */
    }
    
    .identity-text {
        text-align: center;
        margin-bottom: 0; /* Removed bottom margin completely to save space */
    }
    
    .identity-text h2 {
        font-size: 1.3rem; /* Smaller headline on mobile saves vertical space */
    }
    
    .btn-identity {
        width: 100%; /* Optional: Makes button full width on mobile for easier clicking */
        max-width: 250px;
    }
}

/* --- THE "HIDDEN" SWITCH --- */
/* Uncomment the line below to HIDE the banner again if needed */
/* .hidden-banner { display: none !important; } */