/* =========================================================
   EILATPRO — MAIN.CSS (FULL REBUILD)
   ✅ Desktop services = 4 in one row
   ✅ Tablet services = 2 in a row
   ✅ Mobile services = compact stacked list
   ✅ Sticky fixed bottom (desktop + mobile)
   ✅ Footer always visible
   ✅ No white gap under footer
   ✅ Nagishli always above sticky
   ========================================================= */

/* =========================
   CSS VARIABLES & BASE
   ========================= */
:root{
  --bg:#f6f7fb;
  --ink:#0f172a;
  --muted:#64748b;

  --card:#ffffff;
  --line:rgba(15,23,42,.08);
  --shadow:0 20px 40px -10px rgba(2,6,23,.08);
  --shadow-hover:0 30px 60px -12px rgba(2,6,23,.12);

  --primary:#0c7b93;
  --primary-hover:#0a6478;
  --accent:#ffb347;
  --accent-grad:linear-gradient(135deg, #ffb347, #ff9900);

  --rXL:24px;
  --rLG:18px;
  --rMD:12px;

  --max:1200px;
  --px:clamp(16px, 4vw, 24px);
  --py:clamp(40px, 6vw, 64px);

  --focus:0 0 0 3px rgba(255,179,71,.35);
  --transition:all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --sticky-h:72px;
  --safe-bottom:env(safe-area-inset-bottom, 0px);
  --sticky-offset:calc(var(--sticky-h) + var(--safe-bottom));

  --a11y-lift:14px;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
}

html, body{
  height:100%;
}

body{
  margin:0;
  font-family:"Heebo",system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.6;
  direction:rtl;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  padding-bottom:0 !important;
}

a{
  color:inherit;
  text-decoration:none;
  transition:var(--transition);
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--px);
}

:focus-visible{
  outline:none;
  box-shadow:var(--focus);
  border-radius:8px;
}

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

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

.balance{ text-wrap:balance; }
.nowrap{ white-space:nowrap; }

/* =========================
   GLOBAL TYPOGRAPHY
   ========================= */
h1,h2,h3,h4,h5,h6{
  margin:0;
  line-height:1.2;
}

p{
  margin:0;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(12,123,147,.08);
  border:1px solid rgba(12,123,147,.15);
  color:var(--primary);
  font-weight:700;
  font-size:.9rem;
  width:fit-content;
}

/* =========================
   GLOBAL HEADER
   ========================= */
header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  min-width:fit-content;
  transition:transform .2s;
}

.brand:hover{
  transform:scale(1.03);
}

.brand img{
  width:auto;
  height:46px;
  object-fit:contain;
}

.navlinks{
  display:flex;
  gap:22px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:center;
}

.navlinks a{
  font-weight:600;
  font-size:1.05rem;
  color:var(--muted);
  position:relative;
}

.navlinks a:hover{
  color:var(--ink);
}

.navlinks a::after{
  content:'';
  position:absolute;
  width:0;
  height:2px;
  bottom:-4px;
  right:0;
  background-color:var(--primary);
  transition:width .3s;
}

.navlinks a:hover::after{
  width:100%;
}

.pro-badge{
  background:rgba(255,179,71,.15);
  color:#995c00 !important;
  padding:4px 14px;

  border-radius:999px;
  border:1px solid rgba(255,179,71,.4);
  font-weight:800 !important;
  font-size:.95rem !important;
  box-shadow:0 2px 8px rgba(255,179,71,.1);
}

.pro-badge::after{
  display:none !important;
}

.pro-badge:hover{
  background:rgba(255,179,71,.3);
  color:#7a4900 !important;
  transform:translateY(-1px);
}

.navcta{
  display:flex;
  gap:12px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:.65rem 1.25rem;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
  font-size:1rem;
  cursor:pointer;
  transition:var(--transition);
  white-space:nowrap;
  user-select:none;
}

.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(15,23,42,.2);
  box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.btn.primary{
  border:none;
  color:#fff;
  background:var(--primary);
}

.btn.primary:hover{
  background:var(--primary-hover);
  box-shadow:0 8px 20px rgba(12,123,147,.25);
}

.btn.accent{
  border:none;
  color:var(--ink);
  background:var(--accent-grad);
  box-shadow:0 8px 20px rgba(255,153,0,.2);
}

.btn.accent:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(255,153,0,.3);
}

.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:var(--bg);
  border-radius:12px;
  padding:.5rem .75rem;
  font-size:1.3rem;
  cursor:pointer;
  color:var(--ink);
}

