/* =========================================================
   BUILDX — Rural lands page
   ========================================================= */

.ld-page {
  --ld-navy: #223C45;
  --ld-teal: #5DB7CF;
  --ld-accent: #1F7F91;
  --ld-footer: #0F242B;
  --ld-ink: #22343b;
  --ld-muted: #5d7178;
  --ld-line: rgba(34, 60, 69, 0.12);
  --ld-cream: #f6f3ec;
  --ld-mist: #eef4f4;
  --ld-wa: #128C4A;
  --ld-wa-2: #0E7A3F;
  --ld-header-h: 4.25rem;
  --ld-sticky-h: 0px;
  color: var(--ld-ink);
  background: #fff;
  overflow-x: clip;
}

html[dir="rtl"] .ld-page {
  font-family: var(--bx-font-ar);
}

html[dir="rtl"] .ld-page h1,
html[dir="rtl"] .ld-page h2,
html[dir="rtl"] .ld-page h3,
html[dir="rtl"] .ld-page h4 {
  letter-spacing: 0;
  font-family: var(--bx-font-ar);
  line-height: 1.25;
}

.ld-page img { max-width: 100%; height: auto; display: block; }

.ld-wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

/* ---------- Header ---------- */
.ld-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: var(--ld-header-h);
  color: #fff;
  transition: background 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
}

.ld-nav.is-scrolled {
  background: rgba(15, 36, 43, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px -18px rgba(15, 36, 43, 0.7);
}

.ld-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ld-nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.ld-nav__brand .bx-logo img { height: 32px; width: auto; }
@media (min-width: 760px) {
  .ld-nav__brand .bx-logo img { height: 36px; }
}

.ld-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ld-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ld-lang a {
  color: rgba(255,255,255,0.78);
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  line-height: 1;
}

.ld-lang a.is-active {
  background: #fff;
  color: var(--ld-navy);
}

.ld-nav__phone,
.ld-nav__wa {
  display: none;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.ld-nav__phone {
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
}

.ld-nav__wa {
  background: var(--ld-wa);
  color: #fff;
}

.ld-nav__wa:hover { background: var(--ld-wa-2); }
.ld-nav__phone:hover { background: rgba(255,255,255,0.1); }

@media (min-width: 720px) {
  .ld-nav__phone { display: inline-flex; }
}
@media (min-width: 860px) {
  .ld-nav__wa { display: inline-flex; }
}

/* ---------- Hero ---------- */
.ld-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}

.ld-hero__media,
.ld-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ld-hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.ld-hero__shade {
  background:
    linear-gradient(180deg, rgba(15,36,43,0.38) 0%, rgba(15,36,43,0.15) 32%, rgba(15,36,43,0.42) 62%, rgba(15,36,43,0.88) 100%),
    linear-gradient(90deg, rgba(15,36,43,0.28), transparent 46%);
}

html[dir="ltr"] .ld-hero__shade {
  background:
    linear-gradient(180deg, rgba(15,36,43,0.38) 0%, rgba(15,36,43,0.15) 32%, rgba(15,36,43,0.42) 62%, rgba(15,36,43,0.88) 100%),
    linear-gradient(270deg, rgba(15,36,43,0.28), transparent 46%);
}

.ld-hero__inner {
  width: 100%;
  padding-block: 5.5rem 4.25rem;
}

@media (max-width: 720px) {
  .ld-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--ld-footer);
  }
  .ld-hero__media {
    position: relative;
    inset: auto;
    z-index: 0;
    width: 100%;
    height: 52svh;
    min-height: 240px;
    max-height: 420px;
    object-fit: cover;
    object-position: center 42%;
  }
  .ld-hero__shade {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    height: 52svh;
    min-height: 240px;
    max-height: 420px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15,36,43,0.22) 0%, transparent 42%, rgba(15,36,43,0.4) 100%);
  }
  html[dir="ltr"] .ld-hero__shade {
    background: linear-gradient(180deg, rgba(15,36,43,0.22) 0%, transparent 42%, rgba(15,36,43,0.4) 100%);
  }
  .ld-hero__inner {
    position: relative;
    z-index: 2;
    padding-block: 1.45rem 1.7rem;
  }
  .ld-hero h1 { max-width: 18ch; }
  .ld-hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ld-hero__actions .ld-btn { width: 100%; padding-inline: 0.55rem; }
}

.ld-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ld-teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

html[dir="rtl"] .ld-kicker { letter-spacing: 0.04em; }

.ld-kicker::before {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: currentColor;
}

