/* McMullen Properties — shared design system
 * Used by /about, /services, /buy, /sell, and all future pages.
 * Existing pages (index, contact, portfolio) keep their inline CSS for now
 * but the variables and shell components below are byte-identical to theirs. */

:root {
  --navy: #1a1f2e;
  --navy-deep: #0f1218;
  --bluegray: #91a1ba;
  --bluegray-dim: #6d7a91;
  --charcoal: #2c2c2c;
  --text-soft: #4a4a4a;
  --text-faint: #8a8a8a;
  --cream: #f5efe4;
  --cream-warm: #ebe2d2;
  --paper: #faf6ef;
  --line: #d9d2c4;
  --line-dark: #2f3650;
  --error: #b35454;
  --success: #4a8266;
  --fh: 'Playfair Display', Georgia, serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--charcoal); font-family: var(--fb); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--navy); color: var(--cream); }

/* ===== TOPBAR ===== */
.topbar { background: var(--navy-deep); color: var(--cream); font-size: 12px; letter-spacing: .04em; }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: 8px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.topbar a { opacity: .85; transition: opacity .15s; }
.topbar a:hover { opacity: 1; }
.topbar-right { display: flex; gap: 18px; }
.topbar-right a { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* ===== NAV ===== */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(8px); }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 20px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav-left { display: flex; gap: 28px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.nav-left a { color: var(--charcoal); transition: color .15s, border-color .15s; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav-left a:hover, .nav-left a.active { color: var(--navy); border-bottom-color: var(--bluegray); }
.nav-logo img { height: 42px; width: auto; }
.nav-right { display: flex; justify-content: flex-end; gap: 16px; align-items: center; }
.nav-cta { background: var(--navy); color: var(--paper); padding: 10px 22px; border-radius: 2px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; transition: background .15s; }
.nav-cta:hover { background: var(--navy-deep); }
.nav-phone { font-size: 13px; color: var(--charcoal); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ===== COMMON ELEMENTS ===== */
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--bluegray-dim); margin-bottom: 24px; font-weight: 500; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; transition: all .18s; border-radius: 2px; cursor: pointer; }
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: white; transform: translateY(-1px); }
.btn-inverse { background: transparent; color: var(--cream); border: 1px solid rgba(245,239,228,.4); }
.btn-inverse:hover { border-color: var(--cream); background: rgba(245,239,228,.08); }
.btn .arrow { display: inline-block; transition: transform .18s; }
.btn:hover .arrow { transform: translateX(4px); }

.tag { padding: 4px 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: inline-block; }
.tag-sold { background: var(--navy); color: var(--cream); }
.tag-active { background: var(--cream); color: var(--navy); }
.tag-pending { background: #b8924a; color: white; }
.tag-off { background: var(--bluegray-dim); color: var(--cream); }
.tag-new { background: #4a8266; color: white; }

.section-inner { max-width: 1400px; margin: 0 auto; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; }
.section-head h2 { font-family: var(--fh); font-size: clamp(36px, 4.5vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; color: var(--navy); max-width: 18ch; }
.section-head h2 em { font-style: italic; font-weight: 500; color: var(--bluegray-dim); }
.section-head .head-sub { font-size: 17px; line-height: 1.6; color: var(--text-soft); max-width: 48ch; }

/* ===== PAGE HERO (used by simple pages like /about, /buy, etc) ===== */
.page-hero { padding: 100px 32px 60px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: 1400px; margin: 0 auto; }
.page-hero h1 { font-family: var(--fh); font-weight: 600; font-size: clamp(56px, 8vw, 120px); line-height: .98; letter-spacing: -.025em; color: var(--navy); margin-bottom: 28px; max-width: 14ch; }
.page-hero h1 em { font-style: italic; font-weight: 500; color: var(--bluegray-dim); }
.page-hero .lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 60ch; color: var(--text-soft); line-height: 1.55; }
.page-hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; }
.page-hero-image { aspect-ratio: 4/5; overflow: hidden; border-radius: 2px; background: var(--cream); }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ===== FOOTER ===== */
footer { background: var(--navy-deep); color: var(--bluegray); border-top: 1px solid var(--line-dark); padding: 80px 32px 40px; font-size: 13px; }
.foot-inner { max-width: 1400px; margin: 0 auto; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--line-dark); margin-bottom: 32px; }
.foot-brand img { height: 36px; margin-bottom: 20px; }
.foot-brand p { color: var(--bluegray-dim); line-height: 1.6; max-width: 36ch; }
.foot-col h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); margin-bottom: 18px; font-weight: 600; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--bluegray); transition: color .15s; }
.foot-col a:hover { color: var(--cream); }
.foot-bot { display: flex; justify-content: space-between; gap: 40px; font-size: 11px; color: var(--bluegray-dim); line-height: 1.7; align-items: flex-start; }
.foot-bot .legal { max-width: 70ch; }
.foot-bot .legal strong { color: var(--bluegray); font-weight: 500; }
.foot-bot .dre { white-space: nowrap; font-family: var(--fm); }

/* ===== COMMON CTA SECTION ===== */
.cta-section { background: var(--navy-deep); color: var(--cream); padding: 120px 32px; }
.cta-section-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.cta-section h2 { font-family: var(--fh); font-size: clamp(40px, 5vw, 72px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 24px; }
.cta-section h2 em { font-style: italic; font-weight: 500; color: var(--bluegray); }
.cta-section p { font-size: 18px; line-height: 1.55; color: rgba(245,239,228,.8); max-width: 56ch; margin: 0 auto 40px; }
.cta-section .ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ===== FORM ELEMENTS (used by inquiry forms) ===== */
.form-msg { font-size: 13px; padding: 12px 14px; border-radius: 3px; margin-top: 10px; line-height: 1.5; }
.form-msg.ok { background: rgba(74,130,102,.12); color: var(--success); border-left: 3px solid var(--success); }
.form-msg.err { background: rgba(179,84,84,.12); color: var(--error); border-left: 3px solid var(--error); }

/* ===== PROSE (rich text content) ===== */
.prose { font-size: 16px; line-height: 1.75; color: var(--text-soft); max-width: 70ch; }
.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose em { font-style: italic; }
.prose a { color: var(--navy); border-bottom: 1px solid var(--bluegray); transition: border-color .15s; }
.prose a:hover { border-bottom-color: var(--navy); }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; }
.prose li { margin-bottom: .4em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--fh); color: var(--navy); margin: 1.4em 0 .6em; line-height: 1.2; }
.prose h2 { font-size: 1.6em; font-weight: 600; }
.prose h3 { font-size: 1.3em; font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--bluegray); padding-left: 20px; margin: 1.5em 0; font-style: italic; color: var(--navy); font-size: 1.05em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .page-hero-split { grid-template-columns: 1fr; gap: 40px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .topbar-inner { padding: 8px 20px; flex-wrap: wrap; gap: 8px; }
  .topbar-right { gap: 14px; }
  .nav-inner { padding: 16px 20px; grid-template-columns: auto 1fr; }
  .nav-left { display: none; }
  .page-hero { padding: 64px 24px 48px; }
  .cta-section { padding: 80px 24px; }
  footer { padding: 60px 24px 32px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: span 2; }
  .foot-bot { flex-direction: column; gap: 16px; }
}

/* ===== MOTION ===== */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(20px); transition: opacity .9s ease-out, transform .9s ease-out; }
  .fade-up.in { opacity: 1; transform: translateY(0); }
}
