/* ==========================================================================
   Bern Robinson, Realtor — Main Stylesheet
   Warm and grounded. Slow and breathing. Senior-friendly. No hustle.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  /* True cream and sage. Cool, calm, no rose undertones. */
  --bone: #f2f0e8;
  --bone-deep: #e8e5d9;
  --cream: #f8f6ee;
  --ink: #2a2d2a;
  --ink-soft: #4a4f48;
  --ink-muted: #7a7e74;
  --sage: #8fa090;
  --sage-deep: #5f7265;
  --sage-whisper: #c2cec4;
  --warmth: #7a8a7d;
  --rule: rgba(42, 45, 42, 0.08);

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, system-ui, sans-serif;

  --max-w: 1160px;
  --max-w-narrow: 680px;
  --max-w-reading: 580px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 18px;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.625rem, 2.75vw, 2.25rem);
  font-weight: 500;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 600;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-body);
  color: var(--sage-deep);
}

p {
  margin-bottom: 1.25rem;
  max-width: 60ch;
}

a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--sage-whisper);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
  color: var(--warmth);
  text-decoration-color: var(--warmth);
}

/* Eyebrow — gentle, no accent colors */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.container-narrow { max-width: var(--max-w-narrow); }
.container-reading { max-width: var(--max-w-reading); }

/* ==========================================================================
   HEADER
   ========================================================================== */
header.site-header {
  padding: 1.75rem 0;
  background: var(--bone);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}

.brand small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-top: 4px;
}

.brand:hover { color: var(--sage-deep); }

nav.primary {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav.primary a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

nav.primary a:hover { color: var(--sage-deep); }

nav.primary a.phone {
  color: var(--sage-deep);
  font-weight: 500;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 900px) {
  nav.primary { display: none; }
  nav.primary.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bone);
    padding: 1.5rem 1.75rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--rule);
  }
  .mobile-toggle { display: block; }
}

/* ==========================================================================
   HERO — minimal, breathing
   ========================================================================== */
.hero {
  padding: 5rem 0 6rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.75rem;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 400;
}

.hero-text .lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 32rem;
  margin-bottom: 2.5rem;
}

