/* M חשמל — Homepage + Content pages (Stage 23). Tokens only. Loaded on the front page + content pages (brands, branches, contact, about, service, sales).
   Sections: .np-home-section (shortcode shell) · Hero (.np-hero, Elementor container) · categories / products / brands / trust / branches grids
   · brand tiles · branch cards · footer helpers. Elementor owns spacing between its containers; the shell only sets the section rhythm. */

/* ---------- Section shell ---------- */
.np-home-section { padding-block: var(--np-space-7); }
@media (min-width: 1025px) { .np-home-section { padding-block: var(--np-space-8); } }
.np-home-section > .np-container, .np-home-section > .np-container--wide { padding-inline: var(--np-gutter); margin-inline: auto; box-sizing: border-box; }
.np-home-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--np-space-4); margin-bottom: var(--np-space-5); }
.np-home-section__title { margin: 0; font-size: var(--np-font-h2-size); font-weight: var(--np-font-h2-weight); line-height: var(--np-font-h2-lh); color: var(--np-color-neutral-900); }
.np-home-section__link { display: inline-flex; align-items: center; gap: var(--np-space-1); flex: none; min-height: var(--np-touch); font-weight: 600; color: var(--np-color-brand-primary); text-decoration: none; white-space: nowrap; }
.np-home-section__link:hover, .np-home-section__link:focus-visible { text-decoration: underline; }
.np-home-section__link:focus-visible { outline: var(--np-focus-ring); outline-offset: 2px; border-radius: var(--np-radius-sm); }
/* alternate background — set on the Elementor container wrapping the shortcode (class np-home-band) */
.np-home-band { background: var(--np-color-bg-subtle); }
/* Elementor shortcode widget: no extra spacing around the section */
.elementor-widget-shortcode .np-home-section { padding-inline: 0; }

/* ---------- Hero (Elementor container .np-hero: text column + image column) ---------- */
.np-hero { background: var(--np-color-bg-subtle); }
.np-hero > .e-con-inner { padding-inline: var(--np-gutter); box-sizing: border-box; }
.np-hero .np-hero__body, .np-hero .np-hero__image { min-width: 0; }
.np-hero .np-hero__body > .e-con-inner, .np-hero .np-hero__image > .e-con-inner { min-width: 0; }
.np-hero .elementor-widget-heading .elementor-heading-title { overflow-wrap: anywhere; }
.np-hero .np-hero__title, .np-hero h1 { margin: 0 0 var(--np-space-3); font-size: var(--np-font-h1-size); font-weight: var(--np-font-h1-weight); line-height: var(--np-font-h1-lh); color: var(--np-color-neutral-900); }
.np-hero .np-hero__text { margin: 0 0 var(--np-space-5); font-size: var(--np-font-body-large-size); line-height: var(--np-font-body-large-lh); color: var(--np-color-text-secondary); max-width: 34rem; }
.np-hero .np-hero__image img { display: block; width: 100%; height: auto; border-radius: var(--np-radius-lg); }
.np-hero .elementor-widget-image { margin: 0; }
/* Elementor button widget inside the hero → Design System primary button geometry (colors come from the kit globals) */
.np-hero .elementor-button { min-height: var(--np-touch); border-radius: var(--np-radius-md); font-size: var(--np-font-button-size); font-weight: 600; padding-inline: var(--np-space-5); background-color: var(--np-color-brand-primary); color: var(--np-color-text-inverse); transition: background-color var(--np-motion-fast) var(--np-ease); }
.np-hero .elementor-button:hover, .np-hero .elementor-button:focus-visible { background-color: var(--np-color-brand-primary-hover); color: var(--np-color-text-inverse); }
.np-hero .elementor-button:focus-visible { outline: var(--np-focus-ring); outline-offset: 2px; }

