/* ===================================================
   MADDERN TEAM | eXp Realty — Design System
   Restrained luxury. Ivory + ink. Purple as a quiet accent.
   =================================================== */

/* --- CSS Variables --- */
:root {
  --purple: #5B2D8E;
  --purple-dark: #3e1d65;
  --purple-soft: #efeaf6;

  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --charcoal: #4a4a4a;
  --slate: #6b6b6b;
  --mute: #8a8a8a;

  --ivory: #fbfaf7;
  --cream: #f5f2ec;
  --bone: #ecebe6;
  --line: #e5e2dc;

  --white: #ffffff;

  --font-sans: 'Inter', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', 'Georgia', 'Times New Roman', serif;

  --shadow-xs: 0 1px 2px rgba(20, 18, 14, 0.04);
  --shadow-sm: 0 4px 14px rgba(20, 18, 14, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 18, 14, 0.08);

  --radius: 4px;
  --radius-lg: 10px;
  --max-width: 1200px;
  --nav-height: 84px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: 0.01em; }
p { color: var(--charcoal); line-height: 1.75; font-size: 1rem; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
  display: block;
  font-family: var(--font-sans);
}

.lede {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  font-style: italic;
}

/* --- Layout Utilities --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 128px 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--purple); border-color: var(--purple); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-lg { padding: 18px 44px; font-size: 0.85rem; }
.btn-sm { padding: 11px 24px; font-size: 0.72rem; letter-spacing: 0.16em; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0 32px;
}
.nav.transparent { background: transparent; }
.nav.scrolled {
  background: rgba(251, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.04em;
}
.nav-logo-text span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 6px;
}
.nav.scrolled .nav-logo-text { color: var(--ink); }
.nav-logo-img { height: 34px; width: auto; display: block; }
.nav-logo-img-light { display: none; }
.nav.transparent:not(.scrolled) .nav-logo-img-dark { display: none; }
.nav.transparent:not(.scrolled) .nav-logo-img-light { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a:hover { color: var(--purple); }
.nav-links a.active { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.5); border-radius: 0; }
.nav.scrolled .nav-links a.active { color: var(--purple); border-color: var(--purple); }
.nav-cta-group { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.92);
}
.nav.scrolled .nav-phone { color: var(--ink-soft); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}
.nav.scrolled .nav-hamburger span { background: var(--ink); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; }
.nav-dropdown-menu a {
  display: block !important;
  color: var(--ink-soft) !important;
  padding: 11px 22px !important;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: none !important;
}
.nav-dropdown-menu a:hover { background: var(--cream) !important; color: var(--purple) !important; }
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 24px 32px 40px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block;
  padding: 14px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-mobile-menu a:last-of-type { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--purple); }

/* --- Hero (Shared) --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 32px 100px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}
.hero h1 { color: var(--white); margin-bottom: 24px; font-weight: 400; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--white); }
.hero p.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-style: italic;
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin-bottom: 44px;
  line-height: 1.55;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 28px 80px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin: 28px auto 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; font-weight: 400; }
.page-hero p {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--line);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--ink); }
.card-body { padding: 28px; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  padding: 40px 36px;
  border: 1px solid var(--line);
  position: relative;
}
.testimonial-card p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 28px;
}
.testimonial-card p::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--purple);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.testimonial-author-name { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.testimonial-author-label { font-size: 0.78rem; color: var(--slate); letter-spacing: 0.04em; }
.stars { color: var(--ink); font-size: 0.85rem; letter-spacing: 4px; margin-bottom: 14px; }

/* --- Team Member Cards --- */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  text-align: left;
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-card-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: top;
  background: var(--cream);
}
.team-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.team-card-photo-placeholder::after {
  content: '';
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--line);
}
.team-card-body { padding: 28px 28px 32px; }
.team-card-role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
  line-height: 1.6;
  min-height: 3.2em;
  display: flex;
  align-items: flex-end;
}
.team-card-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--ink);
}
.team-card-bio {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 20px;
}
.team-card-contact { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- Stat Boxes --- */
.stat-box {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--line);
}
.stat-box-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-box-label {
  font-size: 0.74rem;
  color: var(--slate);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --- Area Cards --- */
.area-card {
  position: relative;
  overflow: hidden;
  height: 240px;
  cursor: pointer;
  background: var(--ink);
  transition: all 0.4s ease;
}
.area-card-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  transition: opacity 0.4s ease;
}
.area-card:hover .area-card-bg { opacity: 0.6; }
.area-card-overlay { display: none; }
.area-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  color: var(--white);
  z-index: 2;
}
.area-card-content h3 { font-size: 1.6rem; color: var(--white); margin-bottom: 6px; font-weight: 400; }
.area-card-content p { font-size: 0.78rem; color: rgba(255,255,255,0.8); letter-spacing: 0.08em; text-transform: uppercase; }

