/* =========================================================
   NORTHSTONE GROUP — Homepage Light Nav + Hero + Search
   Scoped block: only affects .ph-* classes used on index.html
   Does not touch the rest of the (dark-theme) site.
   ========================================================= */

.ph-wrap { position: relative; background: #0B0B0C; cursor: auto; }
.ph-wrap * { cursor: auto; }

/* ---------- TOP NAV (dark, matches site-wide theme) ---------- */
.ph-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 56px);
  background: rgba(11,11,12,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ph-brand { display: flex; align-items: center; gap: 12px; }
.ph-brand img { height: 34px; width: auto; display: block; }
.ph-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ph-brand-name {
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  letter-spacing: 0.04em; color: #F5F3EF;
}
.ph-brand-tag {
  font-family: var(--font-body); font-weight: 400; font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold, #C9A96A);
}

.ph-menu { display: flex; align-items: center; gap: 34px; list-style: none; }
.ph-menu > li { position: relative; }
.ph-menu a, .ph-menu .ph-parent {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  color: rgba(245,243,239,0.82); letter-spacing: 0.01em; padding: 8px 2px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: color .25s ease;
}
.ph-menu a:hover, .ph-menu .ph-parent:hover { color: var(--gold-light, #E4C78A); }
.ph-menu .ph-active { color: #fff; position: relative; }
.ph-menu .ph-active::after {
  content: ''; position: absolute; left: 2px; right: 2px; bottom: -6px;
  height: 2px; background: var(--gold, #C9A96A); border-radius: 2px;
}
.ph-caret {
  width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; transition: transform .2s ease;
}
.ph-has-sub:hover .ph-caret { transform: rotate(225deg); margin-top: 3px; }

.ph-sub {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #1C1F22; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  padding: 10px; min-width: 200px; list-style: none;
  opacity: 0; visibility: hidden; transition: all .22s ease; z-index: 60;
}
.ph-has-sub:hover .ph-sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ph-sub li a {
  display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px;
  color: rgba(245,243,239,0.85); white-space: nowrap;
}
.ph-sub li a:hover { background: rgba(201,169,106,0.12); color: var(--gold-light, #E4C78A); }

/* The hamburger itself is the shared, site-wide .nav-toggle — a
   floating circular button fixed to the bottom-right of the
   viewport (see css/site.css). It stays visible on every page and
   every screen size, so it needs no page-specific show/hide here. */
@media (max-width: 980px) {
  .ph-menu { display: none; }
}

/* ---------- MOBILE TOPBAR REFINEMENTS ---------- */
@media (max-width: 560px) {
  .ph-topbar { padding: 14px 16px; }
  .ph-brand img { height: 26px; }
  .ph-brand-name { font-size: 13.5px; letter-spacing: 0.03em; }
  .ph-brand-tag { font-size: 8.5px; letter-spacing: 0.26em; }
}

/* ---------- HERO ---------- */
.ph-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: visible; padding: 140px clamp(20px, 4vw, 56px) 0;
}
.ph-hero-media {
  position: absolute; inset: 18px 18px 90px 18px; z-index: 0;
  border-radius: 0 0 140px 140px; overflow: hidden;
}
.ph-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,22,0.42) 0%, rgba(10,14,22,0.28) 42%, rgba(10,14,22,0.85) 100%);
}
.ph-hero-media::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 220px; z-index: 2;
  background: linear-gradient(180deg, transparent 0%, #FBF6EF 92%);
  pointer-events: none;
}

.ph-hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }

.ph-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px); color: #fff; font-family: var(--font-body);
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 10px 22px; border-radius: 999px; margin-bottom: 30px;
}

.ph-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 6.4vw, 84px); line-height: 1.06; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.ph-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.6vw, 32px); color: #E4A93B; margin-bottom: 26px;
}
.ph-sub {
  font-family: var(--font-body); font-weight: 300; font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255,255,255,0.86); line-height: 1.7; max-width: 62ch; margin: 0 auto 46px;
}

/* ---------- SEARCH CARD ---------- */
.ph-search {
  position: relative; z-index: 3; width: 100%; max-width: 1040px; margin: 0 auto;
  background: #fff; border-radius: 18px; box-shadow: 0 30px 70px rgba(10,10,12,0.35);
  padding: 14px; display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 12px;
  transform: translateY(46px);
}
.ph-field {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #E7E4DD; border-radius: 12px; padding: 14px 16px;
  background: #fff;
}
.ph-field svg { flex-shrink: 0; color: #B08D57; width: 18px; height: 18px; }
.ph-field select, .ph-field input {
  border: none; outline: none; width: 100%; background: transparent;
  font-family: var(--font-body); font-size: 14.5px; color: #1A1A1A; appearance: none;
}
.ph-field select option { color: #1A1A1A; }
.ph-search-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #F0B429, #D98E1F); color: #1A1206;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border-radius: 12px; padding: 14px 30px; white-space: nowrap;
  transition: filter .2s ease, transform .2s ease;
}
.ph-search-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ph-search-btn svg { width: 17px; height: 17px; }

@media (max-width: 900px) {
  .ph-search { grid-template-columns: 1fr 1fr; transform: translateY(30px); }
  .ph-search-btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ph-search { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .ph-field { padding: 12px 14px; }
}

@media (max-width: 560px) {
  .ph-hero { padding: 96px 16px 0; }
  .ph-hero-media { inset: 12px 12px 70px 12px; border-radius: 0 0 60px 60px; }
  .ph-badge { padding: 8px 16px; font-size: 11px; margin-bottom: 20px; }
  .ph-sub { margin-bottom: 34px; }
}

/* ---------- ICON FEATURE ROW ---------- */
.ph-features {
  position: relative; z-index: 2; background: #FBF6EF;
  padding: 10px clamp(20px, 4vw, 56px) 80px;
}
.ph-features-grid {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; text-align: center;
}
.ph-feature-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%;
  background: #FAF4E8; border: 1px solid rgba(176,141,87,0.25);
  display: flex; align-items: center; justify-content: center;
}
.ph-feature-icon svg { width: 26px; height: 26px; color: #B08D57; }
.ph-feature-title {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #1A1A1A; margin-bottom: 8px;
}
.ph-feature-desc { font-family: var(--font-body); font-size: 13.5px; color: #6E6E72; line-height: 1.6; max-width: 34ch; margin: 0 auto; }
@media (max-width: 760px) {
  .ph-features-grid { grid-template-columns: 1fr; gap: 40px; }
}

