/* --- COLORS FROM DESIGN --- */
:root{
  --bg:#E7C9A9;
  --text-dark:#264D49;
  --accent:#B6613E;
  --light:#F2E5D5;
  --border:#A87A56;

  --accent-dark:#8E4A2F;
  --accent-dark-hover:#753B25;
}

/* --- GLOBAL RESET (מונע פערים של user-agent) --- */
*{box-sizing:border-box}
html,body,section,div,header,main,footer,figure,picture{margin:0; padding:0}
img{display:block; max-width:100%; height:auto; margin:0; padding:0; vertical-align:middle}
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text-dark);
}

/* Typography */
h1,h2{font-family:"Playfair Display", Georgia, serif; letter-spacing:.3px}
h1{font-weight:700; margin:0 0 1rem}
h2{font-weight:600; margin:0 0 1.6rem}

/* --- BUTTONS --- */
.buttons{display:flex; gap:1rem; flex-wrap:wrap}
.btn{
  background:var(--accent); color:#fff; padding:.9rem 1.6rem;
  border-radius:10px; text-decoration:none; font-weight:600;
  box-shadow:0 6px 16px rgba(182,97,62,.25);
  transition:transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn:hover{background:#944f31; transform:translateY(-1px); box-shadow:0 10px 22px rgba(182,97,62,.28)}
.btn-outline{
  background: var(--accent-dark); color:#fff; padding:.9rem 1.6rem;
  border-radius:10px; text-decoration:none; font-weight:600; border:none;
  box-shadow:0 6px 16px rgba(142,74,47,.3);
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn-outline:hover{ background: var(--accent-dark-hover); transform: translateY(-1px); box-shadow:0 10px 22px rgba(142,74,47,.35)}

/* --- HERO (Desktop / default) --- */
.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:3rem;
  padding:5rem min(8vw,120px);
  flex-wrap:wrap;
}
.hero .text{flex:1 1 420px; min-width:320px; max-width:700px}
.hero h1{font-size: clamp(2.6rem, 3.6vw + 1.2rem, 4.2rem)}
.hero p{font-size: clamp(1.05rem, .5vw + .9rem, 1.25rem); line-height:1.6; margin:0 0 2rem}

/* Photo */
.photo{flex:1 1 520px; display:flex; justify-content:flex-end; line-height:0}
.photo img{
  width:min(680px, 100%);
  border-radius:14px;
  box-shadow:0 14px 36px rgba(0,0,0,.25);
  object-fit:contain; /* בדסקטופ לא חותכת */
}

/* --- AUDIO SECTION --- */
.audio{
  background:var(--light);
  padding:3.2rem min(8vw,120px);
  border-top:3px solid var(--accent);
}
.audio h2{font-size: clamp(1.6rem, .8vw + 1.2rem, 2.2rem)}
.track{
  display:grid;
  grid-template-columns: 150px 1fr;
  gap:1rem;
  align-items:center;
  margin-bottom:1rem;
}
.label{font-weight:700; color:var(--text-dark)}
.player{
  position:relative; background:var(--accent); border-radius:14px; padding:.6rem .8rem;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 6px 16px rgba(182,97,62,.18);
}
.player audio{ width:100%; height:42px; display:block; filter: saturate(.95); background:transparent; border-radius:10px }

/* --- VIDEO SECTION --- */
.video{padding:3.2rem min(8vw,120px)}
.video-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:1.6rem }
.video-grid iframe{ width:100%; aspect-ratio:16/9; border:0; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.18) }

/* --- FOOTER --- */
footer{ text-align:center; padding:1.6rem; font-size:.95rem; color:var(--text-dark); border-top:1px solid var(--border) }

/* --- ANIMATIONS (subtle) --- */
@keyframes fadeUp { from {opacity:0; transform: translateY(16px);} to {opacity:1; transform:none;} }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
.hero .text { animation: fadeUp .6s ease-out .05s both }
.photo img   { animation: fadeIn .7s ease-out .1s both }
.audio .track, .video h2, .video-grid iframe { animation: fadeUp .6s ease-out .15s both }
@media (prefers-reduced-motion: reduce){
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px){
  .hero{padding:4rem min(6vw,72px)}
  .photo img{width:min(720px,100%)}
}

