/* ============================================================
   Matt Bingham · REALTOR® · eXp Realty · Seattle, Washington
   styles.css — sitewide design system
   Palette: white / off-white / black / charcoal / muted brass
   Type: Marcellus (display) + Mulish (body), with safe fallbacks
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #101315;
  --charcoal: #24282d;
  --charcoal-soft: #33383e;
  --slate: #5b6169;
  --white: #ffffff;
  --paper: #f7f5f0;
  --sand: #efebe1;
  --line: #e2dccf;
  --line-dark: #3c4147;
  --brass: #9a7b3f;
  --brass-deep: #7f642f;
  --brass-soft: #c8ad72;

  --font-display: "Marcellus", "Times New Roman", Georgia, serif;
  --font-body: "Mulish", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --radius: 6px;
  --shadow-soft: 0 18px 40px -24px rgba(16, 19, 21, 0.35);
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brass-deep);
  text-decoration: none;
}

a:hover {
  color: var(--brass);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 46em;
}

/* Eyebrow label with brass tick — recurring brand marker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brass);
  flex: none;
}

.on-dark .eyebrow,
.on-dark .eyebrow::before {
  color: var(--brass-soft);
  background-color: var(--brass-soft);
}

.coords {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--charcoal-soft);
  border-color: var(--charcoal-soft);
  color: var(--white);
}

.btn-brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--white);
}

.btn-brass:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-outline-light:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.6rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 12px 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.site-nav {
  display: none;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--brass-deep);
}

.site-nav a[aria-current="page"] {
  color: var(--brass-deep);
  border-bottom-color: var(--brass);
}

.site-nav .nav-cta {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 9px 18px;
  color: var(--ink);
}

.site-nav .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 12px 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 10px 20px 24px;
  box-shadow: var(--shadow-soft);
}

.nav-open .site-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.nav-open .site-nav .nav-cta {
  margin-top: 14px;
  text-align: center;
  border-bottom: 1px solid var(--ink);
}

@media (min-width: 981px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  /* Fallback gradient renders even when images/seattle-hero.jpg is missing */
  background-color: var(--ink);
  background-image:
    linear-gradient(115deg, rgba(13, 16, 18, 0.92) 0%, rgba(24, 28, 32, 0.72) 55%, rgba(46, 41, 30, 0.62) 100%),
    url("images/seattle-hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 20px 120px;
}

.hero h1 {
  color: var(--white);
  max-width: 15em;
}

.hero .hero-sub {
  max-width: 36em;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero .coords {
  color: var(--brass-soft);
}

.hero-page .hero-inner {
  padding: 80px 20px 84px;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}

.section-tight {
  padding: 60px 0;
}

.section-paper {
  background: var(--paper);
}

.section-sand {
  background: var(--sand);
}

.section-dark {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.85);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

/* ---------- Responsive BoldTrail widget wrappers ---------- */
.widget-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}

.section-dark .widget-panel {
  border-color: var(--line-dark);
}

.widget-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.widget-frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Home search widget: displays its full desktop control set at up to
   960px wide (max-width, never a fixed width), and shrinks fluidly with
   the wrapper on tablet/phone, where extra height covers the reflow. */
