/* LJ Realty — About Us page */

/* Page-level tokens. Gutter lines up full-bleed sections with .container */
.about-hero,
.about-story,
.about-way,
.about-founders,
.about-agents,
.about-support,
.about-promise,
.about-cta {
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --gold-text: #a8896f;
  --paper: #f7f6f4;
  --paper-warm: #f1ede8;
  --card: #fbfaf8;
  --card-line: #e7e1d9;
  --placeholder: #cfc3b4;
  --gutter: max(1.75rem, calc((100vw - 1180px) / 2));
}

.about-hero h1,
.about-story h2,
.about-way h2,
.about-founders h2,
.about-agents h2,
.about-support h2,
.about-promise h2,
.about-cta h2,
.about-story__quote p,
.about-support__promise p,
.about-promise__tagline,
.about-cta__copy p,
.about-founders__monogram {
  font-family: var(--serif);
}

/* Short gold divider used under headings */
.about-rule {
  display: block;
  width: 1.85rem;
  height: 1.5px;
  background: var(--sand);
}

.about-rule--center {
  margin-inline: auto;
}

/* —— Profile cards (shared base, also used by agents-grid) —— */
.profile-card {
  background: var(--white-pure);
  text-align: center;
  padding: 1.35rem 1.15rem 1.5rem;
  box-shadow: 0 12px 36px rgba(4, 17, 33, 0.06);
  border: 1px solid rgba(5, 6, 6, 0.04);
}

.profile-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 1.15rem;
  background: var(--stone);
}

.profile-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.profile-card__role {
  margin-bottom: 20px;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-hover);
  padding-bottom: 0.55rem;
  border-bottom: 1.5px solid var(--sand);
}

/* About-page card look: flat card, portrait on top, name, gold role, short rule */
.about-founders .profile-card,
.about-agents .profile-card,
.about-support .profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 1.35rem;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: none;
}

.about-agents .profile-card > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.about-founders .profile-card__media,
.about-agents .profile-card__media,
.about-support .profile-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 1rem;
  background: var(--paper-warm);
}

.about-founders .profile-card h3,
.about-agents .profile-card h3,
.about-support .profile-card h3 {
  margin: 0 0 0.45rem;
  padding: 0 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--charcoal);
}

.about-founders .profile-card__role,
.about-agents .profile-card__role,
.about-support .profile-card__role {
  position: relative;
  margin: 0;
  padding: 0 0.5rem 1rem;
  border: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}

.about-founders .profile-card__role::after,
.about-agents .profile-card__role::after,
.about-support .profile-card__role::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.65rem;
  height: 1.5px;
  background: var(--sand);
  transform: translateX(-50%);
}

/* —— Hero —— */
.about-hero {
  position: relative;
  min-height: clamp(28rem, 36vw, 33rem);
  display: flex;
  align-items: center;
  color: var(--white-pure);
  overflow: hidden;
  background: var(--charcoal);
}

.about-hero__media {
  position: absolute;
  inset: 0;
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.about-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 6, 6, 0.86) 0%,
    rgba(5, 6, 6, 0.62) 40%,
    rgba(5, 6, 6, 0.15) 75%,
    rgba(5, 6, 6, 0.05) 100%
  );
}

.about-hero__inner {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 1.5rem) 0 3.5rem;
}

.about-hero__copy {
  max-width: 32rem;
}

.about-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.4rem, 4.4vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.about-hero__lede {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--sand);
}

.about-hero__copy > p:last-child {
  margin: 0;
  max-width: 26rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(247, 248, 248, 0.92);
}

/* —— Our Story —— */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32%;
  background: var(--paper);
}

.about-story__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 6vw, 4.5rem) var(--gutter);
}

.about-story__copy h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.85rem, 2.8vw, 2.3rem);
  font-weight: 400;
  line-height: 1.2;
}

.about-story__sub {
  margin: 0 0 1.35rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--gold-text);
}

.about-story__copy > p:not(.about-story__sub) {
  margin: 0 0 1rem;
  max-width: 27rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(5, 6, 6, 0.78);
}

.about-story__copy > p:last-child {
  margin-bottom: 0;
}

