/* About Us Page Styles */
/* Component-specific styles for the About Us page */

/* The shared layout's <main> uses flex:1 inside a min-height:100vh body
   (sticky-footer pattern). On short pages that stretches <main> beyond
   this page's own content, leaving a white gap before the footer unless
   this page also becomes a flex item that fills that stretched height.
   min-height:100% doesn't reliably resolve against a flex-grown ancestor,
   so make <main> a column flex container (scoped to this page only) and
   let .about-us-page use flex:1 to claim the leftover space. */
main:has(.about-us-page) {
  display: flex;
  flex-direction: column;
}

.about-us-page {
  --about-maroon: #9c1f1f;
  --about-dark-bg: var(--footer-bg-color, #222930);
  background-color: #ffffff;
  font-family: var(--font-primary);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Shared image frame (red offset corner brackets) */
.about-image-frame {
  position: relative;
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 848 / 729;
}

/* Top-left: full-length wraparound bar, flush behind the image */
.about-image-frame::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  background: var(--color-brand);
  z-index: 0;
}

/* Bottom-right: short corner bracket, offset with a visible gap.
   right/bottom must clear the gap PLUS the border thickness, otherwise
   half the border renders hidden behind the image (z-index 1 on top). */
.about-image-frame::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 70px;
  height: 70px;
  border-right: 16px solid var(--color-brand);
  border-bottom: 16px solid var(--color-brand);
  z-index: 0;
}

.about-image-frame picture,
.about-image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Movement / Guesswork content blocks */
.about-block {
  padding: 80px 40px;
}

.about-block__content {
  display: flex;
  max-width: 1146px;
  margin: 0 auto;
  gap: 60px;
  align-items: center;
}

.about-block--reverse .about-block__content {
  flex-direction: row-reverse;
}

.about-block__body {
  flex: 1;
  max-width: 558px;
}

.about-block__title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 20px 0;
  letter-spacing: 0.5px;
}

.about-block__title--maroon {
  color: var(--about-maroon);
}

.about-block__title--brand {
  color: var(--color-brand);
}

.about-block__title-line {
  display: block;
}

.about-block__title-line--bold {
  font-weight: 700;
}

.about-block__paragraph {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin: 0 0 20px 0;
}

.about-block__paragraph:last-child {
  margin-bottom: 0;
}

.about-block__paragraph strong {
  font-weight: 700;
}

/* Standard Section (full-bleed photo) */
.about-standard {
  position: relative;
  background-color: #efebe7;
  overflow: hidden;
}

.about-standard__image {
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-standard__image--mobile {
  height: 360px;
  background-position: center top;
}

.about-standard__image--desktop {
  display: none;
}

.about-standard__content {
  position: relative;
  z-index: 1;
  max-width: 1146px;
  margin: 0 auto;
  padding: 40px 40px 60px;
}

.about-standard__text {
  max-width: 558px;
}

/* Contact / Questions Section */
.about-contact {
  background: var(--about-dark-bg, #222930);
  color: #ffffff;
  padding: 80px 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-contact__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-contact__eyebrow {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px 0;
  padding-bottom: 16px;
  position: relative;
}

.about-contact__eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.about-contact__title {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 40px 0;
}

.about-contact__panel {
  display: block;
  width: 100%;
}

.about-contact__cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
}

.about-contact__card {
  background: var(--color-brand);
  border-radius: 12px;
  padding: 32px 40px;
  min-width: 220px;
  text-align: center;
}

.about-contact__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-brand);
}

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

.about-contact__card-label {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

.about-contact__card-value {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.about-contact__rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.about-contact__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.about-contact__row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #ffffff;
}

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

.about-contact__row-label {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 4px 0;
}

.about-contact__row-value {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Responsive Design */

/* The full-bleed photo overlay for the Standard section only reads well once
   there's enough width for the image's built-in fade to clear the text —
   below 1024px it crops too tight and the text sits on top of the subject. */
@media (min-width: 1024px) {
  .about-standard__image--mobile {
    display: none;
  }

  .about-standard__image--desktop {
    display: block;
    position: absolute;
    inset: 0;
    background-position: right center;
  }

  .about-standard {
    min-height: 560px;
    display: flex;
    align-items: center;
  }

  .about-standard__content {
    padding: 60px 40px;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .about-contact__inner {
    max-width: 1146px;
  }

  .about-contact__panel {
    display: inline-block;
    width: auto;
    text-align: left;
  }

  .about-contact__rows {
    align-items: flex-start;
  }

  .about-contact__row {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 640px;
  }

  .about-contact__row-icon {
    margin-top: 4px;
  }
}

/* Tablet: side-by-side layout like desktop, but with smaller image frame
   and proportionally thinner corner brackets to suit the narrower viewport */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-block__content {
    gap: 40px;
  }

  .about-image-frame {
    max-width: 320px;
  }

  .about-image-frame::before {
    top: -13px;
    left: -13px;
  }

  .about-image-frame::after {
    right: -17px;
    bottom: -17px;
    width: 60px;
    height: 60px;
    border-right-width: 13px;
    border-bottom-width: 13px;
  }

  .about-block__body {
    max-width: 380px;
  }

  .about-standard__text {
    max-width: 420px;
  }

  .about-contact__card {
    min-width: 200px;
  }
}

@media (max-width: 767px) {
  .about-block__content {
    flex-direction: column;
    gap: 40px;
  }

  .about-block--reverse .about-block__content {
    flex-direction: column;
  }

  .about-block__body {
    max-width: 100%;
    text-align: center;
  }

  .about-standard__content {
    text-align: center;
  }

  .about-standard__text {
    max-width: 100%;
    margin: 0 auto;
  }

  .about-image-frame {
    max-width: 344px;
  }

  .about-image-frame::before {
    top: -10px;
    left: -10px;
  }

  .about-image-frame::after {
    right: -14px;
    bottom: -14px;
    width: 50px;
    height: 50px;
    border-right-width: 10px;
    border-bottom-width: 10px;
  }

  .about-block {
    padding: 60px 20px;
  }

  .about-contact__cards {
    flex-direction: column;
    align-items: center;
  }

  .about-contact__card {
    width: 100%;
    max-width: 320px;
  }

  .about-contact {
    padding: 60px 20px;
  }

  .about-contact__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .about-block__title,
  .about-standard .about-block__title {
    font-size: 26px;
  }

  .about-block__paragraph {
    font-size: 14px;
  }

  .about-contact__title {
    font-size: 20px;
  }
}

/* Accessibility */
.about-block__title,
.about-contact__title {
  scroll-margin-top: 100px;
}

@media (prefers-contrast: high) {
  .about-image-frame::before,
  .about-image-frame::after {
    border: 2px solid #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-image-frame img {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .about-image-frame::before,
  .about-image-frame::after,
  .about-standard__image {
    display: none;
  }

  .about-contact {
    background: #f5f5f5;
    color: #000;
  }
}
