/* PropertyNet.SG – Shared Nav + Footer Styles
   Upload to: public_html/js/site-common.css
   NOTE: All selectors use #pn-nav / #pn-footer prefix so they ALWAYS
   win over any page-level inline CSS (specificity id + class > class).
*/

/* ---- NAV ---- */
#pn-nav .site-nav {
  background: #1a1a1a;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#pn-nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 52px;
  position: relative;
  z-index: 101;
}

#pn-nav .nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#pn-nav .nav-logo img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(1.4);
}

#pn-nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  align-items: center;
}

#pn-nav .nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  z-index: 101;
  cursor: pointer;
}

#pn-nav .nav-links a:hover,
#pn-nav .nav-links a.active {
  color: #c9a44c;
}

#pn-nav .mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---- CHANNEL BAR ---- */
#pn-nav .channel-bar {
  background: #252525;
  text-align: center;
  padding: 8px 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

#pn-nav .channel-btn {
  display: inline-block;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  letter-spacing: 0.3px;
}

#pn-nav .channel-btn.tg { background: #0088cc; }
#pn-nav .channel-btn.wa { background: #25D366; }
#pn-nav .channel-btn:hover { opacity: 0.9; }

/* ---- FOOTER ---- */
#pn-footer .site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
  margin-top: 40px;
  border-top: none;
}

#pn-footer .footer-inner {
  display: block; /* guards against legacy page-level .footer-inner grid rules */
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

#pn-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(5, auto);
  justify-content: space-between;
  column-gap: 32px;
  row-gap: 32px;
  margin-bottom: 40px;
}

#pn-footer .footer-col {
  display: block;
  min-width: 0;
}

#pn-footer .footer-col h4 {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 14px 0;
  font-weight: 600;
}

#pn-footer .footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  padding: 5px 0;
  margin: 0;
  transition: color 0.2s;
}

#pn-footer .footer-col a:hover { color: #c9a44c; }

#pn-footer .footer-col a.active {
  color: #c9a44c;
  font-weight: 600;
}

#pn-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: left;
}

#pn-footer .footer-bottom > div {
  text-align: left;
}

#pn-footer .footer-brand {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: white;
  text-align: left;
  text-decoration: none;
  margin: 0 0 6px 0;
  transition: color 0.2s;
}
#pn-footer .footer-brand:hover {
  color: #c9a44c;
}

#pn-footer .footer-legal {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  text-align: left;
}

#pn-footer .footer-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

#pn-footer .footer-legal a:hover { color: #c9a44c; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  #pn-footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (max-width: 768px) {
  #pn-nav .mobile-menu-btn { display: block; }
  #pn-nav .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: #1a1a1a;
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  #pn-nav .nav-links.open { display: flex; }
  #pn-nav .channel-bar { flex-direction: column; gap: 8px; }
  #pn-nav .channel-bar span { display: block; }
  #pn-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; }
}

@media (max-width: 480px) {
  #pn-footer .footer-grid { grid-template-columns: 1fr; row-gap: 28px; }
}

/* ---- MID-ARTICLE CTA ---- */
.pn-mid-cta {
  margin: 32px 0;
  padding: 0;
}
.pn-mid-cta-inner {
  background: #faf8f3;
  border: 1px solid #e8e2d8;
  border-left: 3px solid #b8962e;
  border-radius: 4px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pn-mid-cta-text strong {
  display: block;
  font-size: 15px;
  color: #1a1812;
  margin-bottom: 3px;
}
.pn-mid-cta-text span {
  font-size: 13px;
  color: #6b6560;
  line-height: 1.5;
}
.pn-mid-cta-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.pn-mid-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: all .2s;
}
.pn-mid-wa {
  background: #1a1812;
  color: #fff;
}
.pn-mid-wa:hover {
  background: #2c2820;
}
.pn-mid-calc {
  background: #fff;
  color: #b8962e;
  border: 1px solid #b8962e;
}
.pn-mid-calc:hover {
  background: #b8962e;
  color: #fff;
}

