/*
Theme Name: אוריאל - ניהול תהליכי רישוי
Theme URI: https://elh.co.il
Author: Uriel Alhyani
Description: אתר עסקי לניהול תהליכי רישוי בנייה. כל התוכן נערך מ"התאמה אישית" ומ"סרטונים" בלוח הבקרה.
Version: 2.0.1
Requires at least: 6.4
Requires PHP: 7.2
Text Domain: elh
*/

:root {
	--ink: #14213d;        /* כחול-דיו של מסמכים רשמיים */
	--ink-2: #24365e;
	--text: #3f4b63;
	--concrete: #eef1f4;
	--line: #d9dee6;
	--paper: #ffffff;
	--safety: #f2b705;     /* צהוב של אתר בנייה */
	--ok: #1f8f4e;         /* חותמת "מאושר" */
	--ok-d: #187a41;
	--head: "Secular One", "Assistant", Arial, sans-serif;
	--body: "Assistant", Arial, sans-serif;
	--r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid var(--safety); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; padding: 13px 24px; border-radius: 10px; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 22px; height: 22px; }
.btn-main { background: var(--ok); color: #fff; }
.btn-main:hover { background: var(--ok-d); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ראש האתר ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.brand strong { display: block; font-family: var(--head); font-weight: 400; font-size: 22px; color: var(--ink); line-height: 1.1; }
.brand small { display: block; font-size: 14px; color: var(--text); }
.main-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--safety); }
.head-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: #fff; background: var(--ink); padding: 9px 16px; border-radius: 10px; direction: ltr; }
.head-phone:hover { background: var(--ink-2); }

/* ---------- פתיחה ---------- */
.hero {
	background-color: var(--concrete);
	/* רשת עדינה כמו נייר של תוכנית הגשה */
	background-image: linear-gradient(rgba(20,33,61,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,33,61,.05) 1px, transparent 1px);
	background-size: 32px 32px;
	padding: 64px 0 72px;
	border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.hero-place { display: inline-block; font-weight: 700; color: var(--ink); background: var(--safety); padding: 2px 12px; border-radius: 6px; margin-bottom: 18px; font-size: 16px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); max-width: 15ch; margin-bottom: 20px; }
.lead { font-size: 21px; max-width: 34em; margin-bottom: 30px; }
.hero .social { margin-top: 26px; }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: background .15s, color .15s; }
.social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.social svg { width: 20px; height: 20px; }

/* מסגרת טלפון לסרטונים האנכיים */
.phone { margin: 0; }
.phone-screen { background: var(--ink); border-radius: 34px; padding: 10px; box-shadow: 0 24px 50px -20px rgba(20,33,61,.45); }
.phone video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 26px; background: #000; object-fit: cover; }
.phone figcaption { margin-top: 16px; text-align: center; }
.today-tag { display: block; font-size: 15px; font-weight: 700; color: var(--ok); }
#player-title { font-family: var(--head); font-size: 22px; color: var(--ink); text-decoration: none; }
#player-title:hover { text-decoration: underline; }

/* ---------- כותרות סקשנים ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 12px; }
.sec-head p { font-size: 19px; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head-row > div { max-width: 640px; }

/* ---------- שלבי הרישוי ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; inset-inline: 24px; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 22px); }
.steps li { position: relative; padding-inline-end: 28px; }
.step-no { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--safety); color: var(--ink); font-family: var(--head); font-size: 22px; border: 4px solid var(--paper); margin-bottom: 18px; }
.steps h3 { font-size: 24px; margin-bottom: 8px; }
.steps p { font-size: 17px; }

/* ---------- סרטונים ---------- */
.videos { background: var(--concrete); }
.next-up { background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--safety); border-radius: 10px; padding: 12px 18px; font-size: 17px; color: var(--ink); }
.next-up span { color: var(--text); font-size: 15px; }
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.vcard { display: block; text-decoration: none; }
.vthumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--line); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vplay { position: absolute; inset-inline-start: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(20,33,61,.85); color: #fff; display: grid; place-items: center; transition: background .15s; }
.vplay svg { width: 20px; height: 20px; }
.vcard:hover .vplay { background: var(--ok); }
.vcard.is-on .vthumb { outline: 3px solid var(--safety); outline-offset: 3px; }
.vmeta { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-top: 10px; }
.vcard h3 { font-family: var(--body); font-weight: 700; font-size: 18px; line-height: 1.3; }
.vcard:hover h3 { text-decoration: underline; }

/* ---------- מי אני ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.about-text h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.about-text p { font-size: 19px; margin-bottom: 16px; max-width: 36em; }
.auth { background: var(--ink); color: #dfe5f0; border-radius: var(--r); padding: 32px; }
.auth h3 { color: #fff; font-size: 24px; margin-bottom: 18px; }
.auth ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.auth li { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.auth svg { color: var(--safety); width: 20px; height: 20px; }

/* ---------- יצירת קשר ---------- */
.contact { background: var(--ink); color: #dfe5f0; padding: 72px 0; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.contact h2 { color: #fff; font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 12px; }
.contact p { font-size: 19px; max-width: 32em; }
.contact-actions { display: grid; gap: 14px; justify-items: start; }
.contact-line { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 20px; font-weight: 600; }
.contact-line svg { color: var(--safety); width: 22px; height: 22px; }
.contact-line:hover { text-decoration: underline; }

/* ---------- תחתית ---------- */
.site-foot { background: #0e1830; color: #b8c2d6; padding: 36px 0 24px; font-size: 16px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-foot strong { color: #fff; font-weight: 700; }
.foot-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { color: #fff; text-decoration: underline; }
.social-foot a { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.foot-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; font-size: 14px; }
.float-wa { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: none; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.float-wa svg { width: 30px; height: 30px; }

/* ---------- עמוד סרטון ---------- */
.watch { padding: 40px 0 88px; background: var(--concrete); }
.crumbs { display: flex; gap: 8px; font-size: 15px; margin-bottom: 28px; }
.crumbs a { color: var(--text); }
.watch-grid { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.watch-text h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 6px 0 18px; }
.entry { font-size: 20px; margin-bottom: 28px; max-width: 36em; }
.entry p { margin-bottom: 14px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pager a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; text-decoration: none; font-weight: 700; color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager small { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
.page { padding: 64px 0; min-height: 50vh; }
.page h1 { font-size: 42px; margin-bottom: 20px; }

/* ---------- מסכים קטנים ---------- */
@media (max-width: 980px) {
	.main-nav { display: none; }
	.head-phone { margin-inline-start: auto; }
	.hero-grid { grid-template-columns: 1fr 280px; gap: 36px; }
	.steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
	.steps::before { display: none; }
	.about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
	body { font-size: 17px; }
	section { padding: 60px 0; }
	.head-row { height: 64px; gap: 12px; }
	.brand small { display: none; }
	.head-phone span { display: none; }
	.head-phone { padding: 10px; }
	.hero { padding: 40px 0 52px; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero .phone { max-width: 300px; margin-inline: auto; }
	.lead { font-size: 19px; }
	.actions .btn { width: 100%; justify-content: center; }
	.steps { grid-template-columns: 1fr; gap: 28px; }
	.steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 0; }
	.step-no { grid-row: span 2; margin: 0; }
	.vgrid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
	.auth { padding: 24px; }
	.auth ul { grid-template-columns: 1fr; }
	.watch-grid { grid-template-columns: 1fr; gap: 28px; }
	.watch .phone { max-width: 320px; margin-inline: auto; }
	.pager { grid-template-columns: 1fr; }
	.float-wa { display: grid; }
}
