/* ============================================================
   About Page  (all rules scoped under .about)
   ============================================================ */
.about {

  /* ── Hero ─────────────────────────────────────────────── */
  & .hero {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
    margin-top: calc(-1 * var(--site-pad-y));
    margin-left: calc(-1 * var(--site-pad-x));
    margin-right: calc(-1 * var(--site-pad-x));
    margin-bottom: 24px;
    border-bottom: 4px solid var(--color-secondary);

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: url("../images/about/pattern_rays_center_2.png");
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      opacity: 1;
      pointer-events: none;
    }
  }

  & .hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  & .hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-right: -40px;
  }

  & .hero-image {
    width: min(100%, 700px);
    height: auto;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.35));
  }

  & .hero-copy {
    color: var(--color-white);
    background: var(--color-tertiary);
    border-radius: 4px;
    padding: 20px 20px 20px 20px;
    text-align: center;
    position: relative;
    z-index: 1;

    & h1 {
      color: var(--color-white);
      margin-bottom: 10px;
    }

    & p {
      color: var(--color-white);
      margin: 0;
    }
  }

  /* ── Card grid ────────────────────────────────────────── */
  & .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
  }

  & .card {
    background: var(--color-card-background);
    flex: 1 1 calc(25% - 15px);
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  & .card-icon {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 24px;
  }

  /* ── Card body ────────────────────────────────────────── */
  & .card-body {
    padding: 16px 24px 24px;
    text-align: center;
    color: var(--color-secondary);
    font-size: var(--text-sm);
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }

  & .card-title {
    font-family: var(--font-heading);
    font-size: var(--text-h4);
    color: var(--color-tertiary);
    margin-bottom: 10px;
  }

  & .spacer {
    flex: 1 1 auto;
  }

  & .button {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-tertiary);
    color: var(--color-white);
    text-decoration: none;
    text-align: center;

    &:hover {
      text-decoration: none;
      opacity: 0.9;
    }
  }

  /* ── Mobile ───────────────────────────────────────────── */
  @media (max-width: 767px) {
    & .hero-inner {
      grid-template-columns: 1fr;
      gap: 0;
    }

    & .hero-visual {
      margin-right: 0;
      padding: 18px 18px 0;
    }

    & .hero-image {
      width: min(100%, 320px);
      margin: 0 auto;
    }

    & .hero-copy {
      padding: 20px;
      border-radius: 0;
    }

    & .cards {
      flex-direction: column;
    }

    & .card {
      flex-basis: auto;
    }
  }
}
