/*
Theme Name: מצפן התזונה
Theme URI: https://tzunale60.co.il
Author: מצפן התזונה לגיל השלישי
Description: ערכת עיצוב לאתר מצפן התזונה לגיל השלישי: אותיות גדולות, ניגודיות גבוהה, מצפן האנרגיות ותבניות מוכנות לדף הבית ולעמודים.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matzpen
*/

:root {
	--m-bg: #F5F6F1;
	--m-surface: #FFFFFF;
	--m-ink: #1B2521;
	--m-muted: #46534D;
	--m-primary: #1F5C50;
	--m-warm: #B8740F;
	--m-warm-soft: #F5E6C6;
	--m-line: #D6DBD2;
	--m-heat: #C0281F;
	--m-cold: #1D5BA6;
	--m-wind: #2B7A31;
	--m-dry: #62686D;
	--m-earth: #D9701A;
	--m-earth-soft: #F9DEC3;
	--m-frame: #CDD0CB;
}

body { background: var(--m-bg); color: var(--m-ink); }
:focus-visible { outline: 3px solid var(--m-warm); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- header ---------- */
.site-header-wrap { background: var(--m-surface); border-bottom: 1px solid var(--m-line); position: sticky; top: 0; z-index: 20; }
.admin-bar .site-header-wrap { top: 32px; }
.site-header { max-width: 1240px; margin-inline: auto; padding-block: 12px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--m-ink); }
.brand:hover { text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.brand-sub { display: block; font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: .9rem; color: var(--m-muted); }
.main-nav { font-weight: 600; font-size: 1.05rem; }
.main-nav a { color: var(--m-ink); }
.main-nav a:hover { color: var(--m-primary); }
.main-nav .current-menu-item > a { color: var(--m-primary); border-bottom: 3px solid var(--m-warm); }
.contact-btn .wp-block-button__link { padding: .55rem 1.2rem; }
@media (max-width: 1100px) { .contact-btn { display: none; } .brand-sub { display: none; } }
@media (min-width: 1101px) { .main-nav .nav-contact-mobile { display: none; } }

/* ---------- bands & common ---------- */
.band { padding-block: 64px; margin-block: 0 !important; }
.band-surface { background: var(--m-surface); border-block: 1px solid var(--m-line); }
.band-warm { background: var(--m-warm-soft); }
.eyebrow { font-size: 1rem; font-weight: 700; letter-spacing: .03em; color: var(--m-warm); margin-bottom: .3rem !important; }
.hero-name { font-family: var(--wp--preset--font-family--display); font-size: 1.8rem; color: var(--m-warm); font-weight: 700; margin: 0; }
.lead { font-size: 1.35rem; color: var(--m-muted); }
.audience { font-size: 1.1rem; color: var(--m-muted); border-inline-start: 4px solid var(--m-warm); padding-inline-start: 12px; }
.is-style-outline .wp-block-button__link { border: 2px solid var(--m-primary); color: var(--m-primary); background: transparent; }

/* hero */
.hero { padding-block: 56px; }
.hero .wp-block-columns { align-items: center; gap: 48px; }
.photo { aspect-ratio: 4/5; max-width: 100%; border: 2px dashed var(--m-line); border-radius: 18px; background: var(--m-surface); display: grid; place-items: center; text-align: center; color: var(--m-muted); padding: 24px; box-sizing: border-box; }
.photo strong { display: block; color: var(--m-ink); font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; }
.photo-cap { font-size: 1rem; color: var(--m-muted); margin-top: 10px !important; }

/* doors */
.doors { gap: 20px; }
.door { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 16px; padding: 26px; }
.door-img { margin: 0 0 6px !important; }
.door-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }
.door-who { font-size: 1rem; font-weight: 700; color: var(--m-warm); margin-bottom: 0 !important; }

