/*
Theme Name: Eden Wellness
Theme URI: https://edenaviv.co.il
Author: Eden Aviv
Description: תבנית בוטיק יוקרתית. כוללת פוטר דינמי לחלוטין (רשתות חברתיות וכותרות לעריכה) ותפריט שפות.
Version: 3.9
Text Domain: eden-wellness
*/

:root {
    /* צבעים חומים יוקרתיים (ללא ורוד) */
    --color-primary: #7D5A50; /* חום עמוק */
    --color-secondary: #B4846C; /* חום בהיר / נחושת */
    --color-bg: #F8F5F2; /* שמנת רכה ונקייה */
    --color-text: #4A4A4A; /* אפור כהה לקריאה נוחה */
    --font-heading: 'Frank Ruhl Libre', serif;
    --font-body: 'Heebo', sans-serif;
    --spacing-container: 1200px;
    --logo-height: 50px; /* משתנה זה יידרס על ידי ה-Customizer */
}

/* Reset & Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--color-bg); color: var(--color-text); direction: rtl; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

/* ==========================================================================
   השתלטות אגרסיבית על כל הפונטים והצבעים באתר
   ========================================================================== */
*:not(i):not([class*="icon"]):not([class*="fa"]):not([class*="eicon"]) {
    font-family: var(--font-body) !important;
}

h1, h2, h3, h4, h5, h6, 
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.elementor-heading-title, 
.elementor-widget-heading .elementor-heading-title,
.elementor-heading-title * {
    font-family: var(--font-heading) !important;
}

p { margin-bottom: 1.5rem; }
.container { max-width: var(--spacing-container); margin: 0 auto; padding: 0 20px; width: 100%; }

a:not(.elementor-button):not(.btn-book):not(.hero-btn) { color: var(--color-primary) !important; }
a:not(.elementor-button):not(.btn-book):not(.hero-btn):hover { color: var(--color-secondary) !important; }

/* כפיית צבעים על וידג'טים בוורדפרס (מאמרים אחרונים, קטגוריות וכו') */
.widget ul li, .widget_recent_entries ul li, .site-footer, .site-footer p, .site-footer span { color: var(--color-text) !important; }
.widget-title, .site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: var(--color-primary) !important; }

