/*
Theme Name: לפטר את הקמפיינר
Theme URI: https://example.com/
Author: שי מור דיגיטל
Author URI: https://example.com/
Description: ערכת עיצוב לאתר "לפטר את הקמפיינר" — דף נחיתה ממוקד המרה בעמוד הבית, ועמודי תוכן פנימיים באותה שפת עיצוב. עברית מלאה (RTL), רספונסיבי, ללא תלות בתוספים.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lefater
Tags: rtl-language-support, one-column, custom-logo, custom-menu, full-width-template, landing-page
*/

:root{
    --dark:#111111;
    --gray:#f5f5f5;
    --white:#ffffff;
    --red:#d02f3c;        /* לבן על אדום: יחס ניגודיות 5.06:1 (ת"י 5568 דורש 4.5:1) */
    --red-dark:#a81f2b;   /* מצב ריחוף: 7.25:1 */
    --red-text:#c62d3a;   /* אדום לטקסט וקישורים על רקע בהיר: 5.02:1 */
    --green:#25D366;
    --green-dark:#1ebe57;
    --text-dark:#1a1a1a;
    --text-muted:#555555;
    --border:#e2e2e2;
  }
  *{box-sizing:border-box;}
  body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,Helvetica,sans-serif;
    direction:rtl;
    text-align:right;
    color:var(--text-dark);
    line-height:1.6;
    background:var(--white);
  }
  img{max-width:100%;display:block;}
  .wrap{max-width:900px;margin:0 auto;padding:0 20px;}
  section{padding:64px 0;}
  h1,h2,h3{margin:0 0 20px;line-height:1.3;}
  h1{font-size:clamp(28px,5vw,42px);font-weight:800;}
  h2{font-size:clamp(24px,4vw,32px);font-weight:800;}
  p{margin:0 0 16px;font-size:17px;}
  .center{text-align:center;}
  /* buttons */
  .btn{
    display:inline-block;
    padding:16px 36px;
    border-radius:8px;
    font-size:18px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    border:none;
    transition:transform .15s ease,box-shadow .15s ease;
  }
  .btn:hover{transform:translateY(-2px);}
  .btn-red{background:var(--red);color:#fff;box-shadow:0 6px 18px rgba(230,57,70,.35);}
  .btn-red:hover{background:var(--red-dark);}
  .btn-green{background:var(--green);color:#0b0b0d;box-shadow:0 6px 18px rgba(37,211,102,.35);}
  .btn-green:hover{background:var(--green-dark);color:#0b0b0d;}
  .btn-outline{background:transparent;color:#fff;border:2px solid #fff;}
  /* hero */
  .hero{
    position:relative;overflow:hidden;color:#fff;text-align:center;
    padding:88px 0 76px;
    background:
      radial-gradient(900px 460px at 50% -10%, rgba(230,57,70,.40), transparent 62%),
      radial-gradient(620px 380px at 14% 10%, rgba(255,209,58,.15), transparent 60%),
      radial-gradient(720px 460px at 88% 96%, rgba(230,57,70,.22), transparent 64%),
      linear-gradient(180deg,#15151a 0%,#0b0b0d 58%,#101013 100%);
  }
  /* רשת עדינה שנמוגה לשוליים — נותנת עומק בלי להסיח */
  .hero::before{
    content:"";position:absolute;inset:0;pointer-events:none;
    background-image:
      linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
    background-size:62px 62px;
    -webkit-mask-image:radial-gradient(circle at 50% 42%, #000 26%, transparent 76%);
    mask-image:radial-gradient(circle at 50% 42%, #000 26%, transparent 76%);
  }
  /* פס מבטא בתחתית ההירו */
  .hero::after{
    content:"";position:absolute;inset-inline:0;bottom:0;height:3px;
    background:linear-gradient(90deg, transparent, var(--red) 22%, #ffd13a 50%, var(--red) 78%, transparent);
  }
  .hero .wrap{position:relative;z-index:1;}
  .hero h1{text-shadow:0 2px 24px rgba(0,0,0,.45);}
  .hero .btn-red{box-shadow:0 10px 30px rgba(230,57,70,.45);}
  .hero .logo{max-width:280px;width:100%;margin:0 auto 30px;}
  .hero .logo-placeholder{
    width:160px;height:56px;margin:0 auto 28px;
    border:1px dashed #555;border-radius:6px;
    display:flex;align-items:center;justify-content:center;
    font-size:12px;color:#999;
  }
  .hero h1{color:#fff;}
  .hero .sub{font-size:19px;color:#dcdcdc;max-width:680px;margin:0 auto 32px;}
  .trust-bar{margin-top:28px;font-size:14px;color:#bbbbbb;}
  .trust-bar a{color:#fff;text-decoration:underline;font-weight:700;}
  /* pain section */
  .pain{background:var(--white);}
  .pain-list{list-style:none;padding:0;margin:0 0 24px;max-width:640px;margin-inline:auto;}
  .pain-list li{
    display:flex;gap:10px;align-items:flex-start;
    padding:14px 0;border-bottom:1px solid var(--border);
    font-size:17px;
  }
  .pain-list li .x{color:var(--red);font-weight:900;font-size:20px;line-height:1.4;}
  .pain-close{
    max-width:640px;margin:24px auto 0;padding:20px;
    background:var(--gray);border-radius:10px;font-weight:700;text-align:center;
  }
  /* offer section */
  .offer{background:var(--gray);}
  .offer-list{list-style:none;padding:0;margin:0 auto 28px;max-width:680px;}
  .offer-list li{
    display:flex;gap:10px;align-items:flex-start;
    padding:14px 0;font-size:17px;
  }
  .offer-list li .check{color:var(--green-dark);font-weight:900;font-size:20px;line-height:1.4;}
  .guarantee{
    max-width:680px;margin:0 auto;padding:20px;
    background:#fff;border:2px solid var(--green-dark);border-radius:10px;
    text-align:center;font-weight:700;
  }
  /* who-for section */
  .who-for{background:var(--white);}
  .cols{display:flex;gap:30px;flex-wrap:wrap;max-width:800px;margin:0 auto;}
  .col{flex:1 1 300px;padding:24px;border-radius:10px;}
  .col.yes{background:#f0faf3;border:1px solid #cdeedb;}
  .col.no{background:#fdf1f1;border:1px solid #f3cfd1;}
  .col h3{font-size:18px;}
  .col ul{list-style:none;padding:0;margin:0;}
  .col li{display:flex;gap:8px;align-items:flex-start;padding:8px 0;font-size:16px;}
  /* curriculum accordion */
  .curriculum{background:var(--gray);}
  .accordion-item{
    background:#fff;border-radius:10px;margin-bottom:12px;overflow:hidden;
    border:1px solid var(--border);
  }
  .accordion-heading{margin:0;font-size:inherit;font-weight:inherit;}
  .accordion-header{
    display:flex;justify-content:space-between;align-items:center;gap:12px;
    width:100%;padding:18px 20px;cursor:pointer;font-weight:700;font-size:17px;
    background:none;border:0;text-align:start;font-family:inherit;color:inherit;
    line-height:1.4;
  }
  .accordion-header .plus{font-size:22px;color:var(--red-text);transition:transform .2s ease;flex:0 0 auto;}
  .accordion-item.open .plus{transform:rotate(45deg);}
  .accordion-body{padding:0 20px;}
  .accordion-body p{padding-bottom:18px;margin:0;color:var(--text-muted);}
  .accordion-body[hidden]{display:none;}
  /* pricing */
  .pricing{background:var(--dark);color:#fff;text-align:center;}
  .pricing h2{color:#fff;}
  .price-compare{
    max-width:640px;margin:0 auto 28px;text-align:right;
    background:#1c1c1c;border-radius:10px;padding:24px 28px;
  }
  .price-compare p{color:#dcdcdc;margin-bottom:10px;}
  .price-compare .big{color:#fff;font-weight:800;font-size:20px;}
  /* instructor */
  .instructor{background:var(--white);}
  .instructor-wrap{max-width:720px;margin:0 auto;}
  .instructor-name{font-size:26px;font-weight:800;text-align:center;margin-bottom:4px;}
  .instructor-role{text-align:center;color:var(--text-muted);font-size:16px;margin-bottom:24px;}
  .stat-row{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:26px;}
  .stat{
    flex:1 1 190px;background:var(--gray);border:1px solid var(--border);
    border-radius:10px;padding:18px 12px;text-align:center;
  }
  .stat b{display:block;font-size:22px;color:var(--red);margin-bottom:4px;line-height:1.2;}
  .stat span{font-size:14px;color:var(--text-muted);}
  /* proof section */
  .proof{background:var(--white);}
  .proof-card{
    margin:0 auto 26px;max-width:860px;
    background:var(--gray);border:1px solid var(--border);border-radius:12px;
    padding:18px 18px 14px;
  }
  .proof-claim{
    display:flex;gap:10px;align-items:flex-start;
    font-size:17px;font-weight:700;margin-bottom:12px;line-height:1.45;
  }
  .proof-claim .check{color:var(--green-dark);font-weight:900;font-size:20px;line-height:1.3;}
  .proof-shot-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:8px;direction:ltr;}
  .proof-card img{
    width:100%;border-radius:8px;border:1px solid #d8d8d8;background:#fff;
  }
  .proof-shot-scroll img{min-width:640px;}
  .proof-card.narrow img{max-width:420px;margin:0 auto;}
  .proof-sub{font-size:14px;color:var(--text-muted);margin:10px 0 0;}
  .transparency{max-width:680px;margin:0 auto 28px;font-size:14px;color:var(--text-muted);text-align:center;font-style:italic;}
  /* faq */
  .faq{background:var(--gray);}
  /* form section */
  .lead-section{background:var(--white);}
  .lead-wrap{max-width:600px;margin:0 auto;}
  .lead-form{
    background:var(--gray);border-radius:12px;padding:28px;margin-top:20px;
  }
  .field{margin-bottom:16px;}
  .field label{display:block;font-weight:700;margin-bottom:6px;font-size:15px;}
  .field input[type="text"],
  .field input[type="tel"],
  .field input[type="email"]{
    width:100%;padding:12px 14px;border:1px solid #ccc;border-radius:8px;
    font-size:16px;font-family:inherit;
  }
  .checkbox-field{display:flex;align-items:flex-start;gap:8px;font-size:14px;margin-bottom:12px;}
  .checkbox-field input{margin-top:4px;}
  .checkbox-field a{color:var(--red-text);}
  .form-buttons{display:flex;flex-direction:column;gap:12px;margin-top:20px;}
  .form-buttons .btn{width:100%;text-align:center;}
  .form-note{font-size:13px;color:var(--text-muted);margin-top:10px;text-align:center;}
  /* מלכודת ספאם — מוסתרת בלי ליצור גלישה בפריסה (left שלילי שובר עמוד RTL) */
  .hp-field{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;}
  .form-status{
    margin:14px 0 0;text-align:center;font-size:15px;font-weight:700;
    min-height:22px;
  }
  .form-status.is-pending{color:var(--text-muted);}
  .form-status.is-success{color:#137a3a;}
  .form-status.is-error{color:var(--red-text);}
  .form-status:focus{outline:none;}
  .lead-form button[disabled]{opacity:.75;cursor:default;transform:none;}
  /* footer */
  footer{background:var(--dark);color:#aaa;text-align:center;padding:36px 0;font-size:14px;}
  footer a{color:#ccc;text-decoration:underline;margin:0 8px;}
  /* popup */
  .popup-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,.6);
    display:none;align-items:center;justify-content:center;
    z-index:9999;padding:16px;
  }
  .popup-overlay.show{display:flex;}
  .popup-overlay[hidden]{display:none!important;}
  .popup-box{
    background:#fff;border-radius:14px;max-width:440px;width:100%;
    padding:30px 26px;position:relative;text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,.3);
  }
  .popup-close{
    position:absolute;top:12px;left:14px;font-size:22px;color:#999;
    cursor:pointer;border:none;background:none;line-height:1;
  }
  .popup-box h2{font-size:22px;margin-bottom:10px;}
  .popup-sub{color:var(--red);font-weight:800;font-size:17px;margin-bottom:14px;}
  .popup-box p{font-size:15px;color:var(--text-muted);}
  .popup-box .bold-note{font-weight:700;color:var(--text-dark);}
  .popup-box .btn{width:100%;margin-top:16px;}
  @media(max-width:600px){
    section{padding:44px 0;}
    .proof-grid{grid-template-columns:1fr 1fr;}
  }

/* ==========================================================================
   כותרת האתר (מוצגת בעמודים פנימיים בלבד — עמוד הבית נשאר נקי להמרה)
   ========================================================================== */
.site-header{background:var(--dark);padding:12px 0;position:sticky;top:0;z-index:900;}
.admin-bar .site-header{top:32px;}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:18px;}
.site-brand{display:flex;align-items:center;gap:10px;text-decoration:none;}
.site-brand img{max-height:42px;width:auto;}
.site-brand .brand-text{color:#fff;font-weight:800;font-size:17px;}
.site-nav{display:flex;align-items:center;gap:20px;}
.nav-menu{display:flex;gap:20px;list-style:none;margin:0;padding:0;}
.nav-menu a{color:#cfcfcf;font-size:15px;text-decoration:none;}
.nav-menu a:hover,.nav-menu .current-menu-item a{color:#fff;}
.site-header .btn{padding:10px 20px;font-size:15px;}
.nav-toggle{display:none;background:none;border:1px solid #444;color:#fff;border-radius:6px;padding:7px 11px;font-size:16px;cursor:pointer;}

/* ==========================================================================
   עמודי תוכן פנימיים (תקנון, פרטיות, אודות וכל עמוד רגיל)
   ========================================================================== */
.page-hero{background:var(--dark);color:#fff;padding:54px 0 46px;text-align:center;}
.page-hero h1{color:#fff;margin:0;font-size:clamp(24px,4vw,34px);}
.page-hero .page-sub{color:#bdbdbd;margin:12px 0 0;font-size:16px;}
.entry{padding:52px 0;background:var(--white);}
.entry-content{max-width:760px;margin:0 auto;}
.entry-content h2{font-size:24px;margin:34px 0 14px;}
.entry-content h3{font-size:19px;margin:26px 0 10px;}
.entry-content ul,.entry-content ol{padding-inline-start:22px;margin:0 0 18px;}
.entry-content li{margin-bottom:8px;}
.entry-content img{border-radius:8px;margin:20px 0;}
.entry-content blockquote{margin:22px 0;padding:16px 20px;background:var(--gray);border-inline-start:4px solid var(--red);border-radius:8px;}
.entry-content a{color:var(--red-text);text-decoration:underline;}
.entry-content table{width:100%;border-collapse:collapse;margin:20px 0;}
.entry-content th,.entry-content td{border:1px solid var(--border);padding:10px 12px;text-align:start;}
.entry-content th{background:var(--gray);}

/* ==========================================================================
   בלוג: רשימת פוסטים ופוסט בודד
   ========================================================================== */
.post-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px;max-width:900px;margin:0 auto;}
.post-card{background:var(--gray);border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;}
.post-card img{width:100%;height:170px;object-fit:cover;}
.post-card .pc-body{padding:18px;flex:1;display:flex;flex-direction:column;}
.post-card h2{font-size:19px;margin:0 0 8px;}
.post-card h2 a{color:var(--text-dark);text-decoration:none;}
.post-card h2 a:hover{color:var(--red-text);}
.post-meta{font-size:13px;color:var(--text-muted);margin-bottom:10px;}
.post-card p{font-size:15px;color:var(--text-muted);margin:0 0 14px;}
.post-card .read-more{margin-top:auto;color:var(--red-text);font-weight:700;text-decoration:none;font-size:15px;}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:34px;flex-wrap:wrap;}
.pagination .page-numbers{padding:9px 14px;border:1px solid var(--border);border-radius:8px;text-decoration:none;color:var(--text-dark);background:#fff;}
.pagination .page-numbers.current{background:var(--red);color:#fff;border-color:var(--red);}

/* ==========================================================================
   404 וחיפוש
   ========================================================================== */
.notfound{text-align:center;max-width:560px;margin:0 auto;}
.notfound .big{font-size:70px;font-weight:800;color:var(--red-text);line-height:1;margin-bottom:10px;}
.search-form{display:flex;gap:10px;max-width:440px;margin:24px auto 0;}
.search-form input[type="search"]{flex:1;padding:12px 14px;border:1px solid #ccc;border-radius:8px;font-size:16px;font-family:inherit;}

/* ==========================================================================
   נגישות ועזרים
   ========================================================================== */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;}
.skip-link:focus{position:fixed;top:10px;inset-inline-start:10px;z-index:9999;background:#fff;color:#111;padding:10px 16px;border-radius:6px;width:auto;height:auto;clip:auto;}
.alignwide{max-width:100%;}

@media(max-width:780px){
  .nav-toggle{display:block;}
  .site-nav{position:absolute;inset-inline:0;top:100%;background:var(--dark);flex-direction:column;align-items:stretch;gap:0;padding:0 20px;max-height:0;overflow:hidden;transition:max-height .25s ease;}
  .site-nav.open{max-height:340px;padding:10px 20px 18px;}
  .site-header .wrap{position:relative;}
  .nav-menu{flex-direction:column;gap:0;}
  .nav-menu li{border-bottom:1px solid #262626;}
  .nav-menu a{display:block;padding:13px 0;}
  .site-header .btn{width:100%;text-align:center;margin-top:12px;}
}

  /* ==========================================================================
     נגישות — ת"י 5568 רמה AA
     ========================================================================== */

  /* סימון מיקוד גלוי בכל רקע: טבעת כהה פנימית + טבעת זהב חיצונית */
  :focus-visible{
    outline:3px solid #0b0b0d;
    outline-offset:2px;
    box-shadow:0 0 0 6px #ffd13a;
    border-radius:4px;
  }
  /* דפדפנים ישנים שאין בהם focus-visible */
  .no-focus-visible :focus{outline:3px solid #ffd13a;outline-offset:2px;}

  /* אזורי לחיצה מספיקים לאנשים עם מוגבלות מוטורית */
  .checkbox-field{padding:6px 0;}
  .checkbox-field input[type="checkbox"]{width:20px;height:20px;flex:0 0 auto;}
  .checkbox-field label{cursor:pointer;line-height:1.55;}
  .popup-close{width:44px;height:44px;display:flex;align-items:center;justify-content:center;}
  .nav-toggle{min-width:44px;min-height:44px;}

  /* כיבוד בקשת המשתמש להפחתת אנימציות (WCAG 2.3.3) */
  @media (prefers-reduced-motion: reduce){
    *,*::before,*::after{
      animation-duration:.001ms!important;
      animation-iteration-count:1!important;
      transition-duration:.001ms!important;
      scroll-behavior:auto!important;
    }
    .btn:hover{transform:none;}
  }

  /* גלילה רכה רק למי שלא ביקש הפחתת תנועה */
  @media (prefers-reduced-motion: no-preference){
    html{scroll-behavior:smooth;}
  }

  /* תמיכה במצב ניגודיות גבוהה של מערכת ההפעלה */
  @media (forced-colors: active){
    .btn{border:2px solid ButtonText;}
    .proof-card,.stat,.accordion-item{border:1px solid CanvasText;}
  }
