/**
 * About Us — static/screenshots/About Us.png
 */

.hmf-page-about {
  --hmf-about-pad-x: 24px;
  --hmf-about-section-pad-y: 48px;
}

@media (min-width: 992px) {
  .hmf-page-about {
    --hmf-about-pad-x: 64px;
    --hmf-about-section-pad-y: 80px;
  }
}

.hmf-page-about .hmf-container {
  padding-inline: var(--hmf-about-pad-x);
}

.hmf-about-section {
  padding-block: var(--hmf-about-section-pad-y);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hmf-about-hero {
  background-color: var(--hmf-color-cream);
  padding-top: 32px;
}

.hmf-about-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-bottom: 48px;
}

.hmf-about-hero__title {
  font-family: var(--hmf-font-heading);
  font-weight: 600;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  color: var(--hmf-color-primary);
  margin: 0;
  text-transform: none;
}

.hmf-about-hero__subtitle {
  font-family: var(--hmf-font-body);
  font-size: var(--hmf-text-body-lg);
  line-height: var(--hmf-text-body-lg-lh);
  color: var(--hmf-color-grey);
  margin: 0;
  max-width: 720px;
}

.hmf-about-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 768px) {
  .hmf-about-hero__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    width: auto;
  }
}

.hmf-about-hero__btn.hmf-btn--icon {
  text-transform: capitalize;
  letter-spacing: var(--hmf-tracking-btn);
}

.hmf-about-hero__btn--outline .hmf-btn__label {
  background-color: transparent;
  border: 2px solid var(--hmf-color-primary);
  color: var(--hmf-color-primary);
}

.hmf-about-hero__btn--outline .hmf-btn__icon img {
  filter: none;
}

.hmf-about-hero__logo {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin-top: 8px;
}

.hmf-about-hero__quote-wrap {
  background-color: rgba(245, 239, 227, 0.72);
  border-block: 1px solid rgba(0, 16, 1, 0.06);
  padding-block: 32px;
}

.hmf-about-hero__quote {
  font-family: var(--hmf-font-heading);
  font-weight: 500;
  font-size: clamp(1rem, 2.2vw, var(--hmf-text-body-lg));
  line-height: 1.5;
  color: var(--hmf-color-primary);
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
}

/* ── Story ────────────────────────────────────────────────────── */
.hmf-about-story {
  background-color: var(--hmf-color-white);
}

.hmf-about-story .hmf-tag--white {
  border: 1px solid rgba(0, 16, 1, 0.08);
}

.hmf-about-story__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .hmf-about-story__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.hmf-about-story__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hmf-about-story__title {
  font-family: var(--hmf-font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, var(--hmf-text-h2));
  line-height: 1.2;
  color: var(--hmf-color-black);
  margin: 0;
  text-transform: none;
}

.hmf-about-story__paragraph {
  font-family: var(--hmf-font-body);
  font-size: var(--hmf-text-body);
  line-height: 1.5;
  color: var(--hmf-color-grey);
  margin: 0;
}

.hmf-about-story__byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.hmf-about-story__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.hmf-about-story__byline-text {
  font-family: var(--hmf-font-heading);
  font-weight: 500;
  font-size: var(--hmf-text-nav);
  color: var(--hmf-color-primary);
}

.hmf-about-story__media {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 360px;
  margin-inline: auto;
}

@media (min-width: 992px) {
  .hmf-about-story__media {
    max-width: none;
    min-height: 480px;
    margin-inline: 0;
  }
}

.hmf-about-story__image {
  border-radius: var(--hmf-radius-lg, 16px);
  object-fit: cover;
}

.hmf-about-story__img--main {
  position: relative;
  z-index: 1;
  display: block;
  width: 78%;
  height: auto;
  margin-left: auto;
}

.hmf-about-story__img--inset {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 52%;
  height: auto;
  box-shadow: 0 12px 40px rgba(0, 16, 1, 0.12);
}

@media (max-width: 991.98px) {
  .hmf-about-story__copy {
    align-items: center;
    text-align: center;
  }

  .hmf-about-story__byline {
    justify-content: center;
  }
}

/* ── Services grid ────────────────────────────────────────────── */
.hmf-about-services {
  background-color: var(--hmf-color-cream);
}

.hmf-about-services__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 40px;
}

.hmf-about-services__title {
  font-family: var(--hmf-font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, var(--hmf-text-h2));
  line-height: 1.2;
  color: var(--hmf-color-black);
  margin: 0;
  text-transform: none;
  max-width: 788px;
}

.hmf-about-services__subtitle {
  font-family: var(--hmf-font-body);
  font-size: var(--hmf-text-body-lg);
  line-height: var(--hmf-text-body-lg-lh);
  color: var(--hmf-color-grey);
  margin: 0;
  max-width: 640px;
}

.hmf-about-services__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

@media (min-width: 768px) {
  .hmf-about-services__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    width: auto;
  }
}

.hmf-about-services__btn.hmf-btn--icon {
  text-transform: capitalize;
}

.hmf-about-services__btn--outline .hmf-btn__label {
  background-color: transparent;
  border: 2px solid var(--hmf-color-primary);
  color: var(--hmf-color-primary);
}

.hmf-about-services__btn--outline .hmf-btn__icon img {
  filter: none;
}

.hmf-about-services__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .hmf-about-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (min-width: 992px) {
  .hmf-about-services__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Gallery + CTA overrides ──────────────────────────────────── */
.hmf-page-about .hmf-home-gallery__title {
  text-transform: none;
}

.hmf-page-about .hmf-service-serving {
  background-color: var(--hmf-color-white);
}

/* ── Shared sections ──────────────────────────────────────────── */
.hmf-page-about .hmf-testimonials {
  padding-block: 48px;
}

@media (min-width: 992px) {
  .hmf-page-about .hmf-testimonials {
    padding-block: 64px;
  }
}

.hmf-page-about .hmf-home-contact__media {
  background-image: url("../../img/placeholders/home/hero-image-combined%20-2horses.png");
  background-position: center;
}

.hmf-page-about .hmf-section:last-of-type {
  padding-bottom: 80px;
}

@media (max-width: 767.98px) {
  .hmf-about-hero__actions .hmf-btn--icon,
  .hmf-about-services__actions .hmf-btn--icon {
    width: 100%;
  }

  .hmf-about-hero__actions .hmf-btn__label,
  .hmf-about-services__actions .hmf-btn__label {
    flex: 1;
    justify-content: center;
  }
}
