/* 9to9Properties marketing homepage — reference-aligned layout */
:root {
  --navy: #16325c;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #22c55e;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #eef2f7;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(15, 36, 68, .12);
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.nn {
  margin: 0;
  font-family: var(--font);
  color: #1e293b;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.nn-container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.nn-inline { display: inline; }

/* —— Header —— */
.nn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nn-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.nn-logo {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}

.nn-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nn-logo__text strong {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--navy);
}

.nn-logo__text small {
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted);
}

.nn-logo--light .nn-logo__text strong { color: #fff; }
.nn-logo--light .nn-logo__text small { color: rgba(255,255,255,.7); }

.nn-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
}

.nn-nav a {
  font-size: .94rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: .2rem 0;
}

.nn-nav a:hover,
.nn-nav a.is-active { color: var(--blue); }

.nn-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nn-header__actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-shrink: 0;
}

.nn-burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.nn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}

.nn-btn--outline {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.nn-btn--outline:hover { background: #eff6ff; }

.nn-btn--primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.nn-btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.nn-btn--white {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

/* —— Hero —— */
.nn-hero {
  padding: 1.5rem 0 0;
  background: #fff;
}

.nn-hero__panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
  background: #0f2744;
}

.nn-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.nn-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.86) 34%, rgba(255,255,255,.35) 58%, rgba(255,255,255,0) 78%),
    linear-gradient(180deg, rgba(255,255,255,.12) 0%, transparent 40%, rgba(15,36,68,.18) 100%);
}

.nn-hero__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: 3.25rem 2.5rem 5.5rem;
}

.nn-hero__content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--navy);
}

.nn-hero__content h1 span { color: var(--green); }

.nn-hero__content > p {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 500;
}

.nn-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.15rem;
}

.nn-trust li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
}

.nn-trust i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--blue);
  font-size: .78rem;
}

/* Search overlaps bottom of hero panel via negative margin only */
.nn-search {
  position: relative;
  z-index: 5;
  margin-top: -52px;
  margin-bottom: 2.5rem;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem 1.15rem;
}

.nn-search__tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: .85rem;
}

.nn-search__tab {
  border: 0;
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .88rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.nn-search__tab.is-active {
  background: var(--blue);
  color: #fff;
}

.nn-search__fields {
  display: grid;
  grid-template-columns: 1.5fr .7fr .95fr auto;
  gap: .75rem;
  align-items: end;
}

.nn-field span:first-child,
.nn-field > span:not(.nn-field__box) {
  display: block;
  margin-bottom: .28rem;
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted);
}

.nn-field input,
.nn-field select,
.nn-field__box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 1rem;
  background: #fff;
  color: var(--navy);
  font-weight: 500;
}

.nn-field__box {
  position: relative;
  display: block;
}

.nn-field__box i {
  position: absolute;
  left: .9rem;
  top: 50%;
  margin-top: -.45rem;
  color: #94a3b8;
  font-size: .9rem;
  pointer-events: none;
}

.nn-field__box input { padding-left: 2.3rem; }

.nn-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.nn-search__btn {
  height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0 1.25rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  cursor: pointer;
}

.nn-search__btn:hover { background: var(--blue-dark); }

/* —— Sections —— */
.nn-section { padding: 4.25rem 0; }
.nn-section--soft { background: #f8fafc; }

.nn-section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
}

.nn-section__head h2,
.nn-props__bar h2,
.nn-process__intro h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}

.nn-section__head p,
.nn-process__intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Features 5×2 */
.nn-features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.nn-feature {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 1.2rem 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(15, 36, 68, .04);
  height: 100%;
}

.nn-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .85rem;
}

.nn-feature h3 {
  margin: 0 0 .35rem;
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.nn-feature p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}

/* Process */
.nn-process {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 2.25rem;
  align-items: center;
}

.nn-process__intro p { margin: 0 0 1.25rem; max-width: 26rem; }

.nn-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: .2rem;
  align-items: start;
}

.nn-step { text-align: center; padding: .25rem; }

.nn-step__visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  margin-bottom: .7rem;
}

.nn-step__num {
  position: absolute;
  top: -2px;
  left: -4px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.nn-step__icon {
  width: 64px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0 50%);
}

.nn-step__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  color: #cbd5e1;
  list-style: none;
}