.widget-frame--search {
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.widget-frame--search iframe {
  height: 320px;
}

@media (max-width: 900px) {
  .widget-frame--search iframe {
    height: 420px;
  }
}

@media (max-width: 620px) {
  .widget-frame--search iframe {
    height: 540px;
  }
}

/* Valuation widget */
.widget-frame--valuation iframe {
  height: 160px;
}

@media (max-width: 900px) {
  .widget-frame--valuation iframe {
    height: 210px;
  }
}

@media (max-width: 620px) {
  .widget-frame--valuation iframe {
    height: 280px;
  }
}

.widget-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.widget-note {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 10px 0 0;
}

.section-dark .widget-note {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Grids & cards ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.card p:last-of-type {
  margin-bottom: 1.4rem;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.7rem;
}

/* Photo strip on cards — brass/charcoal gradient placeholder that
   still looks intentional if no image file has been added yet. */
.card-photo {
  height: 150px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(120deg, rgba(16, 19, 21, 0.55), rgba(154, 123, 63, 0.35)),
    url("images/seattle-neighborhood.jpg");
  background-size: cover;
  background-position: center;
}

.card-flush {
  padding: 0;
  overflow: hidden;
}

.card-flush .card-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-flush .card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Numbered process steps (real sequences only) */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 24px 26px 20px 26px;
}

.steps li::before {
  content: "Step " counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.5rem;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  margin-bottom: 0;
  color: var(--slate);
}

/* Credential strip — quiet band listing real background, no hype */
.credential-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.credential-strip ul {
  list-style: none;
  margin: 0 auto;
  padding: 22px 20px;
  max-width: var(--container);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 38px;
}

.credential-strip li {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.credential-strip li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  margin-right: 10px;
  vertical-align: 2px;
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.split-media {
  min-height: 320px;
  border-radius: var(--radius);
  background-color: var(--charcoal);
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.35), rgba(154, 123, 63, 0.28)),
    url("images/seattle-skyline.jpg");
  background-size: cover;
  background-position: center;
}

.split-media--home {
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.3), rgba(154, 123, 63, 0.25)),
    url("images/luxury-home.jpg");
}

.split-media--portrait {
  min-height: 560px;
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.12), rgba(154, 123, 63, 0.1)),
    url("images/matt-bingham.jpg");
  background-position: center 22%;
}

.split-media--interior {
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.2), rgba(154, 123, 63, 0.18)),
    url("images/home-interior.jpg");
}

.split-media--consult {
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.2), rgba(154, 123, 63, 0.18)),
    url("images/buyer-consultation.jpg");
}

.split-media--strategy {
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.2), rgba(154, 123, 63, 0.18)),
    url("images/seller-strategy.jpg");
}

.split-media--hood {
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.25), rgba(154, 123, 63, 0.2)),
    url("images/seattle-neighborhood.jpg");
}

.split-media--about {
  background-image:
    linear-gradient(160deg, rgba(16, 19, 21, 0.2), rgba(154, 123, 63, 0.15)),
    url("images/about-backdrop.jpg");
}

/* ---------- Checklists ---------- */
.checklist {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 6px 0 6px 30px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 14px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .form-field--full {
    grid-column: 1 / -1;
  }
}

.form-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 7px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.9rem;
  color: var(--charcoal);
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  background: var(--sand);
  font-size: 0.95rem;
}

.form-status.is-visible {
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band {
  background-color: var(--ink);
  background-image: linear-gradient(115deg, #101315 0%, #24282d 60%, #3a3221 100%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-top: 70px;
  padding-bottom: 50px;
}

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

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.footer-role {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 0.9rem;
}

.footer-coords {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: var(--brass-soft);
}

.footer-cta .btn {
  display: block;
  margin-bottom: 12px;
}

/* eXp logo chip — logo sits on white per brand guidelines, kept modest */
.footer-logo {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: var(--radius);
  line-height: 0;
}

.footer-logo img {
  width: 118px;
  height: auto;
  display: block;
}

/* Contact card: small portrait beside name */
.contact-person {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-photo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 2px solid var(--brass-soft);
}

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 34px;
  padding-bottom: 44px;
  font-size: 0.78rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
}

.footer-legal p {
  margin-bottom: 0.7em;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--brass-soft);
}

.eho-mark {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Blog cards ---------- */
.post-card .card-kicker {
  margin-bottom: 0.4rem;
}

.post-meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

/* ---------- Neighborhood list ---------- */
.hood-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 720px) {
  .hood-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .hood-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.hood-card h3 {
  margin-bottom: 0.35rem;
}

.hood-card .card-kicker {
  margin-bottom: 0.55rem;
}

.hood-card p {
  color: var(--slate);
  margin-bottom: 0;
}

/* ---------- Motion & accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001s !important;
    animation-duration: 0.001s !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .nav-toggle,
  .site-footer .footer-cta {
    display: none;
  }
}
