/* ==========================================================================
   Nava's Landscaping — Terra Care-inspired pass
   Loaded AFTER main.css: reuses its tokens (pine / cream / terra, Fraunces +
   Inter) and its .wrap / .section / .eyebrow / .btn primitives. Nothing here
   overrides main.css globally — every rule is scoped to an nx-* block.
   ========================================================================== */

/* ---------- Hero: full-bleed image, overlay copy ---------- */
.nx-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(32rem, 78vh, 46rem);
  display: grid;
  align-items: end;
  padding: clamp(6rem, 12vh, 9rem) 0 clamp(2.5rem, 6vh, 4rem);
  color: var(--cream-50);
  overflow: hidden;
}

.nx-hero__media,
.nx-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.nx-hero__media img { object-fit: cover; object-position: center 62%; }

.nx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 36, 28, 0.72) 0%, rgba(22, 36, 28, 0.34) 42%, rgba(22, 36, 28, 0.82) 100%),
    radial-gradient(120% 90% at 12% 88%, rgba(22, 36, 28, 0.55) 0%, transparent 60%);
}

.nx-hero__inner { max-width: 46rem; }

.nx-hero .nx-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pine-150);
  margin-bottom: 1rem;
}

.nx-hero h1 {
  color: var(--cream-50);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.nx-hero h1 em {
  font-style: italic;
  color: var(--amber-400);
}

.nx-hero p.nx-lede {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: rgba(250, 246, 236, 0.9);
  margin: 0 0 1.9rem;
  max-width: 38rem;
}

.nx-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.nx-hero .btn-light {
  background: rgba(250, 246, 236, 0.14);
  border-color: rgba(250, 246, 236, 0.45);
  color: var(--cream-50);
  backdrop-filter: blur(6px);
}
.nx-hero .btn-light:hover { background: rgba(250, 246, 236, 0.24); }

/* stat strip under the hero copy */
.nx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 246, 236, 0.22);
}

.nx-stats dt {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream-50);
  margin: 0;
}

.nx-stats dd {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine-150);
}

/* ---------- Story: text + image ---------- */
.nx-story { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 56rem) { .nx-story { grid-template-columns: 1.05fr 1fr; } }

.nx-story h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0.4rem 0 1rem;
}

.nx-story p { color: var(--ink-soft); margin: 0 0 1rem; }

.nx-story__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- Positioning line ---------- */
.nx-positioning {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}

.nx-positioning h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.nx-positioning p { color: var(--ink-soft); margin: 0; }

/* ---------- Service cards ---------- */
.nx-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.nx-card {
  display: flex;
  flex-direction: column;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.nx-card__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.nx-card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }

.nx-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.nx-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

.nx-card__link {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--terra-600);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}
.nx-card__link:hover { border-bottom-color: currentColor; }

/* ---------- Gallery ---------- */
.nx-gallery { background: var(--cream-100); }

.nx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0 2rem;
}

.nx-filter {
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.nx-filter[aria-pressed="true"] {
  background: var(--pine-800);
  border-color: var(--pine-800);
  color: var(--cream-50);
}

.nx-filter:hover:not([aria-pressed="true"]) { border-color: var(--pine-600); color: var(--pine-800); }

.nx-shots {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.nx-shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--pine-900);
}

.nx-shot[hidden] { display: none; }

.nx-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 420ms ease, opacity 240ms ease;
  opacity: 0;
}
.nx-shot img.is-loaded { opacity: 1; }
.nx-shot:hover img { transform: scale(1.04); }

.nx-shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.4rem 0.8rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cream-50);
  background: linear-gradient(transparent, rgba(22, 36, 28, 0.82));
}

/* ---------- Process ---------- */
.nx-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.4rem;
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.nx-step { position: relative; padding-top: 2.6rem; }

.nx-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--terra-500);
}

.nx-step h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 0.4rem; }
.nx-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Reasons ---------- */
.nx-reasons { background: var(--pine-900); color: var(--cream-100); }
.nx-reasons .nx-eyebrow, .nx-reasons h2 { color: var(--cream-50); }
.nx-reasons__grid {
  display: grid;
  gap: 1.6rem 2rem;
  margin-top: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.nx-reasons__item h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 0.4rem;
  color: var(--amber-400);
}
.nx-reasons__item p { margin: 0; font-size: 0.94rem; color: rgba(244, 237, 217, 0.82); }

/* ---------- Service area ---------- */
.nx-area { text-align: center; }
.nx-area__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  font-weight: 500;
  color: var(--pine-800);
}
.nx-area__list li { display: flex; align-items: center; gap: 0.55rem; }
.nx-area__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terra-500); }

/* ---------- Motion / print niceties ---------- */
@media (prefers-reduced-motion: reduce) {
  .nx-card, .nx-shot img { transition: none; }
  .nx-card:hover { transform: none; }
}


/* ---------- Small screens ---------- */
@media (max-width: 48rem) {
  /* keep hero copy clear of the sticky call bar */
  .nx-hero { padding-bottom: 7rem; }

  /* three stats side by side instead of a tall stack */
  .nx-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-top: 1.8rem;
  }
  .nx-stats dt { font-size: 1.15rem; }
  .nx-stats dd { font-size: 0.66rem; letter-spacing: 0.03em; }
}

/* ---------- Gallery captions: keep readable on bright photos ---------- */
.nx-shot figcaption {
  background: linear-gradient(rgba(22, 36, 28, 0) 0%, rgba(22, 36, 28, 0.55) 38%, rgba(22, 36, 28, 0.92) 100%);
  text-shadow: 0 1px 2px rgba(22, 36, 28, 0.55);
}


/* ==========================================================================
   Header — rebuilt. Sticky, one line, five links, phone + short CTA.
   ========================================================================== */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 236, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nx-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.4rem;
  padding: 0.55rem 0;
}

.nx-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

/* Client logo lockup (vector): green script + ink descriptor */
.nx-brand__logo {
  display: block;
  height: 3.2rem;
  width: auto;
}

.nx-nav { margin-left: auto; }

.nx-nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-nav a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  white-space: nowrap;
}

.nx-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--terra-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.nx-nav a:hover::after,
.nx-nav a:focus-visible::after { transform: scaleX(1); }

.nx-header__actions {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin-left: 1.7rem;
}

.nx-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.nx-phone:hover { color: var(--terra-600); }

.nx-cta { white-space: nowrap; }

.nx-burger {
  display: none;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.nx-burger:hover { border-color: var(--pine-600); }

/* ---------- Header / nav, small screens ---------- */
@media (max-width: 62rem) {
  .nx-header__inner { position: relative; gap: 0.75rem; }
  .nx-burger { display: inline-flex; }
  .nx-cta { display: none; }
  .nx-phone span { display: none; }
  .nx-phone { padding: 0.4rem; }
  .nx-header__actions { gap: 0.6rem; margin-left: 0; }

  .nx-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .nx-nav.open { display: block; }
  .nx-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nx-nav a {
    display: block;
    padding: 0.85rem 0.15rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
  }
  .nx-nav li:last-child a { border-bottom: 0; }
  .nx-nav a::after { display: none; }
}

@media (max-width: 30rem) {
  .nx-brand__logo { height: 2.65rem; }
}