/* Mobile nav support for both .topbar.open and .navlinks.open */
@media (max-width:960px){
  .navlinks,
  .navcta{
    display:none;
  }

  .menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .topbar.open{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .topbar.open .navlinks,
  .navlinks.open{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    width:100%;
    padding:12px 0;
    gap:16px;
    border-top:1px solid var(--line);
    margin-top:10px;
  }

  .topbar.open .navcta{
    display:flex;
    width:100%;
    padding:0 0 16px;
    gap:12px;
  }

  .navlinks.open + .navcta{
    display:flex;
    width:100%;
    padding:0 0 16px;
    gap:12px;
  }
}

/* =========================
   HERO SECTION
   ========================= */
.hero{
  padding:calc(var(--py) + 10px) 0 var(--py);
  position:relative;
  overflow:hidden;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.hero::before{
  content:'';
  position:absolute;
  top:-10%;
  right:-5%;
  width:500px;
  height:500px;
  background:radial-gradient(circle, rgba(12,123,147,.1) 0%, transparent 70%);
  filter:blur(40px);
  z-index:0;
}

.hero::after{
  content:'';
  position:absolute;
  bottom:-10%;
  left:-5%;
  width:400px;
  height:400px;
  background:radial-gradient(circle, rgba(255,179,71,.15) 0%, transparent 70%);
  filter:blur(40px);
  z-index:0;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:clamp(24px, 4vw, 48px);
  align-items:center;
  position:relative;
  z-index:1;
}

.hero-copy{
  position:relative;
  z-index:1;
}

h1{
  margin:14px 0 12px;
  font-size:clamp(2.1rem, 4.5vw, 3.4rem);
  line-height:1.1;
  letter-spacing:-.02em;
  font-weight:800;
  color:var(--ink);
}

h1 span{
  background:var(--accent-grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.lead{
  margin:0 0 16px;
  font-size:clamp(1.05rem, 1.9vw, 1.25rem);
  color:var(--muted);
  font-weight:500;
  max-width:65ch;
}

.trustline{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  font-weight:600;
  font-size:.95rem;
}

.trustline span{
  background:var(--bg);
  border:1px solid var(--line);
  padding:6px 12px;
  border-radius:999px;
  white-space:nowrap;
}

/* Compact hero support */
.hero-compact{
  padding-top:40px;
  padding-bottom:20px;
  background:var(--bg);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-compact .hero-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  max-width:800px;
  margin:0 auto;
}

.hero-compact h1{
  margin-bottom:10px;
  font-size:2.8rem;
}

.hero-compact .lead{
  margin-bottom:15px;
  font-size:1.2rem;
}

.trustline-inline{
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
  font-weight:500;
  color:#444;
  font-size:1rem;
  margin-top:15px;
}

@media (max-width:1024px){
  .hero{
    padding:32px 0 44px;
  }

  .hero-grid{
    display:flex;
    flex-direction:column;
    gap:24px;
  }

  .hero-copy{
    order:1;
    text-align:center;
  }

  .hero-copy .trustline{
    justify-content:center;
  }

  .hero-form-wrapper{
    order:2;
    width:100%;
  }

  .lead{
    margin:0 auto 16px auto;
  }
}

/* =========================
   FORM CARD
   ========================= */
.form-card{
  background:var(--card);
  border:1px solid rgba(15,23,42,.06);
  border-radius:var(--rXL);
  box-shadow:var(--shadow);
  padding:clamp(20px, 3vw, 32px);
  position:relative;
}

.form-card::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:var(--accent-grad);
  border-radius:var(--rXL) var(--rXL) 0 0;
}

.form-card h2{
  margin:0 0 6px;
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:-.01em;
}

.form-card p{
  margin:0 0 16px;
  color:var(--muted);
  font-weight:500;
  font-size:1.02rem;
}

.form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

@media (max-width:600px){
  .row{
    grid-template-columns:1fr;
  }
}

label{
  display:block;
  margin:0 0 6px;
  font-size:.9rem;
  font-weight:700;
  color:var(--ink);
}

input,
select,
textarea{
  width:100%;
  padding:.85rem 1rem;
  border-radius:12px;
  border:1px solid #cbd5e1;
  background:var(--bg);
  color:var(--ink);
  font-family:inherit;
  font-size:1rem;
  transition:var(--transition);
  outline:none;
}

textarea{
  min-height:90px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--primary);
  background:#fff;
  box-shadow:0 0 0 4px rgba(12,123,147,.1);
}

.hint{
  margin:4px 0 0;
  color:var(--muted);
  font-weight:500;
  font-size:.85rem;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:4px;
}

.check input{
  width:18px;
  height:18px;
  margin-top:4px;
  flex:0 0 auto;
  accent-color:var(--primary);
}

.check label{
  margin:0;
  font-weight:500;
  color:var(--muted);
  font-size:.9rem;
}

.check a{
  color:var(--primary);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:4px;
}

.err{
  min-height:18px;
  color:#ef4444;
  font-size:.85rem;
  font-weight:600;
  margin-top:4px;
}

.msg{
  display:none;
  padding:14px;
  border-radius:12px;
  font-weight:700;
  text-align:center;
  margin-top:8px;
}

.ok{
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}

.bad{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
}

/* =========================
   PRO BANNER
   ========================= */
.pro-banner{
  background:var(--ink);
  padding:40px 0;
}

.pro-banner-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.pro-text h3{
  color:#fff;
  margin:0 0 6px;
  font-size:clamp(1.4rem, 3vw, 1.8rem);
  font-weight:800;
}

.pro-text p{
  color:#94a3b8;
  margin:0;
  font-size:1.05rem;
  max-width:600px;
}

.pro-banner .btn.accent{
  font-size:1.1rem;
  padding:.8rem 1.6rem;
}

@media (max-width:768px){
  .pro-banner-inner{
    flex-direction:column;
    text-align:center;
  }

  .pro-banner .btn.accent{
    width:100%;
  }
}

/* =========================
   GLOBAL SECTIONS & GRID
   ========================= */
section{
  padding:var(--py) 0;
}

.sec-head{
  text-align:center;
  max-width:650px;
  margin:0 auto 32px;
}

.sec-head h3{
  margin:0 0 10px;
  font-size:clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
}

.sec-head p{
  margin:0;
  color:var(--muted);
  font-weight:500;
  font-size:1.1rem;
  text-wrap:balance;
}

.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:20px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--rLG);
  padding:24px;
  box-shadow:var(--shadow);
  transition:var(--transition);
  display:flex;
  flex-direction:column;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(12,123,147,.2);
}

