/* ═══════════════════════════════════════════
   NAV BAR
   ═══════════════════════════════════════════ */
nav.scrolled {
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  height: 64px;
  border-bottom: 1px solid var(--border);
}

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

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }

.nav-links a {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 400; position: relative;
  padding-bottom: 3px; transition: color .3s;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 1px; background: var(--gold); transition: right .4s var(--ease-out);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; color: var(--black); background: var(--gold);
  padding: 10px 24px; border-radius: 2px; white-space: nowrap;
  transition: background .3s, transform .3s var(--ease-out);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   HAMBURGER MENU TOGGLE
   Premium on every device — visible border
   even without hover (critical for mobile).
   ═══════════════════════════════════════════ */
.menu-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  /* Always visible — not transparent — so on mobile it looks defined */
  border: 1px solid rgba(201,169,110,0.22);
  background: rgba(255,255,255,0.04);
  isolation: isolate;
  overflow: hidden;
  touch-action: manipulation;
  cursor: pointer;
  transition:
    background   220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow   280ms var(--ease-out),
    transform    160ms var(--ease-out);
}

/* Inner radial glow */
.menu-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    ellipse at center,
    rgba(201,169,110,0.18) 0%,
    rgba(201,169,110,0.06) 50%,
    transparent 72%
  );
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 280ms ease, transform 340ms var(--ease-out);
  pointer-events: none;
}

/* Outer ring pulse when open */
.menu-toggle::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1px solid rgba(201,169,110,0);
  transition: border-color 260ms ease, inset 260ms ease;
  pointer-events: none;
}

.menu-toggle:hover {
  background: rgba(201,169,110,0.08);
  border-color: rgba(201,169,110,0.45);
  box-shadow: 0 0 0 4px rgba(201,169,110,0.06),
              0 8px 24px rgba(0,0,0,0.2);
}
.menu-toggle:hover::before { opacity: 1; transform: scale(1); }

.menu-toggle:focus-visible {
  outline: none;
  border-color: rgba(201,169,110,0.6);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.18);
}

.menu-toggle.open {
  background: rgba(14,14,14,0.9);
  border-color: rgba(201,169,110,0.55);
  box-shadow:
    0 0 0 4px rgba(201,169,110,0.1),
    0 12px 32px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.menu-toggle.open::before  { opacity: 1; transform: scale(1); }
.menu-toggle.open::after   { border-color: rgba(201,169,110,0.2); inset: -5px; }

.menu-toggle:active { transform: scale(0.91); }

/* Bars — 2px thick for clarity on all screen densities */
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(201,169,110,0.7); /* gold-tinted by default */
  transform-origin: center;
  transition:
    transform  340ms var(--ease-out),
    opacity    200ms ease,
    width      260ms var(--ease-out),
    background 220ms ease;
}

/* Unequal widths for visual rhythm — long, short, long */
.menu-toggle span:nth-child(1) { width: 22px; }
.menu-toggle span:nth-child(2) { width: 14px; }
.menu-toggle span:nth-child(3) { width: 22px; }

/* Hover/focus/open — full gold, middle bar expands */
.menu-toggle:hover span,
.menu-toggle:focus-visible span,
.menu-toggle.open span { background: var(--gold); }

.menu-toggle:hover span:nth-child(2),
.menu-toggle:focus-visible span:nth-child(2) { width: 22px; }

/* Open state — bars morph into X */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  width: 22px;
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
  width: 22px;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  width: 22px;
}

/* ═══════════════════════════════════════════
   MOBILE MENU PANEL — premium redesign
   ═══════════════════════════════════════════ */
.mobile-menu {
  transition:
    transform  420ms var(--ease-out),
    opacity    280ms ease,
    visibility 280ms ease;
  opacity: 0;
  visibility: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* Gold top accent line */
.mobile-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    rgba(201,169,110,0.4) 55%,
    transparent 100%
  );
  z-index: 1;
}

/* Vertical watermark — architectural detail */
.mobile-menu::after {
  content: 'ARCHITECH';
  position: absolute;
  bottom: 80px;
  right: clamp(20px,5vw,36px);
  font-family: var(--font-sans);
  font-size: .52rem;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.1);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Nav links list ── */
