/* =========================================================
   Eden Gardens Kosher Villas — refined garden hospitality
   Palette: warm cream + deep moss + soft terracotta
   Type:    Fraunces (display) + Albert Sans (body)
   ========================================================= */

:root {
  --cream:        #F4EEE0;
  --cream-soft:   #FAF6EC;
  --cream-deep:   #E8DFCB;
  --ink:          #1B1F18;
  --ink-soft:     #3A3F35;
  --moss:         #2F4029;
  --moss-deep:    #1F2C1B;
  --moss-leaf:    #4D6840;
  --terracotta:   #B8755A;
  --rule:         #BFB39A;
  --rule-soft:    #D8CFB8;

  --max:          1280px;
  --pad-x:        clamp(20px, 5vw, 64px);

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans:    "Albert Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --ease:         cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle paper-grain background */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(184,117,90,0.04), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(47,64,41,0.05), transparent 40%);
}

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

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

::selection { background: var(--moss); color: var(--cream); }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.02;
  font-variation-settings: "opsz" 144;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--moss);
  font-variation-settings: "opsz" 144;
}

.kicker, .section-tag, .meta-text {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--ink-soft);
}

.section-tag.light { color: rgba(244,238,224,0.7); }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 22px var(--pad-x);
  color: var(--cream);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.brand-mark {
  width: 36px; height: 36px;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: grid; place-items: center;
  opacity: 0.9;
}
.brand-mark svg { width: 18px; height: 18px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  opacity: 0.8;
  margin-top: 2px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.4s var(--ease);
}
.site-nav a:hover::after { right: 0; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.cta-pill svg { width: 14px; height: 14px; }
.cta-pill:hover { background: var(--cream); color: var(--moss-deep); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-image { position: absolute; inset: 0; z-index: -2; }
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,20,12,0.45) 0%, rgba(15,20,12,0.15) 35%, rgba(15,20,12,0.65) 100%),
    linear-gradient(90deg, rgba(15,20,12,0.45), rgba(15,20,12,0));
}

.hero-meta {
  position: absolute;
  top: 50%;
  right: var(--pad-x);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--cream);
  opacity: 0.8;
}
.hero-meta .meta-text { color: var(--cream); }
.meta-line {
  width: 60px; height: 1px;
  background: currentColor;
  display: inline-block;
}

.hero-copy {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: clamp(80px, 12vh, 140px);
  max-width: 880px;
  animation: rise 1.1s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy .kicker { color: var(--cream); opacity: 0.85; }
.hero-copy h1 {
  margin: 14px 0 24px;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 400;
}
.hero-copy h1 em { color: var(--cream); font-style: italic; opacity: 0.92; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.hero-sub {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.92;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}
.hero-scroll svg { width: 12px; height: 22px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0);} 50%{transform:translateY(4px);} }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #25D366;
  color: #0F2A14;
  box-shadow: 0 6px 18px rgba(37,211,102,0.25);
}
.btn-primary:hover { background: #1EBD58; box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

.btn-ghost {
  border-color: rgba(244,238,224,0.55);
  color: var(--cream);
}
.btn-ghost:hover { background: rgba(244,238,224,0.1); border-color: var(--cream); }

.btn-whatsapp {
  background: var(--cream);
  color: var(--moss-deep);
  padding: 18px 32px;
  font-size: 15px;
}
.btn-whatsapp:hover { background: #fff; }

/* ---------- Manifesto ---------- */

.manifesto {
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  text-align: center;
}
.manifesto-inner { max-width: 760px; margin: 0 auto; }
.ornament { color: var(--rule); margin-bottom: 28px; display: flex; justify-content: center; }
.ornament svg { width: 80px; height: 16px; }
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.manifesto-text em {
  font-style: italic;
  color: var(--moss);
}

/* ---------- Section header ---------- */

.section-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.section-title {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 400;
  margin: 0;
  max-width: 18ch;
}

/* ---------- Villas / gallery ---------- */

.villas {
  padding: clamp(60px, 10vw, 120px) 0 clamp(80px, 12vw, 140px);
}

.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.g-item {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.g-item--lg { grid-column: span 7; }
.g-item--md { grid-column: span 5; }
.g-item:nth-child(2) { margin-top: 64px; }
.g-item:nth-child(3) { margin-top: -48px; }
.g-item:nth-child(4) { margin-top: 24px; }

.g-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
}
.g-item--md .g-frame { aspect-ratio: 4 / 5; }
.g-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.g-item:hover .g-frame img { transform: scale(1.04); }

.g-item figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule-soft);
  margin-top: 14px;
}
.g-num { font-weight: 600; color: var(--moss); }

/* ---------- Why list ---------- */

.why {
  background: var(--cream-soft);
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}

.why-list {
  list-style: none;
  margin: 0; padding: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 88px);
  row-gap: 0;
}

.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.why-item:nth-child(1),
.why-item:nth-child(2) { /* keep top borders */ }

.why-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--moss);
  line-height: 1;
  padding-top: 4px;
}

.why-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.15;
}
.why-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 42ch;
}

/* ---------- Community ---------- */

.community {
  padding: clamp(80px, 12vw, 140px) 0;
}
.community-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.community-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.community-image::after {
  content: "";
  position: absolute;
  inset: -16px -16px 16px 16px;
  border: 1px solid var(--moss);
  z-index: -1;
}
.community-image img { width: 100%; height: 100%; object-fit: cover; }

.community-copy .section-title { margin-bottom: 28px; }
.community-copy p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 52ch;
}
.community-emph {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--moss) !important;
  line-height: 1.35;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: var(--moss-deep);
  color: var(--cream);
  padding: clamp(100px, 14vw, 160px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(184,117,90,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(77,104,64,0.25), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-title {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 400;
  margin: 18px 0 22px;
  color: var(--cream);
}
.cta-sub {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0 auto 36px;
  max-width: 56ch;
}
.cta-fineprint {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--moss-deep);
  color: var(--cream);
  padding: 40px var(--pad-x) 32px;
  border-top: 1px solid rgba(244,238,224,0.1);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; line-height: 1.1; }
.footer-brand .brand-title { font-size: 22px; }
.footer-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer-nav a { opacity: 0.7; transition: opacity 0.3s var(--ease); }
.footer-nav a:hover { opacity: 1; }
.footer-fine {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(244,238,224,0.1);
  font-size: 12px;
  opacity: 0.55;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-image img { animation: none; }
  .hero-copy { animation: none; }
  .hero-scroll svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-nav { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .g-item--lg, .g-item--md { grid-column: span 1; }
  .g-item:nth-child(n) { margin-top: 0; }
  .why-list { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-image { aspect-ratio: 4 / 3; max-width: 560px; }
  .footer-inner { grid-template-columns: 1fr; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; }
  .hero-meta { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner .cta-pill { display: none; }
  .hero-copy { bottom: 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .why-item { grid-template-columns: 1fr; row-gap: 8px; padding: 28px 0; }
  .why-num { font-size: 22px; }
  .community-image::after { inset: -8px -8px 8px 8px; }
}