.about-story__quote {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--paper-warm);
}

.about-story__quote-mark {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 0.8;
  color: var(--sand);
}

.about-story__quote p {
  margin: 0 0 1.4rem;
  max-width: 16rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--charcoal);
}

.about-story__media {
  position: relative;
  min-height: 100%;
}

.about-story__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— The LJ Realty Way —— */
.about-way {
  padding: clamp(3.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 6vw, 4.75rem);
  background: var(--paper);
}

.about-way__head {
  text-align: center;
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
}

.about-way__head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.6vw, 2.15rem);
  font-weight: 400;
}

.about-way__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-way__item {
  text-align: center;
  padding: 0.25rem clamp(1rem, 2.5vw, 2.25rem);
}

.about-way__item + .about-way__item {
  border-left: 1px solid var(--card-line);
}

.about-way__icon {
  display: inline-grid;
  place-items: center;
  margin-bottom: 1.15rem;
  color: var(--sand-hover);
}

.about-way__icon svg {
  width: 2.75rem;
  height: 2.75rem;
}

.about-way__item h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.about-way__item p {
  margin: 0 auto;
  max-width: 12rem;
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(5, 6, 6, 0.72);
}

/* —— Founders —— */
.about-founders {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  background: var(--paper-warm);
  overflow: hidden;
}

.about-founders__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr) minmax(0, 0.55fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.about-founders__label {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.about-founders__head h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.85rem, 2.8vw, 2.3rem);
  font-weight: 400;
  line-height: 1.2;
}

.about-founders__head .about-rule {
  margin-bottom: 1.5rem;
}

.about-founders__head > p:last-child {
  margin: 0;
  max-width: 17rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(5, 6, 6, 0.78);
}

.about-founders__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  max-width: 34rem;
}

.about-founders .profile-card {
  padding-top: 1.25rem;
}

.about-founders .profile-card__media {
  width: calc(100% - 2.5rem);
  aspect-ratio: 1 / 1;
  background: transparent;
}

.about-founders .profile-card h3 {
  font-size: 1rem;
}

.about-founders__monogram {
  position: absolute;
  right: clamp(1rem, 7vw, 8rem);
  top: 50%;
  transform: translateY(-46%);
  font-size: clamp(8rem, 13vw, 12rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(197, 166, 141, 0.16);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* —— Agents —— */
.about-agents {
  padding: clamp(3rem, 5vw, 3.75rem) 0 clamp(2.5rem, 4vw, 3rem);
  background: var(--paper);
}

.about-agents__container {
  width: min(1340px, calc(100% - 6rem));
  margin-inline: auto;
}

.about-agents__head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.about-agents__head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.15rem);
  font-weight: 400;
}

.about-agents__empty {
  text-align: center;
  color: var(--muted);
}

.about-agents .profile-card {
  padding-bottom: 1.1rem;
}

.about-agents .profile-card h3 {
  font-size: 0.85rem;
}

.about-agents .profile-card__role {
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  padding-bottom: 0.85rem;
}

.about-agents .profile-card > a:hover h3 {
  color: var(--gold-text);
}

.about-agents__slider {
  min-width: 0;
  margin: 0 -0.5rem;
}

/* Before slick initialises, lay cards out as a row so there's no layout jump */
.about-agents__slider:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.about-agents__slider:not(.slick-initialized) > .profile-card:nth-child(n + 9) {
  display: none;
}

.about-agents__slider .slick-track {
  display: flex;
  margin-left: 0;
}

.about-agents__slider .slick-slide {
  height: auto;
  padding: 0 0.5rem;
}

.about-agents__slider .slick-slide > div,
.about-agents__slider .profile-card {
  height: 100%;
}

.about-agents__slider .slick-list {
  overflow: hidden;
}

.about-agents__slider .slick-prev,
.about-agents__slider .slick-next {
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--navy-deep);
}

.about-agents__slider .slick-prev {
  left: -2.25rem;
}

.about-agents__slider .slick-next {
  right: -2.25rem;
}

.about-agents__slider .slick-prev::before,
.about-agents__slider .slick-next::before {
  color: var(--sand);
  font-size: 1.1rem;
}

