/* =========================================================================
   2Pets — שלד. טוקנים, טיפוגרפיה, כותרת, פוטר, טפסים.
   ========================================================================= */

:root {
  --tp-ground:   #F8F8F5;
  --tp-card:     #FFFFFF;
  --tp-tile:     #F2F2EE;
  --tp-hair:     #EFEFE9;
  --tp-line:     #DEDED6;

  --tp-ink:      #12180F;
  --tp-body:     #3A4034;
  --tp-muted:    #767A6E;

  --tp-lime:     #8CCF14;
  --tp-lime-dim: #74AE0F;
  --tp-lime-air: #E4F3C6;
  --tp-lime-mark:#D3EE9B;
  --tp-forest:   #14432C;
  --tp-coral:    #F2542D;

  --tp-sh-1: 0 1px 2px rgba(20,24,15,.04), 0 8px 24px rgba(20,24,15,.05);
  --tp-sh-2: 0 2px 6px rgba(20,24,15,.05), 0 18px 40px rgba(20,24,15,.07);
  --tp-sh-3: 0 6px 14px rgba(20,24,15,.07), 0 30px 60px rgba(20,24,15,.10);
  --tp-inner: inset 0 1px 0 rgba(255,255,255,.9);

  --tp-r-sm: 16px;
  --tp-r-md: 24px;
  --tp-r-lg: 34px;
  --tp-gut:  clamp(16px, 4vw, 56px);
  --tp-max:  1280px;
  --tp-head: 68px;

  --tp-dsp: "Rubik", "Assistant", system-ui, sans-serif;
  --tp-txt: "Assistant", "Segoe UI", system-ui, sans-serif;

  --tp-ease: cubic-bezier(.22, .9, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--tp-ground);
  color: var(--tp-ink);
  font-family: var(--tp-txt);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; }
a { color: var(--tp-forest); text-decoration: none; }
a:hover { color: var(--tp-lime-dim); }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--tp-lime-dim); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.tp-skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--tp-ink); color: #F7F8F4;
  padding: 12px 20px; border-radius: 0 0 var(--tp-r-sm) 0; font-weight: 700;
}
.tp-skip:focus { inset-inline-start: 0; color: #F7F8F4; }


/* ---------- אווירה: שתי שכבות עומק מאחורי כל האתר ---------- */

.tp-atmos {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.tp-atmos::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60rem 40rem at 88% -8%, rgba(140,207,20,.16), transparent 62%),
    radial-gradient(48rem 34rem at -6% 26%, rgba(20,67,44,.07),  transparent 60%);
}
.tp-atmos::after {
  content: ""; position: absolute; inset: 0;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.052'/%3E%3C/svg%3E");
}
.tp-site { position: relative; z-index: 1; }


/* ---------- כותרת — לוגו גדול וממורכז תמיד ---------- */

.tp-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid var(--tp-hair);
  transition: box-shadow .3s var(--tp-ease);
}
.tp-head.is-stuck { box-shadow: var(--tp-sh-1); }

/* שורה עליונה: צד — לוגו — צד. הלוגו תמיד באמצע המסך. */
.tp-head__top {
  max-width: var(--tp-max); margin: 0 auto;
  padding: 14px var(--tp-gut) 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}

.tp-head__brand {
  grid-column: 2;
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
}
.tp-head__brand .custom-logo-link,
.tp-head__brand a { display: block; line-height: 0; }

.tp-head__brand img,
.tp-head__brand .custom-logo {
  display: block; width: auto;
  max-height: 88px; max-width: min(460px, 72vw);
  object-fit: contain;
  transition: max-height .34s var(--tp-ease);
}
.tp-head.is-stuck .tp-head__brand img { max-height: 56px; }

.tp-logo {
  font-family: var(--tp-dsp); font-size: clamp(26px, 3.4vw, 42px); font-weight: 700;
  letter-spacing: -.03em; color: var(--tp-ink); line-height: 1;
  transition: font-size .34s var(--tp-ease);
}
.tp-head.is-stuck .tp-logo { font-size: clamp(22px, 2.4vw, 28px); }
.tp-logo.is-light { color: #F4F7EE; font-size: 26px; }

.tp-head__side { display: flex; align-items: center; gap: 10px; }
.tp-head__side.is-start { grid-column: 1; justify-content: flex-start; }
.tp-head__side.is-end   { grid-column: 3; justify-content: flex-end; }

.tp-head__search {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--tp-tile); border-radius: 999px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; color: var(--tp-muted);
  transition: background .22s var(--tp-ease), color .22s var(--tp-ease);
}
.tp-head__search svg { width: 16px; height: 16px; }
.tp-head__search:hover { background: var(--tp-lime); color: var(--tp-ink); }

/* שורה שנייה: הניווט, ממורכז מתחת ללוגו */
.tp-nav {
  max-width: var(--tp-max); margin: 0 auto;
  padding: 0 var(--tp-gut) 12px;
}
.tp-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap;
}
.tp-nav__list a {
  display: inline-flex; align-items: center;
  padding: 8px 15px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--tp-body);
  transition: background .22s var(--tp-ease), color .22s var(--tp-ease);
}
.tp-nav__list a:hover { background: var(--tp-tile); color: var(--tp-ink); }
.tp-nav__list .current-menu-item > a,
.tp-nav__list .current-menu-parent > a,
.tp-nav__list .current_page_item > a {
  background: var(--tp-lime); color: var(--tp-ink); font-weight: 700;
}