.ld-hero h1 {
  margin: 0.7rem 0 0.85rem;
  max-width: 16ch;
  font-size: clamp(1.7rem, 1.25rem + 2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

html[dir="rtl"] .ld-hero h1 { letter-spacing: 0; max-width: 14ch; }

.ld-hero__lead {
  max-width: 38rem;
  margin: 0 0 1.5rem;
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
  line-height: 1.75;
  color: rgba(243,246,246,0.9);
}

.ld-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1;
  text-align: center;
}

.ld-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.ld-btn--wa {
  background: var(--ld-wa);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(18,140,74,0.9);
}
.ld-btn--wa:hover { background: var(--ld-wa-2); }

.ld-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.ld-btn--ghost:hover { background: rgba(255,255,255,0.1); }

.ld-btn--light {
  background: #fff;
  color: var(--ld-navy);
}
.ld-btn--light:hover { background: var(--ld-mist); }

.ld-btn--outline {
  background: transparent;
  color: var(--ld-navy);
  border-color: rgba(34,60,69,0.22);
}
.ld-btn--outline:hover { border-color: var(--ld-accent); color: var(--ld-accent); }

.ld-hero__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(243,246,246,0.92);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.ld-hero__tel svg { width: 16px; height: 16px; opacity: 0.85; }

/* ---------- Sections ---------- */
.ld-section { padding-block: clamp(3.2rem, 6vw, 6rem); }
.ld-section--cream { background: var(--ld-cream); }
.ld-section--mist { background: var(--ld-mist); }
.ld-section--navy {
  background: var(--ld-footer);
  color: #eef4f4;
}

.ld-head { max-width: 38rem; margin-bottom: 2rem; }
.ld-head .ld-kicker { color: var(--ld-accent); }
.ld-section--navy .ld-head .ld-kicker { color: var(--ld-teal); }

.ld-head h2,
.ld-title {
  margin: 0.45rem 0 0.7rem;
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ld-navy);
  text-wrap: balance;
}

.ld-section--navy .ld-head h2,
.ld-section--navy .ld-title { color: #fff; }

.ld-lead {
  margin: 0;
  color: var(--ld-muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.ld-section--navy .ld-lead { color: rgba(238,244,244,0.78); }

/* Why */
.ld-why {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .ld-why { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
}

.ld-reasons {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 560px) {
  .ld-reasons { grid-template-columns: 1fr 1fr; }
}

.ld-reason {
  background: #fff;
  border: 1px solid var(--ld-line);
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.2rem;
  min-width: 0;
}

.ld-reason__n {
  display: inline-block;
  color: var(--ld-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.ld-reason h3 {
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
  color: var(--ld-navy);
  font-weight: 700;
}

.ld-reason p {
  margin: 0;
  color: var(--ld-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.ld-why__photo {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 260px;
  aspect-ratio: 5 / 4;
}

.ld-why__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Types */
.ld-types {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .ld-types { grid-template-columns: 1fr 1fr; }
}

.ld-type {
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ld-line);
  display: flex;
  flex-direction: column;
}

.ld-type__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d5e0e2;
}

.ld-type__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.ld-type:hover .ld-type__media img { transform: scale(1.04); }

.ld-type__body { padding: 1.15rem 1.2rem 1.3rem; }
.ld-type__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ld-accent);
  margin-bottom: 0.3rem;
}
.ld-type h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  color: var(--ld-navy);
}
.ld-type p {
  margin: 0;
  color: var(--ld-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Process */
.ld-steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .ld-steps { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

.ld-step {
  position: relative;
  min-width: 0;
  padding: 1.2rem 1.1rem 1.25rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ld-line);
}

.ld-step__n {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ld-teal);
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.ld-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--ld-navy);
}

.ld-step p {
  margin: 0;
  color: var(--ld-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Gallery */
.ld-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.ld-gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #d5e0e2;
  min-width: 0;
}

.ld-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ld-gallery figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgba(15,36,43,0.72));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.ld-g-a, .ld-g-b, .ld-g-c, .ld-g-d, .ld-g-e, .ld-g-f, .ld-g-g, .ld-g-h {
  aspect-ratio: 1 / 1;
}

.ld-g-a, .ld-g-f { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

@media (min-width: 800px) {
  .ld-gallery {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 10vw;
    gap: 0.7rem;
  }
  .ld-g-a { grid-column: 1 / 8; grid-row: span 3; aspect-ratio: auto; }
  .ld-g-b { grid-column: 8 / 13; grid-row: span 3; aspect-ratio: auto; }
  .ld-g-c { grid-column: 1 / 5; grid-row: span 3; aspect-ratio: auto; }
  .ld-g-d { grid-column: 5 / 9; grid-row: span 3; aspect-ratio: auto; }
  .ld-g-e { grid-column: 9 / 13; grid-row: span 3; aspect-ratio: auto; }
  .ld-g-f { grid-column: 1 / 7; grid-row: span 3; aspect-ratio: auto; }
  .ld-g-g { grid-column: 7 / 13; grid-row: span 3; aspect-ratio: auto; }
  .ld-g-h { grid-column: 1 / 13; grid-row: span 3; aspect-ratio: auto; }
}

@media (min-width: 1100px) {
  .ld-gallery { grid-auto-rows: 92px; }
  .ld-g-a { grid-column: 1 / 8; grid-row: span 4; }
  .ld-g-b { grid-column: 8 / 13; grid-row: span 4; }
  .ld-g-c { grid-column: 1 / 4; grid-row: span 3; }
  .ld-g-d { grid-column: 4 / 9; grid-row: span 3; }
  .ld-g-e { grid-column: 9 / 13; grid-row: span 3; }
  .ld-g-f { grid-column: 1 / 7; grid-row: span 3; }
  .ld-g-g { grid-column: 7 / 10; grid-row: span 3; }
  .ld-g-h { grid-column: 10 / 13; grid-row: span 3; }
}

/* Notes / FAQ */
.ld-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 820px;
}

.ld-faq details {
  background: #fff;
  border: 1px solid var(--ld-line);
  border-radius: 14px;
  padding: 0.2rem 1.1rem;
  min-width: 0;
}

.ld-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.6rem 0.95rem 0;
  font-weight: 700;
  color: var(--ld-navy);
  position: relative;
  font-size: 1rem;
}

html[dir="ltr"] .ld-faq summary { padding: 0.95rem 0 0.95rem 1.6rem; }

.ld-faq summary::-webkit-details-marker { display: none; }

.ld-faq summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ld-accent);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
}