.about-agents__slider .slick-disabled {
  opacity: 0.35;
}

/* —— Team Support —— */
.about-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32%;
  background: var(--paper-warm);
}

.about-support__body {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem) var(--gutter);
}

.about-support__copy {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.about-support__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}

.about-support__copy .about-rule {
  margin-bottom: 1.5rem;
}

.about-support__copy p {
  margin: 0;
  max-width: 15rem;
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(5, 6, 6, 0.78);
}

.about-support__people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  max-width: 30rem;
}

.about-support .profile-card {
  padding-top: 1rem;
}

.about-support .profile-card__media {
  width: calc(100% - 2rem);
  background: transparent;
}

.about-support__promise {
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  background: var(--navy-deep);
  color: var(--white-pure);
}

.about-support__promise-icon {
  display: inline-grid;
  margin-bottom: 1.5rem;
  color: var(--sand);
}

.about-support__promise-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.about-support__promise p {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.55;
}

.about-support__promise strong {
  font-weight: 400;
  color: var(--sand);
}

/* —— Our Promise —— */
.about-promise {
  display: grid;
  grid-template-columns: 31% minmax(0, 1fr);
  background: var(--paper-warm);
}

.about-promise__media {
  position: relative;
  min-height: clamp(15rem, 22vw, 20rem);
}

.about-promise__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-promise__copy {
  align-self: center;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.25rem);
}

.about-promise__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2.6vw, 2.15rem);
  font-weight: 400;
}

.about-promise__copy .about-rule {
  margin-bottom: 1.5rem;
}

.about-promise__copy > p:not(.about-promise__tagline) {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(5, 6, 6, 0.8);
}

.about-promise__tagline {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--gold-text);
}

/* —— Closing CTA —— */
.about-cta {
  background: var(--navy-deep);
  color: var(--white-pure);
  padding: clamp(2.5rem, 4.5vw, 3.25rem) 0;
}

.about-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding-inline: clamp(0rem, 6vw, 5.5rem);
}

.about-cta__copy h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.25;
}

.about-cta__copy p {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--sand);
}

.about-cta__btn {
  padding: 1.15rem 2.25rem;
  font-size: 0.78rem;
  color: var(--white-pure);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .about-way__grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }

  .about-way__item:nth-child(4) {
    border-left: 0;
  }

  .about-founders__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  }

  .about-support {
    grid-template-columns: 1fr;
  }

  .about-support__body {
    padding-right: var(--gutter);
  }

  .about-support__promise {
    justify-content: flex-start;
    padding-inline: var(--gutter);
  }
}

@media (max-width: 900px) {
  .about-story,
  .about-promise {
    grid-template-columns: 1fr;
  }

  .about-story__body {
    padding-right: var(--gutter);
  }

  .about-story__media,
  .about-promise__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .about-promise__copy {
    padding-left: var(--gutter);
  }

  .about-founders {
    padding: 3.5rem 0;
  }

  .about-founders__grid {
    grid-template-columns: 1fr;
  }

  .about-founders__monogram {
    top: auto;
    bottom: 0;
    transform: none;
  }
}

@media (max-width: 720px) {
  .about-hero {
    min-height: 26rem;
  }

  .about-story__body,
  .about-support__body {
    grid-template-columns: 1fr;
  }

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

  .about-way__item {
    padding-inline: 0.75rem;
  }

  .about-way__item + .about-way__item {
    border-left: 0;
  }

  .about-way__item:nth-child(even) {
    border-left: 1px solid var(--card-line);
  }

  .about-way__item:last-child {
    grid-column: 1 / -1;
  }

  .about-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 0;
  }

  .about-agents__container {
    width: calc(100% - 4.75rem);
  }

  .about-agents__slider .slick-prev {
    left: -1.9rem;
  }

  .about-agents__slider .slick-next {
    right: -1.9rem;
  }
}

@media (max-width: 420px) {
  .about-founders__cards,
  .about-support__people {
    gap: 0.75rem;
  }

  .about-founders .profile-card h3,
  .about-support .profile-card h3 {
    font-size: 0.88rem;
  }
}
