/* ============================================================
   John Andrew Homes — johnandrewhomes.com
   Brand tokens: Preferred SHORE (slate / sand)
   ============================================================ */

:root {
  --ps-black:       #000000;
  --ps-slate:       #364447;
  --ps-slate-deep:  #2a3538;
  --ps-slate-ink:   #1c2426;
  --ps-gray:        #919290;
  --ps-sand:        #C1B497;
  --ps-sand-light:  #d9d0bc;
  --ps-sand-deep:   #a8996f;
  --ps-cream:       #f7f5f0;
  --ps-line:        #e4e0d7;
  --ps-white:       #FFFFFF;
  --shadow-sm:      0 2px 10px rgba(28,36,38,.06);
  --shadow-md:      0 14px 40px rgba(28,36,38,.10);
  --shadow-lg:      0 26px 70px rgba(28,36,38,.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ps-slate);
  background: var(--ps-white);
  line-height: 1.68;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4, .caps {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
}
.display {
  font-family: 'Abril Fatface', Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.1;
}

.wrap        { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px;  margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ps-sand);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--ps-gray); }

.lead { font-size: 20px; line-height: 1.7; }
.muted { color: var(--ps-gray); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 12.5px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 17px 32px; border: 1.5px solid transparent; border-radius: 2px;
  cursor: pointer; transition: all .22s ease; text-align: center;
}
.btn-sand  { background: var(--ps-sand); color: var(--ps-slate-ink); border-color: var(--ps-sand); }
.btn-sand:hover  { background: var(--ps-sand-light); border-color: var(--ps-sand-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ps-white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--ps-white); transform: translateY(-2px); }
.btn-slate { background: var(--ps-slate); color: var(--ps-white); border-color: var(--ps-slate); }
.btn-slate:hover { background: var(--ps-slate-ink); border-color: var(--ps-slate-ink); transform: translateY(-2px); }
.btn-outline-slate { background: transparent; color: var(--ps-slate); border-color: var(--ps-slate); }
.btn-outline-slate:hover { background: var(--ps-slate); color: var(--ps-white); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(42,53,56,.97);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(193,180,151,.22);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; flex-direction: column; line-height: 1; color: var(--ps-white); }
.logo .logo-name  { font-family: 'Abril Fatface', Georgia, serif; font-size: 23px; letter-spacing: .01em; }
.logo .logo-sub   { font-family: 'Montserrat', sans-serif; font-size: 9.5px; font-weight: 600;
                    letter-spacing: .38em; color: var(--ps-sand); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 11.5px;
  letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.82);
  padding: 6px 0; border-bottom: 1.5px solid transparent; transition: all .2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--ps-white); border-bottom-color: var(--ps-sand); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 12.5px;
  letter-spacing: .1em; color: var(--ps-sand); white-space: nowrap;
}
.header-cta .btn { padding: 12px 22px; font-size: 11px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ps-white); font-size: 26px; cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--ps-white); overflow: hidden; isolation: isolate;
        min-height: min(88vh, 700px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(28,36,38,.95) 0%, rgba(28,36,38,.9) 40%, rgba(28,36,38,.55) 72%, rgba(28,36,38,.4) 100%),
    linear-gradient(to bottom, rgba(28,36,38,.5) 0%, rgba(28,36,38,.15) 38%, rgba(28,36,38,.7) 100%);
}

/* John, standing in the scene */
.hero-figure {
  position: absolute; right: max(1vw, calc(50% - 600px)); bottom: 0; z-index: 1;
  height: 88%; width: 40%; max-width: 480px;
  display: flex; align-items: flex-end; justify-content: center; pointer-events: none;
}
.hero-figure picture { display: block; width: 100%; height: 100%; }
.hero-figure img {
  height: 100%; width: 100%; object-fit: contain; object-position: bottom center;
  filter: drop-shadow(-18px 12px 34px rgba(12,18,20,.55));
}
/* soft ground so he doesn't look pasted on */
.hero-figure::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  width: 74%; height: 42px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(12,18,20,.5) 0%, rgba(12,18,20,0) 70%);
}

.hero-inner {
  position: relative; z-index: 2; width: 100%;
  max-width: 1160px; margin: 0 auto; padding: 84px 24px 78px;
}
.hero-copy { max-width: 56%; min-width: 320px; }
.hero h1 { font-size: clamp(31px, 4.4vw, 56px); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--ps-sand); }
.hero p.lead { color: rgba(255,255,255,.87); margin-bottom: 34px; }

.hero-cred {
  margin-top: 40px; padding-top: 22px; max-width: 430px;
  border-top: 1px solid rgba(193,180,151,.45);
}
.hero-cred strong {
  display: block; font-family: 'Montserrat', sans-serif; font-size: 12.5px;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ps-sand);
}
.hero-cred span {
  display: block; margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.75);
}