.mobile-menu-links {
  list-style: none;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  counter-reset: nav-counter;
  position: relative;
  z-index: 1;
}

.mobile-menu-links li {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateX(28px);
}

/* Animated counter number before each link */
.mobile-menu-links li::before {
  counter-increment: nav-counter;
  content: '0' counter(nav-counter);
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--gold);
  opacity: 0.45;
  font-family: var(--font-sans);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 22px;
  transition: opacity .3s ease;
}

/* Animate items in when menu opens */
.mobile-menu.open .mobile-menu-links li {
  animation: slideInMenu .46s var(--ease-out) forwards;
}
.mobile-menu.open .mobile-menu-links li:nth-child(1) { animation-delay: .06s; }
.mobile-menu.open .mobile-menu-links li:nth-child(2) { animation-delay: .11s; }
.mobile-menu.open .mobile-menu-links li:nth-child(3) { animation-delay: .16s; }
.mobile-menu.open .mobile-menu-links li:nth-child(4) { animation-delay: .21s; }
.mobile-menu.open .mobile-menu-links li:nth-child(5) { animation-delay: .26s; }

@keyframes slideInMenu {
  to { opacity: 1; transform: translateX(0); }
}

/* The link text itself */
.mobile-menu-links a {
  display: block;
  flex: 1;
  padding: 24px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5.8vw, 2.4rem);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: color .3s ease, letter-spacing .35s var(--ease-out);
  position: relative;
}

/* Gold underline that expands on touch/hover */
.mobile-menu-links a::after {
  content: '';
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .4s var(--ease-out);
}

.mobile-menu-links a:active {
  color: var(--gold);
}
.mobile-menu-links a:active::after {
  width: 36px;
}

@media (hover: hover) {
  .mobile-menu-links li:hover::before  { opacity: 1; }
  .mobile-menu-links a:hover           { color: var(--white); letter-spacing: 0.01em; }
  .mobile-menu-links a:hover::after    { width: 36px; }
}

/* ── CTA button ── */
.mobile-menu-cta {
  margin-top: 32px;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.mobile-menu-cta .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 18px 28px;
  font-size: .78rem;
  letter-spacing: .18em;
  border-radius: 3px;
}

/* ── Footer: phone + location ── */
.mobile-menu-footer {
  margin-top: auto;
  padding-top: 28px;
  padding-bottom: 8px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease .35s, transform .5s var(--ease-out) .35s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-phone {
  font-size: .94rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .04em;
  transition: opacity .2s;
}
.mobile-menu-phone:hover { opacity: .75; }

.mobile-menu-tagline {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-sans);
}

/* ═══════════════════════════════════════════
   LANGUAGE BUTTON
   ═══════════════════════════════════════════ */
.nav-lang-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s var(--ease-out);
}
.nav-lang-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(201,169,110,0.45);
  transform: scale(1.06);
}

/* ═══════════════════════════════════════════
   LANGUAGE MODAL — premium edition
   • Gold accent line at top
   • Subtle radial backdrop inside the modal
   • Staggered option entrance (driven by animations.css)
   • Active state shows a check + gold glow
   • Hover slides + reveals chevron
   • Close button rotates 90° on hover
   ═══════════════════════════════════════════ */
.lang-modal-overlay.open { opacity: 1; pointer-events: all; }

.lang-modal {
  background:
    radial-gradient(circle at 50% -20%, rgba(201,169,110,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #0c0c0c 0%, #080808 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 52px 38px 40px;
  max-width: 420px;
  width: calc(100% - 32px);
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22,1,0.36,1),
    opacity   0.32s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(201,169,110,0.06) inset;
}
.lang-modal-overlay.open .lang-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Gold accent line at the top edge — full-width gradient */
.lang-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 30%,
    var(--gold-light, #dfc08a) 50%,
    var(--gold) 70%,
    transparent 100%
  );
  opacity: 0.85;
}

/* Soft architectural watermark in the corner */
.lang-modal::after {
  content: 'A';
  position: absolute;
  bottom: -28px;
  right: -10px;
  font-family: var(--font-serif);
  font-size: 220px;
  font-weight: 300;
  color: rgba(201,169,110,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.lang-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 1rem; cursor: pointer;
  transition:
    background  0.25s ease,
    color       0.25s ease,
    border-color 0.25s ease,
    transform   0.32s cubic-bezier(0.22,1,0.36,1);
  z-index: 2;
}
.lang-modal-close:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 18px rgba(201,169,110,0.32);
}

