/* ===== רוית חיון-שושן — פסיכולוגית קלינית מומחית ===== */

:root {
  --bg: #faf8f4;
  --bg-alt: #f0ebe2;
  --text: #3a3a3a;
  --heading: #2c4a52;
  --accent: #4a7c7e;
  --accent-dark: #35605f;
  --gold: #b99a5f;
  --white: #ffffff;
  --shadow: 0 2px 14px rgba(44, 74, 82, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Assistant", "Heebo", Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
}

/* ===== כותרת עליונה ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand { text-decoration: none; }
.brand h1 {
  font-size: 1.35rem;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
}
.brand span {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 400;
}

/* ===== ניווט ===== */
nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  align-items: center;
}

nav li { position: relative; }

nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a.active { background: var(--bg-alt); color: var(--accent-dark); }

/* תפריט נפתח */
nav li.has-sub > a::after { content: " ▾"; font-size: 0.7em; }

nav li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  min-width: 210px;
  box-shadow: var(--shadow);
  border-radius: 8px;
  padding: 0.4rem;
  flex-direction: column;
}

nav li:hover .submenu, nav li:focus-within .submenu { display: flex; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--heading);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}

/* ===== אזור פתיחה (Hero) ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  padding: 3.5rem 1.2rem;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-photo {
  width: 300px;
  max-width: 80vw;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 6px 26px rgba(44, 74, 82, 0.22);
  flex-shrink: 0;
}

.hero-text { flex: 1; min-width: 260px; }

.hero-text h2 {
  font-size: 2.3rem;
  color: var(--heading);
  line-height: 1.25;
}

.hero-text .subtitle {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 0.3rem;
}

.hero-text .license { font-size: 0.95rem; color: #7a7a7a; margin-top: 0.4rem; }

/* ===== באנר לעמודים פנימיים ===== */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 4.5rem 1.2rem;
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(44, 74, 82, 0.55);
}

.page-banner h2 {
  position: relative;
  color: var(--white);
  font-size: 2.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.page-banner.plain { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.page-banner.plain::before { display: none; }

/* ===== תוכן ===== */
main { max-width: 850px; margin: 0 auto; padding: 2.8rem 1.2rem; }

main h3 {
  color: var(--heading);
  font-size: 1.45rem;
  margin: 2rem 0 0.7rem;
}

main h3:first-child { margin-top: 0; }

main p { margin-bottom: 1.1rem; }

main .note {
  background: var(--bg-alt);
  border-right: 4px solid var(--gold);
  padding: 1rem 1.3rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* כרטיסים בעמוד הבית */
.cards {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.2rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.6rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(44,74,82,0.16); }

.card h4 { color: var(--accent-dark); font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; line-height: 1.6; }

/* ===== יצירת קשר ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-details a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.contact-details p { margin-bottom: 0.9rem; }

.contact-form label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 0.25rem; }

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #d5cec2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}

.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  background: var(--accent-dark);
  color: var(--white);
  border: none;
  padding: 0.7rem 2.2rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent); }

.btn-whatsapp { background: #25a05a; }
.btn-whatsapp:hover { background: #1e8a4c; }

/* ===== קריאה לפעולה ===== */
.cta {
  background: var(--accent-dark);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.2rem;
}

.cta p { font-size: 1.2rem; margin-bottom: 1.2rem; }

.cta .btn { background: var(--white); color: var(--accent-dark); }
.cta .btn:hover { background: var(--bg-alt); }

/* ===== כותרת תחתונה ===== */
footer {
  background: var(--heading);
  color: #e8e4dc;
  text-align: center;
  padding: 1.6rem 1.2rem;
  font-size: 0.95rem;
}

footer a { color: var(--white); text-decoration: none; font-weight: 600; }

/* ===== מסכים בינוניים — התפריט יורד לשורה נפרדת ===== */
@media (max-width: 980px) {
  .header-inner { justify-content: center; text-align: center; }
  nav { width: 100%; }
  nav ul { justify-content: center; flex-wrap: wrap; }
}

/* ===== מובייל ===== */
@media (max-width: 640px) {
  .menu-toggle { display: block; }

  nav { width: 100%; }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.8rem;
  }

  nav ul.open { display: flex; }

  nav li .submenu {
    display: flex;
    position: static;
    box-shadow: none;
    background: var(--bg-alt);
    margin: 0.2rem 0.8rem;
  }

  .hero { padding: 2.2rem 1.2rem; }
  .hero-inner { justify-content: center; text-align: center; }
  .hero-text h2 { font-size: 1.8rem; }
  .page-banner { padding: 3rem 1.2rem; }
  .page-banner h2 { font-size: 1.7rem; }
}