/* ---------- Categories ---------- */
.np-home-categories__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--np-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px)  { .np-home-categories__grid { gap: var(--np-space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .np-home-categories__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1367px) { .np-home-categories__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.np-home-categories__grid > li { min-width: 0; }
.np-home-categories .np-category-card__media { aspect-ratio: 1 / 1; }
.np-home-categories .np-category-card__name { font-size: var(--np-font-body-size); }

/* ---------- Products ---------- */
.np-home-products__grid { list-style: none; margin: 0; padding: 0; }
.np-home-products__empty { margin: 0 auto; padding: var(--np-space-6) var(--np-gutter); text-align: center; color: var(--np-color-text-secondary); }
/* optional mobile horizontal scroller (scroll="1"): cards keep their width, page never overflows */
@media (max-width: 767px) {
  .np-home-products__grid--scroll { display: flex; gap: var(--np-space-3); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: var(--np-space-2); contain: paint; }
  .np-home-products__grid--scroll > * { flex: 0 0 72%; scroll-snap-align: start; }
}

/* ---------- Brands ---------- */
.np-brands-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--np-space-3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px)  { .np-brands-grid { gap: var(--np-space-4); grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .np-brands-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.np-brand-tile {
  display: flex; align-items: center; justify-content: center; min-height: 96px; padding: var(--np-space-4); box-sizing: border-box; text-decoration: none; color: var(--np-color-neutral-900);
  background: var(--np-color-bg-surface); border: 1px solid var(--np-color-border); border-radius: var(--np-radius-lg);
  transition: border-color var(--np-motion-fast) var(--np-ease), box-shadow var(--np-motion-fast) var(--np-ease);
}
.np-brand-tile:hover { border-color: var(--np-color-border-strong); box-shadow: var(--np-shadow-sm); text-decoration: none; }
.np-brand-tile:focus-visible { outline: var(--np-focus-ring); outline-offset: 2px; }
.np-brand-tile__logo { display: block; max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.np-brand-tile__name { font-weight: 600; font-size: var(--np-font-body-size); text-align: center; overflow-wrap: anywhere; }
.np-brand-tile:not(.np-brand-tile--text) .np-brand-tile__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Trust / service ---------- */
.np-trust-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--np-space-4); grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px)  { .np-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1025px) { .np-trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.np-trust-item { display: flex; gap: var(--np-space-3); align-items: flex-start; padding: var(--np-space-4); background: var(--np-color-bg-surface); border: 1px solid var(--np-color-border); border-radius: var(--np-radius-lg); }
.np-trust-item__icon { display: inline-flex; flex: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--np-radius-md); background: var(--np-color-brand-primary-soft); color: var(--np-color-brand-primary); }
.np-trust-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.np-trust-item__title { font-weight: 600; color: var(--np-color-neutral-900); }
.np-trust-item__text { font-size: var(--np-font-body-small-size); line-height: var(--np-font-body-small-lh); color: var(--np-color-text-secondary); }

/* ---------- Branches ---------- */
.np-branches-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--np-space-4); grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px)  { .np-branches-grid { gap: var(--np-space-5); grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.np-branch-card { display: flex; flex-direction: column; height: 100%; background: var(--np-color-bg-surface); border: 1px solid var(--np-color-border); border-radius: var(--np-radius-lg); overflow: hidden; box-sizing: border-box; }
.np-branch-card__media { aspect-ratio: 3 / 2; padding: 0; }
.np-branch-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-branch-card__body { display: flex; flex-direction: column; gap: var(--np-space-3); padding: var(--np-space-4); flex: 1; }
.np-branch-card__name { margin: 0; font-size: var(--np-font-h3-size); font-weight: var(--np-font-h3-weight); line-height: var(--np-font-h3-lh); color: var(--np-color-neutral-900); }
.np-branch-card__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--np-space-2); }
.np-branch-card__row { display: flex; gap: var(--np-space-2); align-items: flex-start; color: var(--np-color-text-secondary); line-height: 1.5; }
.np-branch-card__row .np-icon { color: var(--np-color-text-muted); margin-top: 2px; }
.np-branch-card__row a { color: var(--np-color-neutral-900); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 24px; }
.np-branch-card__row a:hover, .np-branch-card__row a:focus-visible { text-decoration: underline; color: var(--np-color-brand-primary); }
.np-branch-card__phone { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.np-branch-card__hours { white-space: normal; }
.np-branch-card__actions { display: flex; flex-wrap: wrap; gap: var(--np-space-2); margin-top: auto; padding-top: var(--np-space-2); }
.np-branch-card__actions .np-btn { min-height: var(--np-touch); }
.np-branch-card__actions .np-btn .np-icon { width: 16px; height: 16px; }

/* ---------- Content pages: narrow text ---------- */
.np-content-narrow { max-width: var(--np-container-narrow); margin-inline: auto; }
