/* ============================================================
   style-classic.css — סקין "Refined Classic": נייבי + שמנת + זהב
   אותה היררכיה, אותו סדר תוכן, אותם צבעים וקבצים בדיוק כמו במקור.
   מה שכן מתוחדד (בהתאם למה שאושר על הגרסה החדשה):
   1) קו תחתון עדין בהדר + גובה הדר מעט גדול יותר (72->76px)
   2) ריווח אנכי מהודק יותר בין הסקשנים (88px -> 76px)
   3) כותרות מדודות בגודל קבוע במקום סקייל fluid רחב מדי (מרוסן יותר)
   4) רדיוס פינות נדיב יותר בכרטיסיות (6px -> 8px) + צל הובר מודגש קלות
   5) כלל הצגה ללוגו RE/MAX ההדר (הבהיר מוצג, הכהה מוסתר)
   ============================================================ */

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: "Assistant", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #2E2E2E;
  background: #F6F1E8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none
}

button {
  font-family: "Assistant", sans-serif
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  background: #0B1F33;
  height: 76px;
  border-bottom: 1px solid rgba(200, 169, 106, .14);
  transition: box-shadow .3s;
}

#header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, .35)
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.logo-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #F6F1E8;
  line-height: 1.15;
  display: block;
  letter-spacing: -.01em;
}

.logo-sub {
  font-size: 14px;
  font-weight: 600;
  color: #C8A96A;
  display: block;
  letter-spacing: .01em;
  text-align: center;
  margin-top: 2px;
}

/* לוגו RE/MAX — צד שמאל. בסקין Classic מוצגת רק הגרסה הבהירה (רקע הדר כהה) */
.header-remax-logo {
  height: 50px;
  max-width: 195px;
  width: auto;
  object-fit: contain;
  opacity: .85;
  display: block;
  transition: opacity .2s;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 17.6px;
  margin-left: 4px;
}

.header-remax-logo:hover {
  opacity: .95
}

.header-remax-logo--dark {
  display: none
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2px
}

.nav-desktop a {
  color: rgba(246, 241, 232, .8);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: color .2s, background .2s;
}

.nav-desktop a:hover {
  color: #C8A96A;
  background: rgba(200, 169, 106, .07)
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F6F1E8;
  border-radius: 2px;
  transition: all .25s;
}

#mobile-nav {
  display: none;
  flex-direction: column;
  background: #0B1F33;
  border-top: 1px solid rgba(200, 169, 106, .12);
}

#mobile-nav.open {
  display: flex
}

#mobile-nav a {
  color: rgba(246, 241, 232, .82);
  padding: 15px 28px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: color .2s, background .2s;
}

#mobile-nav a:hover {
  color: #C8A96A;
  background: rgba(200, 169, 106, .06)
}

/* ===== HERO ===== */
#hero {
  background: linear-gradient(155deg, #0A1B2E 0%, #0B1F33 55%, #0F2642 100%);
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 52px;
  align-items: stretch;
  padding: 52px 28px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.hero-h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 50px;
  font-weight: 500;
  color: #F6F1E8;
  line-height: 1.16;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(246, 241, 232, .65);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.hero-btns .btn-gold,
.hero-btns .btn-ghost {
  width: 200px;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C8A96A;
  color: #0B1F33;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.btn-gold:hover {
  background: #d4ba82;
  transform: translateY(-2px)
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: transparent;
  border: 1.5px solid rgba(200, 169, 106, .45);
  color: rgba(246, 241, 232, .88);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: #C8A96A;
  color: #C8A96A;
  transform: translateY(-2px)
}

.btn-gold-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #C8A96A;
  color: #0B1F33;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s;
}

.btn-gold-sm:hover {
  background: #d4ba82
}

/* ===== HERO IMAGE ===== */
.hero-img-col {
  display: flex;
  justify-content: center;
  align-items: flex-start
}

.photo-card {
  width: 100%;
  max-width: 416px;
  aspect-ratio: unset;
  height: 100%;
  border-radius: 0;
  overflow: visible;
  border: none;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  margin-top: -18px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .14));
  -webkit-mask-image: linear-gradient(to bottom, black 55%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.3) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, rgba(0, 0, 0, 0.85) 75%, rgba(0, 0, 0, 0.3) 92%, transparent 100%);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(200, 169, 106, .35);
  font-size: 15px;
  background: #0d2236;
}

.photo-placeholder svg {
  opacity: .3
}

/* ===== SECTION BASE ===== */
.section {
  padding: 76px 0
}

.section-white {
  background: #FFFFFF
}