/* כפיית צבעים על אלמנטור מול הגדרות התבנית */
.elementor-widget-heading .elementor-heading-title { color: var(--color-primary) !important; }
.elementor-widget-text-editor, .elementor-text-editor, .elementor-widget-text-editor p { color: var(--color-text) !important; line-height: 1.8; }
.elementor-button { font-weight: 700 !important; border-radius: 50px !important; background-color: var(--color-primary) !important; color: #fff !important; }
.elementor-button:hover { background-color: var(--color-secondary) !important; color: #fff !important; }
.elementor-widget-icon-box .elementor-icon-box-title { color: var(--color-primary) !important; }
.elementor-widget-icon-box .elementor-icon-box-description { color: var(--color-text) !important; }

/* Top Ticker Bar */
.top-ticker { background: var(--color-primary); color: #fff; padding: 10px 0; height: 40px; overflow: hidden; white-space: nowrap; position: absolute; top: 0; left: 0; width: 100%; z-index: 10000; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; direction: ltr; letter-spacing: 0.05em; text-transform: uppercase; }
.ticker-wrap { display: inline-block; white-space: nowrap; animation: marquee 35s linear infinite; }
.ticker-item { padding: 0 50px; display: inline-block; direction: rtl; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Header Structure */
.site-header { padding: 25px 60px; display: flex; justify-content: space-between; align-items: center; position: fixed; width: 100%; top: 0; z-index: 9999; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); flex-wrap: nowrap; }
.site-header.scrolled { background: rgba(248, 245, 242, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 10px 40px rgba(125, 90, 80, 0.08); padding: 15px 60px; border-bottom: 1px solid rgba(125, 90, 80, 0.1); }

/* Logo */
.logo { flex-shrink: 0; display: flex; align-items: center; z-index: 1100; max-width: 50%; }
.logo a { font-size: 1.8rem; font-weight: 700; color: var(--color-primary) !important; letter-spacing: 2px; font-family: var(--font-heading) !important; text-transform: uppercase; line-height: 1; display: flex; align-items: center; white-space: nowrap; }
.logo span { font-weight: 300; opacity: 0.8; }
.logo img, .custom-logo-link img { max-height: var(--logo-height); width: auto; object-fit: contain; transition: max-height 0.3s ease; }

/* Actions & Button */
.header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 20px; z-index: 1100; flex-wrap: nowrap; }

/* Custom Luxury Language Switcher */
.custom-lang-selector { position: relative; cursor: pointer; user-select: none; z-index: 1200; flex-shrink: 0; }
.lang-current { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.95rem; font-weight: 600; color: var(--color-primary); background: rgba(255,255,255,0.7); border: 1px solid rgba(125, 90, 80, 0.2); padding: 8px 18px; border-radius: 50px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); white-space: nowrap; }
.lang-current:hover { background: #fff; border-color: var(--color-primary); box-shadow: 0 4px 15px rgba(125, 90, 80, 0.1); }
.lang-current i { font-size: 0.9rem; opacity: 0.8; }

/* Fix Google Translate injecting <font> tags breaking the flexbox */
.custom-lang-selector font, .lang-current font { display: inline !important; align-items: inherit !important; gap: inherit !important; background: transparent !important; box-shadow: none !important; }
.lang-current * { pointer-events: none; /* Prevent inner elements from messing with JS clicks */ }

.lang-options { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-10px); background: #fff; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); padding: 10px 0; min-width: 150px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transition: 0.3s; border: 1px solid rgba(125, 90, 80, 0.1); }
.custom-lang-selector.open .lang-options { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.lang-options li { margin: 0; padding: 0; }
.lang-options button { display: block; width: 100%; text-align: start; padding: 10px 20px; background: none; border: none; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--color-text); cursor: pointer; transition: 0.3s; }
.lang-options button:hover { background: var(--color-bg); color: var(--color-primary); padding-inline-start: 25px; font-weight: 700; }

/* Hide Default Google Translate Widget Entirely */
#google_translate_element { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; position: static !important; }
html { padding-top: 0 !important; }
#goog-gt-tt { display: none !important; }

.btn-book { background: var(--color-primary) !important; color: white !important; padding: 12px 32px; border-radius: 100px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.05em; box-shadow: 0 10px 20px rgba(125, 90, 80, 0.15); transition: all 0.3s ease; display: inline-block; border: 1px solid transparent; text-align: center; white-space: nowrap; flex-shrink: 0; }
.btn-book:hover { background: var(--color-secondary) !important; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(125, 90, 80, 0.25); }

/* Mobile Menu Toggle & Overlay */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; z-index: 1100; position: relative; flex-shrink: 0; }
.mobile-toggle span { display: block; width: 28px; height: 2px; background: var(--color-primary); margin: 6px 0; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px; }
.menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9990; opacity: 0; transition: opacity 0.4s; backdrop-filter: blur(4px); }

/* Hero Section */
.hero { height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(125, 90, 80, 0.4), rgba(125, 90, 80, 0.7)); }
.hero-content { position: relative; z-index: 2; color: white; padding: 20px; animation: heroFadeIn 1.2s ease-out; width: 100%; max-width: 900px; margin: 0 auto; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3); padding: 10px 25px; border-radius: 100px; display: inline-block; margin-bottom: 30px; font-size: clamp(0.8rem, 2vw, 0.9rem); font-weight: 600; letter-spacing: 0.1em; color: white !important; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); color: white !important; margin-bottom: 25px; line-height: 1.1; font-style: italic; text-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.hero p { font-size: clamp(1.1rem, 3vw, 1.4rem); max-width: 700px; margin: 0 auto 40px; opacity: 0.95; font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.1); color: white !important; line-height: 1.6; }
.hero-btn { background: var(--color-bg) !important; color: var(--color-primary) !important; padding: 18px 45px; border-radius: 100px; font-weight: 800; font-size: clamp(1rem, 2vw, 1.1rem); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); transition: 0.3s; display: inline-block; text-align: center; }
.hero-btn:hover { background: #fff !important; transform: translateY(-5px); color: var(--color-secondary) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Dynamic Footer */
.site-footer { background: #fff; padding: 80px 0 40px; border-top: 1px solid rgba(125, 90, 80, 0.1); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-col h4 { font-size: 1.3rem; margin-bottom: 25px; color: var(--color-primary) !important; font-weight: 700; font-family: var(--font-heading) !important; letter-spacing: 0.05em; }
.footer-col p, .footer-col a { font-size: 1rem; color: var(--color-text) !important; line-height: 1.6; opacity: 0.8; display: block; }
.footer-col a:hover { color: var(--color-secondary) !important; opacity: 1; transform: translateX(-5px); }
.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: var(--color-bg); color: var(--color-primary) !important; font-size: 1.2rem; transition: 0.3s; border: 1px solid rgba(125, 90, 80, 0.1); }
.social-links a:hover { background: var(--color-primary) !important; color: white !important; transform: translateY(-3px); }
.copyright { text-align: center; font-size: 0.9rem; padding-top: 30px; border-top: 1px solid rgba(125, 90, 80, 0.1); opacity: 0.6; }

/* ==========================================================================
   Responsive Logic - Desktop Row Menu
   ========================================================================== */
@media (min-width: 1025px) {
    .mobile-toggle { display: none !important; }
    .main-nav { flex-grow: 1; display: flex !important; justify-content: center; align-items: center; position: static !important; width: 100%; background: transparent !important; }
    .main-nav-ul { display: flex !important; flex-direction: row !important; gap: 40px !important; margin: 0 auto; padding: 0; align-items: center; justify-content: center; width: 100%; }
    .main-nav-ul li { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
    .main-nav-ul a { font-weight: 500; font-size: 1rem; color: var(--color-text) !important; position: relative; padding: 10px 15px; letter-spacing: 0.02em; transition: 0.3s; text-align: center; display: inline-block; white-space: nowrap; }
    
    body.menu-open { overflow: auto !important; }
    body.menu-open .main-nav { position: static !important; background: transparent !important; }
    body.menu-open .main-nav-ul { flex-direction: row !important; }

    .main-nav-ul a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--color-primary); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transform: translateX(-50%); }
    .main-nav-ul a:hover { color: var(--color-primary) !important; }
    .main-nav-ul a:hover::after, .main-nav-ul li.current-menu-item a::after { width: 100%; }
    .main-nav-ul li.current-menu-item a { color: var(--color-primary) !important; font-weight: 700; }
}