@media (max-width: 640px) {
  .pn-mid-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }
  .pn-mid-cta-btns {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .pn-mid-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ---- CALCULATOR CTA ---- */
#pn-calc-cta {
  margin-top: 16px;
}
.pn-calc-cta-inner {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 4px;
  padding: 24px;
  text-align: center;
}
.pn-calc-cta-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.pn-calc-cta-text strong {
  display: block;
  font-size: 15px;
  color: #1a1812;
  margin-bottom: 5px;
}
.pn-calc-cta-text span {
  display: block;
  font-size: 13px;
  color: #6b6560;
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto 16px;
}
.pn-calc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1812;
  color: #fff;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .2s;
}
.pn-calc-cta-btn:hover {
  background: #2c2820;
}
.pn-calc-cta-btn svg {
  flex-shrink: 0;
  color: #25D366;
}

/* ---- GOOGLE PREFERRED SOURCE ---- */
.pn-google-trust {
  margin: 32px 0;
  padding: 0;
}
.pn-google-trust-auto {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}
.pn-google-trust-inner {
  background: #faf8f3;
  border: 1px solid #e8e2d8;
  border-left: 3px solid #b8962e;
  border-radius: 4px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pn-google-trust-text strong {
  display: block;
  font-size: 15px;
  color: #1a1812;
  margin-bottom: 3px;
}
.pn-google-trust-text span {
  display: block;
  font-size: 13px;
  color: #6b6560;
  line-height: 1.5;
}
.pn-google-trust-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1812;
  color: #fff;
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.pn-google-trust-btn:hover {
  background: #2c2820;
}
.pn-google-trust-btn svg {
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

@media (max-width: 640px) {
  .pn-google-trust-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 14px;
  }
  .pn-google-trust-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ---- HIDE RECAPTCHA BADGE ---- */
.grecaptcha-badge { visibility: hidden !important; }

/* ---- FLOATING WHATSAPP BUTTON ---- */
#pn-wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
#pn-wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
}

@media (max-width: 480px) {
  #pn-wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  #pn-wa-float svg { width: 24px; height: 24px; }
}

/* ---- TESTIMONIAL STRIP (social proof on non-testimonial pages) ---- */
.pn-social-proof {
  background: #faf8f3;
  border-top: 1px solid #e8e2d8;
  border-bottom: 1px solid #e8e2d8;
  padding: 48px 40px;
}
.pn-social-proof-inner {
  max-width: 960px;
  margin: 0 auto;
}
.pn-social-proof-heading {
  text-align: center;
  margin-bottom: 32px;
}
.pn-social-proof-heading h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #1a1812;
  margin-bottom: 6px;
}
.pn-social-proof-heading p {
  font-size: 13px;
  color: #6b6560;
}
.pn-social-proof-heading p a {
  color: #b8962e;
  text-decoration: none;
  font-weight: 600;
}
.pn-social-proof-heading p a:hover {
  text-decoration: underline;
}
.pn-social-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pn-sp-card {
  background: #fff;
  border: 1px solid #e8e2d8;
  border-radius: 3px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.pn-sp-stars {
  color: #b8962e;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.pn-sp-quote {
  font-size: 14px;
  color: #2c2820;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin-bottom: 16px;
}
.pn-sp-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e8e2d8;
}
.pn-sp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f2ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: #b8962e;
  flex-shrink: 0;
  border: 1px solid #e8e2d8;
}
.pn-sp-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1812;
}
.pn-sp-context {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  color: #6b6560;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .pn-social-proof { padding: 36px 20px; }
  .pn-social-proof-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   EMAIL SIGNUP  (shared by article-end band + exit-intent popup)
   ===================================================================== */
.pn-signup-form { max-width: 480px; margin: 0 auto; }
.pn-signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pn-signup-input {
  width: 100%;
  background: #faf8f3;
  border: 1px solid rgba(184,150,46,.3);
  border-radius: 2px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #1a1812;
  outline: none;
  transition: border-color .2s;
}
.pn-signup-input:focus { border-color: #b8962e; }
.pn-signup-input::placeholder { color: #9a9490; }
.pn-signup-name { margin-bottom: 10px; }
.pn-signup-row { display: flex; gap: 10px; }
.pn-signup-row .pn-signup-email { flex: 1; }
.pn-signup-btn {
  background: #b8962e;
  color: #111109;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.pn-signup-btn:hover { background: #d4af5a; }
.pn-signup-btn:disabled { opacity: .6; cursor: not-allowed; }
.pn-signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: #8a8278;
  line-height: 1.5;
  text-align: left;
}
.pn-signup-consent input { margin-top: 2px; flex-shrink: 0; accent-color: #b8962e; width: 15px; height: 15px; cursor: pointer; }
.pn-signup-consent a { color: #d4af5a; text-decoration: underline; }
.pn-signup-msg { margin-top: 14px; font-size: 14px; line-height: 1.5; display: none; }
.pn-signup-msg.show { display: block; }
.pn-signup-msg.ok { color: #4caf74; }
.pn-signup-msg.err { color: #e08a8a; }
@media (max-width: 480px) {
  .pn-signup-row { flex-direction: column; }
  .pn-signup-btn { width: 100%; }
}

/* ----- Article-end signup band ----- */
.pn-article-signup {
  margin: 40px 0;
  background: #1a1912;
  border: 1px solid rgba(184,150,46,.35);
  border-radius: 4px;
  padding: 34px 30px;
  text-align: center;
}
.pn-as-eyebrow { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #b8962e; margin-bottom: 10px; }
.pn-as-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; line-height: 1.15; color: #faf8f3; margin-bottom: 8px; }
.pn-as-sub { font-size: 15px; color: #a59e92; line-height: 1.6; margin: 0 auto 22px; max-width: 460px; }

/* ----- Exit-intent popup ----- */
.pn-exit-overlay {
  position: fixed; inset: 0;
  background: rgba(10,9,6,.72);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s;
}
.pn-exit-overlay.open { opacity: 1; visibility: visible; }
.pn-exit-card {
  position: relative;
  background: #1a1912;
  border: 1px solid rgba(184,150,46,.4);
  border-radius: 6px;
  padding: 42px 34px 34px;
  max-width: 480px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0,0,0,.5);
  transform: translateY(12px);
  transition: transform .25s;
}
.pn-exit-overlay.open .pn-exit-card { transform: translateY(0); }
.pn-exit-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #8a8278; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.pn-exit-close:hover { color: #d4af5a; }
.pn-exit-eyebrow { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #b8962e; margin-bottom: 10px; }
.pn-exit-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.14; color: #faf8f3; margin-bottom: 10px; }
.pn-exit-sub { font-size: 15px; color: #a59e92; line-height: 1.6; margin: 0 auto 22px; max-width: 400px; }

/* ----- Calculator "email my results" soft capture ----- */
.pn-calc-email { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e8e2d8; }
.pn-calc-email-label { font-size: 12.5px; color: #6b6560; line-height: 1.5; margin: 0 auto 12px; max-width: 380px; }
.pn-calc-email-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 420px; margin: 0 auto; }
.pn-calc-email-input { flex: 1; min-width: 180px; background: #faf8f3; border: 1px solid #e8e2d8; border-radius: 3px; padding: 11px 13px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: #1a1812; outline: none; }
.pn-calc-email-input:focus { border-color: #b8962e; }
.pn-calc-email-input::placeholder { color: #9a9490; }
.pn-calc-email-btn { background: #b8962e; color: #111109; border: none; border-radius: 3px; padding: 11px 18px; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .2s; }
.pn-calc-email-btn:hover { background: #a8842a; }
.pn-calc-email-btn:disabled { opacity: .6; cursor: not-allowed; }
.pn-calc-email-consent { font-size: 11px; color: #9a9490; line-height: 1.5; margin: 10px auto 0; max-width: 420px; }
.pn-calc-email-consent a { color: #b8962e; text-decoration: underline; }
.pn-calc-email-msg { font-size: 13px; margin-top: 9px; display: none; }
.pn-calc-email-msg.show { display: block; }
.pn-calc-email-msg.ok { color: #2d7a4f; }
.pn-calc-email-msg.err { color: #a63232; }
.pn-calc-email-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .pn-calc-email-input { min-width: 100%; } .pn-calc-email-btn { width: 100%; } }
