/*
Theme Name: החוק אומר 2026
Theme URI: https://attorneyatlaw.co.il/
Description: תבנית WordPress עצמאית, קלה ונגישה למרכז המידע המשפטי החוק אומר.
Author: מערכת החוק אומר
Version: 1.0.0
Text Domain: attorney-law
*/

:root {
  --at-ink: #17212b;
  --at-muted: #5d6875;
  --at-paper: #f6f4ef;
  --at-surface: #ffffff;
  --at-line: #d9dde2;
  --at-navy: #183b5b;
  --at-navy-2: #0f2940;
  --at-copper: #b56f3d;
  --at-focus: #f2b94b;
  --at-radius: 18px;
  --at-shadow: 0 16px 40px rgba(23, 33, 43, .08);
  --at-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--at-ink);
  background: var(--at-paper);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--at-navy); text-underline-offset: .18em; }
a:hover { color: var(--at-copper); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--at-focus); outline-offset: 3px; }

.at-container { width: min(calc(100% - 40px), var(--at-max)); margin-inline: auto; }
.at-skip-link { position: fixed; inset-block-start: 10px; inset-inline-start: 10px; transform: translateY(-150%); z-index: 100000; padding: 10px 16px; color: #fff; background: var(--at-navy-2); border-radius: 8px; }
.at-skip-link:focus { transform: translateY(0); }

.at-site-header { position: sticky; inset-block-start: 0; z-index: 1000; color: #fff; background: rgba(15, 41, 64, .98); box-shadow: 0 6px 25px rgba(8, 24, 39, .14); }
.at-header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.at-brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; color: #fff; text-decoration: none; white-space: nowrap; }
.at-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; color: #fff; font-size: 22px; }
.at-brand-copy { line-height: 1.05; }
.at-brand-name { display: block; font-size: 1.22rem; font-weight: 800; }
.at-brand-tag { display: block; margin-block-start: 5px; color: #c7d2dc; font-size: .72rem; font-weight: 400; }
.at-nav { margin-inline-start: auto; }
.at-nav-list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.at-nav-list a { display: block; padding: 10px 12px; color: #f8fafc; border-radius: 9px; font-size: .94rem; font-weight: 700; text-decoration: none; }
.at-nav-list a:hover, .at-nav-list a:focus-visible { color: #fff; background: rgba(255,255,255,.10); }
.at-nav-toggle { display: none; width: 44px; height: 44px; margin-inline-start: auto; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; cursor: pointer; }
.at-nav-toggle span, .at-nav-toggle::before, .at-nav-toggle::after { content: ""; display: block; width: 21px; height: 2px; margin: 5px auto; background: currentColor; }
.at-disclosure-strip { padding: 8px 20px; color: #e7edf2; background: #102c45; border-block-start: 1px solid rgba(255,255,255,.1); text-align: center; font-size: .78rem; }
.at-disclosure-strip a { color: #fff; }

.at-main { min-height: 60vh; }
.at-hero { padding: clamp(58px, 8vw, 104px) 0; color: #fff; background: radial-gradient(circle at 15% 10%, rgba(181,111,61,.22), transparent 35%), linear-gradient(135deg, var(--at-navy-2), var(--at-navy)); }
.at-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: center; gap: 56px; }
.at-kicker { margin: 0 0 12px; color: #efc7aa; font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.at-hero h1 { max-width: 820px; margin: 0; font-size: clamp(2.15rem, 5vw, 4.55rem); line-height: 1.04; letter-spacing: -.035em; }
.at-hero-lede { max-width: 760px; margin: 24px 0 0; color: #dce6ee; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }
.at-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 30px; }
.at-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; color: #fff; background: var(--at-copper); border: 1px solid var(--at-copper); border-radius: 11px; font-weight: 800; text-decoration: none; }
.at-button:hover { color: #fff; background: #9b5b31; }
.at-button--ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.38); }
.at-button--ghost:hover { background: rgba(255,255,255,.08); }
.at-hero-note { padding: 24px; color: var(--at-ink); background: rgba(255,255,255,.96); border: 1px solid rgba(255,255,255,.35); border-radius: var(--at-radius); box-shadow: var(--at-shadow); }
.at-hero-note strong { display: block; margin-block-end: 8px; color: var(--at-navy-2); font-size: 1.08rem; }
.at-hero-note p { margin: 0; color: var(--at-muted); font-size: .94rem; }

.at-section { padding: clamp(50px, 7vw, 86px) 0; }
.at-section--white { background: var(--at-surface); }
.at-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-block-end: 28px; }
.at-section-head h2, .at-page-title { margin: 0; color: var(--at-navy-2); font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.15; }
.at-section-head p { max-width: 620px; margin: 0; color: var(--at-muted); }
.at-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.at-card { min-width: 0; overflow: hidden; background: var(--at-surface); border: 1px solid var(--at-line); border-radius: var(--at-radius); box-shadow: 0 8px 28px rgba(23,33,43,.05); }
.at-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.at-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: #e4e8ec; }
.at-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.at-card-link:hover .at-card-media img { transform: scale(1.025); }
.at-card-body { padding: 22px; }
.at-card-meta { margin-block-end: 8px; color: var(--at-copper); font-size: .78rem; font-weight: 800; }
.at-card h3 { margin: 0; color: var(--at-navy-2); font-size: 1.15rem; line-height: 1.35; }
.at-card p { margin: 12px 0 0; color: var(--at-muted); font-size: .93rem; }
.at-topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.at-topic { padding: 30px; color: inherit; background: var(--at-surface); border: 1px solid var(--at-line); border-radius: var(--at-radius); text-decoration: none; }
.at-topic:hover { color: inherit; border-color: #bac5ce; box-shadow: var(--at-shadow); }
.at-topic h3 { margin: 0 0 8px; color: var(--at-navy-2); font-size: 1.42rem; }
.at-topic p { margin: 0; color: var(--at-muted); }
.at-method { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; background: var(--at-line); border: 1px solid var(--at-line); border-radius: var(--at-radius); }
.at-method-item { padding: 28px; background: var(--at-surface); }
.at-method-item strong { display: block; color: var(--at-navy-2); }
.at-method-item p { margin: 8px 0 0; color: var(--at-muted); font-size: .92rem; }

.at-content-wrap { width: min(calc(100% - 40px), 860px); margin-inline: auto; padding: clamp(44px, 7vw, 82px) 0; }
.at-breadcrumbs { margin-block-end: 22px; color: var(--at-muted); font-size: .82rem; }
.at-breadcrumbs a { color: inherit; }
.at-article-header { margin-block-end: 28px; }
.at-article-header h1 { margin: 8px 0 16px; color: var(--at-navy-2); font-size: clamp(2rem,5vw,3.65rem); line-height: 1.1; letter-spacing: -.025em; overflow-wrap: anywhere; }
.at-article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--at-muted); font-size: .88rem; }
.at-trust-box { margin: 26px 0 34px; padding: 18px 20px; background: #fff8ef; border: 1px solid #ecd4bd; border-inline-start: 5px solid var(--at-copper); border-radius: 12px; }
.at-trust-box strong { display: block; color: #693d20; }
.at-trust-box p { margin: 7px 0 0; color: #694f3e; font-size: .92rem; }
.at-article-image { margin: 0 0 clamp(28px, 5vw, 48px); overflow: hidden; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: #e4e8ec; }
.at-article-image img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.at-prose { min-width: 0; color: #26323d; font-size: clamp(1.02rem, 1.35vw, 1.12rem); }
.at-prose > * { max-width: 100%; }
.at-prose h2 { margin: 2.2em 0 .7em; color: var(--at-navy-2); font-size: clamp(1.55rem,3vw,2.1rem); line-height: 1.25; }
.at-prose h3 { margin: 1.8em 0 .6em; color: var(--at-navy); font-size: 1.32rem; }
.at-prose p, .at-prose li { overflow-wrap: anywhere; }
.at-prose a { font-weight: 700; }
.at-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.at-prose th, .at-prose td { padding: 10px; border: 1px solid var(--at-line); }
.at-prose iframe { width: 100%; max-width: 100%; }
.at-prose blockquote { margin-inline: 0; padding: 16px 22px; background: #eef3f7; border-inline-start: 4px solid var(--at-navy); }
.at-prose .elementor, .at-prose .elementor-section, .at-prose .elementor-container, .at-prose .elementor-column { max-width: 100% !important; }
.at-callout { margin: 34px 0; padding: 24px; background: #eef4f7; border: 1px solid #cfdae2; border-radius: 14px; }
.at-callout h2 { margin-block-start: 0; }
.at-post-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-block-start: 48px; }
.at-post-nav a { padding: 16px; background: #fff; border: 1px solid var(--at-line); border-radius: 12px; text-decoration: none; }

.at-archive-header { padding: 58px 0 34px; }
.at-archive-header p { max-width: 760px; color: var(--at-muted); }
.at-hub-hero { max-width: 900px; padding: clamp(44px, 7vw, 80px) 0 10px; }
.at-hub-hero > p { max-width: 760px; color: var(--at-muted); font-size: 1.08rem; }
.at-hub-paths { padding: 28px 0 50px; }
.at-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.at-path-card { padding: 24px; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: var(--at-surface); box-shadow: 0 8px 28px rgba(23,33,43,.04); }
.at-path-card h3 { margin: 0 0 14px; color: var(--at-navy); font-size: 1.15rem; }
.at-path-card ul { margin: 0; padding: 0; list-style: none; }
.at-path-card li { padding: 10px 0; border-top: 1px solid var(--at-line); }
.at-path-card li:first-child { border-top: 0; }
.at-path-card a { color: var(--at-navy-2); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.at-reviewed { display: inline-block; margin-inline-start: 8px; padding: 3px 7px; border-radius: 999px; background: #edf7f0; color: #22613a; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.at-pagination { margin-block-start: 30px; }
.at-pagination .page-numbers { display: inline-grid; min-width: 42px; min-height: 42px; place-items: center; margin: 3px; background: #fff; border: 1px solid var(--at-line); border-radius: 9px; text-decoration: none; }
.at-pagination .current { color: #fff; background: var(--at-navy); }

.at-site-footer { padding: 48px 0 28px; color: #dce4eb; background: #0d263b; }
.at-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 38px; }
.at-site-footer h2, .at-site-footer h3 { margin-block-start: 0; color: #fff; }
.at-site-footer p { color: #b9c6d0; }
.at-site-footer a { color: #eef4f8; }
.at-footer-links { margin: 0; padding: 0; list-style: none; }
.at-footer-links li + li { margin-block-start: 8px; }
.at-footer-bottom { margin-block-start: 34px; padding-block-start: 20px; border-block-start: 1px solid rgba(255,255,255,.12); color: #aebbc5; font-size: .78rem; }

@media (max-width: 980px) {
  .at-nav-toggle { display: block; }
  .at-nav { position: absolute; inset: 76px 0 auto; display: none; padding: 10px 20px 20px; background: var(--at-navy-2); }
  .at-nav.is-open { display: block; }
  .at-nav-list { align-items: stretch; flex-direction: column; }
  .at-nav-list a { padding: 12px; }
  .at-brand-tag { display: none; }
  .at-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .at-hero-note { max-width: 620px; }
  .at-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .at-container, .at-content-wrap { width: min(calc(100% - 28px), var(--at-max)); }
  .at-header-inner { min-height: 66px; gap: 14px; }
  .at-brand-mark { width: 38px; height: 38px; }
  .at-brand-name { font-size: 1.08rem; }
  .at-nav { inset-block-start: 66px; }
  .at-disclosure-strip { padding-inline: 14px; font-size: .72rem; line-height: 1.45; }
  .at-hero { padding: 48px 0; }
  .at-hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .at-actions { align-items: stretch; flex-direction: column; }
  .at-button { width: 100%; }
  .at-section-head { align-items: start; flex-direction: column; }
  .at-grid, .at-topic-grid, .at-method, .at-post-nav, .at-footer-grid, .at-path-grid { grid-template-columns: 1fr; }
  .at-card-body, .at-topic, .at-method-item { padding: 20px; }
  .at-content-wrap { padding-block: 38px 58px; }
  .at-article-header h1 { font-size: clamp(1.85rem, 10vw, 2.65rem); }
  .at-article-meta { flex-direction: column; gap: 3px; }
  .at-prose { font-size: 1rem; }
  .at-prose h2 { font-size: 1.48rem; }
}