/* trust strip */
.trust-strip { background: var(--ps-slate-ink); color: var(--ps-white); border-top: 1px solid rgba(193,180,151,.2); }
.trust-grid {
  max-width: 1160px; margin: 0 auto; padding: 30px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center;
}
.trust-grid div span {
  display: block; font-family: 'Abril Fatface', Georgia, serif;
  font-size: 32px; color: var(--ps-sand); line-height: 1.1;
}
.trust-grid div small {
  font-family: 'Montserrat', sans-serif; font-size: 10.5px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.72);
  display: block; margin-top: 8px;
}

/* ---------- Page banner (subpages) ---------- */
.page-banner { position: relative; color: var(--ps-white); }
.page-banner .hero-media::after {
  background: linear-gradient(100deg, rgba(28,36,38,.92) 0%, rgba(28,36,38,.72) 60%, rgba(28,36,38,.5) 100%);
}
.page-banner-inner { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 78px 24px; }
.page-banner h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 18px; max-width: 800px; }
.page-banner p { color: rgba(255,255,255,.86); font-size: 19px; max-width: 640px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 62px 0; }
.sec-cream { background: var(--ps-cream); }
.sec-slate { background: var(--ps-slate); color: var(--ps-white); }
.sec-slate .eyebrow { color: var(--ps-sand); }
.sec-slate h2 { color: var(--ps-white); }

h2.sec-title { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 20px; }
h2.sec-title.display { font-size: clamp(32px, 3.8vw, 46px); }
.sec-intro { max-width: 660px; margin-bottom: 46px; font-size: 19px; }
.sec-head-center { text-align: center; }
.sec-head-center .sec-intro { margin-left: auto; margin-right: auto; }

.rule { width: 54px; height: 3px; background: var(--ps-sand); margin-bottom: 26px; }
.sec-head-center .rule { margin-left: auto; margin-right: auto; }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.story-photo { position: relative; }
.story-photo img { max-width: 430px; }
.story-photo img { border-radius: 3px; box-shadow: var(--shadow-md); }
.story-photo .caption {
  font-family: 'Montserrat', sans-serif; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ps-gray); margin-top: 14px;
}
.story-body p + p { margin-top: 20px; }
.story-body p.kicker {
  font-family: 'Abril Fatface', Georgia, serif; font-size: 24px; line-height: 1.45; color: var(--ps-slate-ink);
}
.sig { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ps-line); }
.sig .sig-name { font-family: 'Abril Fatface', Georgia, serif; font-size: 26px; color: var(--ps-slate-ink); }
.sig .sig-title { font-family: 'Montserrat', sans-serif; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ps-gray); margin-top: 6px; }

/* ---------- Path cards ---------- */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.path-card {
  background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: 3px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.path-card .ph { aspect-ratio: 4/3; overflow: hidden; }
.path-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.path-card:hover .ph img { transform: scale(1.05); }
.path-card .body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.path-card h3 { font-size: 19px; margin-bottom: 12px; }
.path-card p { font-size: 16.5px; color: var(--ps-slate); flex: 1; }
.path-link {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 11.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ps-slate-ink);
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid var(--ps-sand); padding-bottom: 4px; align-self: flex-start;
}
.path-card:hover .path-link { gap: 14px; }

/* ---------- Value / step lists ---------- */
.val-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.val-grid.two { grid-template-columns: repeat(2, 1fr); }
.val h3 { font-size: 16px; margin-bottom: 12px; }
.val .num {
  font-family: 'Abril Fatface', Georgia, serif; font-size: 34px; color: var(--ps-sand);
  line-height: 1; display: block; margin-bottom: 14px;
}
.val p { font-size: 16.5px; }
.sec-slate .val p { color: rgba(255,255,255,.82); }

.steps { display: grid; gap: 2px; background: var(--ps-line); border: 1px solid var(--ps-line); border-radius: 3px; overflow: hidden; }
.step { background: var(--ps-white); padding: 30px 32px; display: grid; grid-template-columns: 74px 1fr; gap: 22px; align-items: start; }
.step .n { font-family: 'Abril Fatface', Georgia, serif; font-size: 40px; color: var(--ps-sand-light); line-height: .9; }
.step h3 { font-size: 16px; margin-bottom: 9px; }
.step p { font-size: 16.5px; }

/* ---------- Checklist ---------- */
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; font-size: 17px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px;
  background: var(--ps-sand); border-radius: 50%;
}
.sec-slate .checks li { color: rgba(255,255,255,.88); }

/* ---------- Gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gal figure { position: relative; border-radius: 3px; overflow: hidden; box-shadow: var(--shadow-sm); }
.gal img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .5s ease; }
.gal figure:hover img { transform: scale(1.05); }
.gal figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(28,36,38,.88));
  color: var(--ps-white); font-family: 'Montserrat', sans-serif; font-size: 11.5px;
  font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- Neighborhood cards ---------- */