/* ==========================================================================
   Responsive Logic - Tablets & iPad Pro
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .site-header { padding: 20px 30px; }
    .site-header.scrolled { padding: 15px 30px; }
    .logo a { font-size: 1.5rem; }
    
    .mobile-toggle { display: none !important; }
    .main-nav { flex-grow: 1; display: flex !important; justify-content: center; align-items: center; position: static !important; width: 100%; background: transparent !important; }
    
    /* Shrink gaps */
    .main-nav-ul { display: flex !important; flex-direction: row !important; gap: 15px !important; margin: 0 auto; padding: 0; align-items: center; justify-content: center; width: 100%; }
    .main-nav-ul li { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
    .main-nav-ul a { font-weight: 500; font-size: 0.95rem; color: var(--color-text) !important; position: relative; padding: 8px 10px; transition: 0.3s; display: inline-block; white-space: nowrap; }
    
    .main-nav-ul a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--color-primary); transition: all 0.4s ease; transform: translateX(-50%); }
    .main-nav-ul a:hover { color: var(--color-primary) !important; }
    .main-nav-ul a:hover::after, .main-nav-ul li.current-menu-item a::after { width: 100%; }
    .main-nav-ul li.current-menu-item a { color: var(--color-primary) !important; font-weight: 700; }

    .header-actions { gap: 12px; }
    .btn-book { padding: 10px 20px; font-size: 0.85rem; }
    
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

