/* ═══════════════════════════════════════════════════════════════
   Prime Consilium — Homepage redesign (May 2026)
   Scoped to the homepage only. Does not affect other pages.
   Palette: navy / gold / cream
   ═══════════════════════════════════════════════════════════════ */

.hp {
  --navy-950: #121d2b;
  --navy-900: #172437;
  --navy-850: #1c2c42;
  --navy-800: #21334b;
  --navy-700: #2d415d;
  --gold-600: #c8a64a;
  --gold-500: #d2b24f;
  --gold-400: #e0c46b;
  --cream-100: #f7f3ec;
  --cream-200: #eee7dc;
  --stone-300: #d9d2c8;
  --stone-500: #9f978d;
  --ink-900: #192030;
  --ink-700: #3b414d;
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.23);
  --shadow-card: 0 18px 50px rgba(12, 22, 34, 0.13);
  --hp-radius-lg: 24px;
  --hp-radius-md: 16px;
  --hp-radius-sm: 10px;
  --hp-max: 1280px;
  --hp-serif: 'Fraunces', Georgia, "Times New Roman", serif;

  background: var(--cream-100);
  color: var(--ink-900);
  line-height: 1.5;
}
.hp * { box-sizing: border-box; }

.hp-inner { max-width: var(--hp-max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .hp-inner { padding: 0 20px; }
}

.hp .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
}
.hp .eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hp-hero {
  background:
    linear-gradient(135deg, rgba(18, 29, 43, 0.94) 0%, rgba(28, 44, 66, 0.88) 60%, rgba(45, 65, 93, 0.82) 100%),
    radial-gradient(circle at 80% 0%, rgba(232, 168, 102, 0.12), transparent 50%);
  color: #fff;
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hp-hero-copy {
  max-width: 760px;
  margin-bottom: 40px;
}

.hp-hero h1 {
  font-family: var(--hp-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 16px 0 20px;
  letter-spacing: -0.01em;
}
.hp-hero h1 em {
  font-style: italic;
  color: var(--gold-400);
}
.hp-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin: 0 0 32px;
}
.hp-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hp-btn-primary, .hp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--hp-radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.hp-btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}
.hp-btn-primary:hover {
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-1px);
}
.hp-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.hp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}
.hp-hero-proof {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 56px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hp-proof-item strong {
  display: block;
  font-family: var(--hp-serif);
  font-size: 32px;
  color: var(--gold-400);
  font-weight: 400;
  line-height: 1;
}
.hp-proof-item span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}
@media (max-width: 540px) {
  .hp-hero-proof { grid-template-columns: repeat(2, auto); gap: 24px; }
}