.hood-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.hood {
  border: 1px solid var(--ps-line); border-radius: 3px; overflow: hidden; background: var(--ps-white);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.hood:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.hood .ph { aspect-ratio: 16/10; overflow: hidden; }
.hood .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hood:hover .ph img { transform: scale(1.04); }
.hood .body { padding: 30px 30px 32px; flex: 1; display: flex; flex-direction: column; }
.hood h3 { font-size: 19px; margin-bottom: 6px; }
.hood .where {
  font-family: 'Montserrat', sans-serif; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ps-gray); margin-bottom: 16px;
}
.hood p { font-size: 16.5px; }
.hood .where { flex: none; }
.hood .body > p:not(.where) { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--ps-line);
  border-radius: 2px; color: var(--ps-slate); background: var(--ps-cream);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ps-line); }
.faq details { border-bottom: 1px solid var(--ps-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 40px 24px 0; position: relative;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 15.5px; text-transform: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--ps-sand); font-weight: 400;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .a { padding: 0 40px 26px 0; font-size: 16.5px; color: var(--ps-slate); }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { color: rgba(255,255,255,.85); }
.contact-lines { margin-top: 34px; display: grid; gap: 18px; }
.cline { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: baseline; }
.cline dt {
  font-family: 'Montserrat', sans-serif; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ps-sand);
}
.cline dd { color: var(--ps-white); font-size: 17px; }

form.lead-form {
  background: var(--ps-white); border-radius: 3px; padding: 38px 36px 34px;
  box-shadow: var(--shadow-lg); color: var(--ps-slate);
}
form.lead-form h3 { font-size: 17px; margin-bottom: 6px; }
form.lead-form .form-note { font-size: 15px; color: var(--ps-gray); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: 'Montserrat', sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ps-slate); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--ps-line); border-radius: 2px;
  font-family: 'Source Sans 3', Arial, sans-serif; font-size: 16.5px; color: var(--ps-slate);
  background: var(--ps-white); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ps-sand); box-shadow: 0 0 0 3px rgba(193,180,151,.25);
}
.field textarea { min-height: 108px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.lead-form .btn { width: 100%; margin-top: 6px; }
.form-fine { font-size: 13.5px; color: var(--ps-gray); margin-top: 16px; line-height: 1.55; }
.form-status { margin-top: 14px; font-size: 15.5px; display: none; }
.form-status.ok   { display: block; color: #2f6b45; }
.form-status.err  { display: block; color: #a33; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ps-sand); color: var(--ps-slate-ink); text-align: center; padding: 68px 0; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 16px; }
.cta-band p { max-width: 620px; margin: 0 auto 30px; font-size: 18.5px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { color: var(--ps-slate-ink); border-color: rgba(28,36,38,.45); }
.cta-band .btn-ghost:hover { background: rgba(28,36,38,.09); border-color: var(--ps-slate-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ps-slate-ink); color: rgba(255,255,255,.66); padding: 62px 0 34px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-top .logo { margin-bottom: 16px; }
.footer-col h4 { font-size: 11px; letter-spacing: .22em; color: var(--ps-sand); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a:hover { color: var(--ps-white); }
.legal { padding-top: 30px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.5); }
.legal p + p { margin-top: 12px; }
.eho {
  font-family: 'Montserrat', sans-serif; font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: 20px;
  display: flex; align-items: center; gap: 10px;
}
.eho svg { flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { min-height: 0; display: block; }
  .hero-inner { padding: 72px 24px 300px; }
  .hero-copy { max-width: 100%; min-width: 0; }
  .hero-figure {
    height: 300px; width: 220px; max-width: 55%;
    right: 16px; bottom: 0; opacity: 1;
  }
  .hero-figure img { object-position: bottom right; filter: drop-shadow(-10px 8px 22px rgba(12,18,20,.5)); }
  .hero-figure::after { width: 90%; height: 24px; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .path-grid, .val-grid, .val-grid.two, .gal { grid-template-columns: repeat(2, 1fr); }
  .hood-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--ps-slate-deep); padding: 18px 24px 24px;
    border-bottom: 1px solid rgba(193,180,151,.25);
  }
  .nav.open a { width: 100%; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .header-cta .btn { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 62px 0; }
  .path-grid, .val-grid, .val-grid.two, .gal { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .step { grid-template-columns: 1fr; gap: 10px; }
  .header-phone { display: none; }
  .hero-inner { padding: 60px 20px 240px; }
  .hero-figure { height: 240px; width: 165px; max-width: 55%; right: 8px; }
  form.lead-form { padding: 30px 24px 28px; }
}
