/*
Theme Name: North Shore Funding Theme
Author: Custom
Description: Custom theme for North Shore Funding Partners, LLC, a private real estate lender (hard money, bridge, construction, and distressed-property financing) serving the greater NY area. Clean, professional-finance styling — deliberately distinct from a real-estate-brokerage look. The site name shown to visitors comes from WordPress's own Settings -> General -> Site Title, not this file, so the same theme works unchanged across brand domains.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Unlicensed, private use only
Text Domain: north-shore-funding
*/

:root {
  --ink: #14202B;
  --ink-soft: #24313D;
  --blue: #0274BE;
  --blue-dark: #045A94;
  --bg: #F7F9FB;
  --card: #FFFFFF;
  --line: #E1E7EC;
  --text: #333333;
  --muted: #6B7680;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 32, 43, 0.06), 0 6px 20px rgba(20, 32, 43, 0.06);
  --display: "Source Serif 4", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

.nsf-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.nsf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.nsf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nsf-brand img { height: 56px; width: auto; display: block; }
.nsf-brand-text {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.nsf-brand-text em { font-style: normal; color: var(--blue); }
.nsf-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nsf-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
}
.nsf-nav a:hover, .nsf-nav a.nsf-nav-current { background: var(--bg); color: var(--blue); }
.nsf-topbar-phone {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nsf-phone-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nsf-phone-link:hover { color: var(--blue); }
.nsf-btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* ---------- Hero ---------- */
/* Restrained, editorial — not a billboard. Modest height, left-aligned,
   no gradient theatrics or accent-colored flourish words; reads closer to
   an institutional capital firm than a consumer ad. */
.nsf-hero {
  padding: 46px 24px 38px;
  background: var(--ink);
  color: #fff;
}
.nsf-hero-inner { max-width: 680px; }
.nsf-hero-eyebrow {
  display: block;
  font: 600 0.72rem var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8FB9D6;
  margin: 0 0 12px;
}
.nsf-hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 14px;
  color: #fff;
}
.nsf-hero p { font-size: 1.02rem; line-height: 1.65; color: #C2CFD8; max-width: 56ch; margin: 0; }
.nsf-hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.nsf-btn {
  display: inline-block;
  font: 600 0.88rem var(--body);
  padding: 11px 22px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.nsf-btn-primary { background: var(--blue); color: #fff; }
.nsf-btn-primary:hover { background: var(--blue-dark); }
.nsf-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.nsf-btn-ghost:hover { border-color: #fff; }

/* ---------- Trust strip ---------- */
/* A single quiet line of fact, not a row of badges. */
.nsf-trust-strip {
  background: var(--ink-soft);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 13px 24px;
}
.nsf-trust-line {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  color: #9FB2BC;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ---------- Loan program / content cards ---------- */
.nsf-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; }
.nsf-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: 24px;
}
.nsf-card h3 { font-family: var(--display); font-weight: 600; color: var(--ink); margin: 0 0 8px; font-size: 1.08rem; }
.nsf-card p { margin: 0 0 10px; color: var(--muted); font-size: 0.93rem; }
.nsf-card a { color: var(--blue); font-weight: 600; font-size: 0.87rem; text-decoration: none; }
.nsf-card a:hover { text-decoration: underline; }

/* ---------- "Why North Shore" editorial section ---------- */
.nsf-why-blocks { max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column; gap: 44px; }
.nsf-why-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.nsf-why-reverse .nsf-why-photo { order: 2; }
.nsf-why-photo {
  display: block;
  height: 260px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--line);
  box-shadow: var(--shadow);
}
.nsf-why-copy h3 { font-family: var(--display); color: var(--ink); font-size: 1.5rem; margin: 0 0 12px; }
.nsf-why-copy p { color: var(--text); margin: 0; }
@media (max-width: 720px) {
  .nsf-why-block, .nsf-why-reverse .nsf-why-photo { grid-template-columns: 1fr; order: initial; }
  .nsf-why-block { grid-template-columns: 1fr; }
  .nsf-why-photo { height: 200px; }
  .nsf-hero { padding: 48px 20px 38px; }
}

/* ---------- Content sections ---------- */
.nsf-section { padding: 52px 24px; }
.nsf-section h2 {
  font-family: var(--display);
  font-size: 1.95rem;
  color: var(--ink);
  text-align: center;
  margin: 0 0 8px;
}
.nsf-section-sub { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 32px; }

/* ---------- Generic page content ---------- */
.nsf-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.nsf-page h1 { font-family: var(--display); color: var(--ink); font-size: 2.1rem; margin: 0 0 20px; }
.nsf-page h2 { font-family: var(--display); color: var(--ink); font-size: 1.4rem; margin: 32px 0 10px; }
.nsf-page p { margin: 0 0 16px; }
.nsf-page ul, .nsf-page ol { margin: 0 0 16px; padding-left: 22px; }
.nsf-page-sub { color: var(--muted); }

/* ---------- Quick App form ---------- */
.nsf-quickapp {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.nsf-qa-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .nsf-qa-row { grid-template-columns: 1fr; } }
.nsf-quickapp label { display: grid; gap: 5px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.nsf-quickapp label span { color: var(--blue); margin-left: 2px; }
.nsf-quickapp input, .nsf-quickapp select, .nsf-quickapp textarea {
  font: inherit; font-weight: 400; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; width: 100%;
  background: #fff; color: var(--text);
}
.nsf-quickapp input:focus, .nsf-quickapp select:focus, .nsf-quickapp textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent;
}
.nsf-qa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.nsf-qa-msg { margin: 0; font-size: 0.88rem; min-height: 1.2em; }
.nsf-qa-msg.error { color: #B3261E; }
.nsf-qa-msg.ok { color: #2E7D5B; font-weight: 600; }
#nsf-qa-submit[disabled] { opacity: 0.6; cursor: default; }

/* ---------- Footer ---------- */
.nsf-footer {
  background: var(--ink);
  color: #8FA6B2;
  padding: 40px 24px 24px;
  font-size: 0.85rem;
}
.nsf-footer-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.nsf-footer h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }
.nsf-footer a { color: #8FA6B2; text-decoration: none; display: block; margin-bottom: 6px; }
.nsf-footer a:hover { color: #fff; }
.nsf-footer-legal { max-width: 1080px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; color: #6E8895; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nsf-topbar { flex-direction: column; align-items: flex-start; }
  .nsf-topbar-phone { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
