/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --navy:        #0D1B2A;
  --navy-mid:    #1A2E45;
  --orange:      #E8621A;
  --orange-dark: #C9521A;
  --warm-white:  #FFFFFF;
  --stone:       #F0F4F8;
  --text:        #0D1B2A;
  --text-muted:  #5A6A7A;
  --border:      #D8E0EA;
  --nav-h: 72px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --transition: 0.22s ease;
  /* aliases used throughout */
  --charcoal:    #0D1B2A;
  --bronze:      #E8621A;
  --bronze-dark: #C9521A;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--warm-white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.75rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn-bronze { background: var(--bronze); color: #fff; border-color: var(--bronze); }
.btn-bronze:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }

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

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

.section { padding: 6rem 0; }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--bronze); margin-bottom: 0.75rem;
}
.section-eyebrow.light { color: var(--bronze); }
.section-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; color: var(--navy); margin-bottom: 1rem;
}
.section-desc { color: var(--text-muted); max-width: 42ch; line-height: 1.7; }
.section-desc.narrow { max-width: 38ch; }

.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; margin-bottom: 3.5rem; flex-wrap: wrap;
}
.section-header.centered { flex-direction: column; align-items: center; text-align: center; }
.section-footer { text-align: center; margin-top: 3rem; }

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; gap: 2rem;
}
.nav-logo {
  display: flex; align-items: center; flex-shrink: 0;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img {
  height: 42px; width: auto; display: block;
  object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav-link {
  font-size: 0.85rem; font-weight: 500; padding: 0.4rem 0.75rem;
  border-radius: var(--radius); color: rgba(255,255,255,0.8);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav.scrolled .nav-link { color: var(--text-muted); }
.nav.scrolled .nav-link:hover, .nav.scrolled .nav-link.active { color: var(--navy); background: var(--stone); }

.btn-nav-cta {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  padding: 0.55rem 1.25rem; border-radius: var(--radius);
  background: var(--bronze); color: #fff; border: none;
  transition: background var(--transition);
  flex-shrink: 0;
}
.btn-nav-cta:hover { background: var(--bronze-dark); }
.btn-nav-cta:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px; transition: background var(--transition);
}
.nav.scrolled .nav-toggle span { background: var(--navy); }

.mobile-menu {
  display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--warm-white); border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-link {
  display: block; padding: 0.75rem 0;
  font-size: 1rem; font-weight: 500; color: var(--navy);
  border-bottom: 1px solid var(--border);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-cta { color: var(--bronze); font-weight: 700; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,27,42,0.82) 0%, rgba(13,27,42,0.5) 60%, rgba(13,27,42,0.2) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  padding-top: var(--nav-h);
  max-width: 680px; margin-left: max(2rem, calc(50vw - 600px));
  animation: heroIn 0.9s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bronze); margin-bottom: 1.25rem;
}
.hero-headline {
  font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.08; color: #fff; margin-bottom: 1.5rem;
}
.hero-headline em { font-style: italic; color: rgba(255,255,255,0.75); }
.hero-body {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  max-width: 46ch; line-height: 1.7; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.45); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px; background: rgba(255,255,255,0.3);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ── Search Bar ────────────────────────────────────────────────────────────── */
.search-bar-section {
  background: var(--navy); padding: 0;
}
.search-form {
  display: flex; align-items: flex-end; gap: 0; flex-wrap: wrap;
}
.search-field {
  flex: 1; min-width: 160px;
  padding: 1.25rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 0.4rem;
}
.search-field select {
  width: 100%; background: transparent; border: none;
  color: #fff; font-family: var(--sans); font-size: 0.9rem;
  font-weight: 500; cursor: pointer; appearance: none;
  padding-right: 1rem;
}
.search-field select:focus { outline: none; }
.search-field select option { background: var(--navy); color: #fff; }
.search-btn {
  margin: 1rem 1.5rem; flex-shrink: 0;
  background: var(--bronze); border-color: var(--bronze); color: #fff;
}
.search-btn:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }

/* ── Featured Properties ───────────────────────────────────────────────────── */
.featured-section { background: var(--warm-white); }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.prop-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.prop-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }

.prop-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.prop-card:hover .prop-img-wrap img { transform: scale(1.03); }

