/* עיצוב v2 (פיבוט-האחריות, PLAN-3): אמון-פרימיום — ירוק-יער (עמידות) + ברונזה (CTA) על שמנת; Suez One + Assistant */
:root {
  /* Design System 2026-07-27 — פרימיום זהב/פחם (מקור: DESIGN-SYSTEM.md) */
  --c-primary: #0F1114;      /* שחור-פחם — כותרות, רקע כהה (hero/footer), לוגו */
  --c-primary-light: #7C5A1E;/* זהב-כהה לקישורים (AA על שמנת ≥4.5) */
  --c-accent: #C89F4E;       /* זהב-מותג — CTA, אייקונים, הדגשה */
  --c-accent-dark: #9C7530;  /* זהב-כהה — hover/לחיצה */
  --c-bg: #F7F5EF;           /* שמנת */
  --c-bg-alt: #E9E5DC;       /* אבן */
  --c-text: #15171A;
  --c-text-muted: #55585E;
  --c-border: #E1DBCB;
  --c-hero-text: #F7F5EF;    /* טקסט על רקע-כהה (hero, footer, cta) */
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 4px 22px rgba(24, 44, 34, .12);
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Assistant', 'Heebo', system-ui, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary-light); }
h1, h2, h3, h4 { font-family: 'Heebo', 'Assistant', system-ui, sans-serif; line-height: 1.18; color: var(--c-primary); font-weight: 800; letter-spacing: -.2px; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { background: var(--c-bg); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 1.1rem; color: var(--c-primary); }
.logo-img { width: 36px; height: 36px; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; padding: 8px 10px; border-radius: 6px; color: var(--c-text); font-weight: 500; }
.main-nav a:hover { background: var(--c-bg-alt); }
.nav-toggle { display: none; }
.cart-link { text-decoration: none; font-weight: 700; color: var(--c-text); }
.cart-count { background: var(--c-accent); color: #15171A; border-radius: 999px; padding: 0 7px; font-size: .8rem; font-weight: 700; }

/* buttons */
.btn { display: inline-block; padding: 13px 28px; border-radius: var(--radius-pill); border: 0; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 1rem; font-family: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(135deg, #9C7530 0%, #D4AF67 48%, #C89F4E 100%); color: #15171A; box-shadow: 0 4px 14px rgba(200,159,78,.3); }
.btn-primary:hover { background: linear-gradient(135deg, #B08A3E 0%, #E0BE78 48%, #D4AF67 100%); color: #0F1114; }
.btn-outline { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-outline:hover { background: var(--c-bg-alt); }

/* sections */
.section { padding: 48px 0; }
.section-alt { background: var(--c-bg-alt); }

/* footer */
.site-footer { background: var(--c-primary); color: #e3e9f1; margin-top: 64px; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #cdd9e8; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 12px 16px; font-size: .9rem; }

/* whatsapp fab */
.whatsapp-fab { position: fixed; bottom: 20px; left: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; text-decoration: none; box-shadow: var(--shadow); z-index: 60; }
.whatsapp-fab svg { width: 30px; height: 30px; }
/* Header כהה (Design System — פרימיום) */
.site-header { background: #191919; border-bottom: 1px solid rgba(200,159,78,.28); }
.site-header .logo, .site-header .cart-link { color: var(--c-hero-text); }
.site-header .logo-text { display: none; }
.site-header .logo-img { width: auto; height: 42px; }
.site-header .main-nav a { color: var(--c-hero-text); }
.site-header .main-nav a:hover { background: rgba(255,255,255,.09); }
.site-header .nav-toggle { color: var(--c-hero-text); border-color: rgba(255,255,255,.3); background: transparent; }
/* סיפור לפני/אחרי (תמונות-אווירה) */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 22px 0 6px; }
.story-grid figure { margin: 0; }
.story-grid img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--c-border); }
.story-grid figcaption { margin-top: 8px; font-weight: 600; color: var(--c-text-muted); }
.story-turn { font-size: 1.2rem; margin-top: 16px; }
.center { text-align: center; }
@media (max-width: 640px) { .story-grid { grid-template-columns: 1fr; } }

/* hero — פס כהה בירוק-יער: הצהרת-העיצוב של v2 */
.hero { position: relative; overflow: hidden; min-height: 78vh; display: flex; align-items: center; padding: 64px 0; color: var(--c-hero-text); background: #0F1114 url('/assets/lifestyle/shed-exterior-garden.webp') center/cover no-repeat; }
.hero h1 { color: #ffffff; }
.hero .lead { color: var(--c-hero-text); font-size: 1.15rem; }
.hero .trust-row li { color: var(--c-hero-text); }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-inner { display: block; position: relative; z-index: 2; }
.hero-text { max-width: 640px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to left, rgba(15,17,20,.92) 0%, rgba(15,17,20,.55) 48%, rgba(15,17,20,.15) 100%); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
@media (max-width: 640px) { .hero-video { display: none; } .hero { min-height: 66vh; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0 0 14px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.lead { font-size: 1.15rem; color: var(--c-text-muted); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.btn-ghost { background: rgba(15,17,20,.35); color: #EBD9AF; border: 1.5px solid rgba(200,159,78,.65); backdrop-filter: blur(2px); }
.btn-ghost:hover { border-color: #C89F4E; color: #fff; }
.section .btn-ghost, .section-alt .btn-ghost { color: var(--c-primary); border-color: var(--c-border); }
.btn-sm { padding: 8px 16px; font-size: .95rem; }
.btn-block { display: block; text-align: center; }
.trust-row { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; padding: 0; margin: 8px 0 0; color: var(--c-text-muted); font-weight: 500; }
.trust-col { flex-direction: column; gap: 8px; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* sections */
.section-sub { color: var(--c-text-muted); max-width: 640px; }
.center { text-align: center; }
.cta-band { background: var(--c-primary); color: #fff; border-radius: 0; }
.cta-band h2, .cta-band p { color: #fff; }

/* benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.benefit { background: var(--c-bg-alt); border-radius: var(--radius); padding: 20px; }
.benefit h3 { margin-top: 0; }
/* מערכת-אייקונים (PLAN-14: החלפת אמוג'ים) — badge ממותג במקום אמוג'י-מקלדת */
.ico-badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--c-primary); color: #fff; margin-bottom: 12px; box-shadow: 0 2px 6px rgba(20,64,47,.18); }
.ico-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-badge.accent { background: var(--c-accent); color: #15171A; box-shadow: 0 2px 6px rgba(200,159,78,.28); }
.btn .ico-inline { width: 20px; height: 20px; vertical-align: -4px; margin-inline-end: 8px; }
.ico-li { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 6px; }
.cart-link .ico-cart { width: 21px; height: 21px; vertical-align: -5px; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: #15171A; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }

/* badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; }
.legend { color: var(--c-text-muted); }

/* product cards */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin: 24px 0; }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--c-text); transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card img { aspect-ratio: 8/5; object-fit: cover; background: var(--c-bg-alt); }
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; font-size: 1.15rem; }
.product-card-desc { margin: 0; font-size: .92rem; color: var(--c-text-muted); flex: 1; }
.product-card-price { margin: 0; font-size: 1.05rem; }
.product-card-price strong { color: var(--c-accent-dark); font-size: 1.25rem; }
.store-note { background: var(--c-bg-alt); border-radius: var(--radius); padding: 16px 20px; }

/* product page */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-image { border-radius: var(--radius); border: 1px solid var(--c-border); width: 100%; }
.product-size { color: var(--c-text-muted); font-weight: 500; }
.configurator { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; background: #fff; }
.configurator fieldset { border: 0; padding: 0; margin: 0; }
.configurator legend { font-weight: 700; font-size: 1.1rem; color: var(--c-primary); margin-bottom: 10px; }
.config-group { padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.config-check, .config-radio { display: block; padding: 6px 0; cursor: pointer; }
.config-check input, .config-radio input { margin-inline-end: 8px; transform: scale(1.2); }
.config-note { font-size: .85rem; color: var(--c-text-muted); margin: 4px 0 0; }
.config-title { font-weight: 700; margin: 0 0 4px; }
.config-delivery { font-size: .9rem; color: var(--c-text-muted); }
.price-box { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.price-label { font-weight: 500; }
.price-value { font-size: 2rem; font-weight: 900; color: var(--c-accent-dark); font-family: 'Rubik', sans-serif; }
.price-note { font-size: .85rem; color: var(--c-text-muted); }
.configurator .btn { margin: 6px 6px 0 0; }
.product-specs li { padding: 3px 0; }
.tech-illustrations { margin-top: 48px; }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech-grid figure { margin: 0; }
.tech-grid img { border: 1px solid var(--c-border); border-radius: var(--radius); }
.tech-grid figcaption { text-align: center; font-size: .9rem; color: var(--c-text-muted); padding-top: 6px; }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.cart-item { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; background: #fff; }
.cart-item-head { display: flex; justify-content: space-between; align-items: center; }
.cart-item h3 { margin: 0; }
.cart-remove { background: none; border: 0; color: #a33; cursor: pointer; font-family: inherit; font-size: .9rem; }
.cart-item-total { margin: 6px 0 0; }
.cart-grand { font-size: 1.3rem; }
.cart-note { font-size: .85rem; color: var(--c-text-muted); font-weight: 400; }
.cart-empty { background: var(--c-bg-alt); padding: 24px; border-radius: var(--radius); }
.order-form { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; background: var(--c-bg-alt); position: sticky; top: 84px; }
.order-form label { display: block; font-weight: 500; margin: 12px 0; }
.order-form input { width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 8px; font-family: inherit; font-size: 1rem; margin-top: 4px; }
.order-form .btn { width: 100%; margin-top: 10px; }

/* articles */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 24px; }
.article-card { display: block; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--c-text); transition: box-shadow .15s; }
.article-card:hover { box-shadow: var(--shadow); }
.article-card h3 { margin-top: 0; }
.read-more { color: var(--c-accent-dark); font-weight: 700; }
.article-container { max-width: 760px; }
.article-date { color: var(--c-text-muted); font-size: .9rem; }
.article-body h2 { margin-top: 32px; }
.article-cta { background: var(--c-bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 40px; }
.article-cta h2 { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.article-body table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.article-body th, .article-body td { border: 1px solid var(--c-border); padding: 8px 12px; text-align: right; }
.article-body th { background: var(--c-bg-alt); color: var(--c-primary); }
.article-body tr:nth-child(even) td { background: #fafbfc; }

/* faq + legal + misc */
.faq-container, .legal-container, .about-container, .coming-soon { max-width: 800px; }
details { border: 1px solid var(--c-border); border-radius: 8px; padding: 12px 16px; margin: 10px 0; background: #fff; }
details summary { font-weight: 700; cursor: pointer; color: var(--c-primary); }
details[open] summary { margin-bottom: 8px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; font-size: 1.1rem; display: grid; gap: 10px; }
.contact-side { background: var(--c-bg-alt); border-radius: var(--radius); padding: 24px; }
.waitlist-box { background: var(--c-bg-alt); border-radius: var(--radius); padding: 24px; margin: 24px 0; }

/* mobile */
@media (max-width: 780px) {
  .hero-inner, .product-grid, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .benefits-grid, .steps { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .order-form { position: static; }

  .nav-toggle { display: block; background: none; border: 1px solid var(--c-border); border-radius: 6px; padding: 8px 12px; font-family: inherit; font-size: 1rem; cursor: pointer; }
  .main-nav ul { display: none; position: absolute; inset-inline: 0; top: 64px; background: var(--c-bg); flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow); }
  .main-nav ul.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- v2: רכיבי-האחריות ---------- */
.warranty-draft-banner { background: #7a1f1f; color: #ffffff; text-align: center; padding: 10px 16px; font-weight: 700; }
.warranty-hero { background: var(--c-bg-alt); border-bottom: 4px solid var(--c-primary); }
.warranty-table th { background: var(--c-primary); color: #ffffff; }
.warranty-table tbody th { background: var(--c-bg-alt); color: var(--c-primary); }
.warranty-years { white-space: nowrap; font-size: 1.05rem; color: var(--c-primary); }
.warranty-table td, .warranty-table th { vertical-align: top; }

/* ---------- רספונסיביות מלאה: טאבלט + כל המובייל (PLAN: התאמת-מסכים 2026-07) ---------- */

/* טאבלט (781-1024): רשתות-4 נהיות צפופות מדי הרבה לפני 780 */
@media (max-width: 1024px) {
  .benefits-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 8px 7px; font-size: .95rem; }
}

/* טאבלט-צר / מובייל-רוחבי (781-900): ההירו נערם לפני שהטקסט נמחץ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; margin: 0 auto; }
}

/* מובייל צר (עד 420): מגע נוח, אפס מחנק */
@media (max-width: 420px) {
  .container { padding: 0 12px; }
  .section { padding: 32px 0; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.45rem; }
  .hero .lead, .lead { font-size: 1.02rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .trust-row { gap: 8px; flex-direction: column; }
  .benefits-grid, .steps, .tech-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .btn { padding: 13px 20px; }
  .config-form label, .config-form input, .config-form select { display: block; width: 100%; box-sizing: border-box; }
  .warranty-table { font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-fab { width: 50px; height: 50px; bottom: 14px; left: 14px; }
}

/* יעדי-מגע (כל המובייל): מינימום ~44px לניווט ולאפשרויות-הקונפיגורטור */
@media (max-width: 780px) {
  .main-nav a { display: block; padding: 12px 10px; font-size: 1.05rem; }
  .config-check, .config-radio { padding: 11px 0; }
  .config-check input, .config-radio input { transform: scale(1.35); }
  .cart-link { padding: 10px 6px; }
  h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .warranty-table th, .warranty-table td { min-width: 110px; }
  img { height: auto; }
}

/* סיור תלת-ממדי (PLAN-5) */
.tour-btn { display: block; width: 100%; text-align: center; margin-top: 10px; }
.tour-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tour-box canvas { display: block; }

/* ---------- דף-הכיול (PLAN-6, אזור פרטי בלבד) ---------- */
.input-invalid { outline: 2px solid #b3261e; background: #fdeeee; }
.cal-bad { color: #b3261e; font-weight: 600; }
.cart-repriced { background: #fff8e1; border-inline-start: 4px solid #b58900; padding: .6em .8em; }

/* תצוגת שלוש-השורות: מחיר + הובלה שומרת-אחריות + סה"כ עד הבית (הכרעת-הבעלים 19.7) */
.price-delivery { margin: .3em 0 0; color: var(--ink-soft, #4a5a52); }
.price-total { margin: .2em 0 .5em; font-size: 1.15em; }
.price-total b { font-size: 1.15em; }
.price-trust { font-size: .85em; color: var(--ink-soft, #4a5a52); white-space: nowrap; }