/* ── SEARCH BAR (horizontal, full-width below headline) ─────── */
.hp-search {
  background: #fff;
  border-radius: var(--hp-radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  color: var(--ink-900);
  margin-top: 32px;
}
.hp-search-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
@media (max-width: 980px) {
  .hp-search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hp-search-btn { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .hp-search-grid { grid-template-columns: 1fr; }
}
.hp-field { display: flex; flex-direction: column; }
.hp-field label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin-bottom: 4px;
  font-weight: 600;
}
.hp-field input, .hp-field select {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--cream-200);
  background: #fff;
  border-radius: var(--hp-radius-sm);
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.18s ease;
  /* Add a small icon prefix space — use background SVG if you want icons */
}
.hp-field input:focus, .hp-field select:focus {
  border-color: var(--gold-500);
}
.hp-search-btn {
  background: var(--gold-500);
  color: var(--navy-950);
  border: 0;
  padding: 12px 28px;
  border-radius: var(--hp-radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
  white-space: nowrap;
  height: 42px;
}
.hp-search-btn:hover { background: var(--gold-400); }
.hp-quick-links {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}
.hp-quick-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}
.hp-quick-links a:hover { color: #fff; border-bottom-color: #fff; }

/* ── STATS BAND ─────────────────────────────────────────────── */
.hp-stats-band {
  background: #fff;
  padding: 56px 0;
  border-bottom: 1px solid var(--cream-200);
}
.hp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 720px) {
  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.hp-stat-box strong {
  display: block;
  font-family: var(--hp-serif);
  font-size: 44px;
  font-weight: 400;
  color: var(--navy-900);
  line-height: 1;
}
.hp-stat-box span {
  display: block;
  font-size: 12px;
  color: var(--stone-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.hp-section { padding: 88px 0; }
.hp-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 820px) {
  .hp-section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}
.hp-section-head h2 {
  font-family: var(--hp-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  margin: 12px 0 0;
  color: var(--navy-900);
}
.hp-section-head p {
  color: var(--ink-700);
  margin: 0;
  max-width: 520px;
}

/* ── PROPERTY CARDS ─────────────────────────────────────────── */
.hp-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) {
  .hp-prop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .hp-prop-grid { grid-template-columns: 1fr; }
}
.hp .prop-hidden { display: none; }
.hp-show-more {
  text-align: center;
  margin-top: 48px;
}
.hp-show-more button {
  background: transparent;
  border: 1px solid var(--navy-900);
  color: var(--navy-900);
  padding: 14px 32px;
  border-radius: var(--hp-radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hp-show-more button:hover {
  background: var(--navy-900);
  color: #fff;
}

/* Empty state — shown when search filter yields zero results. */
.hp-empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px dashed var(--stone-300);
  border-radius: var(--hp-radius-md);
}
.hp-empty p {
  font-size: 17px;
  color: var(--stone-500);
  margin-bottom: 24px;
}
.hp-btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--navy-900);
  color: var(--navy-900);
  padding: 12px 28px;
  border-radius: var(--hp-radius-sm);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hp-btn-ghost:hover {
  background: var(--navy-900);
  color: #fff;
}

/* Override the existing .pcard look with the redesign aesthetic.
   The card markup stays — we just restyle.
   Note: .pcard is rendered as an <a> element so the entire card
   navigates on click (no JS required, works with right-click /
   middle-click / "open in new tab" / keyboard nav). The CSS resets
   default anchor styles (color, underline) to keep the card aesthetic. */
.hp .pcard {
  background: #fff;
  border-radius: var(--hp-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  /* Anchor resets — so <a class="pcard"> looks like a card, not a link.
     Anchors are inline by default; we need block + 100% width so the
     card fills its grid cell properly. Without width:100%, an <a>
     shrinks to its content width which makes the photo placeholder
     appear cut off at the right edge. */
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  /* Click-area robustness: stacking context so any descendant z-index
     stays scoped to this card, and isolation prevents weird overlay
     bleed from sibling cards. */
  position: relative;
  isolation: isolate;
}
/* Every visual child of the card is non-interactive — clicks fall
   through to the parent <a>. Only .pfav (the heart) is allowed to
   intercept clicks; it does so via inline JS that calls
   preventDefault(). This rule is defensive: even if a future change
   sets pointer-events on a child, the card stays clickable. */
.hp .pcard > *,
.hp .pcard .pc-photo,
.hp .pcard .pc-photo-ph,
.hp .pcard .pc-photo-ph *,
.hp .pcard .pbadge,
.hp .pcard .pc-body > *:not(button):not(a) {
  pointer-events: none;
}
.hp .pcard .pfav {
  pointer-events: auto;  /* heart button stays clickable */
}
.hp .pcard:hover,
.hp .pcard:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(12, 22, 34, 0.18);
  outline: none;
}
/* Visual cue that the photo area is part of the link — subtle tint
   shift on hover so visitors recognise the entire card (not just the
   text body) is clickable. */
.hp .pcard:hover .pc-photo {
  filter: brightness(0.97);
}
.hp .pc-photo {
  background: linear-gradient(135deg, var(--cream-200), var(--stone-300));
  aspect-ratio: 4 / 3;
  position: relative;
  display: block;
  width: 100%;
}
.hp .pc-photo-ph {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--stone-500);
  gap: 8px;
}
.hp .pc-photo-ph svg { width: 36px; height: 36px; opacity: 0.5; }
.hp .pc-photo-ph span { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.hp .pc-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hp .pbadge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,0.94);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.05);
}
.hp .pfav {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: 0;
  background: rgba(255,255,255,0.94);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease;
}
.hp .pfav:hover { transform: scale(1.1); }
.hp .pfav svg { width: 18px; height: 18px; fill: none; stroke: var(--navy-900); stroke-width: 2; }
.hp .pfav.on svg { fill: var(--gold-500); stroke: var(--gold-500); }
.hp .pc-body { padding: 22px 24px 26px; }
.hp .pc-loc {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 8px;
}
.hp .pc-title {
  font-family: var(--hp-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy-900);
  margin-bottom: 12px;
  line-height: 1.2;
}
.hp .pc-price {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 14px;
}
.hp .pc-price-onreq {
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-500);
  font-style: italic;
}
.hp .pc-specs {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-700);
  border-top: 1px solid var(--cream-200);
  padding-top: 14px;
  margin-bottom: 14px;
}
.hp .pc-specs span strong { display: block; font-weight: 600; color: var(--navy-900); margin-bottom: 2px; }
.hp .pc-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
  text-decoration: none;
}
.hp .pc-cta:hover { color: var(--gold-500); }

/* ── LOCATIONS ──────────────────────────────────────────────── */
.hp-locations {
  background: var(--cream-200);
}
.hp-loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) {
  .hp-loc-grid { grid-template-columns: 1fr; }
}
.hp-loc-card {
  position: relative;
  border-radius: var(--hp-radius-lg);
  padding: 56px 40px;
  color: #fff;
  overflow: hidden;
  text-decoration: none;
  display: block;
  min-height: 320px;
  background-size: cover;
  background-position: center;
}
.hp-loc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(18,29,43,0.85), rgba(28,44,66,0.65) 70%);
  z-index: 0;
}
.hp-loc-card > * { position: relative; z-index: 1; }
.hp-loc-card h3 {
  font-family: var(--hp-serif);
  font-weight: 400;
  font-size: 32px;
  margin: 8px 0 16px;
}
.hp-loc-card p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
  max-width: 420px;
}
.hp-loc-card .hp-loc-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  text-decoration: none;
}
.hp-loc-card .hp-loc-link:hover { color: var(--gold-500); }

/* ── PROCESS ────────────────────────────────────────────────── */
.hp-process { background: #fff; }
.hp-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .hp-process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .hp-process-grid { grid-template-columns: 1fr; }
}
.hp-process-step {
  background: var(--cream-100);
  border-radius: var(--hp-radius-md);
  padding: 32px 28px;
  position: relative;
}
.hp-process-step strong {
  display: inline-block;
  font-family: var(--hp-serif);
  font-size: 36px;
  color: var(--gold-500);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 14px;
}
.hp-process-step h3 {
  font-family: var(--hp-serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy-900);
  margin: 0 0 10px;
}
.hp-process-step p {
  font-size: 14px;
  color: var(--ink-700);
  margin: 0;
  line-height: 1.5;
}

/* ── CTA SECTION ────────────────────────────────────────────── */
.hp-cta-section {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  padding: 88px 0;
}
.hp-cta-box {
  text-align: center;
  color: #fff;
  max-width: 960px;
  margin: 0 auto;
}
.hp-cta-box h2 {
  font-family: var(--hp-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 16px 0 20px;
}
.hp-cta-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  max-width: 100%;
  margin: 0 auto 32px;
}
.hp-cta-box .hp-btn-primary { font-size: 14px; }