/*
Theme Name: סיפור משפחתי
Theme URI: https://family-sounds.com
Author: רשת עושים היסטוריה
Description: תבנית לאתר סיפור משפחתי, לפי העיצוב של מיכל. RTL, גופנים Karantina ו-Assistant.
Version: 1.0
Requires PHP: 7.4
Text Domain: sipur
*/

:root{
  --plum:#6B3F55; --plum-dark:#4E2D3E; --plum-soft:#F1E8EE; --plum-light:#B98AA2;
  --cream:#F5EFE8; --ink:#1D1D1B; --muted:#5A5650; --white:#FFFFFF; --line:#E4DCCB;
  --stone1:#CFC6BA; --stone2:#B9AFA3; --stone3:#DDD5CA; --stone4:#C4BAAE;
  --display:Karantina,Assistant,sans-serif; --body:Assistant,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6;direction:rtl}
img{max-width:100%;height:auto;display:block}
a{color:var(--plum)}a:hover{color:var(--plum-dark)}
h1,h2,h3,.display{font-family:var(--display);font-weight:700;line-height:1;margin:0}
p{margin:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
.wrap-narrow{max-width:1000px;margin:0 auto;padding:0 32px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip-link:focus{position:fixed;top:8px;right:8px;width:auto;height:auto;clip:auto;background:#fff;padding:8px 16px;z-index:999}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:10px;text-decoration:none;padding:14px 30px;border-radius:999px;font-weight:700;font-size:17px;border:1px solid transparent;cursor:pointer;font-family:var(--body);line-height:1.2}
.btn-plum{background:var(--plum);color:#fff}.btn-plum:hover{background:var(--plum-dark);color:#fff}
.btn-white{background:#fff;color:var(--ink);border-color:var(--line)}.btn-white:hover{color:var(--plum)}
.btn-white-plum{background:#fff;color:var(--plum)}
.btn-sm{padding:12px 24px;font-size:16px}
.link-arrow{color:var(--plum);font-weight:700;text-decoration:none}
.pill{align-self:flex-start;display:inline-block;background:var(--plum-soft);color:var(--plum);font-size:13px;font-weight:600;padding:4px 12px;border-radius:999px}
.pill-solid{background:var(--plum);color:#fff;font-weight:700}

/* header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header .wrap{padding-top:14px;padding-bottom:14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;flex-direction:column;text-decoration:none;color:var(--ink)}
.brand img{height:54px;width:auto}
.brand-name{font-family:var(--display);font-weight:700;font-size:34px;line-height:1}
.brand-sub{font-size:13px;color:var(--muted)}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:24px;font-size:16px}
.main-nav a{color:var(--ink);text-decoration:none}
.main-nav a:hover,.main-nav .current-menu-item a,.main-nav a.is-current{color:var(--plum);font-weight:700}
.header-actions{display:flex;align-items:center;gap:12px}
.icon-btn{width:44px;height:44px;border-radius:999px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--plum)}
.nav-toggle{display:none;background:none;border:1px solid var(--line);border-radius:999px;width:44px;height:44px;cursor:pointer;color:var(--ink)}
@media (max-width:900px){
  .nav-toggle{display:flex;align-items:center;justify-content:center}
  .main-nav{order:5;width:100%;display:none}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column;gap:14px;padding:8px 0}
  .header-actions .btn{display:none}
}

/* sections */
.sec{padding:96px 0}
.sec-white{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sec-dark{background:var(--ink);color:var(--cream)}
.sec-plum{background:var(--plum);color:#fff}
.sec-head{display:flex;flex-direction:column;gap:10px;margin-bottom:40px}
.sec-head h2,.h2{font-size:64px}
.sec-head p{font-size:20px;color:var(--muted)}
.sec-head-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:40px}
.grid{display:grid;gap:32px}

/* hero */
.hero{padding:72px 0 80px}
.hero .wrap{display:flex;flex-wrap:wrap;gap:56px;align-items:center}
.hero-text{flex:1 1 460px;display:flex;flex-direction:column;gap:18px}
.hero h1{font-size:92px;line-height:.92}
.hero .lead{font-size:24px;font-weight:600}
.hero .quote-line{font-size:18px;color:var(--muted);border-right:3px solid var(--plum);padding-right:14px}
.hero .body{font-size:18px;line-height:1.65}
.hero .actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.hero .fine{font-size:14px;color:var(--muted);margin-top:4px}
.hero-media{flex:1 1 440px}
.hero-media img,.hero-media .ph{width:100%;border-radius:18px}
.ph{background:var(--stone2);display:flex;align-items:center;justify-content:center;color:rgba(29,29,27,.5);font-size:15px}
.hero-media .ph{aspect-ratio:4/3}

/* listen strip */
.listen .wrap{padding-top:40px;padding-bottom:40px;display:flex;flex-wrap:wrap;align-items:center;gap:28px}
.play-btn{width:72px;height:72px;border-radius:999px;border:none;background:var(--plum);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
.play-btn svg{transform:scaleX(-1)}
.play-btn.playing .i-play{display:none}.play-btn:not(.playing) .i-pause{display:none}
.listen-title{font-family:var(--display);font-weight:700;font-size:38px;line-height:1}
.listen-sub{font-size:14px;color:var(--stone1)}
.wave{flex:1 1 300px;display:flex;align-items:center;gap:4px;height:56px;cursor:pointer}
.wave span{flex:1 1 0;border-radius:3px;background:var(--muted)}
.wave span.on{background:var(--plum-light)}
.time{font-size:15px;color:var(--stone1);direction:ltr}

/* steps */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
.steps li,.card-box{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px 22px;display:flex;flex-direction:column;gap:10px}
.steps .n{font-family:var(--display);font-weight:700;font-size:52px;line-height:1;color:var(--plum)}
.steps .t{font-family:var(--display);font-weight:700;font-size:30px;line-height:1}
.steps .x{font-size:15px;line-height:1.6}

/* reasons */
.reasons .wrap{display:flex;flex-wrap:wrap;gap:56px}
.reasons-intro{flex:1 1 340px;display:flex;flex-direction:column;gap:16px}
.reasons-intro .accent{font-size:22px;font-weight:700;color:var(--plum)}
.reasons-intro p{font-size:18px;line-height:1.65}
.reasons-grid{flex:2 1 560px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:28px 32px}
.reason{border-top:2px solid var(--plum);padding-top:14px;display:flex;flex-direction:column;gap:6px}
.reason b{font-size:18px}.reason span{font-size:16px;line-height:1.6}

/* stats */
.stats .wrap{padding-top:56px;padding-bottom:56px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px}
.stat-big{font-family:var(--display);font-weight:700;font-size:72px;line-height:.9;display:block}
.stat-small{font-size:17px;color:var(--plum-soft)}

/* story cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:32px}
.story-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;color:var(--ink);text-decoration:none}
.story-card .thumb{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;overflow:hidden}
.story-card .thumb img{width:100%;height:100%;object-fit:cover}
.initial{font-family:var(--display);font-weight:700;font-size:120px;color:rgba(29,29,27,.18);line-height:1}
.tone-0{background:var(--stone1)}.tone-1{background:var(--stone2)}.tone-2{background:var(--stone3)}.tone-3{background:var(--stone4)}
.story-card .body{padding:20px 24px 24px;display:flex;flex-direction:column;gap:8px;flex-grow:1}
.story-card h3{font-size:32px;margin-top:4px}
.story-card .hero-name{font-size:15px;font-weight:600;color:var(--muted)}
.story-card .excerpt{font-size:16px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.story-card .more{margin-top:auto;padding-top:12px;color:var(--plum);font-weight:700;font-size:16px}
.story-card:hover h3{color:var(--plum)}
.story-wide{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
.story-wide .thumb{flex:1 1 360px;min-height:280px;aspect-ratio:auto}
.story-wide .thumb .initial{font-size:160px}
.story-wide .body{flex:2 1 420px;padding:36px 40px;justify-content:center;gap:10px}
.story-wide h3{font-size:44px}
.story-wide .excerpt{font-size:18px;max-width:560px}
.center{display:flex;justify-content:center;margin-top:40px}

/* testimonials */
.testi .wrap-narrow{display:flex;flex-direction:column;gap:48px}
.testi figure{margin:0}
.testi .big{text-align:center;display:flex;flex-direction:column;gap:18px}
.testi .big blockquote{margin:0;font-family:var(--display);font-weight:700;font-size:52px;line-height:1.05}
.testi figcaption{font-size:17px;color:var(--muted)}
.testi .small-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:32px}
.testi .small-grid figure{border-right:3px solid var(--plum);padding-right:18px;display:flex;flex-direction:column;gap:10px}
.testi .small-grid blockquote{margin:0;font-size:19px;line-height:1.6}
.testi .small-grid figcaption{font-size:15px}

/* team */
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:32px}
.member{display:flex;flex-direction:column;gap:10px}
.member .photo{aspect-ratio:4/5;border-radius:16px;background:var(--stone2);overflow:hidden;filter:grayscale(1);display:flex;align-items:flex-end;justify-content:center;padding-bottom:16px;font-size:14px;color:var(--muted)}
.member .photo img{width:100%;height:100%;object-fit:cover}
.member .photo.has-img{padding:0}
.member .name{font-family:var(--display);font-weight:700;font-size:34px;line-height:1}
.member .role{font-size:16px;color:var(--muted)}

/* pricing */
.prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:28px}
.price{border-radius:20px;padding:36px;display:flex;flex-direction:column;gap:14px}
.price-main{background:var(--plum);color:#fff}
.price-alt{background:var(--cream);border:1px solid var(--line)}
.price .pt{font-family:var(--display);font-weight:700;font-size:44px;line-height:1}
.price .pd{font-size:18px;line-height:1.6}
.price .pp{font-family:var(--display);font-weight:700;font-size:64px;line-height:1;margin-top:8px}
.price .pv{font-size:15px}
.price-main .pv{color:var(--plum-soft)}.price-alt .pv{color:var(--muted)}
.price .btn{align-self:flex-start;margin-top:10px}
.incl{display:flex;flex-wrap:wrap;gap:40px;margin-top:40px}
.incl-list{flex:2 1 480px;display:flex;flex-direction:column;gap:14px}
.incl-list ul{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px 28px}
.incl-list li{font-size:16px;line-height:1.5;padding-right:22px;position:relative}
.incl-list li::before{content:"✓";position:absolute;right:0;color:var(--plum);font-weight:700}
.incl-pay{flex:1 1 300px;display:flex;flex-direction:column;gap:10px}
.incl .h{font-size:20px;font-weight:700}
.addons{margin-top:40px;border:1px dashed var(--stone1);border-radius:16px;padding:24px 28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.addons b{font-size:18px;display:block}.addons span{font-size:16px;color:var(--muted)}
.privacy-line{margin-top:40px;text-align:center;font-size:18px;font-weight:600}

/* occasions */
.occ{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px}
.occ .card-box{padding:24px;gap:8px}
.occ .ot{font-family:var(--display);font-weight:700;font-size:32px;line-height:1;color:var(--plum)}
.occ .ox{font-size:15px;line-height:1.6}

/* origin */
.origin .inner{max-width:860px;margin:0 auto;padding:88px 32px;display:flex;flex-direction:column;gap:18px;text-align:center}
.origin h2{font-size:56px}
.origin p{font-size:20px;line-height:1.7;color:var(--stone3)}

/* faq */
.faq{max-width:900px}
.faq-list{border-top:1px solid var(--line)}
.faq-list details{border-bottom:1px solid var(--line);padding:20px 0}
.faq-list summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:19px;font-weight:700}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";font-size:26px;color:var(--plum);line-height:1}
.faq-list details[open] summary::after{content:"–"}
.faq-list p{margin-top:12px;font-size:17px;line-height:1.65}

/* contact */
.contact .wrap{display:flex;flex-wrap:wrap;gap:56px}
.contact-intro{flex:1 1 360px;display:flex;flex-direction:column;gap:18px}
.contact-intro h2{font-size:72px}
.contact-intro p{font-size:20px;line-height:1.6}
.contact-intro .btn{align-self:flex-start}
.contact-form{flex:1 1 440px;background:var(--cream);border:1px solid var(--line);border-radius:20px;padding:32px;display:flex;flex-direction:column;gap:16px}
.contact-form .ft{font-size:18px;font-weight:700}
.contact-form label{display:flex;flex-direction:column;gap:6px;font-size:15px;font-weight:600}
.contact-form .in{width:100%;padding:13px 16px;border:1px solid var(--stone1);border-radius:12px;background:#fff;font-family:var(--body);font-size:16px;color:var(--ink)}
.contact-form .in:focus{outline:2px solid var(--plum);outline-offset:1px}
.contact-form .check{flex-direction:row;gap:10px;align-items:flex-start;font-size:14px;font-weight:400;line-height:1.5}
.contact-form .check input{margin-top:4px;width:18px;height:18px;accent-color:var(--plum)}
.contact-form .btn{align-self:flex-start;padding:15px 40px}
.contact-form .fine{font-size:13px;line-height:1.5;color:var(--muted)}
.form-msg{padding:12px 16px;border-radius:12px;font-weight:600}
.form-msg.ok{background:#E6F0E4;color:#2D5A27}.form-msg.err{background:#F6E3E3;color:#8A2A2A}
.hp{position:absolute;left:-9999px}

/* footer */
.cta-band .wrap{padding-top:56px;padding-bottom:56px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.cta-band .display{font-size:48px}
.site-footer{background:var(--ink);color:var(--stone3)}
.site-footer .wrap{padding-top:56px;padding-bottom:40px;display:flex;flex-direction:column;gap:32px}
.footer-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px}
.footer-top img{height:54px;width:auto}
.footer-top .brand{color:var(--cream)}.footer-top .brand-sub{color:var(--stone1)}
.footer-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:22px;font-size:15px}
.footer-nav a{color:var(--cream);text-decoration:none}
.footer-bottom{border-top:1px solid #3A3936;padding-top:20px;display:flex;flex-wrap:wrap;gap:20px;font-size:14px}
.footer-bottom a{color:var(--stone3)}

/* stories archive */
.page-head{padding:64px 0 24px}
.page-head h1{font-size:72px}
.page-head p{font-size:20px;color:var(--muted);margin-top:12px}
.filters{display:flex;flex-wrap:wrap;gap:10px;padding:16px 0 32px}
.chip{font-family:var(--body);font-size:15px;padding:10px 18px;border-radius:999px;cursor:pointer;background:#fff;color:var(--ink);border:1px solid var(--line);text-decoration:none}
.chip.active{background:var(--plum);color:#fff;border-color:var(--plum);font-weight:700}
.archive-main{padding-bottom:96px}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:48px;flex-wrap:wrap}
.pagination .page-numbers{padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;text-decoration:none;color:var(--ink)}
.pagination .current{background:var(--plum);color:#fff;border-color:var(--plum)}

/* single story */
.story-main{padding-top:40px;display:flex;flex-direction:column;gap:28px}
.back{font-size:15px;font-weight:600;text-decoration:none}
.story-hero-img{aspect-ratio:16/7;border-radius:20px;overflow:hidden;background:var(--stone2)}
.story-hero-img img{width:100%;height:100%;object-fit:cover}
.story-intro{display:flex;flex-direction:column;gap:12px}
.story-intro .pill{font-size:14px;padding:5px 14px}
.story-intro h1{font-size:84px;line-height:.95}
.story-intro .who{font-size:22px;font-weight:600;color:var(--muted)}
.story-intro .desc{font-size:19px;line-height:1.7;max-width:760px;margin-top:6px}
.player{background:var(--ink);color:var(--cream);border-radius:20px;padding:24px 28px;display:flex;flex-wrap:wrap;align-items:center;gap:22px}
.player .play-btn{width:64px;height:64px}
.player .info{flex:1 1 260px;display:flex;flex-direction:column;gap:8px}
.player .info b{font-size:17px}
.progress{height:6px;border-radius:3px;background:#3A3936;cursor:pointer}
.progress div{height:6px;border-radius:3px;background:var(--plum-light);width:0}
.player .time{font-size:13px}
.player .dl{color:var(--cream);border:1px solid var(--muted);text-decoration:none;padding:11px 20px;border-radius:999px;font-size:15px;font-weight:600}
.player-embed{border-radius:20px;overflow:hidden}
.player-embed iframe{width:100%;border:0}
.story-content{font-size:18px;line-height:1.75}
.story-content h2{font-size:48px;margin:32px 0 18px}
.story-content p{margin-bottom:1em}
.story-content .wp-block-gallery,.story-content .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.story-content .wp-block-gallery img,.story-content .gallery img{aspect-ratio:1/1;object-fit:cover;border-radius:12px;width:100%}
.story-content figure{margin:0}
.story-content .wp-block-gallery.has-nested-images{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px!important}
.story-content .wp-block-gallery.has-nested-images figure.wp-block-image{width:100%!important;max-width:none!important;margin:0!important;flex:none!important}
.story-content .wp-block-gallery.has-nested-images figure.wp-block-image a,.story-content .wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
[id]{scroll-margin-top:96px}
.more-stories{padding:88px 0}
.more-stories h2{font-size:48px}
.more-stories .cards{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:28px}
.more-stories .story-card h3{font-size:30px}

/* generic page */
.page-content{padding:64px 0 96px}
.page-content h1{font-size:72px;margin-bottom:24px}
.page-content .entry{font-size:18px;line-height:1.75;max-width:820px}
.page-content .entry p{margin-bottom:1em}

/* lightbox */
.lb{position:fixed;inset:0;background:rgba(29,29,27,.92);display:none;align-items:center;justify-content:center;z-index:100;padding:24px;cursor:zoom-out}
.lb.open{display:flex}
.lb img{max-height:90vh;max-width:90vw;border-radius:8px}

@media (max-width:700px){
  .wrap,.wrap-narrow{padding:0 16px}
  .sec{padding:64px 0}
  .hero h1{font-size:60px}
  .sec-head h2,.h2,.contact-intro h2,.page-head h1,.page-content h1{font-size:48px}
  .story-intro h1{font-size:56px}
  .testi .big blockquote{font-size:36px}
  .stat-big{font-size:56px}
  .story-wide .body{padding:24px}
  .price{padding:28px}
  .cta-band .display{font-size:38px}
}
