/* ==========================================================
   יש לי בעיות? | עמית אדרי — static site (Netlify)
   ========================================================== */
:root{
  --brown:#5B4D43;
  --cream:#FFF8F1;
  --drawer:#E0DAD3;
  --btn:rgba(184,148,86,.72);
  --btn-hover:rgba(184,148,86,.95);
  --active:#1A6AFF;
  --f-amatic:'Amatic SC',cursive;
  --f-heebo:'Heebo',sans-serif;
  --f-karantina:'Karantina',cursive;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;direction:rtl;font-family:var(--f-heebo);color:#000;background:#fff;line-height:1.4}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
p{margin:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- pill button ---------- */
.pill{display:inline-flex;align-items:center;justify-content:center;width:229px;height:53px;border-radius:300px;
  background:var(--btn);font-family:var(--f-amatic);font-weight:700;font-size:30px;color:#000;transition:background .2s ease}
.pill:hover{background:var(--btn-hover)}

/* ==========================================================
   HOME HEADER
   ========================================================== */
.home-header{position:relative;height:92px;background:var(--brown);display:flex;align-items:center;justify-content:center}
.home-header .brand{display:flex;align-items:center;gap:22px;font-family:var(--f-karantina);font-weight:700;font-size:42px;line-height:1}
.home-header .brand .sep{width:3px;height:48px;background:#000}
.cart-link{position:absolute;left:0;top:26px;width:46px;height:39px;display:block}
.cart-link svg{width:100%;height:100%}
.cart-link .count{position:absolute;top:-3px;left:12px;width:22px;text-align:center;font:400 15px/1 Arial,sans-serif;color:#000}
.burger{position:absolute;right:0;top:4px;width:54px;height:54px;border:0;background:transparent;cursor:pointer;padding:9px}
.burger span{display:block;height:2px;background:#000;margin:6px 0;opacity:.8}

/* drawer */
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.8);opacity:0;pointer-events:none;transition:opacity .3s;z-index:90}
.drawer{position:fixed;top:0;right:0;height:100%;width:568px;max-width:85vw;background:var(--drawer);transform:translateX(100%);transition:transform .35s ease;z-index:100;padding-top:64px;overflow:auto}
.drawer-open .drawer{transform:none}
.drawer-open .drawer-overlay{opacity:1;pointer-events:auto}
.drawer .close{position:absolute;top:24px;right:46px;width:36px;height:36px;border:0;background:transparent;cursor:pointer;font-size:0}
.drawer .close::before,.drawer .close::after{content:"";position:absolute;top:17px;left:6px;width:24px;height:1.5px;background:#000;transform:rotate(45deg)}
.drawer .close::after{transform:rotate(-45deg)}
.drawer nav{display:flex;flex-direction:column;align-items:center}
.drawer nav a{font-family:var(--f-amatic);font-weight:700;font-size:44px;line-height:77px;color:#000}
.drawer nav a:hover{color:var(--active)}

/* ==========================================================
   INNER HEADER (horizontal menu)
   ========================================================== */
.site-header{height:90px;background:var(--brown);display:flex;align-items:center}
.site-header nav{width:100%;display:flex;justify-content:space-around;padding:0 3%}
.site-header nav a{font-family:var(--f-amatic);font-weight:700;font-size:24px;color:#fff;transition:color .2s}
.site-header nav a:hover,.site-header nav a.active{color:var(--active)}
.site-header .burger{display:none}

/* ==========================================================
   HOME — HERO
   ========================================================== */
.hero{position:relative;height:843px;background:url(/images/paper-bg.jpg) center/cover no-repeat;text-align:center;overflow:hidden}
.hero h1{position:absolute;top:186px;left:0;right:0;margin:0;font-family:var(--f-amatic);font-weight:700;font-size:227px;line-height:295px}
.hero .sub{position:absolute;top:499px;left:0;right:0;font-family:var(--f-amatic);font-weight:400;font-size:91px;line-height:1.25}
.hero .ctas{position:absolute;top:667px;left:50%;transform:translateX(-50%);width:1205px;max-width:92%;display:flex;justify-content:space-between}

/* ==========================================================
   HOME — ABOUT THE BOOK
   ========================================================== */
.about-book{background:var(--cream);position:relative;height:1307px}
.about-book .inner{position:relative;max-width:1905px;height:100%;margin:0 auto}
.about-book .cover{position:absolute;left:70px;top:59px;width:873px;height:925px;object-fit:cover}
.about-book .text{position:absolute;right:36px;top:59px;width:914px;text-align:right}
.about-book h2{margin:0 0 26px;font-family:var(--f-heebo);font-weight:700;font-size:45px;line-height:45px}
.about-book .text p{font-weight:300;font-size:20px;line-height:32px}
.about-book .text p.b{font-weight:700}
.about-book .buy{position:absolute;left:382px;top:1194px}

/* ==========================================================
   HOME — QUOTES SLIDESHOW
   ========================================================== */
.quotes{position:relative;height:557px;background:var(--brown);color:#fff;overflow:hidden}
.quotes .slide{position:absolute;inset:0;opacity:0;transition:opacity .8s ease;pointer-events:none}
.quotes .slide.on{opacity:1;pointer-events:auto}
.quotes .q{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:1324px;max-width:84%;text-align:center;font-family:var(--f-amatic);font-weight:700;font-size:30px;line-height:48px}
.quotes .ch{position:absolute;left:0;right:0;top:517px;text-align:center;margin:0;font-family:var(--f-amatic);font-weight:400;font-size:30px;line-height:39px}
.quotes .arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;background:transparent;cursor:pointer;z-index:2;padding:8px}
.quotes .arrow svg{width:100%;height:100%;stroke:#fff;fill:none;stroke-width:2}
.quotes .prev{right:46px}
.quotes .next{left:46px}

/* ==========================================================
   HOME — TESTIMONIALS
   ========================================================== */
.testimonials{position:relative;height:542px;background:var(--cream);overflow:hidden}
.testimonials .cards{position:absolute;top:141px;left:50%;transform:translateX(-50%);display:flex;gap:24px}
.t-card{margin:0;width:449px;height:259px;background:var(--brown);border-radius:30px;color:#fff;text-align:center;padding:24px 25px;display:flex;flex-direction:column;align-items:center}
.t-card .qm{width:32px;height:32px;margin-bottom:8px}
.t-card blockquote{margin:0;font-family:var(--f-amatic);font-weight:400;font-size:24px;line-height:38.4px;flex:1;display:flex;align-items:center;justify-content:center}
.t-card cite{font-style:normal;font-family:var(--f-amatic);font-size:18px;line-height:28.8px}
.divider{position:absolute;left:0;right:0;bottom:0;transform:scaleX(-1);pointer-events:none}
.divider div{position:absolute;left:0;right:0;bottom:0;background-repeat:no-repeat;background-size:100% 100%;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 100 1920 200' preserveAspectRatio='none'%3E%3Cpath fill='%235B4D43' d='M1920 300v-4.067c-455.162 0-690.876-51.203-1082.65-129.288C490.044 97.423 0 100.013 0 100.013V300h1920z'/%3E%3C/svg%3E")}
.divider .l3{height:154px;opacity:.25}
.divider .l2{height:134px;opacity:.333}
.divider .l1{height:114px;opacity:.5}
.divider .l0{height:94px;opacity:1}

/* ==========================================================
   HOME — CONTACT
   ========================================================== */
.contact{position:relative;height:893px;background:#fff}
.contact h2{margin:0;padding-top:11px;text-align:center;font-family:var(--f-amatic);font-weight:700;font-size:60px;line-height:78px}
.contact .inner{position:relative;max-width:1905px;margin:0 auto;height:calc(100% - 89px)}
.socials{position:absolute;left:119px;top:30px;width:808px;height:655px}
.tile{position:absolute;width:261px;height:261px;border:5px solid var(--brown);border-radius:14px;display:flex;align-items:center;justify-content:center;background:#fff;transition:transform .2s}
.tile:hover{transform:scale(1.04)}
.tile img{object-fit:contain}
.tile.mail{left:0;top:0}.tile.mail img{width:180px}
.tile.insta{left:542px;top:0}.tile.insta img{width:170px}
.tile.tiktok{left:271px;top:197px}.tile.tiktok img{width:154px}
.tile.phone{left:0;top:394px}.tile.phone img{width:180px}
.tile.wa{left:547px;top:394px}.tile.wa img{width:156px}
.contact .form-wrap{position:absolute;right:119px;top:80px;width:803px}

/* ---------- Wix-like form ---------- */
.wform h3{margin:0 0 22px;text-align:center;font-family:var(--f-heebo);font-weight:500;font-size:22px}
.wform .row{display:flex;gap:24px;margin-bottom:20px}
.wform .field{flex:1;display:flex;flex-direction:column}
.wform label{font-size:14px;line-height:19.6px;margin-bottom:6px}
.wform input,.wform textarea{font:inherit;font-size:14px;border:0;border-bottom:1px solid #000;background:transparent;padding:8px 2px;outline:none;direction:rtl;border-radius:0}
.wform input:focus,.wform textarea:focus{border-bottom-width:2px}
.wform textarea{height:90px;resize:none}
.wform ::placeholder{color:#8a8a8a}
.wform .send{display:block;margin:28px auto 0;width:390px;max-width:100%;height:41px;border:1px solid #000;border-radius:100px;background:transparent;font:inherit;font-size:14px;cursor:pointer;transition:background .2s,color .2s}
.wform .send:hover{background:#000;color:#fff}
.wform .msg{text-align:center;margin-top:16px;font-size:15px;min-height:20px}
.hidden{display:none}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer{height:90px;display:flex;align-items:center;justify-content:center;background:#fff;font-size:14px;text-align:center;padding:0 16px}

/* ==========================================================
   ABOUT THE AUTHOR
   ========================================================== */
.author-page{display:flex;min-height:1030px}
.author-page .photo{flex:0 0 50%;order:2}
.author-page .photo img{width:100%;height:100%;object-fit:cover;object-position:52% 50%}
.author-page .text{flex:0 0 50%;order:1;padding:47px 46px 40px 46px;text-align:right}
.author-page h1{margin:0 0 7px;font-family:var(--f-amatic);font-weight:700;font-size:50px;line-height:65px;padding-right:13px}
.author-page .text p{font-size:18px;line-height:36px;padding:0 13px}
/* RTL: text column on the left, photo on the right in the original */
.author-page{flex-direction:row-reverse}

/* ==========================================================
   LEGAL PAGES (terms / privacy)
   ========================================================== */
.legal{max-width:1706px;margin:0 auto;padding:19px 3% 60px;text-align:right}
.legal h1{margin:0 0 37px;font-family:var(--f-amatic);font-weight:700;font-size:48px;line-height:62.4px}
.legal p{font-size:24px;line-height:48px}
.legal p.b{font-weight:700}
.legal p.gap{margin-top:48px}

/* ==========================================================
   FAQ
   ========================================================== */
.faq{max-width:1668px;margin:0 auto;padding:14px 3% 70px}
.faq h1{margin:0 0 30px;text-align:center;font-family:var(--f-amatic);font-weight:700;font-size:48px;line-height:62px}
.faq details{border-bottom:1px solid #000}
.faq details:first-of-type{border-top:0}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:12px 0;font-family:var(--f-amatic);font-weight:700;font-size:36px;line-height:1.4}
.faq summary::-webkit-details-marker{display:none}
.faq summary .chev{width:14px;height:14px;transition:transform .25s;flex:0 0 auto;margin-left:6px}
.faq details[open] summary .chev{transform:rotate(180deg)}
.faq .ans{padding:2px 0 60px;font-size:18px;line-height:31px}

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.contact-page{position:relative;max-width:1905px;margin:0 auto;min-height:675px;display:flex;justify-content:space-between;align-items:flex-start;padding:119px 119px 60px 139px}
.contact-page .form-wrap{width:803px;order:1}
.contact-page .book{order:2;width:707px;display:flex;justify-content:center;padding-top:11px}
.contact-page .book img{width:390px;height:478px;object-fit:cover}

/* ==========================================================
   PRODUCT PAGE
   ========================================================== */
.product{max-width:1720px;margin:0 auto;padding:90px 98px 120px}
.product .crumbs{display:flex;justify-content:space-between;font-size:13px;margin-bottom:34px;color:#000}
.product .crumbs a:hover{text-decoration:underline}
.product .grid{display:flex;gap:28px}
.product .gallery{flex:0 0 auto;display:flex;gap:10px;order:1}
.product .gallery .thumbs{order:1}
.product .gallery .thumbs img{width:50px;height:50px;object-fit:cover;border:1px solid #000}
.product .gallery .main{width:765px;height:765px;object-fit:cover;order:2}
.product .details{flex:1;order:2;max-width:654px}
.product h1{margin:0 0 8px;font-family:var(--f-heebo);font-weight:400;font-size:24px}
.product .price{font-size:18px;margin-bottom:6px}
.product .ship{font-size:13px;color:#444;margin-bottom:22px}
.product .ded-contact{margin-top:14px}
.product .ded-note{font-size:13px;color:#444;margin-bottom:10px}
.product .ded-row{display:flex;gap:16px}
.product .ded-row>div{flex:1}
.product .ded-row input{width:100%;border:1px solid #000;padding:8px;font:inherit;font-size:14px;direction:rtl}
@media (max-width:760px){.product .ded-row{flex-direction:column;gap:10px}}
.product label{display:block;font-size:13px;margin-bottom:8px}
.product textarea{width:100%;height:76px;border:1px solid #000;padding:8px;font:inherit;font-size:14px;resize:vertical;direction:rtl}
.product .counter{font-size:12px;color:#777;margin-top:4px;text-align:left}
.product .buy-now{display:block;width:100%;height:42px;border:0;border-radius:100px;background:#000;color:#fff;font:inherit;font-size:15px;cursor:pointer;margin-top:30px;transition:opacity .2s}
.product .buy-now:hover{opacity:.85}
.product .note{font-size:13px;color:#555;margin-top:14px;text-align:center}
.product .msg{text-align:center;margin-top:12px;font-size:14px;color:#444}

/* ==========================================================
   ACCESSIBILITY WIDGET
   ========================================================== */
.a11y-btn{position:fixed;left:16px;bottom:16px;width:56px;height:56px;border-radius:50%;background:#1A5DE0;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.35);cursor:pointer;z-index:200;padding:9px}
.a11y-btn svg{width:100%;height:100%;fill:#fff}
.a11y-panel{position:fixed;left:16px;bottom:84px;width:260px;background:#fff;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.25);padding:14px;z-index:200;display:none;font-family:Arial,sans-serif;direction:rtl}
.a11y-panel.open{display:block}
.a11y-panel h4{margin:0 0 10px;font-size:16px}
.a11y-panel button{display:block;width:100%;text-align:right;margin:4px 0;padding:8px 10px;border:1px solid #ccc;border-radius:8px;background:#f6f6f6;font-size:14px;cursor:pointer}
.a11y-panel button[aria-pressed="true"]{background:#1A5DE0;color:#fff;border-color:#1A5DE0}
html.a11y-contrast body{filter:contrast(1.35)}
html.a11y-gray body{filter:grayscale(1)}
html.a11y-contrast.a11y-gray body{filter:grayscale(1) contrast(1.35)}
html.a11y-links a{text-decoration:underline !important;outline:2px dashed #1A5DE0;outline-offset:2px}
html.a11y-font *{font-family:Arial,sans-serif !important}
html.a11y-big body{zoom:1.15}
html.a11y-nomotion *{transition:none !important;animation:none !important}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width:1600px){
  .about-book .cover{width:46vw;height:auto;aspect-ratio:873/925}
  .about-book .text{width:48vw}
  .about-book .buy{left:calc(70px + 23vw - 114px)}
  .testimonials .cards{transform:translateX(-50%) scale(.9)}
}
@media (max-width:1300px){
  .hero h1{font-size:170px;line-height:220px;top:200px}
  .hero .sub{font-size:68px;top:450px}
  .about-book{height:auto;padding:40px 4% 60px}
  .about-book .inner{display:flex;flex-direction:column;align-items:center;gap:30px;height:auto}
  .about-book .cover,.about-book .text,.about-book .buy{position:static;width:100%;max-width:873px}
  .about-book .cover{order:2}
  .about-book .text{order:1}
  .about-book .buy{order:3;width:229px}
  .testimonials{height:auto;padding:60px 4% 190px}
  .testimonials .cards{position:static;transform:none;flex-wrap:wrap;justify-content:center}
  .contact{height:auto;padding-bottom:40px}
  .contact .inner{height:auto;display:flex;flex-direction:column;align-items:center;gap:40px;padding:30px 4% 0}
  .socials,.contact .form-wrap{position:relative;left:auto;right:auto;top:auto}
  .contact .form-wrap{width:100%;max-width:803px;order:1}
  .socials{order:2;transform:scale(.8);transform-origin:top center;margin-bottom:-130px}
  .contact-page{flex-direction:column;align-items:center;padding:50px 5%;gap:40px}
  .contact-page .form-wrap{width:100%;max-width:803px}
  .contact-page .book{width:auto}
  .product{padding:50px 5% 80px}
  .product .grid{flex-direction:column}
  .product .gallery{width:100%}
  .product .gallery .thumbs{display:none}
  .product .gallery .main{width:100%;height:auto;aspect-ratio:1}
  .product .details{max-width:none}
}
@media (max-width:900px){
  .site-header{position:relative;justify-content:center}
  .site-header .burger{display:block;top:18px}
  .site-header .burger span{background:#fff}
  .site-header nav{display:none}
  .site-header .mobile-title{font-family:var(--f-karantina);font-weight:700;font-size:34px;color:#000}
  .author-page{flex-direction:column}
  .author-page .photo,.author-page .text{flex:none;width:100%}
  .author-page .photo img{height:auto;aspect-ratio:747/765}
  .author-page .text{padding:30px 20px}
  .legal p{font-size:18px;line-height:34px}
  .legal p.gap{margin-top:34px}
  .faq summary{font-size:28px}
}
@media (min-width:901px){.site-header .mobile-title{display:none}}
@media (max-width:760px){
  .a11y-btn{width:44px;height:44px;left:10px;bottom:10px;padding:7px}
  .a11y-panel{left:10px;bottom:62px}
  .home-header{height:72px}
  .home-header .brand{font-size:30px;gap:14px}
  .home-header .brand .sep{height:34px}
  .cart-link{top:18px}
  .burger{top:9px}
  .hero{height:620px}
  .hero h1{font-size:96px;line-height:120px;top:120px}
  .hero .sub{font-size:44px;top:270px;padding:0 12px}
  .hero .ctas{top:420px;flex-direction:column;align-items:center;gap:14px;width:100%}
  .hero .pill{width:250px}
  .about-book h2{font-size:36px}
  .about-book .text p{font-size:17px;line-height:29px}
  .quotes{height:520px}
  .quotes .q{font-size:24px;line-height:36px;max-width:76%}
  .quotes .ch{top:auto;bottom:24px;font-size:24px}
  .quotes .prev{right:6px}.quotes .next{left:6px}
  .t-card{width:100%;max-width:449px;height:auto;min-height:220px}
  .contact h2{font-size:42px;line-height:56px;padding:12px 10px 0}
  .socials{transform:scale(.42);margin-bottom:-370px;margin-top:-10px}
  .wform .row{flex-direction:column;gap:18px}
  .legal h1,.faq h1{font-size:40px;line-height:50px}
  .contact-page .book img{width:300px;height:368px}
}
