/* ts-inner.css (1.1.0): inner page templates (מערכות סולאריות, רגולציה, המחלקות שלנו, שירות, צור קשר)
 * + mobile header fixes. Scoped with .tsi / #ts-hdr; colors from the theme tokens so light and dark
 * modes follow ts-light-dark.css. */

/* =====================================================================
 * Mobile header (1.1.0)
 * - no horizontal page overflow (wide decorative layers / Elementor sections made mobile browsers
 *   zoom out, which pushed the fixed header to one side);
 * - the bar always spans the screen: logo on the right, actions on the left (RTL);
 * - very small screens: tighter spacing and a smaller logo.
 * ===================================================================== */
html, body { max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@supports not (overflow: clip) { body { overflow-x: hidden; } }

#ts-hdr { left: 0 !important; right: 0 !important; width: 100% !important; max-width: 100% !important; }
#ts-hdr .ts-hdr-bar { width: 100%; justify-content: space-between; }
#ts-hdr .ts-brand { margin: 0; min-width: 0; }
#ts-hdr .ts-hdr-act { margin-inline-start: auto; }
#ts-hdr .ts-mnav { width: 100%; }

@media (max-width: 1023px) {
  #ts-hdr { padding: 8px 10px 0; }
  #ts-hdr .ts-hdr-bar { min-height: 56px; padding: 6px 12px; gap: 10px; }
  #ts-hdr .ts-burger { margin-inline-start: 2px; }
  #ts-hdr .ts-mnav { margin-top: 6px; max-height: calc(100dvh - 96px); }
}
@media (max-width: 380px) {
  #ts-hdr { padding: 6px 6px 0; }
  #ts-hdr .ts-hdr-bar { padding: 4px 8px; gap: 6px; }
  #ts-hdr img.ts-logo { height: 30px !important; max-height: 30px !important; max-width: 118px !important; }
}
/* Desktop: the 8-item menu fits next to the button; tighter between 1024 and 1280 */
@media (min-width: 1024px) and (max-width: 1280px) {
  #ts-hdr .ts-menu-desktop > .ts-mi > .ts-ml { padding-inline: 6px; font-size: 15px; }
}

/* =====================================================================
 * Inner pages
 * ===================================================================== */
.tsi { padding-bottom: 24px; }
.tsi-wrap { max-width: 72rem; margin: 0 auto; }
.tsi-sec { position: relative; padding: 64px 20px; }
@media (min-width: 768px) { .tsi-sec { padding: 88px 20px; } }
.tsi-sec.tsi-alt { background: var(--surface); }
.tsi-sec.tsi-t-cta, .tsi-sec.tsi-t-content { background: transparent; }

/* Hero */
.tsi-hero { padding: 140px 20px 56px; text-align: center; }
@media (min-width: 768px) { .tsi-hero { padding: 172px 20px 80px; } }
.tsi-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.tsi-hero-in { max-width: 56rem; margin: 0 auto; }
.tsi-h1 { margin: 0; font-size: clamp(2rem, 5.4vw, 3.75rem); font-weight: 900; line-height: 1.12; letter-spacing: -.01em; color: var(--foreground); }
.tsi-hero-sub { max-width: 42rem; margin: 20px auto 0; font-size: 1.125rem; line-height: 1.7; color: color-mix(in srgb, var(--foreground) 78%, transparent); }
.tsi-hero .tsi-btns { justify-content: center; margin-top: 30px; }

/* Headings */
.tsi-eyebrow { display: inline-block; margin-bottom: 16px; padding: 4px 16px; border-radius: 999px; font-size: .875rem; font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--brand-orange) 30%, transparent); background: color-mix(in srgb, var(--brand-orange) 10%, transparent); color: var(--text-sand, var(--brand-sand)); }
.tsi-head { max-width: 48rem; margin: 0 auto 44px; text-align: center; }
.tsi-h2 { margin: 0; font-size: clamp(1.75rem, 3.6vw, 3rem); font-weight: 900; line-height: 1.15; letter-spacing: -.01em; color: var(--foreground); }
.tsi-sub { margin: 16px auto 0; max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-foreground); }

/* Buttons */
.tsi-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.tsi-center { justify-content: center; }
.tsi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; line-height: 1.2; text-decoration: none !important; transition: transform .25s, box-shadow .25s, border-color .25s, background-color .25s; }
.tsi-btn-p { color: #fff !important; }
.tsi-btn-p:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-lg); }
.tsi-btn-s { border: 1px solid color-mix(in srgb, var(--foreground) 25%, transparent); color: var(--foreground) !important; }
.tsi-btn-s:hover { border-color: var(--brand-orange); background: color-mix(in srgb, var(--brand-orange) 10%, transparent); }
.tsi-ico-s { width: 16px; height: 16px; flex: 0 0 auto; }
@media (max-width: 480px) { .tsi-btns .tsi-btn { flex: 1 1 100%; } }

