:root {
  --bg: #f3f6fb;
  --surface: #fff;
  --line: #dce4ee;
  --line-strong: #c7d4e4;
  --text: #122c45;
  --muted: #61758a;
  --brand: #17938a;
  --accent: #2e9fde;
  --dark: #0f2133;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 16px 34px rgba(11, 36, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Heebo", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% -10%, rgba(46, 159, 222, 0.11), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(23, 147, 138, 0.08), transparent 30%),
    var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body[data-lang="he"] {
  font-family: "Heebo", "Manrope", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.15;
  font-family: "Rubik", "Manrope", "Heebo", sans-serif;
}

body[data-lang="he"] h1,
body[data-lang="he"] h2,
body[data-lang="he"] h3,
body[data-lang="he"] h4 {
  font-family: "Heebo", "Rubik", "Manrope", sans-serif;
}

p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-inline-start: 20px;
}

.container {
  width: min(1160px, calc(100vw - 32px));
  margin-inline: auto;
}

.section {
  padding: 36px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(16, 47, 73, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.logo {
  text-decoration: none;
  display: grid;
  gap: 2px;
}

.logo__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__row span {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
}

.logo small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.logo-mark {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #0b6383;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.top-links,
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: #234966;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #cad9e8;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4c69;
  box-shadow: 0 8px 16px rgba(15, 45, 69, 0.08);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.icon-btn--media {
  position: relative;
  overflow: hidden;
}

.icon-btn--media::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -28px;
  width: 24px;
  transform: skewX(-20deg);
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: iconShine 4.6s linear infinite;
}

.icon-btn--media img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.icon-btn--wa {
  color: #0f8f62;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 740;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(110deg, var(--brand), var(--accent));
  box-shadow: 0 12px 24px rgba(26, 123, 168, 0.28);
}

.btn-compact {
  padding-inline: 15px;
  white-space: nowrap;
}

@keyframes iconShine {
  0% {
    transform: translateX(0) skewX(-20deg);
    opacity: 0;
  }
  8% {
    opacity: 0.8;
  }
  18% {
    transform: translateX(74px) skewX(-20deg);
    opacity: 0;
  }
  100% {
    transform: translateX(74px) skewX(-20deg);
    opacity: 0;
  }
}

.blog-shell .blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.truck-banner {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #fefefe, #f4f8fc);
  box-shadow: var(--shadow);
  padding: 8px;
  overflow: hidden;
  position: relative;
}

.truck-banner::after {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: -24%;
  width: 18%;
  transform: skewX(-18deg);
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  animation: truckShine 5.2s ease-in-out infinite;
  pointer-events: none;
}

.truck-banner__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(12, 40, 66, 0.16));
}

@keyframes truckShine {
  0% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  28% {
    transform: translateX(760%) skewX(-18deg);
    opacity: 0;
  }
  100% {
    transform: translateX(760%) skewX(-18deg);
    opacity: 0;
  }
}

.blog-main {
  display: grid;
  gap: 14px;
}

.blog-title {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.blog-title h1 {
  font-size: clamp(34px, 5vw, 46px);
}

.filter-note {
  margin-top: 10px;
  font-size: 13px;
  color: #3d5f79;
}

.filter-note a {
  color: #0f628f;
  font-weight: 700;
  text-decoration: none;
}

.b-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.b-post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.b-post--reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.b-post--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.b-post__media {
  display: block;
  text-decoration: none;
}

.b-post__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid #d9e4ef;
}

.b-post__body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.b-post__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.b-post__head small {
  font-size: 12px;
  color: #657b90;
  font-weight: 700;
}

.b-chip {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #cedcec;
  color: #2c5677;
  background: #f7fbff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.b-post h3 {
  margin: 0;
  font-size: 27px;
}

.b-post h3 a {
  text-decoration: none;
}

.b-post p {
  margin: 0;
}

.b-meta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  color: #647b90;
  font-weight: 700;
}

.b-meta li {
  border: 1px solid #d5e2ef;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f8fcff;
}

.blog-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 94px;
}

.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 14px;
}

.widget h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.live-widget p {
  margin: 0;
  color: #34556f;
  font-weight: 700;
  font-size: 14px;
}

.live-widget h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#blogLiveNow {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bed4e7;
  background: #f5fbff;
  color: #0f3353;
  padding: 3px 10px;
  margin-inline-end: 6px;
  font-size: 15px;
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2fbf85;
  margin-top: 10px;
  box-shadow: 0 0 0 rgba(47, 191, 133, 0.5);
  transition: box-shadow 0.24s ease;
}

.live-dot.on {
  box-shadow: 0 0 0 10px rgba(47, 191, 133, 0);
}

.live-widget h3 .live-dot {
  margin-top: 0;
  flex: 0 0 auto;
}

.widget-search {
  display: grid;
  gap: 8px;
}

.field {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.field:focus {
  outline: none;
  border-color: #59abd7;
  box-shadow: 0 0 0 3px rgba(66, 161, 212, 0.16);
}

.widget-list {
  display: grid;
  gap: 9px;
}

.widget-post {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border: 1px solid #d7e3ef;
  border-radius: 11px;
  padding: 6px;
}

.widget-post img {
  width: 64px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d4dfeb;
}

.widget-post p {
  margin: 0 0 6px;
  color: #143a56;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.widget-post ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: #688196;
  font-weight: 700;
}

.widget-categories {
  display: grid;
  gap: 6px;
}

.widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 9px;
  border: 1px solid #d7e2ef;
  padding: 8px 10px;
  background: #f9fcff;
  color: #244a67;
  font-size: 13px;
  font-weight: 700;
}

