/*
Theme Name: Your Next Chapter
Theme URI: https://yournextchapter.co.il
Author: יונית נחום · שי נחום
Description: תבנית ייעודית לאתר Your Next Chapter - מידע ופרקטיקה לנשים בגיל 40+. נבנתה לפי המוקאפ המאושר: צבעי הלוגו (פחם, ורוד, ירוק), גופני Frank Ruhl Libre ו-Assistant, עברית RTL מלאה.
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
Version: 0.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yournextchapter
*/

/* רוב העיצוב הבסיסי מוגדר ב-theme.json. כאן: עיצוב הסקשנים של עמוד הבית לפי המוקאפ המאושר. */

:root {
  --ync-ink: #2C3540;
  --ync-ink-2: #3C4854;
  --ync-muted: #6B7684;
  --ync-rose: #CC3054;
  --ync-rose-dark: #A82443;
  --ync-rose-lt: #F06C90;
  --ync-sage: #549C3C;
  --ync-paper-2: #F6EDE9;
  --ync-line: #E7DAD5;
  --ync-serif: "Frank Ruhl Libre", Georgia, serif;
  --ync-sans: "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}

/* ---------- יסודות ---------- */
html {
  overflow-x: clip;
  scroll-behavior: smooth;
}
h1, h2, h3, p {
  overflow-wrap: break-word;
}
.wp-block-group.alignfull {
  max-width: 100vw;
  box-sizing: border-box;
}
:focus-visible {
  outline: 3px solid var(--ync-rose);
  outline-offset: 3px;
  border-radius: 4px;
}
/* עוגנים לא נבלעים מתחת לניווט הדביק */
#search, #videos, #about, #recs, #join {
  scroll-margin-top: 96px;
}
.ync-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* כפתורים מעוגלים ורכים */
.wp-block-button__link {
  border-radius: 999px;
  padding: 0.8em 2em;
  font-weight: 700;
  transition: background-color .18s;
}
.wp-block-button__link:hover {
  background-color: var(--ync-rose-dark);
  color: #fff;
}

/* ---------- ניווט עליון דביק ---------- */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
}
.ync-nav {
  background: rgba(250, 248, 245, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ync-line);
}
.ync-logo img {
  height: 58px;
  width: auto;
  display: block;
}
.ync-nav .wp-block-navigation a {
  font-size: 16.5px;
}
.ync-nav .wp-block-navigation a:hover {
  color: var(--ync-rose);
}
.ync-nav-cta .wp-block-button__link {
  padding: 10px 20px;
  font-size: 16px;
}

/* ---------- הירו ---------- */
.ync-hero {
  padding-top: 64px;
  padding-bottom: 80px;
  overflow: hidden;
}
.ync-hero-cols {
  align-items: center;
  gap: 56px;
}
.ync-eyebrow {
  font-family: var(--ync-serif);
  font-weight: 500;
  font-size: 23px;
  color: var(--ync-rose);
  margin-bottom: 10px;
  line-height: 1.4;
}
.ync-hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -.01em;
  font-weight: 800;
  margin: 0 0 6px;
}
.ync-curve {
  display: block;
  width: 210px;
  max-width: 60%;
  margin: 2px 0 20px;
  color: var(--ync-rose-lt);
}
.ync-menu {
  display: flex;
  gap: 30px;
  font-size: 16.5px;
  font-weight: 600;
}
.ync-menu a {
  color: var(--ync-ink);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, color .18s;
}
.ync-menu a:hover {
  border-bottom-color: var(--ync-rose);
  color: var(--ync-rose);
}
@media (max-width: 980px) {
  .ync-menu {
    display: none;
  }
}
.ync-pillars {
  gap: 10px 12px !important;
  margin-bottom: 28px !important;
}
.ync-pill {
  font-size: 16px;
  font-weight: 600;
  color: var(--ync-ink-2);
  background: var(--ync-paper-2);
  border: 1px solid var(--ync-line);
  padding: 7px 16px;
  border-radius: 100px;
  margin: 0 !important;
}

/* תיבת ההרשמה */
.ync-signup {
  background: #fff;
  border: 1px solid var(--ync-line);
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 12px 34px -22px rgba(44, 53, 64, .4);
}
.ync-tag {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ync-sage);
  background: #EDF6EA;
  border-radius: 100px;
  padding: 4px 13px;
  margin-bottom: 10px;
}
.ync-signup h2 {
  font-size: 25px;
  line-height: 1.3;
  margin: 0 0 7px;
}
.ync-signup-sub {
  font-size: 16.5px;
  color: var(--ync-muted);
  margin: 0 0 16px;
}
.ync-note {
  font-size: 14.5px;
  color: var(--ync-muted);
  margin: 12px 0 0;
}