.section-cream {
  background: #F6F1E8
}

.section-navy {
  background: #0B1F33
}

h2.sec-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 32px;
  font-weight: 600;
  color: #0B1F33;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}

h2.sec-title-light {
  color: #F6F1E8
}

.sec-sub {
  font-size: 17px;
  color: #555;
  margin-bottom: 40px;
  max-width: 540px;
}

.gold-rule {
  width: 40px;
  height: 3px;
  background: #B99A5F;
  margin-bottom: 18px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: top
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.about-label-col .sec-title {
  margin-bottom: 0
}

.about-identity {
  font-size: 18px;
  font-weight: 600;
  color: #B99A5F;
  margin-top: 10px;
  line-height: 1.4;
  display: block;
}

.about-body p {
  font-size: 18px;
  color: #3A3F45;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-pull {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 19px;
  font-weight: 500;
  color: #0B1F33;
  border-right: 3px solid #C8A96A;
  padding-right: 16px;
  margin: 26px 0 0;
  line-height: 1.6;
}

/* ===== WORK CARDS ===== */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.wcard {
  background: #fff;
  border: 1px solid #E6E2DC;
  border-top: 3px solid #B99A5F;
  border-radius: 8px;
  padding: 28px 26px;
  position: relative;
  transition: box-shadow .25s, transform .25s;
}

.wcard:hover {
  box-shadow: 0 10px 32px rgba(11, 31, 51, .16);
  transform: translateY(-4px)
}

.wcard-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 28px;
  font-weight: 600;
  color: #B99A5F;
  line-height: 1;
  margin-bottom: 14px;
}

.wcard-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0B1F33;
  margin-bottom: 10px
}

.wcard-text {
  font-size: 17px;
  color: #3D3D3D;
  line-height: 1.8
}

/* ===== SERVICES ===== */
.cards2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px
}

.scard {
  background: #fff;
  border: 1px solid #E6E2DC;
  border-radius: 8px;
  padding: 32px 26px;
  transition: box-shadow .25s, transform .25s;
}

.scard:hover {
  box-shadow: 0 10px 32px rgba(11, 31, 51, .15);
  transform: translateY(-3px)
}

.scard.featured {
  border-color: #E6E2DC;
  border-top: 3px solid #B99A5F;
}

.scard-icon {
  color: #B99A5F;
  margin-bottom: 18px
}

.scard-icon svg {
  width: 34px;
  height: 34px
}

.scard-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0B1F33;
  margin-bottom: 10px
}

.scard-text {
  font-size: 17px;
  color: #3D3D3D;
  line-height: 1.8
}

/* ===== POSTS ===== */
.cards3-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.pcard {
  background: #fff;
  border: 1px solid #E6E2DC;
  border-radius: 8px;
  padding: 32px 26px;
  cursor: pointer;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}

.pcard:hover {
  box-shadow: 0 12px 36px rgba(11, 31, 51, .16);
  transform: translateY(-4px)
}

.pcard:focus {
  outline: 2px solid #C8A96A;
  outline-offset: 2px
}

.pcard-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 24px;
  font-weight: 600;
  color: #B99A5F;
  margin-bottom: 10px;
  line-height: 1
}

.pcard-title {
  font-size: 1.16rem;
  font-weight: 800;
  color: #0B1F33;
  line-height: 1.38;
  margin-bottom: 14px
}

.pcard-excerpt {
  font-size: 17px;
  color: #3D3D3D;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 20px
}

.pcard-more {
  color: #B99A5F;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.pcard:hover .pcard-more {
  gap: 10px
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto
}

.faq-item {
  border-bottom: 1px solid rgba(11, 31, 51, .1)
}

.faq-item:first-child {
  border-top: 1px solid rgba(11, 31, 51, .1)
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: #0B1F33;
  font-size: 18px;
  font-weight: 600;
  font-family: "Assistant", sans-serif;
  text-align: right;
  transition: color .2s;
}

.faq-btn:hover {
  color: #C8A96A
}

.faq-chevron {
  color: #B99A5F;
  flex-shrink: 0;
  transition: transform .3s ease
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg)
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .32s ease, opacity .28s ease;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom .32s ease;
}