/* Intro */
.tsi-intro-grid { display: grid; gap: 32px; align-items: center; }
.tsi-intro-grid .tsi-head { margin-bottom: 20px; }
.tsi-intro-grid:not(.has-img) .tsi-intro-txt { max-width: 48rem; margin: 0 auto; text-align: center; }
.tsi-intro-grid.has-img .tsi-head { text-align: start; margin-inline: 0; }
@media (min-width: 900px) { .tsi-intro-grid.has-img { grid-template-columns: 1.1fr .9fr; gap: 48px; } }
.tsi-intro-img img { width: 100%; height: auto; border-radius: 1.5rem; display: block; }
.tsi-prose p { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.8; color: color-mix(in srgb, var(--foreground) 82%, transparent); }
.tsi-prose p:last-child { margin-bottom: 0; }

/* Cards */
.tsi-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .tsi-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .tsi-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tsi-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tsi-cards > div { min-width: 0; }
.tsi-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px; border-radius: 1rem; overflow: hidden; color: var(--foreground) !important; text-decoration: none !important; }
.tsi-card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: color-mix(in srgb, var(--brand-orange) 12%, transparent); color: var(--brand-orange); }
.tsi-card-ico svg { width: 26px; height: 26px; }
.tsi-card-t { margin: 18px 0 0; font-size: 1.2rem; font-weight: 700; line-height: 1.35; color: var(--foreground); }
.tsi-card-x { margin: 8px 0 0; color: var(--muted-foreground); line-height: 1.65; }
.tsi-card-go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--text-orange, var(--brand-orange)); }
.tsi-card.is-link:hover .tsi-card-go svg { transform: translateX(-4px); }
.tsi-card-go svg { transition: transform .2s; }
.tsi-card.is-link:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; }

/* Steps */
.tsi-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: none; }
@media (min-width: 640px) { .tsi-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .tsi-steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tsi-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tsi-step { display: flex; gap: 16px; align-items: flex-start; margin: 0; padding: 22px; border-radius: 1rem; border: 1px solid var(--border); background: color-mix(in srgb, var(--background) 55%, transparent); }
.tsi-step::before, .tsi-step::marker { content: none; }
.tsi-step-n { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--brand-orange); font-weight: 800; color: var(--text-sand, var(--brand-sand)); box-shadow: var(--shadow-glow); }
.tsi-step-t { margin: 2px 0 0; font-size: 1.1rem; font-weight: 700; color: var(--foreground); }
.tsi-step-x { margin: 6px 0 0; color: var(--muted-foreground); line-height: 1.6; }

/* Dates */
.tsi-dates { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 60rem; margin: 0 auto; }
.tsi-date { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 1rem; border-inline-start: 4px solid var(--brand-orange) !important; }
.tsi-date-ico { width: 24px; height: 24px; color: var(--brand-orange); }
.tsi-date-d { font-size: 1.9rem; font-weight: 900; line-height: 1; color: var(--foreground); text-align: right; }
.tsi-date-x { margin: 0; color: var(--muted-foreground); line-height: 1.6; }

/* FAQ */
.tsi-faq { max-width: 52rem; margin: 0 auto; display: grid; gap: 12px; }
.tsi-faq-i { border: 1px solid var(--border); border-radius: 1rem; background: var(--card); overflow: hidden; }
.tsi-faq-i summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 1.05rem; color: var(--foreground); }
.tsi-faq-i summary::-webkit-details-marker { display: none; }
.tsi-faq-i summary:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: -2px; }
.tsi-faq-pm { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.tsi-faq-pm::before, .tsi-faq-pm::after { content: ""; position: absolute; inset: 8px 0 auto; height: 2px; border-radius: 2px; background: var(--brand-orange); transition: transform .2s; }
.tsi-faq-pm::after { transform: rotate(90deg); }
.tsi-faq-i[open] .tsi-faq-pm::after { transform: rotate(0); }
.tsi-faq-a { padding: 0 22px 18px; }
.tsi-faq-a p { margin: 0 0 10px; color: var(--muted-foreground); line-height: 1.75; }

/* Posts */
#ts-main.tsi .tsi-posts { margin-top: 0; }

/* Quote */
.tsi-quote { position: relative; display: flex; gap: 20px; align-items: flex-start; max-width: 60rem; margin: 0 auto; padding: 28px; border-radius: 1.5rem; overflow: hidden; }
.tsi-quote::before { content: ""; position: absolute; inset: 0 0 0 auto; width: 4px; background: linear-gradient(to bottom, var(--brand-red), var(--brand-orange), var(--brand-sand)); }
.tsi-quote-ico { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--brand-orange) 40%, transparent); background: color-mix(in srgb, var(--brand-orange) 10%, transparent); color: var(--brand-orange); }
.tsi-quote-ico svg { width: 28px; height: 28px; }
.tsi-quote blockquote { margin: 0; padding: 0; border: 0; }
.tsi-quote blockquote p { margin: 0; font-size: 1.2rem; line-height: 1.7; color: var(--foreground); }
.tsi-quote figcaption { margin-top: 10px; font-weight: 700; color: var(--muted-foreground); }