.card h4{
  margin:0 0 10px;
  font-size:1.2rem;
  font-weight:800;
  color:var(--ink);
}

.card p{
  margin:0;
  color:var(--muted);
  font-weight:500;
  line-height:1.5;
  font-size:1rem;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:999px;
  background:var(--bg);
  border:1px solid var(--line);
  color:var(--ink);
  font-weight:700;
  font-size:.9rem;
  width:fit-content;
  margin-bottom:16px;
}

.icon-box{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:12px;
  background:rgba(12,123,147,.08);
  border:1px solid rgba(12,123,147,.15);
  font-size:1.3rem;
  margin-bottom:16px;
}

.col-3{ grid-column:span 3; }
.col-4{ grid-column:span 4; }
.col-6{ grid-column:span 6; }
.col-12{ grid-column:span 12; }

@media (max-width:1024px){
  .col-3{ grid-column:span 6; }
}

@media (max-width:768px){
  .col-4,
  .col-6{
    grid-column:span 12;
  }
}

@media (max-width:560px){
  .col-3{
    grid-column:span 12;
  }
}

/* =========================
   SERVICES SECTION
   Desktop: 4 columns
   Tablet: 2 columns
   Mobile: compact list
   ========================= */
.services-section{
  background:#f4f7f6;
}

#services .services-grid{
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  gap:20px !important;
  align-items:stretch;
}

/* Critical fix: these cards also carry .col-3 from the global 12-col grid.
   Inside the dedicated services grid they must NOT span 3 columns, otherwise
   each card takes 3/4 of the row on desktop and drops to one-per-line. */
#services .services-grid > .col-3{
  grid-column:auto !important;
}

#services .cat-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:#fff;
  padding:30px 20px;
  border-radius:15px;
  text-decoration:none;
  color:inherit;
  border:1px solid #eee;
  transition:var(--transition);
  min-height:220px;
  width:100%;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}

#services .cat-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(15,23,42,.08);
  border-color:rgba(12,123,147,.18);
}

#services .cat-icon{
  font-size:2.4rem;
  margin:0 0 15px;
  background:#eef3f2;
  width:78px;
  height:78px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  flex-shrink:0;
}

#services .cat-text{
  width:100%;
  min-width:0;
}

#services .cat-text h2{
  margin:0 0 10px;
  font-size:1.25rem;
  font-weight:800;
  color:#1a1a1a;
  line-height:1.25;
  text-align:center;
}

#services .cat-text p{
  margin:0;
  font-size:.95rem;
  color:#666;
  line-height:1.45;
  text-align:center;
}

@media (max-width:1024px){
  #services .services-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }

  #services .services-grid > .col-3{
    grid-column:auto !important;
  }
}