.ld-faq details[open] summary::after { content: "–"; }

.ld-faq details p {
  margin: 0 0 1rem;
  color: var(--ld-muted);
  line-height: 1.8;
  font-size: 0.97rem;
}

/* CTA band */
.ld-cta {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}

.ld-cta__bg,
.ld-cta__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.ld-cta__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ld-cta__shade {
  background: linear-gradient(180deg, rgba(15,36,43,0.72), rgba(15,36,43,0.86));
}

.ld-cta__inner { max-width: 40rem; }

.ld-cta h2 {
  color: #fff;
  margin: 0.45rem 0 0.8rem;
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem);
}

.ld-cta p {
  margin: 0 0 1.4rem;
  color: rgba(243,246,246,0.88);
  line-height: 1.75;
}

.ld-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.ld-cta .ld-hero__tel { color: #fff; }

/* Footer */
.ld-foot {
  background: var(--ld-footer);
  color: rgba(238,244,244,0.78);
  padding: 2rem 0 1.5rem;
}

.ld-foot__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  align-items: flex-start;
}

.ld-foot__brand .bx-logo img { height: 34px; margin-bottom: 0.7rem; }

.ld-foot p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.ld-foot a { color: #fff; font-weight: 700; }
.ld-foot a:hover { color: var(--ld-teal); }

.ld-foot__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.ld-foot__copy {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.8rem;
}

.ld-foot .ld-lang { border-color: rgba(255,255,255,0.22); }

/* Floating WA — desktop only */
.ld-float {
  display: none;
  position: fixed;
  bottom: 1.4rem;
  inset-inline-end: 1.4rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ld-wa);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(18,140,74,0.85);
}

.ld-float svg { width: 28px; height: 28px; }
.ld-float:hover { background: var(--ld-wa-2); }

@media (min-width: 800px) {
  .ld-float { display: inline-flex; }
}

/* Sticky mobile bar */
.ld-sticky {
  display: flex;
  gap: 0.5rem;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(15, 36, 43, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px -18px rgba(0,0,0,0.45);
}

.ld-sticky .ld-btn { flex: 1; min-width: 0; padding-inline: 0.6rem; font-size: 0.9rem; }

@media (min-width: 800px) {
  .ld-sticky { display: none; }
}

@media (max-width: 799px) {
  .ld-page { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
}

/* Phone numbers stay LTR */
.ld-tel { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .ld-type__media img { transition: none; }
  .ld-type:hover .ld-type__media img { transform: none; }
}
