/* NJ Property Finders — Joseph Viscuso, Crossroads Realty
   Clean, professional navy / cream / gold palette. */

:root {
  --navy: #0c2340;
  --navy-deep: #07162a;
  --navy-mid: #163154;
  --gold: #c4a35a;
  --gold-deep: #9a7a38;
  --gold-soft: #e8d7a5;
  --cream: #f6f3ed;
  --cream-dark: #ebe4d6;
  --white: #ffffff;
  --ink: #1b222c;
  --ink-muted: #4c5764;
  --line: #d8d1c4;
  --focus: #c4a35a;
  --error: #8a2b2b;
  --shadow: 0 12px 40px rgba(7, 22, 42, 0.12);
  --radius: 6px;
  --header-offset: 7.5rem;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --content: 72rem;
  --narrow: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

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

a {
  color: var(--navy-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-deep);
}

a[href^="tel:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, var(--narrow));
  margin-inline: auto;
}

.placeholder {
  display: inline-block;
  background: #fff4c8;
  border: 1px dashed #b08900;
  color: #5c4a00;
  font-weight: 600;
  padding: 0 0.35em;
  border-radius: 3px;
}

/* Header
   ---------------------------------------- */

.topbar {
  background: var(--navy-deep);
  color: var(--cream);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.topbar-inner {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding: 0.45rem 0;
}

.topbar a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 600;
}

.topbar a:hover {
  color: var(--white);
  text-decoration: underline;
}

.topbar-broker {
  font-weight: 600;
}

.topbar-broker strong {
  font-weight: 700;
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 237, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand:hover {
  color: var(--navy);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.7rem 0.6rem;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.15rem;
}

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

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy-deep);
  border-bottom-color: var(--gold);
}

.nav-search {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--white) !important;
  border-bottom: 0 !important;
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-search:hover,
.nav-search[aria-current="page"] {
  background: var(--navy-mid);
  color: var(--white) !important;
  border-bottom: 0 !important;
}

/* Buttons
   ---------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--navy-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--gold-soft);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero
   ---------------------------------------- */

.hero {
  position: relative;
  min-height: min(78vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(160deg, var(--navy-deep), var(--navy-mid));
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 22, 42, 0.88) 0%, rgba(7, 22, 42, 0.62) 48%, rgba(7, 22, 42, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 22, 42, 0.15) 0%, rgba(7, 22, 42, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.25rem;
  max-width: 44rem;
  margin-left: max(1rem, calc((100% - var(--content)) / 2));
  margin-right: auto;
  width: min(100% - 2rem, 44rem);
}

.hero-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-tagline {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.15rem);
  line-height: 0.95;
  color: var(--white);
  margin: 0 0 0.55rem;
}

.hero-name {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  max-width: 36rem;
  color: #f3efe6;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.45rem;
  border-radius: 999px;
  margin: 0 0 1.15rem;
  max-width: 36rem;
  backdrop-filter: blur(8px);
}

.hero-search input[type="search"] {
  flex: 1 1 12rem;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  min-width: 0;
}

.hero-search input[type="search"]::placeholder {
  color: #6a7380;
}

.hero-search .btn {
  flex: 0 0 auto;
}

.hero-compliance {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: #e8e0d0;
}

.hero-compliance a {
  color: var(--gold-soft);
  font-weight: 600;
  text-decoration: none;
}

.hero-compliance a:hover {
  text-decoration: underline;
  color: var(--white);
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.25rem 0 2.6rem;
}

.page-hero .hero-tagline {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 0.35rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: #efe8db;
  font-size: 1.12rem;
}

/* Sections
   ---------------------------------------- */

.section {
  padding: 4.25rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-navy .section-kicker {
  color: var(--gold-soft);
}

.section-header h2,
.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--navy);
}

.section-navy h2 {
  color: var(--white);
}

