/* =====================================================
   אופל איטום – שכבת פרימיום + נגישות
   נטען אחרי styles.css
   ===================================================== */
:root {
  --navy: #0B2A47;
  --navy-2: #123A5E;
  --navy-line: rgba(69, 184, 209, .18);
  --gold: #F5B544;
  --grad-brand: linear-gradient(135deg, #10436E, #1679A8);
}

/* ---------- כותרות סקשן במרכז עם קווים ---------- */
.sec-head { margin-inline: auto; text-align: center; margin-bottom: 44px; }
.sec-head .eyebrow { gap: 12px; letter-spacing: .02em; }
.sec-head .eyebrow::before, .sec-head .eyebrow::after { content: ""; width: 36px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; }
.sec-head h2 { text-wrap: balance; }
.sec-head p:last-child { max-width: 60ch; margin-inline: auto; }

/* ---------- רקע בהיר עם טקסטורה עדינה ---------- */
#services { background:
  radial-gradient(900px 400px at 100% 0, rgba(22, 121, 168, .07), transparent 70%),
  radial-gradient(700px 400px at 0 100%, rgba(245, 158, 11, .05), transparent 70%), var(--white); }
#work { background: var(--bg); }

/* ---------- סקשן כהה ---------- */
.section--dark {
  position: relative; color: #E6F0F8; isolation: isolate;
  background:
    radial-gradient(800px 420px at 85% -10%, rgba(22, 121, 168, .45), transparent 65%),
    radial-gradient(600px 380px at 0% 110%, rgba(245, 158, 11, .12), transparent 70%),
    var(--navy);
}
.section--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--navy-line) 1px, transparent 1px), linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .sec-head p:last-child { color: #B9D4E8; }
.section--dark .eyebrow { color: var(--gold); }
.section--dark :focus-visible { outline-color: var(--gold); }
.section--dark.certs-sec { padding: 72px 0; }

/* ---------- מספרים ---------- */
.stats { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats li { text-align: center; padding: 18px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.stats b { display: block; font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 4px;
  background: linear-gradient(180deg, #fff, #BFE6F5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats span { font-size: .88rem; color: #B9D4E8; }

/* תעודות על רקע כהה */
.section--dark .cert { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.section--dark .cert__img { background: rgba(255, 255, 255, .06); }
.section--dark .cert__txt b { color: #fff; }
.section--dark .cert__txt span { color: #B9D4E8; }
.section--dark .cert:hover { box-shadow: 0 0 0 1px rgba(245, 181, 68, .5), 0 20px 40px rgba(0, 0, 0, .35); }
.certs { margin-inline: auto; }

/* ---------- יתרונות: כרטיסי זכוכית עם הילה ---------- */
.usp__item { position: relative; overflow: hidden; }
.usp__item::before { content: ""; position: absolute; width: 140px; height: 140px; top: -70px; left: -70px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 121, 168, .22), transparent); transition: transform .5s; }
.usp__item:hover::before { transform: scale(1.6); }
.usp__ic { background: var(--grad-brand); color: #fff; box-shadow: 0 6px 16px rgba(16, 67, 110, .25); }

/* ---------- כרטיסי שירות ---------- */
.card { border-radius: var(--r-lg); position: relative; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(140deg, var(--cta), var(--brand-2) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::after { opacity: 1; }
.card__ic { background: var(--grad-brand); }
.card__tag { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  background: rgba(11, 42, 71, .82); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .2); }
.card:first-child .card__tag { background: var(--cta); color: var(--cta-ink); border-color: transparent; }

/* ---------- שלבים בסקשן כהה ---------- */
#process .steps { gap: 22px; margin-top: 8px; }
#process .step { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: start;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; padding: 22px 20px; border-radius: var(--r-lg); backdrop-filter: blur(6px);
  transition: transform .3s, border-color .3s, background-color .3s; }
#process .step:hover { transform: translateY(-4px); border-color: rgba(245, 181, 68, .45); background: rgba(255, 255, 255, .08); }
#process .step__n { grid-row: 1 / span 2; width: 58px; height: 58px; font-size: 1.15rem; letter-spacing: .02em;
  background: var(--navy); color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 6px rgba(245, 181, 68, .08); }
#process .step.is-in .step__n { background: var(--gold); color: var(--navy); transform: none; box-shadow: 0 0 0 6px rgba(245, 181, 68, .15), 0 8px 24px rgba(245, 181, 68, .3); }
#process .step__ic { display: none; }
#process .step h3 { color: #fff; margin: 4px 0 4px; font-size: 1.15rem; }
#process .step p { color: #B9D4E8; margin: 0; }
#process .steps::before { right: 48px; top: 40px; bottom: 40px; background: linear-gradient(180deg, var(--gold), var(--brand-2)); opacity: .7; }
#process .center { margin-top: 40px; }

/* ---------- יצירת קשר: בלוקים גדולים ---------- */
.cblocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 14px; }
.cblock { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; padding: 20px 12px; border-radius: var(--r-lg);
  transition: transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.cblock:hover { transform: translateY(-4px); }
.cblock--call { background: linear-gradient(160deg, #FBBF24, var(--cta)); color: var(--cta-ink); box-shadow: 0 14px 30px rgba(245, 158, 11, .3); }
.cblock--wa { background: linear-gradient(160deg, #34E07A, #1FAF55); color: var(--wa-ink); box-shadow: 0 14px 30px rgba(37, 211, 102, .25); }
.cblock__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .35); margin-bottom: 4px; }
.cblock__ic .ic { width: 26px; height: 26px; }
.cblock__k { font-size: .9rem; font-weight: 500; }
.cblock__v { font-size: 1.2rem; font-weight: 800; }
.contact__mail { display: flex; align-items: center; gap: 8px; color: #DCEAF4; margin: 0; }
.contact__mail a { color: #fff; }
.form__req { font-size: .88rem; color: var(--ink-2); margin: 0 0 14px; }

/* ---------- פס נע עם כפתור עצירה ---------- */
.marquee { position: relative; }
.marquee__btn { position: absolute; z-index: 2; top: 50%; left: 8px; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); color: var(--brand); cursor: pointer; }
.marquee__btn .ic { width: 16px; height: 16px; }
.marquee__btn .ic--play, .marquee.is-paused .marquee__btn .ic--pause { display: none; }
.marquee.is-paused .marquee__btn .ic--play { display: block; }
.marquee.is-paused .marquee__track { animation-play-state: paused; }

/* ---------- פוטר ---------- */
.footer__links { text-align: center; margin: 24px 0 0; }
.footer__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- מעבר שיפוע לסקשן כהה ---------- */
.section--dark { clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%); padding-block: 92px; margin-block: -1px; }

/* =====================================================
   נגישות
   ===================================================== */
.a11y-btn { position: fixed; z-index: 60; left: 10px; bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #fff; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(16, 67, 110, .35); }
.a11y-btn .ic { width: 26px; height: 26px; }
.a11y-panel { position: fixed; z-index: 61; left: 10px; bottom: calc(var(--bar-h) + 74px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 20px));
  max-height: calc(100vh - 160px); overflow: auto; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.a11y-panel h2 { font-size: 1.15rem; margin: 0; }
.a11y-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button, .a11y-reset { min-height: 48px; padding: 8px; border-radius: var(--r-sm); border: 1.5px solid #CBD5E1; background: var(--bg); color: var(--brand);
  font: 700 .92rem var(--font); cursor: pointer; }
.a11y-grid button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.a11y-reset { width: 100%; margin-top: 8px; background: #fff; }
.a11y-link { display: block; text-align: center; margin-top: 10px; color: var(--brand-2); font-weight: 700; }
@media (min-width: 960px) {
  .a11y-btn { left: 24px; bottom: 100px; }
  .a11y-panel { left: 24px; bottom: 160px; }
}

/* גודל טקסט */
html.a11y-fs-1 { font-size: 112.5%; }
html.a11y-fs-2 { font-size: 125%; }
html.a11y-fs-3 { font-size: 140%; }

/* גופן קריא */
html.a11y-readable body, html.a11y-readable button, html.a11y-readable input, html.a11y-readable select { font-family: Arial, "Segoe UI", sans-serif !important; letter-spacing: .01em; word-spacing: .08em; }

/* הדגשת קישורים */
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed currentColor; outline-offset: 2px; }

/* עצירת אנימציות */
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .js .reveal, html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-still .hero__seams path, html.a11y-still .hero__plane { stroke-dashoffset: 0 !important; }

/* ניגודיות גבוהה */
html.a11y-contrast body, html.a11y-contrast .section, html.a11y-contrast .topbar, html.a11y-contrast .footer, html.a11y-contrast .marquee,
html.a11y-contrast .card, html.a11y-contrast .usp__item, html.a11y-contrast .review, html.a11y-contrast .faq details, html.a11y-contrast .step,
html.a11y-contrast .formcard, html.a11y-contrast .cert, html.a11y-contrast .stats li, html.a11y-contrast .clients li, html.a11y-contrast .mbar,
html.a11y-contrast .a11y-panel, html.a11y-contrast .note, html.a11y-contrast .hero { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast .section::before, html.a11y-contrast .hero__decor, html.a11y-contrast .hero__bg::after { display: none !important; }
html.a11y-contrast .hero__bg { opacity: .25; }
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast span,
html.a11y-contrast label, html.a11y-contrast summary, html.a11y-contrast blockquote, html.a11y-contrast b, html.a11y-contrast small,
html.a11y-contrast .faq details > div { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html.a11y-contrast a { color: #FFE600 !important; }
html.a11y-contrast a span, html.a11y-contrast button span { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
html.a11y-contrast .btn, html.a11y-contrast .cblock, html.a11y-contrast .mbar a, html.a11y-contrast button { background: #000 !important; color: #FFE600 !important; border: 2px solid #FFE600 !important; box-shadow: none !important; }
html.a11y-contrast .a11y-grid button[aria-pressed="true"] { background: #FFE600 !important; color: #000 !important; }
html.a11y-contrast input, html.a11y-contrast select { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
html.a11y-contrast :focus-visible { outline: 3px solid #FFE600 !important; }

/* ---------- טאבלט ודסקטופ ---------- */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .section--dark { clip-path: polygon(0 56px, 100% 0, 100% calc(100% - 56px), 0 100%); padding-block: 150px; }
  .section--dark.certs-sec { padding-block: 140px; }
  .stats { gap: 18px; max-width: 900px; margin: 0 auto 56px; }
  .stats li { padding: 24px 12px; }
  #process .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  #process .step { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 0 20px 26px; margin-top: 30px; }
  #process .step__n { grid-row: auto; margin-top: -30px; margin-bottom: 12px; }
  #process .step__ic { display: grid; place-items: center; color: var(--accent); margin-bottom: 6px; }
  #process .step__ic .ic { width: 26px; height: 26px; }
  #process .steps::before { top: 30px; bottom: auto; right: 12%; left: 12%; height: 2px; width: auto; background: linear-gradient(270deg, var(--gold), var(--brand-2)); }
  .cblocks { gap: 16px; }
  .cblock { padding: 26px 16px; }
}
html.a11y-contrast .brand__logo { background: #fff; border-radius: 6px; padding: 2px 4px; }
/* ניגודיות AA גם על רקע תכלת */
.eyebrow, .about__txt .eyebrow { color: #0F6189; }
.section--dark .eyebrow { color: var(--gold); }
.eyebrow--light { color: #CDEBF5; }

/* ---------- קוביות מספרים: מסגרת צבעונית ---------- */
.stats li { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 121, 168, .28), rgba(11, 42, 71, .55)); border: 0; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); transition: transform .3s; }
.stats li::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, var(--gold), rgba(69, 184, 209, .9) 55%, rgba(69, 184, 209, .2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.stats li::after { content: ""; position: absolute; top: 0; inset-inline: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); box-shadow: 0 0 14px rgba(245, 181, 68, .8); }
.stats li:hover { transform: translateY(-4px); }
.stats b { font-size: clamp(1.35rem, 4.6vw, 2rem); background: linear-gradient(180deg, #FFE3A6, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.stats span { color: #D6E6F2; line-height: 1.45; }
html.a11y-contrast .stats li::before, html.a11y-contrast .stats li::after { display: none; }
@media (min-width: 640px) { .stats b { white-space: nowrap; } }

/* ===== פלטה משודרגת (Opal Professional) ===== */
:root {
  --brand-2: #176B9B;     /* כחול משני – כהה וקריא יותר */
  --accent: #45B8D1;      /* תכלת – רק להדגשות, אייקונים וקווים */
  --bg: #F4F8FB;          /* רקע בהיר */
  --card: #E7EFF5;        /* רקע כרטיסים */
  --cta: #F4A62A;
  --cta-hover: #E8961A;
  --ink: #172B3A;
}
.review { background: var(--card); border-color: transparent; }
.usp__item { border-top: 3px solid var(--accent); }
.card__link { color: var(--brand-2); }
.faq details[open] { border-color: var(--accent); }
.ba-tab { border-color: var(--accent); }
.stats li::before { background: linear-gradient(160deg, var(--gold), var(--accent) 55%, rgba(69, 184, 209, .2)); }
.section--dark .cert:hover { box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(0, 0, 0, .35); }
#process .steps::before { background: linear-gradient(180deg, var(--gold), var(--accent)); }
@media (min-width: 960px) { #process .steps::before { background: linear-gradient(270deg, var(--gold), var(--accent)); } }
:focus-visible { outline-color: var(--brand-2); }

/* ---------- אזורי שירות בפוטר ---------- */
.footer__areas { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__h { color: #fff; font-size: 1.05rem; margin: 0 0 12px; }
.footer .areas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.footer .areas li { display: block; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(69, 184, 209, .35); color: #D6E6F2; font-size: .88rem; }
#f-city-other { margin-top: 8px; }
.field select:invalid { color: var(--ink-2); }

/* ---------- ההצעה ב-Hero ---------- */
.hero__offer { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -8px 0 22px; padding: 10px 16px; border-radius: 999px;
  background: rgba(245, 181, 68, .14); border: 1px solid rgba(245, 181, 68, .6); color: #FFE3A6; font-weight: 700; font-size: 1rem; }
.hero__offer .ic { color: var(--gold); width: 1.1em; height: 1.1em; }
.hero__offer span { color: rgba(255, 227, 166, .6); }
@media (max-width: 639px) { .hero__offer { border-radius: var(--r); font-size: .95rem; } }

/* ---------- 7 כרטיסי שירות: האחרון ברוחב מלא ---------- */
@media (min-width: 640px) and (max-width: 959px) {
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .cards > .card:last-child:nth-child(odd) .card__media { aspect-ratio: auto; height: 100%; }
}
@media (min-width: 960px) {
  .cards > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; }
  .cards > .card:last-child:nth-child(3n+1) .card__media { aspect-ratio: auto; height: 100%; min-height: 220px; }
  .cards > .card:last-child:nth-child(3n+1) .card__body { justify-content: center; padding: 32px; }
  .cards > .card:last-child:nth-child(3n+1) .card__ic { top: 24px; left: 24px; }
}

/* ---------- אחריות בכרטיס שירות ---------- */
.card__warranty { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 12px; padding: 10px 12px; border-radius: var(--r-sm);
  background: var(--card); color: var(--brand); font-size: .9rem; font-weight: 700; line-height: 1.45; flex: none !important; }
.card__warranty .ic { color: var(--brand-2); flex: none; margin-top: 2px; }

/* ---------- קוביות: הטקסט תמיד נכנס לרוחב הקובייה ---------- */
.stats li { container-type: inline-size; padding-inline: 10px; }
.stats b { white-space: nowrap; font-size: clamp(1.05rem, 15cqi, 2rem); }
@media (min-width: 640px) { .stats b { white-space: nowrap; } }

/* ---------- סרטונים ---------- */
.vids { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; margin-inline: auto; }
.vid { position: relative; display: block; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 9 / 16; background: var(--navy); cursor: pointer; box-shadow: var(--sh-2); font: inherit; color: #fff; }
.vid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 42, 71, 0) 45%, rgba(11, 42, 71, .88)); pointer-events: none; }
.vid:hover img { transform: scale(1.04); }
.vid__play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cta); color: var(--cta-ink); box-shadow: 0 0 0 8px rgba(244, 166, 42, .3), 0 10px 26px rgba(0, 0, 0, .35); transition: transform .25s; }
.vid__play .ic { width: 26px; height: 26px; fill: currentColor; margin-inline-start: 4px; }
.vid:hover .vid__play { transform: translate(-50%, -50%) scale(1.08); }
.vid__cap { position: absolute; z-index: 2; inset: auto 12px 14px; display: grid; gap: 2px; text-align: right; }
.vid__cap b { font-size: 1.02rem; }
.vid__cap span { font-size: .85rem; color: #D6E6F2; }
.vid--on { cursor: auto; }
.vid--on::after { display: none; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 639px) { .vid__play { width: 52px; height: 52px; } .vid__cap b { font-size: .92rem; } }
@media (min-width: 960px) { .vids { gap: 24px; max-width: 720px; } }