.prop-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--navy); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 2px;
}
.prop-badge.available { background: #1a6b3c; }
.prop-badge.sold { background: #6b1a1a; }

.prop-body { padding: 1.25rem; }
.prop-category {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bronze); margin-bottom: 0.4rem;
}
.prop-title {
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--navy); margin-bottom: 0.3rem; line-height: 1.3;
}
.prop-location { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.prop-price {
  font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 0.75rem;
}
.prop-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--text-muted);
  padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.prop-meta span { display: flex; align-items: center; gap: 0.3rem; }

.prop-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.prop-actions .btn { flex: 1; font-size: 0.82rem; padding: 0.6rem 1rem; }

.empty-grid {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 2rem; background: var(--stone); border-radius: 6px;
}
.empty-grid p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Find My Property Section ──────────────────────────────────────────────── */
.fmp-section {
  background: var(--navy);
  padding: 6rem 0;
}
.fmp-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.fmp-title {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15; color: #fff; margin-bottom: 1.25rem;
}
.fmp-body { color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 2rem; max-width: 44ch; }

.fmp-steps { display: flex; flex-direction: column; gap: 1.75rem; }
.fmp-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.fmp-num {
  font-family: var(--serif); font-size: 2rem; color: var(--bronze);
  line-height: 1; flex-shrink: 0; width: 2.5rem;
}
.fmp-step strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.25rem; }
.fmp-step p { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.6; }

/* ── Benefits ──────────────────────────────────────────────────────────────── */
.benefits-section { background: var(--stone); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.benefit-item {
  padding: 2rem; background: var(--warm-white);
  border: 1px solid var(--border); border-radius: 6px;
}
.benefit-icon {
  font-size: 1.5rem; color: var(--bronze); margin-bottom: 1rem;
  line-height: 1;
}
.benefit-item h3 {
  font-family: var(--serif); font-size: 1.1rem;
  color: var(--navy); margin-bottom: 0.6rem;
}
.benefit-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── Process ───────────────────────────────────────────────────────────────── */
.process-section { background: var(--warm-white); }
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  counter-reset: none;
}
.process-step { position: relative; }
.process-step:not(:last-child)::after {
  content: ''; position: absolute;
  top: 1.25rem; left: calc(100% - 1rem); width: 2rem; height: 1px;
  background: var(--border);
}
.process-num {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.process-content h3 {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--navy); margin-bottom: 0.5rem;
}
.process-content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* ── Insights ──────────────────────────────────────────────────────────────── */
.insights-section { background: var(--stone); }
.insights-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.insight-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.insight-card--lead { display: flex; flex-direction: column; }
.insight-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.insight-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.insight-card:hover .insight-img-wrap img { transform: scale(1.03); }
.insight-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.insight-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bronze); margin-bottom: 0.6rem;
}
.insight-title {
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--navy); line-height: 1.35; margin-bottom: 0.75rem;
}
.insight-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; flex: 1; }
.insight-link { font-size: 0.82rem; font-weight: 600; color: var(--bronze); }
.insight-link:hover { text-decoration: underline; }

.insight-stack { display: flex; flex-direction: column; gap: 1rem; }
.insight-card--small { padding: 1.25rem 1.5rem; }
.insight-card--small .insight-title { font-size: 0.95rem; margin-bottom: 0.5rem; }

.insights-note {
  font-size: 0.75rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 1rem;
}

/* ── Final CTA ─────────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 7rem 2rem; text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-title {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  color: #fff; line-height: 1.15; margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cta-body { color: rgba(255,255,255,0.65); margin-bottom: 2rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer { background: #071018; color: rgba(255,255,255,0.65); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 3rem;
  display: grid; grid-template-columns: 280px 1fr; gap: 4rem;
}
.footer-logo {
  margin-bottom: 1rem;
}
.footer-logo img {
  height: 38px; width: auto; display: block;
  object-fit: contain;
  /* Invert to white on dark footer background if logo is dark */
  filter: brightness(0) invert(1);
}
.footer-tagline { font-size: 0.82rem; line-height: 1.7; max-width: 28ch; }

.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem; transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-disclaimer { max-width: 80ch; }

/* ── Reduced Motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2)::after { display: none; }
  .fmp-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-content { margin-left: 0; padding: 0 1.5rem; padding-top: var(--nav-h); }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }

  .search-form { flex-direction: column; }
  .search-field { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 1rem 1.5rem; }
  .search-btn { margin: 1rem 1.5rem; width: calc(100% - 3rem); }

  .property-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step::after { display: none !important; }
  .insights-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}