.faq-item.open .faq-answer-inner {
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 18px;
  color: #4A4A4A;
  line-height: 1.85
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.contact-heading {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 30px;
  font-weight: 500;
  color: #F6F1E8;
  line-height: 1.25;
  margin-bottom: 14px;
}

.contact-sub {
  font-size: 1.05rem;
  color: rgba(246, 241, 232, .6);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.cdetail {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(246, 241, 232, .7);
  font-size: 1rem;
  margin-bottom: 22px;
  text-decoration: none;
  transition: color .2s;
}

.cdetail:hover {
  color: #C8A96A
}

.cdetail:last-child {
  margin-bottom: 0
}

.cdetail[href] {
  cursor: pointer
}

.cicon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(200, 169, 106, .22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8A96A;
}

/* ===== FOOTER ===== */
#footer {
  background: #081726;
  padding: 10px 0 20px
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand {
  text-align: center;
  margin-bottom: 2px
}

.footer-name {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #F6F1E8;
  margin-bottom: 2px;
  letter-spacing: -.01em;
  display: block;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #C8A96A;
  display: block;
  margin-bottom: 3px;
}

.footer-area {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(246, 241, 232, .42);
  display: block;
}

.footer-contact {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 0 0;
  position: relative;
  width: 100%;
}

.footer-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: rgba(255, 255, 255, .05);
}

.footer-contact a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(199, 210, 222, .62);
  text-decoration: none;
  transition: color .2s;
}

.footer-contact a:hover {
  color: #C8A96A
}

.footer-fb {
  display: none;
  align-items: center;
  gap: 5px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(199, 210, 222, .62);
  text-decoration: none;
  transition: color .2s;
}

.footer-fb-sep {
  color: rgba(255, 255, 255, .1);
  display: none;
}

.footer-license {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(246, 241, 232, .38);
  display: block;
  margin-top: 5px;
  text-align: center;
}

.footer-remax-logo {
  display: block;
  max-width: 170px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  opacity: .86;
  margin: 4px auto 3px;
  transition: opacity .2s;
}

.footer-remax-logo:hover {
  opacity: .95
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(246, 241, 232, .28);
  text-align: center;
  direction: rtl;
}

.footer-card-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(246, 241, 232, .58);
  text-decoration: none;
  transition: color .2s;
}

.footer-card-link:hover {
  color: #C8A96A
}

/* ===== MODAL ===== */
#modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 31, 51, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 700ms ease, visibility 700ms ease;
}

#modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  background: #F6F1E8;
  border-radius: 8px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 52px 44px;
  position: relative;
  opacity: 0;
  transition: opacity 1000ms ease;
}

#modal-overlay.open .modal-box {
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 6px;
  font-size: 22px;
  line-height: 1;
  transition: color .2s;
  font-family: "Assistant", sans-serif;
}

.modal-close:hover {
  color: #0B1F33
}

#modal-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #0B1F33;
  line-height: 1.4;
  margin-bottom: 28px;
  padding-left: 28px;
}

#modal-body p {
  font-size: 1rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px
}

#modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px
}

#modal-body ul li {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  padding-right: 20px;
  position: relative;
  margin-bottom: 8px;
}

#modal-body ul li::before {
  content: "—";
  position: absolute;
  right: 0;
  color: #C8A96A
}

.modal-foot {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(11, 31, 51, .1)
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ===== RESPONSIVE ===== */
@media(max-width:960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 28px
  }

  .hero-img-col {
    order: -1
  }

  .photo-card {
    max-width: 260px;
    height: auto;
    aspect-ratio: 524/476
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .cards3,
  .cards3-posts {
    grid-template-columns: 1fr
  }

  .cards2x2 {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px
  }

  .nav-desktop {
    display: none
  }

  .hamburger {
    display: flex
  }

  .hero-h1 {
    text-align: center
  }

  .hero-sub {
    text-align: center
  }

  .hero-btns {
    justify-content: center
  }

  .gold-rule {
    margin-right: auto;
    margin-left: auto
  }

  .header-remax-icon {
    display: none
  }

  .header-remax-logo {
    display: none
  }

  .footer-contact::before {
    background: rgba(246, 241, 232, .18);
  }

  #footer-sep {
    color: rgba(246, 241, 232, .25) !important
  }
}

@media(max-width:600px) {
  body {
    font-size: 17px
  }

  .section {
    padding: 60px 0
  }

  .modal-box {
    padding: 36px 22px
  }

  .photo-card {
    max-width: 220px;
    height: auto;
    aspect-ratio: 524/476
  }

  .hero-h1 {
    font-size: 2.3rem
  }

  h2.sec-title {
    font-size: 1.9rem
  }

  .faq-btn {
    font-size: 17px
  }

  .footer-contact::before {
    background: rgba(246, 241, 232, .18);
  }

  #footer-sep {
    color: rgba(246, 241, 232, .25) !important
  }
}

@media(prefers-reduced-motion:reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none
  }

  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important
  }
}