/* ==========================================================================
   Menjo Land Agency Ltd — Shell
   Phase 2. Navbar, hero, trust bar, footer, mobile action bar.
   Every value derives from tokens.css. No hex outside :root.
   ========================================================================== */

/* --- Layout helpers ------------------------------------------------------ */

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--s5); }

.hl { color: var(--yellow); }

.section { padding-block: var(--s8); }

/* Mobile action bar sits over the page, so the last section needs clearance */
@media (max-width: 767.98px) {
  body { padding-bottom: 72px; }
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.nav-menjo {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  padding-block: var(--s4);
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              padding var(--dur) var(--ease);
}

/* Scrolled state — applied by JS once past the hero fold */
.nav-menjo.is-stuck {
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  padding-block: var(--s3);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }

.nav-logo {
  /* Subtle dark pill behind the logo so it reads against both the golden sky
     and the dark-green scrim portions of the hero */
  background: rgba(5, 61, 25, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  padding: 4px 10px 4px 6px;
  transition: background var(--dur) var(--ease);
}
.nav-menjo.is-stuck .nav-logo { background: transparent; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

.nav-logo img { height: 46px; width: auto; display: block; transition: height var(--dur) var(--ease); }
.nav-menjo.is-stuck .nav-logo img { height: 40px; }

/* Drop-shadow only when floating over the hero; cleared when navbar is stuck */
.nav-logo img { filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35)); }
.nav-menjo.is-stuck .nav-logo img { filter: none; }

.nav-links { display: flex; align-items: center; gap: var(--s5); list-style: none; margin: 0; padding: 0; }

.nav-links a {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--on-dark);
  text-decoration: none;
  padding-block: var(--s1);
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav-links a:hover { border-bottom-color: var(--gold-light); color: var(--gold-light); }

.nav-menjo.is-stuck .nav-links a { color: var(--ink); }
.nav-menjo.is-stuck .nav-links a:hover { color: var(--green); border-bottom-color: var(--gold); }

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-sm);
  color: var(--on-dark);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.25rem;
}
.nav-menjo.is-stuck .nav-toggle { border-color: var(--line); color: var(--ink); }

@media (max-width: 991.98px) {
  .nav-links, .nav-cta { display: none; }
}
@media (min-width: 992px) {
  .nav-toggle { display: none; }
}

/* --- Offcanvas menu ------------------------------------------------------ */

.offcanvas-menjo { background: var(--night); color: var(--on-dark); }
.offcanvas-menjo .offcanvas-header { border-bottom: 1px solid var(--on-dark-fill); }
.offcanvas-menjo .btn-close { filter: invert(1) grayscale(1) brightness(2); }

.oc-links { list-style: none; margin: 0; padding: var(--s5) 0 0; }
.oc-links li + li { border-top: 1px solid var(--on-dark-fill); }
.oc-links a {
  display: block;
  padding: var(--s4) 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--on-dark);
  text-decoration: none;
}
.oc-links a:hover { color: var(--gold-light); }

.oc-contact { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--on-dark-fill); }
.oc-contact a { color: var(--gold-light); text-decoration: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-deep);
}

.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% center;
  display: block;
}

/* Directional brand-green scrim:
   Left side is solid brand green where text sits.
   Right side opens to show the actual landscape, sharp and vivid.
   A subtle bottom layer lifts the facts bar. */
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(5, 61, 25, 0.97) 0%,
      rgba(5, 61, 25, 0.90) 25%,
      rgba(5, 61, 25, 0.55) 48%,
      rgba(5, 61, 25, 0.10) 68%,
      transparent 84%
    ),
    linear-gradient(
      to top,
      rgba(5, 61, 25, 0.65) 0%,
      transparent 28%
    );
}

.hero-body { position: relative; z-index: 2; width: 100%; padding-block: var(--s8); }

.hero-eyebrow { color: var(--gold-light); margin-bottom: var(--s4); }

.hero h1 {
  color: var(--on-dark);
  margin: 0 0 var(--s5);
  max-width: 15ch;
}

.hero-sub {
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin: 0 0 var(--s6);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s7); }
.hero-actions .btn-menjo,
.hero-actions .btn-menjo-ghost { padding: var(--s4) var(--s5); font-size: 1rem; }

