/* Drew Scarfo Utah Real Estate: site styles. Black, white, and the red from Drew's logo. */

:root {
  color-scheme: light;

  --black: #111111;
  --black-soft: #1c1c1c;
  --white: #ffffff;
  --gray-50: #f6f6f6;
  --gray-100: #efefef;
  --gray-200: #e2e2e2;
  --gray-300: #cfcfcf;
  --gray-500: #6e6e6e;
  --gray-600: #555555;
  --red: #e24941; /* logo red: large type, rules, icons */
  --red-strong: #c73e35; /* buttons and small red text (5:1 on white) */
  --red-deep: #a8322b;
  --todo-bg: #fff6d6;
  --todo-border: #d9a520;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--black);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--red-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red-deep);
}

:focus-visible {
  outline: 3px solid var(--red-strong);
  outline-offset: 2px;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 780px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
  padding-block: 8px;
}

.brand-logo {
  height: 110px;
  width: auto;
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 76px;
    padding-block: 6px;
  }

  .brand-logo {
    height: 84px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--black);
  flex: none;
}

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

.brand-mark {
  width: 58px;
  height: auto;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

@media (max-width: 480px) {
  .brand-line {
    display: block;
  }

  .brand-mark {
    width: 46px;
  }

  .brand {
    gap: 10px;
  }

  .brand-brokerage {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .nav-toggle {
    padding: 10px 11px;
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .eyebrow {
    letter-spacing: 0.14em;
  }
}

.brand-brokerage {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-strong);
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--black);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars span {
  top: 5px;
}

.nav-toggle-bars::after {
  bottom: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--black);
  border-bottom-color: var(--red);
}

.site-nav .nav-call a {
  background: var(--black);
  color: var(--white);
  margin-left: 8px;
  padding: 9px 14px;
  border-radius: var(--radius);
  border-bottom: 0;
}

.site-nav .nav-call a:hover {
  background: var(--red-strong);
  color: var(--white);
}

.nav-call-label {
  display: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    max-width: var(--container);
    margin-inline: auto;
  }

  .site-nav a {
    padding: 13px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border-bottom-color: var(--gray-100);
    color: var(--red-strong);
  }

  .site-nav .nav-call a {
    margin: 12px 0 0;
    text-align: center;
    padding: 13px 14px;
  }

  .nav-call-label {
    display: inline;
  }
}

/* No-JS fallback: the nav stays visible below the brand on small screens */
@media (max-width: 980px) {
  html:not(.js) .site-nav {
    position: static;
    box-shadow: none;
    border: 0;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--red-strong);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.btn-light:hover {
  background: var(--red);
  color: var(--white);
}

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

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

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

.ext::after {
  content: " \2197";
  font-size: 0.9em;
}

/* ---------- Eyebrows (echo the lines around "REAL ESTATE" in the logo) ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
}

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

.section-dark .eyebrow {
  color: var(--white);
}

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.hero-content {
  padding: 60px 0 56px;
  max-width: 820px;
}

.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
  color: var(--gray-600);
  max-width: 640px;
}

/* Drew's headshot sits to the right of the two intro paragraphs, as tall as both.
   The photo column is sized so the photo keeps its natural portrait shape. */
.hero-intro {
  display: grid;
  grid-template-columns: 360px 273px;
  column-gap: 32px;
}

.hero-intro > p {
  grid-column: 1;
}

.hero-intro > p:last-child {
  margin-bottom: 0;
}

.hero-intro .lead {
  max-width: none;
  font-size: 1.0625rem;
}

.hero-sub {
  color: var(--gray-600);
}

.hero-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  margin: 0;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* The name sits under the photo, beside the buttons, not over the photo. */
.hero-photo figcaption {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--gray-600);
}

.hero-photo figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--black);
}

/* Leave room for Drew's name under the photo before the buttons start. */
.hero-intro + .btn-row {
  margin-top: 58px;
}

@media (max-width: 860px) {
  .hero-content {
    padding: 40px 0 32px;
  }
}

/* On small tablets and phones the photo floats beside the first paragraph instead. */
@media (max-width: 767px) {
  .hero-intro {
    display: flow-root;
  }

  .hero-photo {
    float: right;
    width: 150px;
    margin: 6px 0 10px 16px;
  }

  .hero-photo img {
    position: static;
    height: auto;
  }

  .hero-photo figcaption {
    position: static;
    margin-top: 6px;
    text-align: left;
    font-size: 0.7rem;
  }

  .hero-photo figcaption strong {
    font-size: 0.85rem;
  }

  .hero-intro + .btn-row {
    margin-top: 1.6rem;
  }
}

.trust-band {
  background: var(--black);
  color: var(--white);
}

.trust-band ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: space-between;
  font-size: 0.95rem;
}

.trust-band li + li {
  margin-top: 0;
}

.trust-band a {
  color: var(--white);
}

.trust-band .stars {
  color: var(--red);
}

.stars {
  color: var(--red);
  letter-spacing: 2px;
}

/* ---------- Page heroes ---------- */

.page-hero {
  background: var(--gray-50);
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero .lead {
  margin-bottom: 0;
}

.page-hero.has-art {
  padding-bottom: 0;
  background: var(--white);
  border-bottom: 0;
}

.hero-art {
  width: 100%;
  margin-top: 22px;
  height: clamp(90px, 14vw, 180px);
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs {
  font-size: 0.88rem;
  margin-bottom: 18px;
  color: var(--gray-600);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumbs li + li {
  margin-top: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin: 0 6px 0 2px;
  color: var(--gray-300);
}

.breadcrumbs a {
  color: var(--gray-600);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

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

.section-alt {
  background: var(--gray-50);
}

.section-dark {
  background: var(--black);
  color: var(--gray-200);
}

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

/* Buttons keep their own colors; this only lightens plain text links. */
.section-dark a:not(.btn) {
  color: var(--white);
}

.section-head {
  max-width: 740px;
  margin-bottom: 34px;
}

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

.section-dark .section-head p {
  color: var(--gray-300);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

@media (max-width: 860px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.icon-card {
  border-top: 3px solid var(--black);
}

.icon-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon-card .icon svg {
  width: 22px;
  height: 22px;
}

.community-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--black);
  color: inherit;
}

.community-card .art {
  aspect-ratio: 400 / 150;
  width: 100%;
  border-bottom: 1px solid var(--gray-200);
}

.community-card .art svg {
  width: 100%;
  height: 100%;
}

.community-card .body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.community-card h3 {
  margin-bottom: 2px;
}

.community-card .county {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.community-card p {
  color: var(--black);
  font-size: 0.97rem;
}

.chip {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black);
  border-left: 3px solid var(--red);
  background: var(--gray-50);
  padding: 5px 10px;
}

/* ---------- Quotes and reviews ---------- */

.quote-card {
  position: relative;
  padding-top: 38px;
}

.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -4px;
  left: 22px;
  font-family: var(--font-display);
  font-size: 4.8rem;
  line-height: 1;
  color: var(--red);
}

.quote-card blockquote {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.quote-card blockquote p {
  margin: 0 0 0.75em;
}

.quote-card blockquote p:last-child {
  margin-bottom: 0;
}

.quote-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 0.95rem;
}

.quote-meta strong {
  color: var(--black);
}

.quote-meta .context {
  display: block;
  color: var(--gray-600);
  font-size: 0.86rem;
}

.section-dark .quote-card {
  background: var(--black-soft);
  border-color: #2e2e2e;
  color: var(--gray-200);
}

.section-dark .quote-meta strong {
  color: var(--white);
}

.section-dark .quote-meta .context {
  color: var(--gray-300);
}

.review-list {
  columns: 2;
  column-gap: 22px;
}

.review-list .card {
  break-inside: avoid;
  margin-bottom: 22px;
}

@media (max-width: 760px) {
  .review-list {
    columns: 1;
  }
}

.theme-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.theme-list li + li {
  margin-top: 0;
}

.theme-list li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 18px;
}

.theme-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--black);
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .theme-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .theme-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.steps li + li {
  margin-top: 0;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.steps p {
  margin: 0;
  color: var(--gray-600);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ---------- Facts and comparison ---------- */

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
}

.facts dt {
  font-weight: 700;
  color: var(--black);
}

.facts dd {
  margin: 0;
  color: var(--black);
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts dd {
    margin-bottom: 10px;
  }
}

.facts-card {
  border-top: 3px solid var(--red);
}

.facts-card h2 {
  font-size: 1.35rem;
}

.drew-take h2 {
  font-size: 1.35rem;
}

.drew-take blockquote {
  margin: 0;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* A photo inside a page's main text, with a caption and photo credit */
.content-photo {
  margin: 26px 0 30px;
}

.content-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.content-photo figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.content-photo figcaption a {
  color: inherit;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

.compare caption {
  text-align: left;
  padding: 0 0 12px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.compare thead th {
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.compare tbody th {
  font-family: var(--font-display);
  font-size: 1.05rem;
  white-space: nowrap;
}

.compare tbody th a {
  color: var(--black);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .compare {
    border: 0;
    background: transparent;
  }

  .compare caption {
    display: block;
    width: 100%;
  }

  .compare tr {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--black);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 6px 0;
  }

  .compare tbody th {
    border-bottom: 1px solid var(--gray-200);
    white-space: normal;
  }

  .compare td {
    border-bottom: 0;
    padding: 8px 16px;
  }

  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-600);
  }
}

/* ---------- Callouts ---------- */

.callout {
  background: var(--gray-50);
  border-left: 4px solid var(--red);
  padding: 20px 24px;
  margin: 0 0 1.25em;
}

.callout h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-dark {
  background: var(--black);
  color: var(--gray-200);
}

.callout-dark h3 {
  color: var(--white);
}

/* Draft-only notes for Drew. The build refuses to make a launch build while any remain. */
.todo {
  background: var(--todo-bg);
  border: 2px dashed var(--todo-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 1.25em;
  color: #5b4506;
  font-size: 0.97rem;
}

.todo::before {
  content: "Draft note for Drew";
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.todo p:last-child,
.todo ul:last-child {
  margin-bottom: 0;
}

.portrait {
  position: relative;
}

.portrait img {
  width: 100%;
  height: auto;
  background: var(--gray-50);
}

.portrait::after {
  content: "";
  position: absolute;
  left: -12px;
  bottom: -12px;
  width: 45%;
  height: 45%;
  border-left: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  pointer-events: none;
}

.big-quote {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.08;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}

.section-dark .big-quote {
  color: var(--white);
}

.big-quote em {
  font-style: italic;
  color: var(--red);
}

.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 30px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--black)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

/* ---------- FAQ ---------- */

.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0 22px;
  margin-bottom: 12px;
}

.faq details[open] {
  border-color: var(--black);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  padding: 18px 28px 18px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 13px;
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--red);
}

.faq details[open] summary::after {
  content: "\2013";
}

.faq details > div {
  padding-bottom: 18px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--black);
  color: var(--gray-200);
  border-radius: var(--radius);
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-left: 6px solid var(--red);
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.cta-band p {
  margin: 0;
  color: var(--gray-300);
}

.cta-band .btn-row {
  margin-top: 0;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .cta-band {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

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

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--black);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

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

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

  .form-card {
    padding: 22px 18px;
  }
}

.field label,
.field legend {
  display: block;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--black);
  margin-bottom: 6px;
}

.field .optional {
  font-weight: 400;
  color: var(--gray-600);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 11px 12px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--red-strong);
  outline-offset: 0;
  border-color: var(--black);
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

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

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.98rem;
}

