/* ==========================================================================
   Quest HR · WordPress additions (loaded after the original stylesheet).
   Nothing here restyles the design: it lets WordPress / Contact Form 7 markup sit inside it unchanged.
   ========================================================================== */

/* ---- WordPress screen-reader text = the design's .sr-only ---- */
.sr-only,.screen-reader-text{position:absolute!important;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---- the admin bar (logged-in editors only): the sticky header starts below it ---- */
.admin-bar .site{inset-block-start:32px}
@media (max-width:782px){.admin-bar .site{inset-block-start:46px}}
@media (max-width:600px){.admin-bar .site{inset-block-start:0}}

/* ---- Contact Form 7: its wrappers take no part in the layout, the original grid lays out the controls ---- */
#qhr .form-card .wpcf7,
#qhr .qhr-form .wpcf7-form-control-wrap,
#qhr .qhr-form .wpcf7-acceptance,
#qhr .qhr-form .wpcf7-list-item{display:contents}
#qhr .qhr-form .wpcf7-list-item{margin:0}
#qhr .form-card .screen-reader-response,
#qhr .qhr-form .wpcf7-response-output,
#qhr .qhr-form .wpcf7-not-valid-tip,
#qhr .qhr-form .wpcf7-spinner,
#qhr .qhr-form .hidden-fields-container{display:none!important}
#qhr .qhr-form .wpcf7-form-control.qhr-input{inline-size:100%;box-sizing:border-box}
#qhr .qhr-form .qhr-submit[aria-disabled="true"]{opacity:.7;cursor:progress}
/* CF7's turnstile / recaptcha widgets, when enabled, sit on their own row */
#qhr .qhr-form .wpcf7-turnstile,#qhr .qhr-form .cf-turnstile{grid-column:1/-1}

/* ---- blog pagination (only when there are more posts than one page holds) ---- */
#qv .qhr-pagination{margin-block:clamp(28px,3vw,40px) 0}
#qv .qhr-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
#qv .qhr-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-inline-size:44px;min-block-size:44px;
  padding:0 14px;border:1.5px solid var(--line,#E7DFD7);border-radius:999px;background:#fff;color:var(--ink,#14202E);
  font-weight:600;text-decoration:none}
#qv .qhr-pagination .page-numbers.current{background:var(--orange,#F15A24);border-color:var(--orange,#F15A24);color:#fff}
#qv .qhr-pagination a.page-numbers:hover{background:#FFF3EC}
#qv .qhr-pagination a.page-numbers:focus-visible{outline:3px solid #E5501C;outline-offset:3px}
#qv .qhr-empty{text-align:center;color:var(--muted,#4B5866)}

/* ---- the optional FAQ block (only rendered when questions are filled in) ---- */
#qhr .qhr-faq{margin-block:clamp(32px,4vw,56px) 0}
#qhr .qhr-faq>h2{margin:0 0 18px}
#qhr .qhr-faq-sec{position:relative}
#qhr .qhr-faq-sec .qhr-faq-list{max-inline-size:900px;margin-inline:auto;padding-inline:clamp(20px,4vw,40px)}
#qhr .qhr-faq-list{display:grid;gap:12px}
#qhr .qhr-faq-item{border:1px solid var(--line,#E7DFD7);border-radius:18px;background:#fff;color:var(--ink,#14202E)}
#qhr .qhr-faq-item>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-block-size:44px;
  padding:16px 22px;cursor:pointer;font-weight:700;font-size:1.05em;list-style:none}
#qhr .qhr-faq-item>summary::-webkit-details-marker{display:none}
#qhr .qhr-faq-item>summary::after{content:"";flex:none;inline-size:10px;block-size:10px;border-inline-end:2px solid currentColor;
  border-block-end:2px solid currentColor;transform:rotate(45deg);transition:transform .2s}
#qhr .qhr-faq-item[open]>summary::after{transform:rotate(-135deg)}
#qhr .qhr-faq-item>summary:focus-visible{outline:3px solid #E5501C;outline-offset:3px;border-radius:18px}
#qhr .qhr-faq-a{padding:0 22px 18px;color:var(--muted,#4B5866)}
#qhr .qhr-faq-a p{margin:0 0 .7em}
#qhr .qhr-faq-a p:last-child{margin:0}
@media (prefers-reduced-motion:reduce){#qhr .qhr-faq-item>summary::after{transition:none}}
html.qhr-no-motion #qhr .qhr-faq-item>summary::after{transition:none}

/* ---- editor content inside the reading column: images and embeds stay in the column ---- */
#qv .prose img{max-inline-size:100%;block-size:auto}
#qv .prose .wp-block-image,#qv .prose figure.wp-caption{margin-inline:0}
#qv .prose .wp-caption-text,#qv .prose figcaption{font-size:.9em;color:var(--muted,#4B5866)}
#qv .prose iframe{max-inline-size:100%}

/* ---- WCAG 1.4.3 (contrast): the two places where small text sat on / in the brand orange (3.37:1) take the nearest
   shade of the same orange that reaches 4.5:1 (#D4420E). Nothing else changes. ---- */
#qhr .chip-label{color:#D4420E}
#qhr .qhr-wa-float{background:#D4420E}

/* "מה אומרים הלקוחות" is an h2 (the page's outline: h1 > h2); it keeps the h3 look it was designed with. */
#qhr .emp-voices h2{letter-spacing:normal}