.lang-modal-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 300;
  margin: 0 0 6px;
  text-align: center;
  color: var(--white);
  letter-spacing: 0.005em;
  position: relative;
  z-index: 1;
}

/* Tiny eyebrow above the title */
.lang-modal-title::before {
  content: 'SELECT';
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 14px;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  transition:
    background   0.28s ease,
    border-color 0.28s ease,
    transform    0.28s cubic-bezier(0.22,1,0.36,1),
    box-shadow   0.28s ease;
}

/* Gold sweep that slides across on hover */
.lang-option::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(201,169,110,0.08) 50%,
    transparent 100%
  );
  transition: left 0.6s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.lang-option:hover::before { left: 100%; }

.lang-option:hover {
  background: rgba(201,169,110,0.06);
  border-color: rgba(201,169,110,0.35);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.32);
}

.lang-option.active {
  background: linear-gradient(135deg, rgba(201,169,110,0.14) 0%, rgba(201,169,110,0.06) 100%);
  border-color: rgba(201,169,110,0.55);
  box-shadow:
    0 0 0 1px rgba(201,169,110,0.25) inset,
    0 8px 28px rgba(201,169,110,0.10);
}

/* Check-mark indicator on the active option (right side) */
.lang-option.active::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,110,0.15);
  /* Inner check */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23080808' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='2.5,6 5,8.5 9.5,3.5'/></svg>");
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}

/* RTL: check-mark moves to the left side */
[dir="rtl"] .lang-option.active::after { right: auto; left: 18px; }
[dir="rtl"] .lang-option:hover         { transform: translateX(-4px); }

.lang-option-flag {
  font-size: 1.7rem;
  flex-shrink: 0;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
}
.lang-option:hover .lang-option-flag { transform: scale(1.08) rotate(-2deg); }

.lang-option-name {
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.005em;
  flex: 1;
}


/* ═══════════════════════════════════════════════════════════════════
   ROUND 6 — MOBILE-MENU LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════════════════════
   4 inline language buttons placed above the footer inside the
   mobile menu panel. This is the proper UX pattern on mobile —
   the 🌐 button in the top-right of the nav is small and easy to
   miss, so users expect to find language options inside the
   hamburger menu.
   ═══════════════════════════════════════════════════════════════════ */


.mobile-menu-langs {
  margin-top: auto;           /* push to bottom of flex column */
  padding: 18px 0 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-menu-langs-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,169,110,0.75);
  margin-bottom: 12px;
  font-weight: 600;
}

.mobile-menu-langs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mobile-menu-lang {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;         /* ≥44px tap target + breathing room */
  padding: 10px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.14em;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 180ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-lang-flag {
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 280ms var(--ease-out);
  filter: saturate(1.1);
}

.mobile-menu-lang-code {
  font-weight: 700;
}

.mobile-menu-lang:hover,
.mobile-menu-lang:focus-visible {
  background: rgba(201,169,110,0.06);
  border-color: rgba(201,169,110,0.32);
  color: var(--white);
  outline: none;
}
.mobile-menu-lang:hover .mobile-menu-lang-flag,
.mobile-menu-lang:focus-visible .mobile-menu-lang-flag {
  transform: scale(1.08);
}

/* Active (currently selected) language — gold fill */
.mobile-menu-lang.active,
html[lang="en"] .mobile-menu-lang[data-lang="en"],
html[lang="he"] .mobile-menu-lang[data-lang="he"],
html[lang="el"] .mobile-menu-lang[data-lang="el"],
html[lang="ru"] .mobile-menu-lang[data-lang="ru"] {
  background: linear-gradient(180deg, var(--gold-light, #dfc08a), var(--gold));
  border-color: var(--gold);
  color: var(--black);
  box-shadow:
    0 4px 12px rgba(201,169,110,0.28),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

.mobile-menu-lang:active {
  transform: scale(0.95);
  transition: transform 80ms ease;
}

/* RTL: keep grid layout (4 columns stay left-to-right visually
   since flags are language-neutral labels, not text content) */
