/* ==========================================================================
   מערכת עיצוב - אתר אדריכלית
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400&family=Assistant:wght@300;400;500;600&display=swap');

:root {
  /* צבעים */
  --bg-light: #f6f7f1;
  --bg-dark: #6E5A44;
  --text-primary: #3A2E22;
  --text-secondary: #8A7561;
  --divider: #D8CDBB;
  --accent-gold: #D9B98C;
  --accent-warm: #9A744A;
  --bg-light-rgb: 246, 247, 241;
  --accent-warm-rgb: 154, 116, 74;

  /* טיפוגרפיה */
  --font-heading: 'Tinos', serif;
  --font-body: 'Assistant', sans-serif;

  /* מרווחים */
  --radius-sm: 8px;
  --radius-pill: 999px;
  --section-padding: 6rem 2rem;
  --section-padding-mobile: 3.5rem 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.7;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  line-height: 1.3;
}

p {
  margin: 0;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Placeholder תמונות (יוחלפו בתמונות אמיתיות)
   ========================================================================== */

.img-placeholder {
  background: linear-gradient(155deg, #B4A184 0%, #6E5A44 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  min-height: 100%;
}

.img-placeholder.dark {
  background: linear-gradient(155deg, #4A3A2C 0%, #2A2118 100%);
}

/* ==========================================================================
   ניווט
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-nav.is-scrolled,
.nav-static .site-nav {
  background: var(--bg-light);
  box-shadow: 0 1px 0 var(--divider);
  padding: 12px 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-icon-link {
  color: #fff;
  font-size: 17px;
  display: flex;
  transition: color 0.3s ease;
}

.site-nav.is-scrolled .nav-icon-link,
.nav-static .site-nav .nav-icon-link {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: #fff;
  transition: color 0.3s ease;
}

.site-nav.is-scrolled .nav-links,
.nav-static .site-nav .nav-links {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.site-nav.is-scrolled .nav-toggle,
.nav-static .site-nav .nav-toggle {
  color: var(--text-primary);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--bg-light);
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  left: 24px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--bg-light);
  cursor: pointer;
}

.mobile-menu-icons {
  display: flex;
  gap: 28px;
  margin-top: 12px;
  color: var(--bg-light);
}

.mobile-menu-icons a {
  display: inline-flex;
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   כפתורים
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 15px 34px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

/* זכוכית על תמונה/רקע כהה */
.btn-glass-dark {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* זכוכית על רקע בהיר */
.btn-glass-light {
  background: rgba(var(--accent-warm-rgb), 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(var(--accent-warm-rgb), 0.3);
  color: var(--text-primary);
}

/* CTA מלא */
.btn-solid {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--bg-light);
}

/* ==========================================================================
   גריד סימטרי
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* כרטיס פרויקט בתוך גריד - מניעת מתיחה וחפיפה בין שורות */
.grid-3 > a,
.grid-3 > .project-card {
  display: block;
  align-self: start;
}

/* ==========================================================================
   גריד פרויקטים (עמוד פרויקטים) - 2 טורים בדסקטופ, טור אחד במובייל
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}

.projects-grid > a,
.projects-grid > .project-card {
  display: block;
  align-self: start;
}

@media (max-width: 780px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   אודות - טקסט ופורטרט
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 780px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* במובייל הטקסט מוצג ראשון, והתמונה מתחתיו במידה מוקטנת וממורכזת */
  .about-grid .about-portrait {
    width: 80%;
    margin: 0 auto;
  }
}

/* ==========================================================================
   צור קשר - תמונת אווירה וטופס
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-mood {
  position: relative;
  overflow: hidden;
}

.contact-mood img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* שכבת כהות עדינה, לשמירה על ניגודיות הטקסט - כמו בהירו */
.contact-mood::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

.contact-mood > div {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   סקשנים כלליים
   ========================================================================== */

.section {
  padding: var(--section-padding);
}

@media (max-width: 780px) {
  .section { padding: var(--section-padding-mobile); }
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.accent-word {
  font-style: italic;
  color: var(--accent-gold);
}

.thin-divider {
  width: 32px;
  height: 1px;
  background: var(--divider);
  margin: 16px 0;
}

.thin-divider.center {
  margin: 16px auto;
}

/* ==========================================================================
   הירו
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 780px) {
  .hero { min-height: 70vh; }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* שכבת כהות עדינה על תמונת ההירו, לשמירה על ניגודיות הלוגו והכפתור */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: none;
}

.hero-logo {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  color: var(--bg-light);
  opacity: 0.65;
  text-align: center;
}

.hero-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.hero-logo .subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 2px;
  margin-top: 10px;
  opacity: 0.9;
}

.hero-btn-wrap {
  position: absolute;
  bottom: 56px;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   אייקוני תחומי שירות
   ========================================================================== */

.service-icon {
  width: 76px;
  height: 76px;
  border: 1px solid var(--divider);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--accent-warm);
}

/* ==========================================================================
   גלריה אופקית (עמוד הבית)
   ========================================================================== */

.h-scroll {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  text-align: right;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge ישן */
}

.h-scroll::-webkit-scrollbar {
  display: none;              /* Chrome/Safari */
}

.h-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.h-scroll > a,
.h-scroll > .project-card {
  /* רוחב שמציג כ-2 כרטיסים בדסקטופ, עם הצצה לכרטיס הבא */
  flex: 0 0 min(520px, 60%);
}

@media (max-width: 780px) {
  .h-scroll > a,
  .h-scroll > .project-card { flex-basis: 78%; }
}

/* ==========================================================================
   כרטיס פרויקט (גלריה)
   ========================================================================== */

.project-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.project-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-top: 14px;
}

.project-card-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   טפסים
   ========================================================================== */

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  resize: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent-warm);
}

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

.site-footer {
  border-top: 0.5px solid var(--divider);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-name {
  margin-bottom: 12px;
}

.footer-name img {
  height: 24px;
  width: auto;
  margin: 0 auto;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 16px;
}

.footer-icons a {
  display: inline-flex;
}

.footer-contact {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

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

.footer-copy {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   4 נתוני פרויקט
   ========================================================================== */

.data-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 2.5rem 0;
  border-top: 0.5px solid var(--divider);
  border-bottom: 0.5px solid var(--divider);
}

@media (max-width: 780px) {
  .data-row { grid-template-columns: repeat(2, 1fr); }
}

.data-item {
  text-align: center;
}

.data-item .label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.data-item .value {
  font-family: var(--font-heading);
  font-size: 20px;
}

/* ==========================================================================
   תהליך עבודה
   ========================================================================== */

.process-step {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 0.5px solid var(--divider);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step .num {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--accent-warm);
  min-width: 40px;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ==========================================================================
   לייטבוקס - תצוגה מוגדלת לתמונות הגלריה
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 48px 24px;
  cursor: zoom-out;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 24px;
  background: none;
  border: none;
  color: var(--bg-light);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.h-scroll .project-card-image {
  cursor: zoom-in;
}
