/* ריהוט גן מודיעין – איילים | שחזור מצילומי מסך */
:root {
  --navy: #142134;
  --footer-bg: #142134;
  --footer-bar: #dcdfe6;
  --gray-section: #ede9e9;
  --orange: #f09a21;
  --orange-dark: #d9840c;
  --green: #5cb85c;
  --green-logo: #5cb848;
  --phone-red: #c0272d;
  --text: #333;
  --muted: #777;
  --wrap: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding-bottom: var(--cookie-h, 0px);
  direction: rtl;
  background: #fff;
  color: var(--text);
  font-family: "Heebo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* static fallback content in the HTML (for search engines / before JS renders) */
#app > h1, #app > p, #app > ul, #app > nav { max-width: var(--wrap); margin: 16px auto; padding: 0 16px; }
#app > nav a { margin-left: 12px; }

/* ---------- header ---------- */
.site-header { background: #fff; padding: 18px 0 10px; text-align: center; position: relative; z-index: 5; }
.site-header .logo { display: inline-block; vertical-align: top; } /* link = the logo only, not the whole row */
.site-header .logo img { height: 58px; width: auto; margin: 0 auto; }
.main-nav ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 0; }
.main-nav a {
  display: block; padding: 6px 11px; font-size: 15px; font-weight: 500;
  color: #333; text-decoration: none; transition: color .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange-dark); }
.main-nav a.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--green-logo); }
.main-nav a.nav-phone:hover { color: var(--orange-dark); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; container-type: inline-size; background: #333; }
.hero-img { width: 100%; aspect-ratio: 1920 / 529; object-fit: cover; }
.hero-mobile { display: none; }
/* soft dark gradient behind the text side (right) so white text stays readable on the photo */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to left, rgba(0,0,0,.55) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,0) 72%);
}
.hero-text {
  /* mirrors the form: form starts 25.95% from the left, text ends 25.95% from the right -> the pair is centered */
  position: absolute; z-index: 1; top: 12%; right: 25.95%; width: 30cqw;
  color: #fff; text-align: right; font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,.9), 0 0 14px rgba(0,0,0,.6);
}
.hero-text .hero-title { margin: 0 0 .2em; font-size: max(2.7cqw, 26px); line-height: 1.2; font-family: inherit; }
.hero-text .hero-sub { margin: 0 0 .45em; font-size: max(1.95cqw, 20px); line-height: 1.25; font-family: inherit; }
.hero-text p { margin: 0 0 .3em; font-size: max(1.4cqw, 16px); font-weight: 500; }
.hero-text a { color: #fff; }
.hero-form {
  position: absolute; z-index: 1; top: 11.5%; left: 25.95%; width: 17.4cqw; /* 50% wider, grows leftwards so it stays clear of the hero text */
  background: #333; border-radius: 2px; padding: 1.1cqw 1cqw 1cqw;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); color: #fff; text-align: center;
}
.hero-form h3 { margin: 0 0 .9cqw; font-size: 1.2cqw; font-weight: 400; }

.contact-form input {
  display: block; width: 100%; margin: 0 0 1.05cqw; padding: .3cqw .5cqw;
  border: 1px solid #ccc; border-radius: 2px; font: inherit; font-size: max(.78cqw, 13px); direction: rtl;
}
.contact-form button {
  width: 100%; border: 0; border-radius: 2px; background: var(--green); color: #fff;
  font: inherit; font-size: max(.78cqw, 13px); font-weight: 700; padding: .45cqw; cursor: pointer;
}
.contact-form button:hover { background: #43a047; }
.contact-form .ok { font-size: max(.8cqw, 13px); margin: .4cqw 0 0; }
.contact-form .form-note { font-size: max(.6cqw, 11px); margin: .5cqw 0 0; color: #ddd; line-height: 1.4; }
.contact-form .form-note a { color: #fff; }

/* ---------- content ---------- */
.content { padding: 14px 0 40px; }
.section-title { text-align: center; color: var(--navy); font-size: 27px; font-weight: 700; margin: 10px 0 16px; }
.section-title.orange { color: var(--orange); }
.intro { text-align: center; font-size: 16px; margin: -4px 0 24px; }
.intro p { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 18px; margin-top: 20px; }
.card { text-align: center; }
.card .img { display: block; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 219 / 184; object-fit: contain; background: #fff; /* whole image visible: logos/stickers at the edges are never cut */ transition: transform .3s; cursor: zoom-in; }
.card:hover img { transform: scale(1.03); }
.card h3 { color: var(--orange); font-size: 19px; line-height: 1.35; margin: 14px 0 8px; font-weight: 700; }
.card.has-desc h3 { text-align: right; }
.desc-center .card.has-desc h3, .desc-center .card .desc { text-align: center; }
.card .desc { text-align: right; font-size: 15px; line-height: 1.7; color: #333; }
.card .desc p { margin: 0 0 4px; }
.card .desc p.gap { height: 6px; margin: 0; }
.card .desc p.price { color: #f83a22; font-weight: 700; font-size: 1.15em; margin-top: 8px; }
.grid + .grid { margin-top: 60px; }
.section-title.sub { margin-top: 60px; }
.card .desc ul { margin: 0 0 8px; padding: 0 14px 0 0; }

.extra { text-align: center; margin: 40px 0 10px; }
.extra h4 { color: var(--navy); font-size: 21px; margin: 0 0 8px; }
.extra p { margin: 0 0 4px; font-size: 16px; }
.extra .orange { color: var(--orange); }

/* text pages (accessibility statement) */
.text-page { max-width: 820px; margin: 0 auto; font-size: 16px; line-height: 1.8; }
.text-page h2 { color: var(--navy); font-size: 19px; margin: 32px 0 10px; }
.text-page p { margin: 0 0 10px; }
.text-page ul { margin: 0 0 12px; padding: 0 22px 0 0; }
.text-page li { margin-bottom: 4px; }
.text-page a { color: var(--orange-dark); }
.footer-bar .legal a { color: var(--navy); }

/* home: category circles */
.cats { background: var(--gray-section); padding: 26px 0 30px; text-align: center; }
.cats h2 { color: var(--navy); font-size: 27px; margin: 0; }
.cats .sub { font-size: 16px; margin: 4px 0 24px; font-weight: 700; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 20px; max-width: 900px; margin: 0 auto; }
.cats-grid a { text-decoration: none; color: #333; font-size: 21px; justify-self: center; display: inline-flex; flex-direction: column; align-items: center; }
.cats-grid img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; background: #fff; transition: transform .2s; }
.cats-grid a:hover img { transform: scale(1.06); }
.teaser { display: flex; align-items: center; justify-content: center; gap: 40px; margin: 70px auto 0; max-width: 900px; text-align: right; }
.teaser img { width: 300px; height: 170px; object-fit: cover; border-radius: 85px; }
.teaser h3 { font-size: 23px; color: var(--navy); margin: 0 0 14px; }
.teaser p { font-size: 15px; margin: 0 0 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; padding: 60px 0 70px; margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 30px; max-width: 920px; margin: 0 auto; padding: 0 16px; align-items: start; }
.footer-cols h4 { color: var(--orange); font-size: 18px; margin: 6px 0 12px; }
.footer-cols .ico { color: var(--orange); font-size: 15px; }
.footer-cols p { margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.socials { display: flex; gap: 20px; }
.socials a { color: var(--orange); text-decoration: none; }
.socials svg, .bar-socials svg { width: 15px; height: 15px; fill: currentColor; }
.map { width: 100%; height: 155px; border: 0; background: #e5e3df; }
.footer-bar { background: var(--footer-bar); padding: 22px 0 18px; font-size: 13px; }
.footer-bar .row { max-width: 960px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bar .brand { display: flex; align-items: center; gap: 18px; }
.footer-bar .brand img { height: 50px; width: auto; }
.footer-bar .hours strong { display: block; font-size: 15px; }
.call { color: var(--green-logo); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--green-logo); font-size: 20px; line-height: 1.2; text-align: center; }
.call small { display: block; font-size: 14px; }
.bar-socials { display: flex; gap: 40px; }
.bar-socials a { color: var(--navy); }
.bar-socials svg { width: 18px; height: 18px; }
.footer-bar .legal { text-align: center; margin-top: 18px; }
.footer-bar .legal a { display: table; margin: 10px auto 0; } /* own line, but only as wide as its text */

/* ---------- accessibility ---------- */
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
#main:focus { outline: none; }
.skip-link { position: absolute; top: -60px; right: 16px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 6px 6px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; }
.a11y-btn {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 40;
  width: 48px; height: 48px; border: 0; border-radius: 0 8px 8px 0; background: #1a5fb4; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.a11y-btn:hover { background: #154c91; }
.a11y-panel {
  position: fixed; left: 56px; top: 50%; transform: translateY(-50%); z-index: 41; width: 250px;
  background: #fff; color: #222; border: 2px solid #1a5fb4; border-radius: 8px; padding: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.3);
  display: flex; flex-direction: column; gap: 8px; font-size: 16px;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 4px; font-size: 18px; color: #1a5fb4; }
.a11y-panel button, .a11y-panel a {
  font: inherit; font-size: 15px; text-align: right; padding: 8px 10px; border: 1px solid #c8d3e3; border-radius: 6px;
  background: #f4f7fb; color: #222; cursor: pointer; text-decoration: none;
}
.a11y-panel button:hover, .a11y-panel a:hover { background: #e3ebf7; }
.a11y-panel .a11y-opt[aria-pressed="true"] { background: #1a5fb4; color: #fff; border-color: #1a5fb4; }
.a11y-font { display: flex; align-items: center; gap: 6px; }
.a11y-font span { flex: 1; }
.a11y-font button { width: 42px; text-align: center; padding: 6px 0; font-weight: 700; }
.a11y-font output { min-width: 44px; text-align: center; font-weight: 700; }
.a11y-panel .a11y-reset { background: #fff; }
.a11y-panel .a11y-statement { border: 0; background: none; text-decoration: underline; color: #1a5fb4; padding: 4px 10px; }

/* high contrast */
.a11y-contrast body, .a11y-contrast #app *:not(img):not(svg):not(path):not(circle):not(iframe) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important;
}
.a11y-contrast #app a, .a11y-contrast #app a * { color: #ff0 !important; }
.a11y-contrast .card h3, .a11y-contrast .section-title { color: #ff0 !important; }
.a11y-contrast .hero-img { opacity: .35; }
.a11y-contrast #app svg { fill: #ff0 !important; }
.a11y-contrast #app .a11y-panel .a11y-opt[aria-pressed="true"] { background-color: #ff0 !important; color: #000 !important; }
.a11y-contrast #app .hero-text, .a11y-contrast #app .hero-text * { background-color: transparent !important; }
.a11y-contrast #app .a11y-btn { background-color: #000 !important; outline: 2px solid #ff0; }
.a11y-contrast .contact-form input { background: #fff !important; color: #000 !important; }
.a11y-contrast .contact-form button, .a11y-contrast .fab-call { border: 2px solid #ff0 !important; }
/* highlighted links */
.a11y-links #app a { text-decoration: underline !important; outline: 2px dashed #d00; outline-offset: 2px; background-color: #ffef9e; color: #000 !important; }
.a11y-links.a11y-contrast #app a { background-color: #000 !important; color: #ff0 !important; outline-color: #ff0; }
/* stop motion */
.a11y-still *, .a11y-still *::before, .a11y-still *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* cookie notice bar */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 16px;
  box-shadow: 0 -3px 12px rgba(0,0,0,.25); font-size: 15px;
}
.cookie-bar p { margin: 0; max-width: 760px; line-height: 1.5; }
.cookie-bar a { color: #ffd27a; }
.cookie-bar button {
  flex: none; border: 0; border-radius: 6px; background: var(--green); color: #fff; font: inherit; font-weight: 700;
  padding: 9px 26px; cursor: pointer;
}
.cookie-bar button:hover { background: #449d44; }
.a11y-contrast .cookie-bar, .a11y-contrast .cookie-bar * { background-color: #000 !important; color: #fff !important; }
.a11y-contrast .cookie-bar a { color: #ff0 !important; }
.a11y-contrast .cookie-bar button { border: 2px solid #ff0 !important; }
.map-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  color: #555; font-size: 14px; padding: 12px;
}
.map-placeholder p { margin: 0; }
.map-placeholder a { color: var(--navy); font-weight: 700; }

/* floating WhatsApp button */
.wa-fab {
  position: fixed; right: 22px; bottom: calc(22px + var(--cookie-h, 0px)); z-index: 30; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: transform .2s; animation: wa-pulse 2.5s ease-out 1s 3;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-label {
  position: absolute; right: 70px; white-space: nowrap; background: #fff; color: #222; font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { opacity: 1; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
.a11y-contrast #app .wa-fab { background-color: #000 !important; outline: 2px solid #ff0; }

/* floating phone (mobile) */
.fab-call { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 90vw; box-shadow: 0 4px 30px #000; }
.lightbox button { position: absolute; top: 14px; left: 18px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { container-type: normal; }
  .hero-img { display: none; }
  .hero-mobile { display: block; width: 100%; height: 170px; object-fit: cover; }
  .hero-text, .hero-form { position: static; width: auto; }
  .hero-text { background: var(--navy); padding: 18px 16px 6px; text-align: center; text-shadow: none; }
  .hero::after { display: none; }
  .hero-text .hero-title { font-size: 27px; }
  .hero-text .hero-sub { font-size: 20px; }
  .hero-text p { font-size: 17px; }
  .hero-form { background: var(--navy); border-radius: 0; box-shadow: none; padding: 6px 16px 20px; }
  .hero-form h3 { display: none; }
  .contact-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; flex-wrap: wrap; }
  .contact-form input { flex: 1 1 140px; margin: 0; font-size: 15px; padding: 9px 10px; }
  .contact-form button { flex: 1 1 100%; font-size: 15px; padding: 10px; }
  .contact-form .ok { font-size: 14px; flex-basis: 100%; }
  .contact-form .form-note { font-size: 13px; flex-basis: 100%; text-align: center; margin: 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .map-col { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section-title { font-size: 23px; }
  .cats h2 { font-size: 23px; }
  .nav-toggle {
    display: block; position: absolute; top: 22px; right: 16px; background: none; border: 0;
    width: 44px; height: 44px; cursor: pointer; padding: 10px;
  }
  .nav-toggle span { display: block; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; margin-top: 10px; border-top: 1px solid #eee; }
  .main-nav a { font-size: 16px; padding: 11px; border-bottom: 1px solid #f2f2f2; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .card h3 { font-size: 17px; }
  .card .desc, .intro, .extra p, .teaser p { font-size: 16px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid img { width: 120px; height: 120px; }
  .teaser { flex-direction: column; gap: 18px; text-align: center; margin-top: 44px; }
  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .footer-cols p { font-size: 16px; }
  .socials { justify-content: center; }
  .footer-bar .row { justify-content: center; text-align: center; }
  .footer-bar { font-size: 14px; padding-bottom: 80px; }
  .fab-call {
    display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; bottom: calc(14px + var(--cookie-h, 0px)); left: 14px; right: 14px;
    background: var(--green); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none;
    padding: 12px; border-radius: 30px; box-shadow: 0 3px 12px rgba(0,0,0,.3); z-index: 20;
  }
}
@media (max-width: 420px) {
  .grid.has-desc { grid-template-columns: 1fr; }
}

/* mobile: WhatsApp circle sits next to the call bar */
@media (max-width: 700px) {
  .wa-fab { right: 14px; bottom: calc(14px + var(--cookie-h, 0px)); width: 52px; height: 52px; }
  .wa-label { display: none; }
  .fab-call { right: 78px; }
}

/* mobile: compact cookie bar */
@media (max-width: 700px) {
  .cookie-bar { font-size: 13px; gap: 10px; padding: 8px 12px; }
  .cookie-bar p { line-height: 1.4; }
  .cookie-bar button { padding: 8px 16px; }
}