.nn-step h3 {
  margin: 0 0 .35rem;
  font-size: .92rem;
  font-weight: 800;
  color: var(--navy);
}

.nn-step p {
  margin: 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

/* Properties */
.nn-props__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.nn-props__bar a {
  color: var(--blue);
  font-weight: 700;
  font-size: .94rem;
  white-space: nowrap;
}

.nn-props {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.nn-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 36, 68, .06);
  display: flex;
  flex-direction: column;
}

.nn-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.nn-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nn-badge {
  position: absolute;
  top: .8rem;
  right: .8rem;
  border-radius: 999px;
  padding: .26rem .7rem;
  font-size: .72rem;
  font-weight: 800;
  color: #fff;
}

.nn-badge--rent { background: var(--green); }
.nn-badge--sale { background: var(--blue); }

.nn-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.nn-card__body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}

.nn-card__loc {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 500;
}

.nn-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  color: #475569;
}

.nn-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
}

.nn-card__foot {
  margin-top: auto;
  padding-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nn-card__foot strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}

.nn-card__go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Stats + CTA */
.nn-band {
  background: var(--soft);
  padding: 2.4rem 0 3rem;
}

.nn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.nn-stat i {
  color: var(--blue);
  font-size: 1.35rem;
  margin-bottom: .4rem;
}

.nn-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.nn-stat span {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.nn-cta {
  background: linear-gradient(110deg, #16325c 0%, #1e4d8c 55%, #2563eb 100%);
  border-radius: 20px;
  color: #fff;
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.nn-cta::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background:
    radial-gradient(ellipse 40% 80% at 20% 100%, rgba(255,255,255,.12), transparent),
    radial-gradient(ellipse 30% 70% at 55% 100%, rgba(255,255,255,.1), transparent),
    radial-gradient(ellipse 35% 90% at 85% 100%, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}

.nn-cta__copy {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  position: relative;
  z-index: 1;
}

.nn-cta h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 800;
}

.nn-cta p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  line-height: 1.55;
}

.nn-cta .nn-btn { position: relative; z-index: 1; flex-shrink: 0; }

/* Footer */
.nn-footer {
  background: #0b1b33;
  color: #fff;
  padding: 2.2rem 0 1.25rem;
}

.nn-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nn-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.2rem;
  font-weight: 600;
  font-size: .9rem;
  color: rgba(255,255,255,.82);
}

.nn-footer__links a:hover { color: #fff; }

.nn-footer__social {
  display: flex;
  gap: .55rem;
}

.nn-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nn-footer__copy {
  padding-top: 1rem;
  text-align: right;
  color: rgba(255,255,255,.55);
  font-size: .84rem;
  font-weight: 500;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .nn-features { grid-template-columns: repeat(3, 1fr); }
  .nn-props { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nn-header__row {
    flex-wrap: wrap;
    min-height: auto;
    padding: .85rem 0;
  }
  .nn-burger { display: inline-flex; align-items: center; justify-content: center; }
  .nn-nav,
  .nn-header__actions { display: none; width: 100%; }
  .nn-nav.is-open,
  .nn-header__actions.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
  }
  .nn-nav.is-open { padding-top: .35rem; }
  .nn-hero__panel { min-height: 420px; }
  .nn-hero__content { max-width: none; padding: 2rem 1.4rem 4.5rem; }
  .nn-hero__shade {
    background:
      linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 42%, rgba(255,255,255,.2) 70%, transparent 100%);
  }
  .nn-search { margin-top: -40px; }
  .nn-search__fields { grid-template-columns: 1fr 1fr; }
  .nn-search__btn { grid-column: 1 / -1; width: 100%; }
  .nn-process { grid-template-columns: 1fr; }
  .nn-steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
  .nn-step__chevron { display: none; }
  .nn-stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .nn-cta { flex-direction: column; align-items: flex-start; }
  .nn-footer__copy { text-align: left; }
}

@media (max-width: 560px) {
  .nn-container { width: min(100% - 1.25rem, var(--max)); }
  .nn-logo__text small { display: none; }
  .nn-features,
  .nn-props,
  .nn-steps,
  .nn-stats,
  .nn-search__fields { grid-template-columns: 1fr; }
  .nn-props__bar { flex-direction: column; align-items: flex-start; }
}