.widget-row strong {
  color: #0d5f8a;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #cedcec;
  background: #fff;
  color: #2f526f;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.article-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.article-back {
  display: inline-flex;
  margin-bottom: 12px;
  color: #13618d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.article-cover {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d3dfeb;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  margin-bottom: 12px;
}

.article-header h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin: 10px 0 10px;
}

.article-lead {
  font-size: 19px;
}

.b-meta--article {
  margin-top: 8px;
}

.article-content {
  margin-top: 12px;
}

.article-content h2 {
  font-size: clamp(28px, 3.6vw, 36px);
  margin-top: 20px;
}

.article-content p,
.article-content ul {
  font-size: 17px;
}

.article-content img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d5e1ed;
  margin: 8px 0 14px;
  object-fit: cover;
}

.article-content blockquote {
  margin: 12px 0;
  border-inline-start: 4px solid #8ec7e7;
  padding: 10px 12px;
  background: #f7fbff;
  color: #2f4f68;
  border-radius: 8px;
}

.article-content ul {
  margin-bottom: 14px;
  color: #36566f;
}

.article-faq details {
  border: 1px solid #d6e3ef;
  border-radius: 10px;
  background: #f9fcff;
  padding: 10px 12px;
}

.article-faq details + details {
  margin-top: 8px;
}

.article-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.post-nav-links {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.post-nav-links a {
  text-decoration: none;
  border: 1px solid #d8e4ef;
  border-radius: 12px;
  padding: 11px;
  background: #f9fcff;
  display: grid;
  gap: 6px;
}

.post-nav-links span {
  color: #0f6d9c;
  font-size: 12px;
  font-weight: 700;
}

.post-nav-links strong {
  color: #183f5d;
  font-size: 14px;
  line-height: 1.4;
}

.comments-section,
.comment-form-box {
  margin-top: 16px;
  border: 1px solid #d6e3ef;
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
}

.comments-section h3,
.comment-form-box h3 {
  margin-bottom: 10px;
}

.comments-section h3 span {
  color: #6b8195;
  font-size: 14px;
}

.comments-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  border: 1px solid #dbe7f2;
  border-radius: 11px;
  background: #fff;
  padding: 10px;
}

.comment-item p {
  margin: 5px 0 0;
}

.form {
  display: grid;
  gap: 8px;
}

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

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

body[data-lang="he"] .hp {
  left: auto;
  right: -9999px;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.empty-state {
  border: 1px dashed #cad9e8;
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  color: #597087;
}

.blog-load-controls {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-bottom: 4px;
}

.blog-load-sentinel {
  width: 100%;
  height: 2px;
}

.blog-load-btn {
  min-width: 180px;
}

.blog-load-btn[hidden] {
  display: none;
}

.blog-load-status {
  font-size: 13px;
  text-align: center;
}

.blog-back-top {
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #b7cce0;
  background: linear-gradient(110deg, #ffffff, #f3f9ff);
  color: #124464;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(12, 37, 58, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 42;
}

.blog-back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  margin-top: 34px;
  background: linear-gradient(155deg, #0a2740, #10415f 56%, #146280 120%);
  color: #e8f4ff;
}

.footer-inner {
  padding: 22px 0;
  display: grid;
  gap: 5px;
}

.quick-bar {
  position: fixed;
  inset-inline: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
  border-radius: 14px;
  padding: 6px;
  background: rgba(10, 37, 60, 0.94);
  box-shadow: 0 20px 36px rgba(8, 31, 52, 0.3);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.quick-bar__item {
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  font-size: 14px;
}

.quick-bar__item::before {
  content: "";
  width: 16px;
  height: 16px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.quick-bar__item--call {
  background: linear-gradient(110deg, #167db4, #29a2dc);
}

.quick-bar__item--call::before {
  background-image: url("/assets/images/icon-phone-3d.webp");
}

.quick-bar__item--wa {
  background: linear-gradient(110deg, #107e67, #16b57d);
}

.quick-bar__item--wa::before {
  background-image: url("/assets/images/icon-whatsapp.webp");
}

.quick-bar--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.quick-bar--hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1020px) {
  .blog-shell .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "links links";
    row-gap: 10px;
  }

  .logo {
    grid-area: logo;
  }

  .top-actions {
    grid-area: actions;
    justify-self: end;
  }

  .top-links {
    grid-area: links;
  }

  .b-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100vw - 20px, 1160px);
  }

  .section {
    padding: 24px 0;
  }

  .truck-banner {
    padding: 6px;
    border-radius: 12px;
  }

  .blog-title,
  .article-main,
  .widget {
    padding: 12px;
  }

  .topbar {
    position: static;
  }

  .top-actions .btn-compact {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .post-nav-links {
    grid-template-columns: 1fr;
  }

  .quick-bar {
    display: grid;
  }

  .blog-back-top {
    bottom: calc(74px + env(safe-area-inset-bottom));
    inset-inline-end: 10px;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-btn--media::after,
  .truck-banner::after,
  .b-post--reveal {
    animation: none;
    transition: none;
  }
}
