/* ─── Hagit Lahav Group · Shared Styles ─────────────────────────────────── */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@200;300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:         #f8f6f1;
  --fg:         #16140f;
  --accent:     #8a6a3c;
  --rule:       rgba(22,20,15,0.14);
  --rule-soft:  rgba(22,20,15,0.07);
  --muted:      rgba(22,20,15,0.5);
  --sans:       "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif:      "Cormorant Garamond", Georgia, serif;
  --mono:       "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max:        100%;
  --gutter:     5vw;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,246,241,0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(22,20,15,0.08);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 var(--gutter);
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.nav-logo-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-logo-name em { color: var(--accent); }
.nav-logo-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 36px;
  font-size: 13px;
  font-weight: 400;
  list-style: none;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--fg);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transition: left .3s cubic-bezier(.2,.7,.2,1), right .3s cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { left: 0; right: 0; }
.nav-links a.active { color: var(--fg); font-weight: 500; }

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Investor Portal nav item */
.nav-portal {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 7px 16px !important;
  background: var(--fg);
  color: var(--bg) !important;
  border-radius: 999px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: background .2s, color .2s;
}
.nav-portal::after { display: none !important; }
.nav-portal:hover { background: var(--accent) !important; color: var(--bg) !important; }
.nav-portal svg { flex-shrink: 0; }

/* ─── CTA Button ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--fg);
  border-radius: 999px;
  transition: background .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--rule);
}
.btn-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ─── Reveal on scroll ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Section label (mono eyebrow) ──────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ─── Display headings ───────────────────────────────────────────────────── */
.display {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ─── Inner page hero ────────────────────────────────────────────────────── */
.inner-hero {
  padding-top: calc(72px + 80px);
  padding-bottom: 64px;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  border-bottom: 1px solid var(--rule);
  max-width: var(--max);
  margin: 0 auto;
}
.inner-hero .eyebrow { margin-bottom: 28px; }
.inner-hero h1 { font-size: clamp(56px, 6vw, 96px); }

/* ─── Inner page content wrapper ─────────────────────────────────────────── */
.page-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--fg);
  color: var(--bg);
  padding: 40px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  max-width: var(--max);
  margin: 0 auto;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a:hover { color: var(--accent); transition: color .2s; }

/* full-bleed footer bg */
body::after {
  content: "";
  display: block;
}
.footer-outer {
  background: var(--fg);
}

/* ─── Stats ──────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 56px 40px 48px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-unit {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.42em;
  color: var(--accent);
}
.stat-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 26ch;
}
.stat-num[data-counted="false"] .v { opacity: 0; }

/* ─── Project card (portfolio grid) ─────────────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--bg);
  transition: box-shadow .25s;
  text-decoration: none;
  color: var(--fg);
}
.project-card:hover { box-shadow: 0 8px 40px rgba(22,20,15,0.1); }
.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.project-card:hover .project-card-img img { transform: scale(1.04); }
.project-card-body {
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--rule);
}
.project-card-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-card-name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.project-card-name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.project-card-location {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.project-card-arrow {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule-soft);
}

/* ─── Specs table ────────────────────────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.spec-item {
  padding: 22px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.spec-item dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.spec-item dd {
  font-size: 15px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.spec-item dd.accent { color: var(--accent); }

/* ─── Divider rule ───────────────────────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ─── Hamburger button ───────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  /* Nav */
  .nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .nav-links { display: none !important; }
  .nav-portal { display: none !important; }
  .nav-hamburger { display: flex; }

  /* Mobile menu overlay — injected by JS as sibling of nav */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: #f8f6f1;
    z-index: 99999;
    padding: 48px var(--gutter);
    flex-direction: column;
    gap: 32px;
    border-top: 1px solid rgba(22,20,15,0.12);
    list-style: none;
  }
  .mobile-menu-overlay.open { display: flex; }
  .mobile-menu-overlay a {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--fg);
    padding: 6px 0;
    display: block;
    border-bottom: 1px solid rgba(22,20,15,0.08);
  }
  .mobile-menu-overlay a.active { color: var(--accent); }
  .mobile-menu-overlay .mobile-portal {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 14px 22px !important;
    background: var(--fg);
    color: #f8f6f1 !important;
    border-radius: 999px;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-bottom: none !important;
    align-self: flex-start;
  }

  /* Stats 2×2 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 28px 20px 24px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--rule); border-right: none; }
  .stat-num { font-size: clamp(42px, 11vw, 72px); }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 32px var(--gutter);
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Inner hero */
  .inner-hero { padding-top: calc(72px + 40px); padding-bottom: 40px; }
  .inner-hero h1 { font-size: clamp(32px, 9vw, 56px); }

  /* Project card body */
  .project-card-body { padding: 18px 18px 24px; }

  /* Specs */
  .specs-grid { grid-template-columns: 1fr; border-left: none; }
  .spec-item { border-left: 1px solid var(--rule); }

  /* Buttons */
  .btn { padding: 14px 20px; font-size: 10px; }
}
