/* ---------- Nav ---------- */

.wrap {
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: 16px;
}

a {
  text-decoration: none;
}

.nav {

  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e8ecff;
  line-height: 90px;
  height: 90px;
}

.nav__row {
  display: flex;
  align-items: center;
  /* changed: keep items on a single row, logo left */
  justify-content: flex-start;
  gap: 24px;
  /* space between logo and the right cluster */
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
}

.logo {
  height: 88px;
  width: auto;
  display: block;
}

.brand-text {

  font-weight: 800;
  letter-spacing: 0.02em;
}




@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
}

/* CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.nav__cta {
  margin-left: auto;
}

.btn--ghost {
  background: #fff;
  border: 2px solid #e6e9f9;
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: #d5dbfb;
  transform: translateY(-1px);
}

/* ====== Header: palette + interactions (matches footer) ====== */
.nav {
  --nav-bg: #ffffff;
  /* footer dark blue */
  --nav-text: #1a223f;
  /* footer light text */
  --nav-muted: #cbd4f7;
  /* footer muted text */
  --accent: #f26522;
  /* footer orange */
  --accent-2: #ff7a3c;
  /* footer orange hover */
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  color: var(--nav-text);
  height: 90px;
  line-height: 78px;
  transition: background .3s ease, height .25s ease, line-height .25s ease,
    box-shadow .3s ease, border-color .3s ease;
}

/* Shrink + blur when scrolling */
.nav.is-scrolled {
  background: rgba(14, 22, 48, .92);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom-color: rgba(255, 255, 255, .08);
  height: 72px;
  line-height: 72px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}


a {
  text-decoration: none;
}


/* Links (desktop) */
.nav__links {
  gap: 18px;
  margin-left: auto;
  /* pushes links + CTA to the right */
}

.nav__links a {
  color: #1a223f;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}

.nav__links a:hover {
  color: #fff;
  background: #1a223f;
}

/* Accent underline + active state */
.nav__links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Header CTA uses footer orange */
.nav .btn--ghost {
  background: var(--accent);
  border: 0;
  color: #fff;
  box-shadow: 0 6px 16px rgba(242, 101, 34, .35);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.nav .btn--ghost:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(242, 101, 34, .45);
}

.nav .btn--ghost:focus-visible {
  outline: 3px solid #ffd1bd;
  outline-offset: 2px;
}

/* Mobile: turn links into horizontal pills (no markup changes) */
@media (max-width: 899px) {
  .nav__row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav__links {
    display: flex !important;
    /* override your old "display:none" */
    order: 2;
    width: 100%;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav__links a {
    scroll-snap-align: center;
    background: #1a223f;
    border: 1px solid rgba(255, 255, 255, .06);
    color: var(--nav-text);
    padding: 8px 12px;
  }

  .nav__links a::after {
    display: none;
  }

  /* pills already show state */
}

.nav__links a.is-active,
.nav__links a[aria-current="page"] {
  background: #1a223f;
  color: #fff;
  border-radius: 12px;
  padding: 6px 10px;
}

.nav__links a.is-active::after,
.nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}


/* Accessibility / polish */
.nav :focus-visible {
  outline: 3px solid #ffd1bd;
  outline-offset: 2px;
}

/* Sparkle before the Properties link (no markup changes) */
.nav__links a[href*="/properties"] {
  position: relative;
  padding-left: 28px;
  /* room for the star */
}

/* the star */
.nav__links a[href*="/properties"]::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%) rotate(45deg) scale(1);
  background:
    radial-gradient(circle at 45% 35%, #ffd1bd 0%, var(--accent-2, #ff7a3c) 55%, var(--accent, #f26522) 100%);
  /* 4-point sparkle shape */
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(242, 101, 34, .35));
  transition: transform .25s ease, filter .25s ease;
  animation: sparkle-twinkle 2.4s ease-in-out infinite;
}

@keyframes sparkle-twinkle {

  0%,
  100% {
    transform: translateY(-50%) rotate(45deg) scale(1);
    opacity: .95;
  }

  50% {
    transform: translateY(-50%) rotate(45deg) scale(1.18);
    opacity: 1;
  }
}