/*
Theme Name: Advance — פתרונות לריצפה
Theme URI: https://epoxy-israel.co.il/
Author: Advance
Description: ערכת עיצוב ייעודית לאדוונס — ריצוף טרצו, אפוקסי ופתרונות רצפה. תמיכה מלאה ב-RTL, שדות עריכה לכל בלוק, פרויקטים ובלוג.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: advance
Tags: rtl-language-support, custom-menu, custom-logo, blog, translation-ready
*/

/* העיצוב עצמו נטען מ-assets/css/main.css.
   כאן רק תוספות שנדרשות בתוך וורדפרס. */

/* תפריט דינמי — wp_nav_menu מחזיר <li> ישירות לתוך .nav */
.nav li { list-style: none; margin: 0; padding: 0; }
.ftr ul li { list-style: none; }

@media (max-width: 960px) {
  .nav li { display: block; }
  .nav li a { display: block; }
}

/* סרגל הניהול של וורדפרס לא יסתיר את הכותרת הדביקה */
body.admin-bar .hdr { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .hdr { top: 46px; } }

/* תוכן שנכתב בעורך הרגיל (עמודי תוכן ופוסטים) */
.entry { max-width: 78ch; }
.entry h2 { margin-top: 1.8em; }
.entry h3 { margin-top: 1.6em; }
.entry img { border-radius: var(--r-md); margin-block: 1.4em; }
.entry ul, .entry ol { padding-inline-start: 1.4em; margin-bottom: 1.2em; }
.entry li { margin-bottom: .5em; }
.entry blockquote {
  margin: 1.6em 0; padding: 1em 1.4em;
  border-inline-start: 3px solid var(--sand);
  background: var(--bone); border-radius: var(--r-md);
  font-size: 1.05rem;
}
.entry a { color: var(--sand-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry table { width: 100%; border-collapse: collapse; margin-block: 1.4em; }
.entry th, .entry td { border: 1px solid var(--line); padding: .7em 1em; text-align: start; }
.entry th { background: var(--bone); font-weight: 600; }
.wp-caption-text, .entry figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.alignright { float: inline-end; margin-inline-start: 1.4em; }
.alignleft { float: inline-start; margin-inline-end: 1.4em; }
.aligncenter { margin-inline: auto; display: block; }

/* רשימת פוסטים / פרויקטים */
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.post-meta time { letter-spacing: .02em; }

.pager { display: flex; gap: 10px; justify-content: center; margin-top: clamp(30px,4vw,52px); flex-wrap: wrap; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .9em;
  border: 1px solid var(--line-strong); border-radius: 100px;
  font-size: .95rem; transition: all .3s var(--ease);
}
.pager .page-numbers:hover { background: var(--ink); color: #fff; border-color: transparent; }
.pager .page-numbers.current { background: var(--sand); border-color: transparent; color: #1A1408; font-weight: 500; }

/* גלריית פרויקט */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-block: 1.6em; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid a { display: block; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }

/* טבלת מפרט בפרויקט */
.spec { display: grid; gap: .55rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.spec li { display: flex; gap: .6rem; font-size: .96rem; }
.spec b { min-width: 9ch; color: var(--muted); font-weight: 500; }

/* הודעת מערכת בטופס */
.form__ok.is-error { background: rgba(180,60,50,.10); border-color: rgba(180,60,50,.5); }

/* נגישות */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8em 1.4em; border-radius: 0 0 var(--r-md) var(--r-md);
}
.skip-link:focus { inset-inline-start: 50%; transform: translateX(50%); }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* ---------- אזורי שירות: רשימת ערים ---------- */
.areas { display: grid; gap: clamp(22px, 3vw, 34px); margin-top: clamp(34px, 4vw, 56px); }
.areas__group { border-top: 1px solid var(--line); padding-top: clamp(16px, 2vw, 22px); }
.areas__title {
  font-family: "Heebo", sans-serif; font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sand-deep);
  margin: 0 0 .9rem;
}
.areas__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.areas__list li { margin: 0; }
.chip {
  display: inline-flex; align-items: center;
  padding: .5em 1em; border-radius: 100px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .92rem; color: var(--ink); line-height: 1.4;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
a.chip:hover { border-color: var(--sand); background: var(--bone-2); transform: translateY(-2px); }
a.chip { text-decoration: none; }
a.chip::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--sand); margin-inline-start: .55em; flex: 0 0 auto;
}
.areas__note { margin: clamp(22px,3vw,32px) 0 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 560px) { .chip { font-size: .86rem; padding: .45em .85em; } }
