/* =================================================================
   [Brokerage Name] — Stylesheet
   Bold luxury residential theme.
   To rebrand, change the colors in :root below. Everything updates.
   ================================================================= */

:root {
  /* Brand palette: forest green + warm gold (matches the North Bench logo) */
  --bg:        #0d120f;   /* near-black with a green undertone */
  --bg-alt:    #121a15;   /* slightly lighter sections */
  --surface:   #18211b;   /* cards */
  --text:      #ecebe3;   /* main light text */
  --muted:     #9ba59b;   /* secondary text (soft sage-grey) */
  --line:      #26322b;   /* borders */
  --gold:      #c89b5c;   /* logo gold — primary accent */
  --gold-soft: #dab983;
  --gold-deep: #a87f44;
  --green:     #1f3d2f;   /* logo forest green */
  --green-deep:#15281f;
  --green-light:#2f5a44;
  --white:     #ffffff;

  /* Display font: geometric sans that echoes the logo wordmark */
  --serif: 'Outfit', system-ui, -apple-system, sans-serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --t: 0.35s cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 16px;
}
.eyebrow--gold { color: var(--gold); }
.section__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; color: var(--white);
  letter-spacing: -.01em;
}
.section__lead { color: var(--muted); max-width: 560px; margin-top: 18px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .02em; padding: 15px 30px; border-radius: var(--radius);
  cursor: pointer; border: 1px solid transparent; transition: all var(--t);
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #1a1407; }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(197,165,114,.28); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--ghost-dark { border-color: rgba(255,255,255,.25); }
.btn--dark { background: var(--white); color: #14161a; }
.btn--dark:hover { background: var(--gold); color: #14161a; transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--small { padding: 11px 20px; font-size: .82rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all var(--t);
  background: transparent;
}
.nav.scrolled {
  background: rgba(14,15,18,.92); backdrop-filter: blur(10px);
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); }
.brand__logo { width: 44px; height: 38px; color: #ecebe3; flex: none; }
.brand__img { height: 42px; width: auto; flex: none; }
/* North Bench logo — gold on transparent, sits directly on the dark theme */
.brand__logo-img { height: 82px; width: auto; display: block; flex: none; }
.footer__logo { height: 66px; }
/* Header lockup: big NB badge in the corner + larger wordmark to its right */
.brand__mark-img { height: 80px; width: auto; display: block; flex: none; }
.brand__wordmark-img { height: 42px; width: auto; display: block; flex: none; }
/* White "badge" so the logo (designed on white) reads on the dark header */
.brand__chip { display: inline-grid; place-items: center; background: #fff; border-radius: 9px; padding: 5px 9px; box-shadow: 0 4px 16px rgba(0,0,0,.28); flex: none; }
.brand__chip img { height: 32px; width: auto; display: block; }
.brand__chip--lg { border-radius: 12px; padding: 14px 22px; }
.brand__chip--lg img { height: 62px; }
.brand__chip--nav { padding: 7px 20px; }
.brand__chip--nav img { height: 80px; }
.brand__mark { /* legacy text monogram fallback, no longer used */
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--serif); font-weight: 700; font-size: .9rem; border-radius: 3px;
}
.brand__name {
  display: flex; flex-direction: column; line-height: 1.05;
  font-family: var(--serif); font-weight: 700; text-transform: uppercase;
  letter-spacing: .13em; font-size: .92rem; color: #fff;
}
.brand__name small {
  font-size: .56rem; letter-spacing: .3em; color: var(--gold); font-weight: 600; margin-top: 5px;
}
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { font-size: .92rem; color: var(--text); font-weight: 500; transition: color var(--t); }
.nav__links a:hover { color: var(--gold); }
.nav__cta { padding: 10px 20px; border: 1px solid var(--gold); color: var(--gold) !important; border-radius: var(--radius); }
.nav__cta:hover { background: var(--gold); color: #14161a !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); transition: all var(--t); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url('hero-home.jpg') center/cover no-repeat;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,11,14,.92) 0%, rgba(10,11,14,.7) 45%, rgba(10,11,14,.35) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 720px; padding-top: 90px; }
.hero__title {
  font-family: var(--serif); font-weight: 600; color: var(--white);
  font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 26px;
}
.hero__title em { color: var(--gold); font-style: normal; }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #d9d6cf; max-width: 540px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 1.4rem; z-index: 2; animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,10px);} }

/* ---------- Home hook hero (centered, big logo crest) ---------- */
.hero--home .hero__overlay {
  background: linear-gradient(180deg, rgba(9,13,11,.74) 0%, rgba(9,13,11,.55) 42%, rgba(9,13,11,.82) 100%);
}
.hero__content--center { max-width: 880px; margin: 0 auto; text-align: center; padding-top: 110px; }
.hero__content--center .hero__sub { margin-left: auto; margin-right: auto; }
.hero__content--center .hero__actions { justify-content: center; }
.hero__crest { display: inline-grid; place-items: center; margin-bottom: 26px; }
.hero__crest img { height: 192px; width: auto; display: block; filter: drop-shadow(0 12px 34px rgba(0,0,0,.55)); }
.hero__trust {
  display: flex; gap: 14px 28px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px; color: #cfd6cd; font-size: .82rem; letter-spacing: .04em;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust span::before { content: '\2713'; color: var(--gold); font-weight: 700; }

/* ---------- "Why North Bench" promise / hook band ---------- */
.promise { padding: clamp(80px,10vw,130px) 0; background: var(--bg); text-align: center; }
.promise__inner { max-width: 920px; margin: 0 auto; }
.promise__headline { font-family: var(--serif); font-weight: 700; color: var(--white); font-size: clamp(1.9rem,4vw,3rem); line-height: 1.12; margin-bottom: 22px; }
.promise__lead { color: var(--muted); font-size: 1.12rem; line-height: 1.75; max-width: 730px; margin: 0 auto 52px; }
.promise__pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-bottom: 50px; text-align: left; }
.pillar { padding: 32px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform var(--t), border-color var(--t); }
.pillar:hover { transform: translateY(-6px); border-color: var(--gold-deep); }
.pillar__num { font-family: var(--serif); color: var(--gold); font-size: 1.35rem; font-weight: 700; letter-spacing: .05em; }
.pillar h3 { font-family: var(--serif); color: var(--white); font-size: 1.25rem; margin: 12px 0 10px; font-weight: 600; }
.pillar p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
@media (max-width: 880px) { .promise__pillars { grid-template-columns: 1fr; } .hero__crest img { height: 92px; } }

/* ---------- Stats ---------- */
.stats { background: var(--green); color: var(--text); border-top: 1px solid var(--green-light); border-bottom: 1px solid var(--green-light); }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { text-align: center; padding: 38px 16px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.1); }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(1.8rem,3.2vw,2.6rem); font-weight: 700; color: var(--gold); }
.stat__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #cdd5cc; }

/* ---------- Generic section ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 56px; }

/* ---------- Listings ---------- */
.listings { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-deep); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: #1a1407;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px;
}
.card__tag--soon { background: var(--green-light); color: #fff; }
.card__tag--sold { background: #6b2f2f; color: #fff; }
.card__body { padding: 24px; }
.card__price { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); font-weight: 700; }
.card__addr { font-family: var(--serif); font-size: 1.2rem; color: var(--white); margin: 4px 0 2px; font-weight: 500; }
.card__loc { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.card__specs { display: flex; gap: 18px; list-style: none; color: var(--text); font-size: .85rem; margin-bottom: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.card__specs li { position: relative; }
.card__specs li + li::before { content: ''; position: absolute; left: -10px; top: 50%; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; transform: translateY(-50%); }
.card__tag--pending { background: #b07d2b; color: #fff; }
.card__cta {
  display: block; width: 100%; text-align: center; margin-top: 4px;
  padding: 12px 16px; border: 1px solid var(--gold-deep); color: var(--gold);
  font-family: var(--sans); font-weight: 600; font-size: .88rem; letter-spacing: .02em;
  border-radius: 3px; transition: background var(--t), color var(--t), border-color var(--t);
}
.card__cta:hover { background: var(--gold); color: #1a1407; border-color: var(--gold); }
.card__media-link { display: block; width: 100%; height: 100%; }
.card__addr a { color: inherit; text-decoration: none; transition: color var(--t); }
.card__addr a:hover { color: var(--gold); }
.listings__note { text-align: center; margin-top: 44px; color: var(--muted); }
.listings__note a { color: var(--gold); border-bottom: 1px solid currentColor; }

/* ---------- Valuation ---------- */
.valuation {
  background:
    linear-gradient(rgba(12,13,16,.86), rgba(12,13,16,.92)),
    url('valuation-bg.jpg') center/cover fixed;
  padding: clamp(70px,9vw,120px) 0;
}
.valuation__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.valuation__perks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.valuation__perks li { position: relative; padding-left: 30px; color: var(--text); }
.valuation__perks li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }

/* ---------- Forms ---------- */
.form { background: var(--surface); padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 14px; box-shadow: var(--shadow); }
.form--dark { background: rgba(28,31,38,.6); backdrop-filter: blur(6px); }
.form__title { font-family: var(--serif); font-size: 1.4rem; color: var(--white); margin-bottom: 4px; font-weight: 600; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form textarea {
  width: 100%; background: #0f1115; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text); font-family: var(--sans); font-size: .95rem; transition: border-color var(--t);
}
.form input::placeholder, .form textarea::placeholder { color: #6f6c64; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; }
.form__fineprint { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about__photo { position: relative; }
.about__photo img { border-radius: var(--radius); border: 1px solid var(--line); }
.about__photo::after { content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__creds { list-style: none; margin: 26px 0 30px; display: grid; gap: 12px; }
.about__creds li { padding-left: 26px; position: relative; color: var(--text); }
.about__creds li::before { content: '\2737'; position: absolute; left: 0; color: var(--gold); }
.about__creds strong { color: var(--white); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; transition: transform var(--t), border-color var(--t); }
.service:hover { transform: translateY(-6px); border-color: var(--gold-deep); }
.service__icon { font-size: 2rem; color: var(--gold); margin-bottom: 18px; }
.service h3 { font-family: var(--serif); font-size: 1.35rem; color: var(--white); margin-bottom: 12px; font-weight: 500; }
.service p { color: var(--muted); font-size: .95rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review { background: var(--bg-alt); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 32px; }
.review p { font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: var(--text); margin-bottom: 18px; line-height: 1.5; }
.review footer { color: var(--gold); font-size: .85rem; letter-spacing: .05em; font-weight: 600; }

/* ---------- Google Reviews ---------- */
.greviews__summary {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 28px; max-width: 640px; margin: 0 auto 46px; box-shadow: var(--shadow);
}
.greviews__gicon { width: 40px; height: 40px; flex: none; }
.greviews__text { display: flex; flex-direction: column; line-height: 1.3; }
.greviews__title { font-weight: 600; color: var(--white); font-size: 1rem; }
.greviews__score { display: flex; align-items: center; gap: 9px; }
.greviews__score b { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.greviews__stars { color: #fbbc05; letter-spacing: 2px; font-size: 1.02rem; }
.greviews__summary .btn { margin-left: auto; }
a.greviews__summary { text-decoration: none; cursor: pointer; transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
a.greviews__summary:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.footer__oh { display: inline-block; margin: 6px 0; padding: 9px 15px; border: 1px solid var(--gold-deep); border-radius: 4px; color: var(--gold) !important; font-weight: 600; font-size: .82rem; letter-spacing: .03em; transition: background var(--t), color var(--t); }
.footer__oh:hover { background: var(--gold); color: #1a1407 !important; border-color: var(--gold); }
.greview { border-left-color: var(--line); }
.greview__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.greview__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 1.05rem; flex: none; }
.greview__who { display: flex; flex-direction: column; line-height: 1.35; flex: 1; }
.greview__name { color: var(--white); font-weight: 600; font-size: .95rem; }
.greview__meta { color: var(--muted); font-size: .8rem; }
.greview__meta .greview__stars { font-size: .85rem; letter-spacing: 1px; }
.greview__g { width: 20px; height: 20px; flex: none; }
.greview p { font-family: var(--sans); font-style: normal; font-size: .97rem; color: var(--text); margin-bottom: 0; line-height: 1.6; }
.reviews-cta { text-align: center; margin-top: 42px; }
.reviews-cta-block { max-width: 620px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 38px; box-shadow: var(--shadow); }
.reviews-cta-block p { color: var(--muted); margin-bottom: 26px; font-size: 1.05rem; line-height: 1.65; }
/* Reviews masonry — packs review cards of any length cleanly */
.reviews-masonry { column-count: 3; column-gap: 24px; margin-top: 36px; }
.reviews-masonry .greview { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 24px; display: inline-block; width: 100%; }
.reviews-masonry .greview p + p { margin-top: 12px; }
@media (max-width: 960px) { .reviews-masonry { column-count: 2; } }
@media (max-width: 620px) { .reviews-masonry { column-count: 1; } }

/* ---------- Footer compliance / trust marks ---------- */
.footer__compliance { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer__compliance .eho { width: 30px; height: 30px; color: var(--muted); flex: none; }
.footer__compliance .realtor-mark { font-family: var(--serif); font-weight: 700; letter-spacing: .06em; color: var(--muted); font-size: .82rem; border: 1px solid var(--line); padding: 4px 9px; border-radius: 3px; }
.footer__legal a { color: var(--gold); }
.footer__legal a:hover { color: var(--gold-soft); }

/* ---------- Service area map ---------- */
.service-area .about__grid { align-items: center; }
.service-area__map-wrap { display: flex; justify-content: center; }
.utah-map { width: 100%; max-width: 340px; height: auto; display: block; filter: drop-shadow(0 22px 44px rgba(0,0,0,.45)); }
.utah-map__label { fill: var(--gold); font-family: var(--sans); font-size: 12px; font-weight: 700; }
.utah-map__sub { fill: #cdd5cc; font-family: var(--sans); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; }
.map-halo { transform-box: fill-box; transform-origin: center; animation: mapPulse 2.6s ease-in-out infinite; }
@keyframes mapPulse { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: .08; transform: scale(1.7); } }
.area-list { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 28px; }
.area-list li { font-size: .85rem; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: 6px 15px; }
@media (max-width: 680px) {
  .greviews__summary { justify-content: center; text-align: center; }
  .greviews__summary .btn { margin-left: 0; width: 100%; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(70px,9vw,120px) 0; background: var(--bg-alt); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__list { list-style: none; margin: 30px 0; display: grid; gap: 22px; }
.contact__label { display: block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact__big { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); }
.contact__list a:hover { color: var(--gold); }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; align-items: start; }
.footer__brand .brand__mark,
.footer__brand .brand__logo { margin-bottom: 14px; }
.footer__brand p { color: var(--text); font-family: var(--serif); font-size: 1.1rem; }
.footer__small { color: var(--muted); font-size: .82rem; font-family: var(--sans) !important; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--muted); font-size: .92rem; }
.footer__links a:hover { color: var(--gold); }
.footer__legal { color: var(--muted); font-size: .85rem; }
.footer__legal p { margin-bottom: 6px; }

/* ---------- Social icons ---------- */
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  transition: all var(--t);
}
.social a:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a[href="#"] { opacity: .45; cursor: default; }
.social a[href="#"]:hover { transform: none; border-color: var(--line); color: var(--muted); }

/* ---------- Footer link columns ---------- */
.footer__col h4 {
  color: #fff; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 600; font-family: var(--sans);
}
.footer__col a { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 11px; }
.footer__col a:hover { color: var(--gold); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: transform var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--gold-deep); }
.post-card__date { color: var(--gold); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.post-card__title { font-family: var(--serif); color: var(--white); font-size: 1.28rem; margin: 12px 0 12px; font-weight: 600; line-height: 1.3; }
.post-card__excerpt { color: var(--muted); font-size: .95rem; line-height: 1.65; margin-bottom: 22px; flex: 1; }
.post-card__more { color: var(--gold); font-weight: 600; font-size: .9rem; }
.post-card__more:hover { border-bottom: 1px solid currentColor; }
.blog-empty { text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Single post page */
.post { max-width: 760px; margin: 0 auto; }
.post__meta { color: var(--gold); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.post__body { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }
.post__body h2 { font-family: var(--serif); color: var(--white); font-size: 1.6rem; margin: 38px 0 14px; font-weight: 600; }
.post__body p { margin-bottom: 20px; }
.post__body ul { margin: 0 0 22px 20px; }
.post__body li { margin-bottom: 10px; }
.post__body strong { color: var(--text); }

/* ---------- Guides ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.guide-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.guide-card__icon { font-size: 2rem; color: var(--gold); margin-bottom: 14px; }
.guide-card h3 { font-family: var(--serif); color: var(--white); font-size: 1.6rem; margin-bottom: 12px; font-weight: 600; }
.guide-card > p { color: var(--muted); margin-bottom: 20px; }
.guide-card ul { list-style: none; margin: 0 0 26px; display: grid; gap: 10px; }
.guide-card ul li { position: relative; padding-left: 26px; color: var(--text); font-size: .94rem; }
.guide-card ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.guide-card .form { background: transparent; border: 0; box-shadow: none; padding: 0; }

/* ---------- Floating call button ---------- */
.fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 90; display: none;
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #14161a;
  font-size: 1.5rem; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
/* Tablet & down: compress the header so the logo + all tabs still fit on one row */
@media (max-width: 1024px) {
  .brand__mark-img { height: 58px; }
  .brand__wordmark-img { height: 32px; }
  .nav__links { gap: 15px; }
  .nav__links a { font-size: .85rem; }
  .nav__cta { padding: 9px 14px; }
}

@media (max-width: 960px) {
  .listings, .services, .reviews, .post-grid { grid-template-columns: repeat(2,1fr); }
  .about__grid, .valuation__inner, .contact__grid, .calc__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .about__photo { max-width: 420px; }
  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.1); }
}

/* Narrow tablets: drop the inline call button (the floating call button takes over) so the tabs keep their room */
@media (max-width: 820px) {
  .nav__cta { display: none; }
  .fab { display: grid; }
}

/* Phones / small tablets only: collapse the tabs into the hamburger menu */
@media (max-width: 768px) {
  .brand__mark-img { height: 70px; }
  .brand__wordmark-img { height: 40px; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 40px; background: var(--bg-alt); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform var(--t);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: flex; z-index: 110; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 680px) {
  .listings, .services, .reviews, .post-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .guide-card { padding: 30px 24px; }
  .fab { display: grid; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .calc__grid { grid-template-columns: 1fr; }
  .listings-hero { padding-top: 130px; }
  .brand__logo-img { height: 60px; }
  .brand__mark-img { height: 54px; }
  .brand__wordmark-img { height: 30px; }
  .hero__crest img { height: 135px; }
}

/* =================================================================
   MORTGAGE CALCULATOR
   ================================================================= */
.calc { padding: clamp(70px,9vw,120px) 0; background: var(--bg-alt); }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
/* Stack to one column on tablet/mobile. Placed after the base rule so it wins (the
   media-query rules earlier in the file are overridden by this base rule's source order). */
@media (max-width: 960px) { .calc__grid { grid-template-columns: 1fr; gap: 40px; } }
.calc__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.calc__field { margin-bottom: 20px; }
.calc__field label { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.calc__input-wrap { position: relative; }
.calc__input-wrap .unit { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .95rem; }
.calc__input-wrap .unit--l { left: 16px; }
.calc__input-wrap .unit--r { right: 16px; }
.calc input[type="number"] {
  width: 100%; background: #0f1512; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text); font-family: var(--sans); font-size: 1.05rem; transition: border-color var(--t);
}
.calc input.pad-l { padding-left: 30px; }
.calc input:focus { outline: none; border-color: var(--gold); }
.calc input[type="range"] { width: 100%; accent-color: var(--gold); margin-top: 6px; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc__result {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  border: 1px solid var(--green-light); border-radius: var(--radius); padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow);
}
.calc__result-label { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #cdd5cc; }
.calc__payment { font-family: var(--serif); font-size: clamp(2.6rem,6vw,3.6rem); color: var(--gold); font-weight: 700; line-height: 1.1; margin: 8px 0 4px; }
.calc__payment small { font-size: 1.1rem; color: #cdd5cc; font-family: var(--sans); }
.calc__breakdown { margin-top: 28px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; display: grid; gap: 12px; }
.calc__line { display: flex; justify-content: space-between; align-items: baseline; font-size: .95rem; color: #dfe4dd; }
.calc__line strong { color: #fff; font-weight: 600; }
.calc__line--total { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; margin-top: 4px; font-size: 1.05rem; }
.calc__disclaimer { font-size: .78rem; color: var(--muted); margin-top: 22px; line-height: 1.5; }
.calc__cta { margin-top: 24px; }

/* Net sheet request (lead capture with consent) */
.netsheet-request { max-width: 600px; margin: 54px auto 0; text-align: center; }
.netsheet-request h3 { font-family: var(--serif); color: var(--white); font-size: clamp(1.4rem,3vw,1.9rem); margin: 10px 0 10px; }
.netsheet-request > p { color: var(--muted); margin-bottom: 26px; }
.netsheet-request .form { text-align: left; }
.form__consent { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); font-size: .82rem; line-height: 1.5; cursor: pointer; }
.form__consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex: none; }

/* =================================================================
   LISTINGS PAGE
   ================================================================= */
.listings-hero {
  position: relative; padding: 160px 0 70px; text-align: center;
  background: linear-gradient(rgba(13,18,15,.84), rgba(13,18,15,.92)),
    url('listings-bg.jpg') center/cover no-repeat;
}
.listings-hero h1 { font-family: var(--serif); color: #fff; font-size: clamp(2.2rem,5vw,3.4rem); margin-bottom: 14px; }
.listings-hero p { color: #d9ddd6; max-width: 560px; margin: 0 auto; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 44px; }
.filterbar button {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 10px 22px; border-radius: 30px; font-family: var(--sans); font-size: .88rem; font-weight: 500;
  cursor: pointer; transition: all var(--t);
}
.filterbar button:hover { border-color: var(--gold); color: var(--gold); }
.filterbar button.active { background: var(--gold); border-color: var(--gold); color: #1a1407; font-weight: 600; }
.card.is-hidden { display: none; }
.listings-empty { text-align: center; color: var(--muted); padding: 40px 0; display: none; }

/* Real "Recently Sold" cards (no fabricated price/specs — verified sales) */
.card__sold-cover {
  position: relative; aspect-ratio: 4/3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(150deg, var(--green-light) 0%, var(--green) 45%, var(--green-deep) 100%);
}
.card__sold-badge { font-family: var(--serif); font-weight: 800; letter-spacing: .22em; font-size: 1.8rem; color: var(--gold); text-indent: .22em; }
.card__sold-date { color: #d4dbd2; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.card__sold-role {
  position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,.3); color: #fff;
  font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; padding: 5px 10px;
  border-radius: 2px; border: 1px solid rgba(255,255,255,.2);
}
.card__body--sold { padding-top: 22px; padding-bottom: 26px; }
.card--sold .card__addr { font-size: 1.15rem; }
/* Photo variant of the sold cover: real listing photo with the SOLD stamp overlaid */
.card__sold-cover--photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.card__sold-cover--photo::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9,14,11,.48) 0%, rgba(9,14,11,.12) 38%, rgba(9,14,11,.74) 100%);
}
.card__sold-cover--photo > * { position: relative; z-index: 2; }
.card__sold-cover--photo .card__sold-badge { text-shadow: 0 2px 12px rgba(0,0,0,.65); }
.card__sold-cover--photo .card__sold-date { color: #fff; text-shadow: 0 1px 7px rgba(0,0,0,.75); }
.card__sold-cover--photo .card__sold-role { background: rgba(0,0,0,.5); }
.sales-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 auto 34px; max-width: 640px; }
.sales-note a { color: var(--gold); border-bottom: 1px solid currentColor; }

/* =================================================================
   SMALL PHONES — stack the calculator/form fields and tighten padding
   so nothing overflows on narrow screens. (Placed last so it wins over
   the base .calc__panel / .calc__row / .form rules defined above.)
   ================================================================= */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .calc__row { grid-template-columns: 1fr; }
  /* Allow the number inputs to shrink below their intrinsic width */
  .calc__grid, .calc__panel, .calc__result, .calc__row, .calc__field { min-width: 0; }
  .calc input, .calc textarea { min-width: 0; }
  .calc__panel, .calc__result { padding: 24px 20px; }
  .form { padding: 26px 20px; }
  .valuation__inner, .calc__grid { gap: 26px; }
  .calc__payment { font-size: clamp(2.2rem, 11vw, 3rem); }
}