/* ===== HERO: MOBILE — אפס רווח מתחת לתמונה, בלי חיתוך ===== */
@media (max-width: 900px){
  .hero{
    padding:0 !important; margin:0 !important; gap:0 !important;
    flex-direction:column; align-items:stretch; text-align:left; background: var(--bg);
  }

  /* תמונה קודם, אפס רווחים */
  .photo{
    order:-1; width:100%; margin:0 !important; padding:0 !important;
    display:block; line-height:0 !important;           /* מונע פס מתחת ל-img */
  }
  .photo img{
    display:block !important;
    width:100vw !important; max-width:100vw !important;
    height:auto !important;                              /* לא חותך */
    margin:0 !important; padding:0 !important;
    border-radius:0 !important; box-shadow:none !important;
    object-fit:contain !important; object-position:center !important;
    vertical-align:middle !important;
  }

  /* הטקסט מיד אחרי התמונה — בלי מרווח עליון */
  .hero .text{
    max-width:720px; margin:0 auto;
    padding:0 4% 24px !important;                       /* אין padding-top */
  }
  .hero .text > *:first-child{ margin-top:0 !important }
}

/* --- CONTACT PAGE --- */
.contact-page {
  min-height: 100vh;
  background-color: var(--bg);
  padding: 4rem min(8vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-content {
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
  background-color: var(--light); border-radius: 18px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden; max-width: 1100px; width: 100%;
}
.contact-text { flex: 1 1 520px; padding: 3rem 3rem 2.2rem }
.contact-text h1 { font-size: 2.8rem; margin: 0 0 1rem; color: var(--text-dark) }
.contact-text p { font-size: 1.15rem; margin: 0 0 2rem; color: var(--text-dark); max-width: 520px }

form { display: flex; flex-direction: column; gap: 1.1rem }
label { font-weight: 600; font-family: Inter, sans-serif }
input, textarea {
  width: 100%; padding: 0.95rem 1rem; border-radius: 10px; border: 1.5px solid var(--border);
  font-family: Inter, sans-serif; font-size: 1rem; background: #fff; color: var(--text-dark);
  transition: border-color .25s ease, box-shadow .25s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(182,97,62,.15) }
textarea { min-height: 140px; resize: vertical }
.contact-text .btn { align-self: flex-start; margin-top: .5rem; padding: 1rem 1.6rem; border-radius: 12px }

/* footer links in contact */
.contact-text footer { margin-top: 2.2rem; font-size: .98rem; color: var(--text-dark) }
.contact-text footer a { color: var(--accent); text-decoration: none; font-weight: 600 }
.contact-text footer a:hover { text-decoration: underline }

/* Contact image (desktop default) */
.contact-image {
  flex: 1 1 480px;
  background: transparent;           /* שלא ייראה פס */
  display: block;
  margin:0; padding:0; line-height:0;/* חשוב כדי להעלים פער מתחת ל-img */
}
.contact-image img { width: 100%; height: 100%; object-fit: cover; display:block }

/* --- CONTACT: MOBILE — אפס רווח בין התמונה לטופס; אם חותכים רואים את הראש --- */
@media (max-width: 900px){
  .contact-page{ padding:0 !important; margin:0 !important }
  .contact-content{
    flex-direction: column-reverse; width: 100vw; max-width: 100vw;
    border-radius: 0; box-shadow: none; overflow: hidden; background-color: var(--light);
  }

  .contact-image{
    width:100%; margin:0 !important; padding:0 !important; line-height:0 !important;
    background: transparent !important;
  }
  .contact-image img{
    display:block !important; width:100% !important; margin:0 !important; padding:0 !important;
    height:42vh !important; object-fit: cover !important; object-position: center top !important;
    vertical-align:middle !important;
  }

  /* הטופס נצמד, בלי מרווח עליון */
  .contact-text{
    background-color: var(--light); margin:0 !important; padding:0 4% 26px !important;
  }
  .contact-text h1{ margin:0 0 8px !important; font-size:2rem }
  .contact-text p{ font-size:1.05rem; margin:0 0 14px; max-width:none }
  form{ gap:12px }
  input, textarea{ font-size:16px; padding:14px 12px; width:100% } /* iOS: no auto-zoom */
  .contact-text .btn{ width:100%; text-align:center; padding:14px 16px; border-radius:12px; margin-top:6px }
}

/* Back to Home link (אם משתמשים) */
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: Inter, sans-serif;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-link:hover { color: #944f31; text-decoration: underline }

@media (max-width:900px){ .hero .text h1, .contact-text h1 { margin-top:0 !important } }

/* ===== FINAL FIX: remove beige gap below hero & contact image ===== */

/* מחיקת כל רווח בין תמונה לתוכן */
.photo,
.photo img,
.contact-image,
.contact-image img {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  line-height: 0 !important;
  vertical-align: bottom !important;
}

/* מעלימים מרווח שנוצר מהסקשן הבא */
.hero + *,
.contact-image + * {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ספציפית למובייל */
@media (max-width: 900px) {
  .hero {
    padding-bottom: 0 !important;
  }
  .hero .text {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .contact-page,
  .contact-content,
  .contact-text {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}
/* ===== KILL THE GAP BELOW IMAGES ON MOBILE (Hero + Contact) ===== */
@media (max-width: 900px){

  /* HERO */
  .hero{ padding:0 !important; margin:0 !important; gap:0 !important; }
  .photo{ line-height:0 !important; margin:0 !important; padding:0 !important; }
  .photo img{ display:block !important; margin:0 !important; padding:0 !important; }
  /* החלק הבעייתי: מרווח עליון של הבלוק והכותרת */
  .hero .text{
    margin:0 !important;
    padding:0 4% 24px !important;   /* אין padding-top */
    overflow:hidden !important;     /* מונע קריסת מרג'ין */
  }
  .hero .text h1{ margin-top:0 !important; }

  /* CONTACT */
  .contact-page{ padding:0 !important; margin:0 !important; }
  .contact-content{
    overflow:hidden !important;     /* מונע קריסת מרג'ין שגורמת לפס */
    border-radius:0 !important;
    box-shadow:none !important;
  }
  .contact-image{ line-height:0 !important; margin:0 !important; padding:0 !important; background:transparent !important; }
  .contact-image img{
    display:block !important;
    width:100% !important;
    height:42vh !important;
    object-fit:cover !important;
    object-position:center top !important;  /* רואים את הראש */
    margin:0 !important; padding:0 !important;
  }
  .contact-text{
    margin:0 !important;
    padding:0 4% 26px !important;   /* אין padding-top */
    overflow:hidden !important;     /* אין קריסת מרג'ין */
  }
  .contact-text h1{ margin-top:0 !important; }
}
/* ===== ZERO-GAP BELOW IMAGES (iOS fix) ===== */
@media (max-width: 900px){

  /* HERO – מצמיד את הבלוק של הטקסט לתמונה */
  .hero{ padding-bottom:0 !important; }
  .photo{ line-height:0 !important; }
  .photo img{ display:block !important; margin:0 !important; padding:0 !important; }
  .hero .text{
    margin-top:-12px !important;   /* <<< מצמיד לטובה, אפשר לכוונן -8/-16 */
    padding-top:0 !important;
  }
  .hero .text h1{ margin-top:0 !important; }

  /* CONTACT – מצמיד את הטופס לתמונה */
  .contact-page{ padding-top:0 !important; }
  .contact-content{ overflow:hidden !important; }
  .contact-image{ line-height:0 !important; }
  .contact-image img{
    display:block !important; margin:0 !important; padding:0 !important;
    height:42vh !important; object-fit:cover !important; object-position:center top !important;
  }
  .contact-text{
    margin-top:-12px !important;   /* <<< אותו עיקרון – הצמדה מלאה */
    padding-top:0 !important;
  }
  .contact-text h1{ margin-top:0 !important; }
}

/* אם נשאר קו דקיק במסכים מסוימים – הדקי עוד טיפה: */
@supports (margin-top: -1px){
  @media (max-width:900px){
    .hero .text, .contact-text{ margin-top:-16px !important; }
  }
}

/* עדכון עיצוב כפתור חזרה */
.contact-text .btn-outline {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
}

/* התאמה למובייל */
@media (max-width: 900px) {
  .contact-text .btn-outline {
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

