/* ===== נביעות השראה — עיצוב אתר ===== */

:root {
  --bg: #fdfbf7;
  --bg-beige: #f6f0e6;
  --text-main: #5a3d2b;
  --text-dark: #3d2a1e;
  --accent-blue: #2c5f8a;
  --accent-blue-dark: #1e4360;
  --white: #ffffff;
  --border: #e3d8c8;
  --focus: #1e4360;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(90, 61, 43, 0.08);
  --font: "Assistant", "Heebo", Arial, sans-serif;
}

[data-contrast="high"] {
  --bg: #ffffff;
  --bg-beige: #ffffff;
  --text-main: #000000;
  --text-dark: #000000;
  --accent-blue: #003366;
  --accent-blue-dark: #001a33;
  --border: #000000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 100%;
}

[data-fontsize="1"] { font-size: 112%; }
[data-fontsize="2"] { font-size: 125%; }

[data-motion="reduced"] * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

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

a { color: var(--accent-blue); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== נגישות בסיסית ===== */

.skip-link {
  position: absolute;
  right: -999px;
  top: 0;
  background: var(--accent-blue-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 0 8px;
  font-weight: 600;
}
.skip-link:focus {
  right: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== ניווט עליון ===== */

header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-dark);
  text-decoration: none;
}
.logo span { color: var(--accent-blue); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
}
nav.main-nav a:hover { color: var(--accent-blue); }

@media (max-width: 760px) {
  nav.main-nav ul { gap: 16px; flex-wrap: wrap; }
}

/* ===== כותרת פרופיל (באנר + תמונה חופפת, בסגנון לינקדאין) ===== */

.profile-header {
  background: var(--bg);
  text-align: center;
  padding-bottom: 48px;
}

.banner-wrap {
  width: 100%;
  height: 240px;
  background: linear-gradient(120deg, var(--bg-beige) 0%, #ecdfc8 100%);
  overflow: hidden;
  position: relative;
}
.banner-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-wrap.banner-fallback::after {
  content: "מקום לתמונת באנר - יש להוסיף קובץ banner-image.jpg בתיקיית האתר";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: var(--text-main);
  font-size: 0.95rem;
  text-align: center;
}

.profile-header-inner {
  position: relative;
}

.profile-photo-wrap {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  border: 6px solid var(--white);
  background: var(--bg-beige);
  overflow: hidden;
  margin: -84px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-wrap.photo-fallback::after {
  content: "תמונה";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 0.85rem;
  text-align: center;
  padding: 8px;
}

.profile-header-text {
  padding-top: 20px;
}
.profile-header-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 16px;
}
.profile-header-text p.lead {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-main);
}

@media (max-width: 600px) {
  .banner-wrap { height: 160px; }
  .profile-photo-wrap { width: 128px; height: 128px; margin-top: -64px; }
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}
.btn-outline:hover { background: var(--accent-blue); color: #fff; }

/* ===== מקטעים כלליים ===== */

section { padding: 64px 0; }
section.alt { background: var(--bg-beige); }

h2.section-title {
  font-size: 1.9rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
}
p.section-sub {
  text-align: center;
  color: var(--text-main);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ===== מי אני ===== */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-photo {
  background: var(--bg-beige);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 0.95rem;
  text-align: center;
  padding: 16px;
  border: 1px dashed var(--border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-text ul {
  padding-inline-start: 20px;
}
.about-text li { margin-bottom: 8px; }

/* ===== כרטיסי שירות ===== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
}
.card h3 {
  color: var(--accent-blue-dark);
  margin-top: 0;
  font-size: 1.15rem;
}
.card p { margin-bottom: 0; color: var(--text-main); }

/* ===== דוגמת עבודה ===== */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; }
}
.showcase-media {
  background: var(--bg-beige);
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  border: 1px dashed var(--border);
}

/* ===== טופס יצירת קשר ===== */

form.contact-form {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text-dark);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.required-mark { color: #b3261e; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex-shrink: 0;
}
.checkbox-row label { font-weight: 400; color: var(--text-main); }
.checkbox-row a { text-decoration: underline; }

#form-status {
  margin-top: 16px;
  font-weight: 700;
}
#form-status.error { color: #b3261e; }
#form-status.success { color: #1e6b3a; }

.contact-details {
  text-align: center;
  margin-top: 36px;
  color: var(--text-main);
}
.contact-details a { font-weight: 700; }

/* ===== פוטר ===== */

footer.site-footer {
  background: var(--text-dark);
  color: #f2e9dc;
  padding: 40px 0 28px;
  text-align: center;
}
footer.site-footer a { color: #f2e9dc; text-decoration: underline; }
footer.site-footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
footer.site-footer .foot-small { opacity: 0.8; font-size: 0.9rem; }

/* ===== עמודים פנימיים (נגישות/פרטיות) ===== */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-page h1 { color: var(--text-dark); }
.legal-page h2 {
  color: var(--accent-blue-dark);
  margin-top: 36px;
}
.legal-page .updated {
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.legal-page .contact-box {
  background: var(--bg-beige);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 24px;
}
.legal-page a.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* ===== רכיב נגישות (Widget) ===== */

#a11y-toggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
#a11y-toggle:hover { background: var(--accent-blue-dark); }

#a11y-panel {
  position: fixed;
  left: 20px;
  bottom: 84px;
  z-index: 999;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  width: 250px;
  display: none;
}
#a11y-panel.open { display: block; }
#a11y-panel h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--text-dark);
}
#a11y-panel button.a11y-action {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-beige);
  color: var(--text-dark);
  font-family: inherit;
  cursor: pointer;
  font-size: 0.95rem;
}
#a11y-panel button.a11y-action[aria-pressed="true"] {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}
#a11y-panel button.a11y-reset {
  background: transparent;
  color: var(--accent-blue-dark);
  text-decoration: underline;
  border: none;
  padding: 6px 0 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ===== באנר עוגיות ===== */

#cookie-banner {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: var(--text-dark);
  color: #f2e9dc;
  padding: 18px 24px;
  z-index: 998;
  display: none;
}
#cookie-banner.open { display: block; }
.cookie-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p { margin: 0; flex: 1 1 400px; }
.cookie-inner a { color: #cfe3f2; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.cookie-accept { background: var(--accent-blue); color: #fff; }
.cookie-decline { background: transparent; color: #f2e9dc; border: 1px solid #f2e9dc !important; }