.field label.choice {
  display: flex;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0;
}

.choice input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--red-strong);
  flex: none;
}

.form-note {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin: 0;
}

.hidden-field {
  display: none;
}

/* ---------- IDX slot ---------- */

.idx-slot {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  padding: 34px;
  text-align: center;
}

.idx-slot .btn-row {
  justify-content: center;
}

/* ---------- Sources ---------- */

.sources {
  font-size: 0.87rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
}

.sources h2 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.sources ul {
  padding-left: 1.1em;
}

.sources a {
  color: var(--gray-600);
}

/* ---------- Contact methods ---------- */

.contact-methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-methods li + li {
  margin-top: 0;
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--black);
  min-width: 0;
}

.contact-methods a:hover {
  border-color: var(--black);
  color: var(--black);
}

.contact-methods .icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
}

.contact-methods a:hover .icon {
  background: var(--red-strong);
}

.contact-methods .icon svg {
  width: 21px;
  height: 21px;
}

.contact-methods .label {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.contact-methods .value {
  display: block;
  font-weight: 700;
  color: var(--black);
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 60px 0 28px;
  margin-top: 72px;
  font-size: 0.95rem;
  border-top: 4px solid var(--red);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 10px 0 0;
}

/* KW's preferred spot for the ownership statement is right under the KW Park City logo. */
.footer-kw {
  margin-top: 28px;
}

.footer-kw img {
  display: block;
  width: 200px;
  height: auto;
}

.footer-brand .footer-kw p {
  margin-top: 16px;
  font-size: 0.85rem;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

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

.site-footer li + li {
  margin-top: 6px;
}

.eho {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.eho svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.footer-bottom {
  border-top: 1px solid #2e2e2e;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8f8f8f;
}

/* ---------- Misc ---------- */

.prose h2 {
  margin-top: 1.6em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.4em;
}

.prose .callout h3 {
  margin-top: 0;
}

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}