/* --- Forms --- */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--slate);
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--ink);
  transition: border-color 0.2s;
  appearance: none;
}
.form-control:focus { outline: none; border-color: var(--ink); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* --- Search Bar --- */
.search-bar {
  display: flex;
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  overflow: hidden;
  max-width: 620px;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 20px 22px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  color: var(--ink);
  background: var(--white);
}
.search-bar button {
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 20px 36px;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: var(--font-sans);
}
.search-bar button:hover { background: var(--purple); }

/* --- Sections with background --- */
.bg-ivory { background: var(--ivory); }
.bg-cream { background: var(--cream); }
.bg-bone { background: var(--bone); }
.bg-ink { background: var(--ink); color: var(--white); }

.section-dark { background: var(--ink); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.8); }
.section-dark .eyebrow { color: rgba(255,255,255,0.7); }

/* --- Dividers / Accents --- */
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--ink);
  margin: 0 auto 36px;
}
.section-divider-left { margin-left: 0; }
.section-dark .section-divider { background: rgba(255,255,255,0.5); }

/* --- Process Steps --- */
.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--purple);
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
}
.step-content h3 { margin-bottom: 8px; font-weight: 500; }

/* --- Feature blocks --- */
.feature-block {
  padding: 32px 8px;
  text-align: left;
}
.feature-block-num {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--purple);
  margin-bottom: 12px;
  display: block;
}
.feature-block h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 500; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--ink);
  padding: 110px 32px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; font-weight: 400; }
.cta-banner p {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem;
  max-width: 580px;
  margin: 0 auto 40px;
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.footer-brand-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer p { font-size: 0.9rem; line-height: 1.75; color: rgba(255,255,255,0.7); }
.footer-contact { margin-top: 24px; }
.footer-contact a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--white); }
.footer-heading {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p, .footer-bottom a { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-trec {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
}
.footer-trec a { color: rgba(255,255,255,0.6); text-decoration: underline; }
.footer-trec a:hover { color: var(--white); }

/* --- Notification / Alert Bar --- */
.alert-bar {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 11px 24px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.alert-bar a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* --- Listing Cards --- */
.listing-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.listing-card:hover { box-shadow: var(--shadow-md); }
.listing-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--cream);
  position: relative;
}
.listing-card-img-placeholder {
  width: 100%;
  height: 260px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.listing-card-img-placeholder::after {
  content: '';
  width: 60px; height: 60px;
  border: 1px solid var(--line);
}
.listing-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
}
.listing-badge.new { background: var(--ink); color: var(--white); }
.listing-badge.cash { background: var(--purple); color: var(--white); }
.listing-card-body { padding: 24px; }
.listing-price {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.listing-address { font-size: 0.88rem; color: var(--charcoal); margin-bottom: 14px; }
.listing-details {
  display: flex;
  gap: 18px;
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.listing-details span { display: flex; align-items: center; gap: 4px; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.5; }

/* --- Blog Cards --- */
.blog-card {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card-img {
  width: 100%;
  height: 220px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.35;
}
.blog-card-excerpt { font-size: 0.92rem; color: var(--charcoal); flex: 1; margin-bottom: 18px; line-height: 1.7; }
.blog-card-meta { font-size: 0.74rem; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; }

/* --- Accordion (FAQ) --- */
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-header {
  padding: 24px 0;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color 0.2s;
  color: var(--ink);
}
.accordion-header:hover { color: var(--purple); }
.accordion-header.open { color: var(--purple); }
.accordion-icon { font-size: 1.3rem; font-weight: 300; transition: transform 0.3s; }
.accordion-header.open .accordion-icon { transform: rotate(45deg); }
.accordion-body { padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.2s; }
.accordion-body.open { padding: 0 0 24px; max-height: 600px; }
.accordion-body p { color: var(--charcoal); font-size: 0.95rem; line-height: 1.75; }

/* --- Promise / Commitment list --- */
.promise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.promise-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}
.promise-list li:last-child { border-bottom: none; }

/* --- Cash Offer page specific --- */
.cash-hero {
  background: var(--ink);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 60px) 32px 80px;
  color: var(--white);
}
.cash-checklist { list-style: none; padding: 0; }
.cash-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--charcoal);
}
.cash-checklist li:last-child { border-bottom: none; }
.cash-check {
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}

/* --- Tag pills (for team detail tags) --- */
.tag-pill {
  background: transparent;
  border: 1px solid var(--line);
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 70px; }
  .nav-links, .nav-cta-group { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 64px 0; }
  .section-lg { padding: 88px 0; }
  .search-bar { flex-direction: column; }
  .search-bar button { width: 100%; padding: 16px; }
  .hero-content { padding: 120px 24px 80px; }
  .hero h1 { font-size: 2.4rem; }
  .container, .container-narrow { padding: 0 22px; }
  .nav { padding: 0 20px; }
}

@media (max-width: 480px) {
  .btn { padding: 13px 26px; font-size: 0.74rem; }
  .btn-lg { padding: 15px 30px; font-size: 0.78rem; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.8s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
