/* Meitar Group — shared site styles */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

:root {
  --navy: #022A71;
  --blue: #0054E9;
  --blue-light: #0780C3;
  --text: #2B2B2B;
  --text-muted: #5A5A5A;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --border: #E4E8F0;
  --radius: 14px;
  --max-width: 1180px;
  --header-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: 0 0 16px;
}

h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 20px; }

p { margin: 0 0 16px; color: var(--text); }

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo img { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  color: var(--navy);
  padding: 8px 0;
  position: relative;
}

.main-nav a:hover { color: var(--blue); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--navy);
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 10px 26px;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { filter: brightness(0.95); }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,42,113,.92) 0%, rgba(2,42,113,.55) 55%, rgba(2,42,113,.15) 100%);
}

.hero .container { position: relative; z-index: 1; max-width: 640px; }

.hero .badge {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 5.5vw, 56px);
  animation: hero-title-in .9s ease-out both;
}

@keyframes hero-title-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero p { color: rgba(255,255,255,.9); font-size: 18px; }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(2,42,113,.10);
  transform: translateY(-3px);
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--text-muted); font-size: 15px; margin-bottom: 0; }

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat .stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.stat .stat-value { font-size: 20px; font-weight: 700; color: var(--navy); }

/* Markets grid */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.market-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  color: #fff;
  transition: transform .35s ease, box-shadow .35s ease;
}

.market-tile:hover {
  transform: scale(1.035);
  box-shadow: 0 16px 36px rgba(2,42,113,.28);
}

.market-tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2,42,113,0) 40%, rgba(2,42,113,.85) 100%);
}

.market-tile span {
  position: relative; z-index: 1;
  padding: 18px;
  font-weight: 600;
  font-size: 18px;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.news-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.news-item h3 { font-size: 18px; }
.news-item a.read-more { color: var(--blue); font-weight: 600; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.team-card { text-align: center; }
.team-card .avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin: 0 auto 16px;
  transition: transform .25s ease;
}
.team-card:hover .avatar { transform: scale(1.08); }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }

input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.checkbox-row input { width: auto; }

/* Table (Ohio listings) */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.listing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}

.listing-card:hover {
  box-shadow: 0 12px 32px rgba(2,42,113,.10);
  transform: translateY(-3px);
}

.listing-card .status {
  position: absolute; top: 16px; left: 16px;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}

.listing-card dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 14px; }
.listing-card dt { color: var(--text-muted); }
.listing-card dd { margin: 0; font-weight: 600; }

/* Timeline (Yarkon Park) */
.timeline-step {
  border-inline-start: 3px solid var(--blue);
  padding: 4px 0 24px 0;
  padding-inline-start: 20px;
  margin-inline-start: 6px;
}
.timeline-step .status {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 48px 0 24px;
  margin-top: 48px;
}

.site-footer a { color: #fff; }
.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer .footer-logo img { height: 38px; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 18px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* Accessibility widget */
.skip-link {
  position: fixed;
  top: -60px;
  right: 16px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1000;
  transition: top .2s ease;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.a11y-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.a11y-toggle:hover { background: var(--blue); }

.a11y-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 300;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: 75vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  padding: 44px 20px 20px;
  display: none;
}
.a11y-panel.open { display: block; }

.a11y-panel h2 {
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--navy);
}

.a11y-close {
  position: absolute;
  top: 10px;
  left: 14px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  width: 28px; height: 28px;
}
.a11y-close:hover { color: var(--text); }

.a11y-font-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.a11y-font-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
}
.a11y-font-btn:hover { border-color: var(--blue); background: var(--bg-alt); }

.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.a11y-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  text-align: center;
}
.a11y-btn .icon { font-size: 20px; }
.a11y-btn:hover { border-color: var(--blue); }
.a11y-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.a11y-reset {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}
.a11y-reset:hover { border-color: var(--blue); }

.a11y-statement-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}

.a11y-reading-guide-bar {
  position: fixed;
  left: 0; right: 0;
  height: 40px;
  background: rgba(255,214,10,.35);
  border-top: 2px solid #ffd60a;
  border-bottom: 2px solid #ffd60a;
  z-index: 299;
  pointer-events: none;
  display: none;
}
html.a11y-reading-guide .a11y-reading-guide-bar { display: block; }

/* Accessibility feature states */
html.a11y-high-contrast body,
html.a11y-high-contrast .section,
html.a11y-high-contrast .section-alt,
html.a11y-high-contrast .site-header,
html.a11y-high-contrast .site-footer {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-high-contrast .card,
html.a11y-high-contrast .listing-card,
html.a11y-high-contrast .news-item,
html.a11y-high-contrast .stat,
html.a11y-high-contrast .team-card,
html.a11y-high-contrast input,
html.a11y-high-contrast textarea {
  background: #111 !important;
  color: #fff !important;
  border-color: #fff !important;
}
html.a11y-high-contrast a { color: #ffd60a !important; }
html.a11y-high-contrast .btn-primary { background: #ffd60a !important; color: #000 !important; }
html.a11y-high-contrast img { filter: grayscale(.3) contrast(1.1); }
html.a11y-high-contrast .hero::before { background: rgba(0,0,0,.85) !important; }
html.a11y-high-contrast .hero h1,
html.a11y-high-contrast .hero p { color: #fff !important; }

html.a11y-grayscale { filter: grayscale(1); }

html.a11y-highlight-links a {
  outline: 2px solid #ffd60a !important;
  background: #fff59d !important;
  color: #000 !important;
  text-decoration: underline !important;
}
html.a11y-highlight-links .a11y-toggle,
html.a11y-highlight-links .a11y-btn,
html.a11y-highlight-links .a11y-close,
html.a11y-highlight-links .a11y-statement-link {
  outline: none !important;
  background: initial;
}

html.a11y-readable-font,
html.a11y-readable-font * {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-text-spacing,
html.a11y-text-spacing p,
html.a11y-text-spacing li,
html.a11y-text-spacing h1,
html.a11y-text-spacing h2,
html.a11y-text-spacing h3 {
  letter-spacing: .05em !important;
  word-spacing: .15em !important;
  line-height: 1.9 !important;
}

html.a11y-stop-animations *,
html.a11y-stop-animations *::before,
html.a11y-stop-animations *::after {
  animation: none !important;
  transition: none !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24"><path d="M4 2l14 10-6 1-2 6-6-17z" fill="black" stroke="white" stroke-width="1.5"/></svg>') 4 2, auto !important;
}

/* Bounce arrow */
.bounce-arrow {
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 8px;
  animation: bounce-arrow 1.6s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .22s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .34s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .4s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .46s; }
.reveal-stagger.in-view > *:nth-child(n+9) { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .bounce-arrow, .hero h1 {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Collapsible details */
.collapsible {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s cubic-bezier(.4,0,.2,1);
}
.collapsible.open {
  grid-template-rows: 1fr;
}
.collapsible-inner {
  overflow: hidden;
}

/* Data table */
.table-scroll { overflow-x: auto; margin: 24px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.data-table th, .data-table td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-alt); font-weight: 700; color: var(--navy); }
.data-table tr:last-child td { border-bottom: none; }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--blue); }

/* Utilities */
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* Responsive */
@media (max-width: 860px) {
  .main-nav { position: fixed; inset: var(--header-height) 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: 460px; text-align: center; }
  .hero .container { max-width: 100%; }
}