.hero-contact {
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.hero-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.hero-phone:hover { color: var(--sage-deep); }

.hero-phone-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.hero-portrait {
  position: relative;
}

.hero-portrait img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin-left: auto;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait img { max-width: 340px; margin: 0 auto; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section {
  padding: 6rem 0;
}

section.cream-bg {
  background: var(--cream);
}

section.deep-bg {
  background: var(--bone-deep);
}

.section-head {
  margin-bottom: 3.5rem;
  max-width: 44rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   THREE DOORS — Buying / Selling / Life Transitions
   ========================================================================== */
.three-doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.door {
  background: var(--cream);
  padding: 2.75rem 2.25rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: 4px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.door:hover {
  transform: translateY(-3px);
  border-color: var(--sage-whisper);
  color: var(--ink);
}

.door h3 {
  margin-bottom: 1rem;
  color: var(--sage-deep);
}

.door p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
}

.door .arrow {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sage-deep);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .three-doors { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.review {
  display: flex;
  flex-direction: column;
}

.review blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.5rem;
  flex: 1;
  font-weight: 400;
}

.review blockquote::before {
  content: '"';
  font-size: 2rem;
  line-height: 0;
  position: relative;
  top: 0.2em;
  margin-right: 0.1em;
  color: var(--sage-whisper);
}

.review blockquote::after { content: '"'; color: var(--sage-whisper); }

.review .attribution {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.review .context {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-deep);
  margin-top: 6px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================================================
   STORY BLOCK (two-col narrative)
   ========================================================================== */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.story-block p {
  font-size: 1.1rem;
  line-height: 1.75;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--sage-deep);
  padding: 1rem 0 1rem 1.5rem;
  border-left: 2px solid var(--sage-whisper);
  margin: 2rem 0;
  max-width: 28ch;
  font-weight: 400;
}

@media (max-width: 900px) {
  .story-block { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================================================
   PHILADELPHIA MAGAZINE — quiet
   ========================================================================== */
.phlmag {
  padding: 4rem 0;
  text-align: center;
}

.phlmag-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.phlmag-years {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 2.2;
  max-width: 36rem;
  margin: 0 auto;
}

/* ==========================================================================
   TRANSITIONS / CHAPTERS
   ========================================================================== */
.chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 2rem;
}

.chapter {
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.chapter h3 {
  color: var(--sage-deep);
  margin-bottom: 0.75rem;
}

.chapter p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* ==========================================================================
   NEIGHBORHOODS
   ========================================================================== */
.neighborhoods-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.neighborhood-card {
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.4s ease, transform 0.4s ease;
  border-radius: 2px;
  display: block;
}

.neighborhood-card:hover {
  background: var(--sage-whisper);
  transform: translateY(-2px);
  color: var(--ink);
}

.neighborhood-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.nbh-meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   CLOSING — the "when you're ready" block
   ========================================================================== */
.closing {
  padding: 6rem 0;
  background: var(--bone-deep);
  text-align: center;
}

.closing h2 {
  margin: 0 auto 1.25rem;
  max-width: 22ch;
}

.closing h2 em {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 400;
}

.closing p {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.65;
}

.closing-phone {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.closing-phone:hover { color: var(--sage-deep); }

.closing-email {
  display: block;
  color: var(--ink-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
  text-decoration: none;
  font-family: var(--font-body);
}

.closing-email:hover { color: var(--sage-deep); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background: var(--bone);
  color: var(--ink-soft);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--rule);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.footer-brand p {
  color: var(--ink-muted);
  max-width: 30ch;
  font-size: 0.95rem;
}

.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.65rem; }

.footer-col a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col a:hover { color: var(--sage-deep); }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ARTICLE/INNER PAGES
   ========================================================================== */
.page-header {
  padding: 5rem 0 3rem;
}

.page-header h1 {
  max-width: 22ch;
  margin-bottom: 1.25rem;
}

.page-header .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 44rem;
  line-height: 1.65;
}

.article-body {
  padding: 2rem 0 6rem;
}

.article-body h2 {
  margin: 3rem 0 1rem;
  max-width: 26ch;
}

.article-body h3 {
  margin: 2.5rem 0 0.75rem;
  color: var(--sage-deep);
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--ink-soft);
}

.article-body ul, .article-body ol {
  margin: 1rem 0 1.75rem 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.article-body li { margin-bottom: 0.5rem; }

.article-body strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-block {
  background: var(--cream);
  padding: 2.5rem;
  max-width: 540px;
  border-radius: 2px;
}

.form-block label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.form-block input,
.form-block textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  border-radius: 2px;
  transition: border-color 0.3s ease;
}

.form-block input:focus,
.form-block textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.form-block textarea {
  min-height: 130px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: 1px solid var(--sage-deep);
  background: var(--sage-deep);
  color: var(--bone);
  cursor: pointer;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.btn-soft {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}

.btn-soft:hover {
  background: var(--sage-deep);
  color: var(--bone);
}

/* ==========================================================================
   UTILITIES + ANIMATIONS
   ========================================================================== */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }

/* Slow, deliberate fades */
@keyframes gentleRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: gentleRise 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.fade-in-delay-1 { opacity: 0; animation: gentleRise 1.2s 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }
.fade-in-delay-2 { opacity: 0; animation: gentleRise 1.2s 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }
.fade-in-delay-3 { opacity: 0; animation: gentleRise 1.2s 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }
.fade-in-delay-4 { opacity: 0; animation: gentleRise 1.2s 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-delay-1, .fade-in-delay-2, .fade-in-delay-3, .fade-in-delay-4 {
    animation: none;
    opacity: 1;
  }
  html { scroll-behavior: auto; }
}