/* method + compass */
.med-note { border-inline-start: 4px solid var(--m-warm); background: var(--m-warm-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 1.1rem; }
.energy-note { min-height: 3.4em; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 18px; font-size: 1.1rem; margin-top: 16px; }
.compass { direction: ltr; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr auto; grid-template-areas: ". s ." "e f w" ". n ."; gap: 8px; width: min(460px, 100%); margin-inline: auto; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.2rem; }
.dir { display: flex; align-items: center; justify-content: center; gap: 4px; }
.dir svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dir-s { grid-area: s; flex-direction: column; color: var(--m-heat); }
.dir-n { grid-area: n; flex-direction: column-reverse; color: var(--m-cold); }
.dir-e { grid-area: e; flex-direction: row; color: var(--m-wind); }
.dir-w { grid-area: w; flex-direction: row-reverse; color: var(--m-dry); }
.dir-s svg, .dir-n svg { width: 64px; height: 18px; }
.dir-e svg, .dir-w svg { width: 18px; height: 64px; }
.dir-n svg, .dir-w svg { transform: rotate(180deg); }
.vert { writing-mode: vertical-rl; text-orientation: upright; letter-spacing: -.05em; line-height: 1; direction: ltr; unicode-bidi: bidi-override; }
.frame { grid-area: f; background: var(--m-frame); aspect-ratio: 4/3; max-width: 100%; display: grid; place-items: center; padding: 6%; box-sizing: border-box; min-width: 0; }
.oval { position: relative; width: 100%; height: 100%; border-radius: 50%; background: var(--m-earth-soft); border: 3px solid var(--m-surface); box-sizing: border-box; }
.en { position: absolute; font: inherit; font-size: 1.15rem; background: transparent; border: 2px solid transparent; border-radius: 12px; padding: 2px 8px; cursor: pointer; line-height: 1.2; }
.en:hover { border-color: currentColor; }
.en[aria-pressed="true"] { background: var(--m-surface); border-color: currentColor; }
.en-heat { top: 6%; left: 50%; transform: translateX(-50%); color: var(--m-heat); }
.en-cold { bottom: 6%; left: 50%; transform: translateX(-50%); color: var(--m-cold); }
.en-wind { left: 4%; top: 50%; transform: translateY(-50%); color: var(--m-wind); padding: 8px 2px; }
.en-dry { right: 4%; top: 50%; transform: translateY(-50%); color: var(--m-dry); padding: 8px 2px; }
.en-damp { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30%; height: 44%; padding: 0; color: var(--m-earth); border-radius: 50%; }
.en-damp svg { position: absolute; left: 50%; top: 50%; width: 58%; height: auto; transform: translate(-50%, -50%); fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.damp-label { position: absolute; top: 50%; left: 100%; transform: translateY(-50%); margin-left: 2px; white-space: nowrap; }
.needle { position: absolute; left: 50%; top: 50%; width: 20px; height: 70%; transform: translate(-50%, -50%) rotate(0deg); transition: transform 1.2s cubic-bezier(.3, .9, .3, 1.15); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.needle-n, .needle-s { position: absolute; left: 0; width: 100%; height: 50%; }
.needle-n { top: 0; background: var(--m-heat); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.needle-s { bottom: 0; background: var(--m-ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.needle-hub { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--m-surface); border: 3px solid var(--m-ink); transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) { .needle { transition: none; } }

/* steps */
.steps { gap: 20px; }
.step { border-top: 3px solid var(--m-primary); padding-top: 16px; }
.step-n { font-family: var(--wp--preset--font-family--display); font-weight: 700; color: var(--m-primary); font-size: 1rem; margin-bottom: 0 !important; }

/* about facts */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--m-line); }
.facts .k { font-size: .95rem; font-weight: 700; color: var(--m-warm); }
.facts .v { font-weight: 600; }

/* workshops */
.card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 16px; padding: 26px; }
.tag { display: inline-block; font-size: .95rem; font-weight: 700; background: var(--m-warm-soft); border-radius: 999px; padding: 2px 12px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.areas li { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 999px; padding: 2px 14px; font-size: 1rem; }

/* blog cards */
.posts-query .wp-block-post { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 16px; padding: 24px; }
.posts-query .wp-block-post-title a { color: var(--m-ink); text-decoration: none; }
.posts-query .wp-block-post-title a:hover { color: var(--m-primary); text-decoration: underline; }
.posts-query .wp-block-post-excerpt { color: var(--m-muted); font-size: 1.1rem; }

/* contact */
.phone { font-family: var(--wp--preset--font-family--display); font-size: 1.8rem; font-weight: 700; direction: ltr; unicode-bidi: isolate; }

/* footer */
.site-footer { background: var(--m-surface); border-top: 1px solid var(--m-line); font-size: 1.05rem; color: var(--m-muted); padding-block: 36px; margin-top: 0 !important; }
.disclaimer { border-inline-start: 4px solid var(--m-warm); padding-inline-start: 12px; color: var(--m-ink); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* floating whatsapp */
.wa { position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: var(--m-primary); color: #fff !important; font-weight: 700; font-size: 18px; text-decoration: none !important; border-radius: 999px; padding: 12px 20px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.wa svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 781px) {
	.band { padding-block: 44px; }
	.photo { aspect-ratio: 4/3; }
	.compass { font-size: 1rem; }
	.en { font-size: 1rem; }
}