/* טופס (זמני עד חיבור Brevo) */
.ync-field {
  display: flex;
  gap: 10px;
}
.ync-field input {
  flex: 1;
  min-width: 0;
  font-family: var(--ync-sans);
  font-size: 17px;
  padding: 14px 18px;
  border: 1.5px solid var(--ync-line);
  border-radius: 100px;
  background: var(--wp--preset--color--base, #FAF8F5);
  color: var(--ync-ink);
}
.ync-field input::placeholder {
  color: #A4AEB9;
}
.ync-field input:focus {
  border-color: var(--ync-rose);
  outline: none;
  background: #fff;
}
.ync-field button {
  font-family: var(--ync-sans);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--ync-rose);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 26px;
  cursor: pointer;
  transition: background .18s;
}
.ync-field button:hover {
  background: var(--ync-rose-dark);
}
.ync-formmsg {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ync-sage);
  background: #EDF6EA;
  border-radius: 10px;
  padding: 11px 15px;
}

/* דיוקן */
.ync-portrait {
  position: relative;
}
.ync-portrait .ync-portrait-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 620px;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 200px 200px 22px 22px;
  box-shadow: 0 30px 60px -34px rgba(44, 53, 64, .55);
}
.ync-badge {
  position: absolute;
  bottom: 24px;
  right: -16px;
  background: #fff;
  border: 1px solid var(--ync-line);
  border-radius: 14px;
  padding: 13px 19px;
  box-shadow: 0 14px 30px -18px rgba(44, 53, 64, .5);
  max-width: 290px;
}
.ync-badge-name {
  font-family: var(--ync-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.45;
}
.ync-badge-role {
  color: var(--ync-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.45;
}

/* ---------- הבלוק המרכזי: מה שאת מקלידה בגוגל ---------- */
.ync-search {
  color: #F6EDE9;
  padding-top: 84px;
  padding-bottom: 88px;
}
.ync-kicker {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ync-rose-lt);
  margin: 0 0 12px;
}
.ync-search h2 {
  color: #fff;
  font-size: clamp(29px, 3.4vw, 44px);
  line-height: 1.25;
  margin: 0 0 14px;
  max-width: 730px;
}
.ync-lede {
  font-size: 19px;
  color: #BFC8D2;
  line-height: 1.7;
  max-width: 730px;
  margin: 0 0 40px;
}
.ync-lede strong {
  color: #fff;
  font-weight: 600;
}
ul.ync-queries {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.ync-queries li {
  margin: 0;
}
.ync-queries li a {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #36414E;
  border: 1px solid #47535F;
  border-radius: 100px;
  padding: 16px 26px;
  font-size: 18.5px;
  color: #EAF0F5;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s;
}
.ync-queries li a::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238D99A6' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ync-queries li a:hover {
  background: #404C5A;
  border-color: var(--ync-rose-lt);
  transform: translateX(-6px);
}
.ync-after {
  margin-top: 34px;
  font-size: 17.5px;
  color: #BFC8D2;
  border-right: 3px solid var(--ync-rose);
  padding-right: 20px;
  max-width: 640px;
}

/* ---------- כותרות סקשן ---------- */
.ync-sechead h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  margin: 0 0 10px;
}
.ync-sechead p {
  font-size: 18px;
  color: var(--ync-muted);
  margin: 0 0 36px;
  max-width: 680px;
}