.section-header p,
.lede {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.section-navy .section-header p,
.section-navy .lede {
  color: #e4ddd0;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* Intro / meet Joe
   ---------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
}

.headshot-frame {
  margin: 0 auto;
  max-width: 24rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.7rem 0.7rem 1.1rem;
  box-shadow: var(--shadow);
}

.headshot-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  background: var(--white);
}

.headshot-caption {
  margin: 0.75rem 0 0;
  text-align: center;
}

.headshot-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.headshot-caption span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.05rem;
}

/* Path cards, reasons, areas
   ---------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.path-card,
.reason-card,
.area-note {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: var(--radius);
}

.path-card {
  display: flex;
  flex-direction: column;
}

.path-card .btn-row {
  margin-top: auto;
}

.path-card h3,
.reason-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.path-card p,
.reason-card p {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.reason-num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.area-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.area-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.area-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}

.town-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.town-list li {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--navy);
}

/* CTA band
   ---------------------------------------- */

.cta-band {
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cta-band .tagline-repeat {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-soft);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.4rem;
  max-width: 36rem;
  color: #e8e0d2;
}

.cta-band .btn-row {
  justify-content: center;
}

/* Process steps
   ---------------------------------------- */

.process-list {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.process-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.25rem 5rem;
  position: relative;
}

.process-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.process-list h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.process-list p {
  margin: 0;
  color: var(--ink-muted);
}

.expect-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
}

.expect-list li + li {
  margin-top: 0.45rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Forms
   ---------------------------------------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin-top: 0;
}

.lead-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-span {
  grid-column: 1 / -1;
}

.field label,
.field .label-text {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.field .hint {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  background: var(--white);
}

.checkbox-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.3rem;
}

.form-status {
  display: none;
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--cream-dark);
  border-left: 3px solid var(--gold-deep);
  color: var(--navy);
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-left-color: #1e4d3b;
  background: #e8f3ed;
}

.form-status.is-error {
  border-left-color: var(--error);
}

.form-note {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* IDX placeholder
   ---------------------------------------- */

.idx-panel {
  border: 1px dashed var(--gold-deep);
  background:
    linear-gradient(180deg, #fffdf8, var(--cream));
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
}

.idx-soon-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--navy);
}

.idx-panel p {
  margin: 0 auto 1.15rem;
  max-width: 32rem;
  color: var(--ink-muted);
}

/* Contact / office
   ---------------------------------------- */

.office-card h2,
.office-card h3 {
  margin-top: 0;
}

.office-card p {
  margin: 0 0 0.75rem;
}

.map-frame {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 18rem;
  background: var(--cream-dark);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
}

.about-copy p {
  margin: 0 0 1rem;
}

/* Footer
   ---------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #e6dfd2;
  padding: 3rem 0 1.75rem;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem 1.5rem;
  margin-bottom: 2.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--white);
  margin: 0 0 0.15rem;
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-soft);
  margin: 0 0 0.75rem;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 0.7rem;
  font-weight: 700;
}

.site-footer a {
  color: var(--gold-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.compliance {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: #cfc6b6;
}

.compliance p {
  margin: 0 0 0.7rem;
}

.eho {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.eho-mark {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.copyright {
  margin-bottom: 0 !important;
}

/* Responsive
   ---------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.2rem;
  }

  .site-nav .nav-search {
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
  }

  .intro-grid,
  .card-grid,
  .reason-grid,
  .area-layout,
  .split-2,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 32rem;
  }

  .hero-search {
    border-radius: 1.15rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search input[type="search"] {
    flex: 0 0 auto;
    border-radius: 0.75rem;
  }

  .hero-search .btn {
    width: 100%;
  }

  .process-list li {
    padding-left: 1.25rem;
    padding-top: 4rem;
  }

  .process-list li::before {
    top: 1rem;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    flex-direction: column;
    gap: 0.15rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero-content {
    padding-top: 3.5rem;
  }

  .section {
    padding: 3.15rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle span,
  .btn {
    transition: none;
  }
}

body.nav-open {
  overflow: hidden;
}
