/* ============================================================
   Friedman Transcript — shared site layer
   Multi-page menu, mobile nav, accessibility, cookie banner
   Loaded on every page on top of each page's own stylesheet.
   ============================================================ */

:root{
  --ft-navy:#1a2740;
  --ft-orange:#ed8260;
  --ft-teal:#2bb5a0;
  --ft-ink:#1a2740;
  --ft-white:#ffffff;
  --ft-shadow:0 10px 30px rgba(26,39,64,.12);
  --ft-font:"Open Sans",system-ui,"Segoe UI",Arial,sans-serif;
}

/* ---- Open Sans across the entire site ---- */
html,body,button,input,select,textarea,
.ft-article,.legal,.ft-hero,.ft-faq,.ft-cta-band{
  font-family:var(--ft-font);
}

/* ---- kill horizontal overflow (the off-canvas mobile nav must not create
   a sideways scroll / push content; clip keeps position:sticky working) ---- */
html{overflow-x:clip;}
body{overflow-x:clip;max-width:100%;}

/* ---- Accessibility: skip link ---- */
.ft-skip{
  position:absolute;inset-inline-start:-9999px;top:0;z-index:9999;
  background:var(--ft-navy);color:#fff;padding:12px 18px;border-radius:0 0 10px 0;
  font-weight:700;text-decoration:none;
}
.ft-skip:focus{inset-inline-start:0;}

/* ---- Visible keyboard focus everywhere (a11y) ---- */
a:focus-visible,button:focus-visible,
[tabindex]:focus-visible,.ft-menu a:focus-visible{
  outline:3px solid var(--ft-orange);outline-offset:2px;border-radius:6px;
}

/* ============================================================
   SHARED HEADER / MENU
   ============================================================ */
