/* ============================================================
   מערכת אישורים נוטריוניים · אטיאס ושות' — עיצוב יוקרתי
   Deep Teal #0D403F · Lime #DAE02E · Mist #C4D7DA · Suez One + Noto Sans Hebrew
   ============================================================ */
:root {
  --teal: #0D403F;
  --teal-dark: #082826;
  --teal-mid: #145a58;
  --lime: #DAE02E;
  --lime-dark: #c6cc22;
  --mist: #C4D7DA;
  --ivory: #f6f8f7;
  --card: #ffffff;
  --text: #16302e;
  --muted: #5d7472;
  --line: #dfe9e8;
  --danger: #a83a3f;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(13, 64, 63, .09);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans Hebrew', 'Segoe UI', Arial, sans-serif; background: var(--ivory); color: var(--text); direction: rtl; min-height: 100vh; padding-bottom: 90px; font-size: 15px; }
h1, h2, h3 { font-family: 'Suez One', serif; font-weight: 400; letter-spacing: .2px; }
a { color: var(--teal); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(150deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-mid) 100%); color: #fff; padding: 40px 24px 34px; border-bottom: 3px solid var(--lime); }
.hero-inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.hero-kicker { font-size: 13px; letter-spacing: 2.5px; color: var(--mist); text-transform: uppercase; margin-bottom: 6px; }
.hero-title h1 { font-size: 38px; line-height: 1.1; }
.hero-title p { color: var(--mist); margin-top: 8px; font-size: 14.5px; }
.hero-stats { display: flex; gap: 1px; background: rgba(196,215,218,.25); border: 1px solid rgba(196,215,218,.25); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(8,40,38,.55); padding: 14px 22px; text-align: center; min-width: 108px; }
.stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--lime); font-variant-numeric: tabular-nums; }
.stat span:last-child { font-size: 11.5px; color: var(--mist); letter-spacing: .3px; }

/* ---------- Nav ---------- */
.topnav { max-width: 1080px; margin: -20px auto 0; padding: 0 24px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 2; }
.navbtn { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; font-size: 14px; cursor: pointer; box-shadow: var(--shadow); font-family: inherit; color: var(--text); transition: .15s; }
.navbtn:hover { border-color: var(--teal); transform: translateY(-1px); }
.navbtn.active { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }

.banner { max-width: 1032px; margin: 18px auto 0; padding: 13px 20px; border-radius: var(--radius); font-size: 14px; cursor: pointer; }
.banner.warn { background: #fdf6dc; border: 1px solid #e3d47c; color: #6e5e10; margin-right: 24px; margin-left: 24px; }
@media (min-width: 1080px) { .banner.warn { margin-right: auto; margin-left: auto; } }

/* ---------- Groups (accordion) ---------- */
.container { max-width: 1080px; margin: 0 auto; padding: 26px 24px; }
.groups { display: grid; gap: 10px; }
.group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 5px rgba(13,64,63,.05); transition: box-shadow .2s; }
.group.open { box-shadow: var(--shadow); border-color: var(--mist); }
.group-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 19px 24px; background: none; border: none; cursor: pointer; font-family: inherit; text-align: right; }
.group-head:hover { background: #f6faf9; }
.group-name { font-family: 'Suez One', serif; font-size: 18.5px; color: var(--teal); flex: 0 0 auto; }
.group-count { color: var(--muted); font-size: 12.5px; flex: 1; }
.group-arrow { font-size: 22px; color: var(--teal); width: 30px; height: 30px; border: 1.5px solid var(--line); border-radius: 50%; display: grid; place-items: center; line-height: 1; }
.group.open .group-arrow { background: var(--teal); color: var(--lime); border-color: var(--teal); }
.group-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding: 4px 24px 22px; }
.service { background: #fbfdfc; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-align: right; cursor: pointer; font-family: inherit; transition: .15s; display: flex; flex-direction: column; gap: 4px; }
.service:hover { border-color: var(--teal); background: #fff; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(13,64,63,.08); }
.service-name { font-weight: 600; font-size: 14.5px; color: var(--teal); }
.service-meta { font-size: 11.5px; color: var(--muted); }

.section-title { font-size: 19px; color: var(--teal); margin: 30px 0 12px; display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Recent / Archive ---------- */
.recent, .archive { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 5px rgba(13,64,63,.05); overflow: hidden; }
.recent-row, .arch-row { display: grid; grid-template-columns: 90px 1.4fr 1fr 100px 130px 90px; gap: 10px; align-items: center; padding: 13px 18px; border-bottom: 1px solid #eef4f3; font-size: 14px; }
.arch-row { grid-template-columns: 95px 1.3fr 1fr 100px 120px 190px; }
.arch-head { background: var(--teal); color: #fff; font-weight: 600; font-size: 12.5px; letter-spacing: .3px; }
.recent-serial { font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.recent-fee { font-weight: 600; }
.arch-actions { display: flex; gap: 5px; justify-content: flex-end; }
@media (max-width: 820px) { .recent-row, .arch-row { grid-template-columns: 70px 1fr 90px; } .recent-row > :nth-child(n+4):not(:last-child), .arch-row > :nth-child(n+4):not(:last-child) { display: none; } }

/* ---------- Buttons ---------- */
.btn, .mini { font-family: inherit; border-radius: 9px; cursor: pointer; border: 1.5px solid transparent; transition: .15s; }
.btn { padding: 12px 26px; font-size: 15px; font-weight: 600; }
.btn.primary { background: var(--lime); color: var(--teal-dark); }
.btn.primary:hover { background: var(--lime-dark); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--teal); }
.btn.ghost:hover { border-color: var(--teal); }
.btn.big { font-size: 16.5px; padding: 15px 34px; }
.btn.add { width: 100%; border-style: dashed; margin-bottom: 16px; }
.mini { padding: 6px 13px; font-size: 12.5px; background: #eef4f3; color: var(--teal); }
.mini:hover { background: var(--mist); }
.mini.danger { color: var(--danger); }
.mini.ghost { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }

/* ---------- Wizard ---------- */
.whead { background: var(--teal); color: #fff; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 3px solid var(--lime); }
.whead-title { font-family: 'Suez One', serif; font-size: 18px; }
.whead-form { font-size: 12px; color: var(--mist); font-family: 'Noto Sans Hebrew', sans-serif; margin-inline-start: 10px; }
.back { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 7px 15px; cursor: pointer; font-family: inherit; font-size: 13.5px; }
.back:hover { background: rgba(255,255,255,.12); }

.stepbar { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 20px 20px 4px; max-width: 1080px; margin: 0 auto; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--muted); }
.step[onclick] { cursor: pointer; }
.step .step-num { width: 27px; height: 27px; border-radius: 50%; background: #dee9e8; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.step.cur { color: var(--teal-dark); font-weight: 700; }
.step.cur .step-num { background: var(--lime); color: var(--teal-dark); }
.step.done { color: var(--teal); }
.step.done .step-num { background: var(--teal); color: #fff; }
.step-line { width: 30px; height: 2px; background: var(--line); }
@media (max-width: 720px) { .step-name { display: none; } }

/* ---------- Panels & fields ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 5px rgba(13,64,63,.05); padding: 22px 24px; margin-bottom: 16px; }
.panel.slim { padding: 14px 16px; }
.panel h3 { color: var(--teal); font-size: 16.5px; margin-bottom: 15px; padding-bottom: 9px; border-bottom: 2px solid var(--mist); }
.panel h3.sub { margin-top: 20px; }
.panel-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel-head-row h3 { margin: 0; border: none; padding: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2.top { align-items: start; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.flabel { font-size: 13px; font-weight: 600; color: var(--teal); }
.fhint { font-size: 11.5px; color: var(--muted); }
.ferr { font-size: 12px; color: var(--danger); font-weight: 600; }
.field.invalid input { border-color: var(--danger); background: #fdf4f4; }
input, select, textarea { font-family: inherit; font-size: 14.5px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: #fcfdfd; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
input.bad { border-color: var(--danger); background: #fdf4f4; }
input:disabled { background: #eef2f1; color: var(--muted); }
.date-input { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.joined { display: flex; gap: 6px; }
.note { font-size: 13px; color: var(--muted); background: #f3f8f7; border-right: 3px solid var(--mist); padding: 10px 13px; border-radius: 8px; margin-top: 8px; line-height: 1.6; }
.note.big-note { font-size: 14px; margin-bottom: 18px; }
.search { font-size: 15.5px; }

/* ---------- Choices ---------- */
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { flex: 1; min-width: 170px; padding: 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-family: inherit; font-size: 15px; cursor: pointer; transition: .15s; color: var(--text); }
.choice.on { border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 700; }

/* ---------- Client / corp ---------- */
.client-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.client-head h3 { border: none; margin: 0; padding: 0; }
.corp-block { border: 1px dashed var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 8px; }
.check-item { padding: 11px 14px 11px 12px; background: #f6faf9; border-right: 3px solid var(--teal); border-radius: 8px; font-size: 13.5px; line-height: 1.55; }
.check-item.warn-item { background: #fdf6dc; border-right-color: #c9a227; }

/* ---------- Fee ---------- */
.feegrid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .feegrid { grid-template-columns: 1fr; } }
.feesum { position: sticky; top: 12px; }
.feerow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.feerow.small { font-size: 12px; color: var(--muted); }
.feerow.total { border-top: 2px solid var(--teal); font-size: 14.5px; margin-top: 6px; }
.feerow.grand { background: var(--teal); color: #fff; padding: 13px 15px; border-radius: 10px; font-size: 17px; margin: 10px 0 14px; border: none; }
.feerow.grand b { color: var(--lime); }

/* ---------- Wizard nav ---------- */
.wiz-nav { position: fixed; bottom: 0; right: 0; left: 0; background: #fff; border-top: 1px solid var(--line); padding: 13px 26px; display: flex; justify-content: space-between; z-index: 50; box-shadow: 0 -4px 16px rgba(13,64,63,.06); }

/* ---------- Certificate preview ---------- */
.preview-wrap { background: #e9efee; padding: 24px; border-radius: 10px; overflow: auto; }
.cert { background: #fff; max-width: 780px; margin: 0 auto; padding: 48px 44px; box-shadow: 0 4px 22px rgba(0,0,0,.15); font-family: 'David Libre', serif; font-size: 15px; line-height: 1.7; display: flex; gap: 34px; }
.cert.bi .cert-col { width: 50%; }
.cert-col { width: 100%; }
.cert-col.en { direction: ltr; text-align: left; font-family: 'Times New Roman', serif; }
.cert-serial { font-size: 12.5px; margin-bottom: 14px; }
.cert-title { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.cert-sub { font-size: 12px; color: #333; margin-bottom: 12px; }
.cert-col p { margin-bottom: 10px; text-align: justify; }
.cert-fee { margin-top: 22px; font-size: 12.5px; line-height: 1.8; }
.cert-seal { margin-top: 26px; font-size: 12.5px; color: #444; }

/* ---------- Produce ---------- */
.produce-sum { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14.5px; margin-bottom: 14px; background: #f3f8f7; padding: 13px 16px; border-radius: 10px; }
.produce-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Formats ---------- */
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; text-align: right; padding: 17px 20px; background: none; border: none; font-family: 'Suez One', serif; font-size: 16px; color: var(--teal); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q:hover { background: #f6faf9; }
.faq-arrow { width: 10px; height: 10px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); transition: .2s; flex: 0 0 auto; }
.faq-item.open .faq-arrow { transform: rotate(135deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text); font-size: 14px; line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* ---------- Tariffs ---------- */
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.tariff-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fbfa; border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font-size: 13px; }
.tariff-item input { width: 105px; text-align: center; padding: 7px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 86px; right: 50%; transform: translateX(50%) translateY(24px); background: var(--teal); color: #fff; padding: 13px 28px; border-radius: 999px; font-size: 14.5px; opacity: 0; transition: .3s; z-index: 200; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(50%) translateY(0); }
.toast.warn { background: #8a6d00; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 34px 20px 44px; line-height: 1.7; }

/* ---------- מבוטל + אזהרות דין ---------- */
.void-badge { color: var(--danger); font-weight: 700; }
.arch-row:has(.void-badge) { opacity: .62; }
.note.warn-note { background: #fdf6dc; border-right-color: #c9a227; color: #6e5e10; margin-bottom: 10px; }

/* ---------- מסך התחברות ---------- */
.login-screen { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(150deg, var(--teal-dark), var(--teal) 60%, var(--teal-mid)); padding: 24px; }
.login-card { background: #fff; border-radius: 16px; padding: 46px 52px; text-align: center; box-shadow: 0 14px 50px rgba(0,0,0,.3); max-width: 420px; border-top: 4px solid var(--lime); }
.login-card h1 { color: var(--teal); font-size: 30px; margin: 6px 0 8px; }
.login-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
