/* About page
 *
 * The banners carry designer art with a blank area for the copy. Layouts:
 *   >= 1440px    copy sits over the blank side of the full-width art
 *   768-1439px   two columns: copy on a flat colour | art
 *   < 768px      stacked: copy, then the mobile art (its blank top tucked under the copy)
 * A "texture" banner has no blank side: the copy sits over the art at every width.
 *
 * Everything below "Brand settings" is shared with the other brands on this layout.
 */

/* ==========================================================================
   Brand settings
   ========================================================================== */

@font-face {
  font-family: 'Castoro';
  src: url("/fonts/Castoro-Italic.ttf") format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

.about-banner,
.about-trust,
.about-questions {
  --about-script-font: 'Castoro', Georgia, serif;
  --about-script-style: italic;
  --about-script-scale: 1.4; /* script line size relative to the bold line */
  --about-script: var(--color-brand-secondary-dark);
  --about-heading: var(--color-brand);
  --about-text: #3d4540;
  --about-rule: var(--color-brand-secondary);
  --about-card: var(--color-brand-accent);
}

.about-banner--opening {
  --art-w: 1920;          /* desktop art, px */
  --art-h: 757;
  --art-blank: 0.52;      /* share of the desktop art's width left blank for the copy */
  --art-focus: 0.76;      /* centre of the subject as a share of the width (>= 0.5) */
  --art-bg: #f4f0e5;      /* colour of the blank side */
  --art-m-bg: #f9f8f3;    /* colour of the mobile art's blank top */
  --art-m-tuck: 130vw;    /* height of that blank top that may sit behind the copy */
}

.about-banner--closing {
  --art-w: 1932;
  --art-h: 559;
  --art-m-w: 390;         /* mobile art, px */
  --art-m-h: 567;
  --art-bg: #383c1e;
}

/* ==========================================================================
   Type
   ========================================================================== */

.about-title {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--about-rule);
  font-size: 34px;
}

.about-title__script {
  font-family: var(--about-script-font);
  font-style: var(--about-script-style);
  font-size: calc(1em * var(--about-script-scale));
  font-weight: 400;
  line-height: 1.15;
  color: var(--about-script);
}

.about-title__bold {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 700;
  line-height: 1.25;
  color: var(--about-heading);
}

.about-text {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--about-text);
}

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

.about-text strong {
  font-weight: 700;
  color: var(--about-heading);
}

/* ==========================================================================
   Banners
   ========================================================================== */

.about-banner {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: var(--art-w) / var(--art-h);
  background: var(--art-bg);
  overflow: hidden;
  overflow: clip; /* unlike hidden, clip lets the banner grow when the copy is taller than the art */
}

.about-banner .static-picture {
  position: absolute;
  inset: 0;
}

.about-banner__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.about-banner__copy {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: calc(var(--art-blank) * 100%);
  max-width: 700px;
  padding: 48px 40px 48px 96px;
}

.about-banner--texture {
  --about-script: var(--color-brand-accent);
  --about-heading: #ffffff;
  --about-text: rgba(255, 255, 255, 0.92);
  --about-rule: rgba(255, 255, 255, 0.45);
}

.about-banner--texture .about-banner__art {
  object-position: left center;
}

.about-banner--texture .about-banner__copy {
  width: 100%;
  max-width: 760px;
}

/* ==========================================================================
   Trust section
   ========================================================================== */

.about-trust {
  padding: 90px 96px;
  background: #ffffff;
}

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

.about-trust__image {
  flex: 0 0 44%;
  max-width: 460px;
}

.about-trust__image img {
  display: block;
  width: 100%;
  height: auto;
}

.about-trust__copy {
  flex: 1;
}

/* ==========================================================================
   Questions section
   ========================================================================== */

.about-questions {
  padding: 80px 24px;
  background: #ffffff;
}

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

.about-questions__eyebrow {
  width: fit-content;
  margin: 0 auto 28px;
  padding: 0 12px 16px;
  border-bottom: 1px solid var(--about-rule);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--about-heading);
}