@media (max-width:768px){
  .hero-compact{
    padding-top:20px;
    padding-bottom:10px;
  }

  .hero-compact h1{
    font-size:1.8rem;
    line-height:1.2;
  }

  .hero-compact .lead{
    font-size:1rem;
    margin-bottom:12px;
  }

  .trustline-inline{
    gap:8px;
    font-size:.9rem;
    margin-top:10px;
  }

  #services.services-section{
    padding:14px 0 26px !important;
  }

  #services .services-grid{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    padding:0 10px;
  }

  #services .cat-card{
    min-height:unset;
    flex-direction:row-reverse;
    align-items:center;
    justify-content:flex-start;
    text-align:right;
    gap:12px;
    padding:10px 12px;
    border-radius:12px;
    box-shadow:none;
  }

  #services .cat-card:hover{
    transform:none;
    box-shadow:none;
  }

  #services .cat-icon{
    width:52px;
    height:52px;
    min-width:52px;
    margin:0;
    font-size:1.5rem;
    border-radius:14px;
  }

  #services .cat-text{
    flex:1;
    min-width:0;
  }

  #services .cat-text h2{
    margin:0 0 4px;
    font-size:1rem;
    line-height:1.2;
    text-align:right;
  }

  #services .cat-text p{
    margin:0;
    font-size:.84rem;
    line-height:1.25;
    color:#666;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
    text-align:right;
  }
}

/* =========================
   FAQ
   ========================= */
.faq{
  max-width:850px;
  margin:0 auto;
}

details{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 20px;
  margin-bottom:12px;
  transition:var(--transition);
}

details:hover{
  border-color:#cbd5e1;
}

details[open]{
  box-shadow:var(--shadow);
  border-color:var(--primary);
}

summary{
  cursor:pointer;
  font-weight:800;
  font-size:1.1rem;
  list-style:none;
  color:var(--ink);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

summary::-webkit-details-marker{
  display:none;
}

summary::after{
  content:'+';
  font-size:1.5rem;
  color:var(--primary);
  font-weight:400;
  transition:transform .3s;
}

details[open] summary::after{
  transform:rotate(45deg);
}

details p{
  margin:16px 0 0;
  color:var(--muted);
  font-weight:500;
  font-size:1.05rem;
  line-height:1.6;
}

/* =========================
   SHARE WIDGET
   ========================= */
.share-widget-wrapper{
  background:var(--bg);
  padding:30px 0;
  text-align:center;
  border-top:1px solid var(--line);
}

.share-widget-wrapper h4{
  margin:0 0 12px;
  color:var(--muted);
  font-size:1.1rem;
  font-weight:700;
}

/* =========================
   FOOTER
   ========================= */
footer{
  background:#0b1220;
  color:#94a3b8;
  padding:40px 0 30px;
  padding-bottom:calc(30px + var(--sticky-offset));
  border-top:4px solid var(--primary);
}

.footer-grid{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:24px;
  text-align:center;
}

.foot-brand img{
  width:auto;
  height:54px;
  object-fit:contain;
  filter:brightness(0) invert(1);
  opacity:.9;
}

.foot-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  font-weight:500;
  font-size:1.05rem;
}

.foot-links a{
  color:#e2e8f0;
  transition:color .2s;
  white-space:nowrap;
}

.foot-links a:hover{
  color:var(--accent);
}

.foot-links span.copy{
  color:#94a3b8;
  white-space:nowrap;
}

.dot{
  opacity:.3;
}

/* =========================
   STICKY BOTTOM BAR
   ========================= */
.sticky{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:997;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
  box-shadow:0 -10px 30px rgba(0,0,0,.06);
  padding:10px 0 calc(10px + var(--safe-bottom));
  min-height:var(--sticky-offset);
}

.sticky-inner{
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  justify-content:space-between;
  align-items:center;
  width:100%;
}

.sticky a{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:.75rem .2rem;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#fff;
  color:var(--ink);
  font-weight:800;
  font-size:clamp(.85rem, 3.5vw, 1rem);
  transition:var(--transition);
  white-space:nowrap;
  min-width:0;
}

.sticky a:hover{
  transform:translateY(-2px);
  border-color:var(--ink);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.sticky a.accent{
  border:none;
  color:var(--ink);
  background:var(--accent-grad);
}

/* =========================
   NAGISHLI — ABOVE STICKY
   ========================= */
[id^="nagishli"],
[class^="nagishli"],
[id^="nagish_"]{
  z-index:9999 !important;
  bottom:calc(var(--sticky-offset) + var(--a11y-lift)) !important;
  right:15px !important;
}

[id^="nagishli"] [style*="bottom:"],
[class^="nagishli"] [style*="bottom:"],
[id^="nagish_"] [style*="bottom:"]{
  bottom:calc(var(--sticky-offset) + var(--a11y-lift)) !important;
}