/* ==========================================================================
   Responsive Logic - Mobile & Small Tablets (Side Drawer)
   ========================================================================== */
@media (max-width: 768px) {
    .site-header { padding: 15px 20px; }
    .site-header.scrolled { padding: 12px 20px; }
    .logo a { font-size: 1.3rem; }
    
    .mobile-toggle { display: block !important; }
    .header-actions { gap: 12px; }
    .btn-book { padding: 8px 18px; font-size: 0.85rem; }
    
    /* Modify Dropdown direction on mobile to prevent overflow */
    .lang-options { left: -10px; right: auto; transform: translateY(-10px); }
    .custom-lang-selector.open .lang-options { transform: translateY(0); }
    
    /* SIDE DRAWER STYLING */
    .main-nav { 
        position: fixed !important; 
        top: 0; 
        right: -100%; /* Hidden off-screen right */
        width: 320px; 
        max-width: 85vw; 
        height: 100vh; 
        background: var(--color-bg) !important; 
        z-index: 1050; 
        padding: 90px 30px 40px; /* Space for header */
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        overflow-y: auto;
        display: block !important;
    }
    
    /* When Menu is Open */
    body.menu-open { overflow: hidden !important; } /* Prevents background scrolling */
    
    /* CSS FIX: Make header transparent when menu is open so it looks seamless */
    body.menu-open .site-header { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border-bottom: none !important; }
    
    body.menu-open .main-nav { right: 0; }
    body.menu-open .menu-overlay { display: block; opacity: 1; }
    
    /* Mobile Menu Items - Using text-align: start for auto RTL/LTR translation support */
    .main-nav-ul { display: flex !important; flex-direction: column !important; gap: 20px; padding: 0; margin: 0; align-items: stretch; }
    .main-nav-ul li { width: 100%; text-align: start; border-bottom: 1px solid rgba(125, 90, 80, 0.08); padding-bottom: 12px; }
    .main-nav-ul li:last-child { border-bottom: none; }
    .main-nav-ul li a { 
        font-size: clamp(1.1rem, 5vw, 1.3rem) !important; 
        font-family: var(--font-heading) !important; 
        color: var(--color-primary) !important; 
        display: block; 
        width: 100%; 
        transition: 0.3s;
        line-height: 1.4;
        white-space: normal; /* Allow long translations to wrap */
        word-wrap: break-word;
    }
    .main-nav-ul a:hover { opacity: 0.7; transform: translateX(-5px); }
    .main-nav-ul a::after { display: none !important; }
    
    /* Hamburger to X Animation */
    body.menu-open .mobile-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    body.menu-open .mobile-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .mobile-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-links { justify-content: center; }
}

/* For Extra Small Screens - Prevent Flexbox Breakage */
@media (max-width: 480px) {
    .top-ticker { font-size: 0.75rem; height: 35px; }
    .site-header { padding: 12px 15px; }
    .site-header.scrolled { padding: 10px 15px; }
    .header-actions { gap: 8px; }
    .header-actions .btn-book { display: none !important; } /* Hide booking button to save space */
    .logo a { font-size: 1.15rem; }
    
    /* Language Switcher Optimization: Hide text, show only globe icon */
    .lang-current { padding: 6px 12px; gap: 4px; }
    #current-lang-name { display: none; } /* Critical fix for small screens */
    .lang-options { min-width: 120px; }
    
    .hero-btn { padding: 15px 30px; width: 100%; } 
}