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

/* Page Container */
.about-us-page {
  background-color: #ffffff;
  min-height: 100vh;
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
}

/* Shared title styles: small tracked-out kicker line (orange) + big bold headline (black) */
.about-intro__title,
.about-curiosity__title,
.about-inspiration__title {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 24px;
  font-weight: 700;
  line-height: 1.17;
  color: var(--color-brand-secondary, #fc6f59);
  margin: 0 0 8px 0;
  letter-spacing: 6px;
  scroll-margin-top: 100px;
}

.about-intro__title-rule,
.about-curiosity__title-rule,
.about-inspiration__title-rule {
  display: block;
  width: 51px;
  height: 2px;
  margin-top: 8px;
  background: var(--color-brand-secondary, #fc6f59);
}

.about-intro__title-accent,
.about-curiosity__title-accent,
.about-inspiration__title-accent {
  display: block;
  font-family: var(--font-display, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 48px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 12px;
  color: #000000;
  margin-top: 4px;
}

/* Made for Your Passion */
.about-intro {
  padding: 90px 0;
}

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

.about-intro__image {
  flex: 0 0 420px;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 603 / 730;
  object-fit: cover;
  border-radius: 12px;
}

.about-intro__text {
  flex: 1;
  min-width: 0;
}

.about-intro__paragraph {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 28px;
  font-weight: 300;
  line-height: 1.17;
  color: #000000;
  margin: 0 0 20px 0;
}

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

/* Follow Your Curiosity - full-bleed banner (desktop), stacked card (mobile) */
.about-curiosity {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 70px 8%;
  text-align: center;
}

.about-curiosity__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.about-curiosity__title-rule {
  margin-left: auto;
  margin-right: auto;
}

.about-curiosity__title {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.about-curiosity__card {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.about-curiosity__paragraph {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 28px;
  font-weight: 300;
  line-height: 1.17;
  color: #000000;
  margin: 0 0 14px 0;
}

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

/* Ready When Inspiration Strikes - full-bleed banner */
.about-inspiration {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 500px;
  padding: 70px 6%;
}

.about-inspiration__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.about-inspiration__content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.about-inspiration__paragraph {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 28px;
  font-weight: 300;
  line-height: 1.17;
  color: #000000;
  margin: 0;
}

/* Shared: eyebrow label */
.about-eyebrow {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 14px;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 16px;
}

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

/* We're Here to Help */
.about-contact {
  background: var(--color-brand-accent, #f1f1f1);
  padding: 100px 24px;
  text-align: center;
}

.about-contact__content {
  max-width: 900px;
  margin: 0 auto;
}

.about-contact__title {
  font-family: var(--font-display, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 48px;
  font-weight: 700;
  line-height: 1.04;
  color: #000000;
  text-transform: uppercase;
  margin: 0 0 48px 0;
  scroll-margin-top: 100px;
}

/* Shared wrapper: cards + rows share the same column */
.about-contact__contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 56px;
  max-width: 664px;
  margin: 0 auto;
}

/* Cards: Phone + Email */
.about-contact__cards {
  display: flex;
  gap: 24px;
}

.about-contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 340px;
  padding: 40px 20px;
  background: var(--color-brand-secondary, #fc6f59);
  border-radius: 16px;
}

.about-contact__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fcf3f3;
  color: var(--color-brand-secondary, #fc6f59);
  margin: 0 0 20px;
}

.about-contact__card-label {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  color: #fcf3f3;
  margin: 0 0 8px;
}

.about-contact__card-value {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  overflow-wrap: break-word;
  text-align: center;
}

/* Rows: Support Availability + Mailing Address */
.about-contact__rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
}

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

.about-contact__row-text {
  flex: 1;
  min-width: 0;
}

.about-contact__row-label {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 6px;
}

.about-contact__row-value {
  font-family: var(--font-body, var(--font-primary, "Sharp Sans TRIAL", sans-serif));
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  color: #000000;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .about-intro__container {
    padding: 0 200px;
    max-width: none;
  }
}

@media (max-width: 1200px) {
  .about-intro__container {
    padding: 0 100px;
  }
}

/* NOTE: this breakpoint is 1023px (not the usual 768px) so it lines up
   exactly with responsive_static_image's mobile/desktop switch, which
   happens at "min-width: 1024px" (see media_query_for_static_variant
   in h9-commerce's image_helper.rb). The mobile image variant loads for
   any viewport under 1024px, so the mobile *layout* below must cover
   that whole range too - otherwise tablets (768-1023px) end up with
   the desktop two-column/absolute-overlay CSS trying to render the
   mobile-cropped image, which is what caused the broken text wrapping
   and missing background images on tablet. */
@media (max-width: 1023px) {
  /* Made for Your Passion becomes a full-bleed hero overlay on mobile
     (image behind, kicker/headline/paragraph layered on top) rather
     than the desktop's side-by-side image + text columns. */
  .about-intro {
    padding: 0 0 48px;
  }

  .about-intro__container {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 0;
    /* Capped and centered on tablets rather than stretched edge-to-edge:
       the text sizing/margins below are tuned for a phone-width column,
       and stretching that same column across a much wider tablet
       viewport is what caused the text/photo misalignment bugs here. */
    max-width: 480px;
    margin: 0 auto;
    /* Matches the source photo's crop (objects in the corners, clear
       middle for text). In-flow text below can still grow taller than
       this if it ever needs more room - it is not a hard clip. */
    aspect-ratio: 390 / 926;
  }

  .about-intro__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 0;
    z-index: 0;
  }

  .about-intro__text {
    position: relative;
    z-index: 1;
    padding: 130px 20px 60px;
  }

  .about-curiosity {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 16px;
    /* Capped and centered on tablets - see .about-intro__container above
       for why (this section's text column would otherwise stretch far
       too wide on a tablet viewport). */
    max-width: 480px;
    margin: 0 auto;
  }

  .about-curiosity__title {
    position: static;
    order: 1;
    max-width: 100%;
  }

  .about-curiosity picture {
    order: 2;
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .about-curiosity__bg-image {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 329 / 398;
    border-radius: 12px;
  }

  .about-curiosity__card {
    position: static;
    order: 3;
    max-width: 100%;
  }

  .about-inspiration {
    /* display:block (rather than the desktop flex/align-items:center)
       so the title/paragraph's in-flow margins reliably grow this
       section's auto height past the aspect-ratio below when needed -
       a flex item's content didn't propagate that growth reliably. */
    display: block;
    min-height: 0;
    /* NOTE: no padding/margin-top here - per the actual Figma mobile
       render, the pause before this section's heading is modest (just
       enough breathing room after Curiosity's paragraph), not a big
       pause matching Passion -> Curiosity. The bg image is absolutely
       positioned to cover this whole section including padding, so any
       padding-top here would also shift the heading relative to the
       image and reintroduce the earlier overlap bug - leave it at 0. */
    padding: 0 20px 32px;
    /* Capped and centered on tablets - see .about-intro__container above.
       Font sizes here are fixed px while the title/paragraph margins
       are width-relative percentages, calibrated for a ~350px phone
       content column; stretched across a full tablet viewport those
       margins overshoot relative to the (unscaled) text height and the
       paragraph ends up overlapping the photo. */
    max-width: 480px;
    margin: 0 auto;
    /* Matches the re-cropped source photo (excess blank canvas above the
       box trimmed out - see about-inspiration-mobile.jpg). Without this,
       the short mobile copy collapses the section height and object-fit:
       cover zooms in far past the intended composition. */
    aspect-ratio: 390 / 828;
  }

  .about-inspiration__content {
    max-width: none;
    text-align: center;
  }

  .about-inspiration__title-rule {
    margin-left: auto;
    margin-right: auto;
  }

  /* The wave background is decorative filler - the actual box/vinyl/
     controller photo (measured empirically in the exported asset)
     occupies roughly 27%-65% of the (now tightly cropped) height. Push
     the heading down just enough to clear it on top with a safety
     margin (the paintbrush tip pokes up higher than the rest of the
     photo, so the heading needs more clearance than the photo's own
     bounding box alone suggests) - margin percentages resolve against
     width, which is what scales with the aspect-ratio box here - then
     leave enough of a gap that the paragraph picks back up only once
     the photo has ended. */
  .about-inspiration__title {
    margin-top: 20%;
  }

  .about-inspiration__paragraph {
    margin-top: 109%;
  }

  .about-intro__title,
  .about-curiosity__title,
  .about-inspiration__title {
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 4px;
  }

  .about-intro__title-accent,
  .about-curiosity__title-accent,
  .about-inspiration__title-accent {
    font-size: 32px;
    letter-spacing: 8px;
  }

  .about-intro__paragraph,
  .about-curiosity__paragraph,
  .about-inspiration__paragraph {
    font-size: 16px;
  }

  .about-contact {
    padding: 48px 16px 60px;
  }

  .about-eyebrow {
    font-size: 10px;
    letter-spacing: 6px;
  }

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

  .about-contact__contact {
    max-width: 100%;
    gap: 40px;
  }

  .about-contact__cards {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

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

  .about-contact__card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }

  .about-contact__card-label,
  .about-contact__card-value {
    font-size: 18px;
  }

  .about-contact__rows {
    gap: 24px;
  }

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

  .about-contact__row-label {
    font-size: 20px;
  }

  .about-contact__row-value {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .about-intro__title-accent,
  .about-curiosity__title-accent,
  .about-inspiration__title-accent {
    font-size: 28px;
    letter-spacing: 6px;
  }

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

  .about-intro__paragraph,
  .about-curiosity__paragraph,
  .about-inspiration__paragraph {
    font-size: 15px;
  }
}

/* Print Styles */
@media print {
  .about-curiosity__bg-image,
  .about-inspiration__bg-image,
  .about-intro__image {
    display: none;
  }

  .about-curiosity__title,
  .about-curiosity__card,
  .about-inspiration__content {
    max-width: 100%;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .about-contact__card-icon,
  .about-contact__row-icon {
    border: 2px solid #000000;
  }
}