.tp-nav__list li { position: relative; }
.tp-nav__list .sub-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 50%; transform: translate(50%, -6px); z-index: 5;
  list-style: none; margin: 0; padding: 8px;
  min-width: 210px;
  background: var(--tp-card); border: 1px solid var(--tp-hair);
  border-radius: var(--tp-r-sm); box-shadow: var(--tp-sh-2);
  opacity: 0; visibility: hidden;
  transition: opacity .22s var(--tp-ease), transform .22s var(--tp-ease), visibility .22s;
}
.tp-nav__list li:hover > .sub-menu,
.tp-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(50%, 0); }
.tp-nav__list .sub-menu a { width: 100%; border-radius: 11px; justify-content: center; }

.tp-burger {
  display: none; width: 44px; height: 44px;
  background: var(--tp-tile); border: 0; border-radius: 999px;
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.tp-burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--tp-ink);
  transition: transform .28s var(--tp-ease), opacity .2s;
}
.tp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


/* ---------- טפסים ---------- */

.tp-searchform { display: flex; gap: 10px; align-items: center; max-width: 560px; }
.tp-searchform .tp-search { flex-grow: 1; }

input[type="text"], input[type="email"], input[type="url"],
input[type="search"], textarea {
  font: inherit; color: var(--tp-ink);
}


/* ---------- פוטר ---------- */

.tp-foot {
  position: relative; z-index: 1;
  background: var(--tp-ink); color: #C6CDBF;
  margin-top: 70px;
}
.tp-foot__in {
  max-width: var(--tp-max); margin: 0 auto;
  padding: 50px var(--tp-gut) 34px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px;
  align-items: start;
}
.tp-foot__tag { margin: 10px 0 0; font-size: 15px; line-height: 1.5; max-width: 34ch; }
.tp-foot__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; }
.tp-fwidget__title { font-family: var(--tp-dsp); margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #F4F7EE; }
.tp-fwidget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tp-fwidget a { color: #C6CDBF; font-size: 15px; }
.tp-fwidget a:hover { color: var(--tp-lime); }

.tp-foot__nav { grid-column: 1 / -1; }
.tp-foot__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tp-foot__list a {
  display: inline-flex; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: #DDE3D6; font-size: 14px; font-weight: 600;
}
.tp-foot__list a:hover { background: var(--tp-lime); color: var(--tp-ink); }

.tp-foot__bar {
  border-top: 1px solid rgba(255,255,255,.08);
  max-width: var(--tp-max); margin: 0 auto;
  padding: 18px var(--tp-gut) 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13.5px;
}
.tp-foot__note { color: #8C978A; }


/* ---------- תגובות ---------- */

.tp-comments { max-width: 68ch; margin: 56px auto 0; padding: 0 var(--tp-gut); }
.tp-comments__head { font-family: var(--tp-dsp); font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin: 0 0 20px; }
.tp-comments__list { list-style: none; margin: 0 0 34px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.tp-comments__list .comment-body {
  background: var(--tp-card); border: 1px solid var(--tp-hair);
  border-radius: var(--tp-r-md); padding: 20px; box-shadow: var(--tp-sh-1);
}
.tp-comments input[type="text"], .tp-comments input[type="email"], .tp-comments input[type="url"], .tp-comments textarea {
  width: 100%; background: var(--tp-card); border: 1px solid var(--tp-line);
  border-radius: var(--tp-r-sm); padding: 12px 15px;
}
.tp-comments .comment-form > p { margin: 0 0 14px; }


/* ---------- מובייל ---------- */

@media (max-width: 940px) {
  .tp-burger { display: inline-flex; }
  .tp-head__search span { display: none; }
  .tp-head__search { padding: 13px; }

  .tp-head__top { padding: 12px var(--tp-gut) 12px; }
  .tp-head__brand img { max-height: 62px; max-width: 62vw; }
  .tp-head.is-stuck .tp-head__brand img { max-height: 48px; }
  .tp-logo { font-size: clamp(22px, 6vw, 30px); }

  .tp-nav {
    position: fixed; inset: auto 0 auto 0; top: var(--tp-mobhead, 86px); z-index: 55;
    background: var(--tp-card); border-bottom: 1px solid var(--tp-hair);
    box-shadow: var(--tp-sh-2);
    padding: 14px var(--tp-gut) 22px;
    max-height: calc(100dvh - var(--tp-mobhead, 86px)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .26s var(--tp-ease), transform .26s var(--tp-ease), visibility .26s;
  }
  .tp-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .tp-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .tp-nav__list a { padding: 13px 16px; border-radius: var(--tp-r-sm); font-size: 16px; min-height: 46px; justify-content: flex-start; }
  .tp-nav__list .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; background: none; padding: 0 0 0 10px; min-width: 0;
  }
  .tp-nav__list .sub-menu a { justify-content: flex-start; }

  .tp-foot__in { grid-template-columns: 1fr; gap: 30px; }
}
