/* ===== משתנים וכלליים ===== */
:root {
  --color-navy: #1a2f4d;
  --color-navy-dark: #101f36;
  --color-navy-light: #274169;
  --color-gold: #c9971f;
  --color-gold-light: #e0b23f;
  --color-bg: #faf8f4;
  --color-bg-alt: #f1ece1;
  --color-text: #23262b;
  --color-text-muted: #565b63;
  --shadow-soft: 0 6px 20px rgba(26, 47, 77, 0.1);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Heebo", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  font-size: 18px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: var(--color-navy);
  font-weight: 800;
  line-height: 1.35;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 0 0 28px;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 24px;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--color-navy-light);
}

p {
  margin: 0 0 18px;
}

a {
  color: var(--color-navy);
}

.section {
  padding: 56px 0;
}

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

/* ===== שורת הקדשה ===== */
.dedication {
  background: var(--color-navy-dark);
  color: #d7cba6;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
  letter-spacing: 0.2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background-image: url("../images/shvut-ariel.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 96px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(16, 31, 54, 0.88) 0%, rgba(39, 65, 105, 0.8) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  color: #fff;
  max-width: 640px;
  font-size: clamp(1.15rem, 5.8vw, 2.4rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(160deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-navy-dark);
  box-shadow: 0 8px 22px rgba(201, 151, 31, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(201, 151, 31, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== iframes רספונסיביים ===== */
.iframe-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.iframe-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}

.zmanim-frame iframe {
  height: 900px;
}

.map-frame iframe {
  height: 380px;
}

@media (max-width: 600px) {
  .zmanim-frame iframe {
    height: 1100px;
  }
  .map-frame iframe {
    height: 300px;
  }
}

/* ===== רב בית הכנסת ===== */
.rav-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.rav-photo {
  width: 220px;
  max-width: 60%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.rav-text h2 {
  text-align: center;
}

.phone-line a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}

.phone-line a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .rav-section {
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
    gap: 40px;
  }

  .rav-photo {
    width: 260px;
    max-width: none;
    flex-shrink: 0;
  }

  .rav-text h2,
  .rav-text p {
    text-align: right;
  }
}

/* ===== כרטיסי פעילות ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-gold);
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* ===== יצירת קשר ===== */
.contact-line {
  text-align: center;
  font-size: 1.1rem;
}

.contact-line a {
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

/* ===== פוטר ===== */
.site-footer {
  background: var(--color-navy-dark);
  color: #d7d9dd;
  text-align: center;
  padding: 32px 20px;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--color-gold-light);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