/* Contact */
.tsi-contact-grid { display: grid; gap: 20px; align-items: start; max-width: 64rem; margin: 0 auto; }
@media (min-width: 900px) { .tsi-contact-grid:has(> :nth-child(2)) { grid-template-columns: .85fr 1.15fr; } }
.tsi-cdetails, .tsi-cform { padding: 24px; border-radius: 1.5rem; }
@media (min-width: 768px) { .tsi-cdetails, .tsi-cform { padding: 32px; } }
.tsi-cdetails .ts-cc-details { display: grid; gap: 12px; }
.tsi-cdetails .ts-cc-row { margin: 0; }
.tsi-cform-btn { display: flex; align-items: center; justify-content: center; min-height: 160px; }
.tsi-contact-grid > :only-child { max-width: 40rem; width: 100%; margin: 0 auto; }

/* CTA */
.tsi-cta-box { position: relative; overflow: hidden; isolation: isolate; max-width: 64rem; margin: 0 auto; padding: 48px 24px; border-radius: 2rem; text-align: center; border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 768px) { .tsi-cta-box { padding: 64px 48px; } }
.tsi-cta-box > * { position: relative; z-index: 1; }
.tsi-cta-glow { position: absolute !important; z-index: 0 !important; inset: -40% auto auto 50%; width: 30rem; height: 30rem; transform: translateX(-50%); border-radius: 999px; opacity: .35; filter: blur(60px); background: radial-gradient(circle, var(--brand-orange), var(--brand-red) 45%, transparent 70%); pointer-events: none; }
.tsi-cta-box .tsi-btns { justify-content: center; }

/* Page content */
.tsi-content.ts-prose { max-width: 48rem; margin: 0 auto; }
.tsi-content-el { max-width: none; }

/* Counters reused from the home page (dark band) */
.tsi > #ts-stats { padding-top: 56px; padding-bottom: 56px; }
.tsi-cdetails .ts-cc-details { color: var(--foreground); }
.tsi-cdetails .ts-cc-details a { color: var(--foreground) !important; -webkit-text-fill-color: currentColor; text-decoration: none; }
.tsi-cdetails .ts-cc-details a:hover { color: var(--brand-orange) !important; }
.tsi-cdetails .ts-wa { display: inline-flex; align-items: center; gap: 8px; }
.tsi-cdetails .ts-wa-ico { width: 22px; height: 22px; color: #25D366; }

/* =====================================================================
 * Demo-site sections (1.1.1): utilities the demo markup uses + service map + unlinked items
 * ===================================================================== */
.pb-6 { padding-bottom: 1.5rem; } .pb-10 { padding-bottom: 2.5rem; } .pb-16 { padding-bottom: 4rem; }
.mb-2 { margin-bottom: .5rem; } .mb-6 { margin-bottom: 1.5rem; } .top-5 { top: 1.25rem; }
.gap-x-5 { column-gap: 1.25rem; } .gap-y-2 { row-gap: .5rem; }
.text-foreground\/85 { color: color-mix(in oklab, var(--foreground) 85%, transparent); }
@media (min-width: 640px) { .sm\:text-right { text-align: right; } }
@media (min-width: 768px) { .md\:justify-end { justify-content: flex-end; } }
.svm-dot { animation: svmP 2.6s ease-in-out infinite; }
.svm-dot circle:first-child { transform-box: fill-box; transform-origin: center; }
@keyframes svmP { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .svm-dot { animation: none; } }
.ts-nolink { cursor: default; }
.tsi-iframe { max-width: 72rem; margin: 0 auto; padding: 0 20px 48px; }
