/*
Theme Name: A.M נדל"ן 360
Description: תמה מקצועית לאתר נדל"ן בישראל עם תמיכה RTL מלאה ו-Responsive Design
Author: ליאור מלכא
Version: 1.0.3
Text Domain: nadlan360
Domain Path: /languages
Tags: rtl-language-support, responsive-design, real-estate, hebrew
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A.M נדל"ן 360 WordPress theme, Copyright 2024 ליאור מלכא
A.M נדל"ן 360 is distributed under the terms of the GNU GPL

=== CHANGELOG ===
v1.0.3 - Fixed mobile menu issues, removed duplicated CSS
*/

:root{
  --primary:#1e3c72;
  --primary-2:#2a5298;
  --accent:#ffd700;
  --bg:#f8f9fa;
  --text:#2b2f36;
  --muted:#6b7280;
  --success:#28a745;
  --danger:#dc3545;
  --shadow:0 8px 30px rgba(0,0,0,.08);
  --radius:16px;
}

/* Reset & Base */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color:var(--text); background:var(--bg); line-height:1.7}
img{max-width:100%; display:block}
a{color:inherit}

/* Header & Navigation */
header{position:sticky; top:0; z-index:1000; background:linear-gradient(135deg,var(--primary),var(--primary-2)); color:#fff; box-shadow:var(--shadow)}
.nav{max-width:1200px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 22px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; font-size:1.25rem}
.brand i{color:var(--accent)}
.brand img{width:40px; height:auto}
.brand a{text-decoration:none; color:#fff}

/* Desktop Menu */
.menu{display:flex; list-style:none; gap:22px}
.menu a{color:#fff; text-decoration:none; padding:.5rem 1rem; border-radius:999px; transition:.25s}
.menu a:hover{background:rgba(255,255,255,.12)}
.cta-nav{background:var(--accent); color:var(--primary); font-weight:700}

/* Mobile Toggle - Hidden by default */
.mobile-toggle{display:none}

/* Hero Section */
.hero{position:relative; overflow:hidden; background:
  radial-gradient(1200px 600px at 90% -10%, rgba(255,215,0,.15), transparent 60%),
  linear-gradient(135deg, rgba(30,60,114,.95), rgba(42,82,152,.9)),
  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%23eef1f5"/><path d="M0 480 C 300 420 600 540 900 470 S 1200 500 1200 500 L 1200 600 L 0 600 Z" fill="%232a5298" opacity=".25"/></svg>');
  color:#fff;
  background-size:cover; background-position:center;}
.hero-inner{max-width:1200px; margin:auto; padding:96px 22px 72px; text-align:center}
.hero h1{font-size:clamp(1.8rem,4.2vw,3rem); line-height:1.2; text-shadow:0 6px 20px rgba(0,0,0,.2)}
.hero p{max-width:820px; margin:16px auto 28px; font-size:1.1rem; opacity:.95}
.cta{display:inline-flex; align-items:center; gap:.6rem; background:var(--accent); color:var(--primary); padding:14px 22px; border-radius:999px; font-weight:800; text-decoration:none; box-shadow:0 10px 30px rgba(255,215,0,.25); transition:transform .2s}
.cta:hover{transform:translateY(-2px)}
.hero-badges{display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:18px}
.badge{display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.12); padding:8px 12px; border-radius:999px; font-weight:600}
.badge i{color:var(--accent)}

/* Sections */
section{scroll-margin-top:90px}
.section{max-width:1200px; margin:auto; padding:64px 22px}
.section h2{font-size:clamp(1.4rem,3.2vw,2.2rem); color:var(--primary); text-align:center}
.section .sub{max-width:840px; text-align:center; margin:10px auto 36px; color:var(--muted)}

/* Grid System */
.grid{display:grid; gap:22px}
.cols-3{grid-template-columns:repeat(3,1fr)}
@media (max-width:960px){.cols-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.cols-3{grid-template-columns:1fr}}

/* Cards */
.card{background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:26px}
.icon-ring{width:52px; height:52px; display:grid; place-items:center; border-radius:50%; background:rgba(42,82,152,.08); color:var(--primary-2); margin-bottom:10px}
.card h3{font-size:1.1rem; margin-bottom:6px; color:var(--primary)}
.card p{color:var(--muted)}

/* Services */
.benefit{display:flex; gap:16px; align-items:flex-start}
.benefit i{color:var(--success); margin-top:4px}

/* Statistics */
.stats{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:18px}
.stat{background:#fff; border-radius:14px; padding:22px; text-align:center; box-shadow:var(--shadow)}
.stat .num{font-weight:900; font-size:1.8rem; color:var(--primary)}
.stat .lbl{color:var(--muted)}
@media(max-width:900px){.stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.stats{grid-template-columns:1fr}}

/* Testimonials */
.testi{display:grid; gap:18px; grid-template-columns:repeat(3,1fr)}
@media(max-width:960px){.testi{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.testi{grid-template-columns:1fr}}
.quote{background:#fff; border:1px solid #eef1f5; border-radius:var(--radius); padding:22px; box-shadow:var(--shadow)}
.quote .stars{color:#f6c000; margin-bottom:8px}
.quote .name{margin-top:10px; font-weight:700; color:var(--primary)}

/* FAQ */
.faq{max-width:900px; margin:0 auto}
.faq-item{background:#fff; border-radius:14px; border:1px solid #eef1f5; margin-bottom:12px; overflow:hidden}
.faq-q{width:100%; text-align:inherit; background:#fff; border:0; padding:18px; font-weight:700; color:var(--primary); display:flex; align-items:center; justify-content:space-between; cursor:pointer}
.faq-a{display:none; padding:0 18px 18px; color:var(--muted)}

/* Forms */
.lead-wrap{display:grid; grid-template-columns:1.2fr .8fr; gap:22px}
@media(max-width:900px){.lead-wrap{grid-template-columns:1fr}}
.lead{background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:26px}
.lead h3{color:var(--primary); margin-bottom:8px}
.form{display:grid; gap:12px; margin-top:12px}
.row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media(max-width:640px){.row{grid-template-columns:1fr}}
label{font-weight:600; color:var(--text); font-size:.95rem}
input, select, textarea{width:100%; padding:12px 14px; border:1px solid #e5e7eb; border-radius:12px; outline:none; font-family:inherit; transition:border .2s}
input:focus, select:focus, textarea:focus{border-color:var(--primary-2)}
.submit{background:var(--accent); color:var(--primary); border:0; padding:14px 18px; border-radius:12px; font-weight:900; cursor:pointer; box-shadow:0 10px 30px rgba(255,215,0,.25)}
.consent{font-size:.85rem; color:var(--muted)}

/* Footer */
footer{background:#0f2342; color:#c9d6ff}
.foot{max-width:1200px; margin:auto; padding:36px 22px; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:22px}
@media(max-width:900px){.foot{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.foot{grid-template-columns:1fr}}
.foot h4{color:#fff; margin-bottom:8px}
.foot a{display:block; color:#c9d6ff; text-decoration:none; margin:6px 0}
.copy{border-top:1px solid rgba(255,255,255,.1); text-align:center; padding:14px; font-size:.9rem}

/* Floating Elements */
.backtop{position:fixed; bottom:22px; left:22px; display:none; background:var(--primary); color:#fff; border:0; width:46px; height:46px; border-radius:50%; box-shadow:var(--shadow); cursor:pointer; z-index:999}
.wa{position:fixed; bottom:22px; right:22px; background:#25D366; color:#fff; width:54px; height:54px; border-radius:50%; display:grid; place-items:center; box-shadow:0 12px 30px rgba(0,0,0,.18); text-decoration:none; z-index:999}

/* Utility Classes */
.center{text-align:center}
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}
.mb-16{margin-bottom:16px}.mb-24{margin-bottom:24px}.mb-32{margin-bottom:32px}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* WordPress Specific */
.wp-block-group{margin:0}
.alignwide{width:100%; max-width:1200px}
.alignfull{width:100vw; margin-left:calc(50% - 50vw)}

/* Menu Items Styling */
.menu .menu-item {
    margin: 0;
}

.menu .menu-item-has-children > a::after {
    display: none;
}

.menu .cta-nav,
.menu .menu-item.cta-nav > a,
.menu .menu-item.cta-button > a {
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
}

/* RTL Support */
body.rtl{direction:rtl}
.rtl .menu{flex-direction:row-reverse}
.rtl .benefit{flex-direction:row-reverse}
.rtl .brand{flex-direction:row-reverse}

/* Admin Bar Compatibility */
body.admin-bar .hero{padding-top:32px}
@media screen and (max-width:782px){body.admin-bar .hero{padding-top:46px}}

/* Desktop Only Styles */
@media (min-width: 769px) {
    .menu a {
        position: relative;
    }
    
    .menu a::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .menu a:hover::before {
        width: 80%;
    }
    
    .menu .cta-nav::before,
    .menu .menu-item.cta-nav > a::before,
    .menu .menu-item.cta-button > a::before {
        display: none;
    }
    
    .menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-2);
        border-radius: 8px;
        margin-top: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .rtl .menu .sub-menu {
        right: 0;
        left: auto;
    }
    
    .menu .menu-item:hover .sub-menu {
        opacity: 1;
        visibility: visible;
    }
}

/* הערה: כל עיצוב המובייל נמצא בקובץ mobile-fix.css נפרד */