/* Prologic redesign - shared base: containers, type helpers, buttons, links.
   Everything is namespaced with "ph-" so nothing leaks into existing page styles.
   main.css forces `font-family ... !important` on every element and
   `text-decoration: none !important` on links, so those two properties
   need !important here to take effect. */

/* main.css sets the font on every element type with !important, which beats inheritance.
   Inside the new components every element inherits instead, so each component sets its font once. */
.ph-header *,
.ph-footer *,
.ph-home * {
    font-family: inherit !important;
}

.ph-header,
.ph-footer,
.ph-home {
    font-family: var(--font-body) !important;
}

/* The local bootstrap.min.css adds `p { letter-spacing: .5px }`; Figma uses 0 everywhere except the eyebrow */
:where(.ph-header, .ph-footer, .ph-home) p {
    letter-spacing: normal;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Anchored headings land below the floating header on every page */
[id] {
    scroll-margin-top: calc(var(--header-offset) + 16px);
}

.ph-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ph-container {
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--gutter);
    box-sizing: border-box;
}

.ph-header *,
.ph-footer *,
.ph-home * {
    box-sizing: border-box;
}

/* Section eyebrow: small label + square bullet ("TECHNOLOGY SOLUTIONS ▣") */
.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--font-label) !important;
    font-size: var(--fs-eyebrow);
    font-weight: var(--fw-eyebrow);
    letter-spacing: var(--ls-eyebrow);
    line-height: normal;
    color: var(--color-orange-label);
    white-space: nowrap;
}

.ph-eyebrow::after {
    content: "";
    flex: none;
    width: 12.118px;
    height: 12.118px;
    border-radius: 1.478px;
    background:
        linear-gradient(var(--color-orange-dot), var(--color-orange-dot)) 3px 3px / 6.118px 6.118px no-repeat,
        var(--color-orange-dot-halo);
}

.ph-h2 {
    margin: 0;
    font-family: var(--font-heading) !important;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    font-weight: var(--fw-h2);
    color: var(--color-ink);
}

.ph-accent {
    color: var(--color-orange);
}

/* "Component 20" - orange pill button with a white arrow badge.
   Hover variant (Component 19): white fill, orange border + text. */
.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 10px 20px;
    border: 1px solid var(--color-orange);
    border-radius: var(--radius-btn);
    background: var(--color-orange);
    color: var(--color-white) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--fs-btn);
    line-height: var(--lh-btn);
    font-weight: var(--fw-btn);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--dur-hover) var(--ease-out), color var(--dur-hover) var(--ease-out);
}

.ph-btn:hover,
.ph-btn:focus-visible {
    background: var(--color-white);
    color: var(--color-orange) !important;
}

.ph-btn__icon {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: box-shadow var(--dur-hover) var(--ease-out);
}

.ph-btn:hover .ph-btn__icon,
.ph-btn:focus-visible .ph-btn__icon {
    box-shadow: 0 0 0 1px var(--color-orange);
}

/* "Component 62" - orange text link with a left arrow ("קרא עוד").
   Hover variant (Frame 548): underline, gap 17 -> 19px. */
.ph-more {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    padding: 10px;
    color: var(--color-orange) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--fs-btn);
    line-height: var(--lh-btn);
    font-weight: var(--fw-btn);
    white-space: nowrap;
    transition: gap var(--dur-hover) var(--ease-out);
}

.ph-more__icon {
    flex: none;
    width: 24px;
    height: 24px;
}

.ph-more--lg .ph-more__icon {
    width: 32px;
    height: 32px;
}

a.ph-more:hover,
a.ph-more:focus-visible,
a:hover .ph-more,
a:focus-visible .ph-more {
    gap: 19px;
}

a.ph-more:hover .ph-more__text,
a.ph-more:focus-visible .ph-more__text,
a:hover .ph-more .ph-more__text,
a:focus-visible .ph-more .ph-more__text {
    text-decoration: underline !important;
    text-decoration-skip-ink: auto;
}

/* Keyboard focus stays visible on every new interactive element */
.ph-header a:focus-visible,
.ph-header button:focus-visible,
.ph-footer a:focus-visible,
.ph-home a:focus-visible,
.ph-home button:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 3px;
}

/* Legacy side forms (#PopupForm "שלח קו״ח" / contact) - visual fixes only.
   main.css fixes the panels at 390/405px high below 1360px, so the privacy notice
   (20px, set inline) spilled out under the coloured panel. */
@media (max-width: 1360px) {
    .pollSlider,
    .pollSliderNew {
        height: auto !important;
        max-height: calc(100vh - 246px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

.pollSlider .privacy,
.pollSliderNew .privacy,
.pollSlider .privacy p,
.pollSliderNew .privacy p {
    font-size: 14px !important;
    line-height: 1.45;
}

.pollSlider .privacy a,
.pollSliderNew .privacy a {
    color: #fff !important;
    font-weight: 700;
}

/* Anti-spam honeypot fields are hidden inline with `left:-9999px`, which in RTL made pages
   with in-page forms (e.g. /contact) about 10,000px wide with a sideways scrollbar.
   Keep them in the form (Spamguard still reads them) but clip them in place instead. */
input.emailHidden {
    left: 0 !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
    clip-path: inset(50%);
    pointer-events: none;
}

@media (max-width: 991px) {
    .ph-h2 {
        font-size: 36px;
        line-height: 46px;
    }

    .ph-btn,
    .ph-more {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ph-h2 {
        font-size: 30px;
        line-height: 40px;
    }
}