.ft-header{
  position:sticky;top:0;z-index:1000;background:#fff;
  /* NO backdrop-filter: on iOS the position:sticky + blur combo repaints
     badly on scroll — it dropped the middle hamburger line (so ☰ looked
     like an X / 2 sticks) and broke the burger's tap target. A solid
     background renders and stays interactive on every browser. */
  border-bottom:1px solid rgba(26,39,64,.08);box-shadow:0 2px 14px rgba(26,39,64,.06);
  /* NO transform/translateZ here: a transform turns .ft-header into the
     containing block for its position:fixed descendant (.ft-nav, the mobile
     menu overlay), so opening the menu while scrolled threw the overlay
     off-screen (top:-1736 at scrollY 1800). Sticky needs no transform now
     that backdrop-filter is gone. */
}
.ft-header__inner{
  max-width:1200px;margin-inline:auto;padding:7px 20px;
  display:flex;align-items:center;gap:12px;justify-content:space-between;
}
.ft-brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ft-navy);}
.ft-brand__mark{width:36px;height:36px;flex:0 0 auto;}
.ft-brand__mark svg{width:36px;height:36px;}
.ft-brand__name{font-weight:800;font-size:.98rem;line-height:1.1;color:var(--ft-navy);}
.ft-brand__sub{display:block;font-size:.68rem;color:#5a6b86;font-weight:600;margin-top:1px;}

.ft-nav{display:flex;align-items:center;gap:4px;}
.ft-menu{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0;}
.ft-menu>li{position:relative;}
.ft-menu>li>a,.ft-menu>li>button{
  display:inline-flex;align-items:center;gap:5px;
  font:inherit;font-weight:600;font-size:.86rem;color:var(--ft-navy);
  background:none;border:0;cursor:pointer;text-decoration:none;
  padding:8px 9px;border-radius:9px;white-space:nowrap;
}
.ft-menu>li>a:hover,.ft-menu>li>button:hover,
.ft-menu>li[aria-current] >a{color:var(--ft-orange);background:rgba(237,130,96,.08);}
.ft-menu .caret{width:12px;height:12px;transition:transform .2s;}
.ft-menu>li.open .caret{transform:rotate(180deg);}
/* "all services" link → master hub, made prominent */
.ft-menu__hub>a{
  color:var(--ft-teal)!important;font-weight:800;
  border:1.5px solid var(--ft-teal);border-radius:9px;
}
.ft-menu__hub>a:hover{background:var(--ft-teal)!important;color:#fff!important;}

/* dropdowns */
.ft-sub{
  position:absolute;inset-inline-end:0;top:calc(100% + 6px);min-width:260px;
  background:#fff;border:1px solid rgba(26,39,64,.1);border-radius:14px;
  box-shadow:var(--ft-shadow);padding:8px;list-style:none;margin:0;
  opacity:0;visibility:hidden;transform:translateY(6px);transition:.16s;
  max-height:70vh;overflow:auto;
}
.ft-menu>li:hover>.ft-sub,.ft-menu>li.open>.ft-sub,.ft-menu>li:focus-within>.ft-sub{
  opacity:1;visibility:visible;transform:translateY(0);
}
.ft-sub a{
  display:block;padding:9px 12px;border-radius:9px;text-decoration:none;
  color:var(--ft-navy);font-weight:600;font-size:.9rem;
}
.ft-sub a:hover{background:rgba(43,181,160,.1);color:var(--ft-navy);}
/* second level inside a dropdown: parent link stays a normal item, its children sit
   right under it, indented, smaller, with a hairline rail — reads as "belongs to" without
   a third hover panel (which would be unusable on touch). Mobile inherits the same shape. */
.ft-sub__parent>a{font-weight:700;}
.ft-sub__kids{
  list-style:none;margin:2px 0 6px;padding:0;
  /* logical "start" = the right edge in this RTL site: the rail sits where the
     indent is, so the eye reads the children as hanging off the parent */
  margin-inline-start:14px;padding-inline-start:12px;
  border-inline-start:2px solid rgba(43,181,160,.35);
}
.ft-sub__kids a{font-weight:500;font-size:.84rem;padding:7px 10px;color:var(--ft-navy);opacity:.88;}
.ft-sub__kids a:hover{opacity:1;}

.ft-header__phone{
  display:inline-flex;align-items:center;gap:7px;background:var(--ft-orange);color:#fff;
  padding:9px 16px;border-radius:999px;text-decoration:none;font-weight:800;font-size:.9rem;
  box-shadow:0 0 0 0 rgba(237,130,96,.55);
  animation:ftPhonePulse 2.6s ease-in-out infinite;
}
.ft-header__phone svg{width:16px;height:16px;transform-origin:center;
  animation:ftPhoneWiggle 3.2s ease-in-out infinite;}
.ft-header__phone:hover{background:#e06f49;transform:translateY(-1px);}
@keyframes ftPhonePulse{
  0%{box-shadow:0 0 0 0 rgba(237,130,96,.5);}
  60%{box-shadow:0 0 0 9px rgba(237,130,96,0);}
  100%{box-shadow:0 0 0 0 rgba(237,130,96,0);}
}
/* very gentle continuous tiny rotation + a soft "ring" twinkle for the phone icon */
@keyframes ftPhoneWiggle{
  0%,70%,100%{transform:rotate(-5deg);}
  80%{transform:rotate(5deg);}
  90%{transform:rotate(-3deg);}
}

/* ============================================================
   ACCESSIBILITY WIDGET (כלי נגישות) — IS-5568 / WCAG
   ============================================================ */
.ft-a11y-toggle{
  position:fixed;inset-inline-start:16px;bottom:16px;z-index:1600;
  width:54px;height:54px;border-radius:50%;border:0;cursor:pointer;
  background:var(--ft-navy);color:#fff;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 22px rgba(0,0,0,.25);transition:transform .15s,background .15s;
}
.ft-a11y-toggle svg{width:30px;height:30px;}
.ft-a11y-toggle:hover,.ft-a11y-toggle:focus-visible{transform:scale(1.07);background:#243454;}
.ft-a11y{
  position:fixed;inset-inline-start:16px;bottom:80px;z-index:1600;width:300px;max-width:calc(100vw - 32px);
  background:#fff;border:1px solid rgba(26,39,64,.14);border-radius:16px;
  box-shadow:0 18px 44px rgba(26,39,64,.24);padding:16px;
}
.ft-a11y[hidden]{display:none;}
.ft-a11y__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.ft-a11y__head h2{margin:0;font-size:1.1rem;color:var(--ft-navy);}
.ft-a11y__close{background:none;border:0;font-size:1.7rem;line-height:1;cursor:pointer;color:var(--ft-navy);padding:0 4px;}
.ft-a11y__grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.ft-a11y__btn{
  border:1px solid rgba(26,39,64,.15);background:#f6f8fb;border-radius:10px;cursor:pointer;
  padding:11px 8px;font-weight:700;font-size:.86rem;color:var(--ft-navy);text-align:center;
  transition:background .12s,border-color .12s;
}
.ft-a11y__btn:hover{background:#eef2f8;}
.ft-a11y__btn[aria-pressed="true"]{background:var(--ft-navy);color:#fff;border-color:var(--ft-navy);}
.ft-a11y__reset{
  width:100%;margin-top:10px;border:0;cursor:pointer;border-radius:10px;padding:11px;
  background:var(--ft-orange);color:#fff;font-weight:800;font-size:.9rem;
}
.ft-a11y__note{margin:12px 0 0;font-size:.8rem;color:#5a6b86;text-align:center;}
.ft-a11y__note a{color:var(--ft-orange);font-weight:700;}
@media (max-width:560px){
  body.ft-cookie-open .ft-a11y-toggle{bottom:188px;}
  body.ft-cookie-open .ft-a11y{bottom:252px;}
}

/* ---- accessibility option effects (applied to <html>) ---- */
html.a11y-font-1 body{font-size:112%;}
html.a11y-font-2 body{font-size:125%;}
html.a11y-font-3 body{font-size:140%;}
html.a11y-contrast body{filter:contrast(1.35);}
html.a11y-invert{filter:invert(1) hue-rotate(180deg);}
html.a11y-invert img,html.a11y-invert video{filter:invert(1) hue-rotate(180deg);}
html.a11y-links a{text-decoration:underline!important;outline:2px solid var(--ft-orange);outline-offset:1px;}
html.a11y-readable body,html.a11y-readable body *{font-family:Arial,"Segoe UI",sans-serif!important;letter-spacing:.2px;}
html.a11y-bigcursor,html.a11y-bigcursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.5' d='M5 2l14 7-6 2 3.5 7-2.5 1.2L11 13l-6 4z'/%3E%3C/svg%3E") 4 2,auto;}
html.a11y-stopmotion *{animation:none!important;transition:none!important;scroll-behavior:auto!important;}

/* hamburger */
.ft-burger{display:none;background:none;border:0;cursor:pointer;padding:8px;border-radius:8px;position:relative;z-index:1;-webkit-transform:translateZ(0);transform:translateZ(0);}
.ft-burger span{display:block;width:24px;height:2.5px;background:var(--ft-navy);margin:5px 0;border-radius:2px;flex:0 0 auto;transition:transform .25s,opacity .25s;}
.ft-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg);}
.ft-burger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.ft-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg);}

/* ---- mobile ---- */
@media (max-width:980px){
  .ft-burger{display:block;}
  /* full-screen dropdown panel — fade/visibility only (NO transform: a
     translateX off-canvas panel created horizontal overflow + clipped the
     page titles and, under RTL, its open-state transform failed to apply). */
  .ft-nav{
    position:fixed;top:64px;left:0;right:0;bottom:0;
    height:calc(100dvh - 64px);max-height:calc(100dvh - 64px);
    z-index:90;background:#fff;flex-direction:column;
    align-items:stretch;gap:0;padding:14px 18px 40px;overflow-y:auto;overflow-x:hidden;
    opacity:0;visibility:hidden;pointer-events:none;
    box-shadow:0 18px 40px rgba(26,39,64,.16);
    transition:opacity .22s ease,visibility .22s ease;
  }
  .ft-nav.is-open{opacity:1;visibility:visible;pointer-events:auto;}
  .ft-menu{flex-direction:column;align-items:stretch;gap:0;width:100%;}
  .ft-menu>li>a,.ft-menu>li>button{width:100%;justify-content:space-between;padding:14px 8px;font-size:1.05rem;border-bottom:1px solid rgba(26,39,64,.07);}
  .ft-sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;
    max-height:0;overflow:hidden;padding:0 0 0 14px;transition:max-height .25s;}
  .ft-menu>li.open>.ft-sub{max-height:1000px;padding:4px 0 10px 14px;}
  .ft-header__phone{margin-top:16px;justify-content:center;}
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.ft-cookie{
  position:fixed;inset-inline:16px;bottom:16px;z-index:2000;max-width:520px;margin-inline:auto;
  background:#fff;border:1px solid rgba(26,39,64,.12);border-radius:16px;box-shadow:var(--ft-shadow);
  padding:18px 20px;display:none;
}
.ft-cookie.show{display:block;animation:ftSlide .35s ease;}
@keyframes ftSlide{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
.ft-cookie p{margin:0 0 12px;color:var(--ft-navy);font-size:.9rem;line-height:1.6;}
.ft-cookie a{color:var(--ft-orange);font-weight:700;}
.ft-cookie__row{display:flex;gap:10px;flex-wrap:wrap;}
.ft-cookie__btn{
  flex:1;min-width:120px;border:0;cursor:pointer;border-radius:10px;padding:11px 14px;
  font-weight:800;font-size:.9rem;
}
.ft-cookie__btn--accept{background:var(--ft-orange);color:#fff;}
.ft-cookie__btn--decline{background:rgba(26,39,64,.08);color:var(--ft-navy);}

/* ---------- Footer ---------- */
.ft-footer{background:var(--ft-navy,#1a2740);color:#e7edf6;margin-top:0;position:relative;}
/* animated brand-gradient strip replaces the dead white gap above the footer */
.ft-footer::before{
  content:"";display:block;height:6px;
  background:linear-gradient(90deg,#1a2740,#2bb5a0 22%,#ed8260 50%,#2bb5a0 78%,#1a2740);
  background-size:200% 100%;animation:ftFlow 7s linear infinite;
}
@keyframes ftFlow{0%{background-position:0 0}100%{background-position:200% 0}}
@media (prefers-reduced-motion:reduce){.ft-footer::before{animation:none}}
.ft-footer__inner{
  max-width:1180px;margin-inline:auto;padding:44px 22px 28px;
  display:grid;gap:30px;grid-template-columns:1.7fr 1fr 1fr 1.4fr;
}
.ft-footer__col h3{font-size:1rem;font-weight:800;color:#fff;margin:0 0 14px;}
.ft-footer__col ul{list-style:none;margin:0;padding:0;}
.ft-footer__col li{margin:0 0 9px;}
.ft-footer__col a{color:#cdd7e6;text-decoration:none;font-size:.95rem;transition:color .15s;}
.ft-footer__col a:hover{color:#fff;text-decoration:underline;}
.ft-footer__col--brand p{color:#aebbcf;line-height:1.7;font-size:.95rem;margin:0;max-width:38ch;}
/* footer logo */
.ft-footer__logo{display:inline-flex;align-items:center;gap:11px;text-decoration:none;margin-bottom:14px;}
.ft-footer__logo .ft-logo-svg{width:46px;height:46px;flex:0 0 auto;}
.ft-footer__logo-text{display:flex;flex-direction:column;line-height:1.15;color:#fff;font-weight:800;font-size:1.18rem;}
.ft-footer__logo-text small{font-weight:600;font-size:.72rem;color:#9fb0c8;margin-top:2px;}
/* footer contact list */
.ft-footer__contact li{display:flex;align-items:flex-start;gap:9px;margin:0 0 11px;color:#cdd7e6;font-size:.93rem;line-height:1.5;}
.ft-footer__contact a{color:#cdd7e6;}
.ft-footer__contact .ft-fi{width:18px;height:18px;flex:0 0 auto;color:var(--ft-orange);margin-top:1px;}
.ft-footer__bottom{
  border-top:1px solid rgba(255,255,255,.12);text-align:center;
  padding:18px 22px;color:#9fb0c8;font-size:.85rem;
}
@media (max-width:920px){
  .ft-footer__inner{grid-template-columns:1fr 1fr;gap:26px;}
}
@media (max-width:560px){
  .ft-footer__inner{grid-template-columns:1fr;gap:22px;}
}

/* ---------- Floating WhatsApp button (desktop + mobile, every page) ---------- */
.ft-wa-wrap{
  position:fixed;inset-inline-end:18px;bottom:18px;z-index:1590;
  display:flex;flex-direction:column;align-items:center;gap:7px;
}
.ft-wa-note{
  background:#fff;color:#1a2740;font-weight:800;font-size:.72rem;line-height:1;
  padding:6px 11px;border-radius:999px;box-shadow:0 4px 14px rgba(0,0,0,.18);
  white-space:nowrap;border:1px solid rgba(26,39,64,.08);
}
.ft-wa-fab{
  width:60px;height:60px;background:#25d366;color:#fff;border-radius:50%;
  display:flex;align-items:center;justify-content:center;text-decoration:none;
  box-shadow:0 10px 26px rgba(37,211,102,.45);
  animation:waGlow 8s ease-in-out infinite;transition:transform .15s;
}
.ft-wa-fab svg{width:33px;height:33px;}
.ft-wa-fab:hover,.ft-wa-fab:focus-visible{transform:scale(1.07);}
/* sticky call button — mobile only (header phone is behind the burger there) */
.ft-call-fab{display:none;width:54px;height:54px;background:var(--ft-orange,#ed8260);color:#fff;
  border-radius:50%;align-items:center;justify-content:center;text-decoration:none;
  box-shadow:0 10px 26px rgba(237,130,96,.45);transition:transform .15s;transform-origin:center;}
/* shake is triggered by JS every ~15 min (not a constant CSS loop) */
.ft-call-fab.shake{animation:ftCallShake 1.1s ease-in-out;}
.ft-call-fab svg{width:26px;height:26px;}
.ft-call-fab:hover,.ft-call-fab:focus-visible{transform:scale(1.07);animation-play-state:paused;}
@media (max-width:760px){.ft-call-fab{display:flex;}}
/* attention "shake" — a quick wiggle, fired by JS every ~15 min */
@keyframes ftCallShake{
  0%,100%{transform:translateX(0) rotate(0);}
  15%{transform:translateX(-3px) rotate(-13deg);}
  30%{transform:translateX(3px) rotate(11deg);}
  45%{transform:translateX(-3px) rotate(-9deg);}
  60%{transform:translateX(2px) rotate(7deg);}
  75%{transform:translateX(-2px) rotate(-5deg);}
  88%{transform:translateX(1px) rotate(3deg);}
}
/* social-pill icons: the plain (WhatsApp) pill had no icon-size rule on some
   pages (only .linkedin/.google were sized) so its SVG rendered huge ("mashing"). */
.social-pill .icn{flex:0 0 auto;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;}
.social-pill .icn svg{width:18px;height:18px;display:block;}
/* Premium translation/document heroes wrapped BOTH the text and the hero video in
   one grid child, so the 2-column .hero__grid left its 2nd column empty and the
   video was stranded at the bottom (not aligned left like the rest of the site).
   :only-child matches ONLY those single-child heroes, so the homepage (two grid
   children) and the content-page heroes are untouched. */
.hero__grid > div:only-child{
  grid-column:1 / -1;            /* span full hero width */
  display:grid;
  grid-template-columns:1fr clamp(300px,33%,380px);  /* RTL: text right, video left */
  column-gap:clamp(24px,4vw,56px);row-gap:0;
  align-items:center;
}
.hero__grid > div:only-child > .video-wrap{ grid-column:2; grid-row:1 / 99; align-self:center; margin:0; }
.hero__grid > div:only-child > :not(.video-wrap){ grid-column:1; }
@media (max-width:860px){
  .hero__grid > div:only-child{ grid-template-columns:1fr; }
  .hero__grid > div:only-child > .video-wrap{ grid-column:1; grid-row:auto; margin-inline:auto; }
}
/* Other premium templates put the hero video (+ phone-card + socials) as SEPARATE
   direct children of .hero__grid, so they auto-flowed into the wrong cells (video
   stranded on the right/bottom). Group all media into the left column, text right.
   Scoped via :has(> .fvvid) so it ONLY matches these pages (not homepage/hungarian). */
.hero__grid:has(> .fvvid){ grid-template-columns:1fr clamp(300px,34%,400px) !important; column-gap:clamp(24px,4vw,56px);row-gap:0; align-items:start; }
.hero__grid:has(> .fvvid) > .fvvid,
.hero__grid:has(> .fvvid) > .hero__phone-card,
.hero__grid:has(> .fvvid) > .photo-socials{ grid-column:2 !important; }
.hero__grid:has(> .fvvid) > :not(.fvvid):not(.hero__phone-card):not(.photo-socials){ grid-column:1 !important; grid-row:1 / 99; }
@media (max-width:860px){
  .hero__grid:has(> .fvvid){ grid-template-columns:1fr !important; }
  .hero__grid:has(> .fvvid) > *{ grid-column:1 !important; grid-row:auto !important; }
}
/* Book-trailer cards: video plays inline on click (fills the card over the cover) */
.trailer-card{ position:relative; }
.trailer-card__video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#000; z-index:6; border-radius:inherit; }
.trailer-card.is-playing .trailer-card__cover,
.trailer-card.is-playing .trailer-card__cover-fg,
.trailer-card.is-playing .trailer-card__bg,
.trailer-card.is-playing .trailer-card__play{ opacity:0; pointer-events:none; }
@media (prefers-reduced-motion:reduce){.ft-call-fab{animation:none;}}
/* glow green once every 8 seconds */
@keyframes waGlow{
  0%,82%,100%{box-shadow:0 10px 26px rgba(37,211,102,.45),0 0 0 0 rgba(37,211,102,.55);}
  90%{box-shadow:0 10px 26px rgba(37,211,102,.5),0 0 26px 9px rgba(37,211,102,.85),0 0 0 13px rgba(37,211,102,0);}
}
@media (max-width:560px){
  body.ft-cookie-open .ft-wa-wrap{bottom:200px;}
  .ft-wa-fab{width:54px;height:54px;}
  .ft-wa-fab svg{width:30px;height:30px;}
}
@media (prefers-reduced-motion:reduce){.ft-wa-fab{animation:none;}}

/* ---------- Site map / directory (/map/) ---------- */
.ft-dir{max-width:1140px;margin-inline:auto;padding:34px 22px 50px;}
.ft-dir__group{margin-bottom:38px;}
.ft-dir__group h2{
  font-size:1.35rem;color:var(--ft-navy,#1a2740);margin:0 0 16px;
  padding-bottom:8px;border-bottom:2px solid var(--ft-orange,#ed8260);
}
.ft-dir__count{color:#7a879c;font-weight:600;font-size:.95rem;}
.ft-dir__list{
  list-style:none;margin:0;padding:0;
  display:grid;gap:8px 22px;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
}
.ft-dir__list li{margin:0;}
.ft-dir__list a{
  display:block;color:var(--ft-navy,#1a2740);text-decoration:none;
  padding:8px 12px;border-radius:9px;font-size:.95rem;line-height:1.4;
  border:1px solid rgba(26,39,64,.08);background:#fff;transition:background .12s,border-color .12s;
}
.ft-dir__list a:hover{background:#f4f7fb;border-color:var(--ft-orange,#ed8260);}

/* ---------- Contact form status message ---------- */
.contact-form__status{
  margin:14px 0 0;padding:12px 14px;border-radius:10px;font-weight:700;font-size:.95rem;line-height:1.5;
}
.contact-form__status.is-ok{background:rgba(37,211,102,.14);color:#0b6b34;border:1px solid rgba(37,211,102,.35);}
.contact-form__status.is-err{background:rgba(237,130,96,.14);color:#9b3d1e;border:1px solid rgba(237,130,96,.4);}

/* reduce-motion respect */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms!important;transition-duration:.001ms!important;}
}

/* spec-card is now a link to its category hub — reset anchor styling */
a.spec-card{color:inherit;text-decoration:none;cursor:pointer;}
a.spec-card:hover,a.spec-card:focus{text-decoration:none;color:inherit;}
a.spec-card .spec-body .more{color:#ed8260;}
a.spec-card:hover .spec-body .more{text-decoration:underline;}

/* FIX: stray gray pill near logo = the burger was rendering on desktop.
   Hard-hide it off-mobile with high specificity; show only <=980px. */
header.ft-header button.ft-burger{display:none;-webkit-appearance:none;appearance:none;}
@media (max-width:980px){
  header.ft-header button.ft-burger{display:flex;flex-direction:column;align-items:center;justify-content:center;background:none;border:0;}
}

/* TrustIndex live Google-reviews widget — centered & spaced, hidden until it loads */
.ft-trustindex{max-width:1140px;margin:22px auto 6px;padding:0 22px;}
.ft-trustindex:empty{display:none;margin:0;padding:0;}
.ft-trustindex .ti-widget{margin-inline:auto;}

/* inline phone numbers in body / FAQ — clickable tel: link with a small icon */
.ft-tel{display:inline-flex;align-items:center;gap:5px;color:var(--ft-orange,#ed8260);font-weight:800;text-decoration:none;white-space:nowrap;direction:ltr;unicode-bidi:isolate;vertical-align:baseline;}
.ft-tel:hover,.ft-tel:focus-visible{text-decoration:underline;}
.ft-tel__i{width:15px;height:15px;flex:0 0 auto;}

/* ---------- FAQ accordion (shared: content + premium pages) ---------- */
.ft-faq{background:#eef4fb;padding:48px 22px 56px;margin:0;}
.ft-faq h2{font-size:1.6rem;color:#1a2740;margin:0 auto 18px;max-width:820px;font-weight:800;}
.ft-faq details{max-width:820px;margin:0 auto 12px;border:1px solid rgba(26,39,64,.1);border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 4px 14px rgba(26,39,64,.05);}
.ft-faq summary{list-style:none;cursor:pointer;padding:16px 18px;font-weight:800;color:#1a2740;font-size:1.05rem;display:flex;justify-content:space-between;align-items:center;gap:12px;font-family:var(--ft-font);}
.ft-faq summary::-webkit-details-marker{display:none;}
.ft-faq summary::after{content:"+";font-size:1.5rem;color:#ed8260;font-weight:700;line-height:1;transition:transform .2s;}
.ft-faq details[open] summary::after{transform:rotate(45deg);}
.ft-faq .faq-a{padding:0 18px 18px;color:#33425e;line-height:1.75;font-family:var(--ft-font);}

/* contact form: file upload + JumboMail + confidentiality */
.contact-upload{display:flex;flex-direction:column;gap:11px;margin:10px 0 16px;text-align:start;}
/* styled file picker (hides the ugly native input) — matches the other fields */
.ft-file{display:flex;align-items:center;gap:13px;background:#fff;border-radius:14px;padding:8px 8px 8px 16px;cursor:pointer;border:1.5px solid rgba(26,39,64,.1);box-shadow:0 3px 12px rgba(26,39,64,.08);transition:border-color .15s,box-shadow .15s;}
.ft-file:hover{border-color:var(--ft-orange);box-shadow:0 6px 18px rgba(237,130,96,.18);}
.ft-file input[type=file]{position:absolute!important;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0);}
.ft-file__btn{display:inline-flex;align-items:center;gap:7px;background:var(--ft-orange);color:#fff;font-weight:800;font-size:.92rem;padding:11px 17px;border-radius:10px;white-space:nowrap;flex:0 0 auto;}
.ft-file__btn svg{width:17px;height:17px;}
.ft-file:hover .ft-file__btn{background:#e06f49;}
.ft-file__name{color:#56657f;font-size:.92rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:rtl;}
.ft-file__name.has{color:#1a2740;font-weight:800;}
/* meta row: JumboMail link + confidentiality (sits on the dark form → light accents) */
.contact-upload__meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;justify-content:space-between;}
.contact-upload__big{color:#ffc4ad;font-weight:800;font-size:.86rem;text-decoration:none;}
.contact-upload__big:hover{text-decoration:underline;color:#fff;}
.contact-upload__secure{display:inline-flex;align-items:center;gap:6px;color:#3fe0c0;font-weight:800;font-size:.86rem;}
.contact-upload__secure svg{width:15px;height:15px;}

/* ======================================================================
   Very gentle "tapet" texture (kept LAST so it layers over every section's
   own colour without being reset by a later `background:` shorthand).
   A barely-there dot grid: light bands get faint navy dots, dark/colour
   bands get faint white dots. Background-image only → colours are preserved.
   ====================================================================== */
:root{
  --ft-tex-dark:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%231a2740' fill-opacity='0.05'/%3E%3C/svg%3E");
  --ft-tex-light:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}
/* light bands → faint navy dots */
body,
.section--paper,.section--sky,.section--soft,
.ft-faq,.ft-rev,.legal,.logos--soft{
  background-image:var(--ft-tex-dark);
}
/* dark / colour bands → faint white dots */
.section--navy,.section--orange,
.ft-cta-band,.ft-footer,
form.contact-form,.contact-form{
  background-image:var(--ft-tex-light);
}

/* On mobile the floating decorative hero dots (orange/teal/yellow circles)
   collided with the page title and read as stray "characters". They're pure
   decoration, so drop them on small screens — desktop keeps them, and the
   gentle dot-grid texture above still gives every screen subtle character. */
@media (max-width:980px){
  .dot-decor{display:none !important;}
}

/* ============================================================================
   RESPONSIVE SAFETY NET — phones 320px → 480px.
   Guarantees nothing forces the page wider than the screen and pulls every
   decorative pop-out back inside the viewport. Scoped to ≤600px so tablet and
   desktop layouts are completely untouched. Loaded last → wins the cascade.
   Verified target widths: 360 (Galaxy S/A, Xiaomi), 390-393 (iPhone 13-16,
   Redmi, POCO), 402-440 (iPhone 16 Pro / Pro Max, S25 Ultra).
   ============================================================================ */
@media (max-width:600px){
  /* 1 · media & embeds never exceed their column */
  img,svg,video,iframe,canvas,object,embed,table{max-width:100% !important;}
  iframe{width:100% !important;}

  /* 2 · flex / grid items must be allowed to shrink below their content size
        (min-width:auto on a flex/grid child is the #1 cause of side-overflow) */
  .unified__grid>*,.unified__left>*,.unified__right>*,
  .hero__grid>*,.ft-hero__wrap>*,.ft-hero__col>*,.itamar__grid>*,
  .ft-cta-row>*,.hero__cta>*,.hero-card__channels>*,
  [class$="__grid"]>*{min-width:0;}

  /* 3 · inline-flex "content-sized" cards → full-width and wrappable */
  .hero__phone-card,.hero-card__phone{
    display:flex;max-width:100%;flex-wrap:wrap;justify-content:center;text-align:center;
  }

  /* 4 · long unbreakable strings (phone, email, URLs) wrap instead of pushing */
  p,li,h1,h2,h3,.ft-hero__lead,.hero__sub,.num,.phone-num,.hero-card__phone .phone-num{
    overflow-wrap:break-word;word-break:break-word;
  }

  /* 5 · decorative pop-outs pulled inside so they never cross the screen edge */
  .unified-photo__quote{inset-inline-start:0;max-width:min(280px,72vw);}
  .photo-corners{inset:-5px;}            /* smaller bracket overhang on phones */
  .unified-photo,.itamar__photo{max-width:100%;}

  /* 6 · belt-and-braces: a too-wide child is clipped at the section edge
        (which equals the screen edge) rather than triggering a sideways
        scroll. overflow-x:clip keeps vertical pop-outs (name tags) visible. */
  section,.ft-hero,.unified,.hero,.section,.ft-article{overflow-x:clip;}
}

/* ===== Notary-vs-affidavit comparison table (GEO: citable structured content) ===== */
.ft-compare{max-width:980px;margin:48px auto;padding:0 20px;}
.ft-compare h2{font-size:clamp(1.25rem,2.4vw,1.7rem);color:#1a2740;margin:0 0 18px;text-align:center;}
.ft-compare__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:16px;box-shadow:0 8px 30px rgba(26,39,64,.08);}
.ft-compare__table{width:100%;border-collapse:collapse;background:#fff;min-width:520px;font-size:.97rem;}
.ft-compare__table th,.ft-compare__table td{padding:14px 16px;text-align:right;border-bottom:1px solid #eef1f6;vertical-align:top;}
.ft-compare__table thead th{background:#1a2740;color:#fff;font-weight:700;border-bottom:none;}
.ft-compare__table thead td{background:#1a2740;}
.ft-compare__table tbody th[scope=row]{font-weight:700;color:#1a2740;background:#f6f8fb;white-space:nowrap;}
.ft-compare__table tbody tr:last-child th,.ft-compare__table tbody tr:last-child td{border-bottom:none;}
.ft-compare__note{text-align:center;color:#5a6478;margin:14px 0 0;font-size:.95rem;}

/* ===== "How did you hear about us?" select ===== */
.ft-field--source{margin:14px 0;}
.ft-field--source label{display:block;margin-bottom:6px;font-weight:600;color:#1a2740;}
.ft-field--source .ft-optional{font-weight:400;color:#8a93a6;font-size:.9em;}
.ft-select{width:100%;padding:13px 14px;border:1.5px solid #d7dde8;border-radius:12px;background:#fff;
  font:inherit;color:#1a2740;appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a2740' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left 14px center;}
.ft-select:focus{outline:none;border-color:#2bb5a0;box-shadow:0 0 0 3px rgba(43,181,160,.18);}

/* Review rating line: keep "5.0 מתוך 5" and "332 דירוגים מאומתים" each intact (no ugly RTL/number wrap) */
.ft-rev-grp{white-space:nowrap;unicode-bidi:isolate;}

/* ===== Official sources (E-E-A-T citations) — premium pages ===== */
.ft-sources{max-width:980px;margin:36px auto;padding:22px 26px;border-inline-start:4px solid #2bb5a0;background:#f7fbfa;border-radius:0 16px 16px 0;}
.ft-sources h2{font-size:1.2rem;color:#1a2740;margin:0 0 6px;}
.ft-sources__lead{margin:0 0 12px;color:#5a6478;font-size:.95rem;}
.ft-sources ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;}
.ft-sources li{position:relative;padding-inline-start:26px;}
.ft-sources li::before{content:"⚖";position:absolute;inset-inline-start:0;top:1px;}
.ft-sources a{color:#1a5f7a;font-weight:600;text-decoration:none;border-bottom:1px solid rgba(26,95,122,.3);}
.ft-sources a:hover{border-bottom-color:#1a5f7a;}

/* ===== Mobile off-grid fix: contact-form grid had no explicit columns → auto-sized to the
   widest field's content (long select option) and blew past the container on narrow screens.
   Force a shrinkable single column + let items shrink below content min-size. ===== */
.contact-form__fields{grid-template-columns:minmax(0,1fr);}
.contact-form__fields > *{min-width:0;max-width:100%;}
.contact-form input,.contact-form textarea,.contact-form select,.contact-form .ft-select{max-width:100%;box-sizing:border-box;}
/* belt-and-braces: long unbreakable option/word never forces horizontal overflow */
.ft-select,.ft-select option{overflow:hidden;text-overflow:ellipsis;}