.about-questions__title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--about-heading);
}

.about-questions__cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 44px;
}

.about-questions__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 220px;
  padding: 28px 20px;
  border-radius: 16px;
  background: var(--about-card);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.about-questions__card:hover {
  transform: translateY(-2px);
}

.about-questions__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--about-heading);
  color: #ffffff;
}

.about-questions__icon svg {
  width: 20px;
  height: 20px;
}

.about-questions__card .about-questions__icon {
  margin-bottom: 8px;
  background: var(--about-rule);
}

.about-questions__label {
  margin: 0 0 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--about-heading);
}

.about-questions__value {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--about-text);
  word-break: break-word;
}

.about-questions__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: fit-content;
  margin: 0 auto;
  text-align: left;
}

.about-questions__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-style: normal;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Two columns: copy | art. The art is sized by the row height and centred on its subject. */
@media (min-width: 768px) and (max-width: 1439px) {
  .about-banner--scene {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    aspect-ratio: auto;
    /* tall enough that the art column never runs past the art's right edge */
    min-height: calc(50vw * var(--art-h) / (2 * (1 - var(--art-focus)) * var(--art-w)));
  }

  .about-banner--scene .static-picture {
    position: relative;
    grid-area: 1 / 2;
    overflow: hidden;
  }

  .about-banner--scene .about-banner__art {
    position: absolute;
    top: 0;
    left: 50%;
    width: auto;
    max-width: none;
    transform: translateX(calc(var(--art-focus) * -100%));
  }

  .about-banner--scene .about-banner__copy {
    grid-area: 1 / 1;
    align-self: center;
    width: auto;
    max-width: none;
    padding: 56px 40px 56px 56px;
  }
}

@media (max-width: 1200px) {
  .about-trust {
    padding: 80px 56px;
  }
}

@media (max-width: 1024px) {
  .about-title {
    font-size: 28px;
  }

  .about-banner__copy,
  .about-banner--scene .about-banner__copy {
    padding: 48px 32px 48px 40px;
  }

  .about-trust {
    padding: 64px 40px;
  }

  .about-trust__content {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .about-title {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 24px;
  }

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

  /* Stacked: copy first, then the mobile art pulled up so its blank top sits behind the copy */
  .about-banner--scene {
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: auto;
    background: var(--art-m-bg);
  }

  .about-banner--scene .about-banner__copy {
    width: auto;
    max-width: none;
    padding: 40px 24px 0;
    text-align: center;
  }

  .about-banner--scene .static-picture {
    position: static;
    order: 1;
    margin-top: calc(var(--art-m-tuck) * -1);
  }

  .about-banner--scene .about-banner__art {
    height: auto;
    /* fade the art's top edge into the banner colour when the copy is taller than the blank top */
    -webkit-mask-image: linear-gradient(transparent, #000 10%);
    mask-image: linear-gradient(transparent, #000 10%);
  }

  /* Mobile art without a blank top: art first, copy below it */
  .about-banner--image-first .static-picture {
    order: 0;
    margin-top: 0;
  }

  .about-banner--image-first .about-banner__art {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .about-banner--image-first .about-banner__copy {
    padding: 32px 24px 40px;
  }

  .about-banner--texture {
    aspect-ratio: var(--art-m-w) / var(--art-m-h);
  }

  .about-banner--texture .about-banner__copy {
    padding: 40px 24px;
    text-align: center;
  }

  /* the copy spans the full width here, including the texture's lighter side */
  .about-banner--texture .about-banner__art {
    filter: brightness(0.8);
  }

  .about-trust {
    padding: 56px 24px;
  }

  .about-trust__content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-trust__image {
    flex: none;
    width: 100%;
    max-width: 320px;
  }

  .about-questions {
    padding: 56px 20px;
  }

  .about-questions__title {
    font-size: 22px;
  }

  .about-questions__cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

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

  .about-questions__meta-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