/* Hero facts — the four objections a land buyer raises first */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  list-style: none; margin: 0; padding: var(--s5) 0 0;
  border-top: 1px solid var(--on-dark-fill);
}
.hero-facts li { display: flex; align-items: center; gap: var(--s2); color: var(--on-dark); }
.hero-facts i { color: var(--gold-light); font-size: 1rem; flex: none; }

@media (max-width: 767.98px) {
  /* Logo — strip the pill so it doesn't bleed over the hero eyebrow text */
  .nav-logo {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
  }
  .nav-logo img { height: 38px; }

  .hero { min-height: 88svh; align-items: flex-end; }
  .hero-media img { object-position: center center; }
  .hero-media::after {
    background:
      linear-gradient(
        to top,
        rgba(5, 61, 25, 0.96) 0%,
        rgba(5, 61, 25, 0.80) 35%,
        rgba(5, 61, 25, 0.40) 65%,
        rgba(5, 61, 25, 0.20) 100%
      );
  }
  .hero-body { padding-block: var(--s7); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn-menjo,
  .hero-actions .btn-menjo-ghost { flex: 1 1 100%; }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */

.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }

.trust-item { display: flex; gap: var(--s4); align-items: flex-start; }

.trust-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--on-dark);
  font-size: 1.25rem;
}

.trust-item h3 { margin: 0 0 var(--s1); font-size: 1rem; }
.trust-item p { margin: 0; font-size: var(--t-small); color: var(--ink-soft); }

@media (max-width: 991.98px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .trust-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer { background: var(--night); color: var(--on-dark); padding-block: var(--s8) var(--s6); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s7);
}

.footer-logo img { height: 68px; width: auto; margin-bottom: var(--s4); }
.footer-blurb { color: var(--on-dark-soft); font-size: var(--t-small); max-width: 34ch; margin: 0; }

.footer h3 { font-size: var(--t-micro); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-light); margin: 0 0 var(--s4); font-family: var(--font-body); }

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li + li { margin-top: var(--s3); }
.footer-list a, .footer-list span { color: var(--on-dark-soft); text-decoration: none; font-size: var(--t-small); }
.footer-list a:hover { color: var(--gold-light); }

.footer-contact li { display: flex; gap: var(--s3); align-items: flex-start; }
.footer-contact i { color: var(--gold-light); font-size: 1rem; flex: none; margin-top: 2px; }

.footer-socials { display: flex; gap: var(--s3); margin-top: var(--s5); }
.footer-socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--on-dark-fill); color: var(--on-dark);
  font-size: 1.1rem; text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer-socials a:hover { background: var(--gold-light); color: var(--ink); }

.footer-base {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--on-dark-fill);
  display: flex; flex-wrap: wrap; gap: var(--s3);
  justify-content: space-between; align-items: center;
  color: var(--on-dark-soft); font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase;
}

@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Sticky mobile action bar — highest-value element on the build
   ========================================================================== */

.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1040;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--night);
  border-top: 1px solid var(--on-dark-fill);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.28);
  padding-bottom: env(safe-area-inset-bottom);
}

.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: var(--s3) var(--s2);
  color: var(--on-dark);
  text-decoration: none;
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  min-height: 64px;
}
.action-bar a i { font-size: 1.25rem; }
.action-bar a + a { border-left: 1px solid var(--on-dark-fill); }

/* Explicit icon colours — override any Bootstrap-icon base reset */
.action-bar a:not(.is-primary) i { color: var(--on-dark) !important; }

/* WhatsApp is the primary path — it gets the gold */
.action-bar .is-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--ink);
}
.action-bar .is-primary i { color: var(--ink) !important; }

@media (min-width: 768px) { .action-bar { display: none; } }

/* --- Desktop WhatsApp float ---------------------------------------------- */

.wa-float {
  position: fixed;
  right: var(--s5); bottom: var(--s5);
  z-index: 1040;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green);
  color: var(--on-dark);
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: var(--shadow-lift);
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.08); color: var(--on-dark); }

/* On mobile the action-bar replaces the float — force-hide it */
@media (max-width: 767.98px) {
  .wa-float { display: none !important; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .wa-float:hover { transform: none; }
  .nav-menjo { transition: none; }
}
