/*
Theme Name: לדרמן פרויקטים
Theme URI: https://lederman.example
Author: Lederman Projects
Description: ערכת עיצוב ייעודית להצגת פרויקטי נדל"ן — נשלטת במלואה מלוח הבקרה (סוג תוכן "פרויקט" + שדות ACF). ללא בנאי דפים.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lederman
*/

/* =========================================================
   לדרמן פרויקטים — תבנית אתר פרויקטים (RTL)
   שפת עיצוב: נייבי + זהב/חרדל + לבן. Heebo bold.
   עיצוב אחד, נשלט מ-data.js.
   ========================================================= */

:root{
  --navy:      #223a5e;   /* כותרות / לוגו */
  --navy-2:    #2b4a72;   /* כפתורים */
  --navy-dark: #1a2c47;
  --gold:      #c6921a;   /* אקסנט / CTA */
  --gold-dark: #a87910;
  --ink:       #2a2a2a;
  --muted:     #6b7280;
  --bg:        #ffffff;
  --section:   #f4f4f4;   /* רקע סקשנים אפורים */
  --line:      #e6e6e6;
  --ok:        #2e7d5b;
  --shadow-sm: 0 2px 10px rgba(34,58,94,.07);
  --shadow-md: 0 14px 34px rgba(34,58,94,.12);
  --radius:    10px;
  --radius-sm: 7px;
  --maxw:      1180px;
  --font: "Heebo", "Segoe UI", system-ui, sans-serif;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  direction:rtl;
  -webkit-font-smoothing:antialiased;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font); font-weight:800; line-height:1.2; color:var(--navy); }