/* ---------- סרטונים ---------- */
.ync-videos {
  padding-top: 80px;
  padding-bottom: 80px;
}
.ync-vgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ync-vcard {
  background: #fff;
  border: 1px solid var(--ync-line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.ync-vcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -26px rgba(44, 53, 64, .5);
}
.ync-vthumb {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
  background: linear-gradient(155deg, #3C4854, #2C3540);
}
.ync-vt-rose { background: linear-gradient(155deg, #CC3054, #8E1F3B); }
.ync-vt-green { background: linear-gradient(155deg, #4A7A3A, #2E5222); }
.ync-vt-blue { background: linear-gradient(155deg, #46596B, #2A3742); }
.ync-vt-plum { background: linear-gradient(155deg, #5B4A63, #33293A); }
.ync-vthumb::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232C3540'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 54% center;
  background-size: 22px;
}
.ync-views {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  border-radius: 100px;
  padding: 4px 12px;
  margin: 0;
}
.ync-vbody {
  padding: 16px 18px 20px;
}
.ync-vbody h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.ync-vcat {
  font-size: 14.5px;
  color: var(--ync-muted);
  margin: 0;
}
.ync-hitflag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ync-rose);
  background: #FCEAEF;
  border-radius: 100px;
  padding: 3px 11px;
  margin: 0 0 8px;
}

/* ---------- עליי ---------- */
.ync-about {
  padding-top: 80px;
  padding-bottom: 80px;
}
.ync-about-cols {
  align-items: center;
  gap: 48px;
}
.ync-about-img img {
  border-radius: 22px;
  box-shadow: 0 26px 50px -32px rgba(44, 53, 64, .55);
}
.ync-about h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  margin: 0 0 16px;
}
.ync-about-text p {
  font-size: 18.5px;
  color: var(--ync-ink-2);
  margin: 0 0 16px;
}
.ync-cert {
  background: #fff;
  border: 1px solid var(--ync-line);
  border-radius: 16px;
  padding: 20px 22px;
  margin-top: 24px;
}
.ync-cert .wp-block-image {
  margin: 0 0 14px;
}
.ync-cert img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.ync-cert-title {
  font-family: var(--ync-serif);
  font-size: 18.5px;
  font-weight: 700;
  margin: 0 0 3px;
}
.ync-cert-org {
  font-size: 16px;
  color: var(--ync-muted);
  margin: 0 0 12px;
}
.ync-cert-by {
  font-size: 14px;
  color: var(--ync-muted);
  letter-spacing: .02em;
  border-top: 1px solid var(--ync-line);
  padding-top: 11px;
  margin: 0;
}

/* ---------- המומלצים שלי ---------- */
.ync-recs {
  padding-top: 80px;
  padding-bottom: 80px;
}
.ync-rgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ync-rcard {
  background: #fff;
  border: 1px solid var(--ync-line);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.ync-rcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -26px rgba(44, 53, 64, .5);
}
.ync-ricon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: var(--ync-paper-2);
  margin: 0 0 14px;
}
.ync-ri-rose { background: #FCEAEF; }
.ync-ri-green { background: #EDF6EA; }
.ync-ri-blue { background: #EAF0F8; }
.ync-ri-sand { background: #F4EEE2; }
.ync-rtag {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ync-muted);
  margin: 0 0 5px;
}
.ync-rcard h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.ync-rdesc {
  font-size: 16px;
  color: var(--ync-muted);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}
.ync-why {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ync-line);
  font-size: 15px;
  color: var(--ync-ink-2);
}
.ync-why strong {
  color: var(--ync-rose);
}
.ync-rlink {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.ync-rlink a {
  color: var(--ync-rose);
  text-decoration: none;
}
.ync-rlink a:hover {
  text-decoration: underline;
}
.ync-recnote {
  margin-top: 26px;
  font-size: 15px;
  color: var(--ync-muted);
  border-right: 3px solid var(--ync-sage);
  padding-right: 16px;
  max-width: 720px;
}

/* ---------- סגירה ---------- */
.ync-close {
  padding-top: 78px;
  padding-bottom: 78px;
  text-align: center;
}
.ync-close h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.25;
  margin: 0 0 12px;
}
.ync-close-sub {
  font-size: 19px;
  color: var(--ync-muted);
  margin: 0 0 24px;
}
.ync-close .ync-field,
.ync-close .ync-formmsg {
  max-width: 470px;
  margin-right: auto;
  margin-left: auto;
}
.ync-close .ync-formmsg {
  margin-top: 14px;
}

/* ---------- פוטר ---------- */
.ync-foot {
  color: #AEB9C4;
  font-size: 16px;
}
.ync-foot a {
  color: #AEB9C4;
  text-decoration: none;
}
.ync-foot a:hover {
  color: var(--ync-rose-lt);
}
.ync-foot h4 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 10px;
}
.ync-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.ync-foot-brand {
  font-family: var(--ync-serif);
  font-size: 22px;
  color: #fff;
  margin: 0 0 8px;
}
.ync-disclaimer {
  border-top: 1px solid #47535F;
  padding-top: 22px;
  margin-top: 30px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #8D99A6;
}
.ync-disclaimer strong {
  color: #C9D3DC;
}

/* כרטיסים כלליים - צל עדין */
.ync-card {
  border-radius: 16px;
  box-shadow: 0 10px 30px -18px rgba(44, 53, 64, 0.25);
}

/* ---------- עמוד מאמר ---------- */
.ync-article-head h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.25;
  margin: 0 0 14px;
}
.ync-article-meta {
  gap: 6px 14px !important;
  margin-bottom: 22px;
}
.ync-article-meta p,
.ync-article-meta .wp-block-post-date {
  font-size: 15.5px;
  color: var(--ync-muted);
  margin: 0;
}
.ync-article-head .wp-block-post-featured-image img {
  border-radius: 18px;
}
.ync-article-body .wp-block-post-content {
  font-size: 18.5px;
  color: var(--ync-ink-2);
}
.ync-article-body .wp-block-post-content p {
  margin: 0 0 18px;
}
.ync-article-body .wp-block-post-content h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 38px 0 14px;
}
.ync-article-body .wp-block-post-content h3 {
  font-size: clamp(20px, 2.2vw, 25px);
  margin: 30px 0 10px;
}
.ync-article-body .wp-block-post-content ul,
.ync-article-body .wp-block-post-content ol {
  padding-right: 24px;
  margin: 0 0 18px;
}
.ync-article-body .wp-block-post-content li {
  margin-bottom: 8px;
}
.ync-article-body .wp-block-post-content a {
  color: var(--ync-rose);
}
.ync-article-body .wp-block-post-content blockquote {
  border-right: 3px solid var(--ync-rose);
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 18px;
}
.ync-article-body .wp-block-post-content img {
  border-radius: 14px;
}
.ync-article-body .wp-block-post-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 18px;
}
.ync-article-body .wp-block-post-content th,
.ync-article-body .wp-block-post-content td {
  text-align: right;
  border: 1px solid var(--ync-line);
  padding: 10px 14px;
}
.ync-article-body .wp-block-post-content th {
  background: var(--ync-paper-2);
  font-weight: 700;
}
.ync-art-disclaimer {
  background: #FCEAEF;
  border-right: 3px solid var(--ync-rose);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 34px;
}
.ync-art-disclaimer p {
  font-size: 15px;
  color: var(--ync-ink-2);
  margin: 0;
  line-height: 1.65;
}
.ync-art-disclaimer strong {
  color: var(--ync-rose);
}

/* ---------- רשימת מאמרים ---------- */
.ync-archive-head h1 {
  font-size: clamp(32px, 3.8vw, 46px);
  margin: 0 0 8px;
}
.ync-archive-sub {
  font-size: 18px;
  color: var(--ync-muted);
  margin: 0;
  max-width: 680px;
}
.ync-agrid {
  gap: 22px !important;
}
.ync-acard {
  background: #fff;
  border: 1px solid var(--ync-line);
  border-radius: 16px;
  padding: 26px 26px 22px;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}
.ync-acard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -26px rgba(44, 53, 64, .5);
}
.ync-acard-date {
  font-size: 14px;
  color: var(--ync-muted);
  margin: 0 0 8px;
}
.ync-acard .wp-block-post-title {
  font-size: 23px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.ync-acard .wp-block-post-title a {
  color: var(--ync-ink);
  text-decoration: none;
}
.ync-acard .wp-block-post-title a:hover {
  color: var(--ync-rose);
}
.ync-acard .wp-block-post-excerpt {
  font-size: 16px;
  color: var(--ync-muted);
}
.ync-acard .wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--ync-rose);
  text-decoration: none;
}
.ync-noresults {
  font-size: 19px;
  color: var(--ync-muted);
  padding: 40px 0;
}
.ync-pagination {
  margin-top: 34px;
  font-weight: 600;
}
.ync-pagination a {
  color: var(--ync-rose);
  text-decoration: none;
}
.ync-pagination .wp-block-query-pagination-numbers .current {
  color: var(--ync-ink);
}

/* ---------- רספונסיבי ---------- */
@media (max-width: 980px) {
  .ync-vgrid, .ync-rgrid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 781px) {
  /* במובייל: הדיוקן מעל הטקסט, כמו במוקאפ */
  .ync-hero-cols {
    display: flex;
    flex-direction: column;
  }
  .ync-hero-cols .ync-portrait-col {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .ync-badge {
    right: auto;
    left: -6px;
  }
}
@media (max-width: 620px) {
  .ync-hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .ync-search, .ync-videos, .ync-about, .ync-recs, .ync-close {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .ync-field {
    flex-direction: column;
  }
  .ync-field button {
    width: 100%;
  }
  .ync-vgrid, .ync-rgrid {
    grid-template-columns: 1fr;
  }
  .ync-queries li a {
    padding: 14px 20px;
    gap: 12px;
    font-size: 16.5px;
  }
  .ync-badge {
    position: static;
    margin-top: 16px;
    max-width: none;
  }
  .ync-logo img {
    height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