.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:24px; }
.section{ padding-block:80px; }
.section.alt{ background:var(--section); }
.section-head{ text-align:center; max-width:640px; margin:0 auto 50px; }
.section-head h2{ font-size:clamp(2rem,4vw,3rem); font-weight:900; }
.section-head p{ color:var(--muted); margin-top:12px; font-size:1.15rem; }
.section-head .line{ width:64px; height:4px; background:var(--gold); border-radius:2px; margin:18px auto 0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:15px 30px; border-radius:var(--radius-sm); font-weight:700; font-size:1.05rem;
  cursor:pointer; border:2px solid transparent; transition:.2s ease; font-family:var(--font);
}
.btn-gold{ background:var(--gold); color:#fff; }
.btn-gold:hover{ background:var(--gold-dark); transform:translateY(-2px); }
.btn-navy{ background:var(--navy-2); color:#fff; }
.btn-navy:hover{ background:var(--navy-dark); transform:translateY(-2px); }
.btn-outline{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:#fff; }

/* ---------- Header ---------- */
.site-header{
  position:fixed; inset-block-start:0; inset-inline:0; z-index:100;
  transition:.3s ease; padding-block:14px; background:rgba(255,255,255,.55);
}
.site-header.solid{ background:#fff; box-shadow:var(--shadow-sm); padding-block:8px; }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-direction:row-reverse; }
.nav-links{ display:flex; gap:28px; align-items:center; }
.nav-links a{ color:var(--navy); font-weight:600; font-size:1.02rem; transition:.2s; }
.nav-links a:hover{ color:var(--gold); }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; }

/* ---------- Logo ---------- */
.brand{ display:flex; align-items:center; gap:10px; }
.brand .logo-ico{ flex:none; }
.brand .txt{ line-height:1; text-align:start; }
.brand .txt .l1{ font-weight:900; font-size:1.35rem; color:var(--navy); letter-spacing:-.01em; }
.brand .txt .l2{ font-weight:800; font-size:1rem; color:var(--gold); }
.brand .txt .tag{ display:block; font-size:.62rem; color:var(--muted); font-weight:600; margin-top:2px; letter-spacing:.02em; }

/* ---------- Hero ---------- */
.hero{ position:relative; min-height:100vh; display:flex; align-items:center; color:#fff; overflow:hidden; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; }
.hero-bg::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(270deg, rgba(20,32,52,.72) 0%, rgba(20,32,52,.35) 45%, rgba(20,32,52,.05) 100%); }
.hero-inner{ position:relative; z-index:2; margin-inline-start:auto; max-width:620px; text-align:start; padding-block:120px; }
.hero h1{ color:#fff; font-size:clamp(2.6rem,6vw,5rem); font-weight:900; line-height:1.05; }
.hero .sub{ font-size:clamp(1.3rem,2.4vw,1.9rem); color:#f0f0f0; font-weight:600; margin-block:18px 34px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-cta .btn{ min-width:220px; }

/* ---------- Stats row ---------- */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
.stat{ text-align:center; }
.stat .ico{ color:var(--navy); display:flex; justify-content:center; margin-bottom:14px; }
.stat .big{ font-size:2rem; font-weight:900; color:var(--navy); }
.stat h4{ font-size:1.2rem; font-weight:800; margin-bottom:6px; }
.stat p{ color:var(--muted); font-size:.98rem; }

/* ---------- Projects grid ---------- */
.filters{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:40px; }
.chip{ padding:9px 22px; border-radius:999px; border:2px solid var(--line); background:#fff; cursor:pointer;
  font-weight:700; font-size:.98rem; color:var(--muted); transition:.2s; font-family:var(--font); }
.chip:hover{ border-color:var(--gold); color:var(--gold); }
.chip.active{ background:var(--navy); color:#fff; border-color:var(--navy); }

.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:30px; }
.card{ background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm);
  border:1px solid var(--line); transition:.25s ease; display:flex; flex-direction:column; }
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.card-media{ position:relative; aspect-ratio:4/3; overflow:hidden; }
.card-media img{ width:100%; height:100%; object-fit:cover; transition:.5s ease; }
.card:hover .card-media img{ transform:scale(1.06); }
.badge{ position:absolute; inset-block-start:14px; inset-inline-end:14px; padding:6px 15px; border-radius:6px;
  font-size:.82rem; font-weight:800; background:#fff; color:var(--navy); }
.badge.selling{ background:var(--ok); color:#fff; }
.badge.presale{ background:var(--gold); color:#fff; }
.badge.soon{ background:var(--navy); color:#fff; }
.card-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.card-loc{ display:flex; align-items:center; gap:6px; color:var(--gold); font-weight:800; font-size:.92rem; margin-bottom:8px; }
.card h3{ font-size:1.5rem; font-weight:900; margin-bottom:6px; }
.card .tagline{ color:var(--muted); font-size:.98rem; margin-bottom:18px; }
.card-specs{ display:flex; gap:22px; padding-block:16px; border-block-start:1px solid var(--line); margin-block-start:auto; }
.card-specs .s{ font-size:.85rem; color:var(--muted); }
.card-specs .s b{ display:block; font-size:1.2rem; color:var(--navy); font-weight:900; }
.card-foot{ display:flex; align-items:center; justify-content:space-between; padding-block-start:16px; }
.card-price{ font-size:1.15rem; color:var(--navy); font-weight:900; }
.card-price small{ font-weight:500; color:var(--muted); font-size:.8rem; }
.card-link{ color:var(--gold); font-weight:800; display:inline-flex; align-items:center; gap:6px; }
.card:hover .card-link svg{ transform:translateX(-4px); }
.card-link svg{ transition:.2s; }

/* ---------- About ---------- */
.about{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.about-img{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md); }
.about-img img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }
.about .eyebrow{ color:var(--muted); font-weight:700; font-size:1.05rem; }
.about h2{ font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:900; margin-block:6px 18px; }
.about > div > p{ color:var(--muted); font-size:1.08rem; margin-bottom:28px; }
.about-feats{ display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.about-feat{ text-align:center; }
.about-feat .ico{ color:var(--navy); display:flex; justify-content:center; margin-bottom:10px; }
.about-feat h4{ font-size:1.1rem; font-weight:800; margin-bottom:5px; }
.about-feat p{ color:var(--muted); font-size:.92rem; margin:0; }

/* ---------- Testimonial band ---------- */
.band{ background:var(--gold); color:#fff; text-align:center; padding-block:66px; }
.band .quote{ font-size:clamp(1.8rem,3.6vw,2.6rem); font-weight:900; color:#fff; margin-bottom:14px; }
.band p{ color:#fff; opacity:.95; max-width:640px; margin:0 auto; font-size:1.15rem; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.1fr .8fr; gap:36px; align-items:center; }
.contact-img{ border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md); }
.contact-img img{ width:100%; height:100%; object-fit:cover; aspect-ratio:3/4; }
.contact-form{ display:grid; gap:14px; }
.contact-form input, .contact-form textarea{ width:100%; padding:15px 16px; border:1px solid var(--line);
  border-radius:var(--radius-sm); font-family:var(--font); font-size:1rem; background:#fff; transition:.2s; }
.contact-form input:focus, .contact-form textarea:focus{ outline:none; border-color:var(--gold); }
.contact-info h2{ font-size:2rem; font-weight:900; margin-bottom:22px; }
.contact-info .row{ display:flex; gap:14px; align-items:flex-start; margin-bottom:20px; }
.contact-info .ico{ flex:none; width:44px; height:44px; border-radius:50%; background:var(--navy); color:#fff;
  display:grid; place-items:center; }
.contact-info .row b{ display:block; color:var(--navy); font-weight:800; }
.contact-info .row span{ color:var(--muted); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-dark); color:#c9d2df; padding-block:52px 26px; }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr; gap:40px; margin-bottom:36px; }
.site-footer h4{ color:#fff; margin-bottom:14px; font-size:1.05rem; }
.site-footer p{ color:#aeb9c9; }
.site-footer a{ color:#c9d2df; display:block; margin-bottom:8px; }
.site-footer a:hover{ color:var(--gold); }
.footer-bottom{ border-block-start:1px solid rgba(255,255,255,.12); padding-block-start:22px; font-size:.85rem;
  color:#8895a6; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* =========================================================
   עמוד פרויקט בודד
   ========================================================= */
.p-hero{ position:relative; height:64vh; min-height:440px; color:#fff; display:flex; align-items:flex-end; overflow:hidden; }
.p-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.p-hero::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(20,32,52,.92), rgba(20,32,52,.15) 60%, rgba(20,32,52,.4)); }
.p-hero-inner{ position:relative; z-index:2; padding-block-end:44px; }
.p-hero .p-loc{ color:#fff; font-weight:800; margin-bottom:10px; display:flex; gap:8px; align-items:center; }
.p-hero .p-loc .badge{ position:static; }
.p-hero h1{ color:#fff; font-size:clamp(2.2rem,5vw,3.6rem); font-weight:900; }
.p-hero .p-tag{ font-size:1.2rem; color:#eef1f5; margin-top:12px; max-width:600px; }

.p-layout{ display:grid; grid-template-columns:1fr 350px; gap:48px; padding-block:60px; align-items:start; }
.p-main > section{ margin-bottom:50px; }
.p-main h2{ font-size:1.7rem; font-weight:900; margin-bottom:18px; padding-block-end:12px; border-block-end:3px solid var(--gold); display:inline-block; }
.p-main p{ color:#3d3d40; font-size:1.08rem; margin-bottom:14px; }

.spec-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:18px; }
.spec{ background:var(--section); border:1px solid var(--line); border-radius:var(--radius-sm); padding:20px; text-align:center; }
.spec .ico{ color:var(--gold); margin-bottom:10px; display:flex; justify-content:center; }
.spec .v{ font-size:1.4rem; font-weight:900; color:var(--navy); }
.spec .l{ font-size:.9rem; color:var(--muted); }

.hl-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:22px; }
.hl{ display:flex; gap:14px; align-items:flex-start; }
.hl .ico{ flex:none; width:48px; height:48px; border-radius:10px; background:var(--section); color:var(--gold); display:grid; place-items:center; }
.hl h4{ font-size:1.1rem; font-weight:800; margin-bottom:4px; }
.hl p{ font-size:.96rem; color:var(--muted); margin:0; }

.feat{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:8px 24px; }
.feat li{ list-style:none; display:flex; gap:10px; align-items:center; color:#3d3d40; padding-block:6px; font-weight:500; }
.feat li svg{ color:var(--gold); flex:none; }

.pay{ display:grid; gap:14px; }
.pay-row{ display:flex; gap:18px; align-items:center; background:var(--section); border-radius:var(--radius-sm); padding:18px 22px; }
.pay-row .step{ font-size:1.6rem; font-weight:900; color:var(--gold); flex:none; width:58px; }
.pay-row .txt b{ color:var(--navy); }

/* apartment mix table */
.mix-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius-sm); }
.mix-table{ width:100%; border-collapse:collapse; min-width:560px; }
.mix-table th{ background:var(--navy); color:#fff; font-weight:800; font-size:.95rem; padding:14px 16px; text-align:start; white-space:nowrap; }
.mix-table td{ padding:13px 16px; border-block-start:1px solid var(--line); color:#3d3d40; font-size:.98rem; }
.mix-table tr:nth-child(even) td{ background:var(--section); }
.mix-table .price{ font-weight:900; color:var(--navy); white-space:nowrap; }
.mix-table .tag-last{ display:inline-block; margin-inline-start:6px; background:var(--gold); color:#fff; font-size:.72rem; font-weight:800; padding:2px 8px; border-radius:5px; }

/* note callout */
.note{ display:flex; gap:12px; align-items:flex-start; background:#fff6e2; border:1px solid #e9d29a;
  border-inline-start:4px solid var(--gold); border-radius:var(--radius-sm); padding:16px 18px; margin-bottom:26px; }
.note svg{ color:var(--gold-dark); flex:none; }
.note b{ color:var(--navy); }

/* discretion / meta line under hero */
.p-meta{ display:flex; gap:22px; flex-wrap:wrap; color:var(--muted); font-size:.98rem; margin-block:6px 0; }
.p-meta b{ color:var(--navy); }

.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.gallery button{ border:none; padding:0; cursor:pointer; border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:1; background:none; }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:.4s; }
.gallery button:hover img{ transform:scale(1.07); }

.p-aside{ position:sticky; inset-block-start:90px; }
.lead-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-md); overflow:hidden; }
.lead-card .top{ background:var(--navy); color:#fff; padding:22px 24px; }
.lead-card .top .price{ font-size:1.9rem; font-weight:900; }
.lead-card .top .price small{ font-weight:500; font-size:.85rem; color:#cdd6e2; display:block; }
.lead-card form{ padding:24px; display:grid; gap:12px; }
.lead-card label{ font-size:.85rem; font-weight:800; color:var(--navy); }
.lead-card input, .lead-card textarea{ width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:7px;
  font-family:var(--font); font-size:1rem; background:#fafafa; transition:.2s; }
.lead-card input:focus, .lead-card textarea:focus{ outline:none; border-color:var(--gold); background:#fff; }
.lead-card .agent{ display:flex; gap:12px; align-items:center; padding:18px 24px; border-block-start:1px solid var(--line); }
.lead-card .agent .av{ width:48px; height:48px; border-radius:50%; background:var(--gold); color:#fff; display:grid; place-items:center; font-weight:900; font-size:1.2rem; }
.lead-card .agent b{ display:block; color:var(--navy); }
.lead-card .agent span{ font-size:.85rem; color:var(--muted); }

dialog.lightbox{ border:none; padding:0; background:transparent; max-width:92vw; max-height:92vh; }
dialog.lightbox::backdrop{ background:rgba(20,32,52,.92); backdrop-filter:blur(4px); }
dialog.lightbox img{ max-width:92vw; max-height:86vh; border-radius:10px; object-fit:contain; }
dialog.lightbox .close{ position:absolute; inset-block-start:-44px; inset-inline-start:0; background:none; border:none; color:#fff; font-size:2rem; cursor:pointer; }

.breadcrumb{ padding-block:14px; color:var(--muted); font-size:.9rem; }
.breadcrumb a:hover{ color:var(--gold); }

/* ---------- Reveal ---------- */
.reveal{ opacity:0; transform:translateY(20px); transition:.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .stats{ grid-template-columns:repeat(2,1fr); gap:36px 20px; }
  .about{ grid-template-columns:1fr; gap:32px; }
  .contact-grid{ grid-template-columns:1fr; }
  .contact-img{ display:none; }
  .p-layout{ grid-template-columns:1fr; }
  .p-aside{ position:static; }
  .footer-grid{ grid-template-columns:1fr; gap:24px; }
  .gallery{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  .nav-links{ position:fixed; inset-block-start:0; inset-inline-end:0; height:100vh; width:76%;
    background:var(--navy); flex-direction:column; justify-content:center; gap:26px;
    transform:translateX(100%); transition:.3s; z-index:200; }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ color:#fff !important; font-size:1.3rem; }
  .nav-toggle{ display:block; z-index:210; position:relative; }
  .nav-toggle span{ display:block; width:26px; height:3px; background:var(--navy); border-radius:2px; margin:5px 0; transition:.3s; }
  .about-feats{ grid-template-columns:1fr; }
  .section{ padding-block:56px; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
}


/* ===== שורטקודים (תמהיל/מסמכים/סרטונים) ===== */
/* ============================================================
   עיצוב השורטקודים — לדרמן פרויקטים
   הדבק פעם אחת: Elementor ← Site Settings ← Custom CSS
   (או Appearance ← Customize ← Additional CSS)
   הצבעים תואמים למותג: נייבי #223a5e + זהב #c6921a
   ============================================================ */

/* ---------- טבלת תמהיל דירות ---------- */
.pr-mixwrap{ overflow-x:auto; border:1px solid #e6e6e6; border-radius:10px; }
.pr-mix{ width:100%; border-collapse:collapse; min-width:560px; font-family:inherit; }
.pr-mix th{ background:#223a5e; color:#fff; font-weight:800; font-size:.95rem;
  padding:14px 16px; text-align:right; white-space:nowrap; }
.pr-mix td{ padding:13px 16px; border-top:1px solid #eee; color:#3d3d40; font-size:.98rem; }
.pr-mix tr:nth-child(even) td{ background:#f6f7f9; }
.pr-mix .pr-price{ font-weight:900; color:#223a5e; white-space:nowrap; }
.pr-last{ display:inline-block; margin-right:6px; background:#c6921a; color:#fff;
  font-size:.72rem; font-weight:800; padding:2px 8px; border-radius:5px; }
.pr-mixnote{ color:#6b7280; font-size:.9rem; margin-top:12px; }

/* ---------- מסמכים להורדה ---------- */
.pr-docs{ list-style:none; display:grid; gap:10px; margin:0; padding:0;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
.pr-doc a{ display:flex; gap:14px; align-items:center; padding:14px 16px;
  border:1px solid #e6e6e6; border-radius:10px; background:#fff;
  text-decoration:none; transition:.2s; }
.pr-doc a:hover{ border-color:#c6921a; box-shadow:0 8px 20px rgba(34,58,94,.10); transform:translateY(-2px); }
.pr-doc-ic{ width:44px; height:44px; flex:none; border-radius:9px;
  background:#223a5e; color:#fff; display:grid; place-items:center; }
.pr-doc-name{ display:block; font-weight:800; color:#223a5e; line-height:1.3; }
.pr-doc-sub{ font-size:.8rem; color:#6b7280; letter-spacing:.02em; }

/* ---------- סרטוני הפרויקט ---------- */
.pr-videos{ display:grid; gap:24px; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); }
.pr-video-title{ font-weight:800; color:#223a5e; margin-bottom:10px; font-size:1.1rem; }
.pr-video-frame{ position:relative; aspect-ratio:16/9; border-radius:12px;
  overflow:hidden; background:#000; box-shadow:0 10px 26px rgba(34,58,94,.12); }
.pr-video-frame iframe,
.pr-video-frame video,
.pr-video-frame embed{ position:absolute; inset:0; width:100% !important; height:100% !important; border:0; }


/* ============ התאמות וורדפרס ============ */
.wp-admin-bar-tweak{ }
body.admin-bar .site-header{ top:32px; }
@media (max-width:782px){ body.admin-bar .site-header{ top:46px; } }
.p-main .description-wysiwyg p{ color:#3d3d40; font-size:1.08rem; margin-bottom:14px; }
.p-main .description-wysiwyg ul{ margin:10px 24px 16px; color:#3d3d40; }
